Richard Weinberger skrev:
On Wed, Aug 28, 2019 at 3:39 PM Emil Lenngren <emil.lenngren@xxxxxxxxx> wrote:
Will this really work when passing the rootfs to the kernel command
line like "root=/dev/ubiblock0_rootfs"? If the udev rules that set up
the symbolic link /dev/ubiblock0_rootfs are stored in a file on the
rootfs itself, I guess that symlink can't be made available before the
rootfs is mounted...
No, this will not work directly from the kernel command line.
For any kind non-trivial root you need an initramfs,
that's the whole point of initramfs. :-)
I have this on my cmdline:
root=ubi0:rootfs rw ubi.mtd=rootfs,2048 rootfstype=ubifs
Maybe a bit confusing that both the MTD partition and the UBI volume are
named rootfs:-) The board uses a very old 3.14 kernel from OpenWrt, I
believe the MTD parts is vanilla. Doesn't this work on a more recent kernel?
//Jan
--
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone."
- Bjarne Stroustrup
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/