qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB connection in emulated Raspbian with QEMU


From: Peter Maydell
Subject: Re: USB connection in emulated Raspbian with QEMU
Date: Wed, 20 May 2020 14:10:05 +0100

On Wed, 20 May 2020 at 03:31, Emanuele Tavanti
<address@hidden> wrote:
>
> Hi All! I'm new to QEMU and i'm having a problem with a USB connection. I'm 
> trying to connect a USB device in the OS Raspbian buster (dated 2020-02-13) 
> virtualized with QEMU 2.11.1. I'm using the following command line

> sudo qemu-system-arm -kernel kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M 
> versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda 
> Raspbian_2020-02-13.img -net nic -net user,hostfwd=tcp::5022-:22 -no-reboot 
> -usb -device usb-host,vendorid=0x058b,productid=0x0058
>
> Once that the emulation starts, in the QEMU monitor i can see the device with 
> the command info usb, but with lsusb in Raspbian i cannot see any USB device. 
> Moreover, in the output of dmesg nothing about a USB connection is cited. 
> What are my errors? Thanks

Does 'lspci' list a PCI device which is a USB controller? If so, then check that
your guest kernel has the right driver for that controller compiled into it.

(After that you might try a newer QEMU version: 2.11 is pretty old.)

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]