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

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.

Dear Bouhara Kamel,
In message 1310410277.25591.YahooMailRC@web24917.mail.ird.yahoo.com 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
...
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
participants (2)
-
Bouhara Kamel
-
Wolfgang Denk