[PATCH 0/3] mtdblock: Advertise about UBI and UBI block
Ezequiel Garcia
ezequiel at collabora.com
Sun Aug 1 16:45:02 PDT 2021
Hi Richard, and everyone else:
Browsing the internet for "JFFS2 mtd" results in tutorials, articles
and github.gists0 that point to mtdblock.
In fact, even the MTD wiki mentions that JFFS2
needs mtdblock to mount a rootfs:
http://www.linux-mtd.infradead.org/faq/jffs2.html
Moreover, I suspect there may be lots of users
that still believe mtdblock is somehow needed to
mount SquashFS.
I've taken a verbose route and added a pr_warn
warning if the devices are NAND. I don't think using
NAND without UBI is too wise, and given the amount
of outdated tutorials I believe some advertising
will help.
These patches are compile-tested only, as I don't
have devices ready to test, but I can undust some
boards and do some experiments if you think it's needed.
Oh, and PS: We also need to update the wiki.
Ezequiel Garcia (3):
mtdblock: Update old JFFS2 mention in Kconfig
mtdblock: Add comment about UBI block devices
mtdblock: Warn if the added for a NAND device
drivers/mtd/Kconfig | 10 ++++++----
drivers/mtd/mtdblock.c | 4 ++++
drivers/mtd/mtdblock_ro.c | 4 ++++
3 files changed, 14 insertions(+), 4 deletions(-)
--
2.32.0
More information about the linux-mtd
mailing list