<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title><![CDATA[0xpebbles.org]]></title>
    <link><![CDATA[http://blog.0xpebbles.org]]></link>
    <description><![CDATA[0xpebbles blog]]></description>
    <lastBuildDate>Fri, 09 Apr 2021 08:37:24 +0200</lastBuildDate>
    <pubDate>Fri, 09 Apr 2021 08:37:24 +0200</pubDate>
    <language>en</language>

<!-- 20121202 -->    <item>
      <title>NetBSD/sparc on QEMU and non-working keyboard workaround</title>
      <link>http://blog.0xpebbles.org/NetBSD-sparc-on-QEMU-and-non-working-keyboard-workaround</link>
      <pubDate>2 Dec 2012 00:00:00 +0000</pubDate>
      <content:encoded><![CDATA[

  

<p>
If you are trying to get <b>NetBSD/sparc</b> to run on <b>QEMU</b>, don&#39;t use NetBSD &lt; 5.0.1 (<a href="http://mail-index.netbsd.org/port-sparc/2010/01/15/msg000546.html" target="_blank">see here</a>) or QEMU &lt; 0.15. I didn&#39;t have any luck with those versions. Newer versions seem to work fine, however, I got a bunch of DMA related warnings from the esp driver, with QEMU 1.1.1:
</p>
<pre>(esp0:0:0): select; 11 left in DMA buffer [intr 18, stat 87, step 4]</pre>

<p>
Ignoring this eventually leads to the following, and the emulated OS hangs:
</p>
<pre>esp0: unexpected status after select: [intr 10, stat 93, step 0]
(esp0:0:0): select; 11 left in DMA buffer [intr 18, stat 80, step 4]</pre>

<p>
Trying different QEMU versions, 0.15.1 seems to be pretty solid to run NetBSD/sparc 6.0 with.
</p>

<p>
For some reason I didn&#39;t get the keyboard to work with any QEMU version, effectively blocking me from starting the installation. Some people seem to suggest using QEMU&#39;s -k option, however, that didn&#39;t work for me, either.<br>
In my case it looked more like as if the emulated NetBSD simply didn&#39;t detect any keyboard.
</p>

<p>
Turns out that switching to non-graphic mode (with QEMU&#39;s -nographic option) seems to be a valid workaround by sacrificing the graphical output. This uses the serial port of the emulated machine, so no keyboard device is needed. Works like a charm.
</p>

<p>
For reference, my setup is FreeBSD/amd64 9.0 as host, running QEMU 0.15.1, emulating NetBSD/sparc 6.0.
</p>

]]></content:encoded>
    </item>




  </channel>
</rss>

