[0/4] Support metadata-driven A/B boot for STM32MP25
mbox series

Message ID 20260328171624.2377527-1-dario.binacchi@amarulasolutions.com
Headers show
Series
  • Support metadata-driven A/B boot for STM32MP25
Related show

Message

Dario Binacchi March 28, 2026, 5:15 p.m. UTC
This series, the mainline version of [1], provides the necessary changes
in U-Boot to support the metadata-driven A/B update flow for STM32MP25
boards. It implements the logic required to dynamically select the boot
bank based on FWU metadata.

These changes are designed to be backward compatible while providing
the necessary infrastructure for the A/B scheme.

The series has been tested on the STM32MP257F-EV1 board.

Additionally, patches 1 to 3 propose some changes with general-purpose
utility:

 1/4 fwu: add helper to get image GUID by type and bank index
 2/4 cmd: part: support lookup by UUID in 'part number'
 3/4 lib: uuid: add partition type GUID for extended bootloader

[1] https://github.com/STMicroelectronics/u-boot/pull/6


Dario Binacchi (4):
  lib: uuid: add partition type GUID for extended bootloader
  cmd: part: support lookup by UUID in 'part number'
  fwu: add helper to get image GUID by type and bank index
  board: st: stm32mp25: support dynamic A/B bank bootup

 board/st/stm32mp2/stm32mp2.c          | 25 +++++++++++++++++++++++++
 cmd/part.c                            |  8 ++++++--
 doc/README.gpt                        |  2 ++
 include/configs/stm32mp25_st_common.h | 15 +++++++++++++++
 include/fwu.h                         |  3 +++
 include/part_efi.h                    |  3 +++
 lib/fwu_updates/fwu.c                 | 24 ++++++++++++++++++++++++
 lib/uuid.c                            |  1 +
 8 files changed, 79 insertions(+), 2 deletions(-)