[U-Boot] Updating u-boot through tftp

Scott Wood scottwood at freescale.com
Thu Aug 6 01:05:33 CEST 2009


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


More information about the U-Boot mailing list