Skip to content

Rename Asahi and m1n1 names to Aurora and aura - #383

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

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

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 23, 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 listed below.

Change

  • Overlay packages get Aurora names: aura, linux-aurora, uboot-aurora, aurora-audio, alsa-ucm-conf-aurora. nixos-apple-silicon's modules and nixpkgs look packages up by their upstream names, so m1n1, linux-asahi, uboot-asahi, asahi-audio and alsa-ucm-conf-asahi point at them.
  • Stage 2 goes to the one file the enrolled Stage 1 loads: aurora/boot.bin (or boot-ctxr.bin), unless aurora/ has no Stage 2 file and m1n1/ has one. The rule is the same as aurora_stage2_dir in Rename asahi to aurora and m1n1 to aura across the packages alarm-aurora#339.
  • scripts/install-stage2.sh and firmware/extract-vendor-firmware.sh read the booted ESP from /chosen/aurora,efi-system-partition and fall back to asahi,efi-system-partition. The pinned aura writes only the old name.
  • Mesa, kernel configuration, audio data paths, the VA-API alias and aurora-bless follow the renamed sources (details below).
  • Old names that released software still uses are kept as fallbacks tagged LEGACY-ASAHI(2027-02-28).

This is the change from #324, recommitted with sign-off on the current main (cec97bc). Differences from that head:

  • The two ESP property readers accept both names. Before, the new name alone meant the "this is the ESP the Mac booted from" check was skipped and no vendor firmware was extracted on every Mac.
  • flake.nix inherits aura from pkgs (statix manual_inherit_from, which failed the evaluate job).
  • modules/aurora-fex-rootfs.sh and checks/fex-overlay-upgrade.nix, both newer than the old head, look for libvulkan_aurora.so.
  • docs/updates.md names the aurora directory and the property fallback.

Testing

  • python3 -m unittest discover -s tests: 578 tests OK. New: the ESP identity check with only the old property, only the new one, and both (the new one is read); vendor firmware extraction under either name and with neither.
  • stage2/test_bootchain.py 91 OK, stage2/test_nixos_stage2.py 37 OK.
  • Nix 2.28.4: nix flake check --no-build --all-systems passes, the KDE, GNOME and minimal system closures evaluate, statix check and deadnix --fail are clean, every .nix file parses.
  • bash -n on every shell script; shellcheck -S error clean on the two changed readers.
  • Nothing was built: see below.

Still to run

What changes, file by file
  • aura installs lib/aura/aura.bin and keeps lib/m1n1/m1n1.bin as a link, because nixos-apple-silicon's boot module reads that path.
  • The Stage 2 directory rule is in install-stage2.sh, the commit service (modules/installed.nix) and aurora-stage2 check. Image builds write esp/aurora/.
  • The vendored stage2/bootchain.py takes the rename of Rename Asahi and m1n1 names to Aurora and aura fedora-aurora#410: update-aura messages, AURA, and asahi,m1n1-stage1-version read after aurora,aura-stage1-version. stage2/provenance.json records the new digests.
  • Mesa: -Dgallium-drivers=aurora, -Dvulkan-drivers=aurora, libvulkan_aurora.so, aurora_icd.aarch64.json, aurora_clc.
  • Kernel: arch/arm64/configs/aurora.config, and CONFIG_DRM_AURORA* in kernel/config, which is byte-identical to alarm-aurora's renamed packages/linux-aurora/config (9c607db0, recorded in kernel/provenance.json).
  • Audio: share/aurora-audio, 99-aurora.conf, aurora-keep-profile.lua. VA-API: aurora_drv_video.so.
  • aurora-bless is pinned to aa89bd07 (the 9b47a17 tree with its crates renamed) and builds -p aurora-bless; locks/aurora-bless.Cargo.lock is that tree's lock.

Transitional fallbacks (tagged LEGACY-ASAHI(2027-02-28)):

  • the m1n1/ ESP Stage 2 rule
  • the asahi,m1n1-stage1-version property
  • the asahi,efi-system-partition property

Left unchanged on purpose:

  • nixos-apple-silicon option names (hardware.asahi.*, boot.m1n1CustomLogo, system.build.m1n1), its GRUB extraFiles."m1n1/boot.bin" key that installed.nix removes, and the upstream package names listed above as aliases.
  • The aurora-silicon/asahi-audio and aurora-silicon/alsa-ucm-conf-asahi repository names (URLs, archive roots, issue references).
  • The asahi-nvram and asahi-btsync command and unit aliases, and upstream licence lines.
Related pull requests in the set

Aurora's packages get Aurora names in the overlay: aura, linux-aurora,
uboot-aurora, aurora-audio and alsa-ucm-conf-aurora. nixos-apple-silicon's
modules and nixpkgs look packages up by their upstream names, so m1n1,
linux-asahi, uboot-asahi, asahi-audio and alsa-ucm-conf-asahi now point at
them, and aura keeps lib/m1n1/m1n1.bin as a link to lib/aura/aura.bin
because nixos-apple-silicon's boot module reads that path.

Stage 2 goes to the one file the enrolled Stage 1 loads: aurora/boot.bin
(or boot-ctxr.bin), unless aurora/ has no Stage 2 file and m1n1/ has one,
which is what a Stage 1 enrolled before the rename chainloads. That rule,
tagged LEGACY-ASAHI(2027-02-28), is in install-stage2.sh, the commit
service and the pre-switch check. The vendored bootchain.py also reads the
asahi,m1n1-stage1-version property after aurora,aura-stage1-version.

install-stage2.sh and extract-vendor-firmware.sh read the booted ESP from
/chosen/aurora,efi-system-partition and, when that is absent, from
asahi,efi-system-partition (same tag). The pinned aura writes only the old
name, and so does a U-Boot that moves the ESP; with the new name alone the
"this is the ESP the Mac booted from" check was skipped and no vendor
firmware was extracted.

Mesa is built with -Dgallium-drivers=aurora and -Dvulkan-drivers=aurora
(libvulkan_aurora.so, aurora_icd.aarch64.json, aurora_clc), the kernel
validates arch/arm64/configs/aurora.config and the resolved config sets
CONFIG_DRM_AURORA* (the vendored copy follows alarm-aurora's rename,
9c607db0), audio data is under share/aurora-audio with 99-aurora.conf and
aurora-keep-profile.lua, the VA-API alias is aurora_drv_video.so, and
aurora-bless builds from aa89bd07 (the 9b47a17 tree with its crates renamed)
with -p aurora-bless. The FEX guest provider check and its fixture look for
libvulkan_aurora.so too.

Option names of nixos-apple-silicon (hardware.asahi.*, boot.m1n1CustomLogo),
the aurora-silicon/asahi-audio and alsa-ucm-conf-asahi repository names,
the asahi-nvram and asahi-btsync command aliases and upstream licence lines
are unchanged.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

This branch has not been deployed

No deployments
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