[PATCH] bootstd: rauc: Change global method to check any partition

Wadim Egorov w.egorov at phytec.de
Wed Aug 13 15:32:53 CEST 2025


Hi Martin,

On 8/12/25 3:38 PM, Martin Schwan wrote:
> The bootmeth rauc should scan all partitions, in particular whole
> devices, and not be a global method. There may exist multiple RAUC
> systems on different devices and they should all be detected. This also
> fixes a bug, where both a global bootflow and one using an actual,
> complete device would be detected at the same time, when scanning for
> valid bootflows.
> 
> Signed-off-by: Martin Schwan <m.schwan at phytec.de>

thank you,

Tested-by: Wadim Egorov <w.egorov at phytec.de>


> ---
>   boot/bootmeth_rauc.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/boot/bootmeth_rauc.c b/boot/bootmeth_rauc.c
> index cc6180221ed90934801ebd801a7bd1b3fc889aec..7c1a895139e8116054e6c331fc0acd967cfbc7e4 100644
> --- a/boot/bootmeth_rauc.c
> +++ b/boot/bootmeth_rauc.c
> @@ -410,7 +410,7 @@ static int distro_rauc_bootmeth_bind(struct udevice *dev)
>   	struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev);
>   
>   	plat->desc = "RAUC distro boot from MMC";
> -	plat->flags = BOOTMETHF_GLOBAL;
> +	plat->flags = BOOTMETHF_ANY_PART;
>   
>   	return 0;
>   }
> 
> ---
> base-commit: 123cd77122a13288e1552b5d9b7c22a6f19e2e02
> change-id: 20250808-wip-bootmeth-rauc-flag-any-part-9d5c609291c6
> 
> Best regards,



More information about the U-Boot mailing list