This tutorial is all about how to emulate R-Pi on Linux.
Getting the Raspberry-Pi Image
You can simply download the latest Raspbian Wheezy distribution from RaspberryPi.org.
QEMU
QEMU is short term for Quick Emulator . It is generic and open source machine emulator and it is a free and open-source hosted hypervisor that performs hardware virtualization (not to be confused with hardware-assisted virtualization).
You need to install QEMU on your Linux.
On Ubuntu terminal do:
$sudo apt-get update && sudo apt-get install qemu-system-x86
To check the correct installation, do as follow:
$qemu-system-arm --version
Get things going…
Download the QEMU-Ready R-Pi’s kernel
Download it from here
or you simply clone the git repository in the directory that you just created using the command below.
$git clone https://github.com/dhruvvyas90/qemu-rpi-kernel.git
Set-up Phase
qemu-system-arm -kernel ./qemu-rpi-kernel/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash" -hda rpi.img
$chmod +x config
$./config