summaryrefslogtreecommitdiff
path: root/payloads/tianocoreboot
diff options
context:
space:
mode:
authorChris Douglass <cdouglass.orion@gmail.com>2014-02-27 09:25:19 -0500
committerStefan Reinauer <stefan.reinauer@coreboot.org>2014-02-28 21:12:29 +0100
commit4eabe1e4e1e4aa7ffa5a147a609a8782f48f0791 (patch)
treec8a7d25c2d6b00a73850028bc082b12a1ddae92a /payloads/tianocoreboot
parent03ce014cfc35a1c51eadec46d30169b2c641e011 (diff)
util/ifdtool: add option to change flash layout
The new option "--newlayout <file>" will read <file> in flashrom's layout format and copy flash regions from the current flash image file to a new flash image file. If a region grows, the padding is added at the beginning of the target region in the new file so that the data is "right-aligned" to the end of the region. If a region shrinks, a warning is given and the tail end of existing data is copied to the target region in the new file. Regions of zero or negative size are ignored. (In the example below 00fff000:00000fff regions are an artifact of the address encoding in the register fields.) Example Usage: Given a flash image for a board with a Sandy Bridge processor and Intel 6-Series chipset in the file vpx7654.bin ifdtool --layout layout.txt vpx7564.bin will yield the file layout.txt: 00000000:00000fff fd 00180000:003fffff bios 00001000:0017ffff me 00fff000:00000fff gbe 00fff000:00000fff pd Notice that the "bios" portion extends to the end of the 4MB flash. It may be edited to extend the bios portion to consume to the extent of an 8MB flash. like layout2.txt: 00000000:00000fff fd 00180000:007fffff bios 00001000:0017ffff me 00fff000:00000fff gbe 00fff000:00000fff pd ifdtool --newlayout layout.txt vpx7654.bin will create a file vpx7654.bin.new that is 8MB. Change-Id: I0e0925a725c40fa44d8c4b6e86552028779d0523 Signed-off-by: Christopher Douglass <cdouglass.orion@gmail.com> Reviewed-on: http://review.coreboot.org/5312 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/tianocoreboot')
0 files changed, 0 insertions, 0 deletions