This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM62X: A53 spl boot fail

Part Number: PROCESSOR-SDK-AM62X
Other Parts Discussed in Thread: AM625

Tool/software:

Hi,

An AM62x reference custom board is experiencing a boot failure using the USB DFU method. However, I am able to load it properly on the EVM. Can you please suggest a solution?

Here are the logs:

Custom Board:

U-Boot SPL 2023.04-g24098ea90d (Jul 06 2023 - 12:59:40 +0000)
@@@@ board_init_f:158:arch/arm/mach-k3/am625_init.c
@@@@ board_init_f:170:arch/arm/mach-k3/am625_init.c
@@@@ board_init_f:182:arch/arm/mach-k3/am625_init.c
@@@@ k3_sysfw_print_ver:76:arch/arm/mach-k3/common.c
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
@@@@ board_init_f:230:arch/arm/mach-k3/am625_init.c
@@@@ spl_enable_dcache:582:arch/arm/mach-k3/common.c
SPL initial stack usage: 13376 bytes
@@@@ board_init_r:760:common/spl/spl.c
@@@@ spl_init:621:common/spl/spl.c
@@@@ board_init_r:830:common/spl/spl.c
@@@@ boot_from_devices:689:common/spl/spl.c
Trying to boot from DFU
@@@@ spl_load_image:653:common/spl/spl.c
####################################################DOWNLOAD ... OK
Ctrl+C to exit ...
alloc space exhausted
Could not get FIT buffer of 1060552 bytes
check CONFIG_SYS_SPL_MALLOC_SIZE
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Authentication passed
fdtdec_setup_memory_banksize: DRAM Bank #0: start = 0xx, size = 0xx
@@@@ board_init_r:919:common/spl/spl.c
@@@@ jump_to_image_no_args:214:arch/arm/mach-k3/common.c
@@@@ init_env:144:arch/arm/mach-k3/common.c
Loading Environment from nowhere... OK
init_env from device 10 not supported!
@@@@ jump_to_image_no_args:241:arch/arm/mach-k3/common.c
@@@@ jump_to_image_no_args:248:arch/arm/mach-k3/common.c
@@@@ jump_to_image_no_args: jumping to address 9dc1d7d0
Starting ATF on ARM64 core...

@@@@ jump_to_image_no_args:263:arch/arm/mach-k3/common.c
@@@@ jump_to_image_no_args:269:arch/arm/mach-k3/common.c
@@@@ jump_to_image_no_args:279:arch/arm/mach-k3/common.c
NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
NOTICE: BL31: Built : 00:42:57, Jan 13 2023

U-Boot SPL 2023.04-g24098ea90d (Jul 06 2023 - 12:59:40 +0000)
@@@@ board_init_f:158:arch/arm/mach-k3/am625_init.c
@@@@ board_init_f:170:arch/arm/mach-k3/am625_init.c
@@@@ k3_sysfw_print_ver:76:arch/arm/mach-k3/common.c
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
@@@@ board_init_f:230:arch/arm/mach-k3/am625_init.c
@@@@ spl_enable_dcache:582:arch/arm/mach-k3/common.c
SPL initial stack usage: 1888 bytes
@@@@ board_init_r:760:common/spl/spl.c
@@@@ spl_init:621:common/spl/spl.c
@@@@ board_init_r:800:common/spl/spl.c
** Bad device specification mmc 1 **
Couldn't find partition mmc 1:1
Error: could not access storage.
fdtdec_setup_memory_banksize: DRAM Bank #0: start = 0xx, size = 0xx
@@@@ board_init_r:830:common/spl/spl.c
@@@@ boot_from_devices:689:common/spl/spl.c
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

EVM:

