diff options
author | Leonard Anderweit <l.anderweit@phytec.de> | 2024-03-12 15:30:33 +0100 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2024-03-17 18:39:21 -0300 |
commit | e30abefcb59853825c116ceb1d6e735bd078759a (patch) | |
tree | 96d6d87e6a32875dc0671de781ba2f4c15f203fc | |
parent | fac1bd63415c6f2dbc3b3abaf60e9cb08949f39c (diff) | |
download | u-boot-e30abefcb59853825c116ceb1d6e735bd078759a.zip u-boot-e30abefcb59853825c116ceb1d6e735bd078759a.tar.gz u-boot-e30abefcb59853825c116ceb1d6e735bd078759a.tar.bz2 |
board: phytec: phycore_imx8mp: Add RAUC boot logic to environment
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>
-rw-r--r-- | board/phytec/phycore_imx8mp/phycore_imx8mp.env | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env b/board/phytec/phycore_imx8mp/phycore_imx8mp.env index dc9ad0f..fae3e99 100644 --- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env +++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env @@ -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 ...; |