All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot]  Updating u-boot through tftp
@ 2009-08-05 12:05 alex889
  2009-08-05 23:05 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: alex889 @ 2009-08-05 12:05 UTC (permalink / raw)
  To: u-boot


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                                                
-- 
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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Updating u-boot through tftp
  2009-08-05 12:05 [U-Boot] Updating u-boot through tftp alex889
@ 2009-08-05 23:05 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2009-08-05 23:05 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-05 23:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 12:05 [U-Boot] Updating u-boot through tftp alex889
2009-08-05 23:05 ` Scott Wood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.