Skip to content
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

Closed
ghost opened this issue Apr 28, 2020 · 145 comments
Closed

usbip Error in Windows 10 (WSL 2) #149

ghost opened this issue Apr 28, 2020 · 145 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2020

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:

usbip: error: load_cert_context: failed to open certificate store: 5
usbip: error: cannot load certificate: subject: USBIP Test
usbip: error: bind_device: error binding device on busid 1-209: err: 0

I can list my devices well though:

  • busid 1-191 (5986:210f)
    Acer, Inc : unknown product (5986:210f)
  • busid 1-209 (05ac:12a8)
    Apple, Inc. : iPhone5/5C/5S/6 (05ac:12a8)
  • busid 1-30 (8087:0a2a)
    Intel Corp. : unknown product (8087:0a2a)

What to do now? How can I solve it?

@cezanne
Copy link
Owner

cezanne commented Apr 29, 2020

@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?

@ghost
Copy link
Author

ghost commented Apr 29, 2020

@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.

@ghost
Copy link
Author

ghost commented Apr 29, 2020

@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

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@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.

update_driver

Here is a zip file for stub driver update.

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@cezanne its saying iPhone driver is already updated and installing your given updated stub update couldn’t solve the issue. Still having same problem.

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@cezanne can you pls take a look at this: #147 (comment)

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@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.
usbipd_log

@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.
please update manually

@Marietto2008
Copy link

ehy boys,what about the protocol mismatch ? I didn't understand if there is a solution or not.

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@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?

@Marietto2008
Copy link

Marietto2008 commented Apr 30, 2020

@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...

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@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?

@Marietto2008
Copy link

what do u mean with "usbip distribution package" ?

@Marietto2008
Copy link

Marietto2008 commented Apr 30, 2020

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.

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@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.

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@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.
usbipd_log

@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.
please update manually

@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:
p1

Also if I try to attach the iphone into WSL, it's giving same error, debug log is given:
p2

@Marietto2008
Copy link

@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'

@Marietto2008
Copy link

Marietto2008 commented Apr 30, 2020

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

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@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 :)

@Marietto2008
Copy link

it's not enough to have the file "libusbip.so.0" to run usbip. I need also the executable and some other libraries...

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@thedozo : Couldn't you see a below dialog while updating a driver manually ?

iphone

@Marietto2008
Copy link

Marietto2008 commented Apr 30, 2020

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 ?

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@thedozo : Couldn't you see a below dialog while updating a driver manually ?

iphone

@cezanne Ok, which option to choose?
Capture
MTP USB or MTP IP? which drive I need to update manually?

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@cezanne and If I give manual location of stub driver, it's showing updated driver is already installed.
check my dialog:
Capture

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@cezanne : Choose "Have Disk" and specify the location of a specially built stub driver, catalog and inf.

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@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?

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@thedozo : Then, can you uninstall a MTP driver ? And let me know the location of MTP driver. I try to install the driver.

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@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:
Capture

I can't see any stub driver here...

@cezanne
Copy link
Owner

cezanne commented Apr 30, 2020

@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.

@ghost
Copy link
Author

ghost commented Apr 30, 2020

@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.

@ghost
Copy link
Author

ghost commented May 2, 2020

@Marietto2008
I have compressed my usb modules folder and attach it here:
usb.zip
you can extract it and copy to /usr/lib/modules/4.19.104-microsoft-standard/kernel/drivers

see if it helps

@ghost
Copy link
Author

ghost commented May 2, 2020

@pagkly
while compiling did you add specific USB LAN driver module in menuconfig?
some drivers need to add manually to fully enable them.

@ghost
Copy link
Author

ghost commented May 2, 2020

@pagkly
download this file, extract and copy it into /usr/share/hwdata/ path.
usb.zip

@pagkly
Copy link

pagkly commented May 2, 2020

@pagkly
while compiling did you add specific USB LAN driver module in menuconfig?
some drivers need to add manually to fully enable them.

I chose the same settings as rpasek guide here https://github.com/rpasek/usbip-wsl2-instructions
I also installed the driver (from https://github.com/aircrack-ng/rtl8188eus) manually
Should I just enable all wlan driver module?

also how is ubuntu 20.04? is it stable enough to upgrade?

@Marietto2008
Copy link

@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

@ghost
Copy link
Author

ghost commented May 2, 2020

@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
as i guessed, your process is different from me.
Check this:
Untitled
Check red marked areas
you didn't copy config.gz from your existing kernel! it shows no such file or directory error. Why?
I have also noticed your old kernel was 4.4.x something like that...which is strange, because default kernel of WSL 2 is 4.19.84.

Can you give me the output of following command from powershell:
wsl -l -v

@ghost
Copy link
Author

ghost commented May 2, 2020

if it's WSL 2 and default kernel is 4.19.84 then
sudo cp /proc/config.gz config.gz
should not produce any error. As it produced no error for me.
Why you need to copy cofig-wsl?
there supposed to be no such step. @Marietto2008

@Marietto2008
Copy link

Marietto2008 commented May 2, 2020

@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"

@ghost
Copy link
Author

ghost commented May 2, 2020

@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.

@Marietto2008
I'm also using same Ubuntu 20.04 from store, but my default kernel was 4.19.84! I followed this guide to enable WSL 2 in my system:
https://pureinfotech.com/install-windows-subsystem-linux-2-windows-10/
it clearly states that Download WSL 2 kernel update (required) to install WSL2 supported kernel manually, which is 4.19.84

@ghost
Copy link
Author

ghost commented May 2, 2020

@Marietto2008 can you give me the output of
wsl -l -v
command?

@Marietto2008
Copy link

λ wsl -l -v
NAME STATE VERSION

  • Ubuntu-20.04 Stopped 2
    Ubuntu Stopped 2
    focal Stopped 2
    Ubuntu-18.04 Stopped 2
    Ubuntu-16.04 Stopped 1

@Marietto2008
Copy link

can u give me your .config file for the kernel 4.19.104 ? maybe there is some kind of error inside mine.

@ghost
Copy link
Author

ghost commented May 2, 2020

can u give me your .config file for the kernel 4.19.104 ? maybe there is some kind of error inside mine.

@Marietto2008
here it is:
config.txt

just rename it to .config and save in your /usr/src/4.19.104-microsoft-standard path

@Marietto2008
Copy link

Marietto2008 commented May 2, 2020

is this good ?

root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# uname -a
Linux DESKTOP-N9UN2H3 4.19.84-microsoft-standard+ #1 SMP Thu Apr 23 16:35:29 PDT 2020 x86_64 x86_64 x86_64 GNU/Linux

root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# git checkout v4.19.104
Note: switching to 'v4.19.104'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

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

@Marietto2008
Copy link

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
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.19.104-microsoft-standard /boot/vmlinuz-4.19.104-microsoft-standard
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.19.104-microsoft-standard /boot/vmlinuz-4.19.104-microsoft-standard
update-initramfs: Generating /boot/initrd.img-4.19.104-microsoft-standard
W: mkconf: MD subsystem is not loaded, thus I cannot scan for arrays.
W: mdadm: failed to auto-generate temporary mdadm.conf file.
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.19.104-microsoft-standard /boot/vmlinuz-4.19.104-microsoft-standard
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.19.104-microsoft-standard /boot/vmlinuz-4.19.104-microsoft-standard

root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# uname -a
Linux DESKTOP-N9UN2H3 4.19.84-microsoft-standard+ #1 SMP Thu Apr 23 16:35:29 PDT 2020 x86_64 x86_64 x86_64 GNU/Linux

@Marietto2008
Copy link

Marietto2008 commented May 2, 2020

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
make[1]: Entering directory '/usr/src/4.19.104-microsoft-standard/tools/usb/usbip/libsrc'
CC libusbip_la-names.lo
CC libusbip_la-usbip_host_driver.lo
CC libusbip_la-usbip_device_driver.lo
CC libusbip_la-usbip_common.lo
CC libusbip_la-usbip_host_common.lo
CC libusbip_la-vhci_driver.lo
CC libusbip_la-sysfs_utils.lo
In file included from /usr/include/string.h:495,
from usbip_device_driver.c:25:
In function ‘strncpy’,
inlined from ‘read_usb_vudc_device’ at usbip_device_driver.c:108:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 256 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
inlined from ‘read_usb_vudc_device’ at usbip_device_driver.c:127:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 32 equals destination size [-Werror=stringop-truncatio ]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:472: libusbip_la-usbip_device_driver.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/include/string.h:495,
from usbip_common.h:14,
from usbip_common.c:7:
In function ‘strncpy’,
inlined from ‘read_usb_device’ at usbip_common.c:229:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 256 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
inlined from ‘read_usb_device’ at usbip_common.c:230:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 32 equals destination size [-Werror=stringop-truncatio ]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:479: libusbip_la-usbip_common.lo] Error 1
make[1]: Leaving directory '/usr/src/4.19.104-microsoft-standard/tools/usb/usbip/libsrc'
make: *** [Makefile:498: install-recursive] Error 1

@Marietto2008
Copy link

@Marietto2008
Copy link

Marietto2008 commented May 2, 2020

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+
modprobe: FATAL: Module usb-common not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module hid-generic not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module hid not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module usbnet not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module cdc_ether not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module rndis_host not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module usbserial not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module usb-storage not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module cdc-acm not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module ftdi_sio not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module usbip-core not found in directory /lib/modules/4.19.84-microsoft-standard+
modprobe: FATAL: Module vhci-hcd not found in directory /lib/modules/4.19.84-microsoft-standard+
172.27.112.1

root@DESKTOP-N9UN2H3:/usr/src/4.19.104-microsoft-standard# ls /lib/modules
4.19.104-microsoft-standard

root@DESKTOP-N9UN2H3:/usr/lib/modules/4.19.104-microsoft-standard/kernel/drivers# ls
hid net usb

@thedozo

@ghost
Copy link
Author

ghost commented May 2, 2020

I have decided to move to another USB support project as USB/IP can’t fulfill my requirements #150
If it goes well then I’ll inform
@Marietto2008

@Marietto2008
Copy link

I think that USB/IP can satisfy your needs.

@ghost
Copy link
Author

ghost commented May 2, 2020

I think that USB/IP can satisfy your needs.

I guess not, it can only attach devices. But WSL applications can’t access devices.

@Marietto2008
Copy link

Marietto2008 commented May 2, 2020

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.

@ghost
Copy link
Author

ghost commented May 2, 2020

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.

@Marietto2008
Copy link

Marietto2008 commented May 2, 2020 via email

@Marietto2008
Copy link

Marietto2008 commented May 2, 2020 via email

@ghost
Copy link
Author

ghost commented May 2, 2020

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:

https://thedozo.github.io/posts/wsl2-compile-and-boot-custom-linux-kernel/

@Marietto2008
Copy link

Marietto2008 commented May 2, 2020 via email

@Marietto2008
Copy link

your guide is rough. It does not explain a lot of steps. What I need is not explained there.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants