Skip to content

firmware: extract H17 camera tuning from current daemon locations - #71

Closed
RyanTheTide wants to merge 1 commit into
mainfrom
fix/camera-h17-tuning
Closed

RyanTheTide wants to merge 1 commit into
mainfrom
fix/camera-h17-tuning

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

The shared ISP driver requests apple/isp_2224_01XX.dat for IMX958, but the installer extractors did not register it. The native vendor collector also looked only under usr/sbin, while the current H16 camera daemon lives under usr/libexec. Add the J616s setfile to both extractors, add J700's H17 1925 setfile to the legacy extractor, and collect both h13/h16 daemons from either location. Preserve flattened daemon inputs in the device-local fallback archive for later firmware updates.

Copy only the source length recorded by the public driver and zero alignment padding, including J700's short 1925 file. Reject conflicting sources. All new test data is synthetic; no vendor binary, plist or per-module calibration bytes are added. Board/source admission stays unchanged.

The existing factory archive already preserves iCCl records on the individual machine. This PR does not implement their unknown firmware upload ABI. Kernel NV12 already sends CNR/MBNR/temporal-filter enable commands; its minimal P010 path still skips explicit tuning/NR. These remaining interface gaps are documented.

Companion kernel failure handling and NR audit: aurora-silicon/linux#668

Validation:

  • Python tests: 14 pass, including H17 extraction, truncation, conflicting sources, package round-trip and flattened fallback input handling; changed Python files compile.
  • Portable installer source/script/packaging checks: bash macOS/test/all passes.
  • Swift strict lint across Sources/Tests: clean.
  • AuroraAppleInstallerTrustCore builds in debug and release with Swift 6.3.3 on arm64 macOS. Release emits existing deprecation/defer warnings outside the changed logic.
  • Standalone Swift converter harness passes all 41 locked vectors plus both new H17 padding/truncation cases in debug and release.
  • Full XCTest execution is pending: this host has only Command Line Tools, which lack XCTest; XcodeBuildMCP is unavailable. The native collection-path integration test is included for an Xcode-equipped runner.
  • Camera A/B captures and physical installation qualification remain with the lead. Draft until those checks are complete.

Add the IMX958 2224 setfile and the H17 IMX558 1925 setfile to the
legacy extractor, and register 2224 in the native converter. Search both
usr/sbin and usr/libexec for h13/h16 camera daemons and retain their
flattened fallback inputs for device-local firmware updates.

Copy only each setfile's published source length, then zero its alignment
padding. This avoids reading the object after J700's short 1925 file.
Reject conflicting inputs and cover extraction, truncation, padding and
archive interoperability with synthetic data. Document that the existing
raw factory archive preserves iCCl but the ISP upload ABI remains unknown.

Setfile identities and lengths are public driver interoperability facts;
no vendor or per-module calibration bytes are included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Rebased into #101 (merged), together with the macOS 27 native tuning reader. Proven on the J616s: isp_2224_01XX.dat extracted from appleh16camerad and the camera streams.

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.

1 participant