Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6025

QEMU 9.0 emulation raspberry pi 4 with Ubuntu 20.04 Image

$
0
0

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.


Viewing all articles
Browse latest Browse all 6025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>