All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Michael Olbrich <m.olbrich@pengutronix.de>
Cc: Dirk Behme <dirk.behme@gmail.com>,
	Stephen Warren <swarren@wwwdotorg.org>,
	Fabio Estevam <festevam@gmail.com>,
	linux-mmc@vger.kernel.org,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Sascha Hauer <kernel@pengutronix.de>
Subject: Re: Adding aliases to mmc
Date: Sat, 21 Sep 2013 15:52:47 +0200	[thread overview]
Message-ID: <20130921135247.GL30088@pengutronix.de> (raw)
In-Reply-To: <20130921123051.GN1736@pengutronix.de>

On Sat, Sep 21, 2013 at 02:30:51PM +0200, Michael Olbrich wrote:
> Hi,
> 
> > > 
> > > An embedded system typically doesn't have an initrd. The kernel
> > > boots directly into the rootfs on SD/eMMC.
> > > 
> > > >>To my understanding, the UUID is different for each SD card/eMMC, correct?
> > > >
> > > >Yes by default.
> > > >
> > > >Although for an embedded product with a fixed eMMC, there's no reason
> > > >you couldn't make every device have the same UUID for the fixed device.
> > > 
> > > How do you make the eMMC on 1000 boards have the same UUID?
> > 
> > The same way you ensure an identical partition table in these 1000
> > boards. The disk signature is just a four byte value at offset 440 in
> > the MBR. Set this to your birthday or whatever on all boards, pass
> > root=PARTUUID=<yourbirthday>-01 on all boards and you're done.
> 
> Until someone inserts a SD-Card with the same disk signature...

Indeed. That would be a nice way to boot your own rootfs on otherwise
locked devices ;)

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2013-09-21 13:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 18:04 Adding aliases to mmc Fabio Estevam
     [not found] ` <CAOMZO5CJ36JHJMaiG3QVdtpBoWd_ZyHQuRTrKHz4bLP39gpJtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-18  0:06   ` Fabio Estevam
     [not found]     ` <CAOMZO5AT3bduZ0=EtWHuHVg6tSWrdr_ZjX5PLu815o0qgkeSig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-22  6:48       ` Dirk Behme
2013-09-22 15:24         ` Fabio Estevam
     [not found]           ` <CAOMZO5CVTRvC1z_xzco1A9FE+GALEHAZe8WNU20sNy+oZdNe+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-23  2:17             ` Fabio Estevam
2013-09-18  5:47   ` Dirk Behme
2013-09-18 15:17   ` Stephen Warren
     [not found]     ` <5239C40C.9030503-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-09-18 17:01       ` Dirk Behme
     [not found]         ` <5239DC65.3080803-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-18 17:13           ` Stephen Warren
     [not found]             ` <5239DF55.8010308-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-09-19  5:22               ` Dirk Behme
2013-09-20 16:05                 ` Stephen Warren
2013-09-20 16:37                   ` Dirk Behme
     [not found]                     ` <523C79C4.1070308-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-20 17:03                       ` Stephen Warren
2013-09-21  5:23                         ` Dirk Behme
2013-09-21  7:42                           ` Sascha Hauer
     [not found]                             ` <20130921074238.GI30088-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-09-21 12:30                               ` Michael Olbrich
2013-09-21 13:52                                 ` Sascha Hauer [this message]
2013-09-20  6:30       ` Chaiken, Alison
     [not found]         ` <60BA5429A0E1584BA3633194F6F993B50E7CE937-0dz9ie/QGrnnlEkxMdpx1dQH9K4/4qFeAL8bYrjMMd8@public.gmane.org>
2013-09-20 16:10           ` Stephen Warren

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=20130921135247.GL30088@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=devicetree@vger.kernel.org \
    --cc=dirk.behme@gmail.com \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-mmc@vger.kernel.org \
    --cc=m.olbrich@pengutronix.de \
    --cc=swarren@wwwdotorg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.