<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On May 22, 2017 6:43 PM, "Gedare Bloom" <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">On Mon, May 22, 2017 at 5:32 PM, Tanu Hari Dixit <<a href="mailto:tokencolour@gmail.com">tokencolour@gmail.com</a>> wrote:<br>
> Hello all,<br>
> Thank you for creating<br>
> <a href="https://devel.rtems.org/wiki/Developer/Simulators/gem5" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/<wbr>Developer/Simulators/gem5</a> just in time. I<br>
> installed gem5 and scons build/ARM/gem5.opt ran to give the following<br>
> output at the end:<br>
> scons: done building targets.<br>
><br>
</div>This is work-in-progress. I had to write the timer hardware support in<br>
gem5 and fix some other small issues. You would need to apply patches<br>
currently under review by the gem5 developers, there are four patches<br>
available and you can get them by using the "Download" button on their<br>
Gerrit instance: <a href="https://gem5-review.googlesource.com/c/3264/" rel="noreferrer" target="_blank">https://gem5-review.<wbr>googlesource.com/c/3264/</a><br>
<br>
But I found out that the basic support even for hello world is broken<br>
for RTEMS as of rtems.git/<wbr>cd3d74793a4e2ec93cefdddb855d45<wbr>36d44c7e64<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">What happened in that patch which broke things? Is this a simulator or RTEMS bug?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you roll back your rtems to before that commit you should be able<br>
to successfully run hello world with gem5 after applying those 4<br>
patches.<br>
<div class="elided-text"><br>
> I ran the following, after this:<br>
> build/ARM/gem5.opt configs/example/fs.py<br>
> --kernel=${HOME}/development/<wbr>rtems/src/builds/realview_pbx_<wbr>a9_qemu/arm-rtems4.12/c/<wbr>realview_pbx_a9_qemu/<wbr>testsuites/samples/hello/<wbr>hello.exe<br>
> --mem-size=256MB --bare-metal --machine-type=RealView_PBX<br>
> --dtb-filename=None --enable-security-extensions<br>
> as instructed in the link.<br>
><br>
> But it gave the following output:<br>
> Usage: fs.py [options]<br>
> fs.py: error: no such option: --enable-security-extensions<br>
><br>
> I tried it without the option, and still found no luck;<br>
><br>
> thd@thd-Inspiron-5537:~/gem5$ build/ARM/gem5.opt configs/example/fs.py<br>
> --kernel=${HOME}/development/<wbr>rtems/src/builds/realview_pbx_<wbr>a9_qemu/arm-rtems4.12/c/<wbr>realview_pbx_a9_qemu/<wbr>testsuites/samples/hello/<wbr>hello.exe<br>
> --mem-size=256MB --bare-metal --machine-type=RealView_PBX<br>
> --dtb-filename=None<br>
> gem5 Simulator System.  <a href="http://gem5.org" rel="noreferrer" target="_blank">http://gem5.org</a><br>
> gem5 is copyrighted software; use the --copyright option for details.<br>
><br>
> gem5 compiled Mar 16 2017 02:46:18<br>
> gem5 started May 23 2017 02:59:01<br>
> gem5 executing on thd-Inspiron-5537, pid 7719<br>
> command line: build/ARM/gem5.opt configs/example/fs.py<br>
> --kernel=/home/thd/<wbr>development/rtems/src/builds/<wbr>realview_pbx_a9_qemu/arm-<wbr>rtems4.12/c/realview_pbx_a9_<wbr>qemu/testsuites/samples/hello/<wbr>hello.exe<br>
> --mem-size=256MB --bare-metal --machine-type=RealView_PBX<br>
> --dtb-filename=None<br>
><br>
> Global frequency set at 1000000000000 ticks per second<br>
> warn: DRAM device capacity (8192 Mbytes) does not match the address<br>
> range assigned (256 Mbytes)<br>
> info: kernel located at:<br>
> /home/thd/development/rtems/<wbr>src/builds/realview_pbx_a9_<wbr>qemu/arm-rtems4.12/c/realview_<wbr>pbx_a9_qemu/testsuites/<wbr>samples/hello/hello.exe<br>
> Listening for system connection on port 5900<br>
> Listening for system connection on port 3456<br>
> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000<br>
> warn: ClockedObject: More than one power state change request<br>
> encountered within the same simulation tick<br>
> **** REAL SIMULATION ****<br>
> warn: Existing EnergyCtrl, but no enabled DVFSHandler found.<br>
> info: Entering event queue @ 0.  Starting simulation...<br>
> warn:     instruction 'mcr bpiall' unimplemented<br>
> panic: Tried to write SCU at offset 0<br>
> Memory Usage: 660292 KBytes<br>
> Program aborted at tick 56000<br>
> --- BEGIN LIBC BACKTRACE ---<br>
> build/ARM/gem5.opt(_Z15print_<wbr>backtracev+0x15)[0xc45c55]<br>
> build/ARM/gem5.opt(_<wbr>Z12abortHandleri+0x36)[<wbr>0xc55786]<br>
> /lib/x86_64-linux-gnu/<wbr>libpthread.so.0(+0x10330)[<wbr>0x7f3b92e6c330]<br>
> /lib/x86_64-linux-gnu/libc.so.<wbr>6(gsignal+0x37)[<wbr>0x7f3b916bdc37]<br>
> /lib/x86_64-linux-gnu/libc.so.<wbr>6(abort+0x148)[0x7f3b916c1028]<br>
> build/ARM/gem5.opt(_<wbr>ZN5A9SCU5writeEP6Packet+0x4e)[<wbr>0xb39e8e]<br>
> build/ARM/gem5.opt(_<wbr>ZN7PioPort10recvAtomicEP6Packe<wbr>t+0x66)[0xafd666]<br>
> build/ARM/gem5.opt(_<wbr>ZN12CoherentXBar10recvAtomicEP<wbr>6Packets+0x3cf)[0x9c98ef]<br>
> build/ARM/gem5.opt(_<wbr>ZN15AtomicSimpleCPU8writeMemEP<wbr>hjm5FlagsIjEPm+0x337)[<wbr>0xe102c7]<br>
> build/ARM/gem5.opt(_<wbr>ZN17SimpleExecContext8writeMem<wbr>EPhjm5FlagsIjEPm+0x21)[<wbr>0xe1b181]<br>
> build/ARM/gem5.opt(_<wbr>Z14writeMemAtomicI11ExecContex<wbr>tjESt10shared_<wbr>ptrI9FaultBaseEPT_<wbr>PN5Trace10InstRecordERKT0_<wbr>m5FlagsIjEPm+0x4b)[0x156653b]<br>
> build/ARM/gem5.opt(_<wbr>ZNK10ArmISAInst28STORE_IMM_AY_<wbr>PN_SN_UN_WN_<wbr>SZ47executeEP11ExecContextPN5T<wbr>race10InstRecordE+0x171)[<wbr>0x1525461]<br>
> build/ARM/gem5.opt(_<wbr>ZN15AtomicSimpleCPU4tickEv+<wbr>0x277)[0xe0ed27]<br>
> build/ARM/gem5.opt(_<wbr>ZN10EventQueue10serviceOneEv+<wbr>0xb1)[0xc4dcc1]<br>
> build/ARM/gem5.opt(_<wbr>Z9doSimLoopP10EventQueue+0x38)<wbr>[0xc6fc38]<br>
> build/ARM/gem5.opt(_<wbr>Z8simulatem+0x35b)[0xc7031b]<br>
> build/ARM/gem5.opt[0x965e7c]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalFrameEx+0x45f7)[<wbr>0x7f3b92a375b7]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalCodeEx+0x80d)[<wbr>0x7f3b92a39c3d]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalFrameEx+0x48d8)[<wbr>0x7f3b92a37898]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalFrameEx+0x4b59)[<wbr>0x7f3b92a37b19]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalFrameEx+0x4b59)[<wbr>0x7f3b92a37b19]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalCodeEx+0x80d)[<wbr>0x7f3b92a39c3d]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalCode+0x32)[0x7f3b92a39f22]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalFrameEx+0x563e)[<wbr>0x7f3b92a385fe]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalCodeEx+0x80d)[<wbr>0x7f3b92a39c3d]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalFrameEx+0x48d8)[<wbr>0x7f3b92a37898]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalCodeEx+0x80d)[<wbr>0x7f3b92a39c3d]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyEval_<wbr>EvalCode+0x32)[0x7f3b92a39f22]<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libpython2.7.so.1.0(PyRun_<wbr>StringFlags+0x79)[<wbr>0x7f3b9294c529]<br>
> build/ARM/gem5.opt(_<wbr>Z6m5MainiPPc+0x5f)[0xc54d1f]<br>
> build/ARM/gem5.opt(main+0x33)[<wbr>0x8e3b53]<br>
> --- END LIBC BACKTRACE ---<br>
> Aborted (core dumped)<br>
><br>
> Can you please help me with this? I can't figure out what is wrong.<br>
> I need to run the simulator for sparc64/usiii and<br>
> arm/realview_pbx_a9_qemu BSPs and eventually automate it with<br>
> rtems-tester (as part of GSoC, '17).<br>
><br>
> Thank you,<br>
> Tanu Hari Dixit.<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
</div></blockquote></div><br></div></div></div>