flash_eraseall -j /dev/mtd2 mount -t jffs2 /dev/mtdblock2 /mnt/flash