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

Flashing from with WSL is also possible #135

Open
lure23 opened this issue Jan 2, 2024 · 4 comments
Open

Flashing from with WSL is also possible #135

lure23 opened this issue Jan 2, 2024 · 4 comments

Comments

@lure23
Copy link
Contributor

lure23 commented Jan 2, 2024

It's not much more troublesome than flashing from Windows.

  • Both need the CP210x driver to be installed
  • Instead of flashing tools, the usbip-win USB/IP server needs to be installed

WSL has usbip within it, and the two are intended to work together. I would add a mention about this to the "Troubleshooting" section:

-build inside WSL and only flash the compiled MCU ELF file from outside of WSL.
+build inside WSL and only flash the compiled MCU ELF file from outside of WSL. A third is to use USB/IP to show the development board within WSL itself, and flash it from there <sub>[ESP32-WSL](https://github.com/lure23/ESP32-WSL)</sub>. Pick your poison.

Should I send this as a PR? Is it too much to have the repo link included?

@SergioGasquez
Copy link
Member

Maybe we could add a note saying that it's possible, but I don't think we should cover it in too much detail, maybe just add the note with a link.

@lure23
Copy link
Contributor Author

lure23 commented Jan 4, 2024

Then should I just proceed and file a PR with the diff above?

On details - absolutely not. There are already a bit too many different ways to flash a board and it's kinda confusing. But I think for WSL users being able to flash from within that environment is the smoothest way, and worth mentioning.

@lure23 lure23 closed this as completed Jan 4, 2024
@lure23 lure23 reopened this Jan 4, 2024
@SergioGasquez
Copy link
Member

@lure23
Copy link
Contributor Author

lure23 commented Jan 25, 2024

That blog post shows two GUI's to control the USB/IP.

Hopefully they help the remaining Windows devs who prefer something graphical over using the commandline

I did not know such exist - but... I don't see that as being very essential. The auto-attach feature was mentioned, and that is potentially useful. Haven't used that one, either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants