{"id":660,"date":"2012-12-04T12:56:18","date_gmt":"2012-12-04T01:56:18","guid":{"rendered":"http:\/\/www.zamaudio.com\/?p=660"},"modified":"2012-12-04T14:06:38","modified_gmt":"2012-12-04T03:06:38","slug":"audio-on-gnuhurd","status":"publish","type":"post","link":"https:\/\/www.zamaudio.com\/?p=660","title":{"rendered":"GNU\/Hurd &#8211; Best kernel for audio could be a Mach?"},"content":{"rendered":"<p>While I have been using Linux for a number of years I only recently discovered the existance of the Hurd.<\/p>\n<p>To understand why everyone should be using ONLY &#8216;free&#8217; software, (i.e. software that gives us the 4 freedoms) you should watch this video:<\/p>\n<p><span class=\"youtube\"><iframe loading=\"lazy\" title=\"YouTube video player\" class=\"youtube-player\" type=\"text\/html\" width=\"640\" height=\"385\" src=\"\/\/www.youtube.com\/embed\/SNBMdDaYhZA?wmode=transparent&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=0&amp;theme=dark&amp;hd=1\" frameborder=\"0\" allowfullscreen><\/iframe><\/span><\/p>\n<blockquote><p>Not &#8216;free&#8217; as in &#8216;free beer&#8217;, &#8216;free&#8217; as in &#8216;freedom&#8217;  <em>-RMS<\/em><\/p><\/blockquote>\n<p>I would like to work on getting USB hardware support and Audio into the Hurd because let&#8217;s face it, everyone loves listening to music and what could possibly be better than a totally &#8216;free&#8217; operating system that can play and record high quality audio?<\/p>\n<p>Microkernel layout looks like this according to wikipedia:<br \/>\n<a href=\"http:\/\/en.wikipedia.org\/wiki\/Hurd#Architecture\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/upload.wikimedia.org\/wikipedia\/commons\/6\/67\/OS-structure.svg\" alt=\"\" title=\"microkernel\" width=\"300\" height=\"166\" class=\"aligncenter size-medium\" \/><\/a><\/p>\n<p>For those interested in developing USB support for the Hurd, you can run the Hurd in a virtual machine and attach a physical USB device to it using the following commands:<\/p>\n<p><strong>USB Pass-Through for qemu running the Hurd:<\/strong><\/p>\n<p>To assign an existing host USB device to a VM Guest, you need to find out its host bus and device ID.<\/p>\n<p><code>tux@vmhost:~> lsusb<br \/>\n[...]<br \/>\nBus 002 Device 005: ID 0dba:3000 Digidesign Mbox 2<br \/>\n[...]<\/code><\/p>\n<p>In the above example, we want to assign a USB sound card connected to the host&#8217;s USB bus number 2 with device number 5.<br \/>\nRun the VM Guest (Hurd) with the following additional options:<\/p>\n<p><code>qemu-system-i386 -m 512 -usb -device usb-host,hostbus=2,hostaddr=5 -net nic,model=rtl8139 -net user,hostfwd=tcp::5555-:22 -drive cache=writeback,index=0,media=disk,file=$(echo debian-hurd-*.img)<\/code><\/p>\n<p><a href=\"http:\/\/doc.opensuse.org\/products\/draft\/SLES\/SLES-kvm_sd_draft\/cha.qemu.running.html#kvm.pciback\" title=\"PCI Passthrough on qemu\" target=\"_blank\">PCI Pass-Through<br \/>\n<\/a><br \/>\nPCI Pass-Through is a technique to give your VM Guest exclusive access to a PCI device.  I believe it would be useful for setting up a virtual environment for developing more PCI hardware support for the Hurd.<\/p>\n<p><a href=\"http:\/\/www.zamaudio.com\/wp-content\/uploads\/2012\/12\/lsusbhurd.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.zamaudio.com\/wp-content\/uploads\/2012\/12\/lsusbhurd.png\" alt=\"\" title=\"lsusbhurd\" width=\"722\" height=\"428\" class=\"alignleft size-full wp-image-684\" srcset=\"https:\/\/www.zamaudio.com\/wp-content\/uploads\/2012\/12\/lsusbhurd.png 722w, https:\/\/www.zamaudio.com\/wp-content\/uploads\/2012\/12\/lsusbhurd-300x177.png 300w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><br \/>\n<a href=\"http:\/\/www.gnu.org\/software\/hurd\/hacking-guide\/hhg.html\" title=\"Hurd hacking guide\" target=\"_blank\">Hurd hacking guide<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While I have been using Linux for a number of years I only recently discovered the existance of the Hurd. To understand why everyone should be using ONLY &#8216;free&#8217; software, (i.e. software that gives us the 4 freedoms) you should watch this video: Not &#8216;free&#8217; as in &#8216;free beer&#8217;, &#8216;free&#8217; as in &#8216;freedom&#8217; -RMS I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=\/wp\/v2\/posts\/660"}],"collection":[{"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=660"}],"version-history":[{"count":22,"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions"}],"predecessor-version":[{"id":685,"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions\/685"}],"wp:attachment":[{"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zamaudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}