[U-Boot] u-boot 2018 SPI SPL

Fabio Estevam festevam at gmail.com
Wed Apr 18 13:25:02 UTC 2018


Hi Mehmet,

On Wed, Apr 18, 2018 at 3:56 AM, Mehmet Ali İPİN
<mehmet.ipin at pavotek.com.tr> wrote:
> Dear Fabio,
>
> I manually set spl_boot_list[]  array with SPI, eMMCx, USB RAM etc.
> For SPI NOR flash loader = spl_ll_find_loader(spl_boot_list[i])
> function (in spl.c) is returning a negative loader->boot_device number  -442503140
>
> May be there is a definition in u-boot/SPL config files to make file to generate SPI NOR flash boot code, instead of MMC,
> Which enable this SPL function to return positive correct value for SPI NOR Flash?
>
> eMMC is working, but I did not put SPL and u-boot in eMMC;
> May be you can give me a link explaining how to SPL+u-boot.img to eMMC flash commands.

You can check board/warp7/README

> I added puts() messages to trace the execution;
>
> These are the messages at terminal.
>
>
> U-Boot SPL 2018.05-rc1 (Apr 17 2018 - 22:43:50 -0700)
> SPL set_bd()
> SPL DRAM initialized
> SPL Malloc; gd flags
> board boot order spl boot list
> spl_boot_list:8
> spl_boot_list:8
> Trying to boot from -442503140

You need to debug why you are getting this.

Make sure your board is correctly configured to boot from SPI NOR via
GPIO/fuses.


More information about the U-Boot mailing list