summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-mx6-defaultenv/init
diff options
context:
space:
mode:
authorRouven Czerwinski <rouven@czerwinskis.de>2018-11-29 11:01:58 +0100
committerRouven Czerwinski <r.czerwinski@pengutronix.de>2018-12-07 15:52:29 +0100
commit1859290b6a8051119d0edd34bacc9af89e7f7a51 (patch)
treeff1e14bce0eebc560f6db8c76605494bd82017e5 /configs/platform-v7a/barebox-mx6-defaultenv/init
parent85b9375a851def2659f27aaaad6dd0832179f08d (diff)
downloadDistroKit-1859290b6a8051119d0edd34bacc9af89e7f7a51.tar.gz
DistroKit-1859290b6a8051119d0edd34bacc9af89e7f7a51.tar.xz
barebox-mx6: fix bootsource selection
Also disable the bootchooser which is no longer used. Signed-off-by: Rouven Czerwinski <rouven@czerwinskis.de>
Diffstat (limited to 'configs/platform-v7a/barebox-mx6-defaultenv/init')
-rw-r--r--configs/platform-v7a/barebox-mx6-defaultenv/init/bootsource8
1 files changed, 4 insertions, 4 deletions
diff --git a/configs/platform-v7a/barebox-mx6-defaultenv/init/bootsource b/configs/platform-v7a/barebox-mx6-defaultenv/init/bootsource
index 4de7163..ba04809 100644
--- a/configs/platform-v7a/barebox-mx6-defaultenv/init/bootsource
+++ b/configs/platform-v7a/barebox-mx6-defaultenv/init/bootsource
@@ -4,10 +4,10 @@ if [ -n "$nv.boot.default" ]; then
exit
fi
+
if [ $bootsource = mmc ]; then
- global.boot.default="bootchooser net"
-elif [ $bootsource = net ]; then
- global.boot.default="net bootchooser"
+ detect mmc$bootsource_instance
+ global.boot.default="mmc$bootsource_instance net"
else
- global.boot.default="disk0.1 net"
+ global.boot.default="net mmc1 mmc2 mmc3"
fi