Em sex., 21 de abr. de 2023 11:40, Thomas Huth <thuth@redhat.com
<mailto:thuth@redhat.com>> escreveu:
On 20/04/2023 13.53, Freitas GDH wrote:
> Thank you Frank and Thomas !!
>
> Before use if=none I've tried:
>
> *-drive file=1.squashfs,if=virtio,format=raw,id=foo -device
> virtio-blk-device,drive=foo *
> /qemu-system-mipsel: -device virtio-blk-device,drive-foo: No
'virtio-bus'
> bus found for device 'virtio-blk-device'/
> and
> *-drive file=1.squashfs,if=virtio,format=raw*
> /qemu-system-mipsel: -drive file=1.squashfs,if=virtio,format=raw: No
'PCI'
> bus found for device 'virtio-blk-pci'/
>
> After watch the Thomas video, I ran:
> *-blockdev file,node-name=f1,filename=/home/fenix/files/1/1.squashfs \
> -blockdev raw,node-name=q1,file=f1 \
> -device virtio-blk,drive=q1 \*
> /qemu-system-mipsel: -device virtio-blk,drive=q1: No 'PCI' bus found for
> device 'virtio-blk-pci'/
That means that your machine does not support PCI, so you cannot use the
normal virtio devices.
Do you have the source code of that machine available somewhere? Looking at
that code is maybe the easiest way to find out which devices it supports...
Thomas