yaffs2 文件系统挂载使用出错
我的根文件系统是jffs2,内核版本是2.6.26。修改了内核代码让其支持yaffs2。结果在挂载使用yaffs2文件系统的时候出错了。
(nand flash 是硬件ecc,修改后proc 下已经出现了yaffs2相关信息)
1.我先 执行flash_eraseall /dev/mtd3
2.接着挂在第3个分区 mount -t yaffs2 /dev/mtblock3 /mnt/yaffs2 出现下面的信息
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
block 2714 is bad
block 3589 is bad
block 3590 is bad
block 3591 is bad
block 3592 is bad
yaffs_read_super: isCheckpointed 0
并且 /mnt/yaffs2中只有lost+found文件夹
3.之后再/mnt/yaffs2文件下 创建了一些文件和文件夹
4.解除挂载后 umount /mnt/yaffs2下列信息出现
save exit: isCheckpointed 1
save exit: isCheckpointed 1
5.再次挂在mount -t yaffs2 /dev/mtblock3 /mnt/yaffs2 出现下面的错误信息,并且/mnt/yaffs2文件夹下只有lost+found文件夹,创建的文件和文件夹都不见了。
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
block 2714 is bad
block 3589 is bad
block 3590 is bad
block 3591 is bad
block 3592 is bad
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
Partially written block 2 detected
yaffs_read_super: isCheckpointed 0
谁能提点意见阿?
------解决方案--------------------
你的问题基本可以确定是 mtd 层 oob 信息和 yaffs 的配合问题。
参考我的 blog 修改吧。
http://blog.csdn.net/pottichu/archive/2009/07/21/4367918.aspx