The Raspberry Pi has the "tryboot" feature where it can boot from a different partition enabling failsafe A/B updates. After boot the firmware adds some properties in /chosen/bootloader, e.g. partition.
Pass this node through to the OS devicetree and use partition to set the environment variable boot_partition. Changes in v4: - Split into two patches - update commit messages - Drop Reviewed-by-tag again - Link to v3: https://patch.msgid.link/[email protected] Changes in v3: - Copy the complete '/chosen/bootloader' node instead of only the partition property - Link to v2: https://patch.msgid.link/[email protected] Changes in v2: - update Reviewed-by tag Signed-off-by: Gregor Herburger <[email protected]> --- Gregor Herburger (2): rpi: set boot partition from devicetree rpi: pass the bootloader node through to the OS devicetree board/raspberrypi/rpi/rpi.c | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) --- base-commit: baa64b2f892890f00a377eac4a3e685472bb56b5 change-id: 20260803-tryboot2-8c5221376e5a Best regards, -- Gregor Herburger <[email protected]>
