board: phytec: phycore_imx8mm: Add RAUC boot logic to environment

Add RAUC boot logic to the environment.

Signed-off-by: Yunus Bas <y.bas@phytec.de>
(cherry picked from commit 6b535ce0fd)
This commit is contained in:
Yunus Bas
2024-12-03 10:42:35 +01:00
committed by Simon Glass
parent a985d5c3f5
commit 61b9ffc12b

View File

@@ -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 ...;