主题 : 版主请进:用U-Boot下载文件系统时坏块怎么处理啊? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 517
精华: 0
发帖: 28
金钱: 280 两
威望: 154 点
综合积分: 56 分
注册时间: 2008-04-16
最后登录: 2009-06-09
楼主  发表于: 2009-03-14 00:09

 版主请进:用U-Boot下载文件系统时坏块怎么处理啊?

如题,我的nand flash 有一个坏块,地址是块476, at    0x770000 的位置,现在我要从0x500000 开始写文件系统,长度是0x410000,这个长度刚好包括这一个坏块啊,我写了两次都在0x770000这个位置出错了,我写nandflash的命令是:nand write 0x30008000 0x500000 0x410000 ,这样问题怎么解决啊,请版主明示,谢谢了先.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-03-14 11:30
比较新版的U-BOOT加入了badblock table (BBT)支持,用于在对NAND操作时跳过坏块.你可以 1)查你现在所用的U-BOOT源代码中NAND驱动部分,看是否已加入支持;2)用help nand命令查询是否有支持坏块的操作或命令参数
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 517
精华: 0
发帖: 28
金钱: 280 两
威望: 154 点
综合积分: 56 分
注册时间: 2008-04-16
最后登录: 2009-06-09
2楼  发表于: 2009-03-14 13:37
如果只是uboot支持了,那内核是不是也要支持啊?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-03-15 10:22
引用第2楼pangjie375于2009-03-14 13:37发表的  :
如果只是uboot支持了,那内核是不是也要支持啊?

是的
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."