Skip to contentSkip to conversation

Nand Erase/Write Fails with mtd error -5

U-Boot Bouhara Kamel 2 participants 2 messages Jul 11, 2011 – Jul 28, 2011

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

Dear Bouhara Kamel,

Quoted 3 lines · In message <[email protected]> you wrote:

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

...

Quoted 1 line

Anyone have an idea of the problem here?

Well, v1.3.4 is 3 years old and as such hopelessly out of date. Please do yourself (and us) a favour and update to current code, then try again.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Military secrets are the most fleeting of all.
	-- Spock, "The Enterprise Incident", stardate 5027.4