When I like current stable system in flash (after clean reflashing and tweaking it a bit) I boot from mmc and do a backup Code: mount -t jffs2 /dev/mtdblock4 /opt ./mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n umount /opt then when I want to restore system in flash I boot from mmc and do Code: ./flash_eraseall -j /dev/mtd4 ./nandwrite -a -p /dev/mtd4 /media/mmc1/rootfs.jffs2 Be sure to use correct device name (/dev/mtd4 for rootfs) and never ever use -j option of nandwrite. Also never ever erase or flash /dev/mtd1 or mtd0. By doing this you can seriously screw your device to the point that reflashing will not help you (and won't be posible at all).
mount -t jffs2 /dev/mtdblock4 /opt ./mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n umount /opt
./flash_eraseall -j /dev/mtd4 ./nandwrite -a -p /dev/mtd4 /media/mmc1/rootfs.jffs2
mount /dev/mmcblk0p2 /opt ./mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n
./flash_eraseall -j /dev/mmcblk0p2 ./nandwrite -a -p /dev/mmcblk0p2 /media/mmc1/rootfs.jffs2