Hi folks,
The attached patch enables LAB for this motherboard in coreboot-v2. Should I change the ROM size or leave it as it is? Also, Carl Daniel said something about CONFIG_XIP_ROM_SIZE calculation. Is it ok if I just hardcode it to 64KB?
Signed-of by: Cristi Măgherușancristi.magherusan@net.utcluj.ro
--- a/src/mainboard/asus/m2v-mx_se/Options.lb +++ b/src/mainboard/asus/m2v-mx_se/Options.lb @@ -92,6 +92,7 @@ uses CONFIG_HT_CHAIN_END_UNITID_BASE uses CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY # bx_b005+ uses CONFIG_SB_HT_CHAIN_ON_BUS0 +uses CONFIG_PRECOMPRESSED_PAYLOAD uses CONFIG_COMPRESSED_PAYLOAD_NRV2B uses CONFIG_COMPRESSED_PAYLOAD_LZMA uses CONFIG_USE_PRINTK_IN_CAR --- /dev/null +++ b/targets/asus/m2v-mx_se/Config-lab.lb @@ -0,0 +1,24 @@ +# Sample config file for +# the Asus M2V-MX-SE +# This will make a target directory of ./m2v-mx_se + +target m2v-mx_se +mainboard asus/m2v-mx_se + +option CONFIG_COMPRESSED_PAYLOAD_LZMA=1 +option CONFIG_PRECOMPRESSED_PAYLOAD=1 + +# I have a 4MB SPI flash +option CONFIG_ROM_SIZE= 4096 * 1024 + +# reserved for coreboot +option CONFIG_ROM_IMAGE_SIZE = 128 * 1024 + +option CONFIG_XIP_ROM_SIZE = 65536 + +romimage "image" + option COREBOOT_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback" + payload ../payload.elf.lzma +end + +buildrom ./coreboot.rom CONFIG_ROM_SIZE "image"