Mega (V2.0.0) OTA firmware updates on 1MB modules
Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er
Mega (V2.0.0) OTA firmware updates on 1MB modules
If you have uploaded the newer stock Mega ESP Easy firmware to 1MB modules like the ESP-01 or the Sonoff, you will no longer be able to use OTA because the firmware is a lot larger (533k) and there's not enough free space to hold a temp copy of a newer upload. You can use a workaround by uploading a smaller image and then upload a normal size image after that.
We have provided a very small sketch to use this workaround:
https://www.letscontrolit.com/wiki/inde ... g_firmware
Martinus
We have provided a very small sketch to use this workaround:
https://www.letscontrolit.com/wiki/inde ... g_firmware
Martinus
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
Where can I find this small sketch?
- grovkillen
- Normal user
- Posts: 2721
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
I was having major slowdown when I had an MQTT controller enabled. So I decided to update to a newer version.
I uploaded the small sketch, the upload said it completed successfully but the device dropped off my network.
I have power cycled the device (a sonoff SV) and it is not showing up on my router.
Has anyone experienced this? It is inside my gate motor so in a few days I will open it up and reflash it, but maybe before then anyone has any ideas what is wrong?
I uploaded the small sketch, the upload said it completed successfully but the device dropped off my network.
I have power cycled the device (a sonoff SV) and it is not showing up on my router.
Has anyone experienced this? It is inside my gate motor so in a few days I will open it up and reflash it, but maybe before then anyone has any ideas what is wrong?
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
Hi @grovkillen,
I flashed a sonoff(1m) with normal 1044 bin (716k) and a esp01 (puya) with dev puya 1024bin(785k) just using the normal flashESP8266, and it all seems to work normally. I can access both OTA to cnfig etc. Can you clarify if the special sketch is needed as both the files are over 533k and seems to be working fine with normal flasher?
Thanks,
Ken
I flashed a sonoff(1m) with normal 1044 bin (716k) and a esp01 (puya) with dev puya 1024bin(785k) just using the normal flashESP8266, and it all seems to work normally. I can access both OTA to cnfig etc. Can you clarify if the special sketch is needed as both the files are over 533k and seems to be working fine with normal flasher?
Thanks,
Ken
- grovkillen
- Normal user
- Posts: 2721
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
Current releases are too big for OTA (2 step procedure for 1Mb units). We need to rethink how to support those units. They need to be physically attached using cable and serial programming to be updated. Sorry for any inconveniences but hopefully we can think of something.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
Hi,
This is really just a minor inconvenience, there are possible lots more urgent things on your plate to get a stable release 2. Connecting a cable for firmware upgrade is not too much of a hassle, I think we are just getting a bit lazy...
Keep up the good work,
Cheers,
Ken
This is really just a minor inconvenience, there are possible lots more urgent things on your plate to get a stable release 2. Connecting a cable for firmware upgrade is not too much of a hassle, I think we are just getting a bit lazy...
Keep up the good work,
Cheers,
Ken
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
I hope a working OTA solution can be found, I have 38 ESP's, many are in difficult to access locations, and I have just discovered a possible DHT Humidity bug in the January Sketch I used
-
- Normal user
- Posts: 49
- Joined: 16 Feb 2017, 09:23
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
I also look forward to be able to update OTA my devices!
-
- Normal user
- Posts: 49
- Joined: 16 Feb 2017, 09:23
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
In the mean time: home can I make a custom build with only the plug-ins included I need?
- grovkillen
- Normal user
- Posts: 2721
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
I think we're beyond the point of OTA even with no plugins in the compilation. I might be wrong though.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
Please have a look at the file define_plugin_sets.h and PlatformIO.ini.
Those two make it clear how the different builds are made together.
It should be possible to perform OTA on 1 M modules, when using 2-step flash. But some changes have to be made.
- filesize of the config,dat file has to be reduced to something like 36k (rest is not used)
- Flash layout may have to be changed to 1M.64k (current is 1M.128k)
At least the last step will render existing installations invalid.
Those two make it clear how the different builds are made together.
It should be possible to perform OTA on 1 M modules, when using 2-step flash. But some changes have to be made.
- filesize of the config,dat file has to be reduced to something like 36k (rest is not used)
- Flash layout may have to be changed to 1M.64k (current is 1M.128k)
At least the last step will render existing installations invalid.
- Methuselah
- Normal user
- Posts: 45
- Joined: 04 Feb 2018, 01:39
- Location: Boston, MA
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
What would be helpful is a configure script, a-la linux's "configure" which automatically enables base functionality (based on the type of device the user specifies) and then prompts the user to add in optional modules for those features s/he is going to use. For example I do not use the MQTT functionality whatsoever and could easily eliminate that from a build.grovkillen wrote: ↑03 Aug 2018, 06:31Current releases are too big for OTA (2 step procedure for 1Mb units). We need to rethink how to support those units. They need to be physically attached using cable and serial programming to be updated. Sorry for any inconveniences but hopefully we can think of something.
Unfortunately, the size of this project is only going to grow, as more and more functionality is added in... eventually it will get to the point where the builds will be too big for the 1MB modules, and then a whole bunch of people will be orphaned.
N00b to the world of ESPEasy, but I've been programming since the days of punch cards and paper tape 

- grovkillen
- Normal user
- Posts: 2721
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
We have much in plan for the upcoming autumn and next year will be great. 1MB users are not going to be left in the dust.Methuselah wrote: ↑01 Sep 2018, 12:48What would be helpful is a configure script, a-la linux's "configure" which automatically enables base functionality (based on the type of device the user specifies) and then prompts the user to add in optional modules for those features s/he is going to use. For example I do not use the MQTT functionality whatsoever and could easily eliminate that from a build.grovkillen wrote: ↑03 Aug 2018, 06:31Current releases are too big for OTA (2 step procedure for 1Mb units). We need to rethink how to support those units. They need to be physically attached using cable and serial programming to be updated. Sorry for any inconveniences but hopefully we can think of something.
Unfortunately, the size of this project is only going to grow, as more and more functionality is added in... eventually it will get to the point where the builds will be too big for the 1MB modules, and then a whole bunch of people will be orphaned.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
I have try to update a sonoff basic (1m) like this :
- I have build my own firmware with a size of 580kb approximately
- I have uploaded it in the sonoff
- Now I can upload ESPEasyUploaderMega_1024 through OTA, the first step
- The sonoff reboot and I select the same custom firmware (580k)
But after the reboot the new firmware not start... The wiki say that we can upload max 604k, so I think my firmware is okay ?
Is someone have already use ESPEasyUploaderMega_1024 successfully ?
Thank you and have a good day!
- I have build my own firmware with a size of 580kb approximately
- I have uploaded it in the sonoff
- Now I can upload ESPEasyUploaderMega_1024 through OTA, the first step
- The sonoff reboot and I select the same custom firmware (580k)
But after the reboot the new firmware not start... The wiki say that we can upload max 604k, so I think my firmware is okay ?
Is someone have already use ESPEasyUploaderMega_1024 successfully ?
Thank you and have a good day!
Re: Mega (V2.0.0) OTA firmware updates on 1MB modules
Hi all
Very interested by this topic and by knowing how to build my custom lighter firmware for my Sonoff so that I will be able to update them as they will not be easily accessible in the coming weeks (they'll be used for my covers!)
Is there a tutorial somewhere in the web? Didn't fond anything yet.
Thank you for your help.
Very interested by this topic and by knowing how to build my custom lighter firmware for my Sonoff so that I will be able to update them as they will not be easily accessible in the coming weeks (they'll be used for my covers!)
Is there a tutorial somewhere in the web? Didn't fond anything yet.
Thank you for your help.
Who is online
Users browsing this forum: Mravko and 1 guest