UBI: Can I boot with an UBI volume holding a root file system?
Artem Bityutskiy
dedekind at infradead.org
Sat May 5 07:51:37 EDT 2007
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 (Битюцкий Артём)
More information about the linux-mtd
mailing list