All of lore.kernel.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: John Smith <john@arrows.demon.co.uk>
Cc: linux-mtd@lists.infradead.org
Subject: Re: UBI: Can I boot with an UBI volume holding a root file system?
Date: Sat, 05 May 2007 14:51:37 +0300	[thread overview]
Message-ID: <1178365897.3659.91.camel@sauron> (raw)
In-Reply-To: <Pine.LNX.4.33.0705042323250.30567-100000@arrows.demon.co.uk>

On Fri, 2007-05-04 at 23:42 +0100, John Smith wrote:
> I am hoping to build a root file system and store it as a squashfs
> image in a static UBI volume. What command line should I should pass
> to the kernel at boot time?
I am not sure which kernel line to use.

If you have a mtd device mtd0, and want to feed it to ubi, use ubi.mtd=0
command. See modinfo ubi. For kernel command line it is the same, but
you should use 'ubi.mtd=' instead of 'mtd='.

After the mtd is attached, and if mtd device emulation is enabled, ubi
will create MTD devices corresponding to your volumes.


> There are likely to be other UBI volumes in the UBI partition which
> will each get mapped to a /dev/mtdblock device. Is it going to be
> difficult to identify the major/minor numbers of the device which will
> mapped to my squashfs image?
You may use device names. Majors are dynamic and may change.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

  reply	other threads:[~2007-05-05 11:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-04 22:42 UBI: Can I boot with an UBI volume holding a root file system? John Smith
2007-05-05 11:51 ` Artem Bityutskiy [this message]
2007-05-05 14:08 ` Artem Bityutskiy
2007-05-06 11:25   ` John Smith
2007-05-06 11:55     ` Artem Bityutskiy

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=1178365897.3659.91.camel@sauron \
    --to=dedekind@infradead.org \
    --cc=john@arrows.demon.co.uk \
    --cc=linux-mtd@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 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.