[U-Boot-Users] when load another u-boot.bin, failed cp.b from memory to flash

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

In message 20040930214116.83952.qmail@web53405.mail.yahoo.com 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).
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
participants (2)
-
Tyler Jia
-
Wolfgang Denk