Skip to content

arm: apple: read aurora,efi-system-partition; aura replaces m1n1 - #53

Draft
RyanTheTide wants to merge 1 commit into
mainfrom
purge/asahi-to-aurora
Draft

RyanTheTide wants to merge 1 commit into
mainfrom
purge/asahi-to-aurora

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Our own drivers, paths, packages and boot properties still carry the Asahi and m1n1 names. This repository is renamed to Aurora and aura together with the other repositories in the set below.

Change

Reads aurora,efi-system-partition first and falls back to the old name; renames our aura/m1n1 references in comments and docs.

Testing

apple_m1 and apple_j873 builds with WERROR pass.

Still to run

Boot under the renamed aura (combined boot).

Full details

Part of the Asahi to Aurora rename across the aurora-silicon repos (same branch name, purge/asahi-to-aurora, in each repo).

Change

  • aurora_esp_devpart() (renamed from asahi_esp_devpart()) finds the ESP through /chosen/aurora,efi-system-partition, the name aura writes after its rename.
  • When that property is missing, it falls back to /chosen/asahi,efi-system-partition. aura builds from before the rename only write the old name. The fallback is tagged LEGACY-ASAHI(2027-02-28) and goes on that date.
  • Comments and doc/board/apple/{m1,j873g}.rst now name aura, the bootloader that loads U-Boot, instead of m1n1. The build and install sections point at aura and aurora-installer, not the upstream wiki.

Left as is, on purpose

  • asahi-kasei,* compatibles and bindings. Asahi Kasei is a real vendor and this is DT ABI.
  • "The Asahi Linux Contributors" copyright lines, the sart attribution to upstream m1n1 (with its URL), and the m1n1 commit credit in nvme_apple.c.
  • The vendored dts/upstream/ kernel DT tree. It is imported verbatim, and that includes the upstream list address [email protected] and the "our bootloader m1n1" binding text.
  • The upstream ancestor commit URL in aurora-releases/0.1.0.md, and the J873g record that says that run used public m1n1. That is what actually ran.

Tests

  • apple_m1_defconfig and apple_j873_defconfig with CONFIG_WERROR=y, aarch64-linux-gnu-, built as CI does: both pass.
  • The built u-boot.bin contains both property names (strings).
  • Not run on hardware yet. A combined boot with the renamed aura is planned before review.

Related changes

This is one part of a set of draft pull requests, all on branch purge/asahi-to-aurora, that rename Asahi to Aurora and m1n1 to aura across our repositories. Names that cross a repository boundary (the /chosen properties aura writes, the ESP Stage 2 paths, package names, Mesa build options) are changed together. Each old name that released software still uses is kept as a fallback marked LEGACY-ASAHI(2027-02-28).

aura now names the ESP that Stage 1 booted from in
/chosen/aurora,efi-system-partition. Read that first. aura builds from
before the rename only write /chosen/asahi,efi-system-partition, so keep
reading it as a fallback until 2027-02-28 (tagged LEGACY-ASAHI in the
source).

The helper is now aurora_esp_devpart(), and comments and the Apple board
docs name aura, the bootloader that loads U-Boot, instead of m1n1.

Copyright lines, the sart attribution to upstream m1n1, the vendored
dts/upstream tree and the asahi-kasei vendor prefix are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 19, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Blockers: 3.

Reading the new name first and falling back to the old one (arch/arm/mach-apple/board.c:1060-1075) is right for a loader that writes both, as aura#313 does. The other problems:

  1. Wrong base. This targets main, but the ESP code has since been rewritten on aurora-wip (apple: pick the ESP on every Apple NVMe controller #50). There the uuid is read at board.c:1397, and none of this applies. Rebase onto aurora-wip.
  2. On aurora-wip, U-Boot also writes the property. When it boots from an ESP other than the one aura named (the J616s stub-ESP case), ft_board_setup() rewrites only /chosen/asahi,efi-system-partition (board.c:1790-1794 on aurora-wip). After aura#313 the OS tree carries both names. The new aurora,efi-system-partition would keep pointing at the stub ESP, so any OS reader moved to the new name would look for firmware on the wrong ESP. Write both names there, the new one plus the legacy alias, until the fallback date.
  3. Commit f3e4ff2 has no Signed-off-by and carries Co-Authored-By: Claude Opus 5.5. It needs the author's Signed-off-by and no agent trailer.

Nit: the j873g.rst lines this touches name apple_j873_defconfig, which #60 removes. Rebase the doc hunk onto whichever lands first.

HW row: on the rebased head, a combined boot with the renamed aura (aura#313):

  • J316s: ESP found through the new name.
  • J616s: the stub-ESP case. The OS tree's aurora, and asahi,efi-system-partition both name the Fedora ESP.
  • One boot with a pre-rename aura: the fallback finds the ESP.

All with 0 AVC, 0 failed units and no new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

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