All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mehmet Ali İPİN" <mehmet.ipin@pavotek.com.tr>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot 2018 SPI SPL
Date: Wed, 18 Apr 2018 06:56:32 +0000	[thread overview]
Message-ID: <b0ea84cfe34547dc908c205db5285271@pavotek.com.tr> (raw)
In-Reply-To: <CAOMZO5CgQPS07T_iV4MoYocwj2Nx9HumqieSj_iWG86B2nceuw@mail.gmail.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="euc-tw", Size: 1858 bytes --]

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@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@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.

  reply	other threads:[~2018-04-18  6:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-12 13:17 [U-Boot] u-boot 2018 SPI SPL Mehmet Ali İPİN
2018-04-12 13:27 ` Fabio Estevam
2018-04-12 13:35   ` Mehmet Ali İPİN
2018-04-13 13:13     ` Mehmet Ali İPİN
2018-04-13 13:44       ` Fabio Estevam
2018-04-16 11:36         ` Mehmet Ali İPİN
2018-04-16 11:49           ` Fabio Estevam
2018-04-18  6:56             ` Mehmet Ali İPİN [this message]
2018-04-18 13:25               ` Fabio Estevam
2018-04-20  6:43                 ` Mehmet Ali İPİN
2018-04-20 23:40                   ` Fabio Estevam
2018-04-30  6:24                     ` Mehmet Ali İPİN
2018-05-02 17:27                       ` Fabio Estevam
2018-05-03  5:52                         ` Mehmet Ali İPİN
2018-05-08  7:13                         ` Mehmet Ali İPİN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b0ea84cfe34547dc908c205db5285271@pavotek.com.tr \
    --to=mehmet.ipin@pavotek.com.tr \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.