From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uCHEOezBfWEheAAAgWs5BA (envelope-from ) for ; Sun, 31 Oct 2021 00:06:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id jNdINezBfWGEEQAAbx9fmQ (envelope-from ) for ; Sat, 30 Oct 2021 22:06:36 +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 78B6273DD for ; Sun, 31 Oct 2021 00:06:36 +0200 (CEST) Received: from localhost ([::1]:34474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgwUl-00060t-MI for larch@yhetil.org; Sat, 30 Oct 2021 18:06:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgwU9-00060i-QF for help-guix@gnu.org; Sat, 30 Oct 2021 18:05:58 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:59140) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgwU7-0001LG-AZ for help-guix@gnu.org; Sat, 30 Oct 2021 18:05:56 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 9C0A81AA2C; Sat, 30 Oct 2021 15:05:53 -0700 (PDT) From: Vagrant Cascadian To: phodina , help-guix Subject: Re: U-Boot for Raspberry Pi In-Reply-To: References: Date: Sat, 30 Oct 2021 15:05:32 -0700 Message-ID: <87h7cygocz.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net 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, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635631596; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=4AvDJn/0n1TxTACHRGT5qWPHJBOEcyYOyOMlk1J3duY=; b=RuBebMAqcu/DwR3BZNSCj4odpstXhHCvIInvg0Y7rCPSBJgu7BopT/Q8MR2rW1B2vWzhGx T1SlI1zIYJ2wxDUoYaqHleAeavfAZKo+xVnn3ZbP3E3JOtPD56b1Gf4/TsnuXW0xUBdUXR TJdsCtizfzZPMyj+PVEMLwztDyy9NtNDttUB0TszAesIH4/A0hyrxQP8IQWHnI6mCVr+of NElP3woT5fjSSaFKVeXehk5A0tlpNLMVK8OYXF98jzCZU63vgSCLwCqoZycOVcr9Ty0wk9 uLfdvnNNV1jx/BZ5NWHKnaVhBBlHy2hPWozwDrlQHcH2b0Oc11VNtHIY7ynu+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635631596; a=rsa-sha256; cv=none; b=rEuslk+GidIuT24dDXMXQB9/OWX8CD/phImEDIsxga/HtbrXfIFBU+a2bRtgKLS9pz7IjR TmalubTRcu+bn0sE6oQlMabU9OErUuRzaIceFpk+XFDqZwekhBeKX5mYOP5rvtehyA53qh YHDSK8/RQXTPxK6JnU0h9j16/cjIIjSXzrlDKT688C0MH163hFMPfEcWlWTx0S5Ikh60ge NwYdqMueiaC8hgBnfLuQdq7Swn0MdN1ba0YGqOLONXpSEESTYg79ZnUZe0ebAtplb8hujv 2PYXrT+nBGva77UxoEoWHZqv9tnPpcq9FEqD5VpMXYXXioCfA1yGmVlQ2RjM9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 78B6273DD X-Spam-Score: -4.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: CJEPj7vd+IT8 --=-=-= Content-Type: text/plain On 2021-10-30, phodina via wrote: > I'm trying to run Guix System on Raspberry Pi. In order to do that we > need a way to boot it up. > > There is the nonfree Broadcom bootloader, which does the job and it's > used by many distributions. > > However, there is also an open source alternative as U-Boot supports > the BCM SoCs. Well, you still need to load u-boot from the broadcom firmware/bootloader... > If I inherit from the u-boot itself and specify the name, it's then in the list and I can build it. > But the I can't use the package for the bootloader record. > > There must be something trivial I had overlooked. > > Could you please guide me on the procedure for porting the u-boot to new board as a new Guix package? There are install targets defined in gnu/bootloader/u-boot.scm, though most (all?) of those targets install to a raw device offset, whereas u-boot for the rpi needs u-boot.bin to be copied to your firmware partition and needs to be specified as a "kernel" in config.txt, if I recall correctly. > (define-public u-boot-raspberry-pi-4 > (make-u-boot-package "rpi_4" "aarch64-linux-gnu")) I would also try to keep the u-boot-BOARD matching the defconfig, e.g. u-boot-rpi-4 instead of u-boot-raspberry-pi-4. Not for any technical reason, per se, just keeping the u-boot target naming consistent. You might want to just build the u-boot package, and then manually copy it to your firmware partition and configure that appropriately once, and then just use guix to generate and update the extlinux.conf... I forget the exact syntax to generate extlinux.conf without actually installing u-boot, but I've done it in the past. Another option would be to build the raspberry pi UEFI (not 100% sure of the licensing, but reasonably free) instead of u-boot, and then use guix's standard UEFI configuration with grub-efi and such. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYX3BrAAKCRDcUY/If5cW qr4oAP4jRWZ4r1aLz12u/TJAm8Y8noDpehA4GQ9mianPlypqRAD/ZDs482+WxAdM YqJ6ti2bOQ9VwOu7hAls+vcXCgUbOQg= =HzyT -----END PGP SIGNATURE----- --=-=-=--