From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oBytCWwJkGGOIQAAgWs5BA (envelope-from ) for ; Sat, 13 Nov 2021 19:52:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qGdeBWwJkGF2OAAA1q6Kng (envelope-from ) for ; Sat, 13 Nov 2021 18:52:28 +0000 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 ADB282708B for ; Sat, 13 Nov 2021 19:52:27 +0100 (CET) Received: from localhost ([::1]:34672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mly8Y-00054U-QA for larch@yhetil.org; Sat, 13 Nov 2021 13:52:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mly8A-00054K-9n for guix-patches@gnu.org; Sat, 13 Nov 2021 13:52:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mly8A-00085I-19 for guix-patches@gnu.org; Sat, 13 Nov 2021 13:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mly89-0005dc-QZ for guix-patches@gnu.org; Sat, 13 Nov 2021 13:52:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#48314] Patches to install guix system on Raspberry Pi Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Nov 2021 18:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Stefan , 48314@debbugs.gnu.org Cc: Danny Milosavljevic Received: via spool by 48314-submit@debbugs.gnu.org id=B48314.163682951521660 (code B ref 48314); Sat, 13 Nov 2021 18:52:01 +0000 Received: (at 48314) by debbugs.gnu.org; 13 Nov 2021 18:51:55 +0000 Received: from localhost ([127.0.0.1]:48070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mly83-0005dH-JU for submit@debbugs.gnu.org; Sat, 13 Nov 2021 13:51:55 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:38720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mly81-0005d5-VT for 48314@debbugs.gnu.org; Sat, 13 Nov 2021 13:51:54 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id A589E1AC25; Sat, 13 Nov 2021 10:51:47 -0800 (PST) From: Vagrant Cascadian In-Reply-To: <87czn4aq2s.fsf@ponder> References: <20210619211026.5eb44073@scratchpost.org> <897B7FF7-24C1-4B96-8441-415596267E99@vodafonemail.de> <87czn4aq2s.fsf@ponder> Date: Sat, 13 Nov 2021 10:51:38 -0800 Message-ID: <875ysvc2it.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636829547; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=3uLUEeR/Y182mcmP1lx7Fu+L0Shlvi6zMyxh0Py98Ws=; b=YZZNF7bWAQe/qncYbw2e7B/dSgCNTXOE4RqJ9WLZLxcRAsICu44JrBHVHB1wy9lv36Hrq1 aj313yJaP+W2unL3JKSqrekVsLiR1j2GbaOZRJE5uq7c0cPZ2E54FPJA7Oe8HFScTUONpk alOylur/d7O8gr7e9uluHI4SBilBZTGxg+eHl+2Lnwt+qmQZGHBQriS3l25KMlkUSxotYX 8eoh5qpx3eF5F/g8WTxbbC1RiZNV/7SFMZ3IfQXKf0gaQwT9L0dAQQcmK0t453UVBkNCWN e4Nw/rPMR0hyAsDdbL1aZ1wuDqxdee7FwYGDlmuOJb3LIlLwiMKho/IgtJ7DgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636829547; a=rsa-sha256; cv=none; b=cEuPbmwhL8YlzvVv7CrA4he0lSXTNHGZ29ojIwdMW4wHI9YNvASuxEiGKqBwG+ObojK0pm 7Bjbht0T8YVoBkUk3sNLzigW2krlNihSaMJqOSOeDdHF9qtqS41vsNRphGJLdB4y8Nw4VC cMImviBM6ll1Y7i9MqKKiCCEhFOrBFkWSpEQME3+3pP3yhhXGmM+NsgfBLXDPBK7D3AWfc +9OeoSXgGXrPtIARbx4oWe0C+xF5yYMmeB5rfGW2zPoFNeQ0IGpU6DkXuc9jkyGI1VM6rm XyvL3QtBllfiJE3gs5OEoPL2H90vYRVbMF1eG8rVu+opx0mWOxfCMV8irRyFsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -4.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: ADB282708B X-Spam-Score: -4.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: kFfwwMoT+WIv --=-=-= Content-Type: text/plain On 2021-11-13, Vagrant Cascadian wrote: > Subject: [PATCH 3/8] * gnu/packages/bootloader.scm (make-u-boot-package): Add > keyword parameters 'name' and 'description'. > ... > (u-boot-rpi-0-w, u-boot-rpi, u-boot-rpi-2, u-boot-rpi-3, > u-boot-rpi-4, u-boot-rpi-64, u-boot-rpi-0-w-efi, u-boot-rpi-efi, > u-boot-rpi-2-efi, u-boot-rpi-3-efi, u-boot-rpi-4-efi, u-boot-rpi-efi-64): New > packages. ... > +(define-public u-boot-rpi-64 > + (make-preinstalled-u-boot-package > + "rpi_arm64" > + "aarch64-linux-gnu" > + #:name "rpi-64" > + #:description %u-boot-rpi-description-64-bit)) > > And this "u-boot-rpi-arm64". > > In other words, keep names consistent with the upstream defconfig they > are based on. ... > I think without addressing the rest of the patch series, adding to guix > master the following packages could make the remaining diff smaller: > > u-boot-rpi-2 (rpi_2_defconfig) > u-boot-rpi-3-32b (rpi_3_32b_defconfig) > u-boot-rpi-4-32b (rpi_4_32b_defconfig) > u-boot-rpi-arm64 (rpi_arm64_defconfig) Patch that builds, but haven't tested on an actual board (do have rpi2 and rpi3b+ could test sometime): diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 706ddf0207..f5a3fd51e0 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -994,6 +994,18 @@ (define-public u-boot-pinebook-pro-rk3399 `(("firmware" ,arm-trusted-firmware-rk3399) ,@(package-native-inputs base)))))) +(define-public u-boot-rpi-2 + (make-u-boot-package "rpi_2" "arm-linux-gnueabihf")) + +(define-public u-boot-rpi-3-32b + (make-u-boot-package "rpi_3_32b" "arm-linux-gnueabihf")) + +(define-public u-boot-rpi-4-32b + (make-u-boot-package "rpi_4_32b" "arm-linux-gnueabihf")) + +(define-public u-boot-rpi-arm64 + (make-u-boot-package "rpi_arm64" "aarch64-linux-gnu")) + (define-public vboot-utils (package (name "vboot-utils") Which leads me to wonder, why have the name and description argument at all, when you could just inherit and set the name, like done with the boneblack? (define-public u-boot-am335x-boneblack (let ((base (make-u-boot-package "am335x_evm" "arm-linux-gnueabihf"))) (package (inherit base) (name "u-boot-am335x-boneblack") (description "U-Boot is a bootloader used mostly for ARM boards. It also initializes the boards (RAM etc). ... And of course, thanks for working on this! :) live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYZAJPwAKCRDcUY/If5cW qnxYAP0Z7B/K+KyoxrUExE7pXIkYiRyTF+WD8UKCOGclCukR4gD/bZKdtBpvgjOA D6LTIr2JWJZbDpiSroRJDq5hGDfgWwI= =HhQ2 -----END PGP SIGNATURE----- --=-=-=--