Hot answers tagged

3

This works for me on MacOS Mojave, Create a file called qemu_script.sh and copy-paste the code below nano qemu_script.sh give execution perms and execute, $ chmod +x qemu_script.sh $ ./qemu_script.sh Code: #!/bin/sh brew install qemu export QEMU=$(which qemu-system-arm) export TMP_DIR=~/tmp/qemu-rpi export RPI_KERNEL=${TMP_DIR}/kernel-qemu-4.14.79-...


1

One obvious reason is that raspi3 will load the kernel at the 0x80000 address, which is dedicated to the 64-bit kernel. If you load a 32-bit kernel at that address, it will fail to run because the absolute address values of all relative offsets will be wrong. The difference can be seen in "arm/raspi.c" file: #define FIRMWARE_ADDR_2 0x8000 /* Pi 2 loads ...


1

Late to the party, however I think I have solution for you. As Ingo mentioned, in this tutorial custom image is used for emulation. However it does not mean you can't emulate official one like raspbian-buster-lite image. This image also contains all necessary files for QEMU emulation, however they are named differently. Also you can only emulate this kernel ...


1

In retrospect, this was a dumb question - trying to run an embedded Raspberry Pi OS on QEMU is not supported. Those who run Raspbian on QEMU use a custom kernel specifically designed for QEMU. The reason I was doing this is because the serial and HDMI adapters I ordered for my Pi are still in the mail (any month now). There's a silver lining - I just ...


1

I share my updated version of the script for Raspbian-buster-lite guest on Ubuntu host. #!/bin/sh QEMU=$(command -v qemu-system-arm) TMP_DIR=qemu-rpi RPI_KERNEL=kernel-qemu-4.19.50-buster RPI_KERNEL_FILE=$TMP_DIR/$RPI_KERNEL PTB=versatile-pb.dtb PTB_FILE=$TMP_DIR/$PTB IMAGE_BASE=2019-09-26-raspbian-buster-lite IMAGE=$IMAGE_BASE.zip IMAGE_FILE=$TMP_DIR/$...


Only top voted, non community-wiki answers of a minimum length are eligible