Skip to contentSkip to conversation

bootstd: select BLK rather than depending on it

PATCH Stefan Roese 3 participants 3 messages Sep 25, 2025 – Sep 26, 2025 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Stefan Roese

author Reviewed-by
#2 lore raw

Hi Simon,

glad to "hear" something from you again. ;)

...

Quoted 32 lines · Simon Glass

From: Simon Glass <[email protected]>

With recent changes to how BLK works, we must use 'select' to enable the BLK feature, which is currently required by BOOTSTD.

This fixes the following error:

GEN Makefile
scripts/kconfig/conf --syncconfig Kconfig boot/Kconfig:496:error: recursive dependency detected!
boot/Kconfig:496: symbol BOOTSTD_DEFAULTS depends on BOOTSTD
boot/Kconfig:441: symbol BOOTSTD default is visible depending on BLK
drivers/block/Kconfig:1: symbol BLK is selected by USB
drivers/usb/Kconfig:1: symbol USB is selected by BOOTSTD_DEFAULTS

Disable BOOTSTD for the boards which don't have enough space or some other problem:

   zynq_cse_nand
   zynq_cse_nor
   zynq_cse_qspi
   gardena-smart-gateway-mt7688
   10m50
   3c120

---

Changes in v7:
- Put this patch earlier in the series, so it is bisectable
- Disable some boards which lack space

Quoted 7 lines

Changes in v6:
- Add new patch to select BLK rather than depending on it

  boot/Kconfig                                   | 3 ++-
  configs/10m50_defconfig                        | 1 +
  configs/3c120_defconfig                        | 1 +
  configs/gardena-smart-gateway-mt7688_defconfig | 1 +

For this platform:

Thanks,
Stefan

Quoted 92 lines
  configs/zynq_cse_nand_defconfig                | 1 +
  configs/zynq_cse_nor_defconfig                 | 1 +
  configs/zynq_cse_qspi_defconfig                | 1 +
  7 files changed, 8 insertions(+), 1 deletion(-)
boot/Kconfig +2 -1
index d1e608f2595..2cc33cc874d 100644
@@ -438,8 +438,9 @@ config BOOT_DEFAULTS
 
  menuconfig BOOTSTD
  	bool "Standard boot"
-	default y if BLK
+	default y
  	depends on DM && OF_CONTROL
+	select BLK
  	help
  	  U-Boot supports a standard way of locating something to boot,
  	  typically an Operating System such as Linux, provided by a distro such
configs/10m50_defconfig +1 -0
index 8180ed55e3e..0d4b1dc8d94 100644
@@ -13,6 +13,7 @@ CONFIG_SYS_LOAD_ADDR=0xcc000000
  CONFIG_ENV_ADDR=0xF4080000
  CONFIG_SYS_MONITOR_BASE=0xCFF80000
  CONFIG_FIT=y
+# CONFIG_BOOTSTD is not set
  # CONFIG_AUTOBOOT is not set
  CONFIG_SYS_CBSIZE=256
  CONFIG_SYS_PBSIZE=276
configs/3c120_defconfig +1 -0
index 0a6eae4b5dd..c444a12f485 100644
@@ -13,6 +13,7 @@ CONFIG_SYS_LOAD_ADDR=0xd4000000
  CONFIG_ENV_ADDR=0xE2880000
  CONFIG_SYS_MONITOR_BASE=0xD7F80000
  CONFIG_FIT=y
+# CONFIG_BOOTSTD is not set
  # CONFIG_AUTOBOOT is not set
  CONFIG_SYS_CBSIZE=256
  CONFIG_SYS_PBSIZE=276
configs/gardena-smart-gateway-mt7688_defconfig +1 -0
index 3c2bcc6a3c4..ea0094394eb 100644
@@ -31,6 +31,7 @@ CONFIG_HAS_BOARD_SIZE_LIMIT=y
  CONFIG_BOARD_SIZE_LIMIT=655360
  CONFIG_FIT=y
  CONFIG_FIT_SIGNATURE=y
+# CONFIG_BOOTSTD is not set
  CONFIG_LEGACY_IMAGE_FORMAT=y
  CONFIG_AUTOBOOT_KEYED=y
  CONFIG_AUTOBOOT_STOP_STR="x"
