New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usbip Error in Windows 10 (WSL 2) #149
Comments
@thedozo : |
@cezanne usbip: error: failed to update driver: 103 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. |
Here's my debug output: C:\usbip>usbipd -d -4 (in Windows) usbipd: info: starting usbipd (usbip 1.0.0) usbip attach -r 172.16.160.1 -b 1-209 (from WSL) usbip: info: connection from 172.26.168.72:43778 |
@thedozo :
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: #147 (comment) |
@thedozo : 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.
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. |
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. |
No. Ubuntu usually packages tools of a kernel named as linux-tool-xxx. Please try install that package. |
@cezanne
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 You may need to install the following packages for this specific kernel: You may also want to install one of the following packages to keep up to date: root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-tools-standard root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-cloud-tools-standard root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install 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 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 root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# apt install linux-tools-generic root@DESKTOP-N9UN2H3:/mnt/j/Downloads/New6/Emulators/cmder# usbip WARNING: usbip not found for kernel 4.19.84-microsoft |
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: |
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 ? |
@cezanne and If I give manual location of stub driver, it's showing updated driver is already installed. |
@cezanne : Choose "Have Disk" and specify the location of a specially built stub driver, catalog and inf. |
@thedozo : Then, can you uninstall a MTP driver ? And let me know the location of MTP driver. I try to install the driver. |
@thedozo :
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? |
@Marietto2008 see if it helps |
@pagkly |
I chose the same settings as rpasek guide here https://github.com/rpasek/usbip-wsl2-instructions also how is ubuntu 20.04? is it stable enough to upgrade? |
@thedozo : your drivers didn't help me. anyway I've recorded the whole process. can u give a look here,please : https://drive.google.com/open?id=13RmM2-zGlHm_x5nFTXtake0Q8Rp5xOsj |
@Marietto2008 Can you give me the output of following command from powershell: |
if it's WSL 2 and default kernel is 4.19.84 then |
@thedozo : I've used the official ubuntu 20.04 from the microsoft store. The kernel that u see come from there. And I'm trying to compile the kernel that I want,that's 4.19.104. From which distribution you start ? Anyway the kernel that I'm using come from the version 4.19.104. I use the 4.19.104 kernel because I'm not able to produce it doing : "sudo cp /proc/config.gz config.gz" |
@Marietto2008 |
@Marietto2008 can you give me the output of |
λ wsl -l -v
|
can u give me your .config file for the kernel 4.19.104 ? maybe there is some kind of error inside mine. |
@Marietto2008 just rename it to .config and save in your /usr/src/4.19.104-microsoft-standard path |
is this good ? root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# uname -a root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# git checkout v4.19.104 You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 9b15f7fae677 Linux 4.19.104 |
root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# sudo make install -j 12 sh ./arch/x86/boot/install.sh 4.19.104-microsoft-standard arch/x86/boot/bzImage root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# uname -a |
NO WAY FOR ME : root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard/tools/usb/usbip# sudo make install -j 12 Making install in libsrc |
root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# ./startusb.sh modprobe: FATAL: Module usbcore not found in directory /lib/modules/4.19.84-microsoft-standard+ root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# ls /lib/modules root@DESKTOP-N9UN2H3:/usr/lib/modules/4.19.104-microsoft-standard/kernel/drivers# ls |
I have decided to move to another USB support project as USB/IP can’t fulfill my requirements #150 |
I think that USB/IP can satisfy your needs. |
I guess not, it can only attach devices. But WSL applications can’t access devices. |
Could happens the same to me. Maybe. My project is not so different from your. I want to attach my kinect to WSL2,following this tutorial : https://www.instructables.com/id/Hooking-up-a-Kinect-to-your-Computer-Using-Ubuntu/ if it is like you say,I will be not able. For the moment,I'm not able to install the usb modules,but I have followed your directions carefully. |
May be. In my case, I’m looking for a way to connect my iPhone, it succeeds but WSL applications can’t detect it. So the whole hard work just goes into vain. |
try to use another application.
Il sab 2 mag 2020, 22:50 Abhi <notifications@github.com> ha scritto:
… Could happens the same to me. Maybe. My project is not so different from
your. I want to attach my kinect to WSL2,following this tutorial :
https://www.instructables.com/id/Hooking-up-a-Kinect-to-your-Computer-Using-Ubuntu/
if it is like you say,I will be not able. For the moment,I'm not able to
install the usb modules,but I have followed your directions carefully.
May be. In my case, I’m looking for a way to connect my iPhone, it
succeeds but WSL applications can’t detect it. So the whole hard work just
goes into vain.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFYNC4RWICZN6UCABPW4L3RPSBQTANCNFSM4MS2UWNA>
.
|
can u explain to me how you have installed the usb modules. im using your
method.
Il sab 2 mag 2020, 23:24 Mario Marietto <marietto2008@gmail.com> ha scritto:
… try to use another application.
Il sab 2 mag 2020, 22:50 Abhi ***@***.***> ha scritto:
> Could happens the same to me. Maybe. My project is not so different from
> your. I want to attach my kinect to WSL2,following this tutorial :
>
>
> https://www.instructables.com/id/Hooking-up-a-Kinect-to-your-Computer-Using-Ubuntu/
>
> if it is like you say,I will be not able. For the moment,I'm not able to
> install the usb modules,but I have followed your directions carefully.
>
> May be. In my case, I’m looking for a way to connect my iPhone, it
> succeeds but WSL applications can’t detect it. So the whole hard work just
> goes into vain.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#149 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAFYNC4RWICZN6UCABPW4L3RPSBQTANCNFSM4MS2UWNA>
> .
>
|
https://thedozo.github.io/posts/wsl2-compile-and-boot-custom-linux-kernel/ |
please i need 3 files from you. 1. config file kernel 84. 2. vmlinuz 84 3.
vmlinuz 104...thanks
Il sab 2 mag 2020, 23:28 Mario Marietto <marietto2008@gmail.com> ha scritto:
… can u explain to me how you have installed the usb modules. im using your
method.
Il sab 2 mag 2020, 23:24 Mario Marietto ***@***.***> ha
scritto:
> try to use another application.
>
> Il sab 2 mag 2020, 22:50 Abhi ***@***.***> ha scritto:
>
>> Could happens the same to me. Maybe. My project is not so different from
>> your. I want to attach my kinect to WSL2,following this tutorial :
>>
>>
>> https://www.instructables.com/id/Hooking-up-a-Kinect-to-your-Computer-Using-Ubuntu/
>>
>> if it is like you say,I will be not able. For the moment,I'm not able to
>> install the usb modules,but I have followed your directions carefully.
>>
>> May be. In my case, I’m looking for a way to connect my iPhone, it
>> succeeds but WSL applications can’t detect it. So the whole hard work just
>> goes into vain.
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#149 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AAFYNC4RWICZN6UCABPW4L3RPSBQTANCNFSM4MS2UWNA>
>> .
>>
>
|
your guide is rough. It does not explain a lot of steps. What I need is not explained there. |
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?
The text was updated successfully, but these errors were encountered: