rpasek / usbip-wsl2-instructions

355 stars 37 forks source link

usb modules not found in directory /lib/modules/4.19.84-microsoft-standard+ #9

Open Marietto2008 opened 4 years ago

Marietto2008 commented 4 years ago

Hello again to everybody.

I'm again here trying to configure and make correctly usbip and all the usb devices needed to make it work. I've created a new ubuntu 20 installation,getting the image from the ms store. I'm also using the kernel 4.19.84,after having placed two files on the folder /users/marietto2020 ; they are :

.wslconfig,with this content inside :

[wsl2]

kernel=C:\Users\marietto2020\vmlinux

2) the kernel version 4.19.84 previously compiled,called "vmlinux"

So,I start the vm with : a) ubuntu 20 b) kernel 4.19.84 and,following this guide,I try to recompile the kernel,to activate the usb modules :

https://github.com/rpasek/usbip-wsl2-instructions

everything good,until here :

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

rpasek commented 4 years ago

The + at the end of 4.19.84-microsoft-standard+ indicates you are trying to compile a dirty/modified version of the git repo containing Linux. If you intended to modify the repo I recommend setting LOCALVERSION. See this post on stackoverflow. https://stackoverflow.com/questions/19333918/dont-add-to-linux-kernel-version