From patchwork Mon Feb 13 12:19:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pelzflorian (Florian Pelz)" X-Patchwork-Id: 46922 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 017E9166A1; Mon, 13 Feb 2023 12:20:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 215F616693 for ; Mon, 13 Feb 2023 12:20:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRXoX-0007em-SZ; Mon, 13 Feb 2023 07:20:09 -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 1pRXoQ-0007eV-Ig for guix-patches@gnu.org; Mon, 13 Feb 2023 07:20: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 1pRXoP-0002i4-Ub for guix-patches@gnu.org; Mon, 13 Feb 2023 07:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRXoP-0005cU-L9 for guix-patches@gnu.org; Mon, 13 Feb 2023 07:20:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61474] [PATCH work in progress] system: examples: Update Beaglebone Black system definition. Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Feb 2023 12:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61474 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61474@debbugs.gnu.org Cc: Frank Terbeck X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167629076621554 (code B ref -1); Mon, 13 Feb 2023 12:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2023 12:19:26 +0000 Received: from localhost ([127.0.0.1]:47890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRXnp-0005ba-MO for submit@debbugs.gnu.org; Mon, 13 Feb 2023 07:19:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:57052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRXnn-0005bS-DY for submit@debbugs.gnu.org; Mon, 13 Feb 2023 07:19:23 -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 1pRXnn-0007bG-7t for guix-patches@gnu.org; Mon, 13 Feb 2023 07:19:23 -0500 Received: from relay.yourmailgateway.de ([188.68.63.102]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRXnj-0002YT-E4 for guix-patches@gnu.org; Mon, 13 Feb 2023 07:19:22 -0500 Received: from mors-relay-2502.netcup.net (localhost [127.0.0.1]) by mors-relay-2502.netcup.net (Postfix) with ESMTPS id 4PFk0f6Qv0z5xN0; Mon, 13 Feb 2023 13:19:14 +0100 (CET) Authentication-Results: mors-relay-2502.netcup.net; dkim=permerror (bad message/signature format) Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2502.netcup.net (Postfix) with ESMTPS id 4PFk0f5fm4z4xPq; Mon, 13 Feb 2023 13:19:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4PFk0d5DG1z8t3S; Mon, 13 Feb 2023 13:19:13 +0100 (CET) Received: from florianrock64 (ip5b40a50f.dynamic.kabel-deutschland.de [91.64.165.15]) by mxe217.netcup.net (Postfix) with ESMTPSA id 21C68802DF; Mon, 13 Feb 2023 13:19:07 +0100 (CET) From: "pelzflorian (Florian Pelz)" Date: Mon, 13 Feb 2023 13:19:04 +0100 Message-ID: <87sff992rr.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Rspamd-Queue-Id: 21C68802DF X-Spamd-Result: default: False [-0.10 / 15.00]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ZERO(0.00)[0]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3209, ipnet:91.64.0.0/14, country:DE]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: e4vqHiXu2JVQ4QsK4xjxdIs/j0/4r0CCShaTnYkN9KEx0xHbB08BRpkS Received-SPF: none client-ip=188.68.63.102; envelope-from=pelzflorian@pelzflorian.de; helo=relay.yourmailgateway.de 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches I am still working on this; just sending the current state of things, because I won't finish soon and if someone has comments or if someone finds it useful. This *fails to boot* after invoking 'swapon' on an external USB SSD's swap partition and running 'guix system reconfigure'. Additionally, currently Inkscape does not build (see bug#60121) and had to be cut out of the dependency graph by, in the local guix checkout, removing the 'bluez' input of 'pulseaudio' and removing the 'ibus-minimal' input of 'sdl2'. Also 'fakeroot' does not build unless downgraded to version 1.28 (see bug#61206 maybe). Note: After installing u-boot-beaglebone-black-bootloader onto /dev/mmcblk1 the Beaglebone Black cannot boot anymore. Don't install it there. Use a 'guix system image' or another bootloader target and don't touch the bootloader that was there before. TODO Bisect which change broke this. Reported by Frank Terbeck . * gnu/system/examples/beaglebone-black.tmpl (initrd-modules): None are needed anymore; pass the empty list. (kernel): Use a more specific kernel. (packages): Specify more useful packages. (services): Add NTP service. For agetty, use ttyS0, which is the UART port now. --- I dedicate this patch to the public domain as per the Creative Commons Zero. gnu/system/examples/beaglebone-black.tmpl | 42 +++++++++++++++-------- 1 file changed, 27 insertions(+), 15 deletions(-) base-commit: 0890cb97473f1ec8d03cec2347f63deb546d2231 diff --git a/gnu/system/examples/beaglebone-black.tmpl b/gnu/system/examples/beaglebone-black.tmpl index 40d0a76a37..cbb5f2ef14 100644 --- a/gnu/system/examples/beaglebone-black.tmpl +++ b/gnu/system/examples/beaglebone-black.tmpl @@ -4,7 +4,7 @@ (use-modules (gnu) (gnu bootloader u-boot)) (use-service-modules networking) -(use-package-modules bootloaders screen ssh) +(use-package-modules certs linux) (operating-system (host-name "komputilo") @@ -17,8 +17,15 @@ (bootloader u-boot-beaglebone-black-bootloader) (targets '("/dev/mmcblk1")))) - ;; This module is required to mount the SD card. - (initrd-modules (cons "omap_hsmmc" %base-initrd-modules)) + ;; This less generic kernel image also contains the + ;; needed dtb files in its lib/dtbs subdirectory. + (kernel linux-libre-arm-omap2plus) + + ;; TODO Try to fix HDMI, see https://elinux.org/Beagleboard:BeagleBoneBlack_HDMI + ;; (kernel-arguments '("")) + + ;; No additional drivers are required. + (initrd-modules '()) (file-systems (cons (file-system (device (file-system-label "my-root")) @@ -43,15 +50,20 @@ %base-user-accounts)) ;; Globally-installed packages. - (packages (append (list screen openssh) %base-packages)) - - (services (append (list (service dhcp-client-service-type) - ;; mingetty does not work on serial lines. - ;; Use agetty with board-specific serial parameters. - (agetty-service - (agetty-configuration - (extra-options '("-L")) - (baud-rate "115200") - (term "vt100") - (tty "ttyO0")))) - %base-services))) + (packages (append (list nss-certs) %base-packages)) + + (services (append (list + ;; Ethernet cannot be plugged in after booting, + ;; other than that, networking works OK with this: + (service dhcp-client-service-type) + ;; For receiving the right time. + (service ntp-service-type) + ;; mingetty does not work on serial lines. + ;; Use agetty with board-specific serial parameters. + (agetty-service + (agetty-configuration + (extra-options '("-L")) + (baud-rate "115200") + (term "vt100") + (tty "ttyS0")))) + %base-services)))