Repository navigation
Firmware: the A10 video encoder's firmware, from a kernelcache - #126
Merged
Merged
Conversation
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>
This was referenced Dec 2, 2026
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.
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
__TEXT.__constholds one ARM image per chip family. iOS 14.5 has two, "rhea" for the A10 and "cronus".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
cargo test -p orchard-formats -p orchard-boards: the new tests pass with the rest. They cover two images back to back, data that only looks like one, and the step's parameters.bin/orchard fw build d10 --type peripheral, and the same for j71b, on a checkout of A10 boards: install the video encoder's firmware orchard#447: both makeave-t8010.binfrom Apple's server with the recipe's hash, and the encoder runs with that file (A10: the H.264 and HEVC encoder linux#94).🤖 Generated with Claude Code