Skip to content

Support metadata-driven A/B boot for STM32MP2#13

Open
passgat wants to merge 2 commits intoSTMicroelectronics:v2.10-stm32mpfrom
passgat:fw-update-ab
Open

Support metadata-driven A/B boot for STM32MP2#13
passgat wants to merge 2 commits intoSTMicroelectronics:v2.10-stm32mpfrom
passgat:fw-update-ab

Conversation

@passgat
Copy link

@passgat passgat commented Mar 18, 2026

This series introduces support for the metadata-driven A/B update flow
in ARM Trusted Firmware, specifically targeting STM32MP2 platforms.
These changes are designed to be backward compatible while providing
the necessary infrastructure for the A/B scheme described in the
meta-st-{openstlinux,stm32mp} PRs [1] and [2].

Please refer to them for the full technical rationale and implementation
details of the fw-update-ab feature.

The specific patch to enable A/B support with multiple FWU images is not
included in this series. Since U-Boot strictly verifies that the number
of images defined in the metadata matches NR_OF_IMAGES_IN_FW_BANK, this
non-backward-compatible change has been moved to the meta-st-stm32mp layer [3].
It will be applied only when the A/B feature is explicitly enabled,
ensuring the system remains functional for standard configurations.

[1] STMicroelectronics/meta-st-openstlinux#16
[2] STMicroelectronics/meta-st-stm32mp#110
[3] 0004-feat-stm32mp2-enable-A-B-redundancy-support.patch

passgat added 2 commits March 15, 2026 13:58
Add GUID definitions for Linux Filesystem Data and XBOOTLDR partitions
to the EFI partition driver.

These definitions are required to identify and filter these partition
types during the boot process, specifically to support FWU multi-bank
A/B update scenarios.

Signed-off-by: Dario Binacchi <[email protected]>
Define IO policies and block specifications for BootFS and RootFS
partitions to support A/B redundancy systems on STM32MP2.

The patch registers FWU_BOOTFS_ID and FWU_ROOTFS_ID, mapping them to
their respective GUIDs (XBOOTLDR and Linux FS). This allows the platform
to correctly identify and access the required partitions for each bank
in A/B boot scenarios.

The MAX_NUMBER_IDS is increased to accommodate these new entries in
the platform storage pool.

Signed-off-by: Dario Binacchi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant