coreboot-kgpe-d16/util/cbfstool
David Hendricks 0b23d47ffd armv7: Place reset vector + CBFS header + bootblock dynamically
This replaces hard-coded bootblock offsets using the new scheme.
The assembler will place the initial branch instruction after BL1,
skip 2 aligned chunks, and place the remaining bootblock code after.

It will also leave an anchor string, currently 0xdeadbeef which
cbfstool will find. Once found, cbfstool will place the master CBFS
header at the next aligned offset.

Here is how it looks:

             0x0000 |--------------|
                    |     BL1      |
             0x2000 |--------------|
                    |    branch    |
    0x2000 + align  |--------------|
                    |  CBFS header |
0x2000 + align * 2  |--------------|
                    |   bootblock  |
                    |--------------|

TODO: The option for alignment passed into cbfstool has always been
64. Can we set it to 16 instead?

Change-Id: Icbe817cbd8a37f11990aaf060aab77d2dc113cb1
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/2148
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-01-17 01:06:43 +01:00
..
lzma cbfstool: Update LZMA encoder to LZMA SDK 9.12 2012-11-12 18:35:52 +01:00
cbfs-mkpayload.c Add multi-architecture support to cbfstool 2012-11-30 00:42:31 +01:00
cbfs-mkstage.c Add multi-architecture support to cbfstool 2012-11-30 00:42:31 +01:00
cbfs.h Change "VERSION*" to more determined name "CBFS_HEADER_VERSION*". 2013-01-04 06:27:33 +01:00
cbfstool.c cbfstool: index is replaced by strchr. 2013-01-08 04:00:30 +01:00
common.c armv7: Place reset vector + CBFS header + bootblock dynamically 2013-01-17 01:06:43 +01:00
common.h cbfstool: Fix warnings on OS X 2013-01-04 23:29:37 +01:00
compress.c New cbfstool. Works without mmap or fork/exec and 2009-09-14 13:29:27 +00:00
elf.h fix some wrong versions of the FSF's address (trivial) 2009-09-23 21:52:45 +00:00
EXAMPLE Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
Makefile cbfstool: Update LZMA encoder to LZMA SDK 9.12 2012-11-12 18:35:52 +01:00
Makefile.inc cbfstool: Align the column of build hint message. 2012-12-14 08:46:26 +01:00
swab.h Various fixes to cbfstool. 2011-10-24 20:29:29 +02:00