[coreboot] rom files in Config.lb

Myles Watson mylesgw at gmail.com
Fri Apr 17 01:24:40 CEST 2009


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 at gmail.com>

Thanks,
Myles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pci_rom.diff
Type: text/x-patch
Size: 2675 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090416/34ad5582/attachment.diff>


More information about the coreboot mailing list