Repository navigation
Rename Asahi and m1n1 names to Aurora and aura - #383
Draft
RyanTheTide wants to merge 1 commit into
Draft
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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, som1n1,linux-asahi,uboot-asahi,asahi-audioandalsa-ucm-conf-asahipoint at them.aurora/boot.bin(orboot-ctxr.bin), unlessaurora/has no Stage 2 file andm1n1/has one. The rule is the same asaurora_stage2_dirin Rename asahi to aurora and m1n1 to aura across the packages alarm-aurora#339.scripts/install-stage2.shandfirmware/extract-vendor-firmware.shread the booted ESP from/chosen/aurora,efi-system-partitionand fall back toasahi,efi-system-partition. The pinned aura writes only the old name.LEGACY-ASAHI(2027-02-28).This is the change from #324, recommitted with sign-off on the current main (cec97bc). Differences from that head:
flake.nixinheritsaurafrompkgs(statixmanual_inherit_from, which failed theevaluatejob).modules/aurora-fex-rootfs.shandchecks/fex-overlay-upgrade.nix, both newer than the old head, look forlibvulkan_aurora.so.docs/updates.mdnames theauroradirectory 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.py91 OK,stage2/test_nixos_stage2.py37 OK.nix flake check --no-build --all-systemspasses, the KDE, GNOME and minimal system closures evaluate,statix checkanddeadnix --failare clean, every.nixfile parses.bash -non every shell script;shellcheck -S errorclean on the two changed readers.Still to run
-Dgallium-drivers=aurora,CONFIG_DRM_AURORA*,arch/arm64/configs/aurora.config,share/aurora-audioand aurora-bless aa89bd07 exist only in the open rename PRs: Rename Asahi to Aurora and m1n1 to aura across the tree linux#2335, Rename the Asahi driver to Aurora mesa#478, Rename Asahi properties to aurora and m1n1 to aura aura#313, Rename asahi to aurora and m1n1 to aura across the packages alarm-aurora#339, Rename the asahi-bless and asahi-wifisync crates to aurora-* aurora-bless#7, Rename asahi to aurora: install paths, scripts and properties asahi-audio#33. After they merge, repin each one to its merge commit.AGENTS.mdsection 6 on main says the Galliumasahidriver,src/asahi/and the DRM UAPI (DRM_ASAHI_*) keep their names, and the Vulkan driver is renamed by borealis: rename the Vulkan driver from Honeykrisp to Borealis (library, ICD, drirc, src/borealis/vulkan, brl_ prefix, BRL_ env) mesa#591. If the Mesa and kernel PRs above change to match, the Mesa,CONFIG_DRM_*, ICD and VA-API hunks here are dropped with them.m1n1/boot.binonly) and on one with the renamed aura. Pass: Stage 2 is updated in the directory Stage 1 loads; the journal shows the ESP identity check ran; vendor firmware is in/run/aurora-firmware/vendorfw(Wi-Fi, Bluetooth, keyboard at the LUKS prompt); GPU and Vulkan are up; 0 failed units; no new kernel errors.What changes, file by file
aurainstallslib/aura/aura.binand keepslib/m1n1/m1n1.binas a link, because nixos-apple-silicon's boot module reads that path.install-stage2.sh, the commit service (modules/installed.nix) andaurora-stage2 check. Image builds writeesp/aurora/.stage2/bootchain.pytakes the rename of Rename Asahi and m1n1 names to Aurora and aura fedora-aurora#410:update-auramessages,AURA, andasahi,m1n1-stage1-versionread afteraurora,aura-stage1-version.stage2/provenance.jsonrecords the new digests.-Dgallium-drivers=aurora,-Dvulkan-drivers=aurora,libvulkan_aurora.so,aurora_icd.aarch64.json,aurora_clc.arch/arm64/configs/aurora.config, andCONFIG_DRM_AURORA*inkernel/config, which is byte-identical to alarm-aurora's renamedpackages/linux-aurora/config(9c607db0, recorded inkernel/provenance.json).share/aurora-audio,99-aurora.conf,aurora-keep-profile.lua. VA-API:aurora_drv_video.so.-p aurora-bless;locks/aurora-bless.Cargo.lockis that tree's lock.Transitional fallbacks (tagged
LEGACY-ASAHI(2027-02-28)):m1n1/ESP Stage 2 ruleasahi,m1n1-stage1-versionpropertyasahi,efi-system-partitionpropertyLeft unchanged on purpose:
hardware.asahi.*,boot.m1n1CustomLogo,system.build.m1n1), its GRUBextraFiles."m1n1/boot.bin"key thatinstalled.nixremoves, and the upstream package names listed above as aliases.aurora-silicon/asahi-audioandaurora-silicon/alsa-ucm-conf-asahirepository names (URLs, archive roots, issue references).asahi-nvramandasahi-btsynccommand and unit aliases, and upstream licence lines.Related pull requests in the set