Problems with yaffs2 and kenrel 2.6.38

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@imega:/mnt# flash_eraseall /dev/mtd3
 Erasing 128 Kibyte @ 200000 -- 100 % complete.
 root@imega:/mnt# mount -t yaffs2 /dev/mtdblock3 target/
 yaffs: dev is 32505859 name is "mtdblock3" rw
 yaffs: passed flags ""
 root@imega:/mnt# df -h
 Filesystem                Size      Used Available Use% Mounted on
 /dev/mtdblock3            2.0M    768.0K      1.3M  38% /mnt/target
 root@imega:/mnt# ls -l abigfile
 -rwxr-xr-x    1 root     root       670941 Sep 25 08:26 abigfile
 root@imega:/mnt# cp abigfile target/
 root@imega:/mnt# md5sum abigfile target/abigfile
 15a45dba24bbdbb649c523d3b8aabc22  abigfile
 15a45dba24bbdbb649c523d3b8aabc22  target/abigfile
 root@imega:/mnt# touch target/emptyfile
 root@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@imega:~# mount -t yaffs2 /dev/mtdblock3 /mnt/target/
 yaffs: dev is 32505859 name is "mtdblock3" rw
 yaffs: passed flags ""
 root@imega:~# ls /mnt/target/
 lost+found
 root@imega:~# df -h
 /dev/mtdblock3            2.0M    944.0K      1.1M  46% /mnt/target
 root@imega:~# ls /mnt/target/lost\+found/
 obj257
 root@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-

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux