Skip to contentSkip to conversation

mount a jffs2 image

DISCUSSION Brian T. 2 participants 2 messages Apr 21, 2003 Memory technology devices (MTD)

lore
Share & tools
lore

Brian T.

author
#0 lore raw

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!

-Brian

#1 lore raw
Quoted 6 lines · Brian T.

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

Signature · 2 lines
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein