im-tomu / fomu-hardware

Tomu FPGA (Fomu for short), a FPGA which fits inside your USB port!
Creative Commons Attribution Share Alike 4.0 International
211 stars 22 forks source link

Attach the fomu board on WSL 2 or Virtualbox virtual machine #24

Closed FelipeWcosta closed 1 year ago

FelipeWcosta commented 1 year ago

I am trying use the fomu PVT board version in a virtual machine. When I put it in USB port the Windows OS recognize it correctly, as you can see below:

Captura de tela 2023-06-13 154809

But, when I try to attach the board to virtual machine that occur:

Captura de tela 2023-06-13 155320

The warning is: Unknown USB Device (Device Descriptor Request Failed)

This erro appears in both VirtualBox and WSL 2. I updated the drivers using Zadig 2.8 and for attach the board on WSL 2 VM's I am using usbipd 3.0.0.

xobs commented 1 year ago

There were many improvements to the reset logic in the most recent version of the firmware. Older versions, such as 1.9.1, didn't properly handle the USB reset condition and behaved like that.

Would you mind updating to 2.0.4 and see if that doesn't improve things?

xobs commented 1 year ago

To update, load https://github.com/im-tomu/foboot/raw/master/releases/v2.0.4/pvt-updater-v2.0.4.dfu onto the Fomu using dfu-util

FelipeWcosta commented 1 year ago

Is there a specific command to do this? If yes, Which is it?

FelipeWcosta commented 1 year ago

Please, disregard my last comment. Update the firmware fixed the issue!

I'm closing this issue.