dhruvvyas90 / qemu-rpi-kernel

Qemu kernel for emulating Rpi on QEMU
2.04k stars 357 forks source link

libvirt + kernel-qemu-5.4.51 #109

Open BlackSmith opened 4 years ago

BlackSmith commented 4 years ago

Hi, I try to use kernel-qemu-5.4.51 with libvirt (image Raspberry Pi OS (32-bit) Lite 2020-08-20 or 2020-05-27). But the kernel does not find the root partition. I have tried these kernel arguments:

root=PARTUUID=907af7d0-02 rootfstype=ext4
root=/dev/sda2 rootfstype=ext4
root=/dev/mmcblk0p2 rootfstype=ext4

The previous kernel (kernel-qemu-4.19.50-buster) works well with this Raspberry Pi image. Unfortunately, this version has a problem with docker.io.

dhruvvyas90 commented 3 years ago

@BlackSmith : Qemu now supports native raspberry pi support with machine options raspi2 and raspi3 which doesn't require modified kernels. Can you take a look at native-emulation subfolder for steps and see if it solves your problem ? Thanks.

bukyapavankumar commented 3 years ago

@dhruvvyas90 native emulation offers more performance right?

dhruvvyas90 commented 3 years ago

@bukyapavankumar : It should, yes.