[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-discuss
Subject:    Re: [Qemu-discuss] qemu-system-tricore requested regions overlap
From:       Fatz () gmx ! li
Date:       2016-09-03 6:55:33
Message-ID: trinity-ec58e794-4c7f-4ac2-ba90-068d51cee00d-1472885733637 () 3capp-gmx-bs76
[Download RAW message or body]

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Thanks for the response.</div>

<div>I could solve the problem.</div>

<div>The memory ranges definded for the qemu tricore board didn&#39;t match those \
defined in the development toolchain.</div>

<div>I will create some additional tricore board definition to use qemu with the free \
tricore toolchain.</div> </div>

<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; \
border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;"> <div name="quoted-content">On 26 August 2016 \
at 10:02, &lt;Fatz@gmx.li&gt; wrote:<br/> &gt; Hi<br/>
&gt; I&#39;m trying to run a simple hello world with<br/>
&gt; qemu-system-tricore -machine tricore_testboard -cpu tc27x -nographic \
-kernel<br/> &gt; Test.elf<br/>
&gt; The program is compiled with tricore-gcc (HighTec) for ROM target. The<br/>
&gt; adress range for the code is 0x80000000.<br/>
&gt; Unfortunately, I got this error message:<br/>
&gt;<br/>
&gt; (qemu) QEMU 2.6.94 monitor - type &#39;help&#39; for more information<br/>
&gt; (qemu) rom: requested regions overlap (rom phdr #1: Test.elf.<br/>
&gt; free=0x0000000080000388, addr=0x0000000080000378)<br/>
&gt; qemu-system-tricore: rom check and register reset failed<br/>
&gt;<br/>
&gt; The both addresses are in the starup code containing the following<br/>
&gt; information<br/>
&gt;<br/>
&gt; 0x80000378 0x80000378 0 g __CTOR_LIST__<br/>
&gt; 0x8000037c 0x8000037c 0 l __CTOR_LIST__<br/>
&gt; 0x80000380 0x80000380 0 l __CTOR_END__<br/>
&gt; 0x80000388 0x80000388 0 g __CTOR_END__<br/>
&gt; 0x80000388 0x80000388 0 g __DTOR_LIST__<br/>
&gt; 0x8000038c 0x8000038c 0 l __DTOR_LIST__<br/>
&gt;<br/>
&gt;<br/>
&gt; I&#39;ve already checked the the address ranges specified in \
tricore_testboard.c<br/> &gt; The used code section is defined with<br/>
&gt;<br/>
&gt; memory_region_init_ram(ext_cram, NULL, &quot;powerlink_ext_c.ram&quot;, \
2*1024*1024,<br/> &gt; &amp;error_fatal);<br/>
&gt; memory_region_add_subregion(sysmem, 0x80000000, ext_cram);<br/>
<br/>
This error message isn&#39;t related to the QEMU code for defining<br/>
the tricore board -- it&#39;s complaining that your ELF file has<br/>
two program headers which define overlapping bits of code to<br/>
be loaded.<br/>
<br/>
What does tricore-objdump --all-headers Test.elf say?<br/>
(I don&#39;t know the exact name of the objdump binary for your<br/>
cross toolchain, so it might be slightly different.)<br/>
<br/>
thanks<br/>
-- PMM</div>

<div name="quoted-content">
<div>&nbsp;</div>

<div>&nbsp;</div>
</div>
</div>
</div></div></body></html>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic