/[Development]
ViewVC logotype

Revision 4290


Jump to revision: Previous Next
Author: rminnich
Date: Sat May 16 23:05:20 2009 UTC (4 years, 1 month ago)
Changed paths: 2
Log Message:
This patch implements a "flash friendly" value for initialized areas of flash. 
It makes the write part of flashrom dramatically faster with small
payloads like filo; and it also eliminates unnecessary wear on flash
by not writing zeros (it's unlikely this really matters; let me know 
next time you flash a BIOS flash 100,000 times!). 

More importantly, it allows for future partial flash upgrades with cbfs. 

Note that uninitialized_flash_value is a global that can, if we ever need it, 
be set by an argument in main. Assuming we ever see a flash where the 
"erased" value is 0, not 0xff. 

At the same time, "erased" value has been "1" on every EEPROM or 
FLASH I've used for some time now. 

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>




Changed paths

Path Details
Directorytrunk/coreboot-v2/util/cbfstool/cbfstool.h modified , text changed
Directorytrunk/coreboot-v2/util/cbfstool/util.c modified , text changed

Stefan Reinauer">Stefan Reinauer
ViewVC Help
Powered by ViewVC 1.1.15