I'm afraid I can't tell you this because of your confidentiality disclaimer below.. But what the heck...

Amit Kumar wrote:

Hello Guys,

            I have one clarification related to PXA255 code in U-boot.

If in board/pxa255_idp/config.mk        TEXT_BASE = 0xa3080000 (this is RAM address in my board)

                        then because of –Ttext option (in u-boot/config.mk file), in U-boot.map file .text section starts from 0xa3080000 address.

                        So all the symbols like _start, _armboot_start get addresses with respect to 0xa3080000 address only.

                        I am using JFLASH to download the code in FLASH and running the code from FLASH. I am disabling that part of code which relocates the binary from FLASH to RAM.

Why you're disabling the relocation stuff? Without relocation you can run your code only from RAM (loaded by JTAG or internal loader via serial cable when flash is empty, for example).

                        What I don’t understand is when in MAP file all the symbols have addresses of RAM then after downloading in FLASH, how code is executing?

The relocation procedure (read: start.S) written in assembly and has relative jumps :-P

 

Regards

Amit Kumar

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


Kind regards,
Andrejs Cainikovs.




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to