summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunus Bas <[email protected]>2024-12-03 10:42:35 +0100
committerFabio Estevam <[email protected]>2024-12-07 09:06:32 -0300
commit6b535ce0fdb88e4ecff3282500a1ebd282ebd489 (patch)
tree7b69405f45ac471d2de8b2d6b7f3f5155081610a
parent867132cf234df95a590e9c46030079bfb6e7fe8c (diff)
board: phytec: phycore_imx8mm: Add RAUC boot logic to environment
Add RAUC boot logic to the environment. Signed-off-by: Yunus Bas <[email protected]>
-rw-r--r--board/phytec/phycore_imx8mm/phycore_imx8mm.env7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/phytec/phycore_imx8mm/phycore_imx8mm.env b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
index 44fa3731b8a..a7d14e774a0 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 ...;