[U-Boot-Users] u-boot cp command for at91rm9200

sughosh ganu urwithsughosh at gmail.com
Sat Oct 27 21:18:09 CEST 2007


Hi,

On 10/26/07, Paul Thomas <pthomas8589 at gmail.com> wrote:

> It works, but if I do
> > cp 20000000 20001000 256
> I get the error
> "Copy to Flash... General Flash Programming Error"
> Why does it think this is a flash operation? I am using RAM addresses.

That's because the 'cp' command copies data from the RAM to the flash
and vice versa. Check the function do_mem_cp in the common/cmd_mem.c.
For copying within memory, you have memcpy.

--
sughosh




More information about the U-Boot mailing list