ppc4xx relocate_code what it does????
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?
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?
Arun
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
Quoted 26 lines · urwithsughosh at gmail.com
Hi,
Quoted 6 lines
After doing all the initializations (i.e) serail_init,init_baudrate etc.., finally it reaches to
relocate_code(addr_sp,id,addr)in theboard_init_f()function in theboard.cfile (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_ffunction initialises all the required controllers.The relocation code is present in cpu/<your_cpu>/start.SQuoted 3 lines
Is this required while I am running from the SDRAM? what part of the code I can skip in the
relocate_codefunction? 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
Quoted 5 lines · In message <[email protected]> you…
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_BASEto0x1900000(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.
Quoted 3 lines
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/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "In Christianity neither morality nor religion come into contact with reality at any point." - Friedrich Nietzsche
Hi,
Quoted 2 lines
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.
Quoted 7 lines
I tried like this i changed the
TEXT_BASEto0x1900000(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.
Signature · 1 line
sughosh