-device usb-host failing with usbip_vudc-vhdi_hcd gadget
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
I must admit that I do not know if this is a Qemu or a Kernel issue, but I try reporting here:
When I try to forward a copy of my USB mouse that I made with the new virtual USB device controller in kernel 4.7 I get the following in my log:
[ +0.703256] usb 1-4: reset full-speed USB device number 3 using xhci_hcd
[ +1.020776] usb usb7-port3: Cannot enable. Maybe the USB cable is bad?
[ +0.855013] usb usb7-port3: Cannot enable. Maybe the USB cable is bad?
[ +0.859052] usb usb7-port3: Cannot enable. Maybe the USB cable is bad?
[ +0.857000] usb usb7-port3: Cannot enable. Maybe the USB cable is bad?
[ +0.000141] usb 7-3: USB disconnect, device number 10
[ +0.153056] usb 1-4: reset full-speed USB device number 3 using xhci_hcd
[ +0.703746] usb usb7-port3: Cannot enable. Maybe the USB cable is bad?
[ +0.855001] usb usb7-port3: Cannot enable. Maybe the USB cable is bad?
[ +0.855006] usb usb7-port3: Cannot enable. Maybe the USB cable is bad?
[ +0.855005] usb usb7-port3: Cannot enable. Maybe the USB cable is bad?
[ +0.000009] usb usb7-port3: unable to enumerate USB device
the commands I use for makeing the virtual device are(after making a copy of the report description of my real mouse in /root/usb/
mkdir /sys/kernel/
cd /sys/kernel/
echo "0x047d" > idVendor
echo "0x1020" > idProduct
mkdir strings/0x409
echo 2016 > strings/
echo Kensington > strings/
echo "Kensington Expert Mouse" > strings/
mkdir configs/c.1
mkdir configs/
mkdir functions/hid.usb2
echo 2 > functions/
echo 1 > functions/
echo 4 > functions/
cat /root/usb/
echo 0xa0 > configs/
echo 100 > configs/
ln -s functions/hid.usb2 configs/c.1
echo usbip-vudc.2 > UDC
usbip attach -r localhost -d usbip-vudc.2
The virtual mouse then shows up as Bus7,Dev10 and I use the option -device usb-host,
This is Qemu 2.7.0 on kernel 4.7.4
Error in title, was supposed to say:
-device usb-host failing with usbip_vudc-vhci_hcd gadget