From: Rouven Czerwinski <rouven@czerwinskis.de>
To: distrokit@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: [DistroKit] [PATCH 2/4] barebox-am335x-defaultenv: fix bootsource selection
Date: Wed, 5 Dec 2018 08:57:56 +0100 [thread overview]
Message-ID: <20181205075758.15257-2-rouven@czerwinskis.de> (raw)
In-Reply-To: <20181205075758.15257-1-rouven@czerwinskis.de>
From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
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>
---
.../barebox-am335x-defaultenv/init/bootsource | 10 ++++++----
1 file changed, 6 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..ec153ce 100644
--- a/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
+++ b/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
@@ -5,9 +5,11 @@ 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"
+ if [ $bootsource_instance = 0 ]; then
+ global.boot.default="mmc0 net"
+ elif [ $bootsource_instance = 1 ]; then
+ global.boot.default="mmc1 net"
+ fi
else
- global.boot.default="disk0.1 net"
+ global.boot.default="net mmc0 mmc1"
fi
--
2.19.1
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
next prev parent reply other threads:[~2018-12-05 7:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-05 7:57 [DistroKit] [PATCH 1/4] platform-v7a: disable CONFIG_BPFILTER_UMH Rouven Czerwinski
2018-12-05 7:57 ` Rouven Czerwinski [this message]
2018-12-05 7:57 ` [DistroKit] [PATCH 3/4] barebox-am335x-defaultenv: add usb limit script from upstream Rouven Czerwinski
2018-12-05 7:57 ` [DistroKit] [PATCH 4/4] barebox-am335x-defaultenv: remove state entries Rouven Czerwinski
2018-12-05 8:19 ` [DistroKit] [PATCH 1/4] platform-v7a: disable CONFIG_BPFILTER_UMH Michael Olbrich
2018-12-05 13:29 ` Rouven Czerwinski
2018-12-05 13:31 ` Michael Olbrich
2018-12-05 16:27 ` Rouven Czerwinski
2018-12-10 8:55 ` Robert Schwebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181205075758.15257-2-rouven@czerwinskis.de \
--to=rouven@czerwinskis.de \
--cc=distrokit@pengutronix.de \
--cc=r.czerwinski@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox