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
Reading flash... Invalid OPCODE 0x03
Read operation failed!
Corresponding to flashrom svn r1079.
Signed-off-by: Carl-Daniel Hailfinger <email@example.com>
Acked-by: Stephen Kou <firstname.lastname@example.org>
3 files changed