Bug #343
closedFails to load GRUB payload: CPU Index 0 - APIC 0 Unexpected Exception:6 @ 10:00009016 - Halting
0%
Description
coreboot emulation/qemu-i440fx is unable to load GRUB payload. It works with SeaBIOS.
FMAP REGION: COREBOOT
Name Offset Type Size Comp
cbfs master header 0x0 cbfs header 32 none
fallback/romstage 0x80 stage 21944 none
fallback/ramstage 0x56c0 stage 62048 LZMA (139536 decompressed)
config 0x14980 raw 428 none
revision 0x14b80 raw 716 none
build_info 0x14e80 raw 112 none
fallback/dsdt.aml 0x14f40 raw 4044 none
cmos_layout.bin 0x15f40 cmos_layout 640 none
fallback/postcar 0x16200 stage 23328 none
fallback/payload 0x1bd80 simple elf 460906 none
(empty) 0x8c640 null 3603556 none
bootblock 0x3fc2c0 bootblock 15104 none
[…]
[NOTE ] coreboot-4.16-415-ga84c00c9ce Wed Mar 30 01:18:14 UTC 2022 ramstage starting (log level: 7)...
[…]
[INFO ] Timestamp - selfboot jump: 965162845
[EMERG] CPU Index 0 - APIC 0 Unexpected Exception:6 @ 10:00009016 - Halting
[EMERG] Code: 0 eflags: 00010002 cr2: 00000000
[EMERG] eax: 00000000 ebx: 3ffbdc18 ecx: 0001ac27 edx: 000000ff
[EMERG] edi: 3ffbdc00 esi: 3ffbdbf0 ebp: 000001e4 esp: 3ffc3fbc
[EMERG] 0x00008fd0: 00 00 00 00 00 00 00 00
[EMERG] 0x00008fd8: 00 00 00 00 00 00 00 00
[EMERG] 0x00008fe0: 00 00 00 00 00 00 00 00
[EMERG] 0x00008fe8: 00 00 00 00 00 00 00 00
[EMERG] 0x00008ff0: 00 00 00 00 00 00 00 00
[EMERG] 0x00008ff8: 00 00 00 00 00 00 00 00
[EMERG] 0x00009000: 52 52 68 27 ac 01 00 6a
[EMERG] 0x00009008: 0b e8 5e cd 00 00 83 c4
[EMERG] 0x00009010: 10 a0 00 00 00 00 0f 0b
[EMERG] 0x00009018: 51 51 68 6a a2 01 00 6a
[EMERG] 0x00009020: 0b e8 46 cd 00 00 83 c4
[EMERG] 0x00009028: 10 eb e6 90 bc f0 ff 07
[EMERG] 0x00009030: 00 e9 c7 d7 00 00 66 90
[EMERG] 0x00009038: 02 b0 ad 1b 02 00 00 00
[EMERG] 0x00009040: fc 4f 52 e4 55 57 56 53
[EMERG] 0x00009048: 83 ec 1c 8b 5c 24 30 8b
[EMERG] 0x3ffc4038: 0x00000002
[EMERG] 0x3ffc4034: 0x00000003
[EMERG] 0x3ffc4030: 0x00000000
[EMERG] 0x3ffc402c: 0x00000000
[EMERG] 0x3ffc4028: 0x00000000
[EMERG] 0x3ffc4024: 0x00000000
[EMERG] 0x3ffc4020: 0x00000000
[EMERG] 0x3ffc401c: 0x00000000
[EMERG] 0x3ffc4018: 0x00000000
[EMERG] 0x3ffc4014: 0x00000000
[EMERG] 0x3ffc4010: 0x00000000
[EMERG] 0x3ffc400c: 0x00000000
[EMERG] 0x3ffc4008: 0x00000000
[EMERG] 0x3ffc4004: 0x00000000
[EMERG] 0x3ffc4000: 0x00000000
[EMERG] 0x3ffc3ffc: 0x00000000
[EMERG] 0x3ffc3ff8: 0x3ffbd4e8
[EMERG] 0x3ffc3ff4: 0xdeadbeef
[EMERG] 0x3ffc3ff0: 0xdeadbeef
[EMERG] 0x3ffc3fec: 0x3ff9e061
[EMERG] 0x3ffc3fe8: 0x3ffa1f19
[EMERG] 0x3ffc3fe4: 0x00018f20
[EMERG] 0x3ffc3fe0: 0x3ffdcfd4
[EMERG] 0x3ffc3fdc: 0x3ffc4000
[EMERG] 0x3ffc3fd8: 0x3ffd63ac
[EMERG] 0x3ffc3fd4: 0x00000000
[EMERG] 0x3ffc3fd0: 0x3ffa1fe5
[EMERG] 0x3ffc3fcc: 0x3ffa2139
[EMERG] 0x3ffc3fc8: 0x3ffbdc24
[EMERG] 0x3ffc3fc4: 0x3ffa4303
[EMERG] 0x3ffc3fc0: 0x3ff95000
[EMERG] 0x3ffc3fbc: 0x3ffac8e4 <-esp
Files
Updated by Paul Menzel over 2 years ago
- File coreboot.log coreboot.log added
Sorry, forgot to attach the log.
Updated by Arthur Heymans over 2 years ago
Bisected. 4ea7bae51f97e49c84dc67ea30b466ca8633b9f6 is the culprit in grub.
Updated by Michael Niewöhner over 2 years ago
Confirmed here as well. Reverting that commit makes it work again.
Looks like others ran into this, too:
https://lists.yoctoproject.org/g/yocto/message/53322
https://git.yoctoproject.org/poky/commit/?h=hardknott&id=7ef7ee52476dc3c35c6f02cc7bc2a05df008b14d
https://savannah.gnu.org/bugs/index.php?60458
Setting CFLAGS+="-Os" instead of -O2 seems to resolve that problem, but feels like just a workaround
Updated by Nico Huber over 2 years ago
I think this is related:
https://review.coreboot.org/c/coreboot/+/64235
Updated by Michael Niewöhner over 2 years ago
Nico Huber wrote in #note-4:
I think this is related:
https://review.coreboot.org/c/coreboot/+/64235
Thanks for the hint. This fixes it
Updated by Martin Roth almost 2 years ago
- Status changed from New to Resolved
The patch https://review.coreboot.org/c/coreboot/+/64235 which was said to fix the issue was merged on 2022-11-02.
Please reopen if the issue is still seen.