<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Vchiq on FreeBSD developer&#39;s notebook</title>
    <link>https://kernelnomicon.org/tags/vchiq/</link>
    <description>Recent content in Vchiq on FreeBSD developer&#39;s notebook</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 14 Jan 2015 20:26:55 +0000</lastBuildDate>
    <atom:link href="https://kernelnomicon.org/tags/vchiq/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Qt5 for FreeBSD/Pi</title>
      <link>https://kernelnomicon.org/posts/qt5-for-freebsdpi/</link>
      <pubDate>Wed, 14 Jan 2015 20:26:55 +0000</pubDate>
      <guid>https://kernelnomicon.org/posts/qt5-for-freebsdpi/</guid>
      <description>&lt;p&gt;Build SD card image using crochet-freebsd with &lt;code&gt;option VideoCore&lt;/code&gt; enabled. Mount either SD card itself of image to build host&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mount /dev/mmcsd0s2a /pi
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Checkout Qt5 sources and patch them&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd /src
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git clone git://gitorious.org/qt/qt5.git qt5
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd qt5
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git checkout 5.4.0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;MODULES=qtbase,qtdeclarative,qtgraphicaleffects,qtimageformats,qtquick1,qtquickcontrols,qtscript,qtsvg,qtxmlpatterns
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;./init-repository --module-subset=$MODULES
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fetch -q -o - http://people.freebsd.org/~gonzo/arm/rpi/qt5-freebsd-pi.diff | patch -p1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Configure, build and install Qt5 to SD card&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;./configure -platform unsupported/freebsd-clang -no-openssl -opengl es2 -device freebsd-rasp-pi-clang -device-option CROSS_COMPILE=/usr/armv6-freebsd/usr/bin/ -sysroot /pi/ -no-gcc-sysroot -opensource -confirm-license -optimized-qmake -release -prefix /usr/local/Qt5 -no-pch -nomake tests -nomake examples -plugin-sql-sqlite
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;gmake -j `sysctl -n hw.ncpu`
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo gmake install
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You need BSD-specific plugins to enable mouse and keyboard input in EGLFS mode&lt;/p&gt;</description>
    </item>
    <item>
      <title>Audio on Raspberry Pi</title>
      <link>https://kernelnomicon.org/posts/audio-on-raspberry-pi/</link>
      <pubDate>Fri, 09 Jan 2015 23:25:08 +0000</pubDate>
      <guid>https://kernelnomicon.org/posts/audio-on-raspberry-pi/</guid>
      <description>&lt;p&gt;With stable VCHIQ driver next obvious target was to add VCHIQ-based audio support. So let me introduce to you: vchiq_audio, first take. It&amp;rsquo;s part of vchiq-freebsd repo so if you use Crochet to build SD card image just enable &lt;code&gt;option VideoCore&lt;/code&gt; in config file and module will be automatically included.&lt;/p&gt;
&lt;p&gt;From shell run &lt;code&gt;kldload vchiq_audio&lt;/code&gt; and you&amp;rsquo;re good to do. I believe that audio output is picked up automatically by VideoCore so if you have HDMI connected it&amp;rsquo;s probably going to be HDMI. I do not have device to confirm this. Adding knob to control audio output (auto, headphones, HDMI) is on my ToDo list.&lt;/p&gt;</description>
    </item>
    <item>
      <title>RaspberryPi, FreeBSD and ioquake3</title>
      <link>https://kernelnomicon.org/posts/raspberrypi-freebsd-and-ioquake3/</link>
      <pubDate>Wed, 07 Jan 2015 15:37:55 +0000</pubDate>
      <guid>https://kernelnomicon.org/posts/raspberrypi-freebsd-and-ioquake3/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: &lt;a href=&#34;http://kernelnomicon.org/?p=455&#34;&gt;support for keyboard/mouse&lt;/a&gt; has been added&lt;/p&gt;
&lt;p&gt;After New Year I got back to hacking the VCHIQ stuff (thanks to adrian@ for prodding). Since last time I touched NetBSD folks got it merged to main tree, syncing with latest upstream code and fixing some stupid bugs in my codebase. So I partially merged things back, spent some time on fixing more bugs introduced by yours truly, merged userland bits from latest Broadcom&amp;rsquo;s bits (and fixing some bugs introduced by them). And as a result VCHIQ got stable enough to run ioquake3d on raspberry pi. Well, you can&amp;rsquo;t play it because there is no sound and no mouse support and keyboard support is severely crippled but you can navigate menus and watch demoes.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
