From: "Carlo Caione" <ccaione@baylibre.com>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>,
<u-boot@lists.u-boot-project.org>,
"Carlo Caione" <ccaione@baylibre.com>,
"Jonas Karlman" <jonas@kwiboo.se>
Cc: "E Shattow" <e@freeshell.de>
Subject: Re: [PATCH v4 0/5] Add fastboot to SPL
Date: Fri, 21 Aug 2026 09:05:37 +0200 [thread overview]
Message-ID: <DKUFJ6TTK7AW.2VKPRV8CRQ70V@baylibre.com> (raw)
In-Reply-To: <jwv8q60y6nj.fsf-monnier+gmane.comp.boot-loaders.u-boot@gnu.org>
On Thu Aug 20, 2026 at 8:50 PM CEST, Stefan Monnier wrote:
> Carlo Caione [2026-08-20 20:08:24] wrote:
>> Some recovery and initial-provisioning flows need a standard host protocol
>> before usable firmware is available in persistent storage. U-Boot already
>> provides fastboot, but the implementation can currently be started only
>> from the U-Boot-proper command line.
>
> I'm curious. In my limited exposure to U-Boot, I got the impression that
> the split between SPL and U-Boot proper is mostly a "technical detail",
> usually mostly hidden from those who install it onto a device: you just
> take the combined U-Boot + SPL image and write it at the appropriate
> offset on the relevant device. And usually if SPL works, U-Boot
> also works.
>
> So a bit like Jonas in the recent "hotkey in SPL" patch for rockchip
> SoCs, I'm curious why/when we'd want to add to SPL functionality already
> supported from U-Boot.
Hi Stefan,
Thanks for the question. E Shattow's reply describes the general SPL
constraints well. The detail specific to this series is that "if SPL
works, U-Boot proper also works" assumes that U-Boot proper is already
available from storage that SPL can read and this is not always true.
More specifically the use case we are trying to tackle here is initial
provisioning or recovery of blank or corrupted persistent storage:
Boot ROM -> host-loaded bootstrap -> fastboot -> provision storage
At that point U-Boot proper may not exist on the device yet; it may be
one of the images that fastboot is expected to write on the storage
(through SPL indeed).
It is possible to include U-Boot proper in the host-loaded bootstrap and
use its existing fastboot implementation. That is a valid approach and
is preferable where the Boot ROM download limit and memory budget allow
it. But it is not always possible: some platforms (like the one we
are enabling) impose a strict size limit on the bootstrap, or only
provide enough early memory for the DDR initialization code and (small)
SPL-sized payload.
Fastboot in SPL provides the smaller alternative for those platforms.
It is intended as a provisioning endpoint, not as part of the normal
installed boot path. Once storage has been provisioned, the usual SPL-
to-U-Boot-proper flow remains unchanged.
Hope this clarify the background of this work,
Cheers!
--
Carlo Caione
next prev parent reply other threads:[~2026-08-21 7:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260820-ccaione-upstream-spl-fastboot-v4-0-57e5ef71c74d__17726.0234997206$1787249364$gmane$org@baylibre.com>
2026-08-20 18:50 ` [PATCH v4 0/5] Add fastboot to SPL Stefan Monnier
2026-08-21 4:05 ` E Shattow
2026-08-21 7:05 ` Carlo Caione [this message]
2026-08-21 12:21 ` Stefan Monnier
2026-08-21 16:13 ` Carlo Caione
2026-08-20 18:08 Carlo Caione
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=DKUFJ6TTK7AW.2VKPRV8CRQ70V@baylibre.com \
--to=ccaione@baylibre.com \
--cc=e@freeshell.de \
--cc=jonas@kwiboo.se \
--cc=monnier@iro.umontreal.ca \
--cc=u-boot@lists.u-boot-project.org \
/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