summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannic Moog <y.moog@phytec.de>2024-03-22 13:55:28 +0100
committerFabio Estevam <festevam@gmail.com>2024-03-24 13:42:10 -0300
commit9d27e441bb14dd526c60c13d5ff16353ca322eb3 (patch)
treecb0f637c4f530e21ac88e0ab017abc5362ef4af7
parentf4b6c3ad25d6cbb4e5daced8693794b6efce1c77 (diff)
board: phytec: phycore_imx8mp.env fix netboot issues
The "run netargs" command should come later in the "netboot" command order when using dhcp since it sets the server and client ip addresses. The previous order led to misconfigured kernel boot params and thus kernel panic when serverip was not manually set. Further, following Linux FHS 3.0, change the nfsroot default directory to /srv/nfs. Fixes: 60f64bec414e ("board: phytec: phycore_imx8mp: Add fec support") Signed-off-by: Yannic Moog <y.moog@phytec.de>
-rw-r--r--board/phytec/phycore_imx8mp/phycore_imx8mp.env4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
index fae3e992654..7f6c5fd2c76 100644
--- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env
+++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
@@ -46,17 +46,17 @@ netargs=
nfsroot=${serverip}:${nfsroot},v3,tcp
netboot=
echo Booting from net ...;
- run netargs;
if test ${ip_dyn} = yes; then
setenv get_cmd dhcp;
else
setenv get_cmd tftp;
fi;
${get_cmd} ${loadaddr} ${image};
+ run netargs;
if ${get_cmd} ${fdt_addr} ${fdt_file}; then
booti ${loadaddr} - ${fdt_addr};
else
echo WARN: Cannot load the DT;
fi;
-nfsroot=/nfs
+nfsroot=/srv/nfs
sd_dev=1