[coreboot] [Qemu] [PATCH] Allow booting large Coreboot image as BIOS

Ed Swierk eswierk at aristanetworks.com
Wed May 19 08:45:05 CEST 2010

When I build a 1024-kB Coreboot image (emulation/qemu-x86 mainboard),
qemu goes into a loop, resetting just after the "Jumping to boot code"
message.  This can be avoided by removing the "| IO_MEM_ROM" from the
call to cpu_register_physical_memory(0x100000 - isa_bios_size, ...)
call in pc_memory_init().

The next problem I hit is the complaint "ERROR: No valid CBFS header
found!  Maybe the ROM isn't entirely mapped yet?".  I can work around
this by allocating a separate chunk of RAM for the top 128 kB of the
BIOS image in ISA space and copying it rather than mapping it from the
full ROM image.

Both of these changes are the result of random hacking rather than any
real understanding of the issues involved.  I'd appreciate any better

Signed-off-by: Ed Swierk <eswierk at aristanetworks.com>
 hw/pc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Current-qemu-has-problems-booting-with-Coreboot-in-p.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100518/98c24c86/attachment.patch>

More information about the coreboot mailing list