[PATCH v6 0/3] Static initcalls

Fabio Estevam festevam at gmail.com
Fri Jul 4 14:22:09 CEST 2025


On Fri, Jul 4, 2025 at 9:02 AM Jerome Forissier
<jerome.forissier at linaro.org> wrote:

> OK. Then I suggest adding a debug traces to the INITCALL() macro to see
> how far the init goes.

I added some debug traces inside the INITCALL() macro, but when it
hangs in SPL, no output is seen.

There's something very fragile: depending on what is removed from the
defconfig, the board can boot or not.

For example, by removing the following lines, the board boots:

--- a/configs/mx6sabresd_defconfig
+++ b/configs/mx6sabresd_defconfig
@@ -73,11 +73,6 @@ CONFIG_SYS_MMC_ENV_DEV=1
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_ARP_TIMEOUT=200
 CONFIG_BOUNCE_BUFFER=y
-CONFIG_USB_FUNCTION_FASTBOOT=y
-CONFIG_FASTBOOT_BUF_ADDR=0x12000000
-CONFIG_FASTBOOT_BUF_SIZE=0x10000000
-CONFIG_FASTBOOT_FLASH=y
-CONFIG_FASTBOOT_FLASH_MMC_DEV=2
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MXC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
@@ -111,8 +106,6 @@ CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
 CONFIG_SPL_USB_HOST=y
-CONFIG_USB_HOST_ETHER=y
-CONFIG_USB_ETHER_ASIX=y
 CONFIG_USB_GADGET=y
 CONFIG_SPL_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"


More information about the U-Boot mailing list