[U-Boot] cp.b command not working for copy to flash

I am trying cp.b 22000000 10100000 180000 (i.e. copy from RAM to FLASH) Its showing me message flash can't Erase.
But when i tried cp.b 10100000 22000000 180000 its working. (i.e. copy from FLASH to RAM) Can please anybody tell me what's going wrong??

Dear Nirav Rabara,
In message 24600612.post@talk.nabble.com you wrote:
I am trying cp.b 22000000 10100000 180000 (i.e. copy from RAM to FLASH) Its showing me message flash can't Erase.
But when i tried cp.b 10100000 22000000 180000 its working. (i.e. copy from FLASH to RAM) Can please anybody tell me what's going wrong??
Your port of U-Boot is incomplete and/or broken.
Also, you should be using current code instead of such an old version.
Best regards,
Wolfgang Denk

Hi Nirav,
I am trying cp.b 22000000 10100000 180000 (i.e. copy from RAM to FLASH) Its showing me message flash can't Erase.
But when i tried cp.b 10100000 22000000 180000 its working. (i.e. copy from FLASH to RAM) Can please anybody tell me what's going wrong??
Maybe you have to unprotect your flash first?
Dieter

On Wed, Jul 22, 2009 at 12:03 PM, Dieter Kiermaier dk-arm-linux@gmx.dewrote:
Hi Nirav,
I am trying cp.b 22000000 10100000 180000 (i.e. copy from RAM to FLASH) Its showing me message flash can't Erase.
But when i tried cp.b 10100000 22000000 180000 its working. (i.e. copy
from
FLASH to RAM) Can please anybody tell me what's going wrong??
Maybe you have to unprotect your flash first?
Also You have to erase the sector of the Flash before you do the cp operation.
-Shinose
Dieter
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (4)
-
Dieter Kiermaier
-
Nirav Rabara
-
Shinose
-
Wolfgang Denk