U-Boot SPL 2023.04-g24098ea90d (Jul 06 2023 - 12:59:40 +0000)
@@@@ board_init_f:158:arch/arm/mach-k3/am625_init.c
@@@@ board_init_f:170:arch/arm/mach-k3/am625_init.c
@@@@ board_init_f:182:arch/arm/mach-k3/am625_init.c
@@@@ k3_sysfw_print_ver:76:arch/arm/mach-k3/common.c
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
@@@@ board_init_f:230:arch/arm/mach-k3/am625_init.c
@@@@ spl_enable_dcache:582:arch/arm/mach-k3/common.c
@@@@ dram_init:81:board/ti/am62x/evm.c
SPL initial stack usage: 13376 bytes
@@@@ board_init_r:760:common/spl/spl.c
@@@@ spl_init:621:common/spl/spl.c
@@@@ board_init_r:830:common/spl/spl.c
@@@@ boot_from_devices:689:common/spl/spl.c
Trying to boot from DFU
@@@@ spl_load_image:653:common/spl/spl.c
########################################################DOWNLOAD ... OK
Ctrl+C to exit ...
alloc space exhausted
Could not get FIT buffer of 1139252 bytes
check CONFIG_SYS_SPL_MALLOC_SIZE
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Authentication passed
@@@@ spl_perform_fixups:214:board/ti/am62x/evm.c
@@@@ fixup_ddr_driver_for_ecc:173:board/ti/am62x/evm.c
@@@@ dram_init_banksize:87:board/ti/am62x/evm.c
fdtdec_setup_memory_banksize: DRAM Bank #0: start = 0xx, size = 0xx
@@@@ board_init_r:919:common/spl/spl.c
@@@@ jump_to_image_no_args:214:arch/arm/mach-k3/common.c
@@@@ init_env:144:arch/arm/mach-k3/common.c
Loading Environment from nowhere... OK
init_env from device 10 not supported!
@@@@ jump_to_image_no_args:241:arch/arm/mach-k3/common.c
@@@@ jump_to_image_no_args:248:arch/arm/mach-k3/common.c
@@@@ jump_to_image_no_args: jumping to address 9dc1d7d0
Starting ATF on ARM64 core...

@@@@ jump_to_image_no_args:263:arch/arm/mach-k3/common.c
@@@@ jump_to_image_no_args:269:arch/arm/mach-k3/common.c
@@@@ jump_to_image_no_args:279:arch/arm/mach-k3/common.c
NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
NOTICE: BL31: Built : 00:42:57, Jan 13 2023

U-Boot SPL 2023.04-g24098ea90d (Jul 06 2023 - 12:59:40 +0000)
@@@@ board_init_f:158:arch/arm/mach-k3/am625_init.c
@@@@ board_init_f:170:arch/arm/mach-k3/am625_init.c
@@@@ k3_sysfw_print_ver:76:arch/arm/mach-k3/common.c
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
@@@@ board_init_f:230:arch/arm/mach-k3/am625_init.c
@@@@ spl_enable_dcache:582:arch/arm/mach-k3/common.c
@@@@ dram_init:81:board/ti/am62x/evm.c
SPL initial stack usage: 1888 bytes
@@@@ board_init_r:760:common/spl/spl.c
@@@@ spl_init:621:common/spl/spl.c
@@@@ board_init_r:800:common/spl/spl.c
@@@@ spl_board_init:126:board/ti/am62x/evm.c
@@@@ video_setup:94:board/ti/am62x/evm.c
MMC: no card present
** Bad device specification mmc 1 **
Couldn't find partition mmc 1:1
Error: could not access storage.
@@@@ dram_init_banksize:87:board/ti/am62x/evm.c
fdtdec_setup_memory_banksize: DRAM Bank #0: start = 0xx, size = 0xx
@@@@ board_init_r:830:common/spl/spl.c
@@@@ boot_from_devices:689:common/spl/spl.c
Trying to boot from DFU
@@@@ spl_load_image:653:common/spl/spl.c
################################################DOWNLOAD ... OK
Ctrl+C to exit ...
Authentication passed
Authentication passed
@@@@ spl_perform_fixups:214:board/ti/am62x/evm.c
@@@@ fixup_memory_node:190:board/ti/am62x/evm.c
@@@@ dram_init:81:board/ti/am62x/evm.c
@@@@ dram_init_banksize:87:board/ti/am62x/evm.c
fdtdec_setup_memory_banksize: DRAM Bank #0: start = 0xx, size = 0xx
@@@@ Jumping to U-Boot...
@@@@ board_init_r:919:common/spl/spl.c
@@@@ console_init_f:1005:common/console.c
@@@@ console_init_f:1010:common/console.c


U-Boot 2023.04-g24098ea90d (Jul 06 2023 - 12:59:40 +0000)

  • Hi Anil,

    An AM62x reference custom board is experiencing a boot failure using the USB DFU method. However, I am able to load it properly on the EVM.

    Are you using the same U-Boot binaries on both your custom board and the EVM?

    @@@@ board_init_r:830:common/spl/spl.c
    @@@@ boot_from_devices:689:common/spl/spl.c
    SPL: failed to boot from all boot devices
    ### ERROR ### Please RESET the board ###

    It appears the DFU boot mode is not running or failed somehow. Can you please debug the U-Boot function boot_from_devices() in common/spl/spl.c to understand why DFU is not started in tispl.bin?