Skip to content

J813: internal NVMe for ESP boot on the MacBook Air M5 - #13

Closed
sithglan wants to merge 1 commit into
aurora-silicon:mainfrom
sithglan:thomas/j813-nvme
Closed

sithglan wants to merge 1 commit into
aurora-silicon:mainfrom
sithglan:thomas/j813-nvme

Conversation

@sithglan

@sithglan sithglan commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Lets aura read the internal SSD on T8142 (M5, MacBook Air J813), so the existing boot= path can load Stage 2 / kernel / DTB / initramfs from the ESP.

  • nvme: the J813 ADT advertises only 64 KiB of the non-secure NVMe alias (0x4c5cc0000), while the linear SQ doorbells sit at +0x24908. Admit the measured 0x30000 window as for T8140 and T6041; without it nvme_init fails with "invalid split BAR geometry".
  • kboot: reserve every SART-allowed ANS buffer in RAM on T8142 as on T6041. Linux adopts the live ANS session, whose RTKit buffers come from the earlier stage's heap.

Tested on a MacBook Air M5 (J813, 512 GB, macOS 26.6.1 stub): an ESP Stage 2 (CHAINLOADING=1 ESP_STAGE2=1, boot=<ESP PARTUUID>;aurora/boot/Image.gz;aurora/boot/t8142-j813-nvme.dtb;aurora/boot/initramfs.cpio.gz) chainloaded into the resident proxy wakes ANS with an RTKit boot, verifies 64-block reads, inflates the kernel, reserves three ANS buffers, leaves the controller running and Linux (aurora-silicon/linux-aurora#25) adopts the session and boots Debian from nvme0n1p6.

cc @Acelogic @DjDeveloperr @RyanTheTide @LiamRay10

The J813 ADT advertises only 64 KiB of the non-secure NVMe alias
(0x4c5cc0000) while the linear SQ doorbells sit at +0x24908; admit the
measured 0x30000 window as on T8140 and T6041. Reserve every
SART-allowed ANS buffer for Linux, as on T6041, since Linux adopts the
live ANS session whose RTKit buffers come from the earlier stage.

Tested on a MacBook Air M5: an ESP Stage 2 loads Image.gz, DTB and
initramfs over NVMe and Linux adopts the session and boots Debian from
NVMe.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
@sithglan

sithglan commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

The J813 NVMe change is in main as f5831b2 ("nvme, kboot: T8142 (J813) internal NVMe for ESP boot"), so this PR is no longer needed. #14 is rebased onto main without it.

@sithglan sithglan closed this Nov 2, 2026
dmitzsaz pushed a commit to dmitzsaz/aura that referenced this pull request Nov 6, 2026
…rint

m1n1.ld, m1n1-raw.ld: keep .rela.init inside the .rela.dyn padding
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