<div dir="ltr"><br><div class="gmail_extra">Hi,<br><br><div class="gmail_quote">2013/4/17 Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">Peng Fan wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi Chris,<br>
<br>
I have encounter a few problems in running "rtld".<br>
When I use sparc-rtems4.11-run to run rtld, it showes "shell: open input<br>
/shell-init failed: No such file or directory". I look insight into the<br>
code, and find that<br>
there is a fs-root.tar is compiled into "rtld". I do not know how to<br>
resove this.<br>
<br>
when using higher version gcc/g++(4.7.1), rtems-host compilation<br>
failed,but lower<br>
verison gcc/g++(4.3) is ok.<br>
<br>
</blockquote>
<br></div>
There are symbols in main.c that understand the tar file. Is something wrong with them ?<div class="im"><br></div></blockquote><div> </div><div style> I looked insight into the code and found that</div><div style> the fs-root.tar is untared by setup_rootfs->Untar_FromMemory.</div>
<div style> Is it becasue the tar version on my host pc does not match Untar_* in RTEMS?</div><div style> I follow the compilation log to clarify how waf works and how fs-root.tar is compiled into rtld.look at the following:</div>
<div style><div>1. shell-init libx.a -> fs-root.tar -> fs-root-tarfile.o</div><div>2. init.c.5.o main.c.5.o fs-root-tarfile.o -lrtl -> rtld.prelink</div><div>3. nm rtld.prelink -> rtld-gsyms.c</div><div>4. init.c main.c rtld-gsyms.c xa.c x-long-name...-in-archive.c</div>
<div>  -> x.rap</div><div>5. shell-init libx.a x.rap -> fs-root.tar -> fs-root-tarfile.o</div><div>6. init.c.10.o main.c.10.o fs-root-tarfile.o  rtld-gsyms.10.o -lrtl -> rtld</div><div style>I also objdump the code to see if any address is wrong, but all is ok.</div>
<div style>Now what I doubt is only verison mismatch.</div><div style><br></div><div style>A question that I want your answer, is the rtld.prelink only used for generating rtld-gsymcs.c? I think it is, but not sure.</div>
<div style><br></div><div style>Thanks.</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">

<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
In the wiki page, it says "The RTL Host project builds the RTEMS Linker<br>
(rtems-ld) and the RTL project builds an RTEMS application that runs on<br>
the i386 and SPARC processors". when using "waf configure<br>
--prefix=/opt/rtems-4.11/ --rtems-arch=sparc", it works.But when using<br>
"waf configure --prefix=/opt/rtems-4.11/ --rtems-arch=arm",<br>
  it shows "could not find any architectures".<br>
</blockquote>
<br></div>
Fantastic. I think this is worth a GSoC proposal. :)</blockquote><div><br></div><div style>When modified the rtems.py with "d.endswith('-rtems<b>eabi</b>' + version)", the configuration passed. But waf failed when generating x.rap using rtems-ld.</div>
<div style>It tells "error: libelf:elf_getdata: .ARM.attributes(xa.c.8.o): Invalid section descriptor"</div><div style>I may dig into rtl-host code to figure out why and this may be part of the work that I should focus on</div>
<div style><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)"> </span><br>
</div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Howerver, the rtl-target code includes such files<br>
  rtl-mdreloc-arm/m68k/powerpc/<u></u>i3868/nios2/sparc.c with mips missed, I<br>
do not know<br>
  whether these architectures all have been implemented.<br>
</blockquote>
<br></div>
I have only tested i386 and sparc and a while ago m68k. The other need work to be implemented.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hope you can give me some advice on this and Which arch support would you<br>
suggest me to work on? Thanks.<br>
</blockquote>
<br></div>
The project need work to implement more architectures. I am traveling at the moment and will be back later in the week. A proposal to work on these other archs would be welcome.</blockquote><div style> </div><div style>I want to implement arm support first. If time permits, I will implement mips too.</div>
<div style>Now I can not evaluate the workload whether I can finish one, two or more. I am preparing the proposal and it'll be finished soon.</div><div style>Thanks.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
<br>
Chris<br>
</font></span></blockquote></div><br></div><div class="gmail_extra" style>Regards,</div><div class="gmail_extra" style>Peng.</div></div>