免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6147 | 回复: 8

[文件系统] 关于nand flash和jffs2的问题 [复制链接]

论坛徽章:
0
发表于 2012-07-27 09:52 |显示全部楼层
首先,描述一下我的问题:
1.我的板子上用的是hynix的nand flash HY27UF081G2A ,文件系统是采用jffs2,把制作好的rootfs烧到nand flash后,启动的过程中会出现这种提示:
Empty flash at 0x02741608 ends at 0x02741800
Empty flash at 0x02742608 ends at 0x02742800
Empty flash at 0x02743608 ends at 0x02743800
Empty flash at 0x02744608 ends at 0x02744800
Empty flash at 0x02745608 ends at 0x02745800
Empty flash at 0x02746608 ends at 0x02746800
Empty flash at 0x02747608 ends at 0x02747800
Empty flash at 0x027495a4 ends at 0x02749800
Empty flash at 0x02a2d380 ends at 0x02a2d800
Empty flash at 0x02a306e8 ends at 0x02a30800
Empty flash at 0x02a316e8 ends at 0x02a31800
Empty flash at 0x02a326e8 ends at 0x02a32800
Empty flash at 0x02a336e8 ends at 0x02a33800
Empty flash at 0x02a346e8 ends at 0x02a34800
Empty flash at 0x02a39630 ends at 0x02a39800
Empty flash at 0x02a3e608 ends at 0x02a3e800
如图:
QQ截图20120727094131.png
2.掉电重启后这种提示会增加一个,没掉电重启一次,就会增加一个,同时会提示:
JFFS2 notice: (213) check_node_data: wrong data CRC in data node at 0x027498e8: read 0x7d8b18ec, calculated 0xa976af4.
JFFS2 notice: (213) check_node_data: wrong data CRC in data node at 0x027488e8: read 0x7d8b18ec, calculated 0xa976af4.
这种提示!
如图:
QQ截图20120727094552.png
3.注意上述的两点是掉电重启,而不是reboot!但是如果我reboot后,
JFFS2 notice: (213) check_node_data: wrong data CRC in data node at 0x027498e8: read 0x7d8b18ec, calculated 0xa976af4.
JFFS2 notice: (213) check_node_data: wrong data CRC in data node at 0x027488e8: read 0x7d8b18ec, calculated 0xa976af4.
这种提示会消失!
如图:
4.png
请问,有没有大侠遇到过类似的情况,谢谢!

论坛徽章:
0
发表于 2012-07-27 21:27 |显示全部楼层
制作文件系统的erasesize设置问题
如果你是用mkfs.jffs2工具生成文件系统,需添加“-e 128Kib”参数128为block大小

论坛徽章:
0
发表于 2012-07-30 09:40 |显示全部楼层
这个参数我加了。。。

论坛徽章:
0
发表于 2012-07-30 16:42 |显示全部楼层
erase all 清一下falsh,然后再写入干净的文件系统。

论坛徽章:
0
发表于 2012-07-31 10:11 |显示全部楼层
已经erase all 了 ,在u-boot里面nand erase过了。。。。。

论坛徽章:
0
发表于 2012-07-31 10:46 |显示全部楼层
试试这个:

http://www.linux-mtd.infradead.org/faq/jffs2.html

以下是摘抄

JFFS2 generates messages, is there a problem?

JFFS2 adopts the philosophy of keeping the user completely appraised of what is going on. This can catch out the unwary novice. The following messages can be moved to a higher log level once you are sure that they are benign.
Empty flash at 0xXXXXXXXX ends at 0xXXXXXXXX

This message is generated if a block of data is partially written. It is generally not a sign of any problem.
Name CRC failed on node at 0x00b620c8: Read 0x640c8ca3, calculated 0x795111fe

or similar message about CRC failures. If you have ever done unclean reboots - this is harmless. This just means that the unclean reboot happened (1) during data write or write buffer sync or (2) while GC was working or (3) while the write-buffer contained some data and was not yet synced before the unclean reboot happened. In them first and the third cases, you just lose the very last data you have written, in the second case you lose nothing. The wrong nodes will eventually be recycled by Garbage Collector and the messages will go (but they may live quite long).

But this also may mean that data on your flash was corrupted for sum reasons. Unfortunately JFFS2 cannot distinguish between node corruptions cause by unclean reboots and by real media corruptions. But the latter case is very rare.
You cannot use older JFFS2 filesystems with newer kernels

Please, update your MTD utilities and use newer mkfs.jffs2.

论坛徽章:
0
发表于 2012-07-31 10:57 |显示全部楼层
已经看过了。。。。。。。大概意思就是说这个消息无关紧要。。。。但是总是打印这个东西。。看着烦!!!!!!!

论坛徽章:
0
发表于 2012-07-31 11:18 |显示全部楼层
回复 7# zhuqing_739


    看这一句:“Please, update your MTD utilities and use newer mkfs.jffs2.” 呵呵。

论坛徽章:
0
发表于 2014-04-03 14:21 |显示全部楼层
楼主这个问题后来怎么解决的,小弟也碰到类似问题了回复 1# zhuqing_739


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP