Re: [U-Boot-Users] ppc4xx relocate_code what it does????

Hi all,
I just want to disable relocation because i want to run the uboot from ram and debug(BDI 2000).
I tried like this i changed the TEXT_BASE to 0x1900000 (my ram is 32 Mb)
But my u-boot code is failing to compile (I am using ELDK)
please anybody help me
Best Regards, Arun
On 8/10/07, urwithsughosh@gmail.com urwithsughosh@gmail.com wrote:
Hi,
After doing all the initializations (i.e) serail_init,init_baudrate etc.., finally it reaches to relocate_code(addr_sp,id,addr) in the board_init_f() function in the board.c file (lib_ppc\board.c) ppc4xx. what it does? which part of the code or data copies from flash to the ram?
The whole u-boot image is copied from the flash to the ram.This is done after the board_init_f function initialises all the required controllers.The relocation code is present in cpu/<your_cpu>/start.S
Is this required while I am running from the SDRAM? what part of the code I can skip in the relocate_code function? If running from the flash what should i do?
It is required to run from the SDRAM.Since the entire image is copied as is, the complete code needs to be copied.Why would you want to tamper with it?
-- sughosh

In message c656a4d20708100011j41606315xf4e8692c614c6288@mail.gmail.com you wrote:
I just want to disable relocation because i want to run the uboot from ram and debug(BDI 2000).
I tried like this i changed the TEXT_BASE to 0x1900000 (my ram is 32 Mb)
If you don't know U-Boot inside out and know *exactly* what you are doing, you should keep your finger's off such intimate parts.
But my u-boot code is failing to compile (I am using ELDK)
please anybody help me
Please see FAQ # 1: http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStarted...
Best regards,
Wolfgang Denk

Hi,
I just want to disable relocation because i want to run the uboot from ram and debug(BDI 2000).
But relocation does just that,move the u-boot to ram and runs it from there.
I tried like this i changed the TEXT_BASE to 0x1900000 (my ram is 32 Mb)
But my u-boot code is failing to compile (I am using ELDK)
please anybody help me
You have to boot from the flash as the reset vector is the last word.Changing the text base is not going to help.I suggest you read the manual first.
participants (3)
-
arun c
-
Sughosh Ganu
-
Wolfgang Denk