bootstd: select BLK rather than depending on it
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
Reviewed-byHi 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--syncconfigKconfigboot/Kconfig:496:error: recursive dependency detected!
boot/Kconfig:496: symbolBOOTSTD_DEFAULTSdepends 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 byBOOTSTD_DEFAULTSDisable 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 3c120Signed-off-by Simon Glass <[email protected]>---
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 itboot/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@@ -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 suchconfigs/10m50_defconfig +1
-0@@ -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=276configs/3c120_defconfig +1
-0@@ -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=276configs/gardena-smart-gateway-mt7688_defconfig +1
-0@@ -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@@ -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=1024configs/zynq_cse_nor_defconfig +1
-0@@ -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=1024configs/zynq_cse_qspi_defconfig +1
-0@@ -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
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--syncconfigKconfigboot/Kconfig:496:error: recursive dependency detected!
boot/Kconfig:496: symbolBOOTSTD_DEFAULTSdepends 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 byBOOTSTD_DEFAULTSDisable 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
3c120Signed-off-by Simon Glass <[email protected]>
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
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--syncconfigKconfigboot/Kconfig:496:error: recursive dependency detected!
boot/Kconfig:496: symbolBOOTSTD_DEFAULTSdepends 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 byBOOTSTD_DEFAULTSDisable 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
Signed-off-by Simon Glass <[email protected]>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