Skip to contentSkip to conversation

about filesize when copy from flash to ram

DISCUSSION Jerry Van Baren 1 participant 1 message Feb 20, 2003 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

You are copying flash over top of your interrupt vectors, overwriting active code and crashing your system. Don't do that. Getting a load into the bottom of RAM (e.g. loading linux) is a delicate dance that u-boot does well, so use that function. You are not going to be able to do it with the "cp" command. Read the README file for a lot more information.

gvb

Quoted 17 lines

From: okisoftxman [mailto:[email protected]]
Sent: Wednesday, February 19, 2003 6:04 PM
To: linux-emb
Subject: about filesize when copy from flash to ram

First thank you for your help.

Useing my MBX860 board's u-boot,I try to copy some files from flash to ram.The files in this address "fe600000" in the flash.
I find a problem when I use this command"cp.b fe000000 00000000 filesize",if the filesize<=900sbit(hex),the
file can copy from flash to ram.but if the filesize>=900sbit(hex),the system will reset.e.g."cp.b fe000000 00000000 1000"will reset the system and fail to copy to ram,why?

Quoted 5 lines

The critical value of filesize is between 900~1000,about 2Kbytes,why?

Thank you

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/