Without the Hardware, With Homebrew Package Manager Installed, You Can Run Raspberry Pi Emulation on OS X or Can Run Raspberry Pi Virtual Appliance. Clearly – both methods are different. Like, in case of Android, we ran Virtual Appliance of Android on OS X. Virtual Appliance has nothing to do with Homebrew Package Manager. You will need VirtualBox like Software. We have named the guide as Raspberry Pi Virtual Appliance & Emulation on OS X to give you two options. However, Raspberry Pi Emulation on OS X is better option.
Important point to note – Raspberry Pi uses ARM Processor.
Raspberry Pi Virtual Appliance on OS X
The file’s name is RaspberryPi-Development-VM-v0.8.ova
---
Download ca be done from :
1 | http://downloads.element14.com/downloads/RaspberryPi-Development-VM-v0.8.ova?COM=RaspberryPi |
The size is huge – near 9 GB! That is an .ova
file. You can not directly mount on VirtualBox. You have to import this to VirtualBox and then run. It is better to do Server. We wrote how to run VirtualBox on Server.
Raspberry Pi Emulation on OS X
On the other hand, emulation is multi step process but is easier, provides more control. Commands are here :
1 2 3 4 5 6 7 8 | brew install mpfr gmp libmpc libelf texinfo mkdir ~/rpi mkdir ~/rpi/arm-cs-tools git clone https://github.com/jsnyder/arm-eabi-toolchain.git cd arm-eabi-toolchain PREFIX=$HOME/rpi/arm-cs-tools make install-cross make clean echo "export PATH=$HOME/rpi/arm-cs-tools/bin:$PATH" >> ~/.zshrc |
Then :
1 2 3 4 | mkdir ~/rpi/kernel cd ~/rpi/kernel git clone https://github.com/raspberrypi/linux.git cd linux |
Then :
1 2 3 | cp arch/arm/configs/bcmrpi_cutdown_defconfig .config make ARCH=arm CROSS_COMPILE=~/rpi/arm-cs-tools/bin/arm-none-eabi- menuconfig sudo touch /usr/local/include/elf.h |
Comment out the file :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <libelf.h> #define R_386_NONE 0 #define R_386_32 1 #define R_386_PC32 2 #define R_ARM_NONE 0 #define R_ARM_PC24 1 #define R_ARM_ABS32 2 #define R_MIPS_NONE 0 #define R_MIPS_16 1 #define R_MIPS_32 2 #define R_MIPS_REL32 3 #define R_MIPS_26 4 #define R_MIPS_HI16 5 #define R_MIPS_LO16 6 |
Build it :
1 2 3 4 | make ARCH=arm CROSS_COMPILE=~/rpi/arm-cs-tools/bin/arm-none-eabi- -k brew install homebrew/dupes/apple-gcc42 brew install qemu ”use-gcc qemu-system-arm -M versatilepb -cpu arm1176 -hda debian6-19-04-2012.img -kernel zImage -append œroot=/dev/sda2 -serial stdio -usbdevice tablet |
Username will be “guest” and password will be “guest”.
Mileage can vary, here will be the updated guide :
1 | https://github.com/psema4/pine/wiki/Installing-QEMU-on-OS-X |
There is another alternative way. It will be too bigger to describe within this guide.
Tagged With raspberry pi ova , RaspberryPi ova , raspberry pi ova download , raspbian ova download , raspberrypi ova download , raspberry pi os x emulator , raspberry pi emulator os , raspberry pi emulator mac , зш щы мшкегфд , rasberry pi appliances