[PATCH] board: phytec: phycore_imx8mp: Add rauc to bootmeths

Martin Schwan M.Schwan at phytec.de
Tue Oct 7 10:35:48 CEST 2025


Hi Yannic,

On Tue, 2025-10-07 at 08:22 +0000, Yannic Moog wrote:
> Hi Martin,
> 
> Am Donnerstag, dem 02.10.2025 um 13:20 +0200 schrieb Martin Schwan:
> > Add rauc to bootmeths variable if BOOTMETH_RAUC is enabled. This is
> > setting a proper default for RAUC enabled systems.
> > 
> > Signed-off-by: Martin Schwan <m.schwan at phytec.de>
> > ---
> >  board/phytec/phycore_imx8mp/phycore_imx8mp.env | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env
> > b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
> > index
> > 9a129a0a4bfc48f1fa70ea6e2f895acac3ca05d2..70044997adb8ad1e4a7c24faa
> > 52f9d78becb
> > 229e 100644
> > --- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env
> > +++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
> > @@ -3,7 +3,11 @@ bootcmd=
> >  		fastboot 0;
> >  	fi;
> >  	bootflow scan -lb;
> > +#ifdef CONFIG_BOOTMETH_RAUC
> > +bootmeths=rauc script efi
> > +#else
> 
> can script and efi still be used with rauc, i.e. they are not
> mutually
> exclusive?

They are not exclusive. If there is no device found with a valid RAUC
system on it, then script and EFI are tried in order.

> The motivation is: Does it make sense to list them as well or should
> we only set
> bootmeths=rauc?

That is a good question. This depends on whether we want a fallback in
case no RAUC system is found (e.g. in case it is fatally broken) or
not. A fallback could be useful in case the board needs to be
recovered. Then booting via script through e.g. SD or network could be
useful.

On the other hand, there may be use-cases, where users want to only
allow booting via bootmeth rauc, e.g. for security reasons.

However, as this is a development and example board configuration, and
to keep it in sync with our AM6* boards, I'd suggest keeping the
bootmeth order as is.

Regards,
Martin

> 
> Yannic
> 
> >  bootmeths=script efi
> > +#endif
> >  boot_targets=mmc2 mmc1 usb ethernet
> >  bootenv_addr_r=0x49100000
> >  boot_script_dhcp=boot.scr.uimg
> > 
> > ---
> > base-commit: 5b93c3ec7f9d66dc40d062a47a4a880f7d346b7a
> > change-id: 20251002-wip-config-imx8m-bootmeth-rauc-726fd79f8145
> > 
> > Best regards,


More information about the U-Boot mailing list