Skip to content

Firmware: the A10 video encoder's firmware, from a kernelcache - #126

Merged
henrikklee merged 3 commits into
OrchardLinux:mainfrom
paulscalise1:ave2-firmware
Dec 2, 2026
Merged

henrikklee merged 3 commits into
OrchardLinux:mainfrom
paulscalise1:ave2-firmware

Conversation

@paulscalise1

@paulscalise1 paulscalise1 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A firmware recipe step, ave2-firmware-from-kernelcache@1, that takes the AVE2 video encoder firmware from AppleAVE2's __TEXT.__const. The A10 encoder driver (OrchardLinux/linux#94) loads that firmware, and OrchardLinux/orchard#447 adds the step to the A10 recipes.

What the step does

  • AppleAVE2's __TEXT.__const holds one ARM image per chip family. iOS 14.5 has two, "rhea" for the A10 and "cronus".
  • Each image starts with a vector table (a branch, then seven branches to themselves), has "FFW Application" at 0x40, and runs to the next image or to the section's end.
  • The recipe's hash picks the image, as it does for the A8 GPU firmware. The step takes no parameters.

The driver speaks the build in iOS 14's kernelcache. iOS 15 moved the firmware to Firmware/ave/ in the restore image and changed its command structures, so the recipes take iOS 14.5's kernelcache.

Testing

🤖 Generated with Claude Code

A recipe step, ave2-firmware-from-kernelcache@1, takes the AVE2 video
encoder firmware from AppleAVE2's __TEXT.__const. That section holds one
ARM image per chip family (iOS 14.5: "rhea" for the A10, and "cronus").
Each starts with a vector table, a branch and then seven branches to
themselves, has "FFW Application" at 0x40 and runs to the next image or
the section's end. The recipe's hash picks the image, as it does for
the A8 GPU firmware.

The A10 encoder driver speaks the build in iOS 14's kernelcache.
iOS 15 moved the firmware to Firmware/ave/ in the restore image and
changed its command structures, so recipes take iOS 14.5's kernelcache.

Tested with the iPhone 7 (D10) and iPad 6 (J71b) recipe entry: the step
makes apple/ave-t8010.bin from Apple's server with the recipe's hash,
and the encoder runs with it.

Assisted-by: LLM
Signed-off-by: Paul Scalise <paulscalise1@users.noreply.github.com>
@henrikklee
henrikklee merged commit b19ddaa 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