Enable chunk based OTA updates #1918
Open
MattCatz wants to merge 2 commits into
Open
Conversation
Copilot AI
added a commit
to Amiga500/Onion
that referenced
this pull request
Mar 18, 2026
Add desync submodule for content-addressable chunking. Update Makefile with desync build targets, 7z deterministic archive flags, and chunk generation target. Update OTA update script with delta download support via --chunk flag. Update install.sh with promote_initial_seed function. Update tagged-release workflow to build desync and include .caidx artifact. Co-authored-by: Amiga500 <16525337+Amiga500@users.noreply.github.com>
Amiga500
added a commit
to Amiga500/Onion
that referenced
this pull request
Mar 18, 2026
Integrate chunk-based OTA updates via desync (OnionUI#1918)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull in the Go project Desync. This allows us to split release files into chunks. Then OTA upgrades only need to get the new chunks between release. This saves a bit of time on network transfers depending on network conditions and starting version.
The desync binary is on the large side but is a statically linked executable. (no need to worry about compiling and linking dependencies).
Chunking enables upgrades from any version without requiring per-version deltas. A traditional delta system would need to generate and store a delta for every possible source/target pair; with chunking, unchanged data is reused regardless of the starting version.
This change-set does make OnionOS hold on to the old zip files. This is needed to seed the OTA download and consumes an extra 415 MB on the SD card depending on the release.
A few rough edges with this PR:
I ported my changes back to some older releases to compare overlap. Below shows the number of unique chunks between each release.
I probably should have purposed this on the discord first but it ended up being a much smaller initial PR than I though it was going to be. Let me know what needs rework.