Busybox编译及其yaffs2文件系制作
orrectable error : <3>end_request:I/O error, dev mtdblock2, sector 0
Buffer I/O error on device mtdblock2,logical block 0
Kernel panic - not syncing: VFS: Unable tomount root fs on unknown-block(31,2)
后来无缘无故的好了(PS1=[\u@\h \W]#(PS1=[$USER@$HOSTNAME $PWD]#)
,用后面的替换前面的,在制作文件系统,就没有出现这个问题了,但出来了新的问题,如下:)
block 1912 is bad
Partially written block 90 detected
Partially written block 90 detected
Partially written block 90 detected
Partially written block 90 detected
.
.
yaffs2的一个bug,升级一下估计能解决(通过下面介绍的方法,修改了一下源码,解决了问题)
yaffs文件系统的Partially written block detected信息
对文件系统进行一系列的操作之后,直接断电,然后重新启动后,挂载文件系统时可能会出现如下提示信息:
yaffs: dev is 32505863 name is"mtdblock7"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.7,"mtdblock7"
Partially written block 13 detected
Partially written block 13 detected
Partially written block 13 detected
Partially written block 13 detected
yaffs_read_super: isCheckpointed 0
Please press Enter to activate this console.ls
[root@localhost /]#
这种提示信息是正常的,Partially written block 在正常使用时,文件系统的垃圾收集程序将会处理。
可以屏蔽这个信息,或者仅在YAFFS_TRACE_SCAN的时候显示这个信息,修改yaffs_guts.c文件的6668行,将
T(YAFFS_TRACE_ALWAYS,
(TSTR("Partially written block %ddetected" TENDSTR),
blk));
改为:
T(YAFFS_TRACE_SCAN,
(TSTR("Partially written block %ddetected" TENDSTR),
blk));
可以查看这个网址:http://www.yaffs.net/lurker/message/20100425.012952.08849f31.en.html
Busybox编译yaffs2文件系制 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)