Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
no usb devices; lsusb returns error code 1; /sys/bus/usb/devices: No such file or directory #3745
Microsoft Windows [Version 10.0.17763.194]
I'm trying to list USB devices from within WSL; No devices are listed, despite being visible in Windows.
This used to work as of a few months ago (I believe prior to my Windows 1809 update). I had used the WSL to successfully program the tinyFPGA as noted here.
All the latest Windows updates have been applied; Also ran
Note the tinyFPGA usb device is otherwise visible and operational from a CMD/DOS prompt:
I'm also able to see and use other COM port devices in Windows with putty, just not in WSL. The problem appears to be isolated to WSL.
Further, I've tried to:
The lsusb command should not return an error; instead a list of usb devices should be displayed
I do not believe this a WSL launch problem.
See our contributing instructions for assistance.
thanks for the prompt reply. respectfully, I don't think this is a duplicate of the other issues regarding specialized USB hardware (such as my Olimex JTAG debugger in #2185) I'm also not getting the same
I believe this used to work for me, and in fact - appears to work for others as noted here.
Note that no USB devices are now working in WSL for me. Not even basic serial COM ports.
From your strace:
I wouldn't know about that. Either way those are not USB devices they are RS232 (
If your problem is with
@therealkenc well, you are (of course) quite right; apparently the tinyFPGA board can use either serial or USB drivers - and I was chasing the wrong problem assuming it was the USB issues. In any case - thanks for your prompt replies.
I believe there's still something weird with the serial drivers in WSL.
Explicitly naming the serial port to program the board does work:
Also, sending command to exit bootloader to the device with
Other command that should work (and do in DOS prompt), do not work in WSL:
I'm still fairly certain that this previously worked - that all the commands worked without needed to explicitly name the serial port. But until I have more concrete evidence, I will hold off on opening a new WSL GitHub issue.