Skip to contentSkip to conversation

2.5.7{,-rmk1}: jffs2 on root patch

PATCH Christopher Hoover 3 participants 3 messages Apr 2, 2002 – Apr 3, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

2.5.7-rmk1 (and apparently any 2.5.7 kernel, hence the cross-posting) requires the following patch, if you wish to use a jffs2 file system as your root. Without the patch, mount_block_root() won't attempt to use jffs2.

-ch

mailto:[email protected]
mailto:[email protected]

fs/jffs2/super.c +2 -1
@@ -300,7 +300,8 @@ static struct file_system_type jffs2_fs_
 	owner:		THIS_MODULE,
 	name:		"jffs2",
 	get_sb:		jffs2_get_sb,
-	kill_sb:	generic_shutdown_super
+	kill_sb:	generic_shutdown_super,
+	fs_flags:	FS_REQUIRES_DEV,
 };
 
 
maintainer
#1 lore raw
Quoted 4 lines · [email protected] said:

2.5.7-rmk1 (and apparently any 2.5.7 kernel, hence the cross-posting)
requires the following patch, if you wish to use a jffs2 file system as your root. Without the patch, mount_block_root() won't attempt to use jffs2.

I don't like it. We don't require a block device, and I'd rather see the mechanism fixed to pass the 'root=' argument to the file system, so we can use the new mount-by-name functionality on the rootfs.

--
dwmw2

#2 lore raw

I discovered that with vanilla 2.5.7, the kernel will indeed mount a jffs root, if you do:

root=/dev/mtdblockX rootfstype=jffs2

[

as opposed to simply:

root=/dev/mtdblockX

which work just fined prior to 2.5.7

]

The "rootfstype=jffs2" part is *mandatory*, because do_mounts.c:get_fs_names(), which computes which filesystems should be attempted for the root partitition, skips any filesystem, such as jffs2, that is "nodev."

-ch

Quoted 35 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of David Woodhouse
Sent: Tuesday, April 02, 2002 5:29 PM
To: Christopher Hoover
Cc: [email protected]; [email protected]
Subject: Re: 2.5.7{,-rmk1}: jffs2 on root patch

Quoted 1 line · [email protected] said:

2.5.7-rmk1 (and apparently any 2.5.7 kernel, hence the

cross-posting)

Quoted 1 line

requires the following patch, if you wish to use a jffs2

file system

Quoted 1 line

as your root. Without the patch, mount_block_root() won't

attempt to

Quoted 1 line

use jffs2.

I don't like it. We don't require a block device, and I'd rather see the mechanism fixed to pass the 'root=' argument to the file system, so we can use the new mount-by-name functionality on the rootfs.

--
dwmw2

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo> /linux-mtd/