Skip to content

Raspberry Pi 4b #1

@codecowboy

Description

@codecowboy

Hi,

I think there is a 4b image available now. I tried your instructions with a 4b but just get a blank screen:

qemu-system-aarch64 \
 -machine raspi4b \
 -cpu cortex-a72 \
 -smp 4 \
 -m 2G \
 -kernel vmlinuz \
 -dtb bcm2711-rpi-4-b.dtb \
 -drive file=./Downloads/Ubuntu-Server-24.04.2-Raspberry-Pi.img,format=raw,if=sd \
 -append "root=/dev/mmcblk0p2 loglevel=8 rw rootwait rootfstype=ext4" \
 -usbdevice keyboard \
 -usbdevice mouse \
 -netdev user,id=net0,hostfwd=tcp::2022-:22 \
 -device usb-net,netdev=net0 

qemu-system-aarch64: warning: bcm2711 dtc: brcm,bcm2711-pcie has been disabled!
qemu-system-aarch64: warning: bcm2711 dtc: brcm,bcm2711-rng200 has been disabled!
qemu-system-aarch64: warning: bcm2711 dtc: brcm,bcm2711-thermal has been disabled!
qemu-system-aarch64: warning: bcm2711 dtc: brcm,bcm2711-genet-v5 has been disabled!
2025-03-10 08:20:14.035 qemu-system-aarch64[3816:87231] +[IMKClient subclass]: chose IMKClient_Modern
2025-03-10 08:20:14.035 qemu-system-aarch64[3816:87231] +[IMKInputSession subclass]: chose IMKInputSession_Modern

Would be grateful for any insight you might have. Its using the (un)official Ubuntu server image so I replaced kernel8 with vmlinuz. I'm wondering if root=/dev/mmcblk0p2 may also need to be changed. Is that what a raspbian root filesystem would be called? I'm new to qemu so it isn't immediately obvious to me. The other thing about the Ubuntu image is that it uses cloud-init (using the local nocloud file based approach)

edit: looks like that is multimediacard, partition 2 so may well be the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions