Can’t emulate Ubuntu 20.04 image for Raspberry Pi 4 Model B.
Hello, I have a modified Ubuntu 20.04 image for a Raspberry Pi 4 Model B. It needs to be run using QEMU 9.0. After the system starts, you need to connect via SSH. I tried to run with the command below but got a black screen.
qemu-system-aarch64
-machine raspi4b
-cpu cortex-a72
-m 2G
-smp 4
-drive format=raw,file=ubuntu.img,if=none,id=hd0,cache=writeback
-kernel ./uboot_rpi_4.bin
-device usb-net,netdev=net0 -netdev user,id=net0,hostfwd=tcp::2222-:22
I copied the kernel from the system-boot section of the image. I also tried using dtb from the image, but that also did not work. Examples found on the Internet on emulating Raspberry OS (raspbian) did not help. Please help me solve this problem.
Ilya Danilenko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.