Cristian Măgherușan-Stanciu (cristi.magherusan@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1090
-gerrit
commit 317eab87c98d70787e473de3c132814481db1b62 Author: Rudolf Marek r.marek@assembler.cz Date: Tue Jun 5 00:18:37 2012 +0200
Do not use CBFS while in userspace coreboot, fake 64KB chip.
Avoid CBFS, it could be mmaped as file in the future.
Change-Id: I3cf7e8504e216eef7f88e14a3a2906f91fe3abb4 Signed-off-by: Rudolf Marek r.marek@assembler.cz --- src/arch/x86/boot/smbios.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c index 72e70ba..cc37bb7 100644 --- a/src/arch/x86/boot/smbios.c +++ b/src/arch/x86/boot/smbios.c @@ -143,8 +143,14 @@ static int smbios_write_type0(unsigned long *current, int handle) vboot_data->vbt10 = (u32)t->eos + (version_offset - 1); #endif
+#if CONFIG_ULINUX + /* No CBFS mapped yet */ + t->bios_rom_size = 64; + hdr = NULL; +#else if ((hdr = get_cbfs_header()) != (struct cbfs_header *)0xffffffff) t->bios_rom_size = (ntohl(hdr->romsize) / 65535) - 1; +#endif t->system_bios_major_release = 4; t->bios_characteristics = BIOS_CHARACTERISTICS_PCI_SUPPORTED |