I compiled qemu version 6.1.50 on Ubuntu 20.04.
I have tried both raspi2 and raspi3, but I'm not getting video output. The console is showing the startup messages in the terminal I'm starting qemu from, and in both cases, I'm able to log into the pi from there. However, the video output screen doesn't really show anything, except in raspi2 mode, where it only shows four raspberry pi logos. (To be clear, when I say I'm able to log in, I mean from my computer's terminal as QEMU is redirecting the serial port there. This works too, just not the video output tied to the emulated pi's framebuffer.)
Is there an option I need to specify to make this work?
Here are the command lines I am running, first the raspberry pi 2 command line:
qemu-system-arm -M raspi2b -append \
"rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootdelay=1" \
-dtb ./dtbs/bcm2709-rpi-2-b.dtb \
-sd 2021-10-30-raspios-bullseye-armhf-full.img \
-kernel kernel7.img -m 1G -smp 4 -serial stdio -usb -device usb-mouse -device usb-kbd \
-device usb-net,netdev=net0 -netdev user,id=net0,hostfwd=tcp::5555-:22
And the raspi3b command line:
qemu-system-aarch64 -M raspi3b \
-append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootdelay=1" \
-dtb ./dtbs/bcm2710-rpi-3-b-plus.dtb \
-sd 2021-10-30-raspios-bullseye-armhf-full.img \
-kernel kernel8.img \
-m 1G \
-smp 4 \
-serial stdio \
-usb -device usb-mouse -device usb-kbd \
-device usb-net,netdev=net0 -netdev user,id=net0,hostfwd=tcp::5555-:22
For what it's worth, I do have networking working with the pi3 emulation, so that's nice.
Thanks in advance!