Closed ghost closed 4 years ago
@thedozo : Please, check again the certificate installation. Refer https://github.com/cezanne/usbip-win/issues/147#issuecomment-619945893 If the installation has no problem, did you execute the bind command with administrator privilege?
@thedozo : Please, check again the certificate installation. Refer #147 (comment) If the installation has no problem, did you execute the bind command with administrator privilege?
@cezanne ok, after running as administration the error is gone, but new error is giving:
usbip: error: failed to update driver: 103 usbip: error: bind_device: error binding device on busid 1-209: err: 0
what to do now? I am using Windows 10 (x64) build 2004. The device i want to bind is an iPhone with busid 1-209. I tested with another device (a pendrive) and same error. Also I can't even attach the usb device from WSL environment due to this error.
@cezanne
Here's my debug output:
C:\usbip>usbipd -d -4 (in Windows)
usbipd: info: starting usbipd (usbip 1.0.0) usbip: debug: C:\work\usbip-win\userspace\src\usbipd\usbipd_sock.c:38:[build_sockfd] opening 0.0.0.0:3240 usbip: info: listening on 0.0.0.0:3240
usbip attach -r 172.16.160.1 -b 1-209 (from WSL)
usbip: info: connection from 172.26.168.72:43778 usbip: info: recv_pdu: received request: 0x8003 - attach device usbip: error: get_device_path: traverse_intfdevs failed, returned: 0 usbip: error: open_stub_dev: invalid devno: 209 usbip: error: export_device: cannot open devno: 209 usbip: error: failed to export device: 1-209, err:-1 usbip: info: recv_pdu: request 0x8003: failed
@thedozo :
usbip attach -r 172.16.160.1 -b 1-209 (from WSL)
usbip: info: connection from 172.26.168.72:43778 usbip: info: recv_pdu: received request: 0x8003 - attach device usbip: error: get_device_path: traverse_intfdevs failed, returned: 0 usbip: error: open_stub_dev: invalid devno: 209 usbip: error: export_device: cannot open devno: 209 usbip: error: failed to export device: 1-209, err:-1 usbip: info: recv_pdu: request 0x8003: failed
Did you succeed to bind ? If not, please update a driver of a iphone device manually as shown below.
Here is a zip file for stub driver update.
@cezanne its saying iPhone driver is already updated and installing your given updated stub update couldn’t solve the issue. Still having same problem.
@cezanne can you pls take a look at this: https://github.com/cezanne/usbip-win/issues/147#issuecomment-621645971
@thedozo :
@cezanne can you pls take a look at this: #147 (comment)
I examined your screenshot throughly. 😄 You might not use v0.1.0 usipd.exe. Logs in the following screenshot cannot be generated from v0.1.0. Please update usbipd.exe to v0.1.0.
@cezanne its saying iPhone driver is already updated and installing your given updated stub update couldn’t solve the issue. Still having same problem.
Does your device manager look like mine? Then update manually, not automatically.
ehy boys,what about the protocol mismatch ? I didn't understand if there is a solution or not.
@Marietto2008
ehy boys,what about the protocol mismatch ? I didn't understand if there is a solution or not.
The possibility of protocol mismatch is very low. @KNpTrue in #137 has not suffered from your case. How about trying to get the userspace binaries from them?
@cezanne : I see that he used ubuntu 18.04. So it should be enough to install this version of ubuntu. Right now I tried with 16.04 (as suggested by your tutorial) and 20,but not 18.04. But maybe the problem is another one...maybe is that I'm using the kernel 4.19.84 recompiled to enable kvm...
@Marietto2008 : The usbip of linux has been using the same version(0x111) very long time. Thus, 16.04, 18.04 and 20.04 may have the same results. By the way, is there any reason not to use a usbip distribution package?
what do u mean with "usbip distribution package" ?
If 16.04, 18.04 and 20.04 may have the same results,it does not make sense to get the userspace binaries from one of these distros. Am I right ? Plus,usbip is integrated with linux,it does not exists in a form of standalone package. There are some contraddictory informations here.
@Marietto2008 :
Plus,usbip is integrated with linux,it does not exists in a form of standalone package.
No. Ubuntu usually packages tools of a kernel named as linux-tool-xxx. Please try install that package.
@thedozo :
@cezanne can you pls take a look at this: #147 (comment)
I examined your screenshot throughly. 😄 You might not use v0.1.0 usipd.exe. Logs in the following screenshot cannot be generated from v0.1.0. Please update usbipd.exe to v0.1.0.
@cezanne its saying iPhone driver is already updated and installing your given updated stub update couldn’t solve the issue. Still having same problem.
Does your device manager look like mine? Then update manually, not automatically.
@cezanne bro I've double checked, it's version 0.1.0. Downloaded from your Github repo. Check the version below:
C:\usbip>usbip version
usbip (usbip 1.0.0)
When I tried to update the stub driver manually as you said, it's showing me following:
Also if I try to attach the iphone into WSL, it's giving same error, debug log is given:
@cezanne : no
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# usbip WARNING: usbip not found for kernel 4.19.84-microsoft
You may need to install the following packages for this specific kernel: linux-tools-4.19.84-microsoft-standard linux-cloud-tools-4.19.84-microsoft-standard
You may also want to install one of the following packages to keep up to date: linux-tools-standard linux-cloud-tools-standard
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-tools-standard Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-tools-standard
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-cloud-tools-standard Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-cloud-tools-standard
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-cloud-tools-4.19.84-microsoft-standard Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-cloud-tools-4.19.84-microsoft-standard E: Couldn't find any package by glob 'linux-cloud-tools-4.19.84-microsoft-standard' E: Couldn't find any package by regex 'linux-cloud-tools-4.19.84-microsoft-standard'
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-tools
Reading package lists... Done Building dependency tree Reading state information... Done Package linux-tools is a virtual package provided by: linux-tools-oem-osp1 5.0.0.1050.53 linux-tools-gke-5.3 5.3.0.1018.8 linux-tools-gke-5.0 5.0.0.1035.23 linux-tools-virtual-hwe-18.04-edge 5.3.0.51.104 linux-tools-virtual-hwe-18.04 5.3.0.51.104 linux-tools-virtual-gkeop-5.0 5.0.0.47.104 linux-tools-virtual 4.15.0.99.89 linux-tools-oracle-lts-18.04 4.15.0.1038.47 linux-tools-oracle-edge 5.3.0.1016.17 linux-tools-oracle 5.3.0.1016.17 linux-tools-oem 4.15.0.1080.84 linux-tools-lowlatency-hwe-18.04-edge 5.3.0.51.104 linux-tools-lowlatency-hwe-18.04 5.3.0.51.104 linux-tools-lowlatency 4.15.0.99.89 linux-tools-gke-4.15 4.15.0.1058.62 linux-tools-generic-hwe-18.04-edge 5.3.0.51.104 linux-tools-generic-hwe-18.04 5.3.0.51.104 linux-tools-generic 4.15.0.99.89 linux-tools-gcp-edge 5.3.0.1018.17 linux-tools-gcp 5.3.0.1018.17 linux-tools-azure-edge 5.3.0.1020.20 linux-tools-azure 5.3.0.1020.20 linux-tools-aws-lts-18.04 4.15.0.1066.69 linux-tools-aws-edge 5.3.0.1017.18 linux-tools-aws 5.3.0.1017.18 You should explicitly select one to install.
E: Package 'linux-tools' has no installation candidate
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-tools-generic 4.15.0.99.89 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package 4.15.0.99.89 E: Couldn't find any package by glob '4.15.0.99.89' E: Couldn't find any package by regex '4.15.0.99.89'
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-tools-generic Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: linux-tools-4.15.0-99 linux-tools-4.15.0-99-generic The following NEW packages will be installed: linux-tools-4.15.0-99 linux-tools-4.15.0-99-generic linux-tools-generic 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 4750 kB of archives. After this operation, 22.1 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-tools-4.15.0-99 amd64 4.15.0-99.100 [4746 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-tools-4.15.0-99-generic amd64 4.15.0-99.100 [1996 B] Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-tools-generic amd64 4.15.0.99.89 [2384 B] Fetched 4750 kB in 1s (6015 kB/s) Selecting previously unselected package linux-tools-4.15.0-99. (Reading database ... 208699 files and directories currently installed.) Preparing to unpack .../linux-tools-4.15.0-99_4.15.0-99.100_amd64.deb ... Unpacking linux-tools-4.15.0-99 (4.15.0-99.100) ..............................................................................................................] Selecting previously unselected package linux-tools-4.15.0-99-generic.........................................................................................] Preparing to unpack .../linux-tools-4.15.0-99-generic_4.15.0-99.100_amd64.deb ... Unpacking linux-tools-4.15.0-99-generic (4.15.0-99.100) ......................................................................................................] Selecting previously unselected package linux-tools-generic.##########........................................................................................] Preparing to unpack .../linux-tools-generic_4.15.0.99.89_amd64.deb ... Unpacking linux-tools-generic (4.15.0.99.89) ...###############################...............................................................................] Setting up linux-tools-4.15.0-99 (4.15.0-99.100) ...############################################..............................................................] Setting up linux-tools-4.15.0-99-generic (4.15.0-99.100) ...######################################################............................................] Setting up linux-tools-generic (4.15.0.99.89) ...##################################################################################...........................]
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# usbip
WARNING: usbip not found for kernel 4.19.84-microsoft
@cezanne : no
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# usbip WARNING: usbip not found for kernel 4.19.84-microsoft
You may need to install the following packages for this specific kernel: linux-tools-4.19.84-microsoft-standard linux-cloud-tools-4.19.84-microsoft-standard
You may also want to install one of the following packages to keep up to date: linux-tools-standard linux-cloud-tools-standard
root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-tools-standard Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-tools-standard
@marietto2008
I have pre-compiled usbip for your kernel version (4.19.84-microsoft-standard), you can use my pre-compiled usbip library if you want. You can get it from here: libusbip.zip extract and copy the library file into /lib directory, hopefully you can run usbip command from now on :)
it's not enough to have the file "libusbip.so.0" to run usbip. I need also the executable and some other libraries...
@thedozo : Couldn't you see a below dialog while updating a driver manually ?
anyway I don't see a reason to do that,since you are using usbip 2.0 like me for linux and 0.1.0 like me on windows. and as @cezanne said : 16,18 and 20 may have the same result. I think that the usbip that I'm using now on ubuntu 20 come from the source code of the kernel 4.19.84 (recompiled for make work kvm). do u think that the fact that I have recompiled it,makes usbip stop to be the right version ?
@thedozo : Couldn't you see a below dialog while updating a driver manually ?
@cezanne Ok, which option to choose? MTP USB or MTP IP? which drive I need to update manually?
@cezanne and If I give manual location of stub driver, it's showing updated driver is already installed. check my dialog:
@cezanne : Choose "Have Disk" and specify the location of a specially built stub driver, catalog and inf.
@cezanne : Choose "Have Disk" and specify the location of a specially built stub driver, catalog and inf.
@cezanne so for MTP USB or MTP IP? which device driver I need to set the location for?
@thedozo : Then, can you uninstall a MTP driver ? And let me know the location of MTP driver. I try to install the driver.
@thedozo : Then, can you uninstall a MTP driver ? And let me know the location of MTP driver. I try to install the driver. @cezanne Ok, I unistalled the MTP driver for iPhone and here's the driver location:
I can't see any stub driver here...
@thedozo :
I can't see any stub driver here...
Right.. Because you failed to bind. Your details screenshot is the same with mine before binding.
@thedozo :
I can't see any stub driver here...
Right.. Because you failed to bind. Your details screenshot is the same with mine before binding.
@cezanne so how to solve the binding problem? what to do now? Can you bind your iphone? is there anything to do with driver version or so? I can't update stub manually, because each time it's showing Driver already updated or best driver already installed FYI, I can bind simple pendrive though, only iPhone is creating the problem.
so,if I'm right,if you fix this problem,you will face the problem that I'm facing ? since you are using the same version of my kernel and my userland files,on ubuntu and windows ?
ohh no...i forgot : now you are using a new kernel : 4.19.104.
ohh no...i forgot : now you are using a new kernel : 4.19.104.
yes, I recompiled another kernel and using it now, I couldn't even bind an USB pendrive with previous kernel. this kernel solved that. @Marietto2008
@thedozo :
Can you bind your iphone? is there anything to do with driver version or so?
Yes, I can. I think that a MTP device driver may cause the problem.. Please answer the following question.
@thedozo : Then, can you uninstall a MTP driver ? And let me know the location of MTP driver. I try to install the driver.
@thedozo :
Can you bind your iphone? is there anything to do with driver version or so?
Yes, I can. I think that a MTP device driver may cause the problem.. Please answer the following question.
@thedozo : Then, can you uninstall a MTP driver ? And let me know the location of MTP driver. I try to install the driver.
@cezanne how to uninstall MTP driver for iPhone, can you give me a screenshot?
@cezanne or can you take a look using Teamviewer? I can give you access in Teamviewer
so,I suppose that the new kernel solves the old problem,but creates a new one.
so,I suppose that the new kernel solves the old problem,but creates a new one.
@Marietto2008 I had the issue with iphone binding since previous one, it's an old issue, not new. This kernel solved pendrive issue but can't solve iPhone issue.
@thedozo : can u give me the new kernel ? it should be the file vmlinux. thanks...
@thedozo : can u give me the new kernel ? it should be the file vmlinux. thanks...
@Marietto2008 yes, I can. it's the bzImage file, not vmlinux. You can boot from it with .wslconfig file. Keep the image in your C:\Users\
Here's my .wslconfig file content:
[wsl2]
kernel=C:\\Users\\abhiw\\bzImage
replace abhiw with your username
it's not bzImage. Right now I'm using the file vmlinux.
it's not bzImage. Right now I'm using the file vmlinux.
oh no idea then. I'm using bzImage. my system is x86_64 and there's no vmlinux file in mine.
@Marietto2008 can you try boot from the image i have given by .wslconfig file? if you are under x64 system as mine then I think it will work.
@thedozo :
@cezanne how to uninstall MTP driver for iPhone, can you give me a screenshot?
Maybe you did not install a MTP driver S/W. I don't know the uninstall because I have heard about MTP from you first time. But I'm trying to install a MTP.
I have tried. it is not recognized. I need the vmlinux file. I don't know why.
@thedozo :
@cezanne how to uninstall MTP driver for iPhone, can you give me a screenshot?
Maybe you did not install a MTP driver S/W. I don't know the uninstall because I have heard about MTP from you first time. But I'm trying to install a MTP.
@cezanne how to install MTP driver??? I simply connect my iphone with my PC and this driver/iPhone appears automatically under portable devices section. I have iTunes installed though.
I have tried. it is not recognized. I need the vmlinux file. I don't know why.
then you may need to compile the kernel by yourself! Still I'm confused with all these workaround of WSL 2, seems bit strange. Can't even edit any file using VScode due to permission issue. It wasn't like that in old WSL1.
but you should have it already. can u check ? u can save me some time
@Marietto2008 Ok, give me some time. I'm looking into it...
@thedozo :
@cezanne or can you take a look using Teamviewer? I can give you access in Teamviewer
Please email me accesss information.
@thedozo :
@cezanne or can you take a look using Teamviewer? I can give you access in Teamviewer
Please email me accesss information.
@cezanne pls check email. Given. Take access.
I am running usbip release usbip-win 0.1.0 under Windows 10 (64-bit, build 2004) and WSL 2. My WSL distro is Ubuntu 20.04.
I followed the instruction of installing certificate into both trusted stores in local machine and everything. Also I have test signing on in my machine. still I am getting following error:
I can list my devices well though:
What to do now? How can I solve it?