GNU bug report logs - #61474
[PATCH work in progress] system: examples: Update Beaglebone Black system definition.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>; Keywords: patch moreinfo; dated Mon, 13 Feb 2023 12:20:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added tag(s) moreinfo. Request was from Christopher Baines <mail@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Feb 2023 12:19:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 13 07:19:26 2023
Received: from localhost ([127.0.0.1]:47890 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pRXnp-0005ba-MO
	for submit <at> 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 <pelzflorian@HIDDEN>) id 1pRXnn-0005bS-DY
 for submit <at> 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 <pelzflorian@HIDDEN>)
 id 1pRXnn-0007bG-7t
 for guix-patches@HIDDEN; 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 <pelzflorian@HIDDEN>)
 id 1pRXnj-0002YT-E4
 for guix-patches@HIDDEN; 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
X-Spam-Flag: NO
X-Spam-Score: -2.899
X-Spam-Level: 
X-Spam-Status: No, score=-2.899 required=6.31 tests=[ALL_TRUSTED=-1,
 BAYES_00=-1.9, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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)" <pelzflorian@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH work in progress] system: examples: Update Beaglebone
 Black system definition.
Date: Mon, 13 Feb 2023 13:19:04 +0100
Message-ID: <87sff992rr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
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@HIDDEN; 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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
Cc: Frank Terbeck <ft@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

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
<https://lists.gnu.org/archive/html/help-guix/2022-07/msg00165.html>.

* 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(-)

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)))

base-commit: 0890cb97473f1ec8d03cec2347f63deb546d2231
-- 
2.39.1





Acknowledgement sent to "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#61474; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 13 Feb 2023 17:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.