cdWSL2-Linux-Kernel-linux-msft-wsl-5.15.y make -j$(nproc) bzImage KCONFIG_CONFIG=Microsoft/config-wsl 接着我们将这个内核文件拷贝到我们的宿主机里的用户目录下(C:\Users{username}),同时找到一个叫".wslconfig"的文件,如果没有的话那就自行创建一个,并把我们拷贝出来的内核文件的地址添加进文件里 [w...
https://github.com/dorssel/usbipd-win usbipd list 可以查看连接到win上的设备。 把USB设备从win转移到WSL需要执行下面两个指令。 usbipd bind --busid <BUSID> usbipd attach --wsl --busid <busid> Before attaching the USB device, the commandusbipd bindmust be used to share the device, allo...
WSL默认是不支持直连USB设备的, 通常通过开源项目usbipd-win实现USB设备的共享. usbipd-win能够将连接至本地的USB设备共享给包括虚拟机, WSL2在内的其他主机, 使其能够与USB设备进行交互. 在Windows下可以通过系统自带的包管理器winget实现对usbipd的安装. wingetinstallusbipd 关于usbipd的使用也非常简单, 通过us...
make menuconfig KCONFIG_CONFIG=Microsoft/config-wsl 进入Device Drivers->USB support->Support for Host-side USB,选中USB Mass Storage support(*号是直接编译进内核,M是编译为内核模块,内核模块需要手动加载),把下面弹出来的一堆驱动都选上,保存完之后就可以退出了。 5B2688B6-6ED1-4527-959D-4954D9179CF3 ...
Once you are done using the device in WSL, you can either physically disconnect the device or run this command from anadministratorcommand prompt on Windows. Copy usbipd wsl detach--busid <busid> How it works This functionality takes advantage of theUSB/IP protocolto forward USB traffic over...
本指南将演练使用 USB/IP 开源项目usbipd-win将 USB 设备连接到在 WSL 2 上运行的 Linux 发行版所必要的步骤。 在Windows 计算机上设置 USB/IP 项目将启用常见的开发人员 USB 场景,例如刷写 Arduino 或访问智能卡读取器。 先决条件 运行Windows 11(内部版本 22000 或更高版本)。 (可提供 Windows 10 支持,请...
Device Driver->USB support 需要加入的配置 编译 # 生成的kernel镜像在 arch/x86/boot/bzImage make -j$(nproc) bzImage KCONFIG_CONFIG=Microsoft/config-wsl 把bzImage拷贝到C:\Users\{username}\ (可以拷到任意文件夹跟下面配置的地址对应就可以) ...
输入usbipd wsl list回车,查看USB设备: PSC:\\Users\\qinyunti > usbipd wsl listBUSIDVID:PID DEVICE STATE2-3046d:c542USB 输入设备 Not attached2-6174f:1811Integrated Camera, Integrated IR Camera, Camera DFU Device Not attached2-100bda:4853Realtek BluetoothAdapter Not attached3-31a86:7523USB-SE...
usbipd wsl list So far, it is possible to see that I don't have any USB device attached on WSL and that theUSB/IPfor my printer is1-5: I run the following command to attach my printer to WSL: usbipd wsl attach --busid 1-5 ...
In case the command line interface isn't your forte, you can givewsl-usb-guia try. It's an unofficial GUI wrapper around the usbipd-win binary, which greatly simplifies the USB device listing and interoperability between the host OS and the WSL instance. ...