Originally published on the old depletionmode / 2of1 blog (archived copy).
How to mount a jffs2 image on ubuntu…
Install prerequisite packages:
sudo apt-get install mtd-toolsLoad kernel modules (note that you can adjust the size of the mtd device while loading mtdram):
sudo modprobe mtd
sudo modprobe jffs2
sudo modprobe mtdram total_size=16384 erase_size=512
sudo modprobe mtdchar
sudo modprobe mtdblockLoad jffs2 image into mtd block device:
sudo dd if=firmware.jffs2 of=/dev/mtd0You are now ready to mount the image:
sudo mkdir /mnt/image
sudo mount -t jffs2 /dev/mtdblock0 /mnt/image