Friday, May 27, 2016

Running Raspberry Pi Emulator on Ubuntu

/home/kuman/raspberry$ ll
total 3941932
drwxr-x---  3 kuman eng       4096 Apr 26 11:41 ./
drwxr-xr-x 85 kuman eng      12288 May 27 19:43 ../
-rw-r--r--  1 kuman eng 4033871872 Apr 27 09:44 2016-03-18-raspbian-jessie.img
-rwxr-x---  1 kuman eng    2635672 Apr 26 11:26 kernel-qemu-4.1.13-jessie*
drwxr-x---  4 kuman eng       4096 Apr 26 11:25 qemu-rpi-kernel/
-rwxr-x---  1 kuman eng        192 Apr 26 11:41 run.sh*
/home/kuman/raspberry$ cat run.sh
#!/bin/bash

qemu-system-arm -kernel kernel-qemu-4.1.13-jessie -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda 2016-03-18-raspbian-jessie.img