Skip to content

devices/n42: Ship the camera ISP firmware - #547

Merged
henrikklee merged 1 commit into
OrchardLinux:mainfrom
brkosebay:submit/n42-camera-fw
Dec 5, 2026
Merged

henrikklee merged 1 commit into
OrchardLinux:mainfrom
brkosebay:submit/n42-camera-fw

Conversation

@brkosebay

@brkosebay brkosebay commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Ship the iPhone 5 (N42) camera ISP firmware. Depends on OrchardLinux/tools#169 (h4isp-from-services@1).

  • devices/n42/firmware.json adds the armv7s dyld shared cache as an input, by root-filesystem path with its pinned SHA-256. From it, the recipe produces lib/firmware/apple/h4isp-firmware.bin and the 31 h4isp-setfile-<module>.bin set-files. Every output is pinned.
  • docs/firmware-recipes.md records where the firmware comes from and adds the new step.

The kernel side is OrchardLinux/linux#66 (apple-h4isp, A6 variant). Without these files the cameras don't stream on an installed system.

Testing:

  • The firmware-recipe, legacy-firmware and catalog tests: 77 passed.
  • With the tools step on the real 12H321 cache, all 32 outputs match byte for byte the files the cameras stream with on Linux.
  • On the iPhone 5 with these files, v4l2-ctl --stream-mmap streams both cameras at each mode's rated frame rate (rear: 30 fps up to 3072x1728, 60 fps at 1472x816, 19.6 fps at 3264x2448; front: 30 fps), with exposure_dynamic_framerate=0. With the default (1, as on iOS), the exposure may halve the rate in low light.

🤖 Generated with Claude Code

Take H4ISPFIRMWARE and the 31 sensor module set-files from the armv7s
H4ISPServices image in the 12H321 system volume. Pin the cache and
every file installed for the A6 camera driver.

Assisted-by: LLM
Signed-off-by: Berkay Kösebay <brkosebay@users.noreply.github.com>
@henrikklee
henrikklee merged commit 6c30d3f into OrchardLinux:main Dec 5, 2026
11 checks passed
@henrikklee

Copy link
Copy Markdown
Contributor

Merged, thank you @brkosebay! With tools 0.3.17 out (it carries h4isp-from-services@1 from OrchardLinux/tools#169), the iPhone 5 now gets its camera ISP firmware and all 31 set-files from iOS 8.4.1, each pinned by hash, with no Apple bytes in the repo.

What changed on the branch: nothing. I re-checked it against today's main and the released tools: it merges cleanly, CI is green, and the recipe docs list the new step and where the files come from.

Follow-ups:

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