From: Roman Scherer <roman@burningswell.com>
To: 61959@debbugs.gnu.org
Cc: Roman Scherer <roman@burningswell.com>
Subject: [bug#61959] [PATCH 0/7] Add some Asahi Linux packages
Date: Sat, 4 Mar 2023 15:44:15 +0100 [thread overview]
Message-ID: <20230304144415.9644-1-roman@burningswell.com> (raw)
Hi Guix,
this patch series adds some packages to run Guix on Apple silicon. They are
loosely based on the offical PKGBUILDs [1] of the Asahi Linux project and the
nixos-apple-silicon [2] packages.
u-boot-apple-m1 is a modified version of u-boot from the Asahi Linux team,
which is unlikely to be upstreamed from what I heard in the internet.
m1n1 is the bootloader of the Asahi Linux project, which is placed on the EFI
system partition under /boot/efi/m1n1/boot.bin by the Asahi Linux
installer. For now this is only the package, but I think we also need a proper
Guix bootloader for this. The final /boot/efi/m1n1/boot.bin should be
concatenation of the m1n1.bin binary, the u-boot-apple-m1 binary and the Linux
device trees. I'm not very familiar with how bootloaders work in Guix, but I
believe on a system reconfigure 2 bootloaders should be installed on the EFI
system partition, m1n1 itself and GRUB (I haven't tried extlinux yet).
asahi-fwextract is a tool that extracts a manifest.txt file and 2 archives,
firmware.cpio and firmware.tar from an archive which the Asahi Linux installer
places under /boot/efi/asahi/all_firmware.tar.gz. The all_firmware.tar.gz file
itself is extracted from the rescue partition of the MacOS installation when
installing. This tool can be used by a user to create an installation or
system image that includes the required firmware.
asahi-mesa is the mesa package that includes the GPU driver and is not
upstreamed yet. asahi-mesa-utils and asahi-mesa-headers are variants that use
asahi-mesa.
The next step would be to support building a Linux with Rust modules. I'm
waiting for some patches from the Rust team to do this.
Could you please review those patches?
Thanks, Roman.
[1] https://github.com/AsahiLinux/PKGBUILDs
[2] https://github.com/tpwrules/nixos-apple-silicon
Roman Scherer (7):
gnu: Add asahi-fwextract.
gnu: libdrm: Update to 2.4.114.
gnu: Add asahi-mesa.
gnu: Add asahi-mesa-headers.
gnu: Add asahi-mesa-utils.
gnu: Add m1n1.
gnu: Add u-boot-apple-m1.
gnu/packages/bootloaders.scm | 54 ++++++++++++++++++++++++
gnu/packages/firmware.scm | 35 ++++++++++++++++
gnu/packages/gl.scm | 79 ++++++++++++++++++++++++++++++++++++
gnu/packages/xdisorg.scm | 12 +++---
4 files changed, 174 insertions(+), 6 deletions(-)
--
2.39.1
next reply other threads:[~2023-03-04 14:45 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-04 14:44 Roman Scherer [this message]
2023-03-04 14:46 ` [bug#61959] [PATCH 1/7] gnu: Add m1n1 Roman Scherer
2023-03-04 14:46 ` [bug#61959] [PATCH 2/7] gnu: Add u-boot-apple-m1 Roman Scherer
2023-03-04 14:46 ` [bug#61959] [PATCH 3/7] gnu: Add asahi-fwextract Roman Scherer
2023-03-04 14:46 ` [bug#61959] [PATCH 4/7] gnu: libdrm: Update to 2.4.114 Roman Scherer
2023-03-04 14:46 ` [bug#61959] [PATCH 5/7] gnu: Add asahi-mesa Roman Scherer
2023-03-04 14:46 ` [bug#61959] [PATCH 6/7] gnu: Add asahi-mesa-headers Roman Scherer
2023-03-04 14:46 ` [bug#61959] [PATCH 7/7] gnu: Add asahi-mesa-utils Roman Scherer
2023-03-04 17:38 ` [bug#61959] [PATCH 0/7] Add some Asahi Linux packages Ricardo Wurmus
2023-03-05 10:53 ` Roman Scherer
2023-03-05 11:15 ` Roman Scherer
2023-03-04 19:42 ` Winter via Guix-patches via
2023-03-05 10:53 ` [bug#61959] [PATCH v2 1/7] gnu: Add m1n1 Roman Scherer
2023-03-05 10:53 ` [bug#61959] [PATCH v2 2/7] gnu: Add u-boot-apple-m1 Roman Scherer
2023-03-05 10:53 ` [bug#61959] [PATCH v2 3/7] gnu: libdrm: Update to 2.4.114 Roman Scherer
2023-03-05 10:53 ` [bug#61959] [PATCH v2 4/7] gnu: Add asahi-fwextract Roman Scherer
2023-03-05 10:53 ` [bug#61959] [PATCH v2 5/7] gnu: Add asahi-mesa Roman Scherer
2023-03-05 10:53 ` [bug#61959] [PATCH v2 6/7] gnu: Add asahi-mesa-headers Roman Scherer
2023-03-05 10:53 ` [bug#61959] [PATCH v2 7/7] gnu: Add asahi-mesa-utils Roman Scherer
2023-03-05 16:13 ` [bug#61959] [PATCH v3 0/7] Add some Asahi Linux packages Roman Scherer
2023-03-05 16:13 ` [bug#61959] [PATCH v3 1/7] gnu: Add m1n1 Roman Scherer
2023-03-05 16:13 ` [bug#61959] [PATCH v3 2/7] gnu: Add u-boot-apple-m1 Roman Scherer
2023-03-05 16:13 ` [bug#61959] [PATCH v3 3/7] gnu: libdrm: Update to 2.4.114 and adjust renamed options Roman Scherer
2023-03-05 16:14 ` [bug#61959] [PATCH v3 4/7] gnu: Add asahi-fwextract Roman Scherer
2023-03-05 16:14 ` [bug#61959] [PATCH v3 5/7] gnu: Add asahi-mesa Roman Scherer
2023-03-05 16:14 ` [bug#61959] [PATCH v3 6/7] gnu: Add asahi-mesa-headers Roman Scherer
2023-03-05 16:14 ` [bug#61959] [PATCH v3 7/7] gnu: Add asahi-mesa-utils Roman Scherer
2023-03-05 23:43 ` [bug#61959] [PATCH 0/7] Add some Asahi Linux packages Denis 'GNUtoo' Carikli
2023-03-07 4:14 ` Winter via Guix-patches via
2023-03-08 12:14 ` Roman Scherer
2023-03-08 12:13 ` [bug#61959] [PATCH v4 0/7] Change patch order Roman Scherer
2023-03-08 12:13 ` [bug#61959] [PATCH v4 1/7] gnu: Add m1n1 Roman Scherer
2023-03-08 12:13 ` [bug#61959] [PATCH v4 2/7] gnu: Add u-boot-apple-m1 Roman Scherer
2023-03-08 12:13 ` [bug#61959] [PATCH v4 3/7] gnu: libdrm: Update to 2.4.114 and adjust renamed options Roman Scherer
2023-03-08 12:13 ` [bug#61959] [PATCH v4 4/7] gnu: Add asahi-mesa Roman Scherer
2023-03-08 12:13 ` [bug#61959] [PATCH v4 5/7] gnu: Add asahi-mesa-headers Roman Scherer
2023-03-08 12:13 ` [bug#61959] [PATCH v4 6/7] gnu: Add asahi-mesa-utils Roman Scherer
2023-03-08 12:13 ` [bug#61959] [PATCH v4 7/7] gnu: Add asahi-fwextract Roman Scherer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230304144415.9644-1-roman@burningswell.com \
--to=roman@burningswell.com \
--cc=61959@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.