From 81780cd42059cec417ea4cf6ab96429a648d7a10 Mon Sep 17 00:00:00 2001 From: Akira - Cleber Akira Nakandakare Date: Thu, 24 Jun 2021 14:15:54 -0300 Subject: [PATCH] Actually install the kernel This commit is related to https://github.com/rpasek/usbip-wsl2-instructions/issues/2 --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 983db51..3dc8793 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Device Drivers->Network device support->USB Network Adapters->Multi-purpose USB Build the kernel and modules with as many cores as you have available (-j [number of cores]). This may take a few minutes depending how fast your machine is: ``` -~/WSL2-Linux-Kernel$ make -j 12 && make modules_install -j 12 && sudo make install -j 12 +~/WSL2-Linux-Kernel$ make -j 12 && make modules_install -j 12 ``` After the build completes you'll get a list of what kernel modules have been installed. Mine looks like: @@ -174,6 +174,18 @@ Mark it as executable: ~$ sudo chmod +x startusb.sh ``` +Replace the Linux kernel with the one just compiled. Before running the command below, replace `` with your username. +``` +cp ~/WSL2-Linux-Kernel/vmlinux /mnt/c/Users// +``` + +And create a file .wslconfig in `C:\Users\\` with the following contents, always replacing `` with your actual username: + +``` +[wsl2] +kernel=C:\\Users\\\\vmlinux +``` + Restart WSL. In a CMD window in Windows type: ``` C:\Users\rpasek>wsl --shutdown