Skip to contentSkip to conversation

usb-host device not working

DISCUSSION Programmingkid 2 participants 4 messages Jul 13, 2021

lore
Share & tools
lore

Programmingkid

author Reviewed-by Jose R. Ziviani
#0 lore raw

I have been having problems with using host USB devices lately. I use to be able to use host USB devices but can't currently. After doing some git bisecting I found it was this patch that causes this issue:

commit 627302afb2f85cdd4b59595361876487aef19b7a (refs/bisect/bad)

Author: Gerd Hoffmann <[email protected]>
Date:   Thu Jun 24 12:38:35 2021 +0200

usb: build usb-host as module

Drop one more shared library dependency (libusb) from core qemu.

Message-Id: <[email protected]>

I build QEMU like this:

./configure --target-list=i386-softmmu --enable-libusb && make -j 9

This command use to work but fails now with the above commit:

qemu-system-i386 -usb -device usb-host,vendorid=0x093a,productid=0x2510

I think this is a bug with the commit. Any suggestions?

Thank you.

#1 lore raw
Quoted 23 lines · Programmingkid

I have been having problems with using host USB devices lately. I use to be able to use host USB devices but can't currently. After doing some git bisecting I found it was this patch that causes this issue:

commit 627302afb2f85cdd4b59595361876487aef19b7a (refs/bisect/bad)

Author: Gerd Hoffmann <[email protected]>
Date:   Thu Jun 24 12:38:35 2021 +0200

usb: build usb-host as module

Drop one more shared library dependency (libusb) from core qemu.

Message-Id: <[email protected]>

I build QEMU like this:

./configure --target-list=i386-softmmu --enable-libusb && make -j 9

Quoted 7 lines

This command use to work but fails now with the above commit:

qemu-system-i386 -usb -device usb-host,vendorid=0x093a,productid=0x2510

I think this is a bug with the commit. Any suggestions?

Thank you.

Forgot to mention this issue is observed on Mac OS 11.1.

#2 lore raw
In reply to Programmingkid
Quoted 17 lines · Programmingkid

I have been having problems with using host USB devices lately. I use to be able to use host USB devices but can't currently. After doing some git bisecting I found it was this patch that causes this issue:

commit 627302afb2f85cdd4b59595361876487aef19b7a (refs/bisect/bad)

Author: Gerd Hoffmann <[email protected]>
Date:   Thu Jun 24 12:38:35 2021 +0200

usb: build usb-host as module

Drop one more shared library dependency (libusb) from core qemu.

Message-Id: <[email protected]>

I build QEMU like this:

Quoted 7 lines

./configure --target-list=i386-softmmu --enable-libusb && make -j 9

This command use to work but fails now with the above commit:

qemu-system-i386 -usb -device usb-host,vendorid=0x093a,productid=0x2510

I think this is a bug with the commit. Any suggestions?

It'll be helpful to explain what kind of failure you observe, including any exact error messages seen ?

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#3 lore raw
Quoted 28 lines · Daniel P. Berrangé
Quoted 23 lines · Programmingkid

I have been having problems with using host USB devices lately. I use to be able to use host USB devices but can't currently. After doing some git bisecting I found it was this patch that causes this issue:

commit 627302afb2f85cdd4b59595361876487aef19b7a (refs/bisect/bad)

Author: Gerd Hoffmann <[email protected]>
Date:   Thu Jun 24 12:38:35 2021 +0200

usb: build usb-host as module

Drop one more shared library dependency (libusb) from core qemu.

Message-Id: <[email protected]>

I build QEMU like this:

./configure --target-list=i386-softmmu --enable-libusb && make -j 9

This command use to work but fails now with the above commit:

qemu-system-i386 -usb -device usb-host,vendorid=0x093a,productid=0x2510

Quoted 13 lines
Quoted 1 line

I think this is a bug with the commit. Any suggestions?

It'll be helpful to explain what kind of failure you observe, including any exact error messages seen ?

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

Sure, here is what I see:

qemu-system-i386: -device usb-host,vendorid=0x093a,productid=0x2510: 'usb-host' is not a valid device model name