Алексей Болдырев schrieb:
So, in order: Do a scan through monitor:

device_add usb-host, vendorid = 0x18d1, productid = 0x4ee2, id = lenovo

The most interesting thing is that other devices are thrown successfully. On 
this phone the kernel: 3.10.49. On the phone is LeanageOS.
What could be the problem?

There is a chance that it's the same problem as I described on May 6th as it happened on my phone.

As a test, try the following on the host:

Compile the following small program as a library ("gcc -shared -fPIC -o usbnosetconf.so usbnosetconf.c"):

#include <stdio.h>
#include <libusb-1.0/libusb.h>

int libusb_set_configuration ( libusb_device_handle *dev , int configuration )
{
  printf ( "faking libusb_set_configuration\n" ) ;

  return 0 ;
}

Then do "export LD_PRELOAD=/path/to/lib/usbnotsetconf.so" and start qemu.

If USB passthrough works then, it's the same problem.

--
Manfred Härtel, DB3HM    mailto:[email protected]
                         http://rz-home.de/mhaertel

Reply via email to