Repository navigation
firmware: add request-ordered HBPP calibration recipes - #130
Merged
henrikklee merged 2 commits intoDec 2, 2026
Merged
Conversation
Configure the declared framing before upload and emit boot-time calibration references at RequestCalibration. Preserve existing recipe versions and reject invalid framing or request sequences. Assisted-by: LLM Signed-off-by: MasadaIV <6883111+MasadaIV@users.noreply.github.com>
This was referenced Dec 2, 2026
henrikklee
marked this pull request as ready for review
December 2, 2026 21:44
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.
C1F5D,4 requests calibration after its setup writes. The existing
z2fw-from-mtprops@2converter emits calibration before that boot sequence and does not declare the HBPP framing required by this personality.Add versioned
z2fw-from-mtprops@4: emit configuration before INIT, validate and preserve the preconstructed firmware packets, and insert calibration provider references at the sole RequestCalibration action. Reject invalid framing and missing/duplicate requests. Existing recipe versions retain their output and ordering.Validation: the formats and boards Cargo suites pass on this branch. Synthetic cases cover 0x103/0x104 framing, ordering, provider references and malformed input. All 12 public peripheral outputs for each of D20 and D201 were generated through Orchard; C1F5D,3 remains byte-identical. The new C1F5D,4 container matches all 12 non-calibration records of the working private image; its four other records contain provider references instead of private calibration.
Keep draft: the new public/dynamic-calibration path has not been boot-tested. Companion Linux and Orchard PRs must agree on CONFIG validity bit 11 / word 10 and on the command ordering. No firmware binaries or unit calibration are included.
Qualified earlier hardware report: OrchardLinux/orchard#456.
Companion changes: OrchardLinux/linux#101 and OrchardLinux/orchard#457.