diff options
author | Daniel Schultz <d.schultz@phytec.de> | 2024-08-30 02:09:30 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-09-10 13:16:01 -0600 |
commit | 8cafb21215c15b41361b4c7356cc5bcdc34aa26b (patch) | |
tree | 31b52cc8ba68a848a9b548f28486689182cc89e6 | |
parent | 80c4f6f9f28109bcaed850b76a2036c57e0e6225 (diff) | |
download | u-boot-8cafb21215c15b41361b4c7356cc5bcdc34aa26b.tar.gz |
include: env: phytec: Add raucinit to k3_mmc environment
Initialize the environment for booting an RAUC image when
'doraucboot' is set to 1.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
-rw-r--r-- | include/env/phytec/k3_mmc.env | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env index 2bce4f77d2d..ad8d3a8b764 100644 --- a/include/env/phytec/k3_mmc.env +++ b/include/env/phytec/k3_mmc.env @@ -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; |