<?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>Executing Gummiworms</title>
	<atom:link href="http://russelldavis.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://russelldavis.org</link>
	<description>The trials and tribulations of a grumpy curmudgeonly old git</description>
	<lastBuildDate>Fri, 18 May 2012 17:03:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I&#8217;ve joined the Darkside</title>
		<link>http://russelldavis.org/2012/05/18/ive-joined-the-darkside/</link>
		<comments>http://russelldavis.org/2012/05/18/ive-joined-the-darkside/#comments</comments>
		<pubDate>Fri, 18 May 2012 17:03:02 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=1580</guid>
		<description><![CDATA[I'm not a big fan of Apple and although I do have a  Blueberry iMAC and an SE20 stored in the cat's room &#38; I have had an Apple II &#38; Apple IIe or IIc, which is the one that was about the size of a box of chocolates and had a handle?  all of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/05/18/ive-joined-the-darkside/macbookpro2/" rel="attachment wp-att-1581"><img class="alignleft size-medium wp-image-1581" title="macbookpro2" src="http://russelldavis.org/wp-content/uploads/2012/05/macbookpro2-300x250.jpg" alt="" width="300" height="250" /></a>I'm not a big fan of Apple and although I do have a  Blueberry iMAC and an SE20 stored in the cat's room &amp; I have had an Apple II &amp; Apple IIe or IIc, which is the one that was about the size of a box of chocolates and had a handle?  all of which were found on my garbage days perambulations. I normally wouldn't have any interest in anything Apple as I think they are overpriced artsy-fartsy hardware that just doesn't appeal to me. However,  the HP laptop that I got in 2008 has spent the last 3 &amp; a bit years slowly dying, (DVD burner not working,  track pad not working, half the usb ports not working, several keys require a mallet to press, overheating, webcam busted, speakers very quiet, bios is the typical crippled HP bios...) and in the last few months has been hanging on only because I am a master at the art of   bodgery &amp; jury rigging through the judicious application of duct tape,  little bits of metal, and cardboard. So when a friend asked me if I wanted his old Macbook Pro2,2 that although very beat up and scuffed still worked and was surplus to requirements I immediately said that "yes please" as you can never have too many computers <img src='http://russelldavis.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and I thought if nothing else SWMBO (who lusts after Apple hardware) would like it or I could install Linux on it and use it  for listening to BBC Radio 4, watching videos and an SSH/VNC terminal for logging into my other computers (mostly my Raspberry Pi) &amp; servers.</p>
<p><span id="more-1580"></span>It arrived last week and after opening the box he sent it in my plans changed. Yes it was a bit scuffed and beaten up and it had a nasty ugly sticker over the Apple logo (now replaced by several raspberry Pi stickers) but it still looked quite nice with a bit of weight to it, It feels like I could crack a nut or two with no real damage to it and when comparing it to other 6 year old computers I have it's much nicer with better specs. My friend purchased &amp;  installed Lion* on it for me, and as he'd paid for the OS I felt I couldn't really just wipe it &amp; install Linux on it without at least giving OS X a chance. After the first day of trying to use OS X and get used to the fact that there is only one "mouse button" I was ready to defenestrate the Macbook or  give up and put Linux on it but the fact that OS X had cost my friend money stopped me and I forced myself to keep OS X on there and try to get used to it. The second day was a bit better, I still kept trying to right click, which is a tiny bit difficult when there is only one "mouse button" and I couldn't find stuff  but after installing macports, which took a couple of hours as the document i found on how to install macports seemed to be wrong or at least for a different version of OS X than it claimed to be for things started to get better. It's now been 7 days since I received the Macbook Pro &amp; i'm beginning to understand why people like Apple hardware. I still wouldn't buy one new, mostly because I would never be able to afford it or even justify paying that much upfront for a computer but when I see how well it performs even being 6 year old hardware I must say i'm pretty impressed and it does work really well for my needs. I am sharing the wifi on the Macbook with my Raspberry Pi and that is working really well and although I am still very low on the OS X learning curve i am slowly getting used to it and learning how to do things the OS X way. There are things I don't like about it, the forced usage of the App store..., but i'd say that Apple have a partial convert and if another macbook ever comes my way i'll not turn my nose up at it.</p>
<p>&nbsp;</p>
<p>*I believe that Lion is going to be the last version of OS X that will be installable on this Macbook Pro as I recall reading that Mountain Lion is going to drop support for Macbooks build prior to 2007 so I may end up install Linux on it eventually anyway but we'll see.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F05%2F18%2Five-joined-the-darkside%2F&amp;title=I%E2%80%99ve%20joined%20the%20Darkside" id="wpa2a_4"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/05/18/ive-joined-the-darkside/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to break the Internet in 10 easy steps</title>
		<link>http://russelldavis.org/2012/02/29/how-to-break-the-internet-in-10-easy-steps/</link>
		<comments>http://russelldavis.org/2012/02/29/how-to-break-the-internet-in-10-easy-steps/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 17:31:42 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[DDoS]]></category>
		<category><![CDATA[raspberrypi]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[sales]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=1511</guid>
		<description><![CDATA[This morning (February 29th 2012) at some ungodly hour (1am EST/6am UTC) the Raspberry Pi was finally released. Originally the Raspberry Pi Foundation was going to manufacturing the Raspberry Pi themselves and sell it in their own online store but instead they have setup  a licensing deal with  2 companies (Premier Farnell/RS Components) who will make [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/02/29/how-to-break-the-internet-in-10-easy-steps/rpi-colour/" rel="attachment wp-att-560"><img class="alignleft size-full wp-image-560" title="RPi-colour" src="http://russelldavis.org/wp-content/uploads/2012/01/RPi-colour.png" alt="" width="157" height="202" /></a>This morning (February 29th 2012) at some ungodly hour (1am EST/6am UTC) the Raspberry Pi was finally released. Originally the Raspberry Pi Foundation was going to manufacturing the Raspberry Pi themselves and sell it in their own online store but instead they have setup  a licensing deal with  2 companies (<a title="Link to Farnell/Element 14 Shop" href="http://www.element14.com/raspberrypi" target="_blank">Premier Farnell</a>/<a title="Link to RS Components Shop" href="http://uk.rs-online.com/web/generalDisplay.html?id=raspberrypi&amp;cm_mmc=UK-PPC-0212-_-02_Raspberry_PI-_-Raspberry_PI-_-Raspberry_Pi" target="_blank">RS Components</a>) who will make the Raspberry Pi themselves, using their manufacturing facilities and sell them in their online stores. There have been some initial teething problems with this but on the whole this is a good thing as it will mean more people will be able to get their hands on the Raspberry Pi much sooner than if the Foundation was handling the manufacture of the Raspberry Pi themselves. The foundation now gets to concentrate on other things such as writing documentation and actually teaching programming to children rather than spending enormous amounts of time on behind the scene things not directly related to their ultimate aims.</p>
<p><span id="more-1511"></span></p>
<p>Within seconds of the announcement that the Raspberry Pi was now available for purchase and even though this initial batch is limited to one per person the stores for both of the licensed manufacturers had crashed, raspberry pi was trending in the top 3 on twitter and the IRC channel (#raspberrypi) had over 500 users. For the next couple of hours every time the Farnell or RS stores came back online they were crashed again by the throngs of  geeks all trying to order their Raspberry Pi. It seems that not only have the Foundation designed a great tiny computer and a cheap price they have also designed an effective method to harness the collective power of the geek community to DDoS an online store. There are some teething problems with the foundation's licensed manufacturing partners such as the RS online store seems to be willing to only sell to companies in the UK (you need a UK address and company name to even register), their affiliates stores in other countries don't have the Raspberry Pi listed as even an out of stock item and they seemed to have forgotten that the 29th was release day as it has been said by some on twitter and in the IRC channel that RS said it's not available until later in the week. Farnell also have some problems too unrelated to the fact that their store crashed. There seems to be some confusion with regard to fees, shipping costs, taxes etc. and some of their affiliates in other countries don't have the Raspberry Pi available for purchase or even backorder. I believe that this first batch is actually a special case in that people who have managed to order a Raspberry Pi will be getting one from the Foundation manufactured batch so things were a little confused and there was some miscommunication within RS &amp; Farnell between the various departments involved in making the deal with the foundation, the sales department and the website department etc. Eventually once things have died down and RS &amp; Farnell are selling Raspberry Pi's they have built themselves that all the these initial problems will sort themselves out and that people will be able to get hold of Raspberry Pi's much quicker than if the foundation was building and selling the Raspberry Pi themselves.</p>
<p>One thing that might have sneaked passed a few people in the announcement was that the Model A is now much better value for money as they have been able to double it's RAM to be the same as the Model B's 256MB. This means that the only difference between the Model A &amp; B is the extra USB slot and the Ethernet connector.</p>
<p>&nbsp;</p>
<p>So how do we break the Internet in 10 easy steps?</p>
<ol>
<li>Go to the pub with friends and complain about how poor the standard of programming skills of applicants to University are in the UK and that things were much better in my day. Now get of my lawn you darn kids.</li>
<li>Design a cheap, simple, tiny SBC that uses a TV or HDMI enabled monitor as it's display</li>
<li>Wait 5 years</li>
<li>Setup a website and forum and post articles about how the computer was designed, what you are doing at the moment and that you'll be releasing soon.</li>
<li>Get lots of articles about your tiny computer in both the old and new media, bonus points if you can get slashdot to post a story at least twice a month.</li>
<li>Post lots of stories on your website that release day will be quite soon.</li>
<li>Post more stories on your website that release day is almost here</li>
<li>Post a story that release day is in a couple of days</li>
<li>Warn your sales partners that lots and lots of people will want to try to buy your SBC as you have a mailing list with over 100,000 subscribers, a forum with thousands of members, lots of twitter followers... and you have only made 10,000 of them</li>
<li>ANNOUNCE that sales are now possible and post links to the stores of your sales partners then sit back with a Glass of wine in your hand and laugh manically while watching the Internet being brought to it's knees Bwahahahahahahahahaha</li>
</ol>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F02%2F29%2Fhow-to-break-the-internet-in-10-easy-steps%2F&amp;title=How%20to%20break%20the%20Internet%20in%2010%20easy%20steps" id="wpa2a_8"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/02/29/how-to-break-the-internet-in-10-easy-steps/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Tips for preparing an SD card for the raspberry pi on windows</title>
		<link>http://russelldavis.org/2012/02/26/tips-forpreparing-an-sd-card-for-the-raspberry-pi-on-windows/</link>
		<comments>http://russelldavis.org/2012/02/26/tips-forpreparing-an-sd-card-for-the-raspberry-pi-on-windows/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 17:52:16 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[sd card]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=1492</guid>
		<description><![CDATA[The Raspberry Pi will probably be available to buy in the store sometime within the next ten days and one of  the operating system sd card images is already available (debian) with another to follow in a day or so (fedora) so it's time to start thinking about making an sd card for use with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/01/14/the-raspberry-pi-part-one/rp-o_qrcode/" rel="attachment wp-att-702"><img class="alignleft size-medium wp-image-702" title="rp.o_qrcode" src="http://russelldavis.org/wp-content/uploads/2012/01/rp.o_qrcode-300x300.png" alt="" width="300" height="300" /></a>The Raspberry Pi will probably be available to buy in the store sometime within the next ten days and one of  the operating system sd card images is already available (debian) with another to follow in a day or so (fedora) so it's time to start thinking about making an sd card for use with the raspberry pi.</p>
<p>If your main machine is a linux system then you should have no problem, a standard dd will be fine but under windows not only do we not have a dd program (we do but it's not a pleasant experience and windows users are not command line junkies on the whole so use something like Win32DiskImager or equivalent) but there are a couple of gotchas that might catch the unaware out.</p>
<p>The main gotcha is that although your computer has a builtin sd card reader/writer and it works with your cellphone or camera sd card perfectly well it might not work for creating a bootable sd. The biggest problem builtin sd card reader/writer is the ricoh one in HP laptops although other makes of sd card hardware and laptops also have this problem. When you use a builtin reader/writer and it is goingto fail it doesn't always tell you that it's failed so the first thing you now something is wrong is that your raspberry pi (or other target device) won't boot So although you have a builtin sd card reader/writer it is a good idea to get hold of a USB SD card reader/writer and use that for making your bootable SD card. [I have no real idea why builtin reader/writers have problems making bootable sd cards but my thinking is that the controller in the builtin ones was cut down for windows machines to save a few pennies as noone thought that they'd want to write to the 0 to xxxx areas of the SD card]</p>
<p>The other gotcha you should be aware of is that SD cards are formatted and written to in a slightly "weird" way. An unformatted/blank SD card is actually full of 1's and when you write to it it just flips the appropriate bits to 0. An sd card can read at the bit level but only writes at a block level so you'll end up with areas that can't be used for writing any more as they need to reverse a bit back from a 1 to a 0 to perform the write and deleting/erasing the file won't actually free up all that space as it spans several blocks. So if you are going to use an SD card that you have used before you'll want to format it before using it with the raspberry pi. Don't use the windows formatter with your SD card as although it'll sort of work it won't have set all the bits to 1 instead user the panasonic sd card formatter which you can find at <a href="http://panasonic.jp/support/global/cs/sd/download/index.html" target="_blank">http://panasonic.jp/support/global/cs/sd/download/index.html</a> [I can never remember which way around it is for when an sd card is in an unused state, whether it's all 0's or all 1's but i'm leaning towards all 1's as that is what has seemed to have stuck in my head].</p>
<p>&nbsp;</p>
<p>To quickly summarize if making a bootable sd card on windows.</p>
<ol>
<li>Use a USB SD Card reader/writer</li>
<li>Use the panasonic sd card formatter</li>
<li>There is a windows version of dd but use Win32DiskImager or equivalent instead</li>
</ol>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F02%2F26%2Ftips-forpreparing-an-sd-card-for-the-raspberry-pi-on-windows%2F&amp;title=Tips%20for%20preparing%20an%20SD%20card%20for%20the%20raspberry%20pi%20on%20windows" id="wpa2a_12"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/02/26/tips-forpreparing-an-sd-card-for-the-raspberry-pi-on-windows/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Building an Algol68 interpreter for the Raspberry Pi or How to be a world champion procrastinator</title>
		<link>http://russelldavis.org/2012/02/04/building-an-algol68-interpreter-for-the-raspberry-pi-or-how-to-be-a-world-champion-procrastinator/</link>
		<comments>http://russelldavis.org/2012/02/04/building-an-algol68-interpreter-for-the-raspberry-pi-or-how-to-be-a-world-champion-procrastinator/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 21:48:18 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[algol68]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[interpreter]]></category>
		<category><![CDATA[raspberry pi]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=1463</guid>
		<description><![CDATA[I'm got disgusted with Virtualbox when trying to get a USB webcam working with it so rather than building a new linux system to use for developing some object indentification from a webcam software i decided to see if there were any nice open source compilers or interpreters for things like Algol, Snobol4 etc. I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/01/14/the-raspberry-pi-part-one/rp-o_qrcode/" rel="attachment wp-att-702"><img class="alignleft size-medium wp-image-702" title="rp.o_qrcode" src="http://russelldavis.org/wp-content/uploads/2012/01/rp.o_qrcode-300x300.png" alt="" width="300" height="300" /></a><br />
I'm got disgusted with Virtualbox when trying to get a USB webcam working with it so rather than building a new linux system to use for developing some object indentification from a webcam software i decided to see if there were any nice open source compilers or interpreters for things like Algol, Snobol4 etc.</p>
<p>I found an Algol68 interpreter on sourceforge that seems to be still maintained (last update in 2011 and a related piece of software updated this year) <a href="http://algol68.sourceforge.net/" target="_blank">http://algol68.sourceforge.net/</a> so i thought i'd give it a go using an ARM fedora rootfs. I ran the configure script and saw that it would like gsl &amp; ncurses so I added the runtimes and headers using yum inside scratchbox2 and then reran the configure script  and then make and after adding the usual "-fsigned-char" it built with non of the usual X86 C to ARM C warnings.</p>
<p><span id="more-1463"></span></p>
<p>I ran a couple of test programs from<a href="http://rosettacode.org" target="_blank"> http://rosettacode.org</a> and they all worked and although it did fail on one test when I ran the test suite for the interpreter I think that was just because it was so slow when running inside nested emulators and there was an error right where the test suite finishes but I don't think that is too serious when just running to see if there are any showstopping problems, which there don't seem to be. I make no guarantees that the binary will actually work for you on real Raspberry Pi hardware or using an other distro other than ARM Fedora14 but it seems to be ok using qemu, a fedora arm rootfs and a bit of finger crossing.</p>
<pre><code> [raspberry@localhost algol68g-2.3.5]$ sb2 make check make check-TESTS make[1]: Entering directory `/home/raspberry/build/algol68g-2.3.5' [1] Peano curve using Van Wijngaarden's algorithm</code></pre>
<pre>. ........ ........ ......... ......... .........
 . . . . . . . . . . .
 ..... .... ..... ..... ..... ..... .... .....
 . . . . .
 ..... .... ..... ..... . .... . .... .....
 . . . . . . . . . . . . .
 . ........ ........ . ..... ..... . .........
 . . .
 ..... ............ ..... ..... ..... . .........
 . . . . . . . . . . .
 ..... .... ..... ..... . .... . .... .....
 . . . . . . .
 . ..... . . .... . ..... ..... .... .....
 . . . . . . . . . . . . .
 ..... .... ..... ..... ..... ......... .........
 .
 .
 ..... .... ..... ..... ..... ......... .........
 . . . . . . . . . . . . .
 . ..... . . .... . ..... ..... .... .....
 . . . . . . .
 ..... .... ..... ..... . .... . .... .....
 . . . . . . . . . . .
 ..... ............ ..... ..... ..... . .........
 . . .
 . ........ ........ . ..... ..... . .........
 . . . . . . . . . . . . .
 ..... .... ..... ..... . .... . .... .....
 . . . . .
 ..... .... ..... ..... ..... ..... .... .....
 . . . . . . . . . . .
 . ........ ........ ......... ......... .........</pre>
<pre>PASS: check-01.a68
 [2] Mersenne primes by the Lucas-Lehmer test</pre>
<pre>M_3 has 1 digits
 M_5 has 2 digits
 M_7 has 3 digits
 M_13 has 4 digits
 M_17 has 6 digits
 M_19 has 6 digits
 M_31 has 10 digits
 M_61 has 19 digits
 M_89 has 27 digits
 M_107 has 33 digits
 M_127 has 39 digits
 28 DO s := (s * s - 2) MOD cand
 1
 a68g: runtime error: 1: time limit exceeded (detected in VOID loop-clause
 starting at "FROM" in line 27).
 FAIL: check-02.a68
 [3] Miniature LISP interpreter
 &gt;(1 2 3 4)
 (1 2 3 4)
 &gt;(append (1 2) (3 4))
 (1 2 3 4)
 &gt;(+ 1 (* 2 3))
 7
 &gt;(quit)
 PASS: check-03.a68
 [4] Recursive back-tracking algorithm
 There are 98411 ways to split 1000 cents in 5 10 20 50 100 200 cent coins
 PASS: check-04.a68
 [5] Building a decision-tree
 Please name an object
 'rectangle'
 I will guess the object you are thinking of
 rectangle?
 'no'
 What was the object?
 'square'
 Give a question to distinguish 'square'
 'does it have four sides of equal length'
 Does 'does it have four sides of equal length' apply to 'square'?
 'yes'
 Another round?
 'yes'
 I will guess the object you are thinking of
 does it have four sides of equal length?
 'no'
 rectangle?
 'no'
 What was the object?
 'cube'
 Give a question to distinguish 'cube'
 'does it have three dimensions'
 Does 'does it have three dimensions' apply to 'cube'?
 'yes'
 Another round?
 'no'
 PASS: check-05.a68
 (6) Exact determinant of Hilbert matrices using fractions
 Rank 1, determinant 1 / 1, ok
 Rank 2, determinant 1 / 12, ok
 Rank 3, determinant 1 / 2160, ok
 Rank 4, determinant 1 / 6048000, ok
 Rank 5, determinant 1 / 266716800000, ok
 Rank 6, determinant 1 / 186313420339200000, ok
 Rank 7, determinant 1 / 2067909047925770649600000, ok
 Rank 8, determinant 1 / 365356847125734485878112256000000, ok
 Rank 9, determinant 1 / 1028781784378569697887052962909388800000000, ok
 Rank 10, determinant 1 / 46206893947914691316295628839036278726983680000000000, ok
 PASS: check-06.a68
 [7] Hamming numbers
 1
 2
 3
 4
 5
 6
 8
 9
 10
 12
 15
 16
 18
 20
 24
 25
 27
 30
 32
 36
 2125764000
 PASS: check-07.a68
 [8] Ackermann function
 A(1, 1) = 3
 A(2, 1) = 5
 A(2, 2) = 7
 A(3, 1) = 13
 A(3, 2) = 29
 A(3, 3) = 61
 PASS: check-08.a68
 [9] Synthetic benchmark after Curnow &amp; Wichmann
 1.0 MWhets
 PASS: check-09.a68
 =========================================================
 1 of 9 tests failed
 Please report to Marcel van der Veer &lt;algol68g@xs4all.nl&gt;
 =========================================================
 make[1]: *** [check-TESTS] Error 1
 make[1]: Leaving directory `/home/raspberry/build/algol68g-2.3.5'
 make: *** [check-am] Error 2
 [raspberry@localhost algol68g-2.3.5]$</pre>
<p>You can find the ARM binary <a href="http://russelldavis.org/RaspberryPi/a68g">here</a> and the command used to build it was</p>
<pre>sb2 CFLAGS="-fsigned-char" ./configure &amp;&amp; make</pre>
<p>I think you'll agree this has to be worth at least a Bronze medal in the Olympic procrastination event.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F02%2F04%2Fbuilding-an-algol68-interpreter-for-the-raspberry-pi-or-how-to-be-a-world-champion-procrastinator%2F&amp;title=Building%20an%20Algol68%20interpreter%20for%20the%20Raspberry%20Pi%20or%20How%20to%20be%20a%20world%20champion%20procrastinator" id="wpa2a_16"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/02/04/building-an-algol68-interpreter-for-the-raspberry-pi-or-how-to-be-a-world-champion-procrastinator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Additional Raspberry Pi VM Information</title>
		<link>http://russelldavis.org/2012/01/31/additional-raspberry-pi-vm-information/</link>
		<comments>http://russelldavis.org/2012/01/31/additional-raspberry-pi-vm-information/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 15:00:00 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[scratchbox2]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=1441</guid>
		<description><![CDATA[I was informed yesterday that there seems to be a problem following my VM setup  instructions when using Ubuntu 11.10. I spent about 5 hours and 3 Ubuntu 11.10 installs checking this and it certainly seems to be the case that without an awful lot of fiddiling and complications that are just not worth the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/rpivb/" rel="attachment wp-att-942"><img class="alignleft size-medium wp-image-942" title="rpi+vb" src="http://russelldavis.org/wp-content/uploads/2012/01/rpi+vb-300x187.jpg" alt="" width="300" height="187" /></a>I was informed yesterday that there seems to be a problem following my VM setup  instructions when using Ubuntu 11.10. I spent about 5 hours and 3 Ubuntu 11.10 installs checking this and it certainly seems to be the case that without an awful lot of fiddiling and complications that are just not worth the bother. So for the time being the recommended guest os's for building your own VM are Ubuntu 10.04LTS, Fedora16 or Debian (I haven't built the VM on Debian for a long time so i'm not sure exactly which version to recommend but I can't imagine that Debian will be much of a problem with any <em>recent</em> versions. If anyone has a problem with Debian please let me know.)</p>
<p>Once again if you are using my instructions to build the Raspberry Pi development VM (or a VM for any development using Scratchbox2 and/or qemu) i'd recommend (in no particular order) currently using</p>
<ul>
<li>Ubuntu 10.04LTS</li>
<li>Fedora</li>
<li>Debian</li>
</ul>
<p>&nbsp;</p>
<p>Now a tip when porting x86 code to ARM using gcc. If you get a lot of warnings when trying to build software originally written in C for x86 for ARM especially things like <em>"comparison is always true/false due to limited range of data type"</em>  the chances are that you aree being bitten by the fact that x86 compilers usually default to signed chars if not specified by the variable declaration while ARM compilers usually default to unsigned chars. If you are using gcc (which you are if you are using my VM or your own installation of Scratchbox2 then the <em>fix</em> is to use the</p>
<pre>-fsigned-char</pre>
<p>gcc option. e.g.</p>
<pre>gcc hello.c -o hello -fsigned-char</pre>
<p>Another thing that might prove useful when you have access to the real Raspberry Pi hardware and the standardized distro is that by default the codesourcery toolchain included in the VM by default builds for generic ARMv5. On the whole this really shouldn't matter as ARMv6 can run ARMv5 instructions but there maybe times when you are doing something that needs to use an ARMv6 specific instruction or you are including assembler in the C code or something else where a generic ARM version binary just won't cut it. In that case using the gcc option</p>
<pre>-mcpu=arm1176jzf-s</pre>
<p>which specifies that gcc emits the correct instructions for the specific ARM core that the Raspberry Pi uses might be helpful.</p>
<p>e.g.</p>
<pre>gcc -mcpu=arm1176jzf-s hello.c -o hello</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F01%2F31%2Fadditional-raspberry-pi-vm-information%2F&amp;title=Additional%20Raspberry%20Pi%20VM%20Information" id="wpa2a_20"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/01/31/additional-raspberry-pi-vm-information/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hunter Davis has open sourced QuickGrapher</title>
		<link>http://russelldavis.org/2012/01/29/hunter-davis-has-open-sourced-quickgrapher/</link>
		<comments>http://russelldavis.org/2012/01/29/hunter-davis-has-open-sourced-quickgrapher/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 15:53:22 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[quickgrapher]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=1438</guid>
		<description><![CDATA[Hunter Davis, no relation (AFAWK) has made QuickGrapher, an HTML5 Equation Solver &#38; Grapher Open Source. He's placed the source on github and in less than a week someone has ported it to Android. I messed around with the beta about a year ago and was really impressed. Hunter has also Open Sourced another of [...]]]></description>
			<content:encoded><![CDATA[<p>Hunter Davis, no relation (AFAWK) has made QuickGrapher, an HTML5 Equation Solver &amp; Grapher Open Source. He's placed the source on github and in less than a week someone has ported it to Android. I messed around with the beta about a year ago and was really impressed.</p>
<p>Hunter has also Open Sourced another of his projects as well. Source Tree Visualizer which basically turns your source code tree into a real tree  in a pretty landscape <img src='http://russelldavis.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can find Hunter's post about QuickGrapher <a href="http://www.hunterdavis.com/2012/01/23/quickgrapher/" target="_blank">here</a></p>
<p>and his post on SOurce Tree Visualizer <a href="http://www.hunterdavis.com/2012/01/23/source-tree-visualizer-now-open-source/" target="_blank">here</a></p>
<p>Even if these two things don't appeal to you <a href="http://hunterdavis.com" target="_blank">Hunter's blog</a> is always a pretty good read.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F01%2F29%2Fhunter-davis-has-open-sourced-quickgrapher%2F&amp;title=Hunter%20Davis%20has%20open%20sourced%20QuickGrapher" id="wpa2a_24"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/01/29/hunter-davis-has-open-sourced-quickgrapher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a VM for Raspberry Pi development using Virtualbox, Scratchbox2 &amp; qemu (Part 3)</title>
		<link>http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/</link>
		<comments>http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 20:28:23 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[raspberrypi]]></category>
		<category><![CDATA[scratchbox2]]></category>
		<category><![CDATA[virtual machine]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=1209</guid>
		<description><![CDATA[I don't claim that the following is the best way to install scratchbox2, qemu and a seed rootfs and configure them to produce binaries that will run on the real Raspberry Pi hardware. I don't even claim it is the correct way but it works for me and I can almost do it in my [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/rpivb/" rel="attachment wp-att-942"><img class="alignleft size-medium wp-image-942" title="rpi+vb" src="http://russelldavis.org/wp-content/uploads/2012/01/rpi+vb-300x187.jpg" alt="" width="300" height="187" /></a>I don't claim that the following is the best way to install scratchbox2, qemu and a seed rootfs and configure them to produce binaries that will run on the real Raspberry Pi hardware. I don't even claim it is the correct way but it works for me and I can almost do it in my sleep by now. The way I do things will probably seem a bit inefficient and in some cases just plain wrong but it's how I work and hopefully they are easy to follow and adapt to your style of working. I also make no guarantees that it will actually work for you at all. Hopefully it will but if it doesn't sorry but oh well. I made the decision when I first started building the development vm that I would place all the required software under the users home directory rather than installing it globally as</p>
<ol>
<li>Installing in subdirectories in the user's home directory makes it easy  to keep things organised.</li>
<li>It makes things almost idiotproof when you want to upgrade the ARM toolchain, scratchbox2, qemu or change the seed rootfs etc. as it's pretty much just rename the old directory, create a new directory and if neccessary rerun sb2-init.</li>
</ol>
<div><span id="more-1209"></span></div>
<ol>
<li>Open a terminal</li>
<li>If you haven't already got git &amp; wget installed. Install them now. On Ubuntu or Debian the command to install them is<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a1-2/" rel="attachment wp-att-1368"><img class="aligncenter size-full wp-image-1368" title="a1" src="http://russelldavis.org/wp-content/uploads/2012/01/a15.jpg" alt="" width="276" height="21" /></a></li>
<li>Create a directory for temporary use. I personally call it hold and change to it.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a2-2/" rel="attachment wp-att-1310"><img class="aligncenter size-full wp-image-1310" title="a2" src="http://russelldavis.org/wp-content/uploads/2012/01/a21.jpg" alt="" width="100" height="24" /></a><a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a3/" rel="attachment wp-att-1309"><img class="aligncenter size-full wp-image-1309" title="a3" src="http://russelldavis.org/wp-content/uploads/2012/01/a3.jpg" alt="" width="75" height="23" /></a></li>
<li>Download scratchbox2 and qemu from their respective git repositories<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a4/" rel="attachment wp-att-1311"><img class="aligncenter size-full wp-image-1311" title="a4" src="http://russelldavis.org/wp-content/uploads/2012/01/a4.jpg" alt="" width="460" height="22" /></a> <a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a5/" rel="attachment wp-att-1312"><img class="aligncenter size-full wp-image-1312" title="a5" src="http://russelldavis.org/wp-content/uploads/2012/01/a5.jpg" alt="" width="309" height="23" /></a></li>
<li>Download the codesourcery ARM toolchain. I have been using the 2011.03 version successfully and I believe it was the last released version before codesourcery was bought by Mentor Graphics who seem to have closed sourced the more recent releases of the toolchain.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a7-2/" rel="attachment wp-att-1318"><img class="aligncenter size-full wp-image-1318" title="a7" src="http://russelldavis.org/wp-content/uploads/2012/01/a71.jpg" alt="" width="798" height="50" /></a></li>
<li>Then download an ARM rootfs. Eventually we will be able to use the official Raspberry Pi standard rootfs but until that time any ARM based one will do. As I believe that the official Raspberry Pi distribution is going to be Fedora we'll download a Fedora one. In this case we use one I found on the fedora-arm mailing list. <a href="http://lists.fedoraproject.org/pipermail/arm/2011-December/002386.html" target="_blank">http://lists.fedoraproject.org/pipermail/arm/2011-December/002386.html</a> <a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a8/" rel="attachment wp-att-1319"><img class="aligncenter size-full wp-image-1319" title="a8" src="http://russelldavis.org/wp-content/uploads/2012/01/a8.jpg" alt="" width="524" height="23" /></a></li>
<li>If you now do a directory listing you will have a terminal window that looks this<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/vb40/" rel="attachment wp-att-1262"><img class="aligncenter size-medium wp-image-1262" title="vb40" src="http://russelldavis.org/wp-content/uploads/2012/01/vb40-300x243.jpg" alt="" width="300" height="243" /></a></li>
<li>Now create some more directories.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a9/" rel="attachment wp-att-1320"><img class="aligncenter size-full wp-image-1320" title="a9" src="http://russelldavis.org/wp-content/uploads/2012/01/a9.jpg" alt="" width="387" height="71" /></a></li>
<li>Untar the rootfs<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a10/" rel="attachment wp-att-1321"><img class="aligncenter size-full wp-image-1321" title="a10" src="http://russelldavis.org/wp-content/uploads/2012/01/a10.jpg" alt="" width="581" height="26" /></a> The reason we extract the seed rootfs using sudo is that there are some special files that a normal user cannot create when untarring a tarred rootfs. Lots of filenames will scroll before your eyes as the seed rootfs is untarred into the rootfs subdirectory. This will take quite a while so it might be a good time to go and get a drink or take a bathroom break.</li>
<li>Extract the codesourcery ARM toolchain into the raspberry_pi_development directory.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a11/" rel="attachment wp-att-1332"><img class="aligncenter size-full wp-image-1332" title="a11" src="http://russelldavis.org/wp-content/uploads/2012/01/a11.jpg" alt="" width="491" height="22" /></a></li>
<li>Do a directory listing of the raspberry_pi_development directory and it will look like the image below.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/vb41/" rel="attachment wp-att-1291"><img class="aligncenter size-medium wp-image-1291" title="vb41" src="http://russelldavis.org/wp-content/uploads/2012/01/vb41-300x243.jpg" alt="" width="300" height="243" /></a></li>
<li>If you haven't already got the SDL and ncurses libaries and  headers installed. Install them now. In Ubuntu and Debian<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a12/" rel="attachment wp-att-1333"><img class="aligncenter size-full wp-image-1333" title="a12" src="http://russelldavis.org/wp-content/uploads/2012/01/a12.jpg" alt="" width="503" height="25" /></a></li>
<li>You should also install autoconf, fakeroot and realpath. Fedora users will need to find their own copy of the realpath source as it is not included in the distribution. I found a copy that works on <a href="http://stackoverflow.com/questions/284662/how-do-you-normalize-a-file-path-in-bash" target="_blank">stackoverflow</a>. In Ubuntu and Debian<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a13/" rel="attachment wp-att-1334"><img class="aligncenter size-full wp-image-1334" title="a13" src="http://russelldavis.org/wp-content/uploads/2012/01/a13.jpg" alt="" width="393" height="23" /></a> change to scratchbox2 directory and run the autogen.sh script.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a14/" rel="attachment wp-att-1335"><img class="aligncenter size-full wp-image-1335" title="a14" src="http://russelldavis.org/wp-content/uploads/2012/01/a14.jpg" alt="" width="123" height="21" /></a><a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a16/" rel="attachment wp-att-1336"><img class="aligncenter size-full wp-image-1336" title="a16" src="http://russelldavis.org/wp-content/uploads/2012/01/a16.jpg" alt="" width="112" height="25" /></a></li>
<li>then run make<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a17/" rel="attachment wp-att-1337"><img class="aligncenter size-full wp-image-1337" title="a17" src="http://russelldavis.org/wp-content/uploads/2012/01/a17.jpg" alt="" width="508" height="27" /></a>You can ignore all the warnings that will scroll passed and when it finishes the screen will look something like the one below. The interesting lines are the final 4 or 5 which should basically say the same thing that the screenshot does.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/vb44/" rel="attachment wp-att-1298"><img class="aligncenter size-medium wp-image-1298" title="vb44" src="http://russelldavis.org/wp-content/uploads/2012/01/vb44-300x234.jpg" alt="" width="300" height="234" /></a></li>
<li>Scratchbox2 is now installed and we now need to build qemu so cd to the qemu directory<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a18/" rel="attachment wp-att-1338"><img class="aligncenter size-full wp-image-1338" title="a18" src="http://russelldavis.org/wp-content/uploads/2012/01/a18.jpg" alt="" width="98" height="23" /></a></li>
<li>To use scratchbox2 you only need to build qemu usermode for ARM, however, I find it useful to also build the ARM system emulation as well (I use the qemu full system emulation for some little hacks and tricks that are beyond the scope of this howto but I will write them up at a later date along with how to use scratchbox2 with real hardware once I have the process down pat &amp; actually have a real Raspberry Pi to test on).<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a19/" rel="attachment wp-att-1339"><img class="aligncenter  wp-image-1339" title="a19" src="http://russelldavis.org/wp-content/uploads/2012/01/a19.jpg" alt="" width="629" height="18" /></a><a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/a20/" rel="attachment wp-att-1340"><img class="aligncenter size-full wp-image-1340" title="a20" src="http://russelldavis.org/wp-content/uploads/2012/01/a20.jpg" alt="" width="175" height="20" /></a></li>
<li>Now that scratchbox2, the toolchain, qemu and the seed rootfs are installed we just have a few more steps before we can actually use the VM for compiling software. First of all we need add the scratchbox2 and qemu bin directories to our PATH environment variable. You can do this as a single export statement but so it's clear i'll do it as two.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/v1/" rel="attachment wp-att-1373"><img class="aligncenter size-full wp-image-1373" title="v1" src="http://russelldavis.org/wp-content/uploads/2012/01/v1.jpg" alt="" width="523" height="21" /></a> <a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/v2/" rel="attachment wp-att-1374"><img class="aligncenter size-full wp-image-1374" title="v2" src="http://russelldavis.org/wp-content/uploads/2012/01/v2.jpg" alt="" width="470" height="18" /></a> You will also want to add the previous two lines to your .bashrc file. Start your favourite editor and open the .bashrc file and add them to the bottom and in the case of nano save the file using ^x y &lt;enter&gt;. If you are using vi the it would be &lt;esc&gt; :wq<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/v3/" rel="attachment wp-att-1375"><img class="aligncenter size-medium wp-image-1375" title="v3" src="http://russelldavis.org/wp-content/uploads/2012/01/v3-300x231.jpg" alt="" width="300" height="231" /></a></li>
<li>Now that you have added scratchbox2 and qemu to your PATH (and in .bashrc as well) check that it works.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/v4/" rel="attachment wp-att-1384"><img class="aligncenter size-medium wp-image-1384" title="v4" src="http://russelldavis.org/wp-content/uploads/2012/01/v4-300x231.jpg" alt="" width="300" height="231" /></a>The version numbers returned might be different but that doesn't matter it's the fact that you actually got the version numbers that confirms that the PATH environment variable is set correctly.</li>
<li>change to the rootfs directory<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/v5/" rel="attachment wp-att-1385"><img class="aligncenter size-full wp-image-1385" title="v5" src="http://russelldavis.org/wp-content/uploads/2012/01/v5.jpg" alt="" width="329" height="19" /></a></li>
<li>before we can use the seed rootfs inside scratchbox2 we need to change the owner, group and permissions so that it is read/writable by our non-root account. When I installed Ubuntu into the VM I was asked to make a default user. In my case I called it raspberry and gave it a password of password. You might have called your default user something different replace raspberry in the following lines with your user name.<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/v6/" rel="attachment wp-att-1386"><img class="aligncenter size-full wp-image-1386" title="v6" src="http://russelldavis.org/wp-content/uploads/2012/01/v6.jpg" alt="" width="217" height="58" /></a></li>
<li>There is just one more thing to do before we can start using scratchbox2. We need to initialize it. While inside the the seed rootfs directory. In this case rootfs_f14<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/v7/" rel="attachment wp-att-1391"><img class="aligncenter  wp-image-1391" title="v7" src="http://russelldavis.org/wp-content/uploads/2012/01/v7.jpg" alt="" width="599" height="20" /></a>sb2-init actually has a lot of options you can use but in most cases they just complicate matters and for our needs the above command line is good enough. What it actually means is configure scratchbox2 to create a target called raspberry and use the toolchain binaries that we have installed in
<pre>$HOME/raspberry_pi_development/arm-2011.03/bin</pre>
<p>As you get more familar with scratchbox2 you might want to experiment with things such as having multiple targets with a single scratchbox2 installation etc.</li>
<li>After a short wait your screen will look something like this<a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/v8/" rel="attachment wp-att-1398"><img class="aligncenter size-medium wp-image-1398" title="v8" src="http://russelldavis.org/wp-content/uploads/2012/01/v8-300x242.jpg" alt="" width="300" height="242" /></a></li>
<li>You are now ready to start using scratchbox2 to compile software. However, I do a few more things just to make life easier that you might also want to do. I create a directory called $HOME/build, install an ssh server and apache2 and put a symlink of the build directory in the apache2 directory tree. This allows me to keep all my ARM binaries an source seperate from anything else and lets me get them out of the VM easily although I could also use shared folders but I prefer using a webserver as then any machine on my network can access them. I got a bit bored doing the screenshots and cutting out the relevant parts so here is a video of me doing this final bit of setup<p><a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/"><em>Click here to view the embedded video.</em></a></p></li>
</ol>
<p>If you have got this far you are now ready to start building software for the Raspberry Pi. As a test I create a C hello world program and check that it compiles and runs both in the host os and also inside scratchbox2 and if that works then I check that the seed rootfs's package manager works. If both do then i'll start using the vm. Again because I am bored with doing screenshots here is a short video of that process.<p><a href="http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/"><em>Click here to view the embedded video.</em></a></p></p>
<p>When and if I get time I might do some more blog posts about some advanced scratchbox2 and qemu usage, tips and tricks but for this post i say</p>
<h1 style="text-align: center;"><strong>THE END</strong></h1>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F01%2F28%2Fsetting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3%2F&amp;title=Setting%20up%20a%20VM%20for%20Raspberry%20Pi%20development%20using%20Virtualbox%2C%20Scratchbox2%20%26%20qemu%20%28Part%203%29" id="wpa2a_28"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/01/28/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-3/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Setting up a VM for Raspberry Pi development using Virtualbox, Scratchbox2 &amp; qemu (Part 2)</title>
		<link>http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/</link>
		<comments>http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 02:25:41 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[raspberrypi]]></category>
		<category><![CDATA[scratchbox2]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=1094</guid>
		<description><![CDATA[If you decided to use a Debian or Ubuntu based distro then when you booted the Raspberry Pi Development VM that you just created you will have probably noticed an error message flash on the screen saying  piix4_smbus 0000.00.07.0: SMBus base address uninitialized - upgrade bios or use force_addr=0xaddr &#160; and you'll want to fix [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/rpivb/" rel="attachment wp-att-942"><img class="alignleft size-medium wp-image-942" title="rpi+vb" src="http://russelldavis.org/wp-content/uploads/2012/01/rpi+vb-300x187.jpg" alt="" width="300" height="187" /></a>If you decided to use a Debian or Ubuntu based distro then when you booted the Raspberry Pi Development VM that you just created you will have probably noticed an error message flash on the screen saying</p>
<pre> piix4_smbus 0000.00.07.0: SMBus base address uninitialized - upgrade bios or use force_addr=0xaddr</pre>
<p>&nbsp;</p>
<p>and you'll want to fix that before doing anything else. The Fedora16 VM doesn't produce this error so Fedora users can skip straight to the guest addition installation instructions. I wrote a <a href="http://russelldavis.org/2011/09/11/virtualbox-and-upgrade-bios-or-force_addr-error/" target="_blank">short post about this error last year</a> but to save you having to go there to read that post the fix [Credit for that fix goes to http://finster.co.uk &amp; Karl Foley] is:</p>
<ul>
<li>Start a terminal</li>
<li><strong>sudo vi /etc/modprobe.d/blacklist.conf</strong></li>
<li>Add the line <strong>blacklist i2c_piix4</strong> to the end of the file and save</li>
<li><strong><strong>sudo update-initramfs -u -k all</strong></strong></li>
<li><strong><strong>sudo reboot</strong></strong></li>
</ul>
<p><span id="more-1094"></span>There are just a couple of things you need to do before installing guest additions. No matter which distro you have chosen as your guest os for your Virtual Machine.</p>
<ol>
<li>Use your distributions update manager to install any updates released since the installation iso was created.</li>
<li>install (if they haven't already been installed) gcc, kernel headers and other essential tools and utilities that compiling C programs require for your distribution. In Debian or Ubuntu  you would open a terminal and type
<pre>sudo apt-get install build-essential</pre>
<p>Fedora uses a program called yum instead of apt so for Fedora the command would be</p>
<pre>sudo yum install gcc kernel-headers</pre>
<p>[sudo allows you to run a command as root without actually knowing the root password if you have been authorized to do so. In Debian and Ubuntu the user you created at installation has already been authorized. in Fedora and other distributions this might not be the case so you'll have to lookup how to do this in the distributions documentation or on google or bing or your favourite search engine.]</li>
</ol>
<p>When that has completed you should have a screen looking vaguely similar to the one below.<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/vb20/" rel="attachment wp-att-1169"><img class="aligncenter size-medium wp-image-1169" title="vb20" src="http://russelldavis.org/wp-content/uploads/2012/01/vb20-300x248.jpg" alt="" width="300" height="248" /></a><br />
Click in the menu item labeled Devices<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/vb22/" rel="attachment wp-att-1174"><img class="aligncenter size-medium wp-image-1174" title="vb22" src="http://russelldavis.org/wp-content/uploads/2012/01/vb22-300x248.jpg" alt="" width="300" height="248" /></a><br />
Select the Install Guest Additions menu entry<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/vb23/" rel="attachment wp-att-1175"><img class="aligncenter size-medium wp-image-1175" title="vb23" src="http://russelldavis.org/wp-content/uploads/2012/01/vb23-270x300.jpg" alt="" width="270" height="300" /></a><br />
After a few seconds a CD icon will appear on your desktop and a dialog asking if you want to autorun the CD will popup<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/vb25/" rel="attachment wp-att-1180"><img class="aligncenter size-medium wp-image-1180" title="vb25" src="http://russelldavis.org/wp-content/uploads/2012/01/vb25-300x248.jpg" alt="" width="300" height="248" /></a><br />
Click the OK button and a new dialog will open<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/vb26/" rel="attachment wp-att-1181"><img class="aligncenter size-medium wp-image-1181" title="vb26" src="http://russelldavis.org/wp-content/uploads/2012/01/vb26-300x248.jpg" alt="" width="300" height="248" /></a>A final dialog will popup asking you to enter your password<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/vb28/" rel="attachment wp-att-1186"><img class="aligncenter size-medium wp-image-1186" title="vb28" src="http://russelldavis.org/wp-content/uploads/2012/01/vb28-300x248.jpg" alt="" width="300" height="248" /></a><br />
Enter your password and click the Authenticate button and after a few minutes you have a screen that looks similar (exact on Ubuntu, vaguely the same on Debian and Fedora and other distributions) to the following screenshot<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/vb30/" rel="attachment wp-att-1193"><img class="aligncenter size-medium wp-image-1193" title="vb30" src="http://russelldavis.org/wp-content/uploads/2012/01/vb30-300x248.jpg" alt="" width="300" height="248" /></a><br />
Press enter to close the terminal. Right click the CD icon on the desktop and click eject<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/vb31jpg/" rel="attachment wp-att-1194"><img class="aligncenter size-medium wp-image-1194" title="vb31,jpg" src="http://russelldavis.org/wp-content/uploads/2012/01/vb31jpg-300x248.jpg" alt="" width="300" height="248" /></a>then reboot your Virtual Machine.</p>
<p>If everything went to plan then you'll now have a working VM with the ability to cut &amp; paste between it and your host operating system, USB support, better graphics support (larger screen resolutions and 3d/2d acceleration...), shared folders between the VM and the host os and a few other bits and bobs. It is also now I do things like disabling the screen saver in the VM and changing the desktop and gdm wallpaper/splash screens but as they don't affect the purpose of the VM I won't document how to do that but will leave that for the user to discover how to do it.</p>
<p>&nbsp;</p>
<p>This post was going to continue to the completion of the VM with Scratchbox2, qemu and a seed rootfs installed and configured but this post has gotten rather long so actually stop this post here and complete everything in a following post.</p>
<p>&nbsp;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F01%2F27%2Fsetting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2%2F&amp;title=Setting%20up%20a%20VM%20for%20Raspberry%20Pi%20development%20using%20Virtualbox%2C%20Scratchbox2%20%26%20qemu%20%28Part%202%29" id="wpa2a_32"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a VM for Raspberry Pi development using Virtualbox, Scratchbox2 &amp; qemu (Part 1)</title>
		<link>http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/</link>
		<comments>http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 23:02:36 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[scratchbox2]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=940</guid>
		<description><![CDATA[Last week I released version 0.2 of the Raspberry Pi development VM and I thought that I could safely call it a day because in a few weeks the Raspberry Pi hardware will be available and therefore we will no longer need the VM for software development. So yesterday I announced on this blog and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/rpivb/" rel="attachment wp-att-942"><img class="alignleft size-medium wp-image-942" title="rpi+vb" src="http://russelldavis.org/wp-content/uploads/2012/01/rpi+vb-300x187.jpg" alt="" width="300" height="187" /></a><a href="http://russelldavis.org/2012/01/20/new-raspberry-pi-development-vm-v0-2/" target="_blank">Last week I released version 0.2 of the Raspberry Pi development VM</a> and <a href="http://russelldavis.org/2012/01/26/fate-of-the-raspberry-pi-development-vm/" target="_blank">I thought that I could safely call it a day</a> because in a few weeks the Raspberry Pi hardware will be available and therefore we will no longer need the VM for software development. So yesterday I announced on this blog and the Raspberry Pi forums  that I had decided to EOL the VM and would no longer be updating it as I didn't see the need and i'm not going to have the time to maintain it for the next few months as it takes about 12 to 14 hours to create, configure and upload, 8 to 10 hours of that is uploading using all my upstream bandwidth which is no longer feasible for me to do again until after June.</p>
<p>However, almost immediately after posting that I started to receive tweets and PM's asking me not to stop working on the VM or to at least write detailed instructions on how to create your own VM for Raspberry Pi (or other ARM based devices) from scratch. Yesterday I also finally managed to get SDL programs working correctly, not that I had actually tried that hard previously as the majority of software I was personally interested in building and porting  to the Raspberry Pi are text based and at most use ncurses. So although I really won't have time to work on upgrading, tweaking and maintaining the VM personally I have decided that it should continue to live in the form of detailed instructions on how to create your own Raspberry Pi development VM, which is almost mostly transferable to other ARM based devices as well, it's actually pretty much transferable to any device that qemu will <em>emulate</em> but that is beyond the scope of this <em>how-to</em>.</p>
<p><span id="more-940"></span></p>
<ol>
<li>If you don't already have Virtualbox and the Extension pack installed then you'll need to download it from <a href="https://www.virtualbox.org/wiki/Downloads" target="_blank">https://www.virtualbox.org/wiki/Downloads</a>, choosing the correct one for your platform and also download the Extension Pack from the same page if you haven't already installed it. Once you have downloaded and installed Virtualbox+Extension pack  for your platform move on to step 2.</li>
<li>Now you'll need to decide which Linux distro you want to use for your VM. I suggest Debian, Ubuntu or Fedora. You can use any that you want but those are the only 3 that I have any personal experience with for installing and using Scratchbox2. When you have decided download the installation iso for that distro. I'm going to use ubuntu in this guide as although Fedora and Debian work and works well they do require a bit more setup for Scratchbox2 than Ubuntu. You can download the Ubuntu iso from <a href="http://www.ubuntu.com/download/ubuntu/download" target="_blank">http://www.ubuntu.com/download/ubuntu/download</a></li>
<li>Once you have the Ubuntu iso downloaded, start Virtualbox and create a new Virtual machine by clicking the New button. <a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb1/" rel="attachment wp-att-1023"><img class="aligncenter size-medium wp-image-1023" title="vb1" src="http://russelldavis.org/wp-content/uploads/2012/01/vb1-300x221.jpg" alt="" width="300" height="221" /></a>Virtualbox will then start the Virtual Machine Wizard.</li>
<li>Give your VM a name. I suggest something like RaspberryPi Development. Choose Linux &amp; Ubuntu from the dropdowns (or if you are not going to use Ubuntu as the guest os then select whichever distro you are going to use). It should look something like this <a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb2/" rel="attachment wp-att-1028"><img class="aligncenter size-medium wp-image-1028" title="vb2" src="http://russelldavis.org/wp-content/uploads/2012/01/vb2-300x187.jpg" alt="" width="300" height="187" /></a></li>
<li>Choose the amount of memory to allocate to the VM. I normally just accept the default. Ubuntu normally asks for 512MB, Fedora 738MB and Debian is normally 384MB <a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb3/" rel="attachment wp-att-1039"><img class="aligncenter size-medium wp-image-1039" title="vb3" src="http://russelldavis.org/wp-content/uploads/2012/01/vb3-300x187.jpg" alt="" width="300" height="187" /></a></li>
<li>Create a virtual harddisk.<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb4/" rel="attachment wp-att-1044"><img class="aligncenter size-medium wp-image-1044" title="vb4" src="http://russelldavis.org/wp-content/uploads/2012/01/vb4-300x187.jpg" alt="" width="300" height="187" /></a><br />
choose VDI<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb5-2/" rel="attachment wp-att-1046"><img class="aligncenter size-medium wp-image-1046" title="vb5" src="http://russelldavis.org/wp-content/uploads/2012/01/vb51-300x191.jpg" alt="" width="300" height="191" /></a><br />
Dynamically allocated<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb6/" rel="attachment wp-att-1053"><img class="aligncenter size-medium wp-image-1053" title="vb6" src="http://russelldavis.org/wp-content/uploads/2012/01/vb6-300x191.jpg" alt="" width="300" height="191" /></a><br />
Make it at least 16GB big<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb8/" rel="attachment wp-att-1054"><img class="aligncenter size-medium wp-image-1054" title="vb8" src="http://russelldavis.org/wp-content/uploads/2012/01/vb8-300x191.jpg" alt="" width="300" height="191" /></a><br />
Click the Create button<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb10/" rel="attachment wp-att-1055"><img class="aligncenter size-medium wp-image-1055" title="vb10" src="http://russelldavis.org/wp-content/uploads/2012/01/vb10-300x202.jpg" alt="" width="300" height="202" /></a><br />
After clicking the Create button another dialog may popup and give a summary of the settings you asked for. if it does click the Create button on that dialog. You will then be returned to the main Virtualbox screen<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb11/" rel="attachment wp-att-1056"><img class="aligncenter size-medium wp-image-1056" title="vb11" src="http://russelldavis.org/wp-content/uploads/2012/01/vb11-300x222.jpg" alt="" width="300" height="222" /></a></li>
<li>With the VM you have just created highlighted click the Settings button.<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb12/" rel="attachment wp-att-1059"><img class="aligncenter size-medium wp-image-1059" title="vb12" src="http://russelldavis.org/wp-content/uploads/2012/01/vb12-300x222.jpg" alt="" width="300" height="222" /></a></li>
<li>You can leave most of the settings as their default settings. <a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb13/" rel="attachment wp-att-1060"><img class="aligncenter size-medium wp-image-1060" title="vb13" src="http://russelldavis.org/wp-content/uploads/2012/01/vb13-300x222.jpg" alt="" width="300" height="222" /></a>The only setting you MUST change is storage.<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb14/" rel="attachment wp-att-1061"><img class="aligncenter size-medium wp-image-1061" title="vb14" src="http://russelldavis.org/wp-content/uploads/2012/01/vb14-300x222.jpg" alt="" width="300" height="222" /></a>The storage settings screen may look slightly different to the above as your Virtual harddisk may be on the emulated IDE controller. Personally I prefer it to be on the emulated SATA controller as it seems to be faster and less resource hungry but it's entirely up to you and YMMV but for the basis of this guide it doesn't matter which it is on.<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb15/" rel="attachment wp-att-1068"><img class="aligncenter size-medium wp-image-1068" title="vb15" src="http://russelldavis.org/wp-content/uploads/2012/01/vb15-300x222.jpg" alt="" width="300" height="222" /></a>Click the little CD icon and add the iso you downloaded earlier<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb16/" rel="attachment wp-att-1069"><img class="aligncenter size-medium wp-image-1069" title="vb16" src="http://russelldavis.org/wp-content/uploads/2012/01/vb16-300x222.jpg" alt="" width="300" height="222" /></a>Click OK<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb15-5/" rel="attachment wp-att-1074"><img class="aligncenter size-medium wp-image-1074" title="vb15-5" src="http://russelldavis.org/wp-content/uploads/2012/01/vb15-5-300x228.jpg" alt="" width="300" height="228" /></a>then click Start<a href="http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/vb18/" rel="attachment wp-att-1075"><img class="aligncenter size-medium wp-image-1075" title="vb18" src="http://russelldavis.org/wp-content/uploads/2012/01/vb18-300x222.jpg" alt="" width="300" height="222" /></a></li>
<li>You may now install your choosen Linux distribution as you normally would.</li>
</ol>
<p>This ends part one. When my copy of Ubuntu has installed i'll post part two which will cover installing guest additions and installing and configuring scratchbox2, qemu and a seed rootfs.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F01%2F27%2Fsetting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1%2F&amp;title=Setting%20up%20a%20VM%20for%20Raspberry%20Pi%20development%20using%20Virtualbox%2C%20Scratchbox2%20%26%20qemu%20%28Part%201%29" id="wpa2a_36"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/01/27/setting-up-a-vm-for-raspberry-pi-development-using-virtualbox-scratchbox2-qemu-part-1/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fate of the Raspberry Pi Development VM</title>
		<link>http://russelldavis.org/2012/01/26/fate-of-the-raspberry-pi-development-vm/</link>
		<comments>http://russelldavis.org/2012/01/26/fate-of-the-raspberry-pi-development-vm/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 16:17:30 +0000</pubDate>
		<dc:creator>Russell</dc:creator>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[raspberrypi]]></category>
		<category><![CDATA[sbrsh]]></category>
		<category><![CDATA[scratchbox2]]></category>
		<category><![CDATA[vm]]></category>

		<guid isPermaLink="false">http://russelldavis.org/?p=916</guid>
		<description><![CDATA[[update: looks like i EOL'ed the VM a day or so too soon seeing as I now have SDL working correctly (mostly) in it now. I'll either do one more release or roll a script and detailed instructions on how to install and configure scratchbox2, qemu and a rootfs (and sbrsh/sbrshd for using the real [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://russelldavis.org/2012/01/14/the-raspberry-pi-part-one/rp-o_qrcode/" rel="attachment wp-att-702"><img class="alignleft size-medium wp-image-702" title="rp.o_qrcode" src="http://russelldavis.org/wp-content/uploads/2012/01/rp.o_qrcode-300x300.png" alt="" width="300" height="300" /></a><br />
[<strong>update:</strong> looks like i EOL'ed the VM a day or so too soon seeing as I now have SDL working correctly (mostly) in it now. I'll either do one more release or roll a script and detailed instructions on how to install and configure scratchbox2, qemu and a rootfs (and sbrsh/sbrshd for using the real raspberry pi hardware with scratchbox2) before I do actually EOL it. It might take me a day or so to get to it though.]</p>
<p>In a few weeks we'll have our sticky paws on the real Raspberry Pi hardware which on the whole will obsolete the current VM. I could build sbrsh/sbrshd (mount nfs on the real hardware and use that for cpu transparancy, currently using qemu) which might be useful and there are a couple of tiny buglets and uglyness that I could fix but as it takes about 4 hours to create and clone the vm and configure everything and about 8 to 10 hours to upload somewhere using  ALL my upstream bandwidth is it worth it?</p>
<p>I don't mind continuing with the VM if anyone else really wants/needs it but if it's only me that is using it then i'll probably not bother as the VM is good enough for a few more weeks until i/we have the real hardware and i'm kind of running short of <em>tuits</em> for anything that isn't related to a couple of projects i'm currently working on at the moment  that will enable me to afford the odd raspi, one, three, fifteen...., but I don't want to leave anyone in the lurch if they really use the VM and would prefer not to have to set it up themselves or don't know how to do it.</p>
<p>So can i have a show of hands in the comments of who would like me to do another release of the VM and/or add sbrsh/sbrshd.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frusselldavis.org%2F2012%2F01%2F26%2Ffate-of-the-raspberry-pi-development-vm%2F&amp;title=Fate%20of%20the%20Raspberry%20Pi%20Development%20VM" id="wpa2a_40"><img src="http://russelldavis.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://russelldavis.org/2012/01/26/fate-of-the-raspberry-pi-development-vm/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  russelldavis.org/feed/ ) in 0.79168 seconds, on May 18th, 2012 at 5:03 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 18th, 2012 at 6:03 pm UTC -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  russelldavis.org/feed/ ) in 0.00176 seconds, on May 18th, 2012 at 5:04 pm UTC. -->
