Skip to content

Every iPhone 8 and 8 Plus touch firmware personality, picked by the unit - #480

Merged
henrikklee merged 4 commits into
mainfrom
z2fw-personality
Dec 2, 2026
Merged

henrikklee merged 4 commits into
mainfrom
z2fw-personality

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

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:

  • C1F5E,3 for the D21 and D211 (z2fw-from-mtprops@2, the step C1F5D,3 uses), next to the C1F5E,4 they already had.
  • Device data for d20/d201/d21/d211, plus regenerated pages, describe the selection by personality. docs/firmware-recipes.md "Firmware variants" lists the iPhone 8 touchscreens.
  • New tests/test_source_z2_personality.py: one output per personality, named <prefix>-<personality>.bin. The kernel's firmware-name and apple,firmware-prefix must 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 peripheral for d21 and d211 gives C1F5E,3 d5b49baa…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's eaefa63f740b305789f7319710b8d4113880dc0e07c464d0897a3072416357a0. The released orchard cannot build @4 yet; it reports the two outputs as unsupported. Related tests pass (121), and tools/catalog/generate matrix --check is 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 with tools/kernel-tree/take in this branch. This supersedes #457.

MasadaIV and others added 2 commits December 3, 2026 05:31
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
@henrikklee
henrikklee merged commit 159fd30 into main Dec 2, 2026
12 checks passed
@henrikklee
henrikklee deleted the z2fw-personality branch December 2, 2026 22:05
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