Skip to content

firmware: add request-ordered HBPP calibration recipes - #130

Merged
henrikklee merged 2 commits into
OrchardLinux:mainfrom
MasadaIV:codex/c1f5d-calibration-review
Dec 2, 2026
Merged

henrikklee merged 2 commits into
OrchardLinux:mainfrom
MasadaIV:codex/c1f5d-calibration-review

Conversation

@MasadaIV

@MasadaIV MasadaIV commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

C1F5D,4 requests calibration after its setup writes. The existing z2fw-from-mtprops@2 converter 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.

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>
@henrikklee
henrikklee marked this pull request as ready for review December 2, 2026 21:44
@henrikklee
henrikklee merged commit ecac871 into OrchardLinux:main Dec 2, 2026
11 checks passed
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.

2 participants