Dear Howard Wang,

In message <1f9c78fa-be25-4bdf-8a02-3b2ebb48b...@dsirf.com> you wrote:
> Hi,
> 
> I have some problems with using u-boot writing to flash:  ( arm 920  
> processor )
> 
> first I  use tftp to download the kernel to memory and was successful:
> 
>  >tftp 0x800000 mImage
>  > OK
> 
> then I try to erase part of the flash, seems ok:
> 
>  > erase 0x1c040000 0x1c8FFFFF                
>  > erased 124 sectors
> 
> then I use cp.b command, failed with the "Flash not Erased" message
> cp.b ${fileaddr} 0x1c040000 ${filesize}
>       
>  >            copy to Flash...-Flash not Erased.
> 
> and no detailed error message was given.
> 
> any idea what could be wrong ?

Eventually ${filesize} is bigger than 0x1c8FFFFF-0x1c040000 = 8.75 MB,
or you didn't really use "cp.b" but "cp" instead?

Please provide a _complete_ log of all variable settings, commands and
their output.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Always borrow money from a pessimist; they don't expect  to  be  paid
back.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to