[LinuxBIOS] PATCH: Show flash chip size (flashrom).

Uwe Hermann uwe at hermann-uwe.de
Fri Sep 8 21:48:48 CEST 2006


Tiny patch to show the size of the detected flash part.

Uwe.
-- 
Uwe Hermann 
http://www.hermann-uwe.de
http://www.it-services-uh.de  | http://www.crazy-hacks.org 
http://www.holsham-traders.de | http://www.unmaintained-free-software.org
-------------- next part --------------
Index: util/flashrom/flash_rom.c
===================================================================
--- util/flashrom/flash_rom.c	(revision 2401)
+++ util/flashrom/flash_rom.c	(working copy)
@@ -298,7 +298,7 @@
 		exit(1);
 	}
 
-	printf("Flash part is %s\n", flash->name);
+	printf("Flash part is %s (%d KB)\n", flash->name, flash->total_size);
 
 	if (!filename && !erase_it) {
 		// FIXME: Do we really want this feature implicitly?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20060908/ff4d75ae/attachment.sig>


More information about the coreboot mailing list