[U-Boot] is any bug in cp?

Charles Krinke charles.krinke at gmail.com
Fri Apr 15 15:58:04 CEST 2011


This makes sense as one should *not* copy from one sector in a flash to the
same sector in a flash. Flash is erased in sectors, usually 128K and should
be treated as a complete sector.

The cp command is usually used to copy from RAM to FLASH or from FLASH to
RAM. What you are doing seems illogical.

Charles

On Thu, Apr 14, 2011 at 11:01 PM, hacklu.uboot <hacklu.uboot at gmail.com>wrote:

> hi,in my uboot.
>
> there is some bugs when I cp to flash like this:
> cp.b addr1 addr2 0x100
>
> when the two addr in the same bank of a flash. it go wrongs
>
> finally the date of addr2 is  0x8080808080...
>
> cp to another bank of flash is work correctly.
> cp from mem to flash or from flash to mem also correctly.
>
> how is this?
>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>


-- 
Charles Krinke


More information about the U-Boot mailing list