All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v2 0/5] Add fastboot to SPL
@ 2026-07-22 20:43 Carlo Caione via U-Boot
  2026-07-22 20:43 ` [PATCH RFC v2 1/5] fastboot: factor out the USB session runner Carlo Caione via U-Boot
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Carlo Caione via U-Boot @ 2026-07-22 20:43 UTC (permalink / raw)
  To: u-boot, GSS_MTK_Uboot_upstream
  Cc: Mattijs Korpershoek, Tom Rini, Quentin Schulz, Sam Day,
	Julien Masson, Vitor Sato Eschholz, David Lechner,
	Lukasz Majewski, Marek Vasut, Peng Fan, Jaehoon Chung,
	Neil Armstrong, Alexey Charkov, Adrian Freihofer, Francois Berder,
	Ilias Apalodimas, Peter Robinson, Vincent Jardin, Casey Connolly,
	Heiko Schocher, Carlo Caione

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.

This series makes USB fastboot available as an opt-in SPL service,
including MMC partition flashing and Android sparse images. The interface
is kept deliberately narrower in SPL: it does not support the boot command
or filesystem probing, and reboot support remains platform-dependent.

The first four patches separate the generic preparation from SPL
enablement. They factor out the USB session runner, route USB reboot
through the common handler, make shared fastboot configuration phase-aware,
and add phase-aware sparse-image support. The final patch then contains the
SPL-specific Kconfig, gadget behavior, and documentation.

No fastboot code or supporting library is added to SPL when SPL_FASTBOOT is
disabled, so the feature has no size cost for existing SPL builds.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
Changes in v2:
- Split the common USB session runner into a prerequisite patch.
- Route USB reboot through the common fastboot handler separately.
- Split phase-aware fastboot configuration and build rules.
- Split phase-aware Android sparse-image support.
- Keep SPL-specific behavior in the final patch.
- No functional change from v1.
- Link to v1: https://patch.msgid.link/20260719-ccaione-upstream-spl-fastboot-v1-1-c9bab5b0ba72@baylibre.com

---
Carlo Caione (5):
      fastboot: factor out the USB session runner
      fastboot: use the common handler for USB reboot
      fastboot: make shared configuration checks phase-aware
      image: sparse: add phase-aware SPL support
      fastboot: add SPL support

 cmd/fastboot.c                  | 60 +++++----------------------
 doc/android/fastboot.rst        | 27 ++++++++++++-
 drivers/Makefile                |  2 +-
 drivers/fastboot/Kconfig        | 89 ++++++++++++++++++++++++++++++++++++++++-
 drivers/fastboot/Makefile       | 13 ++++--
 drivers/fastboot/fb_block.c     |  9 ++---
 drivers/fastboot/fb_command.c   | 58 +++++++++++++++++++--------
 drivers/fastboot/fb_common.c    | 25 +++++++++++-
 drivers/fastboot/fb_getvar.c    | 19 +++++----
 drivers/fastboot/fb_mmc.c       | 36 ++++++++---------
 drivers/fastboot/fb_usb.c       | 68 +++++++++++++++++++++++++++++++
 drivers/usb/gadget/Makefile     |  1 +
 drivers/usb/gadget/f_fastboot.c |  6 ++-
 include/fastboot.h              | 10 +++++
 lib/Kconfig                     | 11 +++++
 lib/Makefile                    |  3 +-
 lib/image-sparse.c              |  2 +-
 17 files changed, 328 insertions(+), 111 deletions(-)
---
base-commit: 1b8283bd3220e898d338fb98929f0b06ed63da84
change-id: 20260718-ccaione-upstream-spl-fastboot-14fa2b6b2b64

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


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

end of thread, other threads:[~2026-07-28 11:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-22 20:43 [PATCH RFC v2 0/5] Add fastboot to SPL Carlo Caione via U-Boot
2026-07-22 20:43 ` [PATCH RFC v2 1/5] fastboot: factor out the USB session runner Carlo Caione via U-Boot
2026-07-22 21:16   ` David Lechner via U-Boot
2026-07-22 20:43 ` [PATCH RFC v2 2/5] fastboot: use the common handler for USB reboot Carlo Caione via U-Boot
2026-07-23  8:50   ` Neil Armstrong
2026-07-28 11:36     ` Carlo Caione
2026-07-22 20:43 ` [PATCH RFC v2 3/5] fastboot: make shared configuration checks phase-aware Carlo Caione via U-Boot
2026-07-22 20:43 ` [PATCH RFC v2 4/5] image: sparse: add phase-aware SPL support Carlo Caione via U-Boot
2026-07-22 20:43 ` [PATCH RFC v2 5/5] fastboot: add " Carlo Caione via U-Boot

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.