Open masterplayer30 opened 4 years ago
I got this problem as well. Is there any fixes till now?
execute depmod
Realised that my folder was named /lib/modules/<kernel version>+
with a plus, so I just symlinked it to a directory without the plus.. However, I'm getting these set of errors instead:
modprobe: ERROR: could not insert 'usbcore': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: FATAL: Module usbnet not found in directory /lib/modules/5.4.72-microsoft-standard-WSL2
modprobe: FATAL: Module cdc_ether not found in directory /lib/modules/5.4.72-microsoft-standard-WSL2
modprobe: FATAL: Module rndis_host not found in directory /lib/modules/5.4.72-microsoft-standard-WSL2
modprobe: ERROR: could not insert 'usbserial': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: FATAL: Module usb-storage not found in directory /lib/modules/5.4.72-microsoft-standard-WSL2
modprobe: ERROR: could not insert 'cdc_acm': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: FATAL: Module ftdi_sio not found in directory /lib/modules/5.4.72-microsoft-standard-WSL2
modprobe: FATAL: Module usbip-core not found in directory /lib/modules/5.4.72-microsoft-standard-WSL2
modprobe: FATAL: Module vhci-hcd not found in directory /lib/modules/5.4.72-microsoft-standard-WSL2
dmesg
output:
[ 16.315882] usbcore: Unknown symbol gen_pool_dma_alloc (err -2)
[ 16.315948] usbcore: Unknown symbol usb_speed_string (err -2)
[ 16.315955] usbcore: Unknown symbol gen_pool_add_owner (err -2)
[ 16.315958] usbcore: Unknown symbol devm_gen_pool_create (err -2)
[ 16.315968] usbcore: Unknown symbol gen_pool_free_owner (err -2)
[ 16.315976] usbcore: Unknown symbol usb_hcd_amd_remote_wakeup_quirk (err -2)
[ 16.315977] usbcore: Unknown symbol usb_debug_root (err -2)
[ 16.353158] usbcore: Unknown symbol gen_pool_dma_alloc (err -2)
[ 16.353230] usbcore: Unknown symbol usb_speed_string (err -2)
[ 16.353238] usbcore: Unknown symbol gen_pool_add_owner (err -2)
[ 16.353242] usbcore: Unknown symbol devm_gen_pool_create (err -2)
[ 16.353253] usbcore: Unknown symbol gen_pool_free_owner (err -2)
[ 16.353262] usbcore: Unknown symbol usb_hcd_amd_remote_wakeup_quirk (err -2)
[ 16.353263] usbcore: Unknown symbol usb_debug_root (err -2)
[ 16.362173] usbcore: Unknown symbol gen_pool_dma_alloc (err -2)
[ 16.362241] usbcore: Unknown symbol usb_speed_string (err -2)
[ 16.362249] usbcore: Unknown symbol gen_pool_add_owner (err -2)
[ 16.362252] usbcore: Unknown symbol devm_gen_pool_create (err -2)
[ 16.362263] usbcore: Unknown symbol gen_pool_free_owner (err -2)
[ 16.362271] usbcore: Unknown symbol usb_hcd_amd_remote_wakeup_quirk (err -2)
[ 16.362272] usbcore: Unknown symbol usb_debug_root (err -2)
The appended + means you have uncommitted modifications or are working off a detached head (the latter was my case). Quick workaround: Prior to building the kernel, add .scmversion into the kernel source folder: touch .scmversion
.
@Samleo8 You need to tell WSL 2 to use your custom kernel. Do so by copying your kernel from /boot to the Windows filesystem. Then create a file in your user folder called .wslconfig with the following contents:
[wsl2]
kernel=c:\\location\\of\\kernel\\vmlinuz-5.10.16.3-microsoft-standard-WSL2
Then shutdown wsl via wsl --shutdown
and restart.
I'm getting this error after doing everything right:
bobby@DESKTOP-BIKQ1O0:~$ ./startusb.sh modprobe: FATAL: Module usbcore not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module usb-common not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module hid-generic not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module hid not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module usbnet not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module cdc_ether not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module rndis_host not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module usbserial not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module usb-storage not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module cdc-acm not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module ftdi_sio not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module usbip-core not found in directory /lib/modules/4.19.104-microsoft-standard modprobe: FATAL: Module vhci-hcd not found in directory /lib/modules/4.19.104-microsoft-standard 172.20.208.1
Any fixes?