[U-Boot] copy to flash: Flash not Erased
Wolfgang Denk
wd at denx.de
Tue Dec 8 22:17:55 CET 2009
Dear Howard Wang,
In message <1F9C78FA-BE25-4BDF-8A02-3B2EBB48B35E at 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: wd at denx.de
Always borrow money from a pessimist; they don't expect to be paid
back.
More information about the U-Boot
mailing list