Skip to contentSkip to conversation

Updating u-boot through tftp

U-Boot alex889 2 participants 2 messages Aug 5, 2009

lore
Share & tools
lore

alex889

author
#0 lore raw

Hi,
I'm running u-boot on TI's davinci DM365,
I'm trying to update the u-boot from the u-boot, using these commands:

tftp 0x80700000 u-boot-1.3.4_ipnc_dm36x_xxx.bin
nand erase 0x2C000 0x20000
nand write 0x80700000 0x2C000 0x20000

but when i try to run the erase command, i'm getting this error:

DM365 EVM :>nand erase 0x2c000 0x20000
NAND erase: device 0 offset 0x2c000, size 0x20000
NAND 256MiB 3,3V 8-bit: MTD Erase failure: -22

How can i do it? is this part locked?
Thanks,
Alex

Signature · 2 lines
View this message in context: http://www.nabble.com/-U-Boot--Updating-u-boot-through-tftp-tp24825617p24825617.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 5 lines · On Wed, Aug 05, 2009 at 05:05:34AM -0700, alex889 wrote:

but when i try to run the erase command, i'm getting this error:

DM365 EVM :>nand erase 0x2c000 0x20000
NAND erase: device 0 offset 0x2c000, size 0x20000
NAND 256MiB 3,3V 8-bit: MTD Erase failure: -22

Is this small page or large page NAND? If it's large page, that's not block-aligned.

Try defining CONFIG_MTD_DEBUG and CONFIG_MTD_DEBUG_VERBOSE. The latter is a value between 0 and 3, depending on how much output you want -- 0 should be sufficient for getting a basic reason for erase failure (which in U-Boot should probably be a simple printf rather than debug output).

-Scott