<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/25/20 4:18 PM, <a class="moz-txt-link-abbreviated" href="mailto:Jan.Sommer@dlr.de">Jan.Sommer@dlr.de</a>
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:fe96f49107e949d391329078560a4687@dlr.de">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On Wed, 25 Nov 2020 at 15:41, <a class="moz-txt-link-rfc2396E" href="mailto:Jan.Sommer@dlr.de"><Jan.Sommer@dlr.de></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hello,
I tried to experiment a bit with the riscv BSPs.
I could run them using the SIS simulator, but failed with qemu.
Regarding qemu I found this ticket:
<a class="moz-txt-link-freetext" href="https://devel.rtems.org/ticket/3608">https://devel.rtems.org/ticket/3608</a>
In one mailinglist thread (from 2018) someone said it worked with a current master version of qemu.
I have compiled qemu-5.1 and qemu-5.2-rc2. Does anyone know if those version have the necessary patches included?
Then another source of error could be the command line parameters I used:
qemu-system-riscv32 -nographic -machine virt -m 2G -bios none -nographic -net none -serial stdio -monitor none -kernel ticker.exe
Does someone have an example for a working set of command line options?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Which BSP did you build and how did you build it? Can you try with -bios ticker.exe and discard the -kernel option? Did you try RV64?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I used the griscv BSP. If I read it correctly, it should be a rv32imafd processor. I built the BSP from current master and used the waf build system to build it.
I also just tried (with qemu-5.2.0-rc2) the following command using bios instead of kernel:
qemu-system-riscv32 -nographic -machine virt -m 2G -nographic -net none -serial stdio -monitor none -bios /tmp/riscv/rtems/build/riscv/griscv/testsuites/samples/ticker.exe
I still don't get any output. It might very well be that the serial or monitor configuration is not correct. These options are always a bit mysterious to me.
FWIW if I use "-serial stdio -monitor none" I can close qemu with Ctrl+C. If I use "-serial mon:stdio" Ctrl+C does not work.
Using qemu-system-riscv64 doesn't change anything.</pre>
</blockquote>
<p><br>
</p>
<p>The griscv bsp only works with sis, as it uses leon3/grlib
peripherals. To run on qemu, you need to use the riscv/riscv bsps,
e.g. rv32imafdc or any other in rtems/bsp/riscv/riscv/config. <br>
</p>
<p>Jiri.</p>
<p>PS. I plan to add "pure" riscv support to sis, once I find the
proper device-tree definitions for the bsps ...<br>
</p>
<blockquote type="cite"
cite="mid:fe96f49107e949d391329078560a4687@dlr.de">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Best regards,
Jan
Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR)
German Aerospace Center
Institute for Software Technology | Software for Space Systems and Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany
Jan Sommer
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@rtems.org">users@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a>
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@rtems.org">users@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a></pre>
</blockquote>
</body>
</html>