[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] qemu linux host USB passthrough firmware update fails
From: |
Maximilian Kaul |
Subject: |
[Qemu-discuss] qemu linux host USB passthrough firmware update fails |
Date: |
Sat, 21 Jun 2014 00:17:31 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hi list,
Sorry, if this is the wrong place to ask this kind of questions but I couldn't
find a better one. If there is please be so kind as to direct me there.
I have a MacBook Air 6,2 running archlinux and I set up a qemu Windows 7
x64 guest. It works great. However, there is one problem: I have one USB
device that needs a firmware update, and there are only updaters for
Windows and OS X :(
My usual approach would be to just add the device to my Windows guest via
-usbdevice host:auto:*:*:0x2514:*,id=jawbone
where 0x2514 is the vendor ID. This works for all my other USB devices.
But in this case, what happens is the following:
The device gets discovered by the guest and the updater starts. I think
that at some point it puts the device in a special mode to update the
firmware and then the updater fails. lsusb on the host does not show the
device at that point. The only way I have found to make the device
visible again is to unplug and then replug it.
qemu monitor displays this error message when I try do update the device:
QEMU 2.0.0 monitor - type 'help' for more information
(qemu) libusb_release_interface: -4 [NO_DEVICE]
libusb: error [_open_sysfs_attr] open
/sys/bus/usb/devices/1-2/bConfigurationValue failed ret=-1 errno=2
libusb: error [_get_usbfs_fd] File doesn't exist, wait 10 ms and try again
libusb: error [_get_usbfs_fd] libusb couldn't open USB device
/dev/bus/usb/001/052: No such file or directory
I have tried to add a USB controller and attach the device to that, with
the same result:
-device piix3-usb-uhci,id=uhci (it's a full speed device)
-device usb-host,bus=uhci.0,vendorid=0x2514,productid=0x0002,id=jawbone
I use qemu 2.0.0-4 with 3.15.1-1-ARCH 64 bit kernel; all software is
(archlinux)-up-to-date.
dmesg outputs this:
[19429.530029] usb 1-2: new full-speed USB device number 52 using xhci_hcd
[19429.706168] hid-generic 0003:2514:0003.0014: hiddev0,hidraw4: USB HID v1.01
Device [HID 2514:0003] on usb-0000:00:14.0-2/input0
[19432.325328] usb 1-2: reset full-speed USB device number 52 using xhci_hcd
[19432.325338] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 30.
[19432.325340] usb 1-2: hub failed to enable device, error -22
[19432.485038] usb 1-2: reset full-speed USB device number 52 using xhci_hcd
[19432.485088] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 30.
[19432.485091] usb 1-2: hub failed to enable device, error -22
[19432.644945] usb 1-2: reset full-speed USB device number 52 using xhci_hcd
[19432.645083] usb 1-2: Device not responding to setup address.
[19432.848354] usb 1-2: Device not responding to setup address.
[19433.051360] usb 1-2: device not accepting address 52, error -71
[19433.211320] usb 1-2: reset full-speed USB device number 52 using xhci_hcd
[19433.211517] usb 1-2: Device not responding to setup address.
[19433.414678] usb 1-2: Device not responding to setup address.
[19433.617738] usb 1-2: device not accepting address 52, error -71
[19433.617858] usb 1-2: USB disconnect, device number 52
[19433.617965] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with
disabled ep ffff880262508348
[19433.617968] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with
disabled ep ffff880262508300
[19433.777557] usb 1-2: new full-speed USB device number 53 using xhci_hcd
[19433.937516] usb 1-2: device descriptor read/64, error -71
[19434.040789] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 31.
[19434.040793] usb 1-2: hub failed to enable device, error -22
[19434.200698] usb 1-2: new full-speed USB device number 54 using xhci_hcd
[19434.360672] usb 1-2: device descriptor read/64, error -71
[19434.463855] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 32.
[19434.463859] usb 1-2: hub failed to enable device, error -22
[19434.623855] usb 1-2: new full-speed USB device number 55 using xhci_hcd
[19434.623976] usb 1-2: Device not responding to setup address.
[19434.827151] usb 1-2: Device not responding to setup address.
[19435.030233] usb 1-2: device not accepting address 55, error -71
[19435.190178] usb 1-2: new full-speed USB device number 56 using xhci_hcd
[19435.190336] usb 1-2: Device not responding to setup address.
[19435.393463] usb 1-2: Device not responding to setup address.
[19435.596555] usb 1-2: device not accepting address 56, error -71
[19435.596586] hub 1-0:1.0: unable to enumerate USB device on port 2
Is there anything else I could try?
Thanks for your help!
Maximilian
pgp6qGayM093A.pgp
Description: PGP signature
- [Qemu-discuss] qemu linux host USB passthrough firmware update fails,
Maximilian Kaul <=