From: Nikolay Dimitrov <picmaster@mail.bg>
To: u-boot@lists.denx.de
Subject: [U-Boot] Booting Wandboard through USB
Date: Mon, 01 Jun 2015 01:54:35 +0300 [thread overview]
Message-ID: <556B912B.3090409@mail.bg> (raw)
In-Reply-To: <556A190C.2010704@boundarydevices.com>
Hi all,
On 05/30/2015 11:09 PM, Eric Nelson wrote:
> On 05/30/2015 10:24 AM, Vincent Stehl? wrote:
>> On 05/30/2015 06:49 PM, Tom Rini wrote:
>> ..
>>> The second would be trying to "fake" things such that for
>>> imx_usb_loader you can pass both SPL and u-boot.img, and SPL is
>>> run, inits memory and just exists and then u-boot.img is loaded
>>> and run, similar to how with the non-SPL case you can use the
>>> loader to pass in u-boot.imx as well as a kernel, ramdisk, etc,
>>> into DDR.
>>
>> I wonder if we could use the i.MX6 ROM "plugin"[1] mechanism with u-boot
>> SPL, to download it through USB, have it configure the DDR and return to
>> the ROM, in a way that would allow us to resume downloading the second
>> stage u-boot through USB...
>>
>> Best regards,
>>
>> V.
>>
>> [1] Chapter "8.8 Plugin Image" of the i.MX6D/Q Reference Manual.
>
> ;) This is an even older idea:
> http://lists.denx.de/pipermail/u-boot/2012-September/thread.html#134444
>
> In my earlier e-mail, I said that this was more complicated because
> it involves hacking the image creation process (and perhaps some
> linker scripts).
>
> It also requires that SPL images have some form of flag telling them
> not to boot, but return to the ROM boot loader after initializing DDR
> (i.e. they need to optionally act like a plugin).
According to the RM, the plugin image is expected to load the actual
boot image in memory and report the start/len/ivt parameters to the
boot ROM. Then I see 2 problems:
1. It seems that at this exact point if the plugin returned "success"
the boot ROM will start executing the downloaded image and there's no
intent to download anything else from USB.
2. Even if there was a way for the boot ROM to download more data, the
previous communication sequence ends with "jump header" (in imx-usb-
loader jargon) which means we can't differentiate between boot ROM
returning for more boot data, and a fresh new boot session.
Regards,
Nikolay
next prev parent reply other threads:[~2015-05-31 22:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-29 9:46 [U-Boot] Booting Wandboard through USB Vincent Stehlé
2015-05-30 16:49 ` Tom Rini
2015-05-30 17:24 ` Vincent Stehlé
2015-05-30 20:09 ` Eric Nelson
2015-05-30 20:38 ` Tom Rini
2015-05-31 22:54 ` Nikolay Dimitrov [this message]
2015-05-31 23:15 ` Nikolay Dimitrov
2015-06-01 8:10 ` Stefano Babic
2015-06-01 16:03 ` Tim Harvey
2015-06-01 16:28 ` Nikolay Dimitrov
2015-06-01 16:38 ` Tim Harvey
2015-06-02 14:25 ` Tom Rini
2015-06-02 15:00 ` Tim Harvey
2015-06-01 16:08 ` Nikolay Dimitrov
2015-05-30 17:41 ` Eric Nelson
2015-05-30 19:25 ` Tom Rini
2015-05-30 19:53 ` Eric Nelson
2015-07-24 0:59 ` Fabio Estevam
2015-05-30 16:49 ` Fabio Estevam
-- strict thread matches above, loose matches on Subject: below --
2017-07-27 9:05 Vincent Prince
2017-07-27 20:54 ` Wolfgang Denk
2017-08-05 12:22 ` Fabio Estevam
2017-08-05 13:44 ` Vincent Prince
2017-08-05 15:46 ` Tom Rini
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=556B912B.3090409@mail.bg \
--to=picmaster@mail.bg \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox