[U-Boot-Users] quesions in porting ARMBOOT to the CX821xx(ARM940T)
dennis fu
dennis24376 at hotmail.com
Fri Jan 27 23:06:53 CET 2006
Hi, all
I have some questions in porting the ARMBOOT to the CX821xx(ARM940T).
in the "start_armboot(void)":
1. when I skip two instructions and stop in one point, i.e.
void start_armboot(void)
{
...
/* initialize environment */
//env_init(&bd); //skip it!!!!
...
/* initialize environment */
//env_relocate(&bd); //skip it!!!!
#if 1 //my code, stop here to get some debug information
printf("I am here\n");
for(;;);
#endif
...
}
My final BIN file is about 13kbytes, and the code works well (can printf all
information).
But,
2. when I open the two instructions, i.e.
void start_armboot(void)
{
...
/* initialize environment */
env_init(&bd); //open it!!!!
...
/* initialize environment */
env_relocate(&bd); //open it!!!!
#if 1 //my code, stop here to get some debug information
printf("I am here\n");
for(;;);
#endif
...
}
My final BIN file is about 74kbytes, and the code is broken (no information
output).
I compare the relevant "armboot.map" files of these two case. The case 2
includes more
functions than case 1.
My question is:
(1) why these two instructions affect in linking more functions?
(2) I do believe I copy all code from the FLASH into the SDRAM before
jumping the "start_armboot".
Why I can run in the low part of code in the SDRAM, but when I call a
function is far from
the _START, my code is broken?
The attackments are my two "armboot.map". Could somebody tell me something
about my question? Because I new man in porting ARMBOOT, I really appreciate
your help!
Dennis
_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: armboot(big).map
Url: http://lists.denx.de/pipermail/u-boot/attachments/20060127/cab9b679/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: armboot(small).map
Url: http://lists.denx.de/pipermail/u-boot/attachments/20060127/cab9b679/attachment-0001.txt
More information about the U-Boot
mailing list