]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
include: env: phytec: Add raucinit to k3_mmc environment
authorDaniel Schultz <d.schultz@phytec.de>
Fri, 30 Aug 2024 09:09:30 +0000 (02:09 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 10 Sep 2024 19:16:01 +0000 (13:16 -0600)
Initialize the environment for booting an RAUC image when
'doraucboot' is set to 1.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
include/env/phytec/k3_mmc.env

index 2bce4f77d2d124c38d8c04d4553013c539cb0f1a..ad8d3a8b7642c380a7aa0fa75cae81fbf1aa64a9 100644 (file)
@@ -7,12 +7,14 @@
 /* Logic for TI K3 based SoCs to boot from a MMC device. */
 
 #include <env/phytec/overlays.env>
+#include <env/phytec/rauc.env>
 
 mmcargs=setenv bootargs console=${console} earlycon=${earlycon}
-       root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
+       root=/dev/mmcblk${mmcdev}p${mmcroot} ${raucargs} rootwait rw
 mmcloadimage=load mmc ${mmcdev}:${mmcpart} ${kernel_addr_r} Image
 mmcloadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
-mmcboot=run mmcargs;
+mmcboot=if test ${doraucboot} = 1; then run raucinit; fi;
+       run mmcargs;
        mmc dev ${mmcdev};
        mmc rescan;
        run mmcloadimage;