-
Notifications
You must be signed in to change notification settings - Fork 295
Flashing G2core with wsl
If you have not already done so you need to install WSL2 for Windows.
1. Open Command Prompt as admin and run “wsl –install.”
2. Update the WSL2 kernel, run the “wsl –update” command.
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
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
Getting Started Pages
- Home
- What is g2core?
- Who uses g2core?
- Jerk-Controlled Motion
- Getting Started with g2core
- Connecting to g2core
- Configuring g2core
- Flashing g2core
- Troubleshooting
Reference Pages
- Gcodes
- Mcodes
- Text Mode
- JSON Communications
- GPIO Digital IO
- Alarms & Exceptions
- Power Management
- Coordinate Systems
- Status Reports
- Status Codes
- G2 Communications
- Tool Offsets and Selection
- Probing
- Feedhold, Resume, Job Kill
- Marlin Compatibility
- 9 Axis UVW Operation
- gQuintic Specs
Discussion Topics
- Roadmap
- GPIO for 1.X Releases
- Toolheads
- Raster Streaming Prototol
- g2core REST Interface
- Gcode Parsing
- G2 3DP Dialect
- Consensus Gcode
- Digital DRO
- Overview of Motion Processing
Developer Pages
- Development & Contribution
- Branching and Release - DRAFT
- Getting Started with g2core Development
- Project Structure & Motate
- Compiling G2
- OSX w/Xcode
- OSX/Linux Command Line
- Windows10 w/AtmelStudio7
- Debugging G2 on OSX
- Board and Machine Profiles
- Arduino Due Pinout
- Arduino DUE External Interfaces
- Diagnostics
- Debugging w/Motate Pins
- Development Troubleshooting
- g2core Communications
- Git Procedures
- Windows 10 / VMware 8 Issues
- Dual Endpoint USB Internals
- G2core License
- VSCode Setup
- Compatibility Axioms
- Wiki History