Raspberry Pi VM v0.8 für Entwickler verfügbar

Russell Davis hat sich die Mühe gemacht, und eine neue „Entwicklungsumgebung“ zur Softwareentwicklung für den Raspberry Pi gebastelt. Das Ergebnis ist eine Virtuelle Maschine, die er nun öffentlich zur Verfügung gestellt hat. Die VM basiert auf Fedora13 for ARM. Dadurch sollte es möglich sein, Dateien aus der VM problemlos auf einem Raspberry Pi zu verwenden (und auch umgekehrt).

Auf Grund der Größe der Datei (rund 8 GB), ist die VM derzeit nur als Torrent verfügbar. Bitte stellt die Datei deshalb möglichst lange als Seeder zur Verfügung, auch wenn der Download schon abgeschlossen ist.

Download (VM)Download (Readme)


920234f7f368402a6c277ca6de667cff65899f77  RaspberryPi-Development VM v0.8.ova

Alle weiteren Informationen stellt Russell in der Readme Datei zur Verfügung:

RaspberryPi Development Virtual Machine 0.8 (9/3/12)

This is an exported virtualbox virtual machine for developing software for the RaspberryPi. The guest os is 32Bit Ubuntu 10.04LTS with the the git versions of Scratcbox2, qemu (08/03/12), arm-2011.03 CodeSourcery toolchain, Openssh, Apache2, the Archlinuxarm, ARM Debian6, & RaspberryPi Fedora14 rootfs’s.

Two accounts have been created:


To use the exported Virtual Machine you should make sure that you have the latest version of VirtualBox & VirtualBox Extensions installed (4.1.8 https://www.virtualbox.org/wiki/Downloads) and then import the ova file. Once imported go through the settings and make any changes you want. Personally i’d leave them all alone except possibly for the networking (change NAT to Bridged), shared folders & USB.

To build software using this VM for the RaspberryPI you basically prefix any command you would normally use with sb2 e.g.
instead of

gcc hello.c -o hello

you would type

sb2 gcc hello.c -o hello

To manipulate files inside the seed rootfs you use the sb2 options -eR e.g.

to use the yum package manager in the fedora14 rootfs

sb2 -eR yum …

where … is update, install, remove etc.

Scratchbox2 is configured to use the RaspberryPi Fedora remix as the default rootfs for all operations[You can change the default target using sb2-config]. If you want to use the Debian6 or Arch rootfs you must use the sb2 option -t <target> on all sb2 commands e.g.

sb2 -t raspi_arch -eR pacman …


sb2 -t raspi_debian6 -eR apt-get …

[The three configured targets in the vm are raspi_arch for Arch, raspi_debian6 for Debian6, raspi_fedora for fedora remix]

Everything that is related to the RaspberryPi is inside the $HOME/Development directory and should be completely replaceable with new versions with no ill effects. You should be able to replace qemu & scratchbox by rebuilding and overwriting the relevant directory in $HOME/Development.

I have installed apache2 and symlinked the $HOME/RaspberryPi directory so you can download anything you build to another system. openssh is installed and started at boot so you can also ssh into the VM if you wish.

As things currently stand this VM does not actually emulate any of the RaspberryPi hardware (although if you install the sdl libraries into the target rootfs then it should work although YMMV) as it is only meant to help build/port software using desktop tools and to allow multiple developers to be able to work while only having access to a single RaspberryPi. I have plans to add another target (sbrsh) that will allow you to use Scratchbox2 and real RaspberryPi hardware/Running qemu instance and also a version of qemu emulating as much hardware as possible but they will be distributed as tarballs that you would extract into the $HOME/Developemnt directory and a couple of scripts so they shouldn’t be that large (This VM being 8GB caused me no end of problems so i’d prefer to keep things a lot smaller if I can)

If you have any other questions about the VM then you can send them via my blog (http://russelldavis.org) or post on the raspberry pi forum. (http://raspberrypi.org)

I have added one of my favourite bash aliases to the .bashrc doch is very handy in case you forget to use the sudo prefix to a command. just type doch and it’ll redo the command but with sudo added.

alias doch=’sudo $(history -p !-1)‘

Russell Davis (ukscone) 09/03/12

Wie hat dir der Artikel gefallen?
[Gesamt:0    Durchschnitt: 0/5]

Ein Gedanke zu “Raspberry Pi VM v0.8 für Entwickler verfügbar

Die Kommentarfunktion ist geschlossen.