GuillaumeGomez / sysinfo

Cross-platform library to fetch system information
MIT License
2.02k stars 302 forks source link

Can't detect RPI-RP2 pico disk when in WSL2.0 #707

Open HughGrant opened 2 years ago

HughGrant commented 2 years ago

My rust dev env is set up in WSL, I plug my rp pi pico and windows surely detects it.

However, the elf2uf2 depends on sysinfo to dectect the pico uf2 disk. This is fine if you set up the rust env under windows, but you know it's much more easier to set it up in linux, so I choose WSL. I know this could be a issue due to the WSL, not this crate, just wanna mention here.

I guess I'll have to manually build the uf2 and flush it by myself for now.

GuillaumeGomez commented 2 years ago

The problem with such specific issues is that I can't test by myself. :-/

The best I can recommend is to try to find out which syscall needs to be updated in sysinfo in order for you to have the missing information.

mlsvrts commented 2 years ago

@HughGrant By default, WSL does not have access to windows USB devices -- so that may be your issue. Historically, it hasn't been possible to 'pass-through' USB to WSL like a standard VM, but it seems like this may now be possible: https://docs.microsoft.com/en-us/windows/wsl/connect-usb

HughGrant commented 2 years ago

@mlsvrts thanks a lot for mentioning this. Such a hassle to get both world working together, I got Manjaro dual boot with win11 on my laptop, guess I shouldn't ditch my MBP for this windows gaming laptop, windows is really bad at some aspects, especially for programming.