- Sun May 24, 2015 2:36 pm
#18333
Sashpi wrote:Great work tve. This is exactly what I've been looking for although my journey on the OTA part has only just started.
I need to further dive into the work you already did.
Did anybody already manage to do the OTA upgrade for files of >512KB size? The flash locations change at that point and I'm not quite sure how this impacts the process and how the bootloader knows where to load user2.bin from.
Thanks for the kind words. I don't have a module with >512KB, but it should be pretty trivial to make the changes. See Espressif's 99C-ESP8266__OTA_Upgrade__EN_v1.5.pdf document. You will have to initially flash the blank.bin higher up (bootloader and user1.bin don't move).
You need to change the `build/eagle.esphttpd1.v6.ld` and following Makefile build targets to use
the 1024 or 2048 scripts from the SDK's ld directory (see the 1.1.0 SDK for the 2048 size).
Finally you need to modify the flashable size from 236KB to the right number in the Makefile at
https://github.com/jeelabs/esp-link/blo ... kefile#L59 (496KB with a 1MB flash?).
Hope this helps (yes, I could abstract this a bit better now that I actually understand the stuff. Please see the end of the updated README.md for details on how the flash layout works.