Repository navigation
Every iPhone 8 and 8 Plus touch firmware personality, picked by the unit - #480
Merged
Merged
Conversation
Preserve C1F5D,3 while adding separately named C1F5D,4 containers from the pinned public D20.mtprops. The coordinated converter and kernel changes supply calibration at the boot sequence request using the declared framing. Assisted-by: LLM Signed-off-by: MasadaIV <6883111+MasadaIV@users.noreply.github.com>
…unit's ADT D21.mtprops carries C1F5E,3 next to the C1F5E,4 the recipe built, as D20.mtprops carries C1F5D,4 next to C1F5D,3. Build C1F5E,3 for the D21 and D211 too (z2fw-from-mtprops@2, as for C1F5D,3), so each unit's controller gets the firmware its ADT hid-merge-personality names once the kernel loads <apple,firmware-prefix>-<personality>.bin. Describe that in the device data and the firmware variants section, and test that each personality has its output under the name the kernel builds and that the kernel's device tree names installed files. Assisted-by: LLM Signed-off-by: Henrik Klee <henrik@goat-code.com>
# Conflicts: # devices/d20/device.toml # devices/d201/device.toml
The kernel now loads <apple,firmware-prefix>-<personality>.bin on the iPhone 8 and 8 Plus, the firmware the unit's ADT names (linux#113). Assisted-by: LLM
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.
What users notice: an iPhone 8 or 8 Plus touchscreen works whichever firmware personality its unit's controller needs, not only the one the recipe used to build. The recipe installs every personality in the IPSW's mtprops under its own name, and the kernel (OrchardLinux/linux#113) loads the one the unit's ADT names.
This carries MasadaIV's #457 unchanged (C1F5D,4 for D20/D201 through
z2fw-from-mtprops@4, MasadaIV as author) and adds one commit:z2fw-from-mtprops@2, the step C1F5D,3 uses), next to the C1F5E,4 they already had.tests/test_source_z2_personality.py: one output per personality, named<prefix>-<personality>.bin. The kernel'sfirmware-nameandapple,firmware-prefixmust name installed files; this also passes against today's locked kernel, which has no prefix. A host-compiled run of the driver's name selection is skipped on kernels without it.Survey (every board whose recipe reads an mtprops, as pinned): only D20.mtprops (C1F5D,3/,4) and D21.mtprops (C1F5E,3/,4) carry more than one distinct firmware. N66 and N71 list C1F5C,1/,2 and C1F5B,1/,2, but each pair is byte-identical, and their ADT has no personality property. Every other board has one profile. N42 and P105 were not readable (compressed root DMG). The D22/D221 hidspi path already ships every personality.
Checked offline:
orchard fw build --type peripheralfor d21 and d211 gives C1F5E,3d5b49baa…c8ee307, and C1F5E,4 is unchanged (89d0874e…). C1F5D,3 is unchanged (c6f3b449…). C1F5D,4 from tools#130's converter, run on the pinned D20.mtprops, reproduces #457'seaefa63f740b305789f7319710b8d4113880dc0e07c464d0897a3072416357a0. The released orchard cannot build@4yet; it reports the two outputs as unsupported. Related tests pass (121), andtools/catalog/generate matrix --checkis clean.Needs a device: C1F5D,4 on a D201/D20 unit through this public recipe, and C1F5E,3 on an 8 Plus unit with that personality (none known yet).
Merge order: 1. OrchardLinux/tools#130, then a tools release that has
z2fw-from-mtprops@4. 2. OrchardLinux/linux#113. 3. this PR, last: before merging, move the kernel lock to linux#113's merge commit withtools/kernel-tree/takein this branch. This supersedes #457.