From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +ISpCxeLX2A7+AAAgWs5BA (envelope-from ) for ; Sat, 27 Mar 2021 20:44:23 +0100 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 nkVjBReLX2BEPgAAbx9fmQ (envelope-from ) for ; Sat, 27 Mar 2021 19:44:23 +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 28401217DF for ; Sat, 27 Mar 2021 20:44:22 +0100 (CET) Received: from localhost ([::1]:45756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQEr6-0006aQ-OL for larch@yhetil.org; Sat, 27 Mar 2021 15:44:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQEqo-0006Ya-C2 for guix-patches@gnu.org; Sat, 27 Mar 2021 15:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQEqo-00049A-2b for guix-patches@gnu.org; Sat, 27 Mar 2021 15:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQEqn-0005EM-Vj for guix-patches@gnu.org; Sat, 27 Mar 2021 15:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44543] [PATCH] gnu: raspberry-pi: Add helpers for config.txt file generation. Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Mar 2021 19:44: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: =?UTF-8?Q?L=C3=A9o?= Le Bouter Cc: Danny Milosavljevic , 44543@debbugs.gnu.org, Mathieu Othacehe Received: via spool by 44543-submit@debbugs.gnu.org id=B44543.161687419520048 (code B ref 44543); Sat, 27 Mar 2021 19:44:01 +0000 Received: (at 44543) by debbugs.gnu.org; 27 Mar 2021 19:43:15 +0000 Received: from localhost ([127.0.0.1]:44974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQEq3-0005DH-Fw for submit@debbugs.gnu.org; Sat, 27 Mar 2021 15:43:15 -0400 Received: from smtpout2.vodafonemail.de ([145.253.239.133]:52398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQEpy-0005D1-Ep for 44543@debbugs.gnu.org; Sat, 27 Mar 2021 15:43:14 -0400 Received: from smtp.vodafone.de (smtpa04.fra-mediabeam.com [10.2.0.35]) by smtpout2.vodafonemail.de (Postfix) with ESMTP id CBC8C1216CD; Sat, 27 Mar 2021 20:43:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-smtpout-mb-15sep; t=1616874184; bh=lnd8embVbKXUVcJMQhJhAds1GtYr0SOEOPt/KySSNdo=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=qtJGXRSioTvk1JaJTfcREHOlEc5CHlCIzicMP4ElRFFP99dw9tjm2YZdk9Kndu8pe AA/cPLn8jxu3gbLluC4jG3u3cxM4S0vgpHCuu0jfo2NKnXbKYOa5QVf78CT4d0YKk6 Ms9pyYpftf1AK42LBXlhJvQr69J5h400hljH9IJQ= Received: from macbook-pro.kuh-wiese.my-router.de (dslb-178-005-077-213.178.005.pools.vodafone-ip.de [178.5.77.213]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 8C463140181; Sat, 27 Mar 2021 19:43:03 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Stefan In-Reply-To: Date: Sat, 27 Mar 2021 20:43:02 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <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> X-Mailer: Apple Mail (2.3124) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 4054 X-purgate-ID: 155817::1616874184-00004492-BA025782/0/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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616874262; 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: content-transfer-encoding:content-transfer-encoding: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=lnd8embVbKXUVcJMQhJhAds1GtYr0SOEOPt/KySSNdo=; b=PTSOskANGelIrPsp6oFoDaO9EaJrdOdYhL0PGAWtBhabwMKZoeK3WvLN0PSPDNSZx/xu02 Uxu7PvU/tjLgfNK25alYA3Zd8OUpGS+kDkdWDhSmIij3YvdpJAfvMtoCQRgiHJ6mnW2T/z PiDXxVIWIc5qDb1UeCLdsllSdL0RAVKKLQpkmV28sg85dX2mMfbOuv5s433uxnoRrFUZZt l9BANqNns64QYybAZA7I6+eLHCXaufc2QYYCzA3DoISCxE/wbNMWNqGw7pTkzR4n+/Hvde gQ8IqWVu1G9TnQZLIMtHqursJC6BdW1pfG+KXz5B1mzTgoc6fmPbD50QJ3H15Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616874262; a=rsa-sha256; cv=none; b=ePOKLKqebBOduKZKq2/2E3ME/CkvMms8Vea4gMtN+XVCvrXDEMT2BgdcFI4SrFiKTxwtZE f8vepVXt2p7Xns3O2pdlAE0vtt6zBDYZN+384oVLX5aLbwMgv5wVcYhPIqX77xvszyKr9h Cz8kVniMDlCDKT2erdSVnLJq1BMMcPsn0vOtylKLzv4yQ5oExQf3/X6ATnfUdXEUME4Zel vsYz1zqeDQ4whrlwBVvtFTh3GoPoeC+U3WjiGdGXKWWsS99VEuasZxFcOZ+OZGJ6/WxSqR KGnKpA8NvOtHp+xjlGJckzxApGN++5rbew8td8Ij0Q19rpGjoTguh00ariJHKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=vodafonemail.de header.s=vfde-smtpout-mb-15sep header.b=qtJGXRSi; 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-Spam-Score: -0.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=vodafonemail.de header.s=vfde-smtpout-mb-15sep header.b=qtJGXRSi; 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: 28401217DF X-Spam-Score: -0.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: BNbxEu7wbJfe Hi L=C3=A9o! > 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. The support for the Raspberry is still not complete. I=E2=80=99m using = mine without an SD card, booting it over TFTP with an NFS root mount. Installing on an SD card is not tested and certainly not working yet. 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 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: (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_hotplug=3D1" "audio=3Don" "dtoverlay=3Dgpio-ir"= = "dtoverlay=3Ddisable-wifi" = "dtoverlay=3Dvc4-fkms-v3d,cma-64"))))))) Your bootloader configuration would need to look like this, and you may = get it running from an SD card: (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"))))) 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 both = parts by hand from some other distribution, maybe openSUSE =E2=80=93 = this is basically how I got started. 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 = system init =E2=80=A6 /my-target=E2=80=99. 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: search --file /boot/grub/grub.cfg configfile /boot/grub/grub.cfg But this is all untested, it certainly fails. :-) At least =E2=80=93 regarding this patch =E2=80=93 I can ensure that the = three config files as used in these bootloader examples are properly = generated working. =20 Bye Stefan=