[U-Boot] Using spi_alloc_slave() from SPL

Fabio Estevam festevam at gmail.com
Tue Nov 10 00:28:27 CET 2015


On Thu, Aug 6, 2015 at 7:13 PM, Fabio Estevam <festevam at gmail.com> wrote:
> Hi Simon,
>
> On Thu, Aug 6, 2015 at 4:31 PM, Simon Glass <sjg at chromium.org> wrote:
>
>> Please check the README about the SPL flow. From what I can see
>> malloc() is not available before board_init_r() in SPL.
>>
>> However, if you add a call to spl_init() from your board_init_f(),
>> then early malloc would be available. Enable this with
>> CONFIG_SYS_MALLOC_F_... as people explained.
>
> Cool, calling spl_init() from board_init_f() allows malloc to work fine.

Just noticed that this no longer works in mainline U-boot:

U-Boot SPL 2015.10-00527-g8800bee (Nov 09 2015 - 21:23:54)
mxc_spi: SPI Slave not allocated !


More information about the U-Boot mailing list