Skip to contentSkip to conversation

Cannot boot from IA32 system a 64bit x86_64 kernel.

DISCUSSION Tobias Powalowski via Grub-devel 3 participants 11 messages Aug 31, 2025 – Sep 4, 2025

lore
Share & tools
lore
#0 lore raw

Hi,

I just stumbled over this error in my archboot project:

Output from qemu serial console:

!!!! IA32 Exception Type - 0E(#PF - Page-Fault)  CPU Apic ID - 00000000 !!!!
ExceptionData - 00000003  I:0 R:0 U:0 W:1 P:1 PK:0 SS:0 SGX:0
EIP  - BB0E0209, CS  - 00000010, EFLAGS - 00210046
EAX  - 00000001, ECX - BB678310, EDX - BFE9F46C, EBX - 00000000
ESP  - BFE9F460, EBP - BFE9F488, ESI - BBB23EE0, EDI - 000000D0
DS   - 00000008, ES  - 00000008, FS  - 00000008, GS  - 00000008, SS - 00000008
CR0  - 80010033, CR2 - BB0E070A, CR3 - BFC01000, CR4 - 00000660
DR0  - 00000000, DR1 - 00000000, DR2 - 00000000, DR3 - 00000000
DR6  - FFFF0FF0, DR7 - 00000400
GDTR - BF9DC000 00000047, IDTR - BF538010 000007FF
LDTR - 00000000, TR - 00000000
FXSAVE_STATE - BFE9F1A0
!!!! Find image based on IP(0xBB0E0209) (No PDB) (ImageBase=00000000BB0C6FE0, EntryPoint=00000000BBFE9A35) !!!!

I am no longer able to support UEFI MIXED MODE.

Any idea how to further debug. Seems not many people do MIX MODE booting anymore.

Grub Version is standard Arch Linux: 2.12.r292.g73d1c959-1

2.12-3 from January didn't suffer from this bug.

Thanks in advance.

Best regards

tpowa

Signature · 19 lines
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#1 lore raw

BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

Am 31.08.25 um 17:26 schrieb Tobias Powalowski:

Quoted 26 lines

Hi,

I just stumbled over this error in my archboot project:

Output from qemu serial console:

!!!! IA32 Exception Type - 0E(#PF - Page-Fault)  CPU Apic ID - 00000000 !!!!
ExceptionData - 00000003  I:0 R:0 U:0 W:1 P:1 PK:0 SS:0 SGX:0
EIP  - BB0E0209, CS  - 00000010, EFLAGS - 00210046
EAX  - 00000001, ECX - BB678310, EDX - BFE9F46C, EBX - 00000000
ESP  - BFE9F460, EBP - BFE9F488, ESI - BBB23EE0, EDI - 000000D0
DS   - 00000008, ES  - 00000008, FS  - 00000008, GS  - 00000008, SS - 00000008
CR0  - 80010033, CR2 - BB0E070A, CR3 - BFC01000, CR4 - 00000660
DR0  - 00000000, DR1 - 00000000, DR2 - 00000000, DR3 - 00000000
DR6  - FFFF0FF0, DR7 - 00000400
GDTR - BF9DC000 00000047, IDTR - BF538010 000007FF
LDTR - 00000000, TR - 00000000
FXSAVE_STATE - BFE9F1A0
!!!! Find image based on IP(0xBB0E0209) (No PDB) (ImageBase=00000000BB0C6FE0, EntryPoint=00000000BBFE9A35) !!!!

I am no longer able to support UEFI MIXED MODE.

Any idea how to further debug. Seems not many people do MIX MODE booting anymore.

Grub Version is standard Arch Linux: 2.12.r292.g73d1c959-1

Quoted 8 lines

2.12-3 from January didn't suffer from this bug.

Thanks in advance.

Best regards

tpowa

Ok bisecting shows this commit as error source:

https://cgit.git.savannah.gnu.org/cgit/grub.git/commit/?id=d72208423dcabf9eb4a3bcb17b6b31888396bd49

By reverting this commit on latest master it does not show the above error and it boots again.

Best regards

tpowa

Signature · 19 lines
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#2 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

Quoted 28 lines · On Tue, 2 Sep 2025 23:03:39 +0200 Tobias Powalowski via Grub-devel…

Am 31.08.25 um 17:26 schrieb Tobias Powalowski:

Quoted 27 lines

Hi,

I just stumbled over this error in my archboot project:

Output from qemu serial console:

!!!! IA32 Exception Type - 0E(#PF - Page-Fault)  CPU Apic ID - 00000000 !!!!
ExceptionData - 00000003  I:0 R:0 U:0 W:1 P:1 PK:0 SS:0 SGX:0 EIP  - BB0E0209, CS  - 00000010, EFLAGS - 00210046
EAX  - 00000001, ECX - BB678310, EDX - BFE9F46C, EBX - 00000000 ESP  - BFE9F460, EBP - BFE9F488, ESI - BBB23EE0, EDI - 000000D0 DS   - 00000008, ES  - 00000008, FS  - 00000008, GS  - 00000008, SS - 00000008
CR0  - 80010033, CR2 - BB0E070A, CR3 - BFC01000, CR4 - 00000660 DR0  - 00000000, DR1 - 00000000, DR2 - 00000000, DR3 - 00000000 DR6  - FFFF0FF0, DR7 - 00000400
GDTR - BF9DC000 00000047, IDTR - BF538010 000007FF
LDTR - 00000000, TR - 00000000
FXSAVE_STATE - BFE9F1A0
!!!! Find image based on IP(0xBB0E0209) (No PDB) (ImageBase=00000000BB0C6FE0, EntryPoint=00000000BBFE9A35) !!!!

I am no longer able to support UEFI MIXED MODE.

Any idea how to further debug. Seems not many people do MIX MODE booting anymore.

What is the GRUB target and platform that you're building for and what are the qemu options are you using to get the above? Does this exception happen very early in the boot, like before any other output by GRUB? I ask this because, if valid, this should ideally have been caught by the CI.

Glenn

Quoted 13 lines
Quoted 11 lines

Grub Version is standard Arch Linux: 2.12.r292.g73d1c959-1

2.12-3 from January didn't suffer from this bug.

Thanks in advance.

Best regards

tpowa

Ok bisecting shows this commit as error source:

Quoted 9 lines

https://cgit.git.savannah.gnu.org/cgit/grub.git/commit/?id=d72208423dcabf9eb4a3bcb17b6b31888396bd49

By reverting this commit on latest master it does not show the above error and it boots again.

Best regards

tpowa

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

Am 03.09.25 um 06:55 schrieb Glenn Washburn:

Quoted 31 lines
Quoted 28 lines · On Tue, 2 Sep 2025 23:03:39 +0200 Tobias Powalowski via Grub-devel…

Am 31.08.25 um 17:26 schrieb Tobias Powalowski:

Quoted 27 lines

Hi,

I just stumbled over this error in my archboot project:

Output from qemu serial console:

!!!! IA32 Exception Type - 0E(#PF - Page-Fault)  CPU Apic ID - 00000000 !!!!
ExceptionData - 00000003  I:0 R:0 U:0 W:1 P:1 PK:0 SS:0 SGX:0 EIP  - BB0E0209, CS  - 00000010, EFLAGS - 00210046
EAX  - 00000001, ECX - BB678310, EDX - BFE9F46C, EBX - 00000000 ESP  - BFE9F460, EBP - BFE9F488, ESI - BBB23EE0, EDI - 000000D0 DS   - 00000008, ES  - 00000008, FS  - 00000008, GS  - 00000008, SS - 00000008
CR0  - 80010033, CR2 - BB0E070A, CR3 - BFC01000, CR4 - 00000660 DR0  - 00000000, DR1 - 00000000, DR2 - 00000000, DR3 - 00000000 DR6  - FFFF0FF0, DR7 - 00000400
GDTR - BF9DC000 00000047, IDTR - BF538010 000007FF
LDTR - 00000000, TR - 00000000
FXSAVE_STATE - BFE9F1A0
!!!! Find image based on IP(0xBB0E0209) (No PDB) (ImageBase=00000000BB0C6FE0, EntryPoint=00000000BBFE9A35) !!!!

I am no longer able to support UEFI MIXED MODE.

Any idea how to further debug. Seems not many people do MIX MODE booting anymore.

Quoted 8 lines

What is the GRUB target and platform that you're building for and what are the qemu options are you using to get the above? Does this exception happen very early in the boot, like before any other output by GRUB? I ask this because, if valid, this should ideally have been caught by the CI.

Glenn

Hi,

grub menu is shown, after menu point selected to boot no output is shown on normal screen only serial console shows the message.

qemu-system-x86_64 -drive file=archboot-2025.09.02-22.56-6.16.4-arch1-1-x86_64.iso,if=virtio,format=raw -drive file=/home/tobias/qemu/arch.raw,if=virtio,format=raw -drive file=/home/tobias/qemu/arch2.raw,if=virtio,format=raw -usb -usbdevice tablet -device virtio-net,netdev=eth0 -netdev tap,id=eth0,ifname=tap0,script=no,downscript=no -device virtio-vga,xres=800,yres=600 -drive if=pflash,format=raw,readonly=on,file=/usr/share/edk2/ia32/OVMF_CODE.4m.fd -m 4G -machine type=q35,accel=kvm

Build options:

target=i386-efi and  -with-platform="efi"

Best regards

tpowa

Signature · 19 lines
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#10 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

In reply to Tobias Powalowski via Grub-devel

That cannot be reverted because it will break NX support. You need to find the root cause.

Quoted 67 lines · Tobias Powalowski via Grub-devel

Am 31.08.25 um 17:26 schrieb Tobias Powalowski:

Quoted 30 lines

Hi,

I just stumbled over this error in my archboot project:

Output from qemu serial console:

!!!! IA32 Exception Type - 0E(#PF - Page-Fault) CPU Apic ID - 00000000 !!!!
ExceptionData - 00000003 I:0 R:0 U:0 W:1 P:1 PK:0 SS:0 SGX:0

EIP  - BB0E0209, CS  - 00000010, EFLAGS - 00210046
EAX  - 00000001, ECX - BB678310, EDX - BFE9F46C, EBX - 00000000
ESP  - BFE9F460, EBP - BFE9F488, ESI - BBB23EE0, EDI - 000000D0
DS   - 00000008, ES  - 00000008, FS  - 00000008, GS  - 00000008, SS -
00000008
CR0  - 80010033, CR2 - BB0E070A, CR3 - BFC01000, CR4 - 00000660
DR0  - 00000000, DR1 - 00000000, DR2 - 00000000, DR3 - 00000000
DR6  - FFFF0FF0, DR7 - 00000400

GDTR - BF9DC000 00000047, IDTR - BF538010 000007FF LDTR - 00000000, TR - 00000000
FXSAVE_STATE - BFE9F1A0
!!!! Find image based on IP(0xBB0E0209) (No PDB) (ImageBase=00000000BB0C6FE0, EntryPoint=00000000BBFE9A35) !!!!

I am no longer able to support UEFI MIXED MODE.

Any idea how to further debug. Seems not many people do MIX MODE booting anymore.

Grub Version is standard Arch Linux: 2.12.r292.g73d1c959-1

Quoted 8 lines

2.12-3 from January didn't suffer from this bug.

Thanks in advance.

Best regards

tpowa

Ok bisecting shows this commit as error source:

https://cgit.git.savannah.gnu.org/cgit/grub.git/commit/?id=d72208423dcabf9eb4a3bcb17b6b31888396bd49

By reverting this commit on latest master it does not show the above error and it boots again.

Best regards

tpowa

--
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#4 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

In reply to Glenn Washburn

@ Mati

Probably difficult for me to debug this, is it qemu or OVMF missbehaving at this point?

You are right NX is broken and boot not all times with the reverted patch.

My workaround for now:

I added noexec=off as kernel cmdline parameter for UEFI MIX MODE for booting on my archboot project.

Best regards

Tobias

Signature · 19 lines
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#5 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

In reply to Glenn Washburn

Hi,

Ok noexec=off is not available anymore since 2022 in linux kernel.

My working workaround for now is adding mem=4G to kernel commandline.

Any value higher than 4G does not work at the moment.

So seems definitly more a qemu issue and grub is not to blame here.

Best regards

Tobias

Signature · 19 lines
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#6 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

Are you really running on 32-bit IA32 UEFI? Because that is legacy and deprecated and runs with paging disabled and never had nor ever will have NX support.

So it should probably have NX compiled out in GRUB anyways, I don't think any UEFI grub maintainers test 32-bit IA32 UEFI these days because it is a dead platform.

Quoted 31 lines · Tobias Powalowski via Grub-devel

Hi,

Ok noexec=off is not available anymore since 2022 in linux kernel.

My working workaround for now is adding mem=4G to kernel commandline.

Any value higher than 4G does not work at the moment.

So seems definitly more a qemu issue and grub is not to blame here.

Best regards

Tobias

--
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#7 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

Am 04.09.25 um 11:57 schrieb Mate Kukri:

Quoted 8 lines

Are you really running on 32-bit IA32 UEFI? Because that is legacy and deprecated and runs with paging disabled and never had nor ever will have NX support.

So it should probably have NX compiled out in GRUB anyways, I don't think any UEFI grub maintainers test 32-bit IA32 UEFI these days because it is a dead platform.

Well there are still some old  boards with such setups out there.

I don't own any of those physically, so my only way to test this for archboot is the qemu way.

EDK2 OVMF with qemu-x86_64-system. My project and Arch Linux itself supports x86_64 machines from 2007 up to now.

I think some popular Surface or Intel Macs had this combination of UEFI-32 and not UEFI-64.

Sure in the future, I'll strip out the UEFI MIX MODE and I don't have to care about it anymore.

Best regards

Tobias

Signature · 19 lines
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#8 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

I am not 100% against keeping 32-bit EFI support but there is no reason to try debugging NX on it, just ifdef it out in GRUB, it is a broken mess of a platform that won't get better.

Quoted 34 lines · Tobias Powalowski

Am 04.09.25 um 11:57 schrieb Mate Kukri:

Quoted 8 lines

Are you really running on 32-bit IA32 UEFI? Because that is legacy and deprecated and runs with paging disabled and never had nor ever will have NX support.

So it should probably have NX compiled out in GRUB anyways, I don't think any UEFI grub maintainers test 32-bit IA32 UEFI these days because it is a dead platform.

Well there are still some old boards with such setups out there.

I don't own any of those physically, so my only way to test this for archboot is the qemu way.

EDK2 OVMF with qemu-x86_64-system. My project and Arch Linux itself supports x86_64 machines from 2007 up to now.

I think some popular Surface or Intel Macs had this combination of UEFI-32 and not UEFI-64.

Sure in the future, I'll strip out the UEFI MIX MODE and I don't have to care about it anymore.

Best regards

Tobias

--
Tobias Powalowski
Arch Linux Developer (tpowa)
https://www.archlinux.org
[email protected]

Quoted 9 lines

Archboot Developer
https://archboot.com

St. Martin-Apotheke
Herzog-Georg-Str. 25
89415 Lauingen
https://www.st-martin-apo.de
[email protected]

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#9 lore raw

Re: BUG: Bisection finished: Re: Cannot boot from IA32 system a 64bit x86_64 kernel.

In reply to Tobias Powalowski via Grub-devel
Quoted 15 lines · Tobias Powalowski via Grub-devel

Am 04.09.25 um 11:57 schrieb Mate Kukri:

Quoted 8 lines

Are you really running on 32-bit IA32 UEFI? Because that is legacy and deprecated and runs with paging disabled and never had nor ever will have NX support.

So it should probably have NX compiled out in GRUB anyways, I don't think any UEFI grub maintainers test 32-bit IA32 UEFI these days because it is a dead platform.

Well there are still some old boards with such setups out there.

Quoted 8 lines

I don't own any of those physically, so my only way to test this for archboot is the qemu way.

EDK2 OVMF with qemu-x86_64-system. My project and Arch Linux itself supports x86_64 machines from 2007 up to now.

I think some popular Surface or Intel Macs had this combination of UEFI-32 and not UEFI-64.

Sure in the future, I'll strip out the UEFI MIX MODE and I don't have to care about it anymore.

first intel based macs are reported, but also for example lenovo MIIX300 with intel atom CPU was running EFI32 and cpu was capable of long mode. Hopefully its all dead for now;)

rgds,
toomas

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel