Maemo is a Linux-based platform, which Nokia uses in their Internet Tablet devices. These devices also use NAND flash memory, so the tools they are using are good for SheevaPlug as well. Some Nokia Maemo folks are, actually, standing behind the jffs2 filesystem development.

You need to copy the script from the section "Shell script to mount/unmount JFFS2 using block device emulating MTD" and to fix two errors in it (lines 27 and 35: replace '[' by ']').Now you can mount your Sheeva jffs2 image and play with it any way you want :-)

Please read "Modifying the copy of the image" attentively - it might save you some troubles in the future!

Indeed, Maemo flasher script is NOT applicable for SheevaPlug. Do not try it!

Note: Do NOT use "Shell script to mount/unmount JFFS2 using kernel memory emulating MTD" method, as it is only usable for small (< 64MB) images, otherwise you get "out of memory" error.

Hope this information is helpful.

Logged

----------------------------------"Everybody is entitled to be stupid,but some people just abuse the privilege"

Actually, you can use the kernel memory emulating MTD as well. You just need to allocate more kernel memory.

It will only work for relatively small images. On my box, which has 1GB RAM, the maximum size of the image I can mount is about 63K. Mounting it over mtdblock would work much slower, but there is no size limitation. Well, almost no limitation

Logged

----------------------------------"Everybody is entitled to be stupid,but some people just abuse the privilege"

I gave this a try, and the file mounts OK, but it doesn't contain any files. Additionally, my dmesg is filled with this stuff:

Code:

[137378.064209] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e0c: 0xecf3 instead[137378.064211] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e10: 0xc02d instead[137378.064214] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e14: 0x6c7a instead[137378.064216] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e18: 0x77c7 instead[137378.064219] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e1c: 0x3116 instead[137378.064221] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e20: 0x703d instead[137378.064223] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e24: 0x351e instead[137378.064226] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e28: 0x974c instead[137378.064228] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e2c: 0x1b95 instead[137378.064231] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00068e30: 0x5c6f instead[137378.064233] Further such events for this erase block will not be printed

What i get at the end is a bunch of directories (/etc, /home/ etc..) but no files in them.

Suspecting an incorrect erase-size, I have also tried specifying some module options to block2mtd module:

I gave this a try, and the file mounts OK, but it doesn't contain any files. What i get at the end is a bunch of directories (/etc, /home/ etc..) but no files in them.Any ideas?

-tmk

Did you try it with ubuntu-9.0.5.Release.jffs2 image, taken from the site? That one is broken...I tried 9.0.4 image, available from "Downloads" section of this site and it mounts OK and shows all the right stuff available.Also jffs2 image from the companion CD worked for me.

Logged

----------------------------------"Everybody is entitled to be stupid,but some people just abuse the privilege"

I was not able to allocate sufficient storage for MTDRAM on my 2.6.9 box (actually, 139136 KB is needed), but could allocate the required amount on both a 2.6.18 and a 2.6.25 Fedora boxes, so the allocation limit may have something to do with the kernel version. The block2mtd method didn't work for me on a 2.6.9 box either (I guess, I was added in later releases), but it worked in newer kernels.