configs/zynq_cse_nand_defconfig +1 -0
index 4272b7320b6..9b85b23a9d5 100644
@@ -23,6 +23,7 @@ CONFIG_SPL=y
  CONFIG_REMAKE_ELF=y
  CONFIG_SYS_CUSTOM_LDSCRIPT=y
  CONFIG_SYS_LDSCRIPT="arch/arm/mach-zynq/u-boot.lds"
+# CONFIG_BOOTSTD is not set
  # CONFIG_AUTOBOOT is not set
  CONFIG_USE_PREBOOT=y
  CONFIG_SYS_CBSIZE=1024
configs/zynq_cse_nor_defconfig +1 -0
index 74c4595eb43..fab02bfdb0a 100644
@@ -23,6 +23,7 @@ CONFIG_SPL=y
  CONFIG_REMAKE_ELF=y
  CONFIG_SYS_CUSTOM_LDSCRIPT=y
  CONFIG_SYS_LDSCRIPT="arch/arm/mach-zynq/u-boot.lds"
+# CONFIG_BOOTSTD is not set
  # CONFIG_AUTOBOOT is not set
  CONFIG_USE_PREBOOT=y
  CONFIG_SYS_CBSIZE=1024
configs/zynq_cse_qspi_defconfig +1 -0
index 145b7fd33bb..31ff00c689c 100644
@@ -29,6 +29,7 @@ CONFIG_DEBUG_UART=y
  CONFIG_REMAKE_ELF=y
  CONFIG_SYS_CUSTOM_LDSCRIPT=y
  CONFIG_SYS_LDSCRIPT="arch/arm/mach-zynq/u-boot.lds"
+# CONFIG_BOOTSTD is not set
  # CONFIG_AUTOBOOT is not set
  # CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
  CONFIG_USE_PREBOOT=y
#3 lore raw
In reply to a message not in the archive
Quoted 18 lines · Simon Glass

From: Simon Glass <[email protected]>

With recent changes to how BLK works, we must use 'select' to enable the BLK feature, which is currently required by BOOTSTD.

This fixes the following error:

GEN Makefile
scripts/kconfig/conf --syncconfig Kconfig boot/Kconfig:496:error: recursive dependency detected!
boot/Kconfig:496: symbol BOOTSTD_DEFAULTS depends on BOOTSTD
boot/Kconfig:441: symbol BOOTSTD default is visible depending on BLK
drivers/block/Kconfig:1: symbol BLK is selected by USB
drivers/usb/Kconfig:1: symbol USB is selected by BOOTSTD_DEFAULTS

Disable BOOTSTD for the boards which don't have enough space or some other problem:

Quoted 8 lines

zynq_cse_nand
zynq_cse_nor
zynq_cse_qspi
gardena-smart-gateway-mt7688
10m50
3c120

This is the wrong direction. Please instead get the dependencies correct in the next patch. You're likely missing some conditionals on the selects you add as bootstd does not depend on BLK.

Signature · 1 line
Tom
#4 lore raw

Hi Tom,

Quoted 28 lines · Tom Rini
Quoted 25 lines · Simon Glass

From: Simon Glass <[email protected]>

With recent changes to how BLK works, we must use 'select' to enable the BLK feature, which is currently required by BOOTSTD.

This fixes the following error:

GEN Makefile
scripts/kconfig/conf --syncconfig Kconfig boot/Kconfig:496:error: recursive dependency detected!
boot/Kconfig:496: symbol BOOTSTD_DEFAULTS depends on BOOTSTD
boot/Kconfig:441: symbol BOOTSTD default is visible depending on BLK
drivers/block/Kconfig:1: symbol BLK is selected by USB
drivers/usb/Kconfig:1: symbol USB is selected by BOOTSTD_DEFAULTS

Disable BOOTSTD for the boards which don't have enough space or some other problem:

zynq_cse_nand
zynq_cse_nor
zynq_cse_qspi
gardena-smart-gateway-mt7688
10m50
3c120

Quoted 5 lines
Quoted 1 line

This is the wrong direction. Please instead get the dependencies correct in the next patch. You're likely missing some conditionals on the selects you add as bootstd does not depend on BLK.

OK, I found that I shouldn't need the 'select USB' so I dropped that. So I can send v8.

Also I spoke to Heinrich and we came up with the idea of supporting bootdev priority in global boomeths, as a less hacky way of ensuring the bootmgr doesn't slow down the boot when it isn't being used. That would be a separate series but I can take a look at that.

- Simon