mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: David Jander <david.jander@protonic.nl>
To: barebox@lists.infradead.org
Subject: /dev/disk0 vs /dev/mmc0
Date: Thu, 3 Oct 2013 17:17:26 +0200	[thread overview]
Message-ID: <20131003171726.096b0daa@archvile> (raw)


Hi all,

I am following barebox git closely and noticed a change recently: Device names
for MMC (MCI) and USB mass-storage devices have changed to the
generic "/dev/diskX". Earlier an MMC device was named "/dev/mmc0".
Unfortunately this change breaks my /env/bin/init script and I don't know how
to fix it. I relied on the existence of certain devices to distinguish between
USB mass-storage device presence and/or SD-card presence. How can I do this
with this new device naming convention?

I used to have these kind of checks in /env/bin/init:

# Mount MMC (first partition) if available
if [ -e "/dev/mmc0.0" ]; then
        mkdir /mmc
        mount /dev/mmc0.0 /mmc
        if [ -e "/mmc/uImage" ]; then
                boot_target="mmc"
        fi
fi

Booting like this is only allowed from MMC and not from USB, and now it seems
impossible to distinguish between them anymore.

Btw, why was this changed in the first place?

Best regards,

-- 
David Jander
Protonic Holland.

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

             reply	other threads:[~2013-10-03 15:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-03 15:17 David Jander [this message]
2013-10-03 19:23 ` Jean-Christophe PLAGNIOL-VILLARD
2013-10-04  7:17   ` David Jander
2013-10-06 10:39     ` Sascha Hauer
2013-10-06 18:40       ` Jean-Christophe PLAGNIOL-VILLARD
     [not found]       ` <20131007083203.7aa17d5b@archvile>
2013-10-07  6:41         ` Sascha Hauer
2013-10-07  9:57           ` David Jander
2013-10-07 20:19             ` Sascha Hauer
2013-10-08  7:02               ` David Jander
2013-10-08  7:45                 ` Lucas Stach
2013-10-08  9:13                   ` David Jander
2013-10-08  9:39                     ` Lucas Stach
2013-10-08 13:47                       ` David Jander
2013-10-08 14:11                         ` Lucas Stach
2013-10-08 14:49                           ` David Jander
2013-10-08 14:58                             ` Lucas Stach

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=20131003171726.096b0daa@archvile \
    --to=david.jander@protonic.nl \
    --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