From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolay Dimitrov Date: Thu, 13 Aug 2015 15:37:45 +0300 Subject: [U-Boot] Using spi_alloc_slave() from SPL In-Reply-To: References: <55C36368.1070701@denx.de> <201508061628.38401.marex@denx.de> <55C3935C.8020305@denx.de> Message-ID: <55CC8F99.4050604@mail.bg> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Fabio, guys, On 08/07/2015 01:13 AM, Fabio Estevam wrote: > Hi Simon, > > On Thu, Aug 6, 2015 at 4:31 PM, Simon Glass 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. > > Thanks a lot! > > Fabio Estevam Thanks for sharing this info, it seems it will solve a similar problem of mine on the latest U-Boot code (SPI slave malloc not working during SPL boot from SPI NOR). Regards, Nikolay