DescriptionSupport variable-size SPI chip for dummy programmer.
flashrom -p dummy:emulate=VARIABLE_SIZE,image=image_file,size=4M
This is designed for firmware updater to preserve partitions easily. For example, the use case to keep VPDs when upgrading from H2O to H2C.
Change-Id: I84e1a793639cc33b769f6db41be0a0f0b1eacc78
R=dhendrix@chromium.org,hungte@chromiumg.org,reinauer@chromium.org
BUG=Not a bug
TEST=Tested on Z600 and target.
# a H2C file is ready to write.
% flashrom -r H2O # read existing content from BIOS, including VPDs.
% flashrom -p dummy:emulate=VARIABLE_SIZE,image=H2C,size=4M \
-i RO_VPD -i RW_VPD -w H2O # overwrite VPDs from H2O to H2C.
% flashrom -w H2C # write it down, with VPDs from H2O.
Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=e53fa0f
Patch Set 1 #
Total comments: 12
Patch Set 2 : change name from virtual to variable_size. add an SPI flash for any size. #Patch Set 3 : fixed multiple chip detected problem on target machine. #
Total comments: 12
Patch Set 4 : refine according to code review #
Messages
Total messages: 9 (0 generated)
|