summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-10-20 09:13:16 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-10-20 09:13:16 +0000
commitd7d423bbc1d2564c60daaecd9ab1dca3843c5fea (patch)
treebc9d591677afbe3dae8f9a01a70f95f9487982a7 /flashrom.c
parent99f947ddc8156eb37b5dafc076480f405c9be0b6 (diff)
downloadast2050-flashrom-d7d423bbc1d2564c60daaecd9ab1dca3843c5fea.zip
ast2050-flashrom-d7d423bbc1d2564c60daaecd9ab1dca3843c5fea.tar.gz
Add a bunch of new/tested stuff and various small changes 15
Tested Mainboards: OK: - Foxconn P55MX http://www.flashrom.org/pipermail/flashrom/2012-October/010002.html Tested flash chips: - Eon EN25F64 to PR (+PR) http://paste.flashrom.org/view.php?id=1426 - Macronix MX25L1005 to PREW (+PREW) http://www.flashrom.org/pipermail/flashrom/2012-October/010004.html - Set SST39VF512 to PREW (+W) http://www.flashrom.org/pipermail/flashrom/2012-September/009958.html Tested chipsets: - Z77 (only reading was really tested) Miscellaneous: - Fix ft2232_spi's parameter parsing. - Fix nicrealtek's init (always segfaulted since r1586 oops). - Add another T60 variant to the laptop whitelist. - Improve message shown when image file size does not match flash chip - Refine messages regarding the flash descriptor override strap according to the findings by Vladislav Bykov on his P55MX. - Fix the ID of EN25F64. - Demote and clarify debug message in serprog_delay(). - Minor other cleanups. Corresponding to flashrom svn r1613. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index a887e3b..7d1ffa3 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1086,7 +1086,8 @@ int read_buf_from_file(unsigned char *buf, unsigned long size,
return 1;
}
if (image_stat.st_size != size) {
- msg_gerr("Error: Image size doesn't match\n");
+ msg_gerr("Error: Image size (%ld B) doesn't match the flash chip's size (%ld B)!\n",
+ image_stat.st_size, size);
fclose(image);
return 1;
}
OpenPOWER on IntegriCloud