aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorLeonard Anderweit2024-03-12 15:30:30 +0100
committerFabio Estevam2024-03-17 18:39:21 -0300
commit46b0ae4408dce385aa65de35ade4c785f5162c5a (patch)
tree1dd18ad35dc0beca8589e161e6156299f4eb9b22 /board
parentb30d7bc19987856b9d733e0af3ca65397d20deda (diff)
phycore_imx8mp: Move default bootcmd to board env
Move the default bootcmd from the defconfig to the board environment. No change in functionality. Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de> Tested-by: Teresa Remmet <t.remmet@phytec.de>
Diffstat (limited to 'board')
-rw-r--r--board/phytec/phycore_imx8mp/phycore_imx8mp.env12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
index 32513e70fec..dc9ad0fe9d1 100644
--- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env
+++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
@@ -1,3 +1,15 @@
+bootcmd=
+ if test ${dofastboot} = 1; then
+ fastboot 0;
+ fi;
+ mmc dev ${mmcdev};
+ if mmc rescan; then
+ if run loadimage; then
+ run mmcboot;
+ else
+ run netboot;
+ fi;
+ fi;
console=ttymxc0,115200
dofastboot=0
emmc_dev=2