Files
OpenCellular/util
Caveh Jalali ab94e7ac45 flash_ec: fail on flash chip size of 0
flashrom --get-size seems to return a size of 0 in some failure cases.
add specific handling of this case so we don't proceed and end up
failing with a somewhat misleading message like:

Error: Image size doesn't match: stat 524288 bytes, wanted 1048576!

BUG=none
BRANCH=none
TEST=flashrom now fails with "chip size is 0" instead of complaining
	about wanting a 1048576 byte image.

Change-Id: Iab4d0843d86ceec9f0ca482d9e060a33c7a58c7a
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1011823
Commit-Ready: Caveh Jalali <caveh@google.com>
Tested-by: Caveh Jalali <caveh@google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
2018-04-17 00:47:08 -07:00
..
2018-03-19 19:21:25 -07:00
2016-06-02 17:02:51 -07:00
2018-03-29 19:51:40 -07:00
2018-02-23 03:37:09 -08:00
2018-01-23 05:25:08 -08:00
2018-01-23 05:25:08 -08:00
2018-01-23 05:25:08 -08:00
2018-01-23 05:25:08 -08:00
2013-07-01 16:14:16 -07:00
2015-06-18 19:07:00 +00:00
2015-12-08 12:28:57 -08:00
2016-02-10 18:19:24 -08:00
2018-04-04 18:52:15 -07:00
2012-11-01 14:09:34 -07:00
2016-02-05 06:02:49 -08:00
2014-02-17 17:35:43 +00:00
2017-06-28 21:50:50 -07:00
2017-09-15 08:46:32 -07:00
2016-02-05 06:02:49 -08:00