Repository navigation
A9 iPhones: start the AOP (v4 boot args); n66 motion sensors with measured mount matrices - #219
Merged
Merged
Conversation
This was referenced Nov 23, 2026
drivers/soc-apple/0035 finds the boot arguments in version 4 RTKit image headers as well as version 5. aopfw-s8000aop is an iOS 15 image with a version 4 header; without this the driver reads an empty boot argument block and the AOP that devices/t8010/0040 enables never starts. devices/t8010/0041 adds the accelerometer matrix diag(1,1,-1) and the gyroscope identity measured on an N66 (six poses, RAM boot 2026-11-23) to the shared s800x-iphone.dtsi. Assisted-by: LLM
RAM boot 2026-11-23: the AOP reports ready, the accel and gyro come up as iio devices, and six held poses fit diag(1,1,-1) with every orientation right under iio-sensor-proxy. The gyro rates follow the accel rotation with the identity matrix; its x sign is weakly fixed and the scale is not checked. The other A9 iPhones share the matrices and stay untested. Assisted-by: LLM
henrikklee
added a commit
that referenced
this pull request
Nov 23, 2026
…ers; CHANGELOG #219 refused AOP images whose header lacks the magic or has a version other than 4 or 5. Only version 4 needs the new location; every other image now keeps the location the driver used before, so the iPads whose AOP starts today (iPad 7, iPad 6 and others on iPadOS 16 and 17) cannot lose it to a header version this change did not look at. Assisted-by: LLM
henrikklee
added a commit
that referenced
this pull request
Nov 23, 2026
#219's AOP patch already takes soc-apple 0035. Assisted-by: LLM
Contributor
|
Thanks! This is on main now: the A9 iPhones' AOP starts with the iOS 15 firmware, and the mount matrices are in the shared iPhone file. One change on top: the driver uses the version 4 location only when the header says version 4, and keeps the old location for every other image instead of refusing it. That way the iPads whose AOP starts today can't lose it to a header version this change didn't check. The iPhone 7 runs iOS 15 too and may benefit; it stays untested. One request: your kernel patches here carry |
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.
The AOP on the A9 iPhones now starts, and on the n66 (iPhone 6s Plus, Samsung) the accelerometer and gyroscope work with measured mount matrices. This builds on 12bcfd3, which enabled the AOP and added the aopfw-s8000aop recipe.
Driver fix: version-4 boot arguments (
drivers/soc-apple/0035)Without this fix, the AOP does not start with the iOS 15 firmware.
aop-s8000.binhas zeros at 0x48/0x4c, so the current driver reads an empty boot-argument block.unexpected boot arguments in apple/aop-s8000.bin: -2and never starts the AOP.Mount matrices (
devices/t8010/0041, after 12bcfd3's 0040)Measured on an n66 in six held poses: flat face up, flat face down, portrait, upside down, and both landscapes.
s800x-iphone.dtsiand cover all six A9 iPhones.Status
Tests
audit-patches --device n66passes.🤖 Generated with Claude Code