Revision 1 as of 2013-08-01 15:07:12

Clear message

Instructions on how to successfully setup qemu to emulate an arm vexpress a9/a15 board (and possibly any other arm hw that qemu emulates):

sudo apt-get install qemu-user-static

mkdir vexpress
cd vexpress
mkdir qemu-img

# 4GBs should be enough
dd if=/dev/zero of=./vexpress-4G.img bs=4M count=1024
sudo losetup -f ./vexpress-4G.img
sudo mkfs.ext4 /dev/loop0
sudo mount /dev/loop0 qemu-img

# let's bootstrap a saucy armhf rootfs in the qemu-img directory
sudo qemu-debootstrap --arch=armhf saucy qemu-img
sudo cp `which qemu-arm-static` qemu-img/usr/bin/

# setup serial console, apt repositories and network
sed 's/tty1/ttyAMA0/g' /etc/init/tty1.conf > /etc/initttyAMA0.conf
echo "deb http://archive.ubuntu.com/ubuntu/ saucy main restricted multiverse universe" > /etc/apt/sources.list
apt-get update
echo -e "\nauto eth0\niface eth0 inet dhcp" >> /etc/network/interfaces

# root password

# saucy/generic armhf multiplatform kernel