switch-coreboot/util
Uwe Hermann c8ea006269 When outputting ELF segments in LAR, the utility will use the segment
number from ELF as segment number in the file. This works nicely when
there are no skips (e.g. not PT_LOAD segments, which are discarded).

If one segment is skipped, we get a bump:

normal/payload0/segment0 (27288 bytes, lzma compressed to 14506 bytes @0x64c0)
normal/payload0/segment2 (211136 bytes, lzma compressed to 70905 bytes @0x9dc0)

The LAR loader wont load segment2, and in this particular case, grub2-lb
will only boot into rescue mode (segment0 contains it).

Attached patch adds a counter for segment number in the LAR utility to
solve this bug:

normal/payload0/segment0 (27288 bytes, lzma compressed to 14506 bytes @0x64c0)
normal/payload0/segment1 (211136 bytes, lzma compressed to 70905 bytes @0x9dc0)

Also the eagle eyed can see that I merged in Uwe's multiple-payload
patch into current stage1, which includes the segment support. And this
means that grub2-lb without any hacks works when loaded from LAR segments.

Signed-off-by: Alex Beregszaszi <alex@rtfs.hu>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@498 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-09-16 14:37:59 +00:00
..
doxygen Some modifications of the Doxygen config file to improve the output (trivial). 2007-05-02 13:05:14 +00:00
dtc * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
kconfig * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
lar When outputting ELF segments in LAR, the utility will use the segment 2007-09-16 14:37:59 +00:00
lzma - Extend lar format to support compression (incompatible format change!) 2007-06-26 11:55:06 +00:00
nrv2b Always compile in all compression algorithms. This is required for 2007-08-19 22:58:42 +00:00
options Fix various license headers. 2007-05-20 20:35:59 +00:00
x86emu this patch changes vm86.c:do_bios to run_bios(dev, addr). 2007-09-05 01:41:52 +00:00
xcompile * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
Makefile in order to integrate compression into lar, it needs some makefile splits to 2007-06-16 17:07:24 +00:00