• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : nand flash 出现了坏块,请问怎样解决啊 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 2535
精华: 0
发帖: 73
金钱: 690 两
威望: 626 点
综合积分: 146 分
注册时间: 2008-11-23
最后登录: 2011-12-15
楼主  发表于: 2009-04-18 14:28

 nand flash 出现了坏块,请问怎样解决啊

烧写文件系统时出现了坏块,心在文件系统也挂载不上,不知是不是由于坏块引起的呢?还有怎样看坏块是伪坏块呢,怎样解决呢?
级别: 侠客
UID: 2535
精华: 0
发帖: 73
金钱: 690 两
威望: 626 点
综合积分: 146 分
注册时间: 2008-11-23
最后登录: 2011-12-15
1楼  发表于: 2009-04-18 16:57
这是内核启动信息
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)

Scanning device for bad blocks

Bad eraseblock 157 at 0x000000274000

Bad eraseblock 158 at 0x000000278000

Bad eraseblock 159 at 0x00000027c000

Bad eraseblock 160 at 0x000000280000

Bad eraseblock 161 at 0x000000284000

Bad eraseblock 162 at 0x000000288000

Bad eraseblock 163 at 0x00000028c000

Bad eraseblock 164 at 0x000000290000

Bad eraseblock 165 at 0x000000294000

Bad eraseblock 166 at 0x000000298000

Bad eraseblock 167 at 0x00000029c000

Bad eraseblock 168 at 0x0000002a0000

Bad eraseblock 169 at 0x0000002a4000

Bad eraseblock 170 at 0x0000002a8000

Bad eraseblock 171 at 0x0000002ac000

Bad eraseblock 172 at 0x0000002b0000

Bad eraseblock 173 at 0x0000002b4000

Bad eraseblock 174 at 0x0000002b8000

Bad eraseblock 175 at 0x0000002bc000

Bad eraseblock 176 at 0x0000002c0000

Bad eraseblock 177 at 0x0000002c4000

Bad eraseblock 179 at 0x0000002cc000

Bad eraseblock 180 at 0x0000002d0000

Bad eraseblock 181 at 0x0000002d4000

Bad eraseblock 182 at 0x0000002d8000

Bad eraseblock 183 at 0x0000002dc000

Bad eraseblock 184 at 0x0000002e0000

Bad eraseblock 185 at 0x0000002e4000

Bad eraseblock 186 at 0x0000002e8000

Bad eraseblock 187 at 0x0000002ec000

Bad eraseblock 188 at 0x0000002f0000

Bad eraseblock 189 at 0x0000002f4000

Bad eraseblock 190 at 0x0000002f8000

Bad eraseblock 191 at 0x0000002fc000

Bad eraseblock 192 at 0x000000300000

Bad eraseblock 193 at 0x000000304000

Bad eraseblock 194 at 0x000000308000

Bad eraseblock 195 at 0x00000030c000

Bad eraseblock 196 at 0x000000310000

Bad eraseblock 197 at 0x000000314000

Bad eraseblock 198 at 0x000000318000

Bad eraseblock 199 at 0x00000031c000

Bad eraseblock 200 at 0x000000320000

Bad eraseblock 201 at 0x000000324000

Bad eraseblock 202 at 0x000000328000

Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":

0x000000000000-0x000000040000 : "bootloader"

0x000000040000-0x000000060000 : "params"

0x000000060000-0x000000260000 : "kernel"

0x000000260000-0x000004000000 : "root"

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver




affs: block 10 is marked bad
block 11 is bad
yaffs: block 11 is marked bad
block 12 is bad
yaffs: block 12 is marked bad
block 13 is bad
yaffs: block 13 is marked bad
block 14 is bad
yaffs: block 14 is marked bad
block 15 is bad
yaffs: block 15 is marked bad
block 16 is bad
yaffs: block 16 is marked bad
block 17 is bad
yaffs: block 17 is marked bad
block 18 is bad
yaffs: block 18 is marked bad
block 19 is bad
yaffs: block 19 is marked bad
block 20 is bad
yaffs: block 20 is marked bad
block 21 is bad
yaffs: block 21 is marked bad
block 22 is bad
yaffs: block 22 is marked bad
block 23 is bad
yaffs: block 23 is marked bad
block 24 is bad
yaffs: block 24 is marked bad
block 25 is bad
yaffs: block 25 is marked bad
block 26 is bad
yaffs: block 27 is


Mounted root (yaffs filesystem) on device 31:3.
Freeing init memory: 124K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.2    | VT102 |      Offline                              

