Skip to content

Flashing G2core with wsl

Justin Clift edited this page Mar 12, 2023 · 4 revisions

If you have not already done so you need to install WSL2 for Windows.

To install WSL2 on Windows 10

1.  Open Command Prompt as admin and run “wsl –install.”
2.  Update the WSL2 kernel, run the “wsl –update” command.

Installing usbipd-win

WSL 2 dropped USB support. So you need to install usbipid-win to attach g2 to WSL. This is not complicated.

There is an execellent post on how to do this here: https://devblogs.microsoft.com/commandline/connecting-usb-devices-to-wsl/#attaching-a-device

Attaching to WSL

Once you have WSL2 installed and usbipd you can then attach your g2 board to WSL. Just as you read in the link above attach your device. Now in Ubuntu (wsl) your device will show up as:

/dev/ttyACM0

From within Ubuntu, there is a script in:

g2/g2core/utils/enter_bootloader.sh

You can execute this and follow the prompt. This will place your board into bootloader mode where it can be flashed.

NOTE: Arduino DUE users If you have a Arduino Due board you do not need to do this step. You need to attach the USB port to the programming port. You will need to ensure you are attached via usbipd again. usbip

Clone this wiki locally