[U-Boot-Users] quesions in porting ARMBOOT to the CX821xx(ARM940T)

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... Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.

In message BAY105-F2817497BF1F2056D88B379E0140@phx.gbl you wrote:
I have some questions in porting the ARMBOOT to the CX821xx(ARM940T).
ARMBoot? ARMBoot is a dead project. Don't expect any help in using it. Please use a current version of U-Boot instead for any current work.
The attackments are my two "armboot.map". Could somebody tell me something
We are a peaceful community. It is unfair to attack us.
Best regards,
Wolfgang Denk
participants (2)
-
dennis fu
-
Wolfgang Denk