<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font color="#000000"><tt><br>
</tt></font>
<div class="moz-signature">
<meta content="text/html;" http-equiv="Content-Type">
<title></title>
<font color="#000000"><tt>I'm afraid I can't tell you this because of
your confidentiality disclaimer below.. But what the heck...<br>
</tt></font></div>
<br>
Amit Kumar wrote:
<blockquote
 cite="mid:3F8E087F6663404B945D1FCF703777D115B3F20E4B@BLRKECMBX06.ad.infosys.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
  <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Hello Guys,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">            I
have one clarification related to PXA255 code in U-boot.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">If in <b><span
 style="font-weight: bold;">board/pxa255_idp/config.mk</span></b>       
TEXT_BASE = 0xa3080000 (this is RAM address in my board)<br>
  <br>
  <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">                       
then
because of –Ttext option (in u-boot/config.mk file), in U-boot.map file
.text section starts from 0xa3080000 address. <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">                       
So
all the symbols like _start, _<i><span style="font-style: italic;">armboot</span></i>_start
get addresses with respect to 0xa3080000 address only. <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">                        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.</span></font></p>
  </div>
</blockquote>
<tt>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).</tt><br>
<blockquote
 cite="mid:3F8E087F6663404B945D1FCF703777D115B3F20E4B@BLRKECMBX06.ad.infosys.com"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">                       
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?</span></font></p>
  </div>
</blockquote>
<tt>The relocation procedure (read: start.S) written in assembly and
has relative jumps :-P</tt><br>
<blockquote
 cite="mid:3F8E087F6663404B945D1FCF703777D115B3F20E4B@BLRKECMBX06.ad.infosys.com"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Regards<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Amit Kumar<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
  </div>
  <table>
    <tbody>
      <tr>
        <td bgcolor="#ffffff"><font color="#000000">
        <pre>**************** 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***</pre>
        </font></td>
      </tr>
    </tbody>
  </table>
  <br>
</blockquote>
<tt><br>
Kind regards,<br>
Andrejs Cainikovs.</tt><br>
</body>
</html>