mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Shiyan <shc_work@mail.ru>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] PCM038: choose boot device by parsing barebox_loc magic variable
Date: Thu, 26 Apr 2012 21:02:04 +0400	[thread overview]
Message-ID: <1335459724-25546-2-git-send-email-shc_work@mail.ru> (raw)
In-Reply-To: <1335459724-25546-1-git-send-email-shc_work@mail.ru>


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/pcm038/env/config |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/pcm038/env/config b/arch/arm/boards/pcm038/env/config
index 32be5ec..59f3e89 100644
--- a/arch/arm/boards/pcm038/env/config
+++ b/arch/arm/boards/pcm038/env/config
@@ -14,10 +14,18 @@ ip=dhcp
 #eth0.gateway=a.b.c.d
 #eth0.serverip=a.b.c.d
 
+if [ x$barebox_loc = xnand ]; then
+	kernel_loc=nand
+	rootfs_loc=nand
+elif [ x$barebox_loc = xnor ]; then
+	kernel_loc=nor
+	rootfs_loc=nor
+else
 # can be either 'nfs', 'tftp', 'nor' or 'nand'
-kernel_loc=tftp
+	kernel_loc=tftp
 # can be either 'net', 'nor', 'nand' or 'initrd'
-rootfs_loc=net
+	rootfs_loc=net
+fi
 
 # can be either 'jffs2' or 'ubifs'
 rootfs_type=ubifs
-- 
1.7.3.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-04-26 17:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26 17:02 [PATCH 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets Alexander Shiyan
2012-04-26 17:02 ` Alexander Shiyan [this message]
2012-04-27  7:42 ` Sascha Hauer

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=1335459724-25546-2-git-send-email-shc_work@mail.ru \
    --to=shc_work@mail.ru \
    --cc=barebox@lists.infradead.org \
    /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