Repository navigation
packaging: ANE overlays for every SoC with cited values; overlays move to /usr/share - #28
Conversation
…e to /usr/share T6000 (M1 Pro) and the T6002 (M1 Ultra) die 0 get the T6001 nodes, opt-in as ane-t6000 and ane-t6002; ane.ko binds them with the apple,t6000-ane data. T6020 and the T6022 die 0 get the T6021 nodes but are not installed: no driver binds them, because ane_t6021 maps the firmware at the T6021 iBoot placement. The macOS 13.5 ADTs give these SoCs the same ANE, DART and pmgr values as T6001 and T6021. T8112 and M3 and later get no overlay. The T8103, T6001 and T6021 .dtbo files and the ane.ko objects do not change. The overlays install to /usr/share/omarchy-platform/dtb-overlays, the directory of omacom/omarchy-mac#677, named once as OVERLAY_DIR in omarchy-ane-dt. apply refuses while .dtbo files are in the old /usr/lib directory, so a hand install keeps its copies until it moves. omarchy-ane-check prints "UNTESTED SoC: SOC" on every SoC other than T8103, T6001 and T6021. tools/asahi-dtbs builds the linux-asahi 7.1.13 board DTBs byte for byte as the Arch package has them, and tools/test_ane_overlays.py applies every overlay to each of them; the dt-overlays workflow runs both. Receipt: receipts/2026-10-01-ane-every-soc.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec7ecbb2e5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Needs git, gcc, flex and bison. About 20 MB on disk, nothing installed. | ||
| set -euo pipefail | ||
| tag=asahi-7.1.13-3 | ||
| out=$(realpath -m -- "${1:?usage: asahi-dtbs OUT}") |
There was a problem hiding this comment.
Pin the Asahi source tree to an exact commit
The overlay-validation workflow clones the mutable tag asahi-7.1.13-3, even though its receipts use this checkout to substantiate safety-critical register and address values. If that remote tag is moved, CI silently validates a different kernel tree while continuing to present the results as the cited 7.1.13 evidence. Pin the full commit hash associated with the recorded DTBs and verify HEAD before building.
AGENTS.md reference: AGENTS.md:L225-L228
Useful? React with 👍 / 👎.
| /include/ "t602x-ane.dtsi" | ||
|
|
||
| / { | ||
| fragment@10 { |
There was a problem hiding this comment.
WARNING: Second root child named fragment@10 collides with fragment@10 in the included t602x-ane.dtsi
/include/ "t602x-ane.dtsi" already defines fragment@10 (the /soc fragment) at the same level, so the DTS has two sibling nodes with the same name. dtc reports this only as a duplicate-node-name warning, and both packaging/build-dtbo (dtc -q) and tools/test_ane_overlays.py (dtc -q) suppress warnings, so nothing reports it. Relying on a duplicate name plus a fragment with no target-path/target also ties the compatible override to fdtoverlay's handling of a targetless fragment; an fdtoverlay that treats that as an error takes the whole overlay with it. Give it a name the .dtsi does not use (for example fragment@11) and the same target-path the dtsi fragment has, so the override is explicit and the duplicate warning goes away. packaging/dt/t6022-ane.dts:32 has the identical construct.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
| data, _ = built | ||
| result = oadt.Tree(data) | ||
| applied += 1 | ||
| if not wanted: |
There was a problem hiding this comment.
WARNING: Every ANE assertion is skipped when omarchy,skip-if-compatible is absent
wanted comes from the overlay's omarchy,skip-if-compatible. If that property were dropped or renamed in any -ane overlay, wanted becomes [], the overlay still builds (line 47 would raise if it did not), and lines 54-70 — the one-enabled-ANE-node check, the kernel-wins skip case and the disabled-node re-apply case — never run for that overlay. The run still prints ok. Only t6021-uboot-serial-stdin.dts legitimately has no ANE node, so the fix is to require a non-empty wanted for every source whose name ends in -ane.dts and keep the continue for the U-Boot overlay alone.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
|
|
||
| dts=$src/arch/arm64/boot/dts/apple inc=$src/scripts/dtc/include-prefixes | ||
| for prefix in $(awk '/^[^#]/ { print $1 }' "$repo/packaging/dt/overlays" | sort -u); do | ||
| for f in "$dts/$prefix"-*.dts; do |
There was a problem hiding this comment.
SUGGESTION: Unmatched glob aborts the whole build with a misleading error
There is no nullglob, so if a prefix in packaging/dt/overlays has no board DTB in the kernel tree (for example a future t8112 overlay, which this PR deliberately leaves out), $f stays the literal pattern, gcc -E fails with .../t8112-*.dts: No such file or directory and set -e kills the run before any DTB is built, so CI reports a cpp error instead of "no board device trees for this prefix". Add shopt -s nullglob before the loop and skip a prefix that matches nothing.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
| cmd_fetch(sys.argv[2], sys.argv[3]) | ||
| elif what == 'firmware': | ||
| cmd_firmware(sys.argv[2]) | ||
| else: |
There was a problem hiding this comment.
SUGGESTION: An unknown subcommand silently runs the ADT dump
ipsw_ane.py firmwar DIR (or any typo) falls through to cmd_adt and produces a full, plausible-looking ADT dump with no error, so its output could be pasted into a receipt as if it were the firmware table. sys.argv[1] with no argument is also an uncaught IndexError. Make the final branch reject anything other than adt.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review SummaryStatus: 4 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (36 files)
Fix these issues in Kilo Cloud Note: PR #28 is already merged, so these are advisory for follow-up rather than merge blockers. Reviewed by free · Input: 0 · Output: 0 · Cached: 0 |
Every Apple SoC now has a row with its ANE firmware, the support state, the overlay gate and the missing data (README "Chip coverage"). Overlays exist only where every value has a source: the macOS 13.5 ADTs, the linux-asahi 7.1.13 device trees, and the overlays that ran on hardware. The per-value sources are in
receipts/2026-10-01-ane-every-soc/README.md..dtboane.ko.dtboane_t6021ane-t6021ane.koapple,t6000-aneane-t6000ane.koapple,t6000-aneane-t6002ane_t6021maps the T6021 iBoot firmware placementdisabled/usr/share/omarchy-platform/dtb-overlays(Apply package-owned device tree overlays to m1n1 stage 2 omacom/omarchy-mac#677, confirmed), one constantOVERLAY_DIR.omarchy-ane-dt applyrefuses while.dtbofiles are in the old/usr/libdirectory, so the lab M2's hand install keeps its copies until it moves (README gives the three commands).update-m1n1-dtbsand the hooks stay: Arch Linux ARM installs have no omarchy-mac-boot.omarchy-ane-checkprintsUNTESTED SoC: SOCoff T8103/T6001/T6021.tools/asahi-dtbsbuilds the 19 selected linux-asahi 7.1.13 board DTBs, byte-identical to the Arch package;tools/test_ane_overlays.pyapplies every overlay to each (22 applications, skip and disabled-node cases) and fails on an fdtoverlay that loads an older libfdt. New workflowdt-overlaysruns them withtest_ane_dt.pyandtest_ane_m2.py..dtbobytes and theane.koobjects are unchanged;ane_t6021is not touched.