I'm attempting to do embedded systems development within a WSL2 Linux (Ubuntu 20.04) and getting the error:
usbipd: warning: USB filter 'USBPcap' is known to be incompatible with this software; 'bind --force' will be required.
In powershell, running a usbipd wsl list is when I see the error 'bind --force' will be required (full output below).
I am unsure exactly why this occurs & is required, the --force behavior is not documented / does not appear in a google search. Example:
PS C:\Users\Hidden> usbipd wsl list
BUSID DEVICE STATE
1-3 Logitech USB Input Device, USB Input Device Not attached
1-4 Printer XYZ Series, USB Printing Support, USB Mass Stor... Not attached
1-7 USB Input Device Not attached
1-8 USB Input Device Not attached
1-10 Intel(R) Wireless Bluetooth(R) Not attached
1-11 USB 2.0 Webcam Device Not attached
1-12 Realtek USB 2.0 Card Reader Not attached
usbipd: warning: USB filter 'USBPcap' is known to be incompatible with this software; 'bind --force' will be required.
I'm using the Windows 11, insider stable release channel with all patches applied. WSL1 is slow, the disk bindings are different, it doesn't have WSLG (so I can't run Linux GUI software)
WSL2 has one major drawback - it does not presently support USB devices, that is unless you follow the instructions from Ben McMorran Senior Software Engineer, C++ Team @ Microsoft who writes about USBIPD which exports a USB device from the Windows Host using TCP/IP to the Linux machine here:
https://devblogs.microsoft.com/commandline/connecting-usb-devices-to-wsl/
A google search turns up few if any useful tips/others related to --force.
I thought I'd post this question here to start a discussion for other people experiencing the same pain & frustration feel being required to --force my USB ports.
NOT A SOLUTION: 'Use Windows' Arduino, ESP32 xtensa, etc. dev experience is unparalleled under Linux especially with WSLG, no annoying C:\dir with spaces stupidity, please don't suggest I do my development in Windows!
NOT A SOLUTION: No I won't uninstall USBPCap, it's required for either my USB probes or Oscilloscope (which incidentally requires Windows)
Now to understand what the --force setting does, here is the CLI:
I'd appreciate examples of how anybody presently uses usbipd and/or known work-arounds for this issue. Obviously the --force gets it done, but it feels like using a nail when the task called for a screw.
I may try to submit an issue and/or patch to the winpcap/LibUSBpcap team, any answers which tell me how to do this without using the --force or removing the warning will definitely get the answer marked as solved. ;-)