[U-Boot] Nand Erase/Write Fails with mtd error -5

Bouhara Kamel k.bouhara at yahoo.fr
Mon Jul 11 20:51:17 CEST 2011


Hello,  Im getting a trouble with mtd on my imx27 27 board, I can't write or 
erase it on U-Boot-1.3.4, here is the log :  U-Boot> run update_all                                                            
FEC ETHERNET: Autonegotiation timeout                                           
FEC ETHERNET: Link is down - 10/Half                                            
TFTP from server 192.168.0.2; our IP address is 192.168.0.10                    
Filename 'apf27-linux.bin'.                                                     
Load address: 0xa0000000                                                        
Loading: T T T T T T T T T T                                                    
Retry count exceeded; starting again                                            
TFTP from server 192.168.0.2; our IP address is 192.168.0.10                    
Filename 'apf27-linux.bin'.                                                     
Load address: 0xa0000000                                                        
Loading: #################################################################       
#################################################################       
#################################################################       
#################################################################       
#################################################################       
#################################################################       
#################################################################       
############################################################           done                                                                            
Bytes transferred = 2635464 (2836c8 hex)                                                                                                                        
NAND erase: device 0 offset 0x100000, size 0x500000                                                                                                             
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                                                                                                   
NAND 512MiB 1,8V 8-bit: MTD Erase failure: -5                                   
OK                                                                                                                                                              
NAND write: device 0 offset 0x100000, size 0x2836c8                             
nand_write_ecc: Device is write protected                                       
writing NAND page at offset 0x100000 failed                                     
Data did not fit into device, due to bad blocks                                  
2635464 bytes written: ERROR           Anyone have an idea of the problem here? 
Thanks for you help. 


More information about the U-Boot mailing list