Repository navigation
formats: Extract the H4 ISP firmware and set-files for the iPhone 5 cameras - #169
Merged
Merged
Conversation
…ameras Read the two raw sections of H4ISPServices in the armv7s dyld cache. gunzip@1 expects gzip input. isp-setfiles-from-dyld-cache@1 interprets the ARM64 H6ISP selector and cannot read these H4 sections. The set-files are named by the iOS module choice used by the A6 variant of apple-h4isp. Keep the two sections in memory so all 32 outputs share one cache read. Assisted-by: LLM Signed-off-by: Berkay Kösebay <brkosebay@users.noreply.github.com>
henrikklee
force-pushed
the
submit/n42-h4isp
branch
from
December 4, 2026 23:53
375b23c to
a37f1e9
Compare
Contributor
|
Merged, thank you @brkosebay! Reading the H4 ISP firmware and all 31 set-files straight out of iOS 8.4.1's armv7s cache, matched byte for byte against what the iPhone 5 cameras stream with on Linux, is a great result, and the synthetic test cache keeps Apple bytes out of the repo. What changed on the branch: I rebased it onto main after #155 (Jeroen's A9 set-file step) landed, since both added a step to the same plan. The resolution keeps both steps side by side: the plan now carries both shared readers, and yours reads the cache with the existing dyld-cache size limit (1 GiB) instead of its own 512 MiB literal. Your commit and authorship are unchanged otherwise. Next steps:
|
Merged
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.
Add
h4isp-from-services@1, which extracts the iPhone 5 (N42) camera ISP firmware and its sensor-module set-files fromH4ISPServicesin the iOS 8.4.1 armv7s dyld shared cache.module, the step returns theH4ISPFIRMWAREsection (h4isp-firmware.bin).module(e.g.8111_01XX), it returns that set-file fromH4ISPSETFILEand checks its header and size.Neither existing step fits:
gunzip@1expects gzip input, andisp-setfiles-from-dyld-cache@1(#155) reads the arm64 H6 ISP selector, not these H4 sections. The set-file names follow the module choice iOS makes, which the A6 variant of the kernel'sapple-h4ispdriver also uses (OrchardLinux/linux#66).The test in
crates/formats/tests/steps.rsuses a synthetic cache, so the repo contains no Apple bytes.Testing:
cargo test -p orchard-formats -p orchard-boards --offline: 266 passed, 1 ignored.The device recipe that uses this step is in OrchardLinux/orchard (linked below).
🤖 Generated with Claude Code