Adds machine type "raspi3" to boot AArch64 kernels in qemu. This patch is provided as-is, without any kind of warranty in the hope that it will be useful.
IMPORTANT NOTE: Thanks to a good soul, this patch made it through to qemu mainline. As a consequence, sooner or later every qemu binary will support "-M raspi3", therefore these patches not needed any more.
- download latest qemu source
- overwrite files from this repo (or if you prefer patches diffs here)
- compile qemu
./configure --target-list=aarch64-softmmu --enable-modules --enable-tcg-interpreter --enable-debug-tcg --python=/usr/bin/python2.7
make -j4
- install qemu
sudo make install
- run with the following command
qemu-system-aarch64 -M raspi3 -kernel kernel8.img
Enjoy! Keep in mind that qemu's BCM2837 peripherals support is far from being perfect, but close enough.
bzt