coreboot-kgpe-d16/util
Chris Douglass 4eabe1e4e1 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>
2014-02-28 21:12:29 +01:00
..
abuild abuild: improve --remove 2013-12-20 21:01:32 +01:00
acpi GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
amdtools
arm_boot_tools/mksunxiboot cpu/allwinner/a10: Provide utility to make a bootable image 2014-01-13 04:03:00 +01:00
board_status boardstatus/towiki: Skip OVERRIDE_FANCTL 2014-02-28 00:32:49 +01:00
cbfstool cbfstool/lzma: Remove code which depends on commented out defines 2014-02-11 20:15:48 +01:00
cbmem util/cbmem/Makfile: Add rule `junit.xml` for Jenkins 2014-01-11 17:40:38 +01:00
crossgcc crossgcc: Update IASL to latest version (20140114) 2014-02-14 02:52:45 +01:00
dtd_parser GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
dumpmmcr
ectool GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
genprof Rename devices -> device 2012-11-30 23:59:58 +01:00
getpir GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
gitconfig gitconfig: Match the Change-Id line more exactly 2012-08-27 15:41:33 +02:00
i915tool Fix whitespace leaked into tree 2013-09-17 21:04:35 +02:00
ifdfake ifdfake - Create an IFD with just a section layout 2013-06-24 17:56:42 +02:00
ifdtool util/ifdtool: add option to change flash layout 2014-02-28 21:12:29 +01:00
inteltool utils: Install man pages as non-executable (chmod 644) 2014-01-31 20:14:58 +01:00
k8resdump GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
kconfig kconfig: fix choice dependency check 2013-05-26 11:50:11 +02:00
lbtdump
lint lint: check label style only on changed files 2014-01-11 10:56:54 +01:00
mkelfImage GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
mptable mptable: realign comments with code 2012-06-20 12:46:55 +02:00
msrtool msrtool: Fix verbose ignored by cpuid(). 2013-07-08 19:39:00 +02:00
nvramtool utils: Install man pages as non-executable (chmod 644) 2014-01-31 20:14:58 +01:00
optionlist GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
resetcf
romcc romcc: Fix off-by-one 2013-11-16 09:49:35 +01:00
runfw Add a clean target to the run firmware (runfw) Makefile 2013-01-30 21:22:04 +01:00
sconfig sconfig: don't "const" structs twice 2014-01-20 12:59:27 +01:00
showdevicetree Show the device tree. 2013-03-16 04:30:16 +01:00
spkmodem_recv Add spkmodem receiver 2013-06-12 05:18:24 +02:00
superiotool utils: Install man pages as non-executable (chmod 644) 2014-01-31 20:14:58 +01:00
vgabios Rename devices -> device 2012-11-30 23:59:58 +01:00
viatool viatool: Add utility to read various configuration bits on VIA systems 2013-06-04 22:36:26 +02:00
xcompile util/xcompile/xcompile: set up for aarch64 2013-11-10 04:41:30 +01:00