How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
gist.github.com
How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
1–10 of 27 posts
Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#2Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#3Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#4I 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.
Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#5why this old version of raspbian? https://downloads.raspberrypi.org/raspbian/images/
Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#6On Linux, it's even easier (lol, who would have guessed?). 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 scri…
Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#7On Linux, it's even easier (lol, who would have guessed?). 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 scri…
Am I misreading or are you chrooting to an x86 build of Raspbian?
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.
Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#8I think it's worth noting that this isn't actually emulating a Raspberry Pi. The option "-M versatilepb" to QEMU tells it to emulate a VersatilePB, which is an Arm development board that's now a decade or more old. It happens that this can be set up to use an ARM1176 CPU, which is the same as the one in the RPi. So you can run a kernel built for the VersatilePB on a VersatilePB model, and use the same userspace/files…
Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#9I think it's worth noting that this isn't actually emulating a Raspberry Pi. The option "-M versatilepb" to QEMU tells it to emulate a VersatilePB, which is an Arm development board that's now a decade or more old. It happens that this can be set up to use an ARM1176 CPU, which is the same as the one in the RPi. So you can run a kernel built for the VersatilePB on a VersatilePB model, and use the same userspace/files…
Re: How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
#10I think it's worth noting that this isn't actually emulating a Raspberry Pi. The option "-M versatilepb" to QEMU tells it to emulate a VersatilePB, which is an Arm development board that's now a decade or more old. It happens that this can be set up to use an ARM1176 CPU, which is the same as the one in the RPi. So you can run a kernel built for the VersatilePB on a VersatilePB model, and use the same userspace/files…
Do you know which RPis used this CPU? Just the original? I'm looking for a way of emulating a RPi2/3 so I can run the arm version of Ubuntu Mate. Any idea if a method like this will work for me?