I want to loopback mount a jffs2 filesystem, and this filesystem has 
incestuous knowledge of flash devices for wear levelling and stuff, so it 
will only mount an actual flash device and not a normal block device.

There's a way to make a loopback device look like a flash device, letting you 
loopback mount jffs2, but it involves recompiling the kerenel to add support 
for it, and of course I went "User Mode Linux"...  Except that UML disables 
the flash menu entirely.

Basically, I need to be able to enable MTD_BLOCK so I can go:

  losetup /dev/loop0 /path/to/imagefile.jffs2
  insmod blkmtd erasesz=256 device=/dev/loop0
  mount -t jffs2 /dev/mtdblock0 /mnt

This shouldn't need any actual flash hardware.  It's just layering another 
translation layer on top of loopback.

Suggestions?

Rob
-- 
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to