QEMU aarch64 Segmentation fault on Mac OSX, machine raspi3
When switching from the machine virt to raspi3, this QEMU aarch64 invocation:
/Users/schmidtm/prj/qemu/build/qemu-system-aarch64 \
-m 1G \
-M raspi3 \
-smp 4 \
-cpu cortex-a53 \
-bios QEMU_EFI.fd \
-kernel boot/vmlinuz-4.19.0-17-arm64 \
-initrd boot/initrd.img-4.19.0-17-arm64 \
-drive file=20210717_raspi_3_buster.img,if=none,id=drive0,cache=writeback -device virtio-blk-device,drive=drive0,bootindex=0 \
-append 'root=/dev/vda2 noresume rw, init=/bin/bash' \
-no-reboot \
-nographic
Segfaults:
WARNING: Image format was not specified for '20210717_raspi_3_buster.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
./run.sh: line 13: 57903 Segmentation fault: 11 /Users/schmidtm/prj/qemu/build/qemu-system-aarch64 -m 1G -M raspi3 -smp 4 -cpu cortex-a53 -bios QEMU_EFI.fd -kernel boot/vmlinuz-4.19.0-17-arm64 -initrd boot/initrd.img-4.19.0-17-arm64 -drive file=20210717_raspi_3_buster.img,if=none,id=drive0,cache=writeback -device virtio-blk-device,drive=drive0,bootindex=0 -append 'root=/dev/vda2 noresume rw, init=/bin/bash' -no-reboot -nographic
The version of QEMU was HEAD of master at: a2376507
Compiled on MacOSX 10.14.6 with no parameters to configure whatsoever