Hi All,
I am working on AM437x custom board to bringup the SPL and u-boot using the Ethernet flash boot mode(Here I am using the Linux setup) using the TFTP service.
SPL boot-loader execution stopped on AM437x after below SPL message.
U-Boot SPL 2016.05-00230-g5bf448d-dirty (Aug 30 2016 - 18:53:40)
To debug, I have added more debug prints to check where this execution halted. I was came to know that the memory allocation was failed and halted the execution. For your reference I have pasted the debug console messages with more debug prints.
Could you please have a look and suggest us how can we override this issue and proceed further.
############## Debug Console #####################
U-Boot SPL 2016.05-00230-g5bf448d-dirty (Aug 30 2016 - 18:53:40)
LnT: debug func: preload_console_init
LNT: func: spl_board_init line:188
LNT debug spl_board_init
LNT: func: gpmc_init line:81
LNT: func: gpmc_init line:103
LNT: func: gpmc_init line:133
gpmc_cfg address: 0x80a00000
gpmc_cfg address: 0x50000000
gpmc_cfg->sysconfig address: 0x50000010
gpmc_cfg->irqstatus address: 0x50000018
gpmc_cfg->irqenable address: 0x5000001c
LNT: func: gpmc_init line:141
LNT: func: gpmc_init line:143
LNT: func: gpmc_init line:145
LNT: func: gpmc_init line:148
LNT: func: gpmc_init line:154
LNT: func: enable_gpmc_cs_config line:56
LNT: func: enable_gpmc_cs_config line:70
LNT: func: gpmc_init line:164
LNT: func: spl_board_init line:192
LNT: func: spl_board_init line:195
LNT: func: spl_board_init line:210
LNT: func : [board_init_r] line [522]
LNT: func : [board_init_r] line [523] spl_boot_list[0]: [4194320]
LNT: func : [board_boot_order] line [218]
LNT: func: spl_boot_device line:168
LNT: func : [board_init_r] line [525] spl_boot_list[0]: [71]
Trying to boot from net
LNT: func : [spl_load_image] line [302]
Using default environment
himport_r: can't malloc 102 bytes
ERROR: Environment import failed: errno = 12
at ../common/env_common.c:123/set_default_env()
Initial value for argc=3
Final value for argc=3
## Can't malloc 4 bytes
##################################################
I appreciate your quick response on this.
Thanks & Regards
Ch. Siva