Fchi88
Posts: 1
Joined: Sat Apr 06, 2019 3:41 pm

Re: RPI3 QEMU

Sat Apr 06, 2019 5:09 pm

Hello folks,

Now that the qemu 4.0 has been released with better support for RPI3 (thanks bzt !) what is the best option to have qemu emulate a rpi3 (or 2 ) with 1GB of RAM and network support ? Shall we stick to -M raspi2 ? I would appreciate your command line :P Thanks

mese79
Posts: 2
Joined: Tue Aug 20, 2019 7:19 am

Re: RPI3 QEMU

Tue Aug 20, 2019 7:38 am

Fchi88 wrote: Now that the qemu 4.0 has been released with better support for RPI3 (thanks bzt !) what is the best option to have qemu emulate a rpi3 (or 2 ) with 1GB of RAM and network support ? Shall we stick to -M raspi2 ?
Hi
Any update on this?
I've stuck with a black screen :(

Code: Select all

qemu-system-aarch64 -M raspi3 -m 1G -kernel kernel-qemu-4.19.50-buster

badbat75
Posts: 1
Joined: Fri Nov 08, 2019 1:39 pm

Re: RPI3 QEMU

Fri Nov 08, 2019 1:42 pm

Have you tried to pass also the dtb file as qemu option?
for raspi2: -dtb broadcom\bcm2709-rpi-2-b.dtb
for raspi3: -dtb broadcom\bcm2710-rpi-3-b-plus.dtb
Both are in the boot partition of a raspbian image.

lukechilds
Posts: 1
Joined: Tue Dec 17, 2019 10:58 am

Re: RPI3 QEMU

Tue Dec 17, 2019 11:04 am

I'd also be very interested in more information on this.

I want to test software I'm writing for the Pi from my development machine on a virtualised Pi.

I wrote dockerpi to automate all this: https://github.com/lukechilds/dockerpi

Just run `docker run -it lukechilds/dockerpi` and you get a fully virtualised ARM Pi environment.

However unfortunately I can only get Pi 1 style hardware working with `qemu-system-arm --machine versatilepb`

I'm struggling to get much working with `qemu-system-aarch64 --machine raspi3` which would be much more useful.

I always just get a VNC server but connecting to it doesn't show anything and nothing is printed to stdout:

Code: Select all

$ qemu-system-aarch64 --machine raspi3 -kernel /sdcard/kernel8.img -drive file=/sdcard/2019-09-26-raspbian-buster.img,if=sd,format=raw --serial stdio
VNC server running on 127.0.0.1:5900
Any pointers?

Return to “Bare metal, Assembly language”