]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: phytec: phycore_imx8mp: Add RAUC boot logic to environment
authorLeonard Anderweit <l.anderweit@phytec.de>
Tue, 12 Mar 2024 14:30:33 +0000 (15:30 +0100)
committerFabio Estevam <festevam@gmail.com>
Sun, 17 Mar 2024 21:39:21 +0000 (18:39 -0300)
Add RAUC boot logic to the environment. This is the first board to
utilize this environment.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Tested-by: Teresa Remmet <t.remmet@phytec.de>
board/phytec/phycore_imx8mp/phycore_imx8mp.env

index dc9ad0fe9d154c0e685bd1a1899ba50736023ba0..fae3e992654f93a2052eb0a5208478da1d18f127 100644 (file)
@@ -1,9 +1,14 @@
+#include <env/phytec/rauc.env>
+
 bootcmd=
        if test ${dofastboot} = 1; then
                fastboot 0;
        fi;
        mmc dev ${mmcdev};
        if mmc rescan; then
+               if test ${doraucboot} = 1; then
+                       run raucinit;
+               fi;
                if run loadimage; then
                        run mmcboot;
                else
@@ -23,7 +28,7 @@ loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
 loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
 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 ...;