Oct 17, 2013

Raspbian, Yocto on Qemu-arm - Raspberry Pi emulation on Linux

Raspberry Pi emulation on Linux
X works fine, ioquake builds, even some applications built generally for ARM11 architecture may work, but don't expect 3D. No OpenGL support, also, although vchiq_test shows like if it's ok, there's no /dev/vchiq present, but if you insist, here's a Qemu fork with OpenGLES support:
or you can try MesaGL as a workaround solution.

So, the actual command line is*:
qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2" -hda 2013-09-25-wheezy-raspbian.img

You'll need a kernel and an os image, download:
kernel-qemu: http://xecdesign.com/downloads/linux-qemu/kernel-qemu
images: http://www.raspberrypi.org/downloads

Note, root is /dev/sda2 because there's actually 2 partitions in the image, one FAT32 and a Linux, the latter will be our root filesystem. It may work with other distributions, with the Yocto minimal image and the Minibian for sure, change image name accordingly;

Yocto Minimal 12Mb http://www.cnx-software.com/2013/07/05/12mb-minimal-image-for-raspberry-pi-using-the-yocto-project/

Minibian: http://sourceforge.net/projects/minibian/files/2013-10-13-wheezy-minibian.tar.gz/download

also Raspbian Minimal http://plugwash.raspbian.org/images/

Read more:

HOWTO: Virtual Raspbian on Qemu in Ubuntu Linux 12.10 
*with redirected ssh

12MB Minimal Image for Raspberry Pi using the Yocto Project

QEMU – Emulating Raspberry Pi the easy way (Linux or Windows!)

MINIBIAN: MINImal raspBIAN image for Raspberry Pi

No comments:

Post a Comment