On Tue, Dec 02, 2008 at 08:51:50PM -0700, Jordan Crouse wrote:
I think simple is a bit optimistic - here is the diff between the standard Config.lb and the LZMA enabled one for one of the tyan boards. If you think we could recreate this magic in a shell script, then lets go for it.
Let's start by simplyfying that diff by throwing out all the cruft from the Config.lb file:
--- Config-lab.lb 2008-11-26 14:29:06.000000000 -0500 +++ Config.lb 2008-12-02 23:18:42.000000000 -0500 @@ -5,19 +5,23 @@ target s2891 mainboard tyan/s2891
-option ROM_SIZE=0x100000 -# 36K for ATI ROM in 1M -option FALLBACK_SIZE=(ROM_SIZE-0x9000) - # Tyan s2891 +romimage "normal" +# 36K for ATI ROM in 1M + option ROM_SIZE = 1024*1024-36*1024 + option USE_FALLBACK_IMAGE=0 + option ROM_IMAGE_SIZE=0x20000 + option XIP_ROM_SIZE=0x20000 + option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Normal" + payload ../payload.elf +end + romimage "fallback" option USE_FALLBACK_IMAGE=1 - option CONFIG_COMPRESSED_PAYLOAD_LZMA=1 - option CONFIG_PRECOMPRESSED_PAYLOAD=1 - option ROM_IMAGE_SIZE=0x17000 - option XIP_ROM_SIZE=0x40000 + option ROM_IMAGE_SIZE=0x20000 + option XIP_ROM_SIZE=0x20000 option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback" - payload ../payload.elf.lzma + payload ../payload.elf end
-buildrom ./coreboot.rom ROM_SIZE "fallback" +buildrom ./coreboot.rom ROM_SIZE "normal" "fallback"
So basically these are the differences:
1) no normal image in the lzma case, only fallback 2) some size parameter differences 3) payload filename is different
Thanks, Ward.