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

sughosh ganu urwithsughosh at gmail.com
Sun Oct 28 07:07:22 CET 2007


Hi,

On 10/27/07, sughosh ganu <urwithsughosh at gmail.com> wrote:

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

 Oops, think i jumped the gun. The 'cp' command actually copies data
between any kind of memory. So probably, as the other post suggested,
the address seems to be detected as a part of the Flash.

--
sughosh




More information about the U-Boot mailing list