[PATCH] configs: Fix crash on coreboot x86
Patrick Rudolph
patrick.rudolph at 9elements.com
Wed Sep 3 09:05:01 CEST 2025
Booting u-boot as payload with coreboot's main branch is currently broken
since commit [1] on x86 as U-boot assumes the active GDT matches what
U-Boot would have installed in start16.S.
Make no assumptions and always load the GDT when building as coreboot
payload to make sure the segment registers are actually matching the GDT.
Fixes #GP seen when booting U-Boot as coreboot payload.
1: https://review.coreboot.org/c/coreboot/+/87255
Signed-off-by: Patrick Rudolph <patrick.rudolph at 9elements.com>
---
configs/coreboot_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/coreboot_defconfig b/configs/coreboot_defconfig
index dfb97a3d302..033746e4f91 100644
--- a/configs/coreboot_defconfig
+++ b/configs/coreboot_defconfig
@@ -66,3 +66,4 @@ CONFIG_CONSOLE_SCROLL_LINES=5
CONFIG_CMD_DHRYSTONE=y
# CONFIG_GZIP is not set
CONFIG_SMBIOS_PARSER=y
+CONFIG_X86_LOAD_FROM_32_BIT=y
--
2.51.0
More information about the U-Boot
mailing list