OLPC Laptop in Ubuntu 7.10
This tutorial covers information on how to emulate XO on a typical Linux environment. I will be using Ubuntu Gutsy (7.10) and qemu for emulation.
First we need to get qemu.
sudo apt-get install qemuThen we need to prepare the module for using accelerated layer qemu (kqemu)
sudo apt-get install kqemu-source
sudo module-assistant prepareWe make the udev rules so it automatically loads the module. Create the file /etc/udev/rules.d/60-kqemu.rules and write:
sudo module assistant auto-install kqemu
KERNEL=="kqemu", NAME="%k", GROUP="kqemu", MODE="0660"appending a new line.
Add a new group and a new user:
sudo addgroup --system kqemu
sudo adduser $USER kqemu
sudo /etc/init.d/udev reload.Load the kqemu module itself:
sudo update-modulesNow, get the XO image from the olpc site:
sudo modprobe kqemu
wget http://olpc.download.redhat.com/olpc/streams/development/and unpack it:
LATEST-STABLE-BUILD/devel_ext3/
olpc-redhat-stream-development-devel_ext3.img.bz2
bunzip2 olpc-redhat-stream-development-devel_ext3.img.bz2Now make your ram partition bigger
sudo umount /dev/shmAnd run it:
sudo mount -t tmpfs -o size=528m none /dev/shm
qemu -m 512 -hda olpc-redhat-stream-development-devel_ext3.img