天嵌 ARM开发社区

 找回密码
 注册
查看: 2301|回复: 11

是nand的坏块么?而且一次比一次多

[复制链接]
vip2009 发表于 2011-2-21 18:32:35 | 显示全部楼层 |阅读模式
Starting kernel ...                                                                                                   
Uncompressing Linux.............................................................
Initializing cgroup subsys cpuset                                               
Initializing cgroup subsys cpu                                                  
Linux version 2.6.30 (root@ubuntu) (gcc version 4.3.3 (Sourcery G++ Lite 2009q11
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177                        
CPU: VIVT data cache, VIVT instruction cache                                    
Machine: SMDK2440                                                               
Memory policy: ECC disabled, Data cache writeback                              
CPU S3C2440A (id 0x32440001)                                                   
S3C24XX Clocks, (c) 2004 Simtec Electronics                                    
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz            
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on                           
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256      
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0s
Experimental hierarchical RCU implementation.                                   
Experimental hierarchical RCU init done.                                       
NR_IRQS:85                                                                     
irq: clearing pending ext status 00000200                                       
irq: clearing subpending status 00000003                                       
irq: clearing subpending status 00000002                                       
PID hash table entries: 256 (order: 8, 1024 bytes)                              
Console: colour dummy device 80x30                                             
console [ttySAC0] enabled                                                      
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)                  
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)                    
allocated 327680 bytes of page_cgroup                                          
please try cgroup_disable=memory option if you don't want                       
Memory: 64MB = 64MB total                                                      
Memory: 61200KB available (2776K code, 357K data, 116K init, 0K highmem)        
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1         
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)                          
Mount-cache hash table entries: 512                                             
Initializing cgroup subsys ns                                                   
Initializing cgroup subsys cpuacct                                             
Initializing cgroup subsys memory                                               
Initializing cgroup subsys devices                                             
Initializing cgroup subsys freezer                                             
CPU: Testing write buffer coherency: ok                                         
net_namespace: 520 bytes                                                        
NET: Registered protocol family 16                                             
S3C2440: Initialising architecture                                             
S3C2440: IRQ Support                                                            
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics                       
DMA channel 0 at c4808000, irq 33                                               
DMA channel 1 at c4808040, irq 34                                               
DMA channel 2 at c4808080, irq 35                                               
DMA channel 3 at c48080c0, irq 36                                               
S3C244X: Clock Support, DVS off                                                
bio: create slab <bio-0> at 0                                                   
NET: Registered protocol family 2                                               
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                  
TCP established hash table entries: 2048 (order: 2, 16384 bytes)               
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)                        
TCP: Hash tables configured (established 2048 bind 2048)                        
TCP reno registered                                                            
JFFS2 version 2.2. (NAND)
 楼主| vip2009 发表于 2011-2-21 18:34:21 | 显示全部楼层
fuse init (API version 7.11)                                                   
yaffs Feb 20 2011 15:41:32 Installing.                                          
msgmni has been set to 119                                                      
alg: No test for stdrng (krng)                                                  
io scheduler noop registered (default)                                          
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440      
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440      
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440      
S3C24XX NAND Driver, (c) 2004 Simtec Electronics                                
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns           
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-b)
Scanning device for bad blocks                                                  
Bad eraseblock 704 at 0x000005800000                                            
Bad eraseblock 705 at 0x000005820000                                            
Bad eraseblock 1200 at 0x000009600000                                          
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":                          
0x000000000000-0x000000100000 : "uboot"                                         
mtd: Giving out device 0 to uboot                                               
0x000000100000-0x000000400000 : "kernel"                                       
mtd: Giving out device 1 to kernel                                             
0x000000400000-0x000010000000 : "yaffs2"                                       
mtd: Giving out device 2 to yaffs2                                             
mice: PS/2 mouse device common for all mice                                    
S3C24XX RTC, (c) 2004,2006 Simtec Electronics                                   
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics                             
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled         
TCP cubic registered                                                            
NET: Registered protocol family 17                                             
RPC: Registered udp transport module.                                          
RPC: Registered tcp transport module.                                          
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)                        
yaffs: dev is 32505858 name is "mtdblock2"                                      
yaffs: passed flags ""                                                         
yaffs: Attempting MTD mount on 31.2, "mtdblock2"                                
yaffs: auto selecting yaffs2                                                   
block 673 is bad                                                               
block 674 is bad                                                               
block 1169 is bad                                                               
Partially written block 132 detected                                            
            省略上千行                                                                  
Partially written block 114 detected                                            
yaffs_read_super: isCheckpointed 0                                             
VFS: Mounted root (yaffs filesystem) on device 31:2.                           
Freeing init memory: 116K                                                      
Bad inittab entry at line 4                                                     
                                                                                
Please press Enter to activate this console.                                    
[root@yxl /]# ls                                                               
bin         home        lost+found  proc        sys                             
dev         lib         mnt         root        tmp                             
etc         linuxrc     opt         sbin        usr                             
[root@yxl /]#
 楼主| vip2009 发表于 2011-2-21 18:38:00 | 显示全部楼层
Partially written block 132 detected                                            
            省略上千行                                                                  
Partially written block 114 detected      

系统每次启动的时候都有很多这样的打印,而且每一次开机都比上一次的多,
擦除nand重新烧写内核和文件系统恢复正常。
但是不能每次这恢复系统啊,这个问题要怎么解决呢?是什么原因引起的?
各位大哥帮帮忙啊,小弟万分感谢!
machoe 发表于 2011-2-21 19:59:48 | 显示全部楼层
格式化一下,重新烧写,有可能是假坏块
 楼主| vip2009 发表于 2011-2-21 22:33:57 | 显示全部楼层
4# machoe


machoe  非常感谢啊!格式化一下,重新烧写内核和文件系统就可以了!:)
uboard 发表于 2011-2-22 09:47:42 | 显示全部楼层
:)学习了学习了
shufexiu 发表于 2011-2-22 09:51:00 | 显示全部楼层
格式化就行哟!命令9 是完全格式化了就有消除假坏块的功能
 楼主| vip2009 发表于 2011-2-22 12:56:43 | 显示全部楼层
7# shufexiu


3Q谢谢
 楼主| vip2009 发表于 2011-2-22 18:00:14 | 显示全部楼层
7# shufexiu


Scanning device for bad blocks                                                  
Bad eraseblock 704 at 0x000005800000                                            
Bad eraseblock 705 at 0x000005820000                                            
Bad eraseblock 1200 at 0x000009600000                                          
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":                          
0x000000000000-0x000000100000 : "uboot"                                         
mtd: Giving out device 0 to uboot                                               
0x000000100000-0x000000400000 : "kernel"                                       
mtd: Giving out device 1 to kernel                                             
0x000000400000-0x000010000000 : "yaffs2"                                       
mtd: Giving out device 2 to yaffs2                                             
mice: PS/2 mouse device common for all mice                                    
S3C24XX RTC, (c) 2004,2006 Simtec Electronics                                   
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics                             
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled         
TCP cubic registered                                                            
NET: Registered protocol family 17                                             
RPC: Registered udp transport module.                                          
RPC: Registered tcp transport module.                                          
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)                        
yaffs: dev is 32505858 name is "mtdblock2"                                      
yaffs: passed flags ""                                                         
yaffs: Attempting MTD mount on 31.2, "mtdblock2"                                
yaffs: auto selecting yaffs2                                                   
block 673 is bad                                                               
block 674 is bad                                                               
block 1169 is bad                                                               
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 115 detected  又出来了,                                 
Partially written block 115 detected                                            
Partially written block 115 detected                                            
Partially written block 114 detected                                            
yaffs_read_super: isCheckpointed 0                                             
VFS: Mounted root (yaffs filesystem) on device 31:2.                           
Freeing init memory: 116K                                                      
Bad inittab entry at line 4                                                     
                                                                                
Please press Enter to activate this console.

Partially written block 115 detected      
这个东西又出来了!我格式化之后这个本来没有了,但是下班回来一开机又出现这个了,,,怎么回来啊,不能每次都去把nand格式化啊,,这个问题的根本在哪里呢?
shufexiu 发表于 2011-2-22 18:42:30 | 显示全部楼层
nand的驱动引起的
如果是2.6.30.4内核 修改 “drivers/mtd/nand/s3c2410.c” 的大概第752行
如果是 2.6.25.8内核 修改 "drivers/mtd/nand/s3c2410.c" 的大概669行
将   chip->ecc.mode    = NAND_ECC_SOFT;
改成 chip->ecc.mode    = NAND_ECC_NONE;
天嵌_support1 发表于 2011-2-22 18:43:40 | 显示全部楼层
:)好回复
 楼主| vip2009 发表于 2011-2-22 23:19:55 | 显示全部楼层
10# shufexiu


谢谢!这次我试好N多次,应该不会出问题了!:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-6 04:47 , Processed in 1.037149 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表