Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>After discovering <a href="http://maemo.gitorious.org/scratchbox2" rel="nofollow">ScratchBox2</a>, I've managed to cobble together something workable. ScratchBox2 is a tool that facilitates the creation of a chroot suitable for cross-compiling and makes use of <a href="http://wiki.qemu.org/Main_Page" rel="nofollow">QEmu</a>, allowing you to run foreign-CPU binaries on your computer. In my case, ScratchBox2 mediates access to a self-contained sandbox of Raspbian, an ARM-variant of Debian that's optimised for Raspberry Pi.</p> <p>The upshot is that once I got it all set up—and getting it set up took several tedious hours—I was able to simply type <code>sb2 -eR apt-get install ...</code> to get any required ARM packages. It's magic stuff. (Word of warning: I had no luck with the official ScratchBox2 packages in Ubuntu 12.10, so it might be best to build it yourself from source, using a recent revision from the <a href="http://maemo.gitorious.org/scratchbox2" rel="nofollow">official Git repo</a>.)</p> <p>To help you reproduce my setup more easily, I've put a Vagrant recipe for my virtual machine on Github: <a href="https://github.com/nickhutchinson/raspberry-devbox" rel="nofollow">https://github.com/nickhutchinson/raspberry-devbox</a>. It's almost certainly rough around the edges — this was my first experience with the Puppet provisioning tool—but hopefully others can make it more robust.</p> <p>I found these resources very helpful:</p> <ul> <li>A slideshow introducing ScratchBox2 (PDF) <a href="http://www.daimi.au.dk/~cvm/sb2.pdf" rel="nofollow">http://www.daimi.au.dk/~cvm/sb2.pdf</a></li> <li>A forum thread describing how to create a Raspbian chroot: <a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&amp;t=7413" rel="nofollow">http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&amp;t=7413</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload