Skip to content

Further transparent integration of compressed updates? #7693

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

Open
sticilface opened this issue Nov 6, 2020 · 3 comments
Open

Further transparent integration of compressed updates? #7693

sticilface opened this issue Nov 6, 2020 · 3 comments

Comments

@sticilface
Copy link
Contributor

sticilface commented Nov 6, 2020

This is to discuss expanding compressed OTA binaries.
#6614 (comment)

My understanding so far is that .bin files must be compressed on the command line, and then signed manually (if so inclined), before being uploaded to the sketch. The sketch must have defined ATOMIC_FS_UPDATE for the bootloader to write the compressed FS (i'm curious how this works for say FS sizes of 3Mb which when compressed gives a file greater than max OTA size (which for 3Mb FS on a 4Mb flash is 512Kb).

I would like to propose.

  • A mechanism to report compression functionality in the boot loader (ie a #DEFINE)
  • A mechanism whereby the OTA updater class can report back to espota.py that it supports compression
  • espota.py can then send compressed binaries instead.

advantages:

  • no user input required, fully transparent, uploads will be much faster for everyone without the user having to do anything at all.

disadvantages

  • possible extra handshake during OTA

Any thoughts?

@d-a-v
Copy link
Collaborator

d-a-v commented Dec 30, 2020

I would like to propose.

Do you already have something to test ?

@sticilface
Copy link
Contributor Author

Sorry for the delay. I am afraid I do not have any work to contribute. I have no python skills! More importantly I'm currently fairly occupied with the second wave here in the Uk as an icu dr!

@d-a-v
Copy link
Collaborator

d-a-v commented Jan 12, 2021

no user input required, fully transparent, uploads will be much faster for everyone without the user having to do anything at all.

That's a fair request

I'm currently fairly occupied with the second wave here in the Uk as an icu dr!

!! That's good to know.
I don't really know what to wish you, but do take the best from it if that can help.

@d-a-v d-a-v self-assigned this Jan 12, 2021
@d-a-v d-a-v added this to the 3.0.0 milestone Jan 12, 2021
@d-a-v d-a-v modified the milestones: 3.0.0, 3.0.1 Mar 31, 2021
@d-a-v d-a-v modified the milestones: 3.0.1, 3.1 Jun 16, 2021
@d-a-v d-a-v modified the milestones: 3.1, 4.0.0 Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants