Skip to contentSkip to conversation

cp.b command not working for copy to flash

U-Boot Nirav Rabara 4 participants 4 messages Jul 22, 2009

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
View this message in context: http://www.nabble.com/cp.b-command-not-working-for-copy-to-flash-tp24600612p24600612.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw

Dear Nirav Rabara,

Quoted 7 lines · In message <[email protected]> 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

Signature · 4 lines
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
Of course there's no reason for it, it's just our policy.
#2 lore raw
In reply to Nirav Rabara

Hi Nirav,

Quoted 7 lines

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

#3 lore raw
Quoted 5 lines · Dieter Kiermaier

Hi Nirav,

Quoted 4 lines

I am trying cp.b 22000000 10100000 180000 (i.e. copy from RAM to FLASH) Its showing me message flash can't Erase.

Quoted 7 lines
Quoted 1 line

But when i tried cp.b 10100000 22000000 180000 its working. (i.e. copy

from

Quoted 2 lines

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

Quoted 8 lines

Dieter

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot