On Wednesday 16 December 2009 04:42:59 dongle wrote: > Hi, all. I am a newbie of YAFFS2, and of Linux file systems. I followed the > steps on > http://www.yaffs.net/lurker/message/20091011.221340.05de674a.da.html > but something wrong happened at the last step. > When I try to run "mount -t yaffs2 /dev/mtdblock0 xxx", the error appears; > it says, > "mount: wrong fs type, bad option, bad superblock on /dev/mtdblock0, > missing codepage or helper program, or other error > In some cases useful info is found in syslog - try > dmesg | tail or so > " > > It seems yaffs2 is not the right fs type. But "cat /proc/filesystems" shows > that yaffs and yaffs2 exist. > > I have tried under Ubuntu 9.04 and Ubuntu 8.04, and this error always > appear. Can you give me some suggestion? Your replies are greatly > appreciated. > > Thank you so much! What does dmesg say? If the mount fails there might be some messages. Also cat /proc/modules | grep mtd you should see mtd, mtdblock Works fine for me on various Ubuntus from 8.04 to 9.10 I do the following from withing yaffs2 directory: Build yaffs2 module. $ make $ sudo -s ...password.. # now have a root shell #linux-tests/initnandsim # insmod yaffs2.ko # mkdir /mnt/y # mount -t yaffs2 /dev/mtdblock0 /mnt/y The initnandsim script has modprobe mtd modprobe mtdblock modprobe nandsim first_id_byte=0x20 second_id_byte=0xa2 third_id_byte=00\ fourth_id_byte=0x15 cat /proc/mtd -- Charles