[U-Boot] u-boot 2018 SPI SPL

Mehmet Ali İPİN mehmet.ipin at pavotek.com.tr
Wed Apr 18 06:56:32 UTC 2018


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.


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
SPL: Unsupported Boot Device!
spl_boot_list:8
Trying to boot from 1
Trying to boot from MMC1

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:12
spl_boot_list:12
Trying to boot from 12
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 349576 to 0x177fffc0... done
Jumping to header at 0x177fffc0
Header Tag is not an IMX image



-----Original Message-----
From: Fabio Estevam [mailto:festevam at gmail.com] 
Sent: Monday, April 16, 2018 2:50 PM
To: Mehmet Ali İPİN <mehmet.ipin at pavotek.com.tr>
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] u-boot 2018 SPI SPL

Hi Mehmet,

On Mon, Apr 16, 2018 at 8:36 AM, Mehmet Ali İPİN <mehmet.ipin at pavotek.com.tr> wrote:

> U-Boot SPL 2018.05-rc1 (Apr 16 2018 - 00:31:02 -0700)
> SPL: Unsupported Boot Device!

You need to debug why you are getting this message when booting from SPI.


More information about the U-Boot mailing list