Skip to content

aurora-sep: read the fingerprint firmware-name as a list - #50

Merged
RyanTheTide merged 1 commit into
mainfrom
sep-firmware-name-list
Oct 30, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
sep-firmware-name-list

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

The J616s fingerprint node names two files, "apple/mesacal-j616s.bin\0apple/msrk-j616s.bin\0". firmware_name() in prepare-sep-calibration only stripped the trailing NUL, so the path check saw the embedded NUL and the second entry and refused it. The helper logged "unsafe fingerprint firmware name" on every boot and a fresh J616s install got no calibration.

The helper now splits the property on NUL, checks every entry against the same apple/*.bin pattern, and takes the entry whose name starts with mesa (the calibration), or the first entry when none does. Nodes with one name (Neo, M1, M2) and nodes without the property resolve as before.

Tested

  • tests/test_sep_preparation.py gains a case with the J616s bytes in both orders, a list without a mesa entry, a list with one unsafe entry, an empty value, and the default when the property is missing. 12 tests pass; the new case fails on the old helper.
  • On the J616s (read only, nothing written), the fixed firmware_name() against /sys/firmware/devicetree/base returns apple/mesacal-j616s.bin. The installed 1-12 helper raises ValueError: unsafe fingerprint firmware name on the same tree.

Same change as aurora-silicon/fedora-aurora#62. The test lives in fedora-aurora; this copy of the helper is identical.

🤖 Generated with Claude Code

The J616s fingerprint node names two files, the calibration and the MSRk
record ("apple/mesacal-j616s.bin\0apple/msrk-j616s.bin\0"). firmware_name()
only stripped the trailing NUL, so the name still held the embedded NUL and
the second entry, the path check rejected it, and the helper logged
"unsafe fingerprint firmware name" and installed nothing. A fresh J616s
install got no calibration.

Split the property on NUL, check every entry against the same apple/*.bin
pattern, and take the entry whose name starts with "mesa" (the
calibration), or the first entry when none does. Single-name nodes such as
the Neo and M1/M2 resolve as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Same change as aurora-silicon/fedora-aurora#62.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide
RyanTheTide merged commit 8b93785 into main Oct 30, 2026
22 checks passed
@RyanTheTide
RyanTheTide deleted the sep-firmware-name-list branch October 30, 2026 11:44
RyanTheTide added a commit that referenced this pull request Oct 30, 2026
Main changed prepare-sep-calibration to read the fingerprint firmware-name
as a string list (#50). This branch removes that helper; aurora-touchid-setup
reads the same list the way the driver does, so the J616s, which also names
its MSRk record, still gets its calibration. Keep the removal and raise the
package version to 1.9, above main's 1.8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RyanTheTide added a commit that referenced this pull request Nov 5, 2026
…heck

speakerguardd#48 derives every per-board value from the Mac's device
tree and tuning at run time (wiring.py) and drops machines.json; gate.json
now holds the qualified boards per protection unit (spp3: J316s, J413,
J616s). #45 makes the v2 units read their configuration optionally, so a
board or kernel the gate skips is skipped cleanly; #50 lets
test_provision.py run in the build sandbox, which has no /usr/bin/env.

- Pin a3c66c51e70c (the v2 tip), with nix_hash the tarball's sha256.
- Stop installing machines.json; the package check asserts gate.json is
  the gate's default, wiring.py is installed and no machine table is.
- speakerguardd-v2-gated compared the flake's pkgs.speakerguardd-v2 with
  the system's: two nixpkgs instances, two store paths, so "installed by
  default" always failed. It now checks the system's own package, and
  its gate pattern carries no store-path context (hasInfix refuses it).

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Assisted-by: LLM
RyanTheTide added a commit that referenced this pull request Nov 28, 2026
…ment, Aura enforce)

Advance uboot-aurora pin to aurora-silicon/u-boot aurora-wip 84382f65f6725263f1bdb3c9594607cef610e0a7 (u-boot#69 cold MTP handoff, u-boot#74 blinking text cursor and ANSI line-start fix for GRUB, u-boot#75 direct /reserved-memory parsing, u-boot#78 default Aura enforce policy support, on top of u-boot#47/#50 T8140/T8142 NVMe & ESP).

All four distro kernels now include linux#2525 (e06661cc), clearing the prior J613/J413 MTP handoff prerequisite.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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.

1 participant