diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-13 23:56:13 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-13 23:56:13 +0000 |
commit | 1748c5701f77ab7164ab3311f37abc356d825ccb (patch) | |
tree | 5293ae58a44e75e42fb55619094e31f3f2b263e3 /flashchips.c | |
parent | 4d3e9ca7331c89d89dc4ca687ba5fe9315a2b3ca (diff) | |
download | flashrom-1748c5701f77ab7164ab3311f37abc356d825ccb.tar.gz flashrom-1748c5701f77ab7164ab3311f37abc356d825ccb.tar.bz2 flashrom-1748c5701f77ab7164ab3311f37abc356d825ccb.zip |
Print an error message on read errors and abort instead of proceeding anyway
Improve error checking in file write, chip read and chip verify.
Refactor the read routines a bit to split reading from file writing.
Log for a failed read:
[...]
Found chip "Winbond W25x16" (2048 KB, SPI) at physical address
0xffe00000.
Reading flash... Invalid OPCODE 0x03
Read operation failed!
FAILED.
Corresponding to flashrom svn r1079.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stephen Kou <stephen@hyarros.com>
Diffstat (limited to 'flashchips.c')
0 files changed, 0 insertions, 0 deletions