Skip to contentSkip to conversation

configs: socfpga: Permit EFI booting

PATCH Superseded Jan Kiszka 2 participants 2 messages Nov 14, 2025 – Dec 4, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 configs: socfpga: Permit EFI booting

From: Jan Kiszka <[email protected]>

Commit f369e1564cf4 turned those off because the SPL size grew too large. It also argued that those boards would never support EFI booting. The former is correct, therefore keep CONFIG_SPL_EFI_PARTITION off. CONFIG_SPL_ISO_PARTITION is default off. What is not correct is that those boards are limited to legacy boot - you just need a hybrid partition table to make both the bootrom and UEFI happy.

---
 configs/socfpga_agilex5_defconfig       | 3 +--
 configs/socfpga_agilex_defconfig        | 3 +--
 configs/socfpga_arria5_defconfig        | 3 +--
 configs/socfpga_cyclone5_defconfig      | 3 +--
 configs/socfpga_de0_nano_soc_defconfig  | 3 +--
 configs/socfpga_de10_nano_defconfig     | 3 +--
 configs/socfpga_de10_standard_defconfig | 3 +--
 configs/socfpga_de1_soc_defconfig       | 3 +--
 configs/socfpga_is1_defconfig           | 3 +--
 configs/socfpga_mcvevk_defconfig        | 3 +--
 configs/socfpga_secu1_defconfig         | 3 +--
 configs/socfpga_sockit_defconfig        | 3 +--
 configs/socfpga_socrates_defconfig      | 3 +--
 configs/socfpga_sr1500_defconfig        | 3 +--
 configs/socfpga_vining_fpga_defconfig   | 3 +--
 15 files changed, 15 insertions(+), 30 deletions(-)
configs/socfpga_agilex5_defconfig +1 -2
index bbe712f8452..6347090105e 100644
@@ -67,8 +67,7 @@ CONFIG_CMD_WDT=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIMER=y
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_OF_LIST=""
 CONFIG_ENV_IS_IN_UBI=y
 CONFIG_ENV_UBI_PART="root"
configs/socfpga_agilex_defconfig +1 -2
index 1c3664bc0d7..a64f8a3a95c 100644
@@ -57,8 +57,7 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_SMC=y
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_OF_UPSTREAM=y
 CONFIG_OF_LIST=""
 CONFIG_ENV_IS_IN_FAT=y
configs/socfpga_arria5_defconfig +1 -2
index 3c860f97ae9..de768269323 100644
@@ -44,8 +44,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),-@1536k(UBI)"
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
configs/socfpga_cyclone5_defconfig +1 -2
index fef4cb90516..2b97b2829f0 100644
@@ -44,8 +44,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),-@1536k(UBI)"
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
configs/socfpga_de0_nano_soc_defconfig +1 -2
index 6564cbd03c6..e74f586a010 100644
@@ -46,8 +46,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),-@1536k(UBI)"
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
configs/socfpga_de10_nano_defconfig +1 -2
index 4fabd63f2b4..85b3fa6c666 100644
@@ -42,8 +42,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
configs/socfpga_de10_standard_defconfig +1 -2
index 1c9ecbf2bc8..22eae742fae 100644
@@ -42,8 +42,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
configs/socfpga_de1_soc_defconfig +1 -2
index 52ed0ff7ffa..bdec0cd2a65 100644
@@ -42,8 +42,7 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
configs/socfpga_is1_defconfig +1 -2
index 45d3b2f0807..50176c6f4b0 100644
@@ -44,8 +44,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),-@1536k(UBI)"
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_USE_BOOTFILE=y
configs/socfpga_mcvevk_defconfig +1 -2
index bff0c41336f..5c0de8ac8e8 100644
@@ -42,8 +42,7 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
configs/socfpga_secu1_defconfig +1 -2
index 5fe35fe6eb8..5d6f4173c1e 100644
@@ -63,8 +63,7 @@ CONFIG_MTDIDS_DEFAULT="nand0=denali-nand"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=denali-nand:512k(nand.4spl),512k(nand.uboot),128k(nand.env1),128k(nand.env2),0x1000000(nand.rec),0x3ee40000(nand.ubi),0x80000@0x3ff80000(nand.bbt)"
 CONFIG_CMD_UBI=y
 # CONFIG_CMD_UBIFS is not set
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_ENV_REDUNDANT=y
configs/socfpga_sockit_defconfig +1 -2
index fed1dd83dc2..57341a70552 100644
@@ -44,8 +44,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),-@1536k(UBI)"
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
configs/socfpga_socrates_defconfig +1 -2
index a08c7c0d9e0..d61b5007fbb 100644
@@ -44,8 +44,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),-@1536k(UBI)"
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
configs/socfpga_sr1500_defconfig +1 -2
index 7744ff9a888..f4cb525439f 100644
@@ -51,8 +51,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),256k(env1),256k(env2),14848k(boot),16m(rootfs),-@1536k(UBI)"
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_REDUNDANT=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
configs/socfpga_vining_fpga_defconfig +1 -2
index f3b6cb717b3..60b3a6cc891 100644
@@ -58,8 +58,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nor0=ff705000.spi.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=ff705000.spi.0:1m(u-boot),64k(env1),64k(env2),256k(softing1),256k(softing2),-(rcvrfs);"
 CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_REDUNDANT=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
Signature · 1 line
2.51.0
#1 lore raw

Hi Jan,

Quoted 35 lines · Jan Kiszka

[CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]

From: Jan Kiszka <[email protected]>

Commit f369e1564cf4 turned those off because the SPL size grew too large. It also argued that those boards would never support EFI booting. The former is correct, therefore keep CONFIG_SPL_EFI_PARTITION off. CONFIG_SPL_ISO_PARTITION is default off. What is not correct is that those boards are limited to legacy boot - you just need a hybrid partition table to make both the bootrom and UEFI happy.

---
  configs/socfpga_agilex5_defconfig       | 3 +--
  configs/socfpga_agilex_defconfig        | 3 +--
  configs/socfpga_arria5_defconfig        | 3 +--
  configs/socfpga_cyclone5_defconfig      | 3 +--
  configs/socfpga_de0_nano_soc_defconfig  | 3 +--
  configs/socfpga_de10_nano_defconfig     | 3 +--
  configs/socfpga_de10_standard_defconfig | 3 +--
  configs/socfpga_de1_soc_defconfig       | 3 +--
  configs/socfpga_is1_defconfig           | 3 +--
  configs/socfpga_mcvevk_defconfig        | 3 +--
  configs/socfpga_secu1_defconfig         | 3 +--
  configs/socfpga_sockit_defconfig        | 3 +--
  configs/socfpga_socrates_defconfig      | 3 +--
  configs/socfpga_sr1500_defconfig        | 3 +--
  configs/socfpga_vining_fpga_defconfig   | 3 +--
  15 files changed, 15 insertions(+), 30 deletions(-)
configs/socfpga_agilex5_defconfig +0 -0
index bbe712f8452..6347090105e 100644

configs/socfpga_agilex5_defconfig CONFIG_CMD_WDT=y · line 70

Quoted 6 lines
configs/socfpga_agilex5_defconfig +1 -2
@@ -67,8 +67,7 @@ CONFIG_CMD_WDT=y
  CONFIG_CMD_CACHE=y
  CONFIG_CMD_TIMER=y
  CONFIG_CMD_UBI=y
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set

Instead of adding this to every SoCFPGA-related defconfig, you can simply disable it in Kconfig. Set:

config SPL_EFI_PARTITION
default n if ARCH_SOCFPGA

as shown here: https://github.com/u-boot/u-boot/blob/69c8ea98a713f88f4a6ffad9df2a72b1a767f629/disk/Kconfig#L141

This approach avoids duplication across defconfigs and reduces the chance of missing other SoCFPGA platform variants.

Thanks.

Tien Fong