Well, I finally got around to setting up a cross compiler, instead of doing more important things.
Anyway, I\'ve uploaded a package called mtdtools.tar.gz that contains some nifty things, among them the blkmtd.o kernel driver and various mtd and jffs2 utilities.
WARNING: I used the 6000 kernel sources as a base for the module, and only tested on SL-6000L. YMMV. No warentees or guarentees, and I\'m not responsible if you brick your machine.
If you want to format a block device to use jffs2, here\'s a quick HOWTO. Run these commands from the command line, as root.
First run a little script I whipped up to create additional MTD entries in /dev:
$ sh MakeMoreMTDDevs.sh
Next, load the kernel module, which attaches an MTD device to the specified block device.
$ insmod blkmtd.o device=/dev/mydevice
Since mtd0-3 are used by the internal flash, the device should appear as mtd4. Use dmesg to confirm this. If you do more than one, then you\'ll get mtd5, mtd6, ...
$ dmesg
Now, format your device for jffs2:
$ flash_eraseall -j /dev/mtd4 (be careful here, if you type the wrong number you could hose your internal flash!)
It\'s ready. Now you can mount it:
$ mount /dev/mtdblock4 /mnt/mymountpoint -t jffs2