-
Notifications
You must be signed in to change notification settings - Fork 2k
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
esptool.py: use upstream version, switch to python3 #14033
Conversation
|
I don't think that we will be able to support ESP32-S because it requires a much newer ESP-IDF version, I guess 4.1. We still use version 3.1 and it would not be easy to port the current RIOT implementation for ESP32 to this new ESP-IDF version. The reason is, that the RIOT port for ESP32 can't use the FreeRTOS based ESP-IDF. Rather it is uses a mixture of vendor code extracted from the ESP-IDF and changed vendor code to make it working with RIOT. I guess that a change from 3.1 to 4.1 would require to reimplement large parts of the RIOT port for ESP32 😟 I have tried such a version upgrade for the ESP8266. I have been working on it for 4 months and it is still not finished. So for now I would prefer to leave the ESP32 port as it is and continue using ESP-IDF version 3.1. In this respect, support for the ESP32-S is not a problem. |
|
No pressure 😉 In the first version of this PR I just replaced I then started to wonder why we keep a copy of So I replaced it with a pkg like it's done with other tools that have an upstream. |
Use the upstream version instead of maintaining our own fork. Also explicitely use Python3.
f5b142d
to
e58145f
Compare
Sorry for the delay. I was completely busy in last three months and starting resume my work on RIOT now. Our While our RIOT/dist/tools/esptool/esptool.py Lines 2343 to 2350 in ef4835a
That is, the upstream version will not work for ESP8266 😟 |
Huh that's weird - I would have expected the upstream to version to support everything. |
Indeed. That is what someone would expect, especially if the same guys who are developing
I don't think so. I have tried to use the upstream version of RIOT/cpu/esp8266/Makefile.include Line 17 in 028c0d4
That is, the bootloader expects another magic byte. Using Finally, we should keep our own version as long as ESP8266_RTOS_SDK also uses its own version. Therefore we should close this PR in favor of PR #14392. |
Contribution description
Instead of maintaining our own fork of
esptool.py
, switch to the upstream version. (Also includes support for ESP32-S2 now)But patch it to use Python3.
Testing procedure
esp* can still be flashed.
Issues/PRs references
I would suddenly get this error espressif/esptool#350 after upgrading to Ubuntu 20.04
Using Python3 fixed it.