Virtualbox image for openmoko developing
NOTE
Updated: 16.Sep.2010. This was page about doing openmoko development under virtualized Ubuntu.
There was downloadable virtual image, but hosting site removed it, so this page is only for historial reason.
General info
Because I do not know who will use this I try to be extra verbose.
Virtualization is technique to use whole operating system like regular program.
You can think it similar than word processing application. Let say you have gedit and
text-file. Now you have VirtualBox and big image
file. Start VirtualBox and load image and you are ready to go.
Prerequirements
VirtualBox (opensource: works on Linux, mac and windows)
Virtual image. I had one, but not anymore!
Installation
Unpack downloaded image file.
Start VirtualBox.
-From toolbar select 'new'. Click 'next'.
-Type any name you want, change OS-type linux/ubuntu (maybe this is only for icon).
-Select how much memory you give this virtual machine (512M is enough, but beware that your real
system has memory too).
-Harddrive selection: Choose 'existing', Virtual media manager appears, choose 'add' (not 'new'), browse and
select openmoko-base-dev.vdi.
Starting image
Choose virtual machine from left panel and push 'start'.
Usage
This Virtual Machine is Ubuntu 9.04 (Jaunty) with openbox window manager installed.
It will autologin you and startX (you got one error message about xrdb). It has english locale and keyboard.
username: user
password: 123456 (worlds worst password)
Press right mouse button on desktop and you got menu. Installed applications:
xterm
dillo (web browser)
It is fully working Ubuntu, I only try make small image file. You can install gnome or KDE, or you can install applications you want,
like firefox, konsole, kdevelop.
It has 8G harddisk.
It has network, but you can't test it with ping (this is issue of VirtualBox).
Example run
Press right mouse on desktop and choose terminal.
There are file named hello.c
Run
. /usr/local/openmoko/arm/setup-env
arm-angstrom-linux-gnueabi-gcc hello.c -o hello
And you got binary for Neo/Freerunner.
How I made this image
I made image using VirtualBox version 2.2.4 (but it can be runned any version
I installed ubuntu-commandline from this mini installer:
http://archive.ubuntu.com/ubuntu/dists/jaunty/main/installer-i386/current/images/netboot/mini.iso
There are 8G ext4 mounted on / and 550M swap partition.
I have installed these packages for graphical:
sudo apt-get install openbox obconf xserver-xorg xinit mingetty
and these for Openmoko developing:
sudo apt-get install build-essential autoconf automake libtool libglib2.0-dev ccache libxrender-dev intltool libgconf2-dev fakeroot libmokoui2-dev mtools
wget http://smartere.dk/openmoko/openmoko-toolchain_0.20080521-ubuntu6_i386.deb
sudo dpkg -i openmoko-toolchain_0.20080521-ubuntu6_i386.deb
And new repositories for openmoko:
wget http://cc.oulu.fi/~rantalai/freerunner/cross_compiling/opkg.conf
sudo cp opkg.conf /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/etc/opkg.conf
auto-login:
In /etc/event.d/tty1 changed
exec /sbin/getty 38400 tty1 to
exec /sbin/mingetty --autologin user tty1
And end of ~/.bashrc
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi