Skip to contentSkip to conversation

Using JFFS2 as root FS on CF

DISCUSSION Michael Rothwell 2 participants 3 messages Nov 28, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I'm going fishing.

I have a 16MB compact flash card divided into two partitions, /dev/hda1 and /dev/hda2. I formatted hda1 with ext2 to serve as /boot. hda2 contains a JFFS2 image and will be / ... once I get it to mount.

I've got jffs2, mtdblock and blkmtd compiled into the kernel.

Does someone have a recipe for booting a kernel (2.4.13 or 2.4.16) with this type of setup and having it mount the jffs2 fs as /?

-M

#1 lore raw
Quoted 2 lines · Michael Rothwell

Does someone have a recipe for booting a kernel (2.4.13 or 2.4.16) with this type of setup and having it mount the jffs2 fs as /?

Addendum: blkmtd complains "error, missing 'device' name" -- I'm passing it in via lilo, but it looks like blkmtd doesn't read kernel arguments.

-M

#2 lore raw

Michael,

the latest blkmtd in CVS should fix the problem when compiled into the kernel. you can then pass the kernel boot param blkmtd_device=/dev/foo

Note, this version isnt yet it the latest kernel sources, but you should just be able to get the one out of CVS and copy it
over the blkmtd.c in the kernel source tree.

I will hopefully send a patch off to the 2.4 maintainer later this week, I didnt bother earlier as I assumed with the 2.4/2.5 change over, Linus and Marcelo probably had more important bug fixes etc to deal with.

cheers
si
----- Original Message -----
From: "Michael Rothwell" <[email protected]>
To: "Michael Rothwell" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, November 28, 2001 4:21 AM
Subject: Re: Using JFFS2 as root FS on CF

Quoted 15 lines · Michael Rothwell
Quoted 2 lines

Does someone have a recipe for booting a kernel (2.4.13 or 2.4.16) with this type of setup and having it mount the jffs2 fs as /?

Addendum: blkmtd complains "error, missing 'device' name" -- I'm passing it in via lilo, but it looks like blkmtd doesn't read kernel arguments.

-M

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