Skip to contentSkip to conversation

when load another u-boot.bin, failed cp.b from memory to flash

U-Boot-Users Tyler Jia 2 participants 2 messages Sep 30, 2004

lore
Share & tools
lore

Tyler Jia

author
#0 lore raw

Hello,

I try to update the new u-boot.bin (128k) with an
u-boot already run in a ppc405ep board (8mb flash, 32mb ram),

using serial port, Using original u-boot to install another u-boot.bin, for example:
flash memory from ff800000 to ffffffff, u-boot.bin in fffe0000 to ffffffff,

. loadb 0x1000000
. kermit send u-boot.bin
Then we can see u-boot.bin (128k) shows in
0x1000000 - 0x1020000,

if copy from memory to flash,
After protect off 0xfffe0000 sector
And erase 0xfffe0000 sector
Cp.b 0x1000000 0xfffe0000 0x20000
but no u-boot.bin shows in 0xfffe0000 - 0xfffffff,
all byts from fff80000 to ffffffff become 008000880 .

if copy from memory to memory
cp.b 0x1000000 0x1050000 0x20000
In 0x1050000 - 0x106ffff u-boot.bin shows right.

So cp.b copy from memory to memory workes , but
cp.b copy from memory to flash does not work!

the cp.b seems just could copy memory to memory, but how to enable it copy from memory to flash?

Thanks a lot!

Best regards

Tyler

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:
   Cp.b 0x1000000 0xfffe0000 0x20000
   but no u-boot.bin shows in 0xfffe0000 - 0xfffffff,

all byts from fff80000 to ffffffff become 008000880 .

Stop here. You have a serious prblem with your flash driver (and/or your hardware).

Quoted 2 lines

the cp.b seems just could copy memory to memory, but how to enable it copy from memory to flash?

It workes on all sane configurations.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Punishment becomes ineffective after a certain point. Men become  in-
sensitive.
	-- Eneg, "Patterns of Force", stardate 2534.7