Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated hint regards WSL+USB #22737

Closed
pustekuchen91 opened this issue Dec 23, 2023 · 4 comments
Closed

Outdated hint regards WSL+USB #22737

pustekuchen91 opened this issue Dec 23, 2023 · 4 comments
Labels
help wanted question stale Issues or pull requests that have become inactive without resolution.

Comments

@pustekuchen91
Copy link

pustekuchen91 commented Dec 23, 2023

This hint is actually not correct.
https://github.com/qmk/qmk_firmware/blob/master/util/qmk_install.sh#L48C3-L48C4

Actually its possible to route a usb device into the wsl (windows 11 + WSL2 required)
https://learn.microsoft.com/en-us/windows/wsl/connect-usb

Example to mount for STM32 Bootloader:

usbipd list

1-8 0483:df11 STM32 BOOTLOADER Shared

usbipd attach -w -i 0483:df11 --auto-attach

Needed adjustments

Check for requirements instead of using powershell
if 'microsoft' in platform.uname().release.lower():

@pustekuchen91
Copy link
Author

Here is a proof that the firmware can be flashed in a devcontainer + WSL

vscode ➜ /workspaces/qmk_firmware (add-dev-container) $ qmk flash keychron_q6_iso_encoder_keychron.bin
Flashing binary firmware...
Please reset your keyboard into bootloader mode now!
Press Ctrl-C to exit.

dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08000000, size = 34484
Download [=========================] 100% 34484 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state

@drashna
Copy link
Member

drashna commented Feb 7, 2024

Windows 11 (Build 22000 or later)

Copy link

github-actions bot commented May 8, 2024

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

@github-actions github-actions bot added the stale Issues or pull requests that have become inactive without resolution. label May 8, 2024
Copy link

github-actions bot commented Jun 7, 2024

This issue has been automatically closed because it has not had activity in the last 30 days. If this issue is still valid, re-open the issue and let us know.
// [stale-action-closed]

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted question stale Issues or pull requests that have become inactive without resolution.
Projects
None yet
Development

No branches or pull requests

2 participants