summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2018-11-28 06:30:22 +0100
committerRouven Czerwinski <r.czerwinski@pengutronix.de>2018-12-07 15:44:48 +0100
commitbfb4e73fc5126aa01b93810bd34930012100278d (patch)
treecb417f0fdcf4aa7f1f7964a9767f97ac1e6e662c
parent57a4db901d3b7b3eea6d1925984f5d0387414b50 (diff)
downloadDistroKit-bfb4e73fc5126aa01b93810bd34930012100278d.tar.gz
DistroKit-bfb4e73fc5126aa01b93810bd34930012100278d.tar.xz
barebox-am335x-defaultenv: fix bootsource selection
According to the board.c file from barebox, the bootsource can either be "mmc0" or "mmc1". Adjust the bootsource init file for barebox to automatically start a newly installed DistroKit. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
-rw-r--r--configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource6
1 files changed, 2 insertions, 4 deletions
diff --git a/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource b/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
index 4de7163..72e71e0 100644
--- a/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
+++ b/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
@@ -5,9 +5,7 @@ if [ -n "$nv.boot.default" ]; then
fi
if [ $bootsource = mmc ]; then
- global.boot.default="bootchooser net"
-elif [ $bootsource = net ]; then
- global.boot.default="net bootchooser"
+ global.boot.default="mmc$bootsource_instance net"
else
- global.boot.default="disk0.1 net"
+ global.boot.default="net mmc0 mmc1"
fi