diff options
author | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2018-11-28 06:30:22 +0100 |
---|---|---|
committer | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2018-12-07 15:44:48 +0100 |
commit | bfb4e73fc5126aa01b93810bd34930012100278d (patch) | |
tree | cb417f0fdcf4aa7f1f7964a9767f97ac1e6e662c | |
parent | 57a4db901d3b7b3eea6d1925984f5d0387414b50 (diff) | |
download | DistroKit-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/bootsource | 6 |
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 |