<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=2967&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Raspberry Pi VideoCore userland build/install (/opt/vc)]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=2967</link>
		<description><![CDATA[The most recent posts in Raspberry Pi VideoCore userland build/install (/opt/vc).]]></description>
		<lastBuildDate>Wed, 17 Jul 2019 04:41:41 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Raspberry Pi VideoCore userland build/install (/opt/vc)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=17125#p17125</link>
			<description><![CDATA[<p>Testing.</p><p>Compile demos:</p><div class="codebox"><pre><code>$ sudo apt install libfreetype6-dev

$ cd /opt/vc/src/hello_pi
$ sudo sh rebuild.sh</code></pre></div><p>Set library path:</p><div class="codebox"><pre><code>$ export LD_LIBRARY_PATH=/opt/vc/lib</code></pre></div><p>Run e.g. tiger demo:</p><div class="codebox"><pre><code>$ ./hello_tiger/hello_tiger.bin</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (spinlock)]]></author>
			<pubDate>Wed, 17 Jul 2019 04:41:41 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=17125#p17125</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi VideoCore userland build/install (/opt/vc)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=17124#p17124</link>
			<description><![CDATA[<p>Add login username to /etc/group for audio, video:</p><div class="codebox"><pre><code>...
audio:x:29:username
video:x:44:username
...</code></pre></div><p>Create &#039;/etc/udev/rules.d/10-local-rpi.rules&#039;, to set VC device group and permissions:</p><div class="codebox"><pre><code>SUBSYSTEM==&quot;vchiq&quot;, GROUP=&quot;video&quot;, MODE=&quot;0660&quot;
SUBSYSTEM==&quot;vc-sm&quot;, GROUP=&quot;video&quot;, MODE=&quot;0660&quot;
SUBSYSTEM==&quot;bcm2708_vcio&quot;, GROUP=&quot;video&quot;, MODE=&quot;0660&quot;</code></pre></div><p>Time to reboot:</p><div class="codebox"><pre><code>$ sudo reboot</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (spinlock)]]></author>
			<pubDate>Wed, 17 Jul 2019 04:29:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=17124#p17124</guid>
		</item>
		<item>
			<title><![CDATA[Raspberry Pi VideoCore userland build/install (/opt/vc)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=17107#p17107</link>
			<description><![CDATA[<p>Doing this for the second time in 6 months, so I thought I&#039;d better document it here.</p><p>The Raspbian images contain some userland libraries, code examples etc. for the VideoCore of the raspberry pi. They usually live in /opt/vc. Building the software from the official github repo directly on the raspberry pi, seems to be the cleanest way to install it on devuan. This worked on a rpi3 (running 32-bit), and most recently on a pi zero.</p><p>On a pi zero the build takes about 45 minutes (&lt;10 minutes on the rpi3).</p><p>The required packages are:</p><div class="codebox"><pre><code>$ sudo apt install build-essential pkg-config cmake</code></pre></div><p>Building locally in a 128MB ramdisk works nicely (gpu_mem=32 initially, adjusted later):</p><div class="codebox"><pre><code>$ mkdir /tmp/ramdisk
$ sudo mount -t tmpfs -o size=128M tmpfs /tmp/ramdisk
$ cd /tmp/ramdisk</code></pre></div><p>Fetch the code:</p><div class="codebox"><pre><code>git clone https://github.com/raspberrypi/userland</code></pre></div><p>Start the build:</p><div class="codebox"><pre><code>$ cd userland
$ ./buildme</code></pre></div><p>This should install everything in /opt/vc.</p><p>Change memory split in /boot/config.txt:</p><div class="codebox"><pre><code>## memory shared with the GPU
gpu_mem=128</code></pre></div><p>More to follow.</p>]]></description>
			<author><![CDATA[dummy@example.com (spinlock)]]></author>
			<pubDate>Tue, 16 Jul 2019 04:01:26 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=17107#p17107</guid>
		</item>
	</channel>
</rss>