我已经烧写了文件系统啊,里面有/linuxrc啊,是因为nana flash 里有坏块,而没有烧写到nand flash吗?
这个阶段正是我事业的上升期,我怎么能走得开呢?
级别: 精灵王
UID: 3197
精华: 3
发帖: 770
金钱: 6995 两
威望: 5398 点
综合积分: 1600 分
注册时间: 2008-12-30
最后登录: 2010-12-31
2楼  发表于: 2009-04-18 17:39
从头开始更新一次再试试,这样的坏块报告肯定是不对的。
x - v - k - y
级别: 侠客
UID: 2535
精华: 0
发帖: 73
金钱: 690 两
威望: 626 点
综合积分: 146 分
注册时间: 2008-11-23
最后登录: 2011-12-15
3楼  发表于: 2009-04-20 09:16
谢谢你的回答,文件系统可以挂载上了,原因是我一时疏忽,没有向文件系统里拷贝动态库,现在可以挂载了,但是开机还会用那么多的坏块提示,这个怎么办呢,能修复坏块吗?

关于坏块,我想问问,如果有坏块的话,会不会影响nand flash的使用呢,还是有坏块也一样可以使用,没有什么影响呢?

我现在烧写的文件系统只用4M多,如果我要烧写50M的文件系统会不会因为有坏块而失败呢?

谢谢了
会当凌绝顶,一览众山小!
级别: 总版主
UID: 2
精华: 18
发帖: 1656
金钱: 13915 两
威望: 5380 点
综合积分: 3672 分
注册时间: 2008-01-01
最后登录: 2026-07-27
4楼  发表于: 2009-04-20 09:56
坏块只要不超过2%,就不会有影响的
友善之臂淘宝直销店:http://shop34928758.taobao.com

手机:13560352861(杨工),QQ:10108270
级别: 新手上路
UID: 2354
精华: 0
发帖: 15
金钱: 120 两
威望: 69 点
综合积分: 30 分
注册时间: 2008-11-13
最后登录: 2014-03-12
5楼  发表于: 2009-04-20 11:56

 Re:nand flash 出現了壞塊,請問怎樣解決啊

get a uboot for mini2440, write it into nand, boot uboot from nand, and

nand scrub

in uboot console to clear the fake bad sector.
级别: 侠客
UID: 2535
精华: 0
发帖: 73
金钱: 690 两
威望: 626 点
综合积分: 146 分
注册时间: 2008-11-23
最后登录: 2011-12-15
6楼  发表于: 2009-04-20 14:04

 回 5楼(mihs) 的帖子

尝试用U-Boot命令
nand scrub
NAND scrub: device 0 whole chip
Warning: scrub option will erase all factory set bad blocks!
         There is no reliable way to recover them.
         Use this command only for testing purposes if you
         are sure of what you are doing!

Really scrub this NAND flash? <y/N>
scrub aborted

不论选y还是N都是放弃.
怎么才能恢复呢?
级别: 侠客
UID: 2535
精华: 0
发帖: 73
金钱: 690 两
威望: 626 点
综合积分: 146 分
注册时间: 2008-11-23
最后登录: 2011-12-15
7楼  发表于: 2009-04-20 14:05
我的uboot是1.1.6版本
级别: 新手上路
UID: 2354
精华: 0
发帖: 15
金钱: 120 两
威望: 69 点
综合积分: 30 分
注册时间: 2008-11-13
最后登录: 2014-03-12
8楼  发表于: 2009-04-20 16:26

 Re:nand flash 出現了壞塊,請問怎樣解決啊

take this one. I had forgot the version of this uboot. I got it from

http://blog.chinaunix.net/u2/75270/article_103898.html

and it works fine for my mini2440.
附件: u-boot.rar (67 K) 下载次数:55
级别: 侠客
UID: 2535
精华: 0
发帖: 73
金钱: 690 两
威望: 626 点
综合积分: 146 分
注册时间: 2008-11-23
最后登录: 2011-12-15
9楼  发表于: 2009-04-21 08:43
但是uboot从nand flash里启动时,这个命令nand scrub和nand earser都
不好使啊,
nand scrub
NAND scrub: device 0 whole chip
Warning: scrub option will erase all factory set bad blocks!
         There is no reliable way to recover them.
         Use this command only for testing purposes if you
         are sure of what you are doing!

Really scrub this NAND flash? <y/N>
scrub aborted

不论选y还是N都是放弃.
你确定
get a uboot for mini2440, write it into nand, boot uboot from nand, and

nand scrub

in uboot console to clear the fake bad sector.

这样的方法行得通吗?你使用过吗?
谢谢
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go