<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Man in the Middle of Nowhere</title>
	<atom:link href="http://goelzer.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://goelzer.com/blog</link>
	<description>Home of the World&#039;s Biggest Rascal Zealot</description>
	<lastBuildDate>Wed, 25 Jan 2012 14:29:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Rascal/Arduino Dual Relay Shield v2</title>
		<link>http://goelzer.com/blog/2012/01/25/rascalarduino-dual-relay-shield-v2/</link>
		<comments>http://goelzer.com/blog/2012/01/25/rascalarduino-dual-relay-shield-v2/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 14:23:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dual relay shield]]></category>

		<guid isPermaLink="false">http://goelzer.com/blog/?p=25</guid>
		<description><![CDATA[Yesterday, I assembled a few copies of my Dual Relay Shield (rev 2). Here&#8217;s a picture of its handsome exterior: The shield has two relays that can switch up to 5 amps &#8212; this could be a pair of lights, motors, speakers, etc. It also has an integrated I2C temperature sensor. You could use this [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I assembled a few copies of my Dual Relay Shield (rev 2).  Here&#8217;s a picture of its handsome exterior:</p>
<div id="attachment_26" class="wp-caption aligncenter" style="width: 234px"><a href="http://goelzer.com/blog/wp-content/uploads/2012/01/dual-relay-shield-large.jpg"><img src="http://goelzer.com/blog/wp-content/uploads/2012/01/dual-relay-shield-large-224x300.jpg" alt="Dual Relay Shield v2" title="Dual Relay Shield v2" width="224" height="300" class="size-medium wp-image-26" /></a><p class="wp-caption-text">Dual Relay Shield v2 (green thing on top) connected to a Rascal 0.6 (red and yellow thing on bottom).  The DRS lets you switch 2 relays on and off to control devices up to 5 amps at 220 volts.</p></div>
<p>The shield has two relays that can switch up to 5 amps &#8212; this could be a pair of lights, motors, speakers, etc.  It also has an integrated I2C temperature sensor.  You could use this to build, for instance, a web-based thermostat.  I expect Brandon will set up a <a href="http://rascalmicro.com/docs/" title="Rascal Documentation and Tutorials">Rascal demo or tutorial</a> using the shield in the near future, to which I&#8217;ll link from here once it exists.</p>
<p>All of the design files are open source.  You can find them on my <a href="https://github.com/mgoelzer/RascalDevShield/tree/master/DualRelayShield" title="mgoelzer's Rascal Shield Development Github">Rascal Shield github</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://goelzer.com/blog/2012/01/25/rascalarduino-dual-relay-shield-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building uWSGI on Ubuntu 11.xx</title>
		<link>http://goelzer.com/blog/2012/01/25/building-uwsgi-on-ubuntu-11-xx/</link>
		<comments>http://goelzer.com/blog/2012/01/25/building-uwsgi-on-ubuntu-11-xx/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 13:26:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[uWSGI]]></category>

		<guid isPermaLink="false">http://goelzer.com/blog/?p=17</guid>
		<description><![CDATA[uWSGI is the HTTP server included with the Rascal. I want to fiddle with its source code and extend it, so I started by building the stock distribution on an x86 Ubuntu 11.04 box. This is how I did it. 0. I had to first install some packages for the build to succeed: sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>uWSGI is the HTTP server included with the <a href="http://www.rascalmicro.com" title="Rascal Micro">Rascal</a>.  I want to fiddle with its source code and extend it, so I started by building the stock distribution on an x86 Ubuntu 11.04 box.  This is how I did it.</p>
<p>0.  I had to first install some packages for the build to succeed:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libxml2 libxml2-dev python-dev</pre></div></div>

<p>1.  Download the current tarball listed under <a href="http://projects.unbit.it/uwsgi/wiki/WikiStart#Getit" title="Get uWSGI">http://projects.unbit.it/uwsgi/wiki/WikiStart#Getit</a></p>
<p>2.  Untar and then follow the instructions from <a href="http://projects.unbit.it/uwsgi/wiki/Install" title="Installing uWSGI">projects.unbit.it/uwsgi/wiki/Install</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf uwsgi-1.0.2.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> uwsgi-1.0.2.1
<span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

<p>3.  The compile should complete successfully with the last line reading like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">***</span> uWSGI is ready, launch it with .<span style="color: #000000; font-weight: bold;">/</span>uwsgi <span style="color: #000000; font-weight: bold;">***</span></pre></div></div>

<p>4.  Start it like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>uwsgi <span style="color: #660033;">--http</span> :<span style="color: #000000;">80</span></pre></div></div>

<p>In future posts, I&#8217;ll look at modifying the uWSGI source code to support Python-programmed user mode interrupt handlers.</p>
]]></content:encoded>
			<wfw:commentRss>http://goelzer.com/blog/2012/01/25/building-uwsgi-on-ubuntu-11-xx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling and loading kernel modules on the Rascal</title>
		<link>http://goelzer.com/blog/2012/01/22/compiling-and-loading-kernel-modules-on-the-rascal/</link>
		<comments>http://goelzer.com/blog/2012/01/22/compiling-and-loading-kernel-modules-on-the-rascal/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 15:15:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[low-level rascaling]]></category>
		<category><![CDATA[notes to self]]></category>

		<guid isPermaLink="false">http://goelzer.com/blog/?p=7</guid>
		<description><![CDATA[Here&#8217;s a tut showing how to cross-compile your own device driver (as a kernel module) on the Rascal and then load/unload it into Linux on the device.  I&#8217;ll assume you have previously followed these instructions to create a kernel build environment on your development PC. As an example, let&#8217;s download Dave Hylands&#8217;s gpio-event driver and [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a tut showing how to cross-compile your own device driver (as a kernel module) on the <a title="http://www.rascalmicro.com/" href="http://www.rascalmicro.com/">Rascal</a> and then load/unload it into Linux on the device.  I&#8217;ll assume you have previously followed <a title="Building the Rascal code" href="http://rascalmicro.com/docs/build-guide.html">these instructions to create a kernel build environment</a> on your development PC.</p>
<p>As an example, let&#8217;s <a title="http://svn.hylands.org/linux/gpio-event/" href="http://svn.hylands.org/linux/gpio-event/">download Dave Hylands&#8217;s gpio-event driver and usermode application</a> for the Gumstix Overo.  As it turns out, we can compile this driver for the Rascal unmodified once we get the paths right.  Check out the Rascal kernel git branch to <code>~/rascal/linux-2.6</code> and download Hylands&#8217;s code to <code>~/rascal/gpio-event</code>.  Modify <code>~/rascal/gpio-event/module/Makefile</code> to use these alternate variable definitions:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">CROSS_COMPILE ?= <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>eldk<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>arm-linux-gnueabi
KERNEL_PATH   ?= <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>mike<span style="color: #000000; font-weight: bold;">/</span>rascal<span style="color: #000000; font-weight: bold;">/</span>linux-<span style="color: #000000;">2.6</span><span style="color: #000000; font-weight: bold;">/</span>arch<span style="color: #000000; font-weight: bold;">/</span>arm<span style="color: #000000; font-weight: bold;">/</span>kernel
ARCH          ?= arm</pre></div></div>

<p>(Of course, the <code>/home/mike</code> prefix is specific to my machine.  What matters is that <code>$(KERNAL_PATH)</code> contains a bunch of C source files like module.c.)</p>
<p>Then do this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>rascal<span style="color: #000000; font-weight: bold;">/</span>gpio-event<span style="color: #000000; font-weight: bold;">/</span>module
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">-C</span> ~<span style="color: #000000; font-weight: bold;">/</span>rascal<span style="color: #000000; font-weight: bold;">/</span>linux-<span style="color: #000000;">2.6</span><span style="color: #000000; font-weight: bold;">/</span> <span style="color: #007800;">M</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">pwd</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #007800;">ARCH</span>=arm modules</pre></div></div>

<p>You should get a file called <code>gpio-event-drv.ko</code> in <code>~/rascal/gpio-event/module</code>.  SCP this file to the Rascal and ssh in to it.  From the directory where you put the <code>gpio-event-drv.ko</code> file, you can use these commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">insmod gpio-event-drv.ko
rmmod gpio-event-drv.ko</pre></div></div>

<p>to load and unload the module respectively.</p>
]]></content:encoded>
			<wfw:commentRss>http://goelzer.com/blog/2012/01/22/compiling-and-loading-kernel-modules-on-the-rascal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to beat the Wikipedia SOPA blackout</title>
		<link>http://goelzer.com/blog/2012/01/18/how-to-beat-the-wikipedia-sopa-blackout/</link>
		<comments>http://goelzer.com/blog/2012/01/18/how-to-beat-the-wikipedia-sopa-blackout/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 00:13:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://208.113.247.242/blog/?p=4</guid>
		<description><![CDATA[I was able to download a local copy of Wikipedia and a reader and set them up in less than 5 minutes.  Used this tut:  http://lifehacker.com/5876833]]></description>
			<content:encoded><![CDATA[<p>I was able to download a local copy of Wikipedia and a reader and set them up in less than 5 minutes.  Used this tut:  <a title="http://lifehacker.com/5876833" href="http://lifehacker.com/5876833">http://lifehacker.com/5876833</a></p>
]]></content:encoded>
			<wfw:commentRss>http://goelzer.com/blog/2012/01/18/how-to-beat-the-wikipedia-sopa-blackout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

