summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrimoz Fiser <primoz.fiser@norik.com>2025-04-10 10:41:20 +0200
committerFabio Estevam <festevam@gmail.com>2025-04-11 10:00:59 -0300
commit82211629c636b7e1e78cf2ef71ea4af1d5c56a5e (patch)
tree7fda4045b22bb11f2b403d93beff0df659d85f7b
parente1d68ed3e21cfb6c40dc3b35a78d9420eca50de1 (diff)
board: phycore-imx93: env: Add option to disable bootenv.txt import
Add support for disabling external environment import (bootenv.txt) by setting the ${no_bootenv} environment variable. Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
-rw-r--r--board/phytec/phycore_imx93/phycore_imx93.env12
1 files changed, 8 insertions, 4 deletions
diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env
index 52c234a4206..d0694f23269 100644
--- a/board/phytec/phycore_imx93/phycore_imx93.env
+++ b/board/phytec/phycore_imx93/phycore_imx93.env
@@ -20,8 +20,10 @@ loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
mmcboot=
echo Booting from mmc ...;
- if run mmc_load_bootenv; then
- env import -t ${bootenv_addr_r} ${filesize};
+ if test ${no_bootenv} = 0; then
+ if run mmc_load_bootenv; then
+ env import -t ${bootenv_addr_r} ${filesize};
+ fi;
fi;
run mmcargs;
if run loadfdt; then
@@ -41,8 +43,10 @@ netboot=
else
setenv get_cmd tftp;
fi;
- if run net_load_bootenv; then
- env import -t ${bootenv_addr_r} ${filesize};
+ if test ${no_bootenv} = 0; then
+ if run net_load_bootenv; then
+ env import -t ${bootenv_addr_r} ${filesize};
+ fi;
fi;
${get_cmd} ${loadaddr} ${image};
if ${get_cmd} ${fdt_addr_r} ${fdtfile}; then