-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Download corrupted for large flash images #594
Comments
I really don't think it makes much sense to host a replica of `esptool.py` in this repository. As nodemcu#594 showed once again it isn't efficient if bugs have to be fixed/PR'ed in two repositories.
@marcelstoer Do you have better idea how to download in Linux & MacOS, Espressif's tool only work under windows? |
@MarsTechHAN Sorry, I can't help you with this, it really isn't my area of expertise. |
@marcelstoer But...I do think before we fix this bug or find a better way, we should not delete the present methods...Because after it, most of the man will have no idea how to download bin in Linux or Mac OS. |
@MarsTechHAN I guess your comments refer primarily to my PR-in-the-making #595, right?
|
Well, but themadinventor seldom updates the esptool. |
I think that's a different issue. If it becomes a huge problem, the community can look into branching esptool into its own repository. But it still makes sense to manage that separately from nodemcu-firmware. |
If we'd follow @marcelstoer's proposal in #595 we could decide to pull in a submodule even from a different fork/branch. Eg the workaround in jkent's erase_fix branch works fine for me. ...and link back once the fix is merged to upstream. Don't know what the git experts think about this... |
@devsaurus @marcoskirsch @jiegec Even though I believe discussing in #595 would be better I also believe a reply is better than none 😉.
Depends on how you define "seldom". The last PR was merged a month ago. The more people use esptool the more people could potentially urge the @themadinventor to merge PRs more quickly.
Not that I would ever claim to be a Git expert...but that's exactly the point of referenced/linked repositories. We decide which version or fork to pull in - in the worst case even maintaining our own fork. |
Just a heads-up, esptool.py has an additional maintainer now (me!) and we've just (finally) merged the fix for this issue to https://github.com/themadinventor/esptool It's hard for one person to keep up with a popular project, but hopefully by sharing the work around esptool.py can continue to keep current. |
The original intention of this issue is closed now - esptool.py handles the download correctly. |
I was banging my head against this the last days while adding a new module until I found this: espressif/esptool#53
It seems that the ROM code for download contains an issue which leads to a corrupted flash contents once the image grows beyond flash address 0x70000. For details refer to https://cesanta.com/blog/esp8266-flash-erasing-issue.shtml
It happens with current themadinvetor/esptool as well as the embedded esptool here. Since dev branch exceeds this limit for the float version, we're already in trouble now (integer version is briefly below the threshold).
This issue can't be resolved without a fix or workaround in esptool and other flashers.
The text was updated successfully, but these errors were encountered: