How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
gist.github.com
gist.github.com
It has a BCM2837, which has a 64-bit ARM CPU Core, and 400MHz VideoCore IV versus 250MHz in the raspi2.
A comparison table can be found by searching "What is new" in https://media.digikey.com/pdf/Data%20Sheets/Seeed%20Technolo...
Running raspbian in Qemu seems slower than running on a real Pi, multicore would definitely help.
However, there is an effort to change this:
https://lwn.net/Articles/697265/
But I don't know if it has been merged yet.
I recently had the need to compile quite a bit of software to run on the Pi zero, and the ability to be able to "chroot" to the Pi on my PC has made the experience so much more pleasant. Everything compiles ten times faster!
I also noticed that none of the available guides work well with Ubuntu 17.04 (and possibly newer/older), so I put together a simple script to do that on Ubuntu for anyone who is interested. It will always work when you chroot on the sdcard:
https://gist.github.com/htruong/7df502fb60268eeee5bca21ef3e4...
You can theoretically chroot into the image directly, but the resizing the partitions operation is unreliable on the host for some reason, and it might cause the image to not be bootable. I've found myself better off booting the sd card once with the vanilla image on the Pi first so it resizes itself before chrooting into the SD card.
I don't know how exactly this sorcery works either. But I think chroot just "knows" that it needs to invoke qemu when it sees the binfmt of /bin/bash being arm.
What's happening here is binfmt-support on the host has a path registered for arm binaries as the file you just copied to /usr/bin - whenever the chroot tries to run anything, the host directs it to this bianry which is your arm emulator :).
The main thing missing is proprietary graphics API "dispmanx".
I didn't try and emulate the GPIO, but assume that is also not possible ?