Hi,
I'm trying to get coreboot working with QEMU x86 q36/ich9 but it is hanging at grub prompt. With coreboot compiled for i440fx/pii4 and '-M pc' on the qemu command this works fine. Also native SeaBIOS works with q35 option no problem.
So I'm wondering if anyone has this working. Maybe I'm just missing some option somewhere? This is on latest git repository and I was sure this worked at some point (I rolled back to last year and it was still hanging) but I haven't tried to bisect it yet.
This is my qemu command,
# qemu-system-x86_64 -bios ./coreboot.rom \ -hda /var/lib/libvirt/images/Fedora-test0.img \ -M q35 -m 8G -enable-kvm -smp 1 \ -chardev file,id=debugcon,path=/tmp/bios.log \ -device isa-debugcon,iobase=0x402,chardev=debugcon
Here is my config.
---
CONFIG_LOCALVERSION="" CONFIG_CBFS_PREFIX="fallback" CONFIG_COMPILER_GCC=y CONFIG_COMPRESS_RAMSTAGE=y CONFIG_INCLUDE_CONFIG_FILE=y
CONFIG_VENDOR_EMULATION=y CONFIG_BOARD_SPECIFIC_OPTIONS=y CONFIG_MAINBOARD_DIR="emulation/qemu-q35" CONFIG_MAINBOARD_PART_NUMBER="QEMU x86 q35/ich9" CONFIG_MAINBOARD_VENDOR="Emulation" CONFIG_MAX_CPUS=1 CONFIG_CACHE_ROM_SIZE_OVERRIDE=0x0 CONFIG_CBFS_SIZE=0x100000 CONFIG_UART_FOR_CONSOLE=0 CONFIG_PAYLOAD_CONFIGFILE="" CONFIG_DIMM_SPD_SIZE=256 CONFIG_MAINBOARD_SERIAL_NUMBER="123456789" CONFIG_DCACHE_RAM_BASE=0xd0000 CONFIG_DCACHE_RAM_SIZE=0x10000 CONFIG_MMCONF_BASE_ADDRESS=0xb0000000 CONFIG_MAINBOARD_SMBIOS_MANUFACTURER="Emulation" CONFIG_POST_IO=y CONFIG_BOOTBLOCK_MAINBOARD_INIT="mainboard/emulation/qemu-q35/bootblock.c" CONFIG_MAX_REBOOT_CNT=3 CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT=y CONFIG_ID_SECTION_OFFSET=0x80 CONFIG_BOARD_EMULATION_QEMU_X86_Q35=y CONFIG_BOARD_EMULATION_QEMU_X86=y CONFIG_POST_DEVICE=y CONFIG_DEVICETREE="devicetree.cb" CONFIG_TTYS0_LCS=3 CONFIG_DRIVERS_UART_8250IO=y CONFIG_PRERAM_CBMEM_CONSOLE_SIZE=0xc00 CONFIG_FMDFILE="" CONFIG_SEABIOS_PS2_TIMEOUT=0 CONFIG_CPU_ADDR_BITS=36 CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8 CONFIG_MAINBOARD_VERSION="1.0" CONFIG_BOARD_ROMSIZE_KB_2048=y CONFIG_COREBOOT_ROMSIZE_KB_2048=y CONFIG_COREBOOT_ROMSIZE_KB=2048 CONFIG_ROM_SIZE=0x200000
CONFIG_C_ENV_BOOTBLOCK_SIZE=0x10000 CONFIG_X86_TOP4G_BOOTMEDIA_MAP=y CONFIG_ROMSTAGE_ADDR=0x2000000 CONFIG_VERSTAGE_ADDR=0x2000000 CONFIG_HEAP_SIZE=0x4000 CONFIG_BOOTBLOCK_SOUTHBRIDGE_INIT="southbridge/intel/i82801ix/bootblock.c" CONFIG_TTYS0_BASE=0x3f8 CONFIG_EHCI_BAR=0xfef00000 CONFIG_RAMTOP=0x200000 CONFIG_CONSOLE_CBMEM=y CONFIG_UART_PCI_ADDR=0x0 CONFIG_HPET_MIN_TICKS=0x80 CONFIG_TTYS0_BAUD=115200
CONFIG_XIP_ROM_SIZE=0x10000 CONFIG_NUM_IPI_STARTS=2 CONFIG_CPU_QEMU_X86=y CONFIG_UDELAY_IO=y CONFIG_LOGICAL_CPUS=y CONFIG_CACHE_AS_RAM=y CONFIG_SMP=y CONFIG_AP_SIPI_VECTOR=0xfffff000 CONFIG_CPU_MICROCODE_CBFS_NONE=y
CONFIG_VIDEO_MB=0 CONFIG_RAMBASE=0x100000 CONFIG_HPET_ADDRESS=0xfed00000 CONFIG_MAX_PIRQ_LINKS=4
CONFIG_SOUTHBRIDGE_INTEL_COMMON=y CONFIG_SOUTHBRIDGE_INTEL_COMMON_GPIO=y CONFIG_SOUTHBRIDGE_INTEL_I82801IX=y
CONFIG_HAVE_INTEL_FIRMWARE=y
CONFIG_VBOOT_VBNV_OFFSET=0x26 CONFIG_ARCH_X86=y CONFIG_ARCH_BOOTBLOCK_X86_32=y CONFIG_ARCH_VERSTAGE_X86_32=y CONFIG_ARCH_ROMSTAGE_X86_32=y CONFIG_ARCH_RAMSTAGE_X86_32=y CONFIG_PC80_SYSTEM=y CONFIG_IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS=y CONFIG_BOOTBLOCK_SIMPLE=y CONFIG_BOOTBLOCK_SOURCE="bootblock_simple.c"
CONFIG_MAINBOARD_HAS_NATIVE_VGA_INIT=y CONFIG_NATIVE_VGA_INIT_USE_EDID=y CONFIG_MAINBOARD_HAS_NATIVE_VGA_INIT_TEXTMODECFG=y CONFIG_PCI=y CONFIG_MMCONF_SUPPORT=y CONFIG_PCIX_PLUGIN_SUPPORT=y CONFIG_CARDBUS_PLUGIN_SUPPORT=y CONFIG_PCIEXP_PLUGIN_SUPPORT=y CONFIG_SUBSYSTEM_VENDOR_ID=0x0000 CONFIG_SUBSYSTEM_DEVICE_ID=0x0000
CONFIG_DRIVERS_UART=y CONFIG_HAVE_USBDEBUG=y CONFIG_HAVE_USBDEBUG_OPTIONS=y CONFIG_DRIVERS_EMULATION_QEMU_BOCHS=y CONFIG_GFX_GMA_CPU_VARIANT="Normal" CONFIG_GFX_GMA_INTERNAL_IS_EDP=y CONFIG_GFX_GMA_INTERNAL_PORT="DP" CONFIG_GFX_GMA_ANALOG_I2C_PORT="PCH_DAC" CONFIG_DRIVERS_INTEL_WIFI=y CONFIG_DRIVERS_MC146818=y CONFIG_BOOT_DEVICE_SPI_FLASH=y CONFIG_BOOT_DEVICE_MEMORY_MAPPED=y CONFIG_STACK_SIZE=0x1000
CONFIG_SQUELCH_EARLY_SMP=y CONFIG_CONSOLE_SERIAL=y
CONFIG_CONSOLE_SERIAL_115200=y CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000 CONFIG_CONSOLE_QEMU_DEBUGCON=y CONFIG_CONSOLE_QEMU_DEBUGCON_PORT=0x402 CONFIG_DEFAULT_CONSOLE_LOGLEVEL_8=y CONFIG_POST_DEVICE_NONE=y CONFIG_POST_IO_PORT=0x80 CONFIG_HWBASE_DEBUG_CB=y CONFIG_HAVE_HARD_RESET=y CONFIG_HAVE_SMI_HANDLER=y CONFIG_IOAPIC=y CONFIG_USE_WATCHDOG_ON_BOOT=y CONFIG_VGA=y CONFIG_HAVE_ACPI_TABLES=y
CONFIG_GENERATE_SMBIOS_TABLES=y CONFIG_MAINBOARD_SMBIOS_PRODUCT_NAME="QEMU x86 q35/ich9"
CONFIG_PAYLOAD_SEABIOS=y CONFIG_PAYLOAD_FILE="payloads/external/SeaBIOS/seabios/out/bios.bin.elf" CONFIG_SEABIOS_STABLE=y CONFIG_SEABIOS_BOOTORDER_FILE="" CONFIG_SEABIOS_DEBUG_LEVEL=-1
CONFIG_PAYLOAD_OPTIONS="" CONFIG_COMPRESSED_PAYLOAD_LZMA=y
CONFIG_WARNINGS_ARE_ERRORS=y CONFIG_HWBASE_DYNAMIC_MMIO=y CONFIG_EARLY_CBMEM_INIT=y CONFIG_BOOTBLOCK_CUSTOM=y