<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://test.pinballmakers.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Beagleboard_P-ROC_setup_guide</id>
	<title>Beagleboard P-ROC setup guide - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://test.pinballmakers.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Beagleboard_P-ROC_setup_guide"/>
	<link rel="alternate" type="text/html" href="https://test.pinballmakers.com/wiki/index.php?title=Beagleboard_P-ROC_setup_guide&amp;action=history"/>
	<updated>2026-05-28T06:10:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://test.pinballmakers.com/wiki/index.php?title=Beagleboard_P-ROC_setup_guide&amp;diff=1329&amp;oldid=prev</id>
		<title>Steveshoyer: BeagleBoard Linux setup guide for P-ROC</title>
		<link rel="alternate" type="text/html" href="https://test.pinballmakers.com/wiki/index.php?title=Beagleboard_P-ROC_setup_guide&amp;diff=1329&amp;oldid=prev"/>
		<updated>2016-02-08T05:22:56Z</updated>

		<summary type="html">&lt;p&gt;BeagleBoard Linux setup guide for P-ROC&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This setup guide outlines how to get libpinproc/pyprocgame running on a Beagleboard-xM under Ubuntu (11.04).  &lt;br /&gt;
&lt;br /&gt;
Note: The guide was made using a Beagleboard-xM Rev C.  If anything is different with other Beagleboard versions, the difference *should* be slight.&lt;br /&gt;
&lt;br /&gt;
== Installation Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Ubuntu 11.04 ===&lt;br /&gt;
&lt;br /&gt;
The [http://elinux.org/BeagleBoardUbuntu#Natty_11.04_2 elinux.org installation guide for Natty 11.04] was followed exactly, and it worked perfectly.&lt;br /&gt;
&lt;br /&gt;
=== Installing libpinproc ===&lt;br /&gt;
&lt;br /&gt;
First things first, you&amp;#039;ll probably want to create a user account instead of doing all of this as root.  Starting as root:&lt;br /&gt;
&lt;br /&gt;
    useradd &amp;lt;username&amp;gt;&lt;br /&gt;
    passwd &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next edit /etc/sudoers and add the new user under the User privilege specification.&lt;br /&gt;
&lt;br /&gt;
Now log out and log back in as &amp;lt;username&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
You&amp;#039;ll also need to activate your ethernet port.  You can do this by running &amp;quot;sudo dhclient eth0&amp;quot; every time you boot, or just add &amp;quot;dhclient eth0&amp;quot; to the /etc/rc.local file so it automatically runs at startup.&lt;br /&gt;
&lt;br /&gt;
Now, for convenience, you might want to setup the ssh server so you can ssh in:&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install openssh-server&lt;br /&gt;
&lt;br /&gt;
If you want to continue now through an ssh connection, you can.&lt;br /&gt;
&lt;br /&gt;
==== Tools / Python ====&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install libftdi-dev git-core build-essential g++ cmake python-dev&lt;br /&gt;
&lt;br /&gt;
Note - This installed python 2.7, which seems to work fine.&lt;br /&gt;
&lt;br /&gt;
==== libpinproc Dependencies ====&lt;br /&gt;
&lt;br /&gt;
===== [http://code.google.com/p/yaml-cpp/ yaml-cpp] =====&lt;br /&gt;
&lt;br /&gt;
Download, copy to your Beagleboard (I used &amp;#039;scp&amp;#039;), and unzip.  The cd into the newly unzipped directory and run:&lt;br /&gt;
&lt;br /&gt;
    mkdir bin; cd bin&lt;br /&gt;
    cmake ..&lt;br /&gt;
    make&lt;br /&gt;
    sudo make install&lt;br /&gt;
&lt;br /&gt;
==== libpinproc ====&lt;br /&gt;
&lt;br /&gt;
Use git to get the repository, then build with the -fPIC option:&lt;br /&gt;
&lt;br /&gt;
    git clone git://github.com/preble/libpinproc.git&lt;br /&gt;
    cd libpinproc&lt;br /&gt;
    mkdir bin; cd bin&lt;br /&gt;
    cmake -DCMAKE_CXX_FLAGS=&amp;quot;-fPIC&amp;quot; ..&lt;br /&gt;
    make&lt;br /&gt;
    sudo make install&lt;br /&gt;
&lt;br /&gt;
=== Installing pyprocgame ===&lt;br /&gt;
&lt;br /&gt;
==== pypinproc ====&lt;br /&gt;
&lt;br /&gt;
To install without modifying any files, your pypinproc directory should be at the same level as libpinproc.&lt;br /&gt;
&lt;br /&gt;
    git clone git://github.com/preble/pypinproc.git&lt;br /&gt;
    cd pypinproc&lt;br /&gt;
    sudo python setup.py install&lt;br /&gt;
&lt;br /&gt;
==== pyprocgame ====&lt;br /&gt;
&lt;br /&gt;
    git clone git://github.com/preble/pyprocgame.git&lt;br /&gt;
    cd pyprocgame&lt;br /&gt;
    sudo python setup.py install&lt;br /&gt;
&lt;br /&gt;
Note - This should have automatically installed setuptools, which is used later in this guide.  If it didn&amp;#039;t, you might want to install setuptools manually.&lt;br /&gt;
&lt;br /&gt;
==== pyprocgame Dependencies ====&lt;br /&gt;
&lt;br /&gt;
    easy_install PIL&lt;br /&gt;
    easy_install PyYAML&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note - PyYAML.org was down when this setup guide was made; so PyYAML was actually installed manually (download, scp it onto Beaglboard, unzip, run &amp;quot;python setup.py install&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==== proc-shared ====&lt;br /&gt;
&lt;br /&gt;
    git clone git://github.com/preble/proc-shared.git&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== pyglet (optional) ====&lt;br /&gt;
&lt;br /&gt;
    easy_install pyglet&lt;br /&gt;
&lt;br /&gt;
* Note - I ran into [https://bugs.launchpad.net/ubuntu/+source/pyglet/+bug/786516 this bug] and the package recommended in the comments did not fix it.  I&amp;#039;ve therefore uninstalled pyglet from my board.  If you figure out a way to get pyglet working, please edit this section with instructions.&lt;br /&gt;
&lt;br /&gt;
==== pygame (optional) ====&lt;br /&gt;
&lt;br /&gt;
===== pygame Dependencies =====&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install libsdl1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libportmidi-dev libv4l-dev&lt;br /&gt;
&lt;br /&gt;
===== pygame =====&lt;br /&gt;
Due to a dependency issue, pygame could not be installed using easy_install.  So, download pygame, scp it over, and unzip it.  Then edit src/camera.h and change:&lt;br /&gt;
&lt;br /&gt;
from:&lt;br /&gt;
    #include &amp;lt;linux/videodev.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to:&lt;br /&gt;
    #include &amp;lt;libv4l1-videodev.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now run from the top pygame directory:&lt;br /&gt;
&lt;br /&gt;
    sudo python setup.py install&lt;br /&gt;
&lt;br /&gt;
==== pyprocgame configuration file ====&lt;br /&gt;
    mkdir ~/.pyprocgame&lt;br /&gt;
&lt;br /&gt;
Now create and edit a &amp;quot;config.yaml&amp;quot; file with your pyprocgame configuration parameters.  Refer to the pyprocgame&amp;#039;s [http://pyprocgame.pindev.org/install.html#system-configuration-file System Configuration File] documentation for specifics.&lt;br /&gt;
&lt;br /&gt;
==== desktop support (for graphics like virtual DMDs)&lt;br /&gt;
&lt;br /&gt;
The master 1.0 branch of pyprocgame expects a desktop to be installed.  If one is not installed, scripts will fail when attempting to load pyglet or pygame.  If you want to install the ubuntu desktop:&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install ubuntu-desktop&lt;br /&gt;
&lt;br /&gt;
Be aware, it&amp;#039;s a pretty big resource hog.  If you don&amp;#039;t need it, I&amp;#039;d recommend not installing it.&lt;br /&gt;
&lt;br /&gt;
If you haven&amp;#039;t installed a desktop and don&amp;#039;t want to, you can switch to the dev branch of pyprocgame.  From the pyprocgame directory:&lt;br /&gt;
&lt;br /&gt;
    git checkout dev&lt;br /&gt;
&lt;br /&gt;
Now add the following line to your ~/.pyprocgame/config.yaml file:&lt;br /&gt;
&lt;br /&gt;
    use_desktop: False&lt;br /&gt;
&lt;br /&gt;
Now the pyprocgame scripts you run will not attempt to pull in pyglet or pygame.  If you want to use pygame&amp;#039;s mixer for sound playback, you still can.  You just have to import it directly into your script.  I&amp;#039;ve never used pyglet; so I don&amp;#039;t know if there&amp;#039;s a similar solution for sound with it.&lt;br /&gt;
&lt;br /&gt;
=== P-ROC udev ===&lt;br /&gt;
To allow software to control the P-ROC without running everything with &amp;#039;sudo&amp;#039;, you&amp;#039;ll need to add a udev entry for the board.  Create the file /etc/udev/rules.d/50-P-ROC.rules with the following contents:&lt;br /&gt;
&lt;br /&gt;
    SUBSYSTEM==&amp;quot;usb&amp;quot;, ENV{DEVTYPE}==&amp;quot;usb_device&amp;quot;, SYSFS{idVendor}==&amp;quot;0403&amp;quot;, SYSFS{idProduct}==&amp;quot;6001&amp;quot;, MODE:=&amp;quot;0666&amp;quot;, GROUP=&amp;quot;users&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
&lt;br /&gt;
That should be it.  You should now be able to run pyprocgame scripts to control a P-ROC.&lt;/div&gt;</summary>
		<author><name>Steveshoyer</name></author>
	</entry>
</feed>