All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Support fastboot boot in SPL
@ 2026-11-04  9:40 Carlo Caione
  2026-11-04  9:40 ` [PATCH v2 1/7] spl: fit: reject failures loading an explicitly requested FDT Carlo Caione
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Carlo Caione @ 2026-11-04  9:40 UTC (permalink / raw)
  To: York Sun, Philipp Tomsich, u-boot, Sebastian Siewior, Rob Herring
  Cc: Tom Rini, Simon Glass, Francesco Valla, Anton Ivanov, Aristo Chen,
	Carlo Caione, Mattijs Korpershoek, Petr Hodina, Igor Opaniuk,
	Guillaume La Roque, Lukasz Majewski, Marek Vasut, Quentin Schulz,
	Marek Vasut, Michal Simek, Peng Fan, Daniel Golle, Sam Day,
	Pengpeng Hou, Alexey Charkov

Test farms need to run successive U-Boot builds without rewriting boot
storage. Add optional fastboot boot support to SPL so an already-running
SPL can receive U-Boot over USB and hand off to it in RAM. U-Boot proper can
then load the operating system using its usual boot methods.

The standard host command, fastboot boot u-boot.itb, accepts a FIT built
for the target, including any firmware required by its SPL handoff.
Uncompressed legacy U-Boot images and raw binaries are also supported
when enabled by the board. Raw binaries use the board's configured load
and entry addresses. Legacy and raw downloads are rejected when SPL FIT
signature verification is enabled.

The series reuses the SPL RAM loader and normal SPL handoff. It also fixes
ignored errors when loading an explicitly requested FIT device tree and
invalidates stale or incomplete fastboot downloads, so neither can be
used to boot an unintended image.

---
Changes in v2:
- Split the USB boot acknowledgment fix into a preliminary patch.
- Explain the FDT output initialization when a missing FDT is tolerated.
- Keep the RAM reader's sector argument name and debug trace.
- Collect Reviewed-by tags from Mattijs Korpershoek and
  Guillaume La Roque.
- Link to v1: https://patch.msgid.link/20261014-ccaione-upstream-spl-fastboot-boot-v1-0-d29df15fb9b8@baylibre.com

---
Carlo Caione (7):
      spl: fit: reject failures loading an explicitly requested FDT
      fastboot: invalidate stale and incomplete downloads
      usb: gadget: fastboot: do not boot after a failed acknowledgment
      spl: ram: allow loading FIT images from a supplied buffer
      spl: support booting FIT images downloaded with fastboot
      spl: fastboot: support legacy U-Boot images
      spl: fastboot: support raw U-Boot images

 MAINTAINERS                     |   3 +
 common/spl/Makefile             |   1 +
 common/spl/spl_fastboot_boot.c  |  76 +++++++++++++
 common/spl/spl_fit.c            |  16 ++-
 common/spl/spl_ram.c            |  98 +++++++++++++----
 configs/sandbox_spl_defconfig   |   1 +
 doc/android/fastboot.rst        |  56 +++++++++-
 drivers/fastboot/Kconfig        |  16 +++
 drivers/fastboot/fb_command.c   |  43 +++++++-
 drivers/fastboot/fb_common.c    |   3 +-
 drivers/usb/gadget/f_fastboot.c |   9 +-
 include/fastboot-internal.h     |   3 +
 include/fastboot.h              |   8 ++
 include/spl.h                   |  25 +++++
 include/spl_load.h              |   2 +
 test/image/Kconfig              |   9 ++
 test/image/Makefile             |   2 +
 test/image/spl_fastboot.c       | 230 ++++++++++++++++++++++++++++++++++++++++
 test/image/spl_load.c           |  46 +++++++-
 test/image/spl_ram.c            |  48 +++++++++
 20 files changed, 668 insertions(+), 27 deletions(-)
---
base-commit: ab4dc5aacf957835c295b59ef2dd28281839cb20
change-id: 20261014-ccaione-upstream-spl-fastboot-boot-5d8e28a700ad

Best regards,
--  
Carlo Caione <ccaione@baylibre.com>


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-11-16 13:08 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04  9:40 [PATCH v2 0/7] Support fastboot boot in SPL Carlo Caione
2026-11-04  9:40 ` [PATCH v2 1/7] spl: fit: reject failures loading an explicitly requested FDT Carlo Caione
2026-11-06 14:15   ` Mattijs Korpershoek
2026-11-04  9:40 ` [PATCH v2 2/7] fastboot: invalidate stale and incomplete downloads Carlo Caione
2026-11-04  9:40 ` [PATCH v2 3/7] usb: gadget: fastboot: do not boot after a failed acknowledgment Carlo Caione
2026-11-06 14:15   ` Mattijs Korpershoek
2026-11-04  9:40 ` [PATCH v2 4/7] spl: ram: allow loading FIT images from a supplied buffer Carlo Caione
2026-11-06 14:15   ` Mattijs Korpershoek
2026-11-04  9:40 ` [PATCH v2 5/7] spl: support booting FIT images downloaded with fastboot Carlo Caione
2026-11-06 14:15   ` Mattijs Korpershoek
2026-11-04  9:40 ` [PATCH v2 6/7] spl: fastboot: support legacy U-Boot images Carlo Caione
2026-11-04  9:40 ` [PATCH v2 7/7] spl: fastboot: support raw " Carlo Caione
2026-11-13 16:21 ` [PATCH v2 0/7] Support fastboot boot in SPL Mattijs Korpershoek
2026-11-16 10:40   ` Mattijs Korpershoek
2026-11-16 12:55     ` Carlo Caione
2026-11-16 13:08       ` Mattijs Korpershoek

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.