Problems with yaffs2 and kenrel 2.6.38

Gasparini Andrea gaspa at yattaweb.it
Tue Apr 5 03:51:01 EDT 2011


Hi,
has anyone successfully used YAFFS2 with a recent kernel?

I'm trying to use it on a Davinci system, the kernel version is 2.6.38-rc8.
The effect is that after an reboot (or a unmount/remount) the file
written on the
filesystem were lost, just like that:
 root at imega:/mnt# flash_eraseall /dev/mtd3
 Erasing 128 Kibyte @ 200000 -- 100 % complete.
 root at imega:/mnt# mount -t yaffs2 /dev/mtdblock3 target/
 yaffs: dev is 32505859 name is "mtdblock3" rw
 yaffs: passed flags ""
 root at imega:/mnt# df -h
 Filesystem                Size      Used Available Use% Mounted on
 /dev/mtdblock3            2.0M    768.0K      1.3M  38% /mnt/target
 root at imega:/mnt# ls -l abigfile
 -rwxr-xr-x    1 root     root       670941 Sep 25 08:26 abigfile
 root at imega:/mnt# cp abigfile target/
 root at imega:/mnt# md5sum abigfile target/abigfile
 15a45dba24bbdbb649c523d3b8aabc22  abigfile
 15a45dba24bbdbb649c523d3b8aabc22  target/abigfile
 root at imega:/mnt# touch target/emptyfile
 root at imega:/mnt# df -h
 Filesystem                Size      Used Available Use% Mounted on
 /dev/mtdblock3            2.0M      1.4M    616.0K  70% /mnt/target

After a reboot it behave like that:
 root at imega:~# mount -t yaffs2 /dev/mtdblock3 /mnt/target/
 yaffs: dev is 32505859 name is "mtdblock3" rw
 yaffs: passed flags ""
 root at imega:~# ls /mnt/target/
 lost+found
 root at imega:~# df -h
 /dev/mtdblock3            2.0M    944.0K      1.1M  46% /mnt/target
 root at imega:~# ls /mnt/target/lost\+found/
 obj257
 root at imega:/mnt/target/lost+found# ls -l obj257
 ----------    1 root     root       670941 Sep 25 08:32 obj257

Someone has ideas on how to debug or can give me some pointer on how to proceed?

thanks, bye
--
-gaspa-



More information about the Kernelnewbies mailing list