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

compress firmware bin with gzip for ota #467

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

sVnsation
Copy link
Contributor

Unfortunately, more than 50% is occupied in the version with 1M Flash:
Flash: [===== ] 50.6% (used 484985 bytes from 958448 bytes)
However, OTA is still possible thanks to the gzip compression of the firmware.
This PR also generates gzip compressed .bin.gz files for firmware ota.

The workflow runs successfully and generates .bin.gz files
example: https://github.com/sVnsation/ahoy/actions

allows smaller update files for ota update
@sVnsation
Copy link
Contributor Author

Additional Information about gzip ota:
"ESP8266 Arduino framework v2.7.0 default bootloader added support for gzipped OTA updates here: esp8266/Arduino#6820
The compressed firmware image is then stored by the OTA backend on the flash. When the ESP is rebooted to apply the new firmware, the bootloader decompresses the image and writes it to the correct flash location."
Source: esphome/feature-requests#819

@lumapu lumapu merged commit 34d6791 into lumapu:development03 Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants