From 1f507ece0b0a028f1533ba4422d32732f9a502f2 Mon Sep 17 00:00:00 2001 From: Tudor Ambarus Date: Tue, 19 Apr 2022 15:48:01 +0300 Subject: [PATCH] doc: nand: Add note about CONFIG_MTD_CHAR mtdchar module was merged in mtdcore a long time ago. Add a comment about JFFS2 CONFIG_MTD_CHAR requirement. Signed-off-by: Tudor Ambarus Signed-off-by: David Oberhollenzer --- doc/nand.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/nand.xml b/doc/nand.xml index 70bd4b4..ebd1255 100644 --- a/doc/nand.xml +++ b/doc/nand.xml @@ -315,7 +315,6 @@ maintainer to include it

if one of these settings is missing.

CONFIG_MTD=y
-CONFIG_MTD_CHAR=y
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_YOURBOARD=y
CONFIG_JFFS2_FS=y
@@ -323,6 +322,9 @@ CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_NAND=y

+

mtdchar module was merged in mtdcore in kernel v3.10. Older kernels should +set CONFIG_MTD_CHAR=y in order that JFFS2 to work on NAND.

+

Note that mounting a JFFS2 filesystem doesn't require using mtdblock. It's possible to mount a rootfs using the MTD device on the "root=" bootargs as "root=mtd2" or "root=mtd:name_of_device".

-- 2.49.0