mount a jffs2 image

Jörn Engel joern at wohnheim.fh-wedel.de
Mon Apr 21 13:32:02 EDT 2003


On Mon, 21 April 2003 11:33:35 -0500, Brian T. wrote:
> 
> I was wondering if there is a way to mount a jffs2 image on a system which
> has no mtd devices, such as the system I use (Redhat 7.1) to build an
> embedded distro.  I am using a 2.4.20 mtd patched kernel, but I get errors
> when trying to mount it on mtd devices (since they are not there).  "mount"
> tells me to try using "-o /dev/loop0" but that locks the system up.  Thanks!

Loopback creates a block device, not an mtd device. So this behaviour
is kind of expected. The system shouldn't lock up, that part should
get fixed. I'll see if I can reproduce it here.

A loopback variant for mtd does not exist, you have to write it
yourself if you want it.

You can still use mtdram, mtdblock or slram to create an mtd device an
your host, copy the image to that device and use it from there.

To the original question, either therotical mtdloopback or mtdram and
friends give you an mtd device. No mtd device, no cookies.

Jörn

-- 
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein



More information about the linux-mtd mailing list