DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Rouven Czerwinski <rouven@czerwinskis.de>
To: distrokit@pengutronix.de
Cc: Rouven Czerwinski <rouven@czerwinskis.de>
Subject: [DistroKit] [PATCH 1/3] barebox-mx6: fix bootsource selection
Date: Wed,  5 Dec 2018 08:58:55 +0100	[thread overview]
Message-ID: <20181205075857.16523-1-rouven@czerwinskis.de> (raw)

Also disable the bootchooser which is no longer used.

Signed-off-by: Rouven Czerwinski <rouven@czerwinskis.de>
---
 .../platform-v7a/barebox-mx6-defaultenv/init/bootsource   | 8 ++++----
 configs/platform-v7a/barebox-mx6.config                   | 3 +--
 2 files changed, 5 insertions(+), 6 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
diff --git a/configs/platform-v7a/barebox-mx6.config b/configs/platform-v7a/barebox-mx6.config
index 536cbfe..8bc8d3f 100644
--- a/configs/platform-v7a/barebox-mx6.config
+++ b/configs/platform-v7a/barebox-mx6.config
@@ -249,7 +249,7 @@ CONFIG_POLLER=y
 CONFIG_STATE=y
 CONFIG_STATE_CRYPTO=y
 # CONFIG_STATE_BACKWARD_COMPATIBLE is not set
-CONFIG_BOOTCHOOSER=y
+# CONFIG_BOOTCHOOSER is not set
 CONFIG_RESET_SOURCE=y
 
 #
@@ -437,7 +437,6 @@ CONFIG_CMD_OF_PROPERTY=y
 CONFIG_CMD_OFTREE=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_STATE=y
-CONFIG_CMD_BOOTCHOOSER=y
 # CONFIG_CMD_DHRYSTONE is not set
 # CONFIG_CMD_SPD_DECODE is not set
 # CONFIG_CMD_SEED is not set
-- 
2.19.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

             reply	other threads:[~2018-12-05  7:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-05  7:58 Rouven Czerwinski [this message]
2018-12-05  7:58 ` [DistroKit] [PATCH 2/3] barebox-mx6: disable state and remove boostate entries Rouven Czerwinski
2018-12-05 13:20   ` Roland Hieber
2018-12-05  7:58 ` [DistroKit] [PATCH 3/3] barebox-vexpress: disable state and bootchooser and remove files Rouven Czerwinski
2018-12-05  8:07 ` [DistroKit] [PATCH 1/3] barebox-mx6: fix bootsource selection Rouven Czerwinski
2018-12-05 13:22   ` Roland Hieber

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=20181205075857.16523-1-rouven@czerwinskis.de \
    --to=rouven@czerwinskis.de \
    --cc=distrokit@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