Here's the usage:
# Tyan s2892 romimage "fallback" option USE_FALLBACK_IMAGE=1 option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback" payload ../payload.elf end
buildrom ./coreboot.rom ROM_SIZE "fallback"
pci_rom ../ragexl.rom vendor_id = 0x1002 device_id = 0x4752 pci_rom ../nic.rom vendor_id = 0x1100 device_id = 0x4152
Here are the results:
rm -f coreboot.cbfs ./cbfstool ./coreboot.romfs create 1048576 98304 ./coreboot.rom.bootblock if [ -f coreboot.romfs ]; then ./cbfstool coreboot.romfs add ../ragexl.rom pci1002,4752.rom 48; fi if [ -f coreboot.romfs ]; then ./cbfstool coreboot.romfs add ../nic.rom pci1100,4152.rom 48; fi if [ -f fallback/cbfs-support ]; then ./cbfstool ./coreboot.romfs add-payload ../payload.elf fallback/payload `cat fallback/cbfs-support`; fi ./cbfstool ./coreboot.romfs print ./coreboot.romfs: 1024 kB, bootblocksize 98304, romsize 1048576, offset 0x0 Alignment: 16 bytes
Name Offset Type Size pci1002,4752.rom 0x0 optionrom 36864 pci1100,4152.rom 0x9040 optionrom 36864 fallback/payload 0x12080 payload 65620
Signed-off-by: Myles Watson mylesgw@gmail.com
Thanks, Myles