]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: phycore-imx93: env: Add common RAUC boot logic
authorMartin Schwan <m.schwan@phytec.de>
Thu, 10 Apr 2025 08:41:22 +0000 (10:41 +0200)
committerFabio Estevam <festevam@gmail.com>
Fri, 11 Apr 2025 13:00:59 +0000 (10:00 -0300)
Add a common RAUC boot logic environment and make use of it in the
i.MX93 environment. The RAUC boot logic is deactivated by default and
can be activated by setting "doraucboot" to "1".

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Reviewed-by: Leonard Anderweit <l.anderweit@phytec.de>
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
board/phytec/phycore_imx93/phycore_imx93.env

index 3a36597cae8457e1850b00cf861898acaf5025ac..3b2f30118e762e760901864e31114747dfeaf606 100644 (file)
@@ -1,10 +1,14 @@
 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
 
+#include <env/phytec/rauc.env>
 #include <env/phytec/overlays.env>
 
 bootcmd=
        mmc dev ${mmcdev};
        if mmc rescan; then
+               if test ${doraucboot} = 1; then
+                       run raucinit;
+               fi;
                if run loadimage; then
                        run mmcboot;
                else