Repository navigation
Conversation
packages.aarch64-linux builds Sekka for Apple Silicon Macs, starting with the 14-inch MacBook Pro with an M3 Pro (J514S, T6030). Upstream Asahi drives that machine's panel only through the boot framebuffer and has no GPU driver for it. Omarchy's release aurora-2026.10.17.20 does both, and a J514S owner with the same system firmware reported its kernel, m1n1 and Mesa working (omacom/linux-aurora#138). nix/apple-silicon pins them: - linux-aurora 7.1.12, from the release's source archive and configuration, built with Clang 22 and LLD as its recipe builds it; - m1n1-aurora (omacom/m1n1 d05ba17d), whose T6030 display and GPU handoff stays off until boot.bin carries its switches; - the M3 Pro's native OpenGL and Honeykrisp Vulkan Mesa (iconidentify/mesa-omacom d616d065 and b0f56952), on Nixpkgs' Mesa with the recipes' drivers and options. Neither needs LLVM at run time or replaces the system's Mesa. The sources are pinned by hash in the package definitions rather than as flake inputs, because a new input would change the lock installed systems carry. nix/components.nix builds Tatami, Yukimi and Kakehashi for both systems, and the catalog module takes Sekka's packages for the system it is evaluated for. All of these build for aarch64-linux, on a darwin.linux-builder VM, along with Genkan, Tatami's applications, the tools and the patched Aquamarine and Hyprland. The kernel's final .config matches the release's headers package except for toolchain versions and LOCALVERSION. Every x86_64 derivation is unchanged except those that record Sekka's own revision (the ISO, the installer system, the installed lock, the site and the template check); nix-diff traces each of them to that. Nothing has booted yet. The NixOS module that assembles boot.bin, loads the vendor firmware and chooses the session's graphics comes next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
calamares.appleSilicon (nix/apple-silicon/module.nix) turns an installed system into one for Apple Silicon Macs. Every installed system imports it with Genkan's system modules, and it does nothing until enabled. Booting: the Asahi installer's m1n1 first stage chainloads m1n1/boot.bin from the EFI system partition. systemd-boot writes that file on every switch: m1n1-aurora, the kernel's Apple device trees, U-Boot (AsahiLinux asahi-v2026.07-2, configured as nixos-apple-silicon does) and, with t6030Handoff, the three chosen.asahi,t6030-* switches that turn on the display and GPU handoff. The kernel, its initrd modules and boot options follow nixos-apple-silicon. Settings written for PCs (CPU microcode, 32-bit ALSA) are forced off. Apple's peripheral firmware isn't redistributable, so it is loaded at boot from the Asahi installer's vendorfw/firmware.cpio rather than read while the configuration is evaluated, and prebuilt and cached systems still work. systemd-boot's entries load the archive as a second initrd; the initrd finds it at /vendorfw (firmware_class.path) and copies it to a tmpfs at /lib/firmware/vendor in the booted system. Sound gets asahi-audio and speakersafetyd. The kernel refuses Nixpkgs' Mesa on the M3 GPU, and Hyprland stops at start if it reaches the GPU's render node with it. So every session renders in software, and only the render group opens that node. A uwsm session (Tatami's) sources a gate adapted from Omarchy's hooks (m3-gpu/session-env.sh). It points the session at the M3 Pro's Mesa only when the opt-outs, the T6030 GPU and native display, Omarchy's runtime ABI check (vendored, MIT) and this boot's kernel log all pass. A login on the GPU must be confirmed alive by sekka-m3-gpu-confirm.service, or later logins this boot render in software. sekka-m3-gpu-performance.service sets the batching values Omarchy pairs with this Mesa. Yukimi's activation identity records the 32-bit graphics stack only on x86, where Nixpkgs has one; aarch64 systems could not evaluate it. The kernel declares the efiBootStub and rust features systemd-boot asks for. packages.aarch64-linux.installed-j514s, Genkan's reference Tatami system with the handoff on, builds, and so does its boot.bin, which was checked byte by byte. m3-gpu-session-env-test runs the gate against fake T6030 roots in 14 scenarios, and a gate that ignores firmware errors fails it. Every x86_64 derivation is unchanged except those that record Sekka's own revision. Nothing has booted on the Mac yet: the boot chain, firmware timing, the handoff, a GPU login and the speakers still need the physical J514S. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…taller packages.aarch64-linux.mac-installer-j514s (nix/apple-silicon/image.nix) is a directory the unmodified Asahi installer installs Sekka from, on the Mac itself, with no USB stick or download server: - installer_data.json: one entry, offered only where the installer gives the macOS 14.8.3 OS firmware (the M3 series). It describes a 1 GiB FAT ESP with a fixed volume ID, filled from the package's esp/ tree and given Apple's firmware (copy_firmware), and a root partition written from root.img that grows into the free space (expand). - os/sekka-j514s-REVISION.zip: esp/ holds m1n1/boot.bin, systemd-boot, the kernel and initrd, and generation 1's entry with /vendorfw/firmware.cpio as its first initrd. root.img is ext4 labelled sekka-root with the system's closure; it grows at boot, and sekka-image-first-boot.service registers its store and system profile once. - install-sekka.sh: the Asahi installer's bootstrap (MIT), adapted to run installer v0.9.2, checked by SHA-256, with INSTALLER_DATA and REPO_BASE pointing at this directory. It warns about the resize and shows this Mac's limits before anything happens. The image's system is the J514S configuration with Tatami and Firefox and a developer account (sekka/sekka): Genkan has no first-boot setup for Macs yet, and the image carries no installed flake, so updates don't work yet. The Apple module drops NixOS's default initrd drivers, which are a PC's and include ahci, which this kernel lacks. It also turns off TPM2 (these Macs have no TPM and the kernel no TPM drivers) and adds hid_apple for an external keyboard. nix/apple-silicon/boot-image-in-vm.sh boots the built package twice in a disposable QEMU VM under Apple's hypervisor. It lays the disk out as the installer would, with a stand-in firmware archive, and passes the firmware QEMU's device tree, since the kernel has no ACPI. It logs in on the virtio console (vm-console.py) and requires systemd running with no failed units, the graphical target and display manager active, the store registered, the firmware on its tmpfs and the ESP mounted by volume ID; both boots pass. The image adds virtio_mmio to its initrd only so that it boots there. m1n1, U-Boot, the handoff and Apple's drivers still need the Mac. On macOS 27.0.1, the build this MacBook Pro runs, Apple's APFS resize has failed for another user with -69606 (AsahiLinux/asahi-installer#448). Read-only checks here found the container can shrink to 175.8 GB, no local snapshots, FileVault on, and no newer macOS offered. DEVELOPERS.md says to back up first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dff2159 to
4882dc3
Compare
|
Carried over from #138, which is closed as a duplicate of this branch: its commit (4882dc3) is here, and its content files are identical. Its description follows, including the hardware validation still owed.
|
No description provided.