Skip to content

Instantly share code, notes, and snippets.

@curiousercreative
Last active January 23, 2024 04:02
Show Gist options
  • Save curiousercreative/6cbdd25e5f2acbaacdf20bc37da860bd to your computer and use it in GitHub Desktop.
Save curiousercreative/6cbdd25e5f2acbaacdf20bc37da860bd to your computer and use it in GitHub Desktop.
Log of failed ZFSBootMenu EFI execution
#!/usr/bin/env bash
set -e
MODEL="qemu"
qemu-system-x86_64 \
-enable-kvm \
-M q35 \
-m 4096 \
-cpu Skylake-Client \
-vga std \
-bios "build/${MODEL}/firmware.rom" \
-chardev stdio,mux=on,id=debug \
-device isa-serial,index=2,chardev=debug \
-device isa-debugcon,iobase=0x402,chardev=debug \
-device pcie-root-port,bus=pcie.0,id=rp1 \
-device pcie-pci-bridge,id=br1,bus=rp1 \
-net none \
-drive id=disk,file=/path/to/esp.img,if=none,format=raw \
-device ahci,id=ahci \
-device ide-hd,drive=disk,bus=ahci.0 \
"$@"
# COM1: -device isa-serial,index=0,chardev=debug
# COM2: -device isa-serial,index=1,chardev=debug
# COM3: -device isa-serial,index=2,chardev=debug
# COM4: -device isa-serial,index=3,chardev=debug
# PCIe hotplugging (https://github.com/qemu/qemu/blob/master/docs/pcie_pci_bridge.txt):
# Root port: -device pcie-root-port,bus=pcie.0,id=rp1
# PCIe bridge: -device pcie-pci-bridge,id=br1,bus=rp1
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.0DH:EAX.xsavec [bit 1]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.0DH:EAX.xgetbv1 [bit 2]
[NOTE ] coreboot-2024-01-18_3e19b73 Thu Jan 18 19:28:10 UTC 2024 bootblock starting (log level: 7)...
[DEBUG] FMAP: Found "FLASH" version 1.1 at 0x0.
[DEBUG] FMAP: base = 0xff800000 size = 0x800000 #areas = 3
[DEBUG] FMAP: area COREBOOT found @ 200 (8388096 bytes)
[INFO ] CBFS: mcache @0x00014e00 built for 12 files, used 0x2ac of 0x4000 bytes
[INFO ] CBFS: Found 'fallback/romstage' @0x80 size 0x4558 in mcache @0x00014e2c
[DEBUG] BS: bootblock times (exec / console): total (unknown) / 7 ms
[NOTE ] coreboot-2024-01-18_3e19b73 Thu Jan 18 19:28:10 UTC 2024 romstage starting (log level: 7)...
[DEBUG] SMBus controller enabled
[INFO ] QEMU: firmware config interface detected
[INFO ] Firmware config version id: 3
[INFO ] QEMU: firmware config: Found 'etc/e820'
[DEBUG] CBMEM:
[DEBUG] IMD: root @ 0x7ffff000 254 entries.
[DEBUG] IMD: root @ 0x7fffec00 62 entries.
[DEBUG] FMAP: area COREBOOT found @ 200 (8388096 bytes)
[INFO ] CBFS: Found 'fallback/postcar' @0x21480 size 0x505c in mcache @0x00014ff8
[DEBUG] Loading module at 0x7ffd1000 with entry 0x7ffd1031. filesize: 0x4d60 memsize: 0xb070
[DEBUG] Processing 175 relocs. Offset value of 0x7dfd1000
[DEBUG] BS: romstage times (exec / console): total (unknown) / 10 ms
[NOTE ] coreboot-2024-01-18_3e19b73 Thu Jan 18 19:28:10 UTC 2024 postcar starting (log level: 7)...
[DEBUG] FMAP: area COREBOOT found @ 200 (8388096 bytes)
[INFO ] CBFS: Found 'fallback/ramstage' @0x4680 size 0x10bd4 in mcache @0x7fffe9ec
[DEBUG] Loading module at 0x7ff9e000 with entry 0x7ff9e000. filesize: 0x20500 memsize: 0x31610
[DEBUG] Processing 2284 relocs. Offset value of 0x7bf9e000
[DEBUG] BS: postcar times (exec / console): total (unknown) / 6 ms
[NOTE ] coreboot-2024-01-18_3e19b73 Thu Jan 18 19:28:10 UTC 2024 ramstage starting (log level: 7)...
[DEBUG] Initializing i82801ix southbridge...
[DEBUG] BS: BS_DEV_INIT_CHIPS run times (exec / console): 0 / 1 ms
[INFO ] Enumerating buses...
[DEBUG] Root Device scanning...
[DEBUG] CPU_CLUSTER: 0 enabled
[DEBUG] DOMAIN: 0000 enabled
[DEBUG] DOMAIN: 0000 scanning...
[DEBUG] PCI: pci_scan_bus for bus 00
[DEBUG] PCI: 00:00.0 [8086/29c0] enabled
[DEBUG] PCI: 00:01.0 [1234/1111] enabled
[DEBUG] PCI: 00:02.0 subordinate bus PCI Express
[DEBUG] PCI: 00:02.0 hot-plug capable
[DEBUG] PCI: 00:02.0 [1b36/000c] enabled
[DEBUG] PCI: 00:03.0 [8086/2922] enabled
[INFO ] PCI: Static device PCI: 00:1a.0 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1a.1 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1a.2 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1a.7 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1b.0 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1c.0 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1c.1 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1c.2 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1c.3 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1c.4 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1c.5 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1d.0 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1d.1 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1d.2 not found, disabling it.
[INFO ] PCI: Static device PCI: 00:1d.7 not found, disabling it.
[DEBUG] PCI: 00:1f.0 [8086/2918] enabled
[DEBUG] PCI: 00:1f.2 [8086/2922] enabled
[DEBUG] PCI: 00:1f.3 [8086/2930] enabled
4m[WARN ] PCI: Leftover static devices:
4m[WARN ] PCI: 00:19.0
4m[WARN ] PCI: 00:1a.0
4m[WARN ] PCI: 00:1a.1
4m[WARN ] PCI: 00:1a.2
4m[WARN ] PCI: 00:1a.7
4m[WARN ] PCI: 00:1b.0
4m[WARN ] PCI: 00:1c.0
4m[WARN ] PCI: 00:1c.1
4m[WARN ] PCI: 00:1c.2
4m[WARN ] PCI: 00:1c.3
4m[WARN ] PCI: 00:1c.4
4m[WARN ] PCI: 00:1c.5
4m[WARN ] PCI: 00:1d.0
4m[WARN ] PCI: 00:1d.1
4m[WARN ] PCI: 00:1d.2
4m[WARN ] PCI: 00:1d.7
4m[WARN ] PCI: 00:1f.5
4m[WARN ] PCI: 00:1f.6
4m[WARN ] PCI: Check your devicetree.cb.
[DEBUG] PCI: 00:02.0 scanning...
[DEBUG] PCI: pci_scan_bus for bus 01
[DEBUG] PCI: 01:00.0 subordinate PCI
[DEBUG] PCI: 01:00.0 [1b36/000e] enabled
[DEBUG] PCI: 01:00.0 scanning...
[DEBUG] PCI: pci_scan_bus for bus 22
[DEBUG] scan_bus: bus PCI: 01:00.0 finished in 1 msecs
[INFO ] PCIe: Max_Payload_Size adjusted to 128
[DEBUG] PCI: 01:00.0: No LTR support
[DEBUG] scan_bus: bus PCI: 00:02.0 finished in 7 msecs
[DEBUG] PCI: 00:1f.0 scanning...
[DEBUG] PNP: 0c31.0 enabled
[DEBUG] scan_bus: bus PCI: 00:1f.0 finished in 0 msecs
[DEBUG] PCI: 00:1f.3 scanning...
[DEBUG] scan_bus: bus PCI: 00:1f.3 finished in 0 msecs
[DEBUG] scan_bus: bus DOMAIN: 0000 finished in 42 msecs
[DEBUG] scan_bus: bus Root Device finished in 44 msecs
[INFO ] done
[DEBUG] BS: BS_DEV_ENUMERATE run times (exec / console): 3 / 44 ms
[DEBUG] found VGA at PCI: 00:01.0
[DEBUG] Setting up VGA for PCI: 00:01.0
[DEBUG] Setting PCI_BRIDGE_CTL_VGA for bridge DOMAIN: 0000
[DEBUG] Setting PCI_BRIDGE_CTL_VGA for bridge Root Device
[INFO ] Allocating resources...
[INFO ] Reading resources...
[INFO ] QEMU: firmware config interface detected
[INFO ] Firmware config version id: 3
[INFO ] QEMU: firmware config: Found 'etc/e820'
[DEBUG] QEMU: e820/res: 0xfeffc000 +0x00004000
[DEBUG] QEMU: e820/ram: 0x00000000 + 0x80000000
[DEBUG] QEMU: e820/ram: 0x100000000 + 0x80000000
[DEBUG] QEMU: reserve ioports 0x0510-0x0511 [firmware-config]
[DEBUG] QEMU: reserve ioports 0x5658-0x5658 [vmware-port]
[DEBUG] Adding PCIe enhanced config space BAR 0xb0000000-0xc0000000.
[ERROR] PNP: 0c31.0 missing read_resources
[INFO ] Done reading resources.
[INFO ] === Resource allocator: DOMAIN: 0000 - Pass 1 (gathering requirements) ===
[DEBUG] PCI: 00:02.0 io: size: 0 align: 12 gran: 12 limit: ffff
[DEBUG] NONE 18 * [0x0 - 0x1fff] io
[DEBUG] PCI: 00:02.0 io: size: 2000 align: 12 gran: 12 limit: ffff done
[DEBUG] PCI: 00:02.0 mem: size: 0 align: 20 gran: 20 limit: ffffffff
[DEBUG] NONE 10 * [0x0 - 0x7fffff] mem
[DEBUG] PCI: 01:00.0 10 * [0x800000 - 0x8000ff] mem
[DEBUG] PCI: 00:02.0 mem: size: 900000 align: 20 gran: 20 limit: ffffffff done
[DEBUG] PCI: 00:02.0 prefmem: size: 0 align: 20 gran: 20 limit: ffffffffffffffff
[DEBUG] NONE 14 * [0x0 - 0xfffffff] prefmem
[DEBUG] PCI: 00:02.0 prefmem: size: 10000000 align: 20 gran: 20 limit: ffffffffffffffff done
[INFO ] === Resource allocator: DOMAIN: 0000 - Pass 2 (allocating resources) ===
[DEBUG] DOMAIN: 0000 io: base: 0 size: 0 align: 0 gran: 0 limit: ffff
[DEBUG] update_constraints: DOMAIN: 0000 0e base 00000510 limit 00000511 io (fixed)
[DEBUG] update_constraints: DOMAIN: 0000 0f base 00005658 limit 00005658 io (fixed)
[DEBUG] update_constraints: PCI: 00:1f.0 10000000 base 00000000 limit 00000fff io (fixed)
[DEBUG] update_constraints: PCI: 00:1f.3 20 base 00000400 limit 0000041f io (fixed)
[INFO ] DOMAIN: 0000: Resource ranges:
[INFO ] * Base: 1000, Size: 4658, Tag: 100
[INFO ] * Base: 5659, Size: a9a7, Tag: 100
[DEBUG] PCI: 00:02.0 1c * [0x1000 - 0x2fff] limit: 2fff io
[DEBUG] PCI: 00:03.0 20 * [0x3000 - 0x301f] limit: 301f io
[DEBUG] PCI: 00:1f.2 20 * [0x3020 - 0x303f] limit: 303f io
[DEBUG] DOMAIN: 0000 io: base: 0 size: 0 align: 0 gran: 0 limit: ffff done
[DEBUG] DOMAIN: 0000 mem: base: 0 size: 0 align: 0 gran: 0 limit: ffffffffff
[DEBUG] update_constraints: DOMAIN: 0000 0a base feffc000 limit feffffff mem (fixed)
[DEBUG] update_constraints: DOMAIN: 0000 0b base 00000000 limit 0009ffff mem (fixed)
[DEBUG] update_constraints: DOMAIN: 0000 0c base 000c0000 limit 7fffffff mem (fixed)
[DEBUG] update_constraints: DOMAIN: 0000 0d base 100000000 limit 17fffffff mem (fixed)
[DEBUG] update_constraints: DOMAIN: 0000 10 base 000a0000 limit 000bffff mem (fixed)
[DEBUG] update_constraints: DOMAIN: 0000 11 base 000c0000 limit 000fffff mem (fixed)
[DEBUG] update_constraints: DOMAIN: 0000 12 base 80000000 limit afffffff mem (fixed)
[DEBUG] update_constraints: DOMAIN: 0000 03 base fee00000 limit fee0ffff mem (fixed)
[DEBUG] update_constraints: PCI: 00:00.0 02 base b0000000 limit bfffffff mem (fixed)
[DEBUG] update_constraints: PCI: 00:1f.0 10000100 base ff800000 limit ffffffff mem (fixed)
[DEBUG] update_constraints: PCI: 00:1f.0 03 base fec00000 limit fec00fff mem (fixed)
[INFO ] DOMAIN: 0000: Resource ranges:
[INFO ] * Base: c0000000, Size: 3ec00000, Tag: 200
[INFO ] * Base: fec01000, Size: 1ff000, Tag: 200
[INFO ] * Base: fee10000, Size: 1ec000, Tag: 200
[INFO ] * Base: ff000000, Size: 800000, Tag: 200
[INFO ] * Base: 180000000, Size: fe80000000, Tag: 100200
[DEBUG] PCI: 00:01.0 10 * [0xc0000000 - 0xc0ffffff] limit: c0ffffff prefmem
[DEBUG] PCI: 00:02.0 20 * [0xc1000000 - 0xc18fffff] limit: c18fffff mem
[DEBUG] PCI: 00:01.0 30 * [0xc1900000 - 0xc190ffff] limit: c190ffff mem
[DEBUG] PCI: 00:01.0 18 * [0xc1910000 - 0xc1910fff] limit: c1910fff mem
[DEBUG] PCI: 00:02.0 10 * [0xc1911000 - 0xc1911fff] limit: c1911fff mem
[DEBUG] PCI: 00:03.0 24 * [0xc1912000 - 0xc1912fff] limit: c1912fff mem
[DEBUG] PCI: 00:1f.2 24 * [0xc1913000 - 0xc1913fff] limit: c1913fff mem
[DEBUG] PCI: 00:02.0 24 * [0x180000000 - 0x18fffffff] limit: 18fffffff prefmem
[DEBUG] DOMAIN: 0000 mem: base: 0 size: 0 align: 0 gran: 0 limit: ffffffffff done
[DEBUG] PCI: 00:02.0 io: base: 1000 size: 2000 align: 12 gran: 12 limit: 2fff
[INFO ] PCI: 00:02.0: Resource ranges:
[INFO ] * Base: 1000, Size: 2000, Tag: 100
[DEBUG] NONE 18 * [0x1000 - 0x2fff] limit: 2fff io
[DEBUG] PCI: 00:02.0 io: base: 1000 size: 2000 align: 12 gran: 12 limit: 2fff done
[DEBUG] PCI: 00:02.0 prefmem: base: 180000000 size: 10000000 align: 20 gran: 20 limit: 18fffffff
[INFO ] PCI: 00:02.0: Resource ranges:
[INFO ] * Base: 180000000, Size: 10000000, Tag: 1200
[DEBUG] NONE 14 * [0x180000000 - 0x18fffffff] limit: 18fffffff prefmem
[DEBUG] PCI: 00:02.0 prefmem: base: 180000000 size: 10000000 align: 20 gran: 20 limit: 18fffffff done
[DEBUG] PCI: 00:02.0 mem: base: c1000000 size: 900000 align: 20 gran: 20 limit: c18fffff
[INFO ] PCI: 00:02.0: Resource ranges:
[INFO ] * Base: c1000000, Size: 900000, Tag: 200
[DEBUG] NONE 10 * [0xc1000000 - 0xc17fffff] limit: c17fffff mem
[DEBUG] PCI: 01:00.0 10 * [0xc1800000 - 0xc18000ff] limit: c18000ff mem
[DEBUG] PCI: 00:02.0 mem: base: c1000000 size: 900000 align: 20 gran: 20 limit: c18fffff done
[INFO ] === Resource allocator: DOMAIN: 0000 - resource allocation complete ===
[DEBUG] PCI: 00:01.0 10 <- [0x00000000c0000000 - 0x00000000c0ffffff] size 0x01000000 gran 0x18 prefmem
[DEBUG] PCI: 00:01.0 18 <- [0x00000000c1910000 - 0x00000000c1910fff] size 0x00001000 gran 0x0c mem
[DEBUG] PCI: 00:01.0 30 <- [0x00000000c1900000 - 0x00000000c190ffff] size 0x00010000 gran 0x10 romem
[DEBUG] PCI: 00:02.0 1c <- [0x0000000000001000 - 0x0000000000002fff] size 0x00002000 gran 0x0c bus 01 io
[DEBUG] PCI: 00:02.0 24 <- [0x0000000180000000 - 0x000000018fffffff] size 0x10000000 gran 0x14 bus 01 prefmem
[DEBUG] PCI: 00:02.0 20 <- [0x00000000c1000000 - 0x00000000c18fffff] size 0x00900000 gran 0x14 bus 01 mem
[DEBUG] PCI: 00:02.0 10 <- [0x00000000c1911000 - 0x00000000c1911fff] size 0x00001000 gran 0x0c mem
[DEBUG] PCI: 01:00.0 1c <- [0x000000000000ffff - 0x000000000000fffe] size 0x00000000 gran 0x0c bus 22 io
[DEBUG] PCI: 01:00.0 24 <- [0xffffffffffffffff - 0xfffffffffffffffe] size 0x00000000 gran 0x14 bus 22 prefmem
[DEBUG] PCI: 01:00.0 20 <- [0x00000000ffffffff - 0x00000000fffffffe] size 0x00000000 gran 0x14 bus 22 mem
[DEBUG] PCI: 01:00.0 10 <- [0x00000000c1800000 - 0x00000000c18000ff] size 0x00000100 gran 0x08 mem64
[DEBUG] PCI: 00:03.0 20 <- [0x0000000000003000 - 0x000000000000301f] size 0x00000020 gran 0x05 io
[DEBUG] PCI: 00:03.0 24 <- [0x00000000c1912000 - 0x00000000c1912fff] size 0x00001000 gran 0x0c mem
[DEBUG] PCI: 00:1f.2 20 <- [0x0000000000003020 - 0x000000000000303f] size 0x00000020 gran 0x05 io
[DEBUG] PCI: 00:1f.2 24 <- [0x00000000c1913000 - 0x00000000c1913fff] size 0x00001000 gran 0x0c mem
[INFO ] Done setting resources.
[INFO ] Done allocating resources.
[DEBUG] BS: BS_DEV_RESOURCES run times (exec / console): 14 / 110 ms
[INFO ] Enabling resources...
[DEBUG] PCI: 00:00.0 cmd <- 00
[DEBUG] PCI: 00:01.0 cmd <- 03
[DEBUG] PCI: 00:02.0 bridge ctrl <- 0013
[DEBUG] PCI: 00:02.0 cmd <- 07
[DEBUG] PCI: 00:03.0 cmd <- 03
[DEBUG] PCI: 00:1f.0 subsystem <- 8086/2918
[DEBUG] PCI: 00:1f.0 cmd <- 100
[DEBUG] PCI: 00:1f.2 subsystem <- 8086/2922
[DEBUG] PCI: 00:1f.2 cmd <- 103
[DEBUG] PCI: 00:1f.3 subsystem <- 8086/2930
[DEBUG] PCI: 00:1f.3 cmd <- 101
[DEBUG] PCI: 01:00.0 bridge ctrl <- 0013
[DEBUG] PCI: 01:00.0 cmd <- 02
[INFO ] done.
[DEBUG] BS: BS_DEV_ENABLE run times (exec / console): 2 / 10 ms
[DEBUG] BS: BS_DEV_INIT entry times (exec / console): 2 / 0 ms
[INFO ] Initializing devices...
[DEBUG] CPU_CLUSTER: 0 init
[DEBUG] Setting up SMI for CPU
[DEBUG] Save state size: 0x200 bytes
[INFO ] Will perform SMM setup.
[INFO ] CPU: Intel Core Processor (Skylake).
[INFO ] LAPIC 0x0 in XAPIC mode.
[DEBUG] CPU: APIC: 00 enabled
[DEBUG] Loading module at 0x00030000 with entry 0x00030000. filesize: 0x178 memsize: 0x178
[DEBUG] Processing 16 relocs. Offset value of 0x00030000
[DEBUG] Loading module at 0x00038000 with entry 0x00038000. filesize: 0x1e0 memsize: 0x1e0
[DEBUG] Processing 11 relocs. Offset value of 0x00038000
[DEBUG] smm_module_setup_stub: stack_top = 0xa0400
[DEBUG] smm_module_setup_stub: per cpu stack_size = 0x400
[DEBUG] smm_module_setup_stub: runtime.start32_offset = 0x4c
[DEBUG] smm_module_setup_stub: runtime.smm_size = 0x10000
[DEBUG] SMM Module: stub loaded at 38000. Will call 0x7ffad5dd
[DEBUG] Installing permanent SMM handler to 0x000a0000
[DEBUG] HANDLER [0xaf000-0xaf688]
[DEBUG] CPU 0
[DEBUG] ss0 [0xaee00-0xaf000]
[DEBUG] stub0 [0xa7000-0xa71e0]
[DEBUG] stacks [0xa0000-0xa0400]
[DEBUG] Loading module at 0x000af000 with entry 0x000af056. filesize: 0x678 memsize: 0x688
[DEBUG] Processing 27 relocs. Offset value of 0x000af000
[DEBUG] Loading module at 0x000a7000 with entry 0x000a7000. filesize: 0x1e0 memsize: 0x1e0
[DEBUG] Processing 11 relocs. Offset value of 0x000a7000
[DEBUG] smm_module_setup_stub: stack_top = 0xa0400
[DEBUG] smm_module_setup_stub: per cpu stack_size = 0x400
[DEBUG] smm_module_setup_stub: runtime.start32_offset = 0x4c
[DEBUG] smm_module_setup_stub: runtime.smm_size = 0x10000
[DEBUG] SMM Module: stub loaded at a7000. Will call 0x000af056
[INFO ] smm_do_relocation : curr_smbase 0x30000 perm_smbase 0x9f000, cpu = 0
[DEBUG] In relocation handler: cpu 0
[DEBUG] SMM revision: 0x00020064
[DEBUG] New SMBASE=0x0009f000
[DEBUG] Relocation complete.
[INFO ] Initializing CPU #0
[DEBUG] CPU: vendor Intel device 506e3
[DEBUG] CPU: family 06, model 5e, stepping 03
[INFO ] CPU #0 initialized
[INFO ] bsp_do_flight_plan done after 23 msecs.
[DEBUG] SMI_STS:
[DEBUG] GPE0_STS:
[DEBUG] ALT_GP_SMI_STS: GPI15 GPI14 GPI13 GPI12 GPI11 GPI10 GPI9 GPI8 GPI7 GPI6 GPI5 GPI4 GPI3 GPI2 GPI1 GPI0
[DEBUG] TCO_STS:
[DEBUG] Locking SMM.
[DEBUG] CPU_CLUSTER: 0 init finished in 33 msecs
[DEBUG] PCI: 00:00.0 init
[DEBUG] Assigning IRQ 11 to PCI: 00:02.0
[DEBUG] Assigning IRQ 11 to PCI: 00:03.0
[DEBUG] Assigning IRQ 10 to PCI: 00:1f.2
[DEBUG] Assigning IRQ 10 to PCI: 00:1f.3
[DEBUG] PCI: 00:00.0 init finished in 5 msecs
[DEBUG] PCI: 00:01.0 init
[DEBUG] QEMU VGA: Using legacy VGA
[DEBUG] QEMU VGA: bochs dispi interface found, 16 MiB video memory
[DEBUG] QEMU VGA: framebuffer @ c0000000 (pci bar 0)
[INFO ] framebuffer_info: bytes_per_line: 4096, bits_per_pixel: 32
[INFO ] x_res x y_res: 1024 x 768, size: 3145728 at 0xc0000000
[DEBUG] PCI: 00:01.0 init finished in 5 msecs
[DEBUG] PCI: 00:03.0 init
[DEBUG] i82801ix_sata: initializing...
[ERROR] i82801ix_sata: error: device not in devicetree.cb!
[DEBUG] PCI: 00:03.0 init finished in 1 msecs
[DEBUG] PCI: 00:1f.0 init
[DEBUG] i82801ix: lpc_init
[DEBUG] IOAPIC: Initializing IOAPIC at 0xfec00000
[DEBUG] IOAPIC: 24 interrupts
[DEBUG] IOAPIC: Clearing IOAPIC at 0xfec00000
[DEBUG] IOAPIC: Bootstrap Processor Local APIC = 0x00
[INFO ] Set power on after power failure.
[INFO ] NMI sources disabled.
[DEBUG] rtc_failed = 0x0
[DEBUG] RTC Init
[DEBUG] apm_control: Disabling ACPI.
[DEBUG] APMC done.
[DEBUG] PCI: 00:1f.0 init finished in 7 msecs
[DEBUG] PCI: 00:1f.2 init
[DEBUG] i82801ix_sata: initializing...
[DEBUG] SATA controller in AHCI mode.
[DEBUG] ABAR: 0xc1913000
[DEBUG] PCI: 00:1f.2 init finished in 2 msecs
[DEBUG] PCI: 00:1f.3 init
[DEBUG] PCI: 00:1f.3 init finished in 0 msecs
[INFO ] Devices initialized
[DEBUG] BS: BS_DEV_INIT run times (exec / console): 7 / 58 ms
[INFO ] Finalize devices...
[INFO ] Devices finalized
[DEBUG] BS: BS_POST_DEVICE run times (exec / console): 0 / 1 ms
[INFO ] QEMU: firmware config: Found 'etc/table-loader'
[DEBUG] QEMU: found ACPI tables in fw_cfg.
[INFO ] QEMU: firmware config: Found 'etc/acpi/rsdp'
[DEBUG] QEMU: loading "etc/acpi/rsdp" to 0x7ff5d000 (len 20)
[INFO ] QEMU: firmware config: Found 'etc/acpi/tables'
[DEBUG] QEMU: loading "etc/acpi/tables" to 0x7ff5d040 (len 131072)
[DEBUG] QEMU: loaded ACPI tables from fw_cfg.
[DEBUG] Looking on 0x7ff5d000 for valid checksum
[DEBUG] Checksum 1 passed
[DEBUG] Checksum 2 passed all OK
[DEBUG] ACPI: * SSDT
[DEBUG] Generating ACPI PIRQ entries
[DEBUG] ACPI: added table 6/32, length now 60
[DEBUG] ACPI tables: 131136 bytes.
[DEBUG] smbios_write_tables: 7ff55000
[DEBUG] SMBIOS firmware version is set to coreboot_version: '2024-01-18_3e19b73'
[DEBUG] SMBIOS: Unknown CPU or CPU doesn't support Deterministic Cache CPUID leaf
[INFO ] DOMAIN: 0000 (QEMU Northbridge q35)
[INFO ] QEMU: firmware config: Found 'etc/smbios/smbios-tables'
[DEBUG] QEMU: found smbios tables in fw_cfg (len 342).
[DEBUG] QEMU: coreboot type0 table found at 0x7ff55040.
[DEBUG] QEMU: loading smbios tables to 0x7ff55082
[DEBUG] SMBIOS tables: 500 bytes.
[DEBUG] Writing table forward entry at 0x00000500
[DEBUG] Wrote coreboot table at: 0x00000500, 0x10 bytes, checksum 2fe5
[DEBUG] Writing coreboot table at 0x7ff95000
[DEBUG] 0. 0000000000000000-0000000000000fff: CONFIGURATION TABLES
[DEBUG] 1. 0000000000001000-000000000009ffff: RAM
[DEBUG] 2. 00000000000a0000-00000000000fffff: RESERVED
[DEBUG] 3. 0000000000100000-000000007ff54fff: RAM
[DEBUG] 4. 000000007ff55000-000000007ff9dfff: CONFIGURATION TABLES
[DEBUG] 5. 000000007ff9e000-000000007ffcffff: RAMSTAGE
[DEBUG] 6. 000000007ffd0000-000000007fffffff: CONFIGURATION TABLES
[DEBUG] 7. 00000000b0000000-00000000bfffffff: RESERVED
[DEBUG] 8. 0000000100000000-000000017fffffff: RAM
[DEBUG] FMAP: area COREBOOT found @ 200 (8388096 bytes)
[DEBUG] Wrote coreboot table at: 0x7ff95000, 0x318 bytes, checksum ec2c
[DEBUG] coreboot table: 816 bytes.
[DEBUG] IMD ROOT 0. 0x7ffff000 0x00001000
[DEBUG] IMD SMALL 1. 0x7fffe000 0x00001000
[DEBUG] CONSOLE 2. 0x7ffde000 0x00020000
[DEBUG] TIME STAMP 3. 0x7ffdd000 0x00000910
[DEBUG] AFTER CAR 4. 0x7ffd0000 0x0000d000
[DEBUG] RAMSTAGE 5. 0x7ff9d000 0x00033000
[DEBUG] COREBOOT 6. 0x7ff95000 0x00008000
[DEBUG] ACPI 7. 0x7ff5d000 0x00038000
[DEBUG] SMBIOS 8. 0x7ff55000 0x00008000
[DEBUG] IMD small region:
[DEBUG] IMD ROOT 0. 0x7fffec00 0x00000400
[DEBUG] RO MCACHE 1. 0x7fffe940 0x000002ac
[DEBUG] FMAP 2. 0x7fffe880 0x000000b6
[DEBUG] ROMSTG STCK 3. 0x7fffe7e0 0x00000088
[DEBUG] ACPI GNVS 4. 0x7fffe6e0 0x00000100
[DEBUG] BS: BS_WRITE_TABLES run times (exec / console): 4 / 48 ms
[INFO ] CBFS: Found 'fallback/payload' @0x26540 size 0x101562 in mcache @0x7fffeb7c
[DEBUG] Checking segment from ROM address 0xff82676c
[DEBUG] Checking segment from ROM address 0xff826788
[DEBUG] Loading segment from ROM address 0xff82676c
[DEBUG] code (compression=1)
[DEBUG] New segment dstaddr 0x00800000 memsize 0x800000 srcaddr 0xff8267a4 filesize 0x10152a
[DEBUG] Loading Segment: addr: 0x00800000 memsz: 0x0000000000800000 filesz: 0x000000000010152a
[DEBUG] using LZMA
[DEBUG] Loading segment from ROM address 0xff826788
[DEBUG] Entry Point 0x008033c0
[DEBUG] BS: BS_PAYLOAD_LOAD run times (exec / console): 83 / 9 ms
[DEBUG] ICH-NM10-PCH: watchdog disabled
[DEBUG] Jumping to boot code at 0x008033c0(0x7ff95000)
!!!! X64 Exception Type - 06(#UD - Invalid Opcode) CPU Apic ID - 00000000 !!!!
RIP - 000000007FD1C000, CS - 0000000000000038, RFLAGS - 0000000000010082
RAX - 000000017F812298, RCX - 000000007FF53018, RDX - 000000003FFFC000
RBX - 000000017F2A71F0, RSP - 0000000002FE4588, RBP - 0000000002FE45B0
RSI - 000000007FF53018, RDI - 000000017F812298
R8 - 000000007B455590, R9 - 0000000000001000, R10 - 0000000000000005
R11 - 0000000000000000, R12 - 0000000000000000, R13 - 000000017F96C740
R14 - 000000017F96A80E, R15 - 0000000000000000
DS - 0000000000000030, ES - 0000000000000030, FS - 0000000000000030
GS - 0000000000000030, SS - 0000000000000030
CR0 - 0000000080010011, CR2 - 0000000000000000, CR3 - 0000000002801000
CR4 - 0000000000000228, CR8 - 0000000000000000
DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 00000000000F0400
GDTR - 000000007FF4E000 0000000000000047, LDTR - 0000000000000000
IDTR - 000000017FB69018 0000000000000FFF, TR - 0000000000000000
FXSAVE_STATE - 0000000002FE41E0
!!!! Can't find image information. !!!!
qemu-system-x86_64: terminating on signal 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment