Hello,
this patch adds following options, for the use of OEM ROM section, eg: onboard PCI device's BIOS in boot ROM or MAC address saved in boot ROM
ROM_TOTAL_SIZE: the total size of boot ROM ROM_OEM_SIZE: the size of boot ROM used by OEM_ROM section ROM_SIZE: the size of boot ROM used by LinuxBIOS ROM_OEM_START: OEM_ROM start address
OEM ROM exists in the low address end of boot ROM, so default ROM_OEM_SIZE = 0 default ROM_SIZE = ROM_TOTAL_SIZE - ROM_OEM_SIZE default ROM_OEM_START = 0xffffffff - ROM_TOTAL_SIZE + 1
OEM devices should know the offset of their data in OEM ROM, so they can visit their data at address (ROM_OEM_START + oem_my_data_offset)
to use OEM ROM, one should define ROM_TOTAL_SIZE and ROM_OEM_SIZE in mainboard's Options.lb file.
this patch won't break mainboards which defines ROM_SIZE and don't mentions ROM_TOTAL_SIZE and ROM_OEM_SIZE.
--- freebios2-20050305-0000-orig/src/config/Options.lb 2005-01-15 05:54:16.000000000 +0800 +++ freebios2-20050305-0000/src/config/Options.lb 2005-03-30 20:49:16.000000000 +0800 @@ -190,11 +190,29 @@ export used comment "Default fallback image size" end -define ROM_SIZE +define ROM_TOTAL_SIZE default none format "0x%x" export used - comment "Size of your ROM" + comment "Size of your boot ROM" +end +define ROM_OEM_SIZE + default 0 + format "0x%x" + export used + comment "Size of your ROM used by OEM vendors" +end +define ROM_OEM_START + default {0xffffffff - ROM_TOTAL_SIZE + 1} + format "0x%x" + export used + comment "OEM ROM start location" +end +define ROM_SIZE + default {ROM_TOTAL_SIZE - ROM_OEM_SIZE} + format "0x%x" + export used + comment "Size of your ROM used by LinuxBIOS" end define ROM_IMAGE_SIZE default 65535