oscarbennett
Posts: 1
Joined: Mon Aug 03, 2020 9:48 am

How to emulate Raspios buster using qemu?

Mon Aug 03, 2020 10:03 am

I am trying to emulate an rPi to teach my sister how to code, as my old rPi 2 is now lost to the bottomless drawers of my room. (the reason I am emulating and not just using the debian vm is because I have already done that and it didn't work with the software i need)

I am using qemu to try and emulate the latest release and i'm attempting to use dhruvvyas90's kernel for buster. I have created a start.bat and here is both lines of code I used in that file to try and get it to work:

(found on the forums)

Code: Select all

 "C:\Users\Oscar Bennett\Downloads\qemu\qemu-system-arm.exe" -M versatilepb -cpu arm1176 -hda 2020-05-27-raspios-buster-full-armhf.img  -kernel kernel-qemu-4.19.50-buster -m 256 -append "root=/dev/sda2 panic=1" -no-reboot -dtb versatile-pb.dtb -serial stdio 
(found on YouTube tutorial from 2017)

Code: Select all

qemu-system-arm -kernel kernel-qemu-4.19.50-buster -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash" -drive "file=2020-05-27-raspios-buster-full-armhf.img,index=0,media=disk,format=raw" -redir tcp:2222::22
I have run both and both have errored out. The line I found in the forums does this:
Image

Return to “Off topic discussion”