Skip to content

nvme: apple: bind the T8140 and T8142 controllers - #47

Merged
RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
gig3m:nvme-t8142-compat-pr
Nov 12, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
gig3m:nvme-t8142-compat-pr

Conversation

@gig3m

@gig3m gig3m commented Nov 12, 2026

Copy link
Copy Markdown

The J813 (MacBook Air 13-inch, M5) device tree names its NVMe controller apple,t8142-nvme-ans2, apple,t8140-nvme-ans2. apple_nvme_ids[] matches neither, so U-Boot binds no NVMe controller on that board. An aurora-installer v0.1.0-alpha.19 install stops in U-Boot at "No USB controllers found" and never reaches GRUB.

This adds both strings with the post-M4 controller data (apple_nvme_t8132_hw).

Tests

  • J813, stub firmware 26.6.2: aurora-wip e1ef8b6 and 250385f with this change, as the U-Boot in Stage 2, boot GRUB and Linux from the internal NVMe. The Mac has booted this way since 2026-11-11.
  • Rebased onto e51e647 for this PR: apple_m1_defconfig builds with no warnings. That build has not been booted.
  • Not tested: a T8140 Mac, or any other board.

Disclosure: the investigation, the patch and the first draft of this text were done with an LLM coding assistant (Claude Code) working over SSH on my machine. I ran the hardware side and have read what is posted here.

The J813 (MacBook Air 13-inch, M5) device tree describes its NVMe
controller as "apple,t8142-nvme-ans2", "apple,t8140-nvme-ans2".
apple_nvme_ids[] has neither string, and the node does not fall back to
"apple,t8132-nvme-ans2" or "apple,nvme-ans2", so no NVMe controller
binds on that board. A system installed by aurora-installer
v0.1.0-alpha.19 stops in U-Boot at "No USB controllers found" and never
reaches GRUB; the built-in keyboard does not work in U-Boot on J813, so
there is no way past it.

Add both strings with the post-M4 controller data (apple_nvme_t8132_hw).
Linux has separate T8140 and T8142 entries, but they set the same layout
flags as its T8132 one (LSQ NVMMU, separate NVMMU, I/O queue registers);
what differs there is sleep and reset handling, which U-Boot does not do.

Tested on a J813 (stub firmware 26.6.2): aurora-wip e1ef8b6 and
250385f with this change, as the U-Boot in Stage 2, boot GRUB and Linux
from the internal NVMe. The T8140 entry is untested (no T8140 Mac here;
the MacBook Neo's device tree already falls back to the T8132 string).
No other board was tested.

Assisted-by: LLM
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: Kyle Arrington <[email protected]>

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the id table: the T8140 entry resolves to the same apple_nvme_t8132_hw data the A18 Pro already gets through its apple,t8132-nvme-ans2 fallback, so existing boards see no change. Thanks for the J813 boot results.

@RyanTheTide
RyanTheTide merged commit 25cbb0f into aurora-silicon:aurora-wip Nov 12, 2026
ryanrhughes pushed a commit to omacom/omarchy-pkgs that referenced this pull request Nov 22, 2026
…3231)

* uboot-aurora: pin aurora-wip at 5445237 for M5 NVMe boot

62ee470 can't boot from the NVMe on the M5 (T8142): it doesn't bind
the T8140/T8142 ANS controller or find the ESP on it. aurora-wip now
carries both fixes, aurora-silicon/u-boot#47 and #50, along with the
merged work since #32. The OpenSSL 4 host-tools config is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* uboot-aurora: carry the Aurora boot flow for T8142

aurora-wip still gives the M5 (T8142) the generic Apple boot defaults:
bootflow over NVMe and USB, with "usb start" as preboot. Carry the
change that gives it the Aurora flow the M4s and the M5 Max use (EFI
path on the internal ESP, then the fallback image, then bootflow on
NVMe), with the MTP keyboard left to Linux. The J815 booted from NVMe
with it on 62ee470. Not yet sent upstream; the MTP driver half is
aurora-silicon/u-boot#51.

pkgver stays 2026.07.aurora8, which has not been published.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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