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.

关于uboot 2011.09版本添加spi boot的问题

准备在三方开发板提供的uboot源码上添加spi flash启动的功能,该uboot版本为2011.09,在spl.c文件的board_init_r中未发现spi_load_image的分支。于是在官方sdk包中的uboot(版本为2014.07)提取分支代码,将spl_spi_load_image函数及其调用的部分代码复制过来。在编译时提示找不到malloc函数的实现。

请问在MLO阶段是否可调用malloc函数,该函数实现代码在哪,另外添加spi boot是否有其他更合适的途径。