<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 1:33 PM, DiGiorgio, Joseph <span dir="ltr"><<a href="mailto:jdigiorg@ball.com" target="_blank">jdigiorg@ball.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_5945604794686703946WordSection1">
<p class="MsoNormal">I am trying to run RTEMS on QEMU using ideally the mpc750 target and as a secondary PReP. I have run into a few issues so far and will outline them below.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">1) This is more of a curiosity thing than something majorly important, but is the Power PC 750 target mis-labeled as “mcp750”? All the documentation I have come across says “MPC750” and searching for “MCP750” via Google pulls up mostly
RTEMS documentation and one Motorola document that is not available, but cached by Google with headings as “MCP750”, but in the body text uses “MPC750”.<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div><br></div><div>The MPC750 was the PowerPC CPU. The MCP750 was a CompactPCI</div><div>board from Motorola Computer Group (MCG). Long ago, the semiconductor </div><div>parts of Motorola split into On and Freescale (e.g. NXP/Qualcomm). MCG</div><div>eventually became part of Emerson.</div><div><br></div><div>The documentation online has withered as these transitions happened.</div><div>However, these old CompactPCI and VMEbus boards are still fairly</div><div>common at places like national science labs and NASA. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_5945604794686703946WordSection1"><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">2) I ideally want to run the 750 target and am able to build RTEMS just fine, but cannot find documentation on using that particular target in QEMU. If anyone can point me in the right direction, the rest of the issues below become less
important.<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div><br></div><div>What's your ultimate target HW? </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_5945604794686703946WordSection1"><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">3) I decided to try the “qemu” targets for PPC. I found both “qemuppc” and “qemuprep” at
<a href="https://devel.rtems.org/wiki/TBR/BSP" target="_blank">https://devel.rtems.org/wiki/<wbr>TBR/BSP</a> and only “qemuprep” at
<a href="https://devel.rtems.org/wiki/TBR/Website/Board_Support_Packages#PowerPCBSPs" target="_blank">
https://devel.rtems.org/wiki/<wbr>TBR/Website/Board_Support_<wbr>Packages#PowerPCBSPs</a>. I was wary of “qemuprep” since it has question marks next to it, so I tried “qemuppc”. That built just fine, but did not see any documentation using “qemuppc” RTEMS in QEMU. I
was going to adapt <a href="https://devel.rtems.org/wiki/Developer/Simulators/QEMU/Preparation" target="_blank">
https://devel.rtems.org/wiki/<wbr>Developer/Simulators/QEMU/<wbr>Preparation</a> , but did not see a built fakerom bin file.<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div><br></div><div>The rtems-testing git repo has a directory sim-scripts which has a script</div><div>for running qemuppc. I will admit to not having personally used it in a long</div><div>time but the scripts in this directory ease running various simulators by</div><div>attempting to provide a very consistent command line interface.</div><div><br></div><div>Also.. qemu can be fickle about a particular target working from one version</div><div>to the next. I am not sure it the RSB version has been tested against this.</div><div><br></div><div>Anyway.. you have been warned. It worked at one point. and can be</div><div>made to work again :)</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_5945604794686703946WordSection1"><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">4) I then tried “qemuprep” since it has documentation, but it fails building for “fsdosfssync01.exe” (ld returned 1 exit status) See below actual output<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So I guess has anyone had success running RTEMS in QEMU using any of the above PPC targets or something close enough to the above targets that I can get a sample working?<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div><br></div><div>PowerPC psim BSP uses the PowerPC simulator in GDB. It is used for</div><div>testing fairly heavily.</div><div><br></div><div>I don't see the cause of the failure in this. I have built all BSPs with all tests</div><div>for 4.12 recently and just built 4.11 for powerpc/qemuprep. I did not see this</div><div>failure. </div><div><br></div><div>Was there any other hint? Did you run out of disk space?</div><div><br></div><div>What exactly was the configure command</div><div><br></div><div>--joel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_5945604794686703946WordSection1"><p class="MsoNormal"><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">QEMUPReP Build Error Output:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> Making all in fsdosfssync01<u></u><u></u></p>
<p class="MsoNormal"> make[6]: Entering directory '/home/xubuntu/Development/<wbr>RTEMS/RTEMS_OS/build/powerpc-<wbr>rtems4.11/c/qemuprep/<wbr>testsuites/fstests/<wbr>fsdosfssync01'<u></u><u></u></p>
<p class="MsoNormal"> powerpc-rtems4.11-gcc -B../../../../../qemuprep/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -I. -I../../../../../../../Source/<wbr>c/src/../../testsuites/<wbr>fstests/fsdosfssync01 -I.. -I../../../../../../../Source/<wbr>c/src/../../testsuites/<wbr>fstests/../support/include
-mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-<wbr>declaration -Wstrict-prototypes -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o ../../../../../../../Source/c/<wbr>src/../../testsuites/fstests/<wbr>fsdosfssync01/init.c<u></u><u></u></p>
<p class="MsoNormal"> mv -f .deps/init.Tpo .deps/init.Po<u></u><u></u></p>
<p class="MsoNormal"> powerpc-rtems4.11-gcc -B../../../../../qemuprep/lib/ -specs bsp_specs -qrtems -mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-<wbr>declaration -Wstrict-prototypes -Wnested-externs
-mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic -o fsdosfssync01.exe init.o
<u></u><u></u></p>
<p class="MsoNormal"> collect2: error: ld returned 1 exit status<u></u><u></u></p>
<p class="MsoNormal"> Makefile:618: recipe for target 'fsdosfssync01.exe' failed<u></u><u></u></p>
<p class="MsoNormal"> make[6]: *** [fsdosfssync01.exe] Error 1<u></u><u></u></p>
<p class="MsoNormal"> make[6]: Leaving directory '/home/xubuntu/Development/<wbr>RTEMS/RTEMS_OS/build/powerpc-<wbr>rtems4.11/c/qemuprep/<wbr>testsuites/fstests/<wbr>fsdosfssync01'<u></u><u></u></p>
<p class="MsoNormal"> Makefile:585: recipe for target 'all-local' failed<u></u><u></u></p>
<p class="MsoNormal"> make[5]: *** [all-local] Error 1<u></u><u></u></p>
<p class="MsoNormal"> make[5]: Leaving directory '/home/xubuntu/Development/<wbr>RTEMS/RTEMS_OS/build/powerpc-<wbr>rtems4.11/c/qemuprep/<wbr>testsuites/fstests'<u></u><u></u></p>
<p class="MsoNormal"> Makefile:247: recipe for target 'all' failed<u></u><u></u></p>
<p class="MsoNormal"> make[4]: *** [all] Error 2<u></u><u></u></p>
<p class="MsoNormal"> make[4]: Leaving directory '/home/xubuntu/Development/<wbr>RTEMS/RTEMS_OS/build/powerpc-<wbr>rtems4.11/c/qemuprep/<wbr>testsuites/fstests'<u></u><u></u></p>
<p class="MsoNormal"> Makefile:314: recipe for target 'all-recursive' failed<u></u><u></u></p>
<p class="MsoNormal"> make[3]: *** [all-recursive] Error 1<u></u><u></u></p>
<p class="MsoNormal"> make[3]: Leaving directory '/home/xubuntu/Development/<wbr>RTEMS/RTEMS_OS/build/powerpc-<wbr>rtems4.11/c/qemuprep/<wbr>testsuites'<u></u><u></u></p>
<p class="MsoNormal"> Makefile:425: recipe for target 'all-recursive' failed<u></u><u></u></p>
<p class="MsoNormal"> make[2]: *** [all-recursive] Error 1<u></u><u></u></p>
<p class="MsoNormal"> make[2]: Leaving directory '/home/xubuntu/Development/<wbr>RTEMS/RTEMS_OS/build/powerpc-<wbr>rtems4.11/c/qemuprep'<u></u><u></u></p>
<p class="MsoNormal"> Makefile:286: recipe for target 'all-recursive' failed<u></u><u></u></p>
<p class="MsoNormal"> make[1]: *** [all-recursive] Error 1<u></u><u></u></p>
<p class="MsoNormal"> make[1]: Leaving directory '/home/xubuntu/Development/<wbr>RTEMS/RTEMS_OS/build/powerpc-<wbr>rtems4.11/c'<u></u><u></u></p>
<p class="MsoNormal"> Makefile:410: recipe for target 'all-recursive' failed<u></u><u></u></p>
<p class="MsoNormal"> make: *** [all-recursive] Error 1<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">- Joey D.<u></u><u></u></p>
</div>
<div>
<br>
<br>
This message and any enclosures are intended only for the addressee. Please <br>
notify the sender by email if you are not the intended recipient. If you are <br>
not the intended recipient, you may not use, copy, disclose, or distribute this <br>
message or its contents or enclosures to any other person and any such actions <br>
may be unlawful. Ball reserves the right to monitor and review all messages <br>
and enclosures sent to or from this email address.<br>
</div></div>
<br>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/users</a><br></blockquote></div><br></div></div>