From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0CQPFeeMX2Ck+wAAgWs5BA (envelope-from ) for ; Sat, 27 Mar 2021 20:52:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id j7zwDueMX2C3PwAA1q6Kng (envelope-from ) for ; Sat, 27 Mar 2021 19:52:07 +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 D3DB7225E3 for ; Sat, 27 Mar 2021 20:52:06 +0100 (CET) Received: from localhost ([::1]:48774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQEyc-0008Gh-2q for larch@yhetil.org; Sat, 27 Mar 2021 15:52:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQEyX-0008GW-W4 for guix-patches@gnu.org; Sat, 27 Mar 2021 15:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33442) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQEyX-0007k4-OM for guix-patches@gnu.org; Sat, 27 Mar 2021 15:52:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQEyX-0005Qw-NM for guix-patches@gnu.org; Sat, 27 Mar 2021 15:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44543] [PATCH] gnu: raspberry-pi: Add helpers for config.txt file generation. Resent-From: =?UTF-8?Q?L=C3=A9o?= Le Bouter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Mar 2021 19:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44543 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Stefan Cc: Danny Milosavljevic , 44543@debbugs.gnu.org, Mathieu Othacehe Received: via spool by 44543-submit@debbugs.gnu.org id=B44543.161687468420834 (code B ref 44543); Sat, 27 Mar 2021 19:52:01 +0000 Received: (at 44543) by debbugs.gnu.org; 27 Mar 2021 19:51:24 +0000 Received: from localhost ([127.0.0.1]:44988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQExv-0005Py-VI for submit@debbugs.gnu.org; Sat, 27 Mar 2021 15:51:24 -0400 Received: from mail.zaclys.net ([178.33.93.72]:45435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQExu-0005Pk-5t for 44543@debbugs.gnu.org; Sat, 27 Mar 2021 15:51:23 -0400 Received: from guix-xps.local (82-64-145-38.subs.proxad.net [82.64.145.38]) (authenticated bits=0) by mail.zaclys.net (8.14.7/8.14.7) with ESMTP id 12RJpEZJ022689 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 27 Mar 2021 20:51:15 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 12RJpEZJ022689 Authentication-Results: mail.zaclys.net; spf=fail smtp.mailfrom=lle-bout@zaclys.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaclys.net; s=default; t=1616874675; bh=4KXizpEeOpJIEPNh+wr8ydcGkmGh9apNIHJLjC6Wsqc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=SpBx7izw6mkPcFZdDKxHknglnqGYDug6vMeazxWShd+B7KqdEoeMyF0cso5J8RMEi zCQGW/oK4PmQBVO2o5OapKu1k9KOHNQj5n9yUVb9SVWue0mju8v0mJFQcKdHZCj5oR Qrr+EJQLnRKBvTKFe44+1pCWcyecobnr4AB+Us5k= Message-ID: <832c926ec211cab21f63ed9578c67662db7426cf.camel@zaclys.net> Date: Sat, 27 Mar 2021 20:51:10 +0100 In-Reply-To: <9537F85E-03CA-4784-85BD-0637C7A16F31@vodafonemail.de> References: <20201116103231.2c151d33@scratchpost.org> <6C52CE60-8585-4FC4-BCBC-B901CB75B35F@vodafonemail.de> <20201116150108.26a2daa7@scratchpost.org> <422D2441-7132-4983-9EFF-E6C87120CCCB@vodafonemail.de> <9537F85E-03CA-4784-85BD-0637C7A16F31@vodafonemail.de> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-t0S7vgPZz8+IoMTaxlj1" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 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" Reply-to: =?UTF-8?Q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches From: =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616874727; h=from:from:sender:sender:reply-to: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: dkim-signature; bh=4KXizpEeOpJIEPNh+wr8ydcGkmGh9apNIHJLjC6Wsqc=; b=aKwgJ7ODmSmUQxYEWF1rLZIl0c5gqCAQtdig9ZGkqd+sCBCbUOU6tfNNA6rIXQ4gXEKNSs 8o8mRBRiDFLTKN0tu2Uu/hikKaXYcvjxxgAAhjkkkgapwyR0t7rc6gWm1+3DydbND07iUr CCOPUZCU38Ln+B2slhBk8Cv9nWuScEC+HV4QsoaXBc82TKYmof/rrQqL6hsOYhirv08ebg /iz/n26jyWahKDKGOVfXFfuP4D4k3S6u9/1slLLr05mK9eY0Old2e3yEtctkhrh2UkXdvn Lb1Cd4zpV2z712MmD8Qp1xGaO3nXJ6VgmNiq+P3BY4gn/HIsL70XKVg0PmgmJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616874727; a=rsa-sha256; cv=none; b=r9lebflctcxhWKMaqVF6FyFj/UntAkPeZ5ME4nS9Rr/25demCZb1OTPltlfiD6Ncd5bHkL /byOmCMJfrxTKc8VZ76l4Da7+bIx2DWeE8crCOp39lEi4oRcCZcMo+Ek3UWZr3/Qrz6uLi OCCHqGKBkSHVTZZL7AaNP+yuCnkQW6Op7AYMcpBXQwAmxxXKst18t6mm9/Za2ZcPsiOilj miOgpHKxYP62wYmCvBgAsIB3plZZb4CfqMCqr67tm192/HvxrkDDFxtSKztLdoAXhmfy7J 6cyGaSIWvXoh5epfu3naE5mtYDkd3WOfesMiPlquIiQvSQvXfe8ML5CplIQ5iA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b=SpBx7izw; dmarc=pass (policy=none) header.from=gnu.org; 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: -5.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b=SpBx7izw; dmarc=pass (policy=none) header.from=gnu.org; 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: D3DB7225E3 X-Spam-Score: -5.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: NoBcZSkUVOna --=-t0S7vgPZz8+IoMTaxlj1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2021-03-27 at 20:43 +0100, Stefan wrote: > Hi L=C3=A9o! >=20 > > I have a Raspberry Pi 3B+ here at home, how can I test these > > changes? > >=20 > > I don't feel capable to review this without testing something as a > > whole verifying that it works then inspecting these things that > > make it > > work. >=20 > The support for the Raspberry is still not complete. I=E2=80=99m using mi= ne > without an SD card, booting it over TFTP with an NFS root mount. >=20 > Installing on an SD card is not tested and certainly not working yet. >=20 > One of my next patches will be several u-boot packages for different > Raspberry models. To build them I need to do changes to the defconfig > file of u-boot. Therefore another ticket is pending, which eases > defconfig modifications (;, and I > hope this can also be used to modify Linux). When that one is done, > then I will send that next patch to add the u-boot packages.=20 >=20 > My bootloader currently looks like this, but I=E2=80=99m using already > further modifications, mainly for GRUB, so this will not work for > you, but you can get an impression of the final intended use of all > patches: >=20 > (bootloader > (bootloader-configuration > (target "/boot") > (bootloader (efi-bootloader-chain > grub-efi-netboot-removable-bootloader > ;; Packages needed to boot the Raspberry. > #:packages (list raspberrypi-firmware=20 > u-boot-rpi-efi-64) > ;; Additional files for configuration. > #:files (list ;; Detects 32 or 64 bit, includes > other txt files. > raspi-config-txt > ;; Use the downstream device tree > (upstream is bcm28). > raspi-bcm27-dtb-txt > ;; This is the next boot stage. > raspi-u-boot-bootloader-txt=20 > ;; Additional configurations to use. > (raspi-custom-txt > '("disable_overscan=3D1" > "hdmi_force_hotp > lug=3D1" > "audio=3Don" > "dtoverlay=3Dgpio- > ir" > "dtoverlay=3Ddisab > le-wifi" > "dtoverlay=3Dvc4- > fkms-v3d,cma-64"))))))) >=20 > Your bootloader configuration would need to look like this, and you > may get it running from an SD card: >=20 > (bootloader > (bootloader-configuration > (target "/boot") > (bootloader > (efi-bootloader-chain > (list (file-append firmware "/boot/") > (file-append u-boot-my-scb "/libexec/u-boot.bin") > raspi-config-txt > raspi-bcm27-dtb-txt > raspi-u-boot-bootloader-txt) > grub-efi-netboot-bootloader > #:installer > (chain-efi-bootloader-installer (install-grub-efi-netboot > "efi/boot"))))) >=20 > So you need to provide firmware and u-boot (still) yourself. As a > short cut you may omit both (file-append =E2=80=A6) functions and copy bo= th > parts by hand from some other distribution, maybe openSUSE =E2=80=93 this= is > basically how I got started. >=20 > If you mount an ext4-partition of an SD card to e.g. /my-target/ and > the FAT partition to /my-target/boot, then you may try a =E2=80=98guix sy= stem > init =E2=80=A6 /my-target=E2=80=99. >=20 > If this succeeds, then it may be possible that adding the file /my- > target/boot/efi/boot/grub.cfg with this content gets you to a system > booting from an SD card: >=20 > search --file /boot/grub/grub.cfg > configfile /boot/grub/grub.cfg >=20 > But this is all untested, it certainly fails. :-) >=20 > At least =E2=80=93 regarding this patch =E2=80=93 I can ensure that the t= hree config > files as used in these bootloader examples are properly generated > working. > =20 >=20 > Bye >=20 > Stefan Thanks for all your work! I would prefer if you opened one single bug with all the changes so I can test the whole thing, right now I don't feel at ease reviewing things like this. How can I be sure what you are submitting is the right abstraction for your future work? Are you sure that abstraction will be right for your future patches? If anything needs to be changed I feel like one big patchset about Raspberry Pi 3B+ support will be easier to review (at least for me). L=C3=A9o --=-t0S7vgPZz8+IoMTaxlj1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEFIvLi9gL+xax3g6RRaix6GvNEKYFAmBfjK4ACgkQRaix6GvN EKYRrhAAwCnV8/8CKFE94E6zwc2yrhzIfI1omr1FUCtbEKFGHeQZ66AB8J8CA5Vn BQ49D2gMKMXu7+VNbnjMyI332xeyctT3HOQqdAby/PasR3RbBGQB1J5fHhZUNZ9l VkTYLAXQrYax6goSJeIuvo9ApHYnlZ+k0Q/OIxNAvQkv9VnnlRqhFneKCJo/yfA9 hiYLKc6SM6fIkOdyb6GU2p0tFIa6F5pirjJzxViMjA4ONRtZ8xGDiC7gHYpqfINi ugcehRLOREbvCGtQMTidS1Zs6XILv4JI8vXBxPbkLbYAzSEXyMbeJpb+v16k4Aj0 7Jjbiy+7l3HPmZzQxsMv7c/QYfkj+l2TYm0ifHBesn06Yzzwfl2OhIxpa/KqQxke fH+5eh5xJ0u/uLJB1gA9khS3NcyW7MWBxj4VSU34E63KIUtY+fjkQlXijJVN+jDb gBx5vTvpc6V+/ho0x4GQp7OKE1vfCwklEsPdNhCyT9TT6lueAVYBXQFr4IMkT/DL skAr4WTBQ4xEjjDUtpdGBDwi0xwg/DonGUuZcWdHRFqRknVtwbHTQgft98Y8dWo1 Ru9Aa4yB/X9yu03jrgIo9uX7fielfZ7V/h9To66Azl7piF6ePwgfnXhqiJxH8uxD LuGKNanxVjZo+SaWhAeJlK/48Iq/4HcYPeED4CEb6bC6+2PV29Q= =KcUY -----END PGP SIGNATURE----- --=-t0S7vgPZz8+IoMTaxlj1--