QemuARMVexpress
Differences between revisions 1 and 3 (spanning 2 versions)
983
Comment:
|
1468
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
=== 1) setup the rootfs === |
|
Line 22: | Line 24: |
echo "deb http://archive.ubuntu.com/ubuntu/ saucy main restricted multiverse universe" > /etc/apt/sources.list | echo "deb http://ports.ubuntu.com saucy main restricted multiverse universe" > /etc/apt/sources.list |
Line 28: | Line 30: |
}}} | |
Line 29: | Line 32: |
# saucy/generic armhf multiplatform kernel | === 2) pick and install a kernel |
Line 31: | Line 34: |
open a web browser and navigate to this page: https://launchpad.net/ubuntu/+source/linux pick a kernel that suites your need (e.g. 3.10.0-6.17), download and install it: {{{ apt-get install wget ca-certificates wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-image-3.10.0-6-generic-lpae_3.10.0-6.17_armhf.deb dpkg -i linux-image-3.10.0-6-generic-lpae_3.10.0-6.17_armhf.deb # press CTRL+D to exit the chroot ^D |
|
Line 32: | Line 48: |
=== 3) boot it up === |
Instructions on how to successfully setup qemu to emulate an arm vexpress a9/a15 board (and possibly any other arm hw that qemu emulates):
1) setup the rootfs
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://ports.ubuntu.com 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 passwd
=== 2) pick and install a kernel
open a web browser and navigate to this page:
https://launchpad.net/ubuntu/+source/linux
pick a kernel that suites your need (e.g. 3.10.0-6.17), download and install it:
apt-get install wget ca-certificates wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-image-3.10.0-6-generic-lpae_3.10.0-6.17_armhf.deb dpkg -i linux-image-3.10.0-6-generic-lpae_3.10.0-6.17_armhf.deb # press CTRL+D to exit the chroot ^D
3) boot it up
Kernel/Dev/QemuARMVexpress (last edited 2013-08-04 11:28:38 by p-pisati)