Is this supposed to work: mkyaffsimage /path/to/some/directory yaffs.dat "" >/dev/null losetup /dev/mtd/3 yaffs.dat mount /dev/mtd/3 /tmp/yaffs