[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] Lenovo S660 is not usb passrtu to qemu guest
From: |
Manfred Haertel, DB3HM |
Subject: |
Re: [Qemu-discuss] Lenovo S660 is not usb passrtu to qemu guest |
Date: |
Thu, 11 May 2017 07:03:22 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 |
Алексей Болдырев 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:address@hidden
http://rz-home.de/mhaertel