From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id /TO6DndZA2S2XQAAbAwnHQ (envelope-from ) for ; Sat, 04 Mar 2023 15:45:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +C5SDndZA2TtBwEAauVa8A (envelope-from ) for ; Sat, 04 Mar 2023 15:45:11 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DBFD83667D for ; Sat, 4 Mar 2023 15:45:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYT8B-0003Ow-Kh; Sat, 04 Mar 2023 09:45:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYT8A-0003MJ-6i for guix-patches@gnu.org; Sat, 04 Mar 2023 09:45:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYT89-0001MS-RX for guix-patches@gnu.org; Sat, 04 Mar 2023 09:45:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYT89-00023S-OU for guix-patches@gnu.org; Sat, 04 Mar 2023 09:45:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61959] [PATCH 0/7] Add some Asahi Linux packages Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Mar 2023 14:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61959 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61959@debbugs.gnu.org Cc: Roman Scherer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16779410967866 (code B ref -1); Sat, 04 Mar 2023 14:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Mar 2023 14:44:56 +0000 Received: from localhost ([127.0.0.1]:35639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYT84-00022n-3z for submit@debbugs.gnu.org; Sat, 04 Mar 2023 09:44:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:46684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYT81-00022e-B0 for submit@debbugs.gnu.org; Sat, 04 Mar 2023 09:44:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYT81-0003Lb-2j for guix-patches@gnu.org; Sat, 04 Mar 2023 09:44:53 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYT7y-0001HO-Vi for guix-patches@gnu.org; Sat, 04 Mar 2023 09:44:52 -0500 Received: by mail-wr1-x433.google.com with SMTP id l25so4833694wrb.3 for ; Sat, 04 Mar 2023 06:44:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20210112.gappssmtp.com; s=20210112; t=1677941086; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=B+qm4+zF7ov99p8+JSm7AMgm0IZVXNeBD4BqGdaKLRU=; b=rjhX+BQkhskWp6/j9sbKFAezluWmogtmwktgcxSQrWlaCNs1A4i9ZExC+fMvsHWln3 0dx50eMYaQkGUh1b8oGnCIz/DNa5hsf0TcIPvit9MLxmdc08d4wdBk5JD3idWO5Y17ZO ZIvfEytc0JRFEGLLIz2VeGN+/rWuOCO2TFxU30Rn79gg35XJXzjK4ex3K5o5ARw9+Vwi +0vkPaX721e7vXMmwjJf7uhBqnYgpHhIfzQdKm5L32NhC+eKtIIX6tttw22KE4T1G/xF Pk7uLzOSvsq4rOD34r6Fe1Qpk1y4rjLFgymW8sjCnTOKUyHpogzH/nVhTSXJwLcLEmR+ EDJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677941086; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B+qm4+zF7ov99p8+JSm7AMgm0IZVXNeBD4BqGdaKLRU=; b=S0nWwcsERMBHyunC9MvbEiszyxLbK/5rm+eWjbkhKehThXqKQrjqY5cN2iUiJ4HaG1 jBD5TEP6lRYZSCQ8oxefDhbGZeSvqyBX0lxg6Wozdqqx3yOcDc7bOAQJAvkZH2l2SXRM W/r/Pljy2r0E4aWmamyDMG87lz8CRLdwwrFhMHaSCGUnrQxq1yZQw8d6sCaiaSDJi7nR tUUsk3I+aHqVyenJmosShPMFwrsv8o7Ebnie5+Ljj9wBMOBpZrrz0x+YR39H7LRaqX8U UyPrsGSEi1CBQz/x7dh0XxiDO9rDinJU1ExFdyUqqXfWyLVrwLhjNm5oFKy7KRnSx62h e3QA== X-Gm-Message-State: AO0yUKVyhzfgJf3zH69pVS9b+ktoR6ijhkvm7erGcnlWmFXZ2YC3p0Fv uAGWEgV9YLu7t2IThNdWkhkhVDkPryQvTMNaNhw= X-Google-Smtp-Source: AK7set/hbHyEbBYrk9N8v5IGaTuSKPXu+2sL5CgtzHICfc5y+QgY0/NkMJBhmYnpJpqlwfwGGM8HKg== X-Received: by 2002:adf:df03:0:b0:2ca:e45f:cf8b with SMTP id y3-20020adfdf03000000b002cae45fcf8bmr3833763wrl.48.1677941086708; Sat, 04 Mar 2023 06:44:46 -0800 (PST) Received: from localhost.localdomain ([2a01:598:b1ad:1fff:8e8b:b210:246d:cd7a]) by smtp.gmail.com with ESMTPSA id h18-20020a5d4312000000b002c7107ce17fsm5245179wrq.3.2023.03.04.06.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 06:44:46 -0800 (PST) From: Roman Scherer Date: Sat, 4 Mar 2023 15:44:15 +0100 Message-Id: <20230304144415.9644-1-roman@burningswell.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2a00:1450:4864:20::433; envelope-from=roman@burningswell.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677941111; a=rsa-sha256; cv=none; b=cFnANEeVs8Ac7sP7Svf9uPlqHBXIKSmwX0MOT0SYQ/xkX3MH1nqI9UrtBGDGH2AGGETUxL DFZFcGg4sfzVNIR2c2MH1eB1dn6+8ZBZ+WIVoJNPNZKn/Ssq/dXNE5cW1aiAgZ2/6jdaX9 1BZYdVg4bqiiVtdqljZT7fYzAVr7tHN9C2fb6lVm6nwdc8Kp8ePPLW6MpDqD9YlJxaneIu ElUOOwqMhE9j6fvrjC8meSoKwVXT2mOUBkyjsR3YiHu1uT172AI3aiM0Lh8ZUeDbaIzDph KZFXYwq9DUVrZdOE4W+q9g6wO7NTsOCOWirhG0ZbDpU39d8CeiIDq3aoyX3Y+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20210112.gappssmtp.com header.s=20210112 header.b=rjhX+BQk; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677941111; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=B+qm4+zF7ov99p8+JSm7AMgm0IZVXNeBD4BqGdaKLRU=; b=o5BQOyrS+c0ozw1HufFipmQQgxdcKkzyHpuCIeeYKKBep45cvetrEQme07f4ZjR9cWMvoK RfBt08EEzekBDBDV7O/5rMyeOUJpFBnoMTkSqSV3VrNI06c6+bkMiLB6Fr/Z51BmfHhAl+ AZcbTnCwM4/QKtpZvQFYW5D5zHp9PY1WqCRp5pmxTV/B5kTBx2CzXFMT+LYOv3Lnpy89ah BUcAx+6JHC8je9rBICo7xNN0KFJblYVZfQoewtaHKz09rmwskNxCM9NQgpFF4DHksqvQ6O /bg4GSu3yyIt67IQV7gzUnR0tJ9fFVi8N+duEc9gmFJeO4Nhjfp/yxmRpK8H1g== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.90 X-Spam-Score: -0.90 X-Migadu-Queue-Id: DBFD83667D Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20210112.gappssmtp.com header.s=20210112 header.b=rjhX+BQk; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: sst5nEVw4pFj 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