[PATCH 3/3] board: phytec: phycore_imx8mm: Add RAUC boot logic to environment
Yannic Moog
Y.Moog at phytec.de
Mon Nov 25 10:26:18 CET 2024
On Fri, 2024-11-22 at 11:28 +0100, Yunus Bas wrote:
> Add RAUC boot logic to the environment.
>
> Signed-off-by: Yunus Bas <y.bas at phytec.de>
Reviewed-by: Yannic Moog <y.moog at phytec.de>
> ---
> board/phytec/phycore_imx8mm/phycore_imx8mm.env | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/board/phytec/phycore_imx8mm/phycore_imx8mm.env
> b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
> index 2058bf59235..1073e1327e6 100644
> --- a/board/phytec/phycore_imx8mm/phycore_imx8mm.env
> +++ b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
> @@ -1,6 +1,11 @@
> +#include <env/phytec/rauc.env>
> +
> bootcmd=
> mmc dev ${mmcdev};
> if mmc rescan; then
> + if test ${doraucboot} = 1; then
> + run raucinit;
> + fi;
> if run loadimage; then
> run mmcboot;
> else
> @@ -17,7 +22,7 @@ loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
> loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
> mmcargs=
> setenv bootargs console=${console}
> - root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
> + root=/dev/mmcblk${mmcdev}p${mmcroot} ${raucargs} rootwait rw
> mmcautodetect=yes
> mmcboot=
> echo Booting from mmc ...;
More information about the U-Boot
mailing list