Skip to content

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

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

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

Overlay packages get Aurora names, with aliases for the names the external Apple Silicon module looks up; the ESP rule matches the other distributions.

Testing

unittest 539 OK; every .nix file parses.

Still to run

Flake evaluation and builds once the pins move.

Full details

Renames the Asahi and m1n1 names this repository owns to Aurora and aura. Part of a cross-repository rename on branch purge/asahi-to-aurora (linux, mesa, aura, u-boot, aurora-installer, asahi-audio, fedora-aurora#410, alarm-aurora). The kernel, Mesa and audio source pins still have to move to those branches before this builds.

What changes

  • Overlay packages: aura, linux-aurora, uboot-aurora, aurora-audio, alsa-ucm-conf-aurora; the flake outputs and our modules and checks use them. nixos-apple-silicon's modules and nixpkgs' PipeWire defaults look packages up by their upstream names, so m1n1, linux-asahi, uboot-asahi, asahi-audio and alsa-ucm-conf-asahi point at Aurora's packages. 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.
  • 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. The rule is the same as aurora_stage2_dir in alarm-aurora, and it 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 fedora-aurora#410's rename: 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, 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 above
  • the asahi,m1n1-stage1-version 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.

Tests

  • python3 -m unittest discover -s tests: 539 tests OK. That includes a new install test covering all three ESP states: aurora/ only, m1n1/ only (for both boot.bin and boot-ctxr.bin), and both, where aurora/ wins.
  • nix-instantiate --parse on every .nix file (nixos/nix 2.28.4, aarch64): all parse.
  • shellcheck scripts/install-stage2.sh: clean.
  • I didn't run nix flake check. The build host is at its disk floor, and the flake needs the renamed kernel, Mesa and audio pins first. tests/integration needs Nix on the host, the same as on main.

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).

Assisted-by: LLM (Claude:Opus 5.5)

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.

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.

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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 19, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Blockers: 4.

The Stage 2 directory choice (aurora/ unless only m1n1/ has a Stage 2 file) matches alarm-aurora's aurora_stage2_dir, and the new three-state install test covers it. Two readers of the ESP property, however, lost the old name with no fallback.

  1. scripts/install-stage2.sh:31 and firmware/extract-vendor-firmware.sh:4 now read only /chosen/aurora,efi-system-partition. The aura this repo pins (3ff77894) writes only asahi,efi-system-partition (src/kboot.c:870). With this head, on every Mac:

    • install-stage2.sh:80 finds the property unreadable and silently skips the "this is the ESP the Mac booted from" check, so the Stage 2 write can go to the wrong ESP;
    • extract-vendor-firmware.sh:5 exits 0 before extracting anything, so there is no per-device Wi-Fi/BT, keyboard, Touch Bar or ALS firmware.

    The old name will also persist past the aura bump: per the u-boot#53 review, U-Boot updates only asahi,efi-system-partition when it moves the ESP. Read the new name, fall back to the old one, and tag the fallback LEGACY-ASAHI(2027-02-28) as you already do for the stage1-version property. docs/updates.md also says "an aura directory", but the code checks aurora/.

  2. The pins are not releases. kernel/config is alarm-aurora 9c607db0, the head of the open alarm-aurora#339. It sets CONFIG_DRM_AURORA*, but the pinned kernel 9125b314 only has DRM_ASAHI (drivers/gpu/drm/asahi/Kconfig:11). aurora-bless aa89bd07 is not on aurora-bless master, which has diverged from it. Keep this in draft until linux#2335, mesa#478, aura#313, alarm-aurora#339 and aurora-bless#7 merge, then repin each one to its merge commit.

  3. evaluate is red on this head. statix rejects flake.nix:58 aura = pkgs.aura; (use inherit (pkgs) aura;), so none of the checks after it ran.

  4. Commit 1e9324c has no Signed-off-by and carries Co-Authored-By: Claude Opus 5.5. It needs the author's sign-off and no agent trailer.

HW row: on the repinned head, nix flake check green, then install the image on a J316s/J616s with a pre-rename Stage 1 (m1n1/boot.bin only) and on one with the renamed aura. Pass: Stage 2 is updated in the directory Stage 1 loads, the ESP identity check runs (shown in the journal), vendor firmware lands in /run/aurora-firmware/vendorfw (Wi-Fi, BT, keyboard at LUKS), GPU/Vulkan up on libvulkan_aurora.so, 0 failed units, no new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Superseded by #383: same change, recommitted with sign-off.

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