[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'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, <Fatz@gmx.li> wrote:<br/> > Hi<br/>
> I'm trying to run a simple hello world with<br/>
> qemu-system-tricore -machine tricore_testboard -cpu tc27x -nographic \
-kernel<br/> > Test.elf<br/>
> The program is compiled with tricore-gcc (HighTec) for ROM target. The<br/>
> adress range for the code is 0x80000000.<br/>
> Unfortunately, I got this error message:<br/>
><br/>
> (qemu) QEMU 2.6.94 monitor - type 'help' for more information<br/>
> (qemu) rom: requested regions overlap (rom phdr #1: Test.elf.<br/>
> free=0x0000000080000388, addr=0x0000000080000378)<br/>
> qemu-system-tricore: rom check and register reset failed<br/>
><br/>
> The both addresses are in the starup code containing the following<br/>
> information<br/>
><br/>
> 0x80000378 0x80000378 0 g __CTOR_LIST__<br/>
> 0x8000037c 0x8000037c 0 l __CTOR_LIST__<br/>
> 0x80000380 0x80000380 0 l __CTOR_END__<br/>
> 0x80000388 0x80000388 0 g __CTOR_END__<br/>
> 0x80000388 0x80000388 0 g __DTOR_LIST__<br/>
> 0x8000038c 0x8000038c 0 l __DTOR_LIST__<br/>
><br/>
><br/>
> I've already checked the the address ranges specified in \
tricore_testboard.c<br/> > The used code section is defined with<br/>
><br/>
> memory_region_init_ram(ext_cram, NULL, "powerlink_ext_c.ram", \
2*1024*1024,<br/> > &error_fatal);<br/>
> memory_region_add_subregion(sysmem, 0x80000000, ext_cram);<br/>
<br/>
This error message isn't related to the QEMU code for defining<br/>
the tricore board -- it'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'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> </div>
<div> </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