[PATCH v2 21/22] arm: stm32mp: stm32prog: add support rootfs-a for OTA
Patrice CHOTARD
patrice.chotard at foss.st.com
Mon Apr 28 15:24:23 CEST 2025
On 4/25/25 15:15, Patrice Chotard wrote:
> From: Patrick Delaunay <patrick.delaunay at foss.st.com>
>
> Add support of "rootfs-a" name to allow support of A/B mechanism for OTA
> on rootfs.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>
> ---
>
> (no changes since v1)
>
> arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
> index f6395bad0ec..5b027fad048 100644
> --- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
> +++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
> @@ -1157,7 +1157,8 @@ static int create_gpt_partitions(struct stm32prog_data *data)
>
> /* partition UUID */
> uuid_bin = NULL;
> - if (!rootfs_found && !strcmp(part->name, "rootfs")) {
> + if (!rootfs_found && (!strcmp(part->name, "rootfs") ||
> + !strcmp(part->name, "rootfs-a"))) {
> mmc_id = part->dev_id;
> rootfs_found = true;
> if (mmc_id < ARRAY_SIZE(uuid_mmc))
Applied to u-boot-stm32/master
Thanks
Patrice
More information about the U-Boot
mailing list