Other Parts Discussed in Thread: DRA722, AM5718
Tool/software: Linux
Hi,
We developed a new custom board with AM571x processor and using ti-processor-sdk-linux-am57xx-evm-02.00.01.07. When I try to boot the program using SD card, I am always getting the below log only
U-Boot SPL 2015.07-00080-g4523775-dirty (Jan 18 2017 - 19:27:25)
DRA722 ES1.0
Then i started debugging what is the problem with the booting procedure. Actually board was able to get MLO file from SD card and then while executing MLO I am facing a strange problem. Once MLO file was copied then while initializing MMC1 in the function omap_mmc_init, i have added some debug messages, then I found that malloc function fails and hence MMC1 is not initializing and so it was unable to copy u-boot.img and proceed further. The same MLO code actually worked for me in my previous board containing AM572x processor. Any guess for this scenario, do I need to take any care since I am using AM571x instead of AM572x.
debug("\n Entered omap_mmc_init ");
debug("\nSize required %d ",sizeof(*priv_data));
priv_data = malloc(sizeof(*priv_data));
if (priv_data == NULL)
{
debug("\n No Sufficient Memory for priv_data ");
return -1;
}
Log after adding debug messages:
U-Boot SPL 2015.07-00080-g4523775-dirty (Jan 18 2017 - 19:27:25)
DRA722 ES1.0
spl board init boot device - 5
CONFIG_SPL_MMC_SUPPORT = 5
Entered spl_mmc_load_image 1076960308
Entered board_mmc_init
Entered omap_mmc_init
Size required 44
No Sufficient Memory for priv_data
Entered do_preinit
List Entry
Best Regards,
Ganesh

