GNU bug report logs - #72987
[PATCH] gnu: u-boot: Enlarge space available for kernel.

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: Herman Rimm <herman@HIDDEN>; Keywords: patch; dated Mon, 2 Sep 2024 19:09:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

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


Received: (at 72987) by debbugs.gnu.org; 13 Dec 2024 21:08:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 13 16:08:59 2024
Received: from localhost ([127.0.0.1]:44356 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tMCuB-0004Cc-DY
	for submit <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:59 -0500
Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:59747
 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <herman@HIDDEN>) id 1tMCtm-0004Ae-Im
 for 72987 <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:57 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman;
 t=1734124101;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=RFA3Xqoplfqznc+txqIkONvUSeIdlQhkiPxIm165gMY=;
 b=Y9g/XOUIqJo5A4H+fW/7AnqGcyXtoYPXScumc3vBCBn6XXdAOvIMOM+4GPX54ZxkW1OhwZ
 KVXVycQd1bZA911NfWtakB/MJq6t/Lg+0mENGgicNY7pkRIAQgsTPcbQUavKXUtFxcfOSg
 6w/gocyKF/0/hy2WZFCh8eGziNOeT1E2c9OZVVT/FaWVM+IJBB7kx+TOv6RkybbA3iFcGP
 Mk2qxDVcU4LFy94Fn7wMPm9MutwmdYUZja9Wy1YO6ewSOcbvllOw/hBJdFyVPOh5JzhWHA
 6e1f1xb6XjqkJqlcsbZp91DnSJfv8+OnwRUT6dkVwCjDKO0ga+/W9B+PtweaHA==
Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id a441c7b0
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO)
 for <72987 <at> debbugs.gnu.org>; Fri, 13 Dec 2024 21:08:21 +0000 (UTC)
From: Herman Rimm <herman@HIDDEN>
To: 72987 <at> debbugs.gnu.org
Subject: [PATCH v3 4/5] gnu: bootloader: Add orangepi-zero2w bootloader.
Date: Fri, 13 Dec 2024 22:07:35 +0100
Message-ID: <88ebf15a930627469311be3126a20234e4051710.1734122005.git.herman@HIDDEN>
X-Mailer: git-send-email 2.45.2
In-Reply-To: <cover.1734122005.git.herman@HIDDEN>
References: <cover.1734122005.git.herman@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN>,
 Vagrant Cascadian <vagrant@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: * gnu/bootloader/u-boot.scm
 (u-boot-orangepi-zero2w-bootloader):
 Add variable. * gnu/packages/bootloaders.scm (u-boot-orangepi-zero2w): Add
 variable. * gnu/packages/firmware.scm (arm-trusted-firmware- [...] 
 Content analysis details:   (3.6 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in sa-accredit.habeas.com]
 3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
 [81.205.150.117 listed in zen.spamhaus.org]
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in bl.score.senderscore.com]
 0.0 TVD_RCVD_IP            Message was received from an IP address
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
X-Debbugs-Envelope-To: 72987
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: 2.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  * gnu/bootloader/u-boot.scm (u-boot-orangepi-zero2w-bootloader):
    Add variable. * gnu/packages/bootloaders.scm (u-boot-orangepi-zero2w): Add
    variable. * gnu/packages/firmware.scm (arm-trusted-firmware- [...] 
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
                             The query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                             [81.205.150.117 listed in sa-accredit.habeas.com]
  3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
                             [81.205.150.117 listed in zen.spamhaus.org]
  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                            [81.205.150.117 listed in bl.score.senderscore.com]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

* gnu/bootloader/u-boot.scm (u-boot-orangepi-zero2w-bootloader): Add
variable.
* gnu/packages/bootloaders.scm (u-boot-orangepi-zero2w): Add variable.
* gnu/packages/firmware.scm (arm-trusted-firmware-sun50i-h616): Add
variable.

Change-Id: Idb43fdabac51b3301f3bea24fec72bfa29636489
---
 gnu/bootloader/u-boot.scm    |  6 ++++++
 gnu/packages/bootloaders.scm | 18 ++++++++++++++++++
 gnu/packages/firmware.scm    |  3 +++
 3 files changed, 27 insertions(+)

diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
index 9c7df3b40f..52527ab0db 100644
--- a/gnu/bootloader/u-boot.scm
+++ b/gnu/bootloader/u-boot.scm
@@ -42,6 +42,7 @@ (define-module (gnu bootloader u-boot)
             u-boot-nintendo-nes-classic-edition-bootloader
             u-boot-novena-bootloader
             u-boot-orangepi-r1-plus-lts-rk3328-bootloader
+            u-boot-orangepi-zero2w-bootloader
             u-boot-pine64-plus-bootloader
             u-boot-pine64-lts-bootloader
             u-boot-pinebook-bootloader
@@ -231,6 +232,11 @@ (define u-boot-orangepi-r1-plus-lts-rk3328-bootloader
    (inherit u-boot-rockchip-bootloader)
    (package u-boot-orangepi-r1-plus-lts-rk3328)))
 
+(define u-boot-orangepi-zero2w-bootloader
+  (bootloader
+   (inherit u-boot-allwinner-bootloader)
+   (package u-boot-orangepi-zero2w)))
+
 (define u-boot-pine64-plus-bootloader
   (bootloader
    (inherit u-boot-allwinner64-bootloader)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index d946270317..b91ff00e28 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -1204,6 +1204,24 @@ (define*-public (make-u-boot-sunxi64-package board triplet scp-firmware
        (modify-inputs (package-inputs base)
          (append arm-trusted-firmware-sun50i-a64))))))
 
+(define-public u-boot-orangepi-zero2w
+  (let ((base (make-u-boot-package
+               "orangepi_zero2w" "aarch64-linux-gnu")))
+    (package
+      (inherit base)
+      (arguments
+       (substitute-keyword-arguments (package-arguments base)
+         ((#:phases phases)
+          #~(modify-phases #$phases
+              (add-after 'unpack 'set-environment
+                (lambda* (#:key native-inputs inputs #:allow-other-keys)
+                  (setenv "SCP" "/dev/null")
+                  (setenv "BL31" (search-input-file inputs "bl31.bin"))))))))
+      (inputs
+       (modify-inputs (package-inputs base)
+         ;; The Zero 2W uses the slightly revised Allwinner H618.
+         (append arm-trusted-firmware-sun50i-h616))))))
+
 (define-public u-boot-pine64-plus
   (make-u-boot-sunxi64-package "pine64_plus" "aarch64-linux-gnu"
                                (delay crust-pine64-plus)))
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index 868be8488c..d89b136c86 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -1168,6 +1168,9 @@ (define-public arm-trusted-firmware-sun50i-a64
       (inherit base)
       (name "arm-trusted-firmware-sun50i-a64"))))
 
+(define-public arm-trusted-firmware-sun50i-h616
+  (make-arm-trusted-firmware "sun50i_h616"))
+
 (define-public arm-trusted-firmware-rk3328
   (make-arm-trusted-firmware "rk3328"))
 
-- 
2.45.2





Information forwarded to efraim@HIDDEN, vagrant@HIDDEN, guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 13 Dec 2024 21:08:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 13 16:08:58 2024
Received: from localhost ([127.0.0.1]:44354 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tMCu9-0004CN-Ul
	for submit <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:58 -0500
Received: from [81.205.150.117] (port=36535 helo=email.rimm.ee)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <herman@HIDDEN>) id 1tMCu4-0004B5-Ax
 for 72987 <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:52 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman;
 t=1734124101;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=vNDFefsfnvXwNVX+uKThbqEWfBS1obeUtxXfD+eoW+8=;
 b=UhIpEnyRG1+UWav7bDum4nqyy9TdVRIE/52Ny2iZlPUHBhO84t/aOOmETUYJR0y14HRLtM
 cdu95EKf2Uyz1uIiKbv9f9IuO/Et3yyF3Y1jxSJgTcuPqLNMxI5lwyR1DH4+I64jDYafuN
 m9mEw82sBYEz8bQoAsrwtdZQnJXkBinXNB9Bb/68Spiy1QHcOP5o5yR3DrlVR6vtFcm/qV
 tbbZ7d/elPvLP77VHJXWqQlO/val8aJoFE2e/wnpfnH0AVJ5hnYVFlocKvcRgt8qQilofG
 rWOkGLHx4iqkhG3UYSfFuGg5umsZOOOjAwLoAZPkWUXlhumdeStBmWb/0T26ng==
Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id d7472d2f
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO)
 for <72987 <at> debbugs.gnu.org>; Fri, 13 Dec 2024 21:08:21 +0000 (UTC)
From: Herman Rimm <herman@HIDDEN>
To: 72987 <at> debbugs.gnu.org
Subject: [PATCH v3 5/5] gnu: bootloader: Add ASUS Tinker Board S bootloader.
Date: Fri, 13 Dec 2024 22:07:36 +0100
Message-ID: <aa942aa5c8e550aa6d3f4c8c80840107c70d5957.1734122005.git.herman@HIDDEN>
X-Mailer: git-send-email 2.45.2
In-Reply-To: <cover.1734122005.git.herman@HIDDEN>
References: <cover.1734122005.git.herman@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN>,
 Vagrant Cascadian <vagrant@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 4.8 (++++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  * gnu/bootloader/u-boot.scm (install-tinker-s-rk3288-u-boot, 
 u-boot-tinker-s-rk3288-bootloader): Add variables. *
 gnu/packages/bootloaders.scm
 (u-boot)[native-inputs]: Add bc. (u-boot-tinker-s-rk3288) [...] 
 Content analysis details:   (4.8 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
 [81.205.150.117 listed in zen.spamhaus.org]
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in sa-accredit.habeas.com]
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in bl.score.senderscore.com]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Debbugs-Envelope-To: 72987
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.8 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  * gnu/bootloader/u-boot.scm (install-tinker-s-rk3288-u-boot,
    u-boot-tinker-s-rk3288-bootloader): Add variables. * gnu/packages/bootloaders.scm
    (u-boot)[native-inputs]: Add bc. (u-boot-tinker-s-rk3288) [...] 
 
 Content analysis details:   (3.8 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
                             The query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                             [81.205.150.117 listed in sa-accredit.habeas.com]
  3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
                             [81.205.150.117 listed in zen.spamhaus.org]
  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                            [81.205.150.117 listed in bl.score.senderscore.com]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
  1.3 RDNS_NONE              Delivered to internal network by a host with no rDNS
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

* gnu/bootloader/u-boot.scm (install-tinker-s-rk3288-u-boot,
u-boot-tinker-s-rk3288-bootloader): Add variables.
* gnu/packages/bootloaders.scm (u-boot)[native-inputs]: Add bc.
(u-boot-tinker-s-rk3288): Add variable.
* gnu/packages/firmware.scm (arm-trusted-firmware-rk3288): Add variable.

Change-Id: Ic28193d4377c672f4cbbac4cc059e283fcfb06e0
---
 gnu/bootloader/u-boot.scm    | 10 ++++++++++
 gnu/packages/bootloaders.scm | 20 +++++++++++++++++++-
 gnu/packages/firmware.scm    |  6 ++++++
 3 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
index 52527ab0db..0d6cd5c6a8 100644
--- a/gnu/bootloader/u-boot.scm
+++ b/gnu/bootloader/u-boot.scm
@@ -53,6 +53,7 @@ (define-module (gnu bootloader u-boot)
             u-boot-sifive-unmatched-bootloader
             u-boot-qemu-riscv64-bootloader
             u-boot-starfive-visionfive2-bootloader
+            u-boot-tinker-s-rk3288-bootloader
             u-boot-ts7970-q-2g-1000mhz-c-bootloader
             u-boot-wandboard-bootloader))
 
@@ -115,6 +116,9 @@ (define install-puma-rk3399-u-boot
 (define install-rockchip-u-boot
   (write-u-boot-image '(("idbloader.img" 64) ("u-boot.itb" 16384)) 512))
 
+(define install-tinker-s-rk3288-u-boot
+  (write-u-boot-image '(("idbloader.img" 64) ("u-boot.img" 16384)) 512))
+
 (define install-sifive-unmatched-u-boot
   (write-u-boot-image '(("spl/u-boot-spl.bin" 34) ("u-boot.itb" 2082))
                       512))
@@ -273,6 +277,12 @@ (define u-boot-pinebook-pro-rk3399-bootloader
    (inherit u-boot-rockchip-bootloader)
    (package u-boot-pinebook-pro-rk3399)))
 
+(define u-boot-tinker-s-rk3288-bootloader
+  (bootloader
+    (inherit u-boot-bootloader)
+    (package u-boot-tinker-s-rk3288)
+    (disk-image-installer install-tinker-s-rk3288-u-boot)))
+
 (define u-boot-ts7970-q-2g-1000mhz-c-bootloader
   ;; This bootloader doesn't really need to be installed, as it is read from
   ;; an SPI memory chip, not the SD card.  It is copied to /boot/u-boot.imx
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index b91ff00e28..4516e343b2 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -39,6 +39,7 @@
 
 (define-module (gnu packages bootloaders)
   #:use-module (gnu packages)
+  #:use-module (gnu packages algebra)
   #:use-module (gnu packages assembly)
   #:use-module (gnu packages base)
   #:use-module (gnu packages disk)
@@ -763,7 +764,8 @@ (define u-boot
                                 "u-boot-rockchip-inno-usb.patch"))))
     (build-system gnu-build-system)
     (native-inputs
-     (list bison
+     (list bc
+           bison
            dtc
            gnutls
            flex
@@ -1308,6 +1310,22 @@ (define-public u-boot-cubietruck
 (define-public u-boot-puma-rk3399
   (make-u-boot-rockchip-package "puma" 'rk3399))
 
+(define-public u-boot-tinker-s-rk3288
+  (let ((base (make-u-boot-package "tinker-s-rk3288" "arm-linux-gnueabihf")))
+    (package
+      (inherit base)
+      (arguments
+       (substitute-keyword-arguments (package-arguments base)
+         ((#:phases phases)
+          #~(modify-phases #$phases
+              (add-after 'unpack 'set-environment
+                (lambda* (#:key inputs #:allow-other-keys)
+                  ;; ARMv7 does not have the BL31 stage.
+                  (setenv "BL32" (search-input-file inputs "/bl32.elf"))))))))
+      (inputs
+       (modify-inputs (package-inputs base)
+         (append arm-trusted-firmware-rk3288))))))
+
 (define-public u-boot-qemu-arm
   (make-u-boot-package "qemu_arm" "arm-linux-gnueabihf"
                        ;; Disable features that require OpenSSL due
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index d89b136c86..670cef5a02 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -1171,6 +1171,12 @@ (define-public arm-trusted-firmware-sun50i-a64
 (define-public arm-trusted-firmware-sun50i-h616
   (make-arm-trusted-firmware "sun50i_h616"))
 
+(define-public arm-trusted-firmware-rk3288
+  (make-arm-trusted-firmware "rk3288" #:triplet "arm-linux-gnueabihf"
+                             #:make-flags '("ARCH=aarch32"
+                                            "AARCH32_SP=sp_min"
+                                            "DEBUG=1")))
+
 (define-public arm-trusted-firmware-rk3328
   (make-arm-trusted-firmware "rk3328"))
 
-- 
2.45.2





Information forwarded to efraim@HIDDEN, vagrant@HIDDEN, guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 13 Dec 2024 21:08:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 13 16:08:57 2024
Received: from localhost ([127.0.0.1]:44351 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tMCu8-0004CE-TE
	for submit <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:57 -0500
Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:41455
 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <herman@HIDDEN>) id 1tMCtg-0004AN-IA
 for 72987 <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:35 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman;
 t=1734124099;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=FZq0zPLFIm33dmlhRs1BdcZArw8yTf8iNIziSZCcso0=;
 b=prW9FHbAoXVttVDJzjkPvXPcDRTOBoLG66b2yWQFlZGNqFvGEpLj8Gkbs8hnC22HHZH15i
 nJOTDgNoIUQUYfcE15FaIk/T55oWLnty5GHPL8/53z0f8wL2jX71JV2jxTDC7J87UBSWtw
 +Dwkwk2QtXY3J6qV/hggX+wheLkBA6pDU76c25RnsUlrmLeObCRS+fxMLvNPEf+VlmPPuA
 H8UHOQOySok7BIUlQU6gzIX5KEwV++UAo1xsI0tIYkAHzrlVibpdbYivHREyZkSJu0CFPe
 LpVhVvIjR3WuVsqnf2ep40KHDpcucDyYsHXYAe5O8EzuAvQ2AYoTujob2AAvaA==
Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 9b99ea32
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO)
 for <72987 <at> debbugs.gnu.org>; Fri, 13 Dec 2024 21:08:19 +0000 (UTC)
From: Herman Rimm <herman@HIDDEN>
To: 72987 <at> debbugs.gnu.org
Subject: [PATCH v3 1/5] gnu: u-boot: Enlarge space available for kernel.
Date: Fri, 13 Dec 2024 22:07:32 +0100
Message-ID: <c121fa3727428f6e43f9722676288e9b6c989fa8.1734122005.git.herman@HIDDEN>
X-Mailer: git-send-email 2.45.2
In-Reply-To: <cover.1734122005.git.herman@HIDDEN>
References: <cover.1734122005.git.herman@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN>,
 Vagrant Cascadian <vagrant@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 72987
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: 2.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  * gnu/packages/bootloaders.scm (u-boot)[source]: Add patch.
    * gnu/packages/patches/u-boot-50M-kernel.patch: Add file. * gnu/local.mk
   (dist_patch_DATA): Register patch. Change-Id: Ib0074d888a3553543b491e9198f9b9a1162722f3
    --- gnu/local.mk | 3 +- gnu/packages/bootloaders.scm | 1 + gnu/packages/patches/u-boot-50M-kernel.patch
    | 55 ++++++++++++++++++++ 3 files changed, [...] 
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
                             The query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                             [81.205.150.117 listed in sa-accredit.habeas.com]
  3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
                             [81.205.150.117 listed in zen.spamhaus.org]
  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                            [81.205.150.117 listed in bl.score.senderscore.com]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

* gnu/packages/bootloaders.scm (u-boot)[source]: Add patch.
* gnu/packages/patches/u-boot-50M-kernel.patch: Add file.
* gnu/local.mk (dist_patch_DATA): Register patch.

Change-Id: Ib0074d888a3553543b491e9198f9b9a1162722f3
---
 gnu/local.mk                                 |  3 +-
 gnu/packages/bootloaders.scm                 |  1 +
 gnu/packages/patches/u-boot-50M-kernel.patch | 55 ++++++++++++++++++++
 3 files changed, 58 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/u-boot-50M-kernel.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index ace19eb8a4..4da94f68e2 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -62,7 +62,7 @@
 # Copyright © 2023 B. Wilson <elaexuotee@HIDDEN>
 # Copyright © 2023 Bruno Victal <mirai@HIDDEN>
 # Copyright © 2023, 2024 gemmaro <gemmaro.dev@HIDDEN>
-# Copyright © 2023 Herman Rimm <herman@HIDDEN>
+# Copyright © 2023, 2024 Herman Rimm <herman@HIDDEN>
 # Copyright © 2023 Troy Figiel <troy@HIDDEN>
 # Copyright © 2024 David Elsing <david.elsing@HIDDEN>
 # Copyright © 2024 Ashish SHUKLA <ashish.is@HIDDEN>
@@ -2273,6 +2273,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/turbovnc-find-system-packages.patch	\
   %D%/packages/patches/tuxpaint-stamps-path.patch		\
   %D%/packages/patches/twinkle-bcg729.patch			\
+  %D%/packages/patches/u-boot-50M-kernel.patch			\
   %D%/packages/patches/u-boot-allow-disabling-openssl.patch	\
   %D%/packages/patches/u-boot-nintendo-nes-serial.patch		\
   %D%/packages/patches/u-boot-rockchip-inno-usb.patch		\
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 5183b2fc14..478385fb18 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -758,6 +758,7 @@ (define u-boot
        (sha256
         (base32 "0yrhb0izihv47p781dc4cp0znc5g225ayl7anz23c6jdrmfbpz2h"))
        (patches (search-patches "u-boot-allow-disabling-openssl.patch"
+                                "u-boot-50M-kernel.patch"
                                 "u-boot-rockchip-inno-usb.patch"))))
     (build-system gnu-build-system)
     (native-inputs
diff --git a/gnu/packages/patches/u-boot-50M-kernel.patch b/gnu/packages/patches/u-boot-50M-kernel.patch
new file mode 100644
index 0000000000..c4d054dd42
--- /dev/null
+++ b/gnu/packages/patches/u-boot-50M-kernel.patch
@@ -0,0 +1,55 @@
+From: Herman Rimm <herman@HIDDEN>
+Date: Mon, Sep 16 2024 19:24:02 +0200
+Subject: [PATCH] Configure Raspberry Pis to reserve 50 MB for linux kernels.
+
+---
+The 6.9 and newer linux-libre-arm64-generic kernels for Guix can be
+larger than the allocated 36 MB.  This patch is not submitted upstream.
+
+diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env
+index 30228285edd..666883e9212 100644
+--- a/board/raspberrypi/rpi/rpi.env
++++ b/board/raspberrypi/rpi/rpi.env
+@@ -43,22 +43,22 @@ dfu_alt_info+=zImage fat 0 1
+  *   text_offset bytes (specified in the header of the Image) into a 2MB
+  *   boundary. The 'booti' command relocates the image if necessary. Linux uses
+  *   a default text_offset of 0x80000.  In summary, loading at 0x80000
+- *   satisfies all these constraints and reserving memory up to 0x02400000
+- *   permits fairly large (roughly 36M) kernels.
++ *   satisfies all these constraints and reserving memory up to 0x03400000
++ *   permits fairly large (roughly 50M) kernels.
+  *
+  * scriptaddr and pxefile_addr_r can be pretty much anywhere that doesn't
+  * conflict with something else. Reserving 1M for each of them at
+- * 0x02400000-0x02500000 and 0x02500000-0x02600000 should be plenty.
++ * 0x03200000-0x03300000 and 0x03300000-0x03400000 should be plenty.
+  *
+  * On ARM, both the DTB and any possible initrd must be loaded such that they
+  * fit inside the lowmem mapping in Linux. In practice, this usually means not
+  * more than ~700M away from the start of the kernel image but this number can
+  * be larger OR smaller depending on e.g. the 'vmalloc=xxxM' command line
+  * parameter given to the kernel. So reserving memory from low to high
+- * satisfies this constraint again. Reserving 1M at 0x02600000-0x02700000 for
+- * the DTB leaves rest of the free RAM to the initrd starting at 0x02700000.
++ * satisfies this constraint again. Reserving 1M at 0x03400000-0x03500000 for
++ * the DTB leaves rest of the free RAM to the initrd starting at 0x03500000.
+  * Even with the smallest possible CPU-GPU memory split of the CPU getting
+- * only 64M, the remaining 25M starting at 0x02700000 should allow quite
++ * only 64M, the remaining 11M starting at 0x03500000 should allow quite
+  * large initrds before they start colliding with U-Boot.
+  */
+ #ifdef CONFIG_ARM64
+@@ -69,9 +69,9 @@ fdt_high=ffffffff
+ initrd_high=ffffffff
+ #endif
+ kernel_addr_r=0x00080000
+-scriptaddr=0x02400000
+-pxefile_addr_r=0x02500000
+-fdt_addr_r=0x02600000
+-ramdisk_addr_r=0x02700000
++scriptaddr=0x03200000
++pxefile_addr_r=0x03300000
++fdt_addr_r=0x03400000
++ramdisk_addr_r=0x03500000
+ 
+ boot_targets=mmc usb pxe dhcp
-- 
2.45.2





Information forwarded to efraim@HIDDEN, vagrant@HIDDEN, guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 13 Dec 2024 21:08:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 13 16:08:56 2024
Received: from localhost ([127.0.0.1]:44349 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tMCu8-0004C3-9Z
	for submit <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:56 -0500
Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:59747
 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <herman@HIDDEN>) id 1tMCtk-0004Ae-Qb
 for 72987 <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:33 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman;
 t=1734124100;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=09PSKGun4VscWhD7LwcyVRPr2V4cldvtu3v9aJDHigA=;
 b=kah4i1sY+RFbomaiB3z8wavNgFeHpF8KioN/BjAAhZp/3O0bqHuupVjS4U/rCB+g+RezdD
 xFH5aRo8LDRsVLmQVW/0Clr1lxMBwZRNXMC/owFtI3773mVPoAyJAg6tetKAEwdw4Dyd2X
 NgWkylYg/d1Obo0PqDiJRVwCL+n1qTyg0mmaEM8keqCQwCYrmrH3mjpIn64eLVY/IIscH6
 6X2FXD85m9/n3Fs0ru9EgvzDIaKUhD5uM6mLrtH6t9pUHV++zw7pZVv7QLJReaYY5m9gW4
 bb2kC55EPvohZA+loR0N0rek6YrsGVmR1m/aVCnsw0WVp+dYIR3octWerawaWw==
Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 910994bb
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO)
 for <72987 <at> debbugs.gnu.org>; Fri, 13 Dec 2024 21:08:20 +0000 (UTC)
From: Herman Rimm <herman@HIDDEN>
To: 72987 <at> debbugs.gnu.org
Subject: [PATCH v3 3/5] gnu: u-boot: Use DDR3 patch for Nano Pi R4S.
Date: Fri, 13 Dec 2024 22:07:34 +0100
Message-ID: <ca04751770e9c5108d9f3c3f1228485be731f4d7.1734122005.git.herman@HIDDEN>
X-Mailer: git-send-email 2.45.2
In-Reply-To: <cover.1734122005.git.herman@HIDDEN>
References: <cover.1734122005.git.herman@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN>,
 Vagrant Cascadian <vagrant@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: * gnu/packages/bootloaders.scm (u-boot)[source]: Use patch.
 * gnu/packages/patches/u-boot-nanopi-r4s-ddr3.patch: Add file. * gnu/local.mk
 (dist_patch_DATA): Register patch. Change-Id:
 Ibbf952f2806c9cac7fc29e1264d427bf6ee67d01
 --- gnu/local.mk | 1 + gnu/packages/bootloaders.scm | 1 +
 .../patches/u-boot-nanopi-r4s-ddr3.patch
 | 33 +++++++++++++++++++ 3 files changed, 35 ins [...] 
 Content analysis details:   (3.6 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in sa-accredit.habeas.com]
 3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
 [81.205.150.117 listed in zen.spamhaus.org]
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in bl.score.senderscore.com]
 0.0 TVD_RCVD_IP            Message was received from an IP address
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
X-Debbugs-Envelope-To: 72987
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: 2.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  * gnu/packages/bootloaders.scm (u-boot)[source]: Use patch.
    * gnu/packages/patches/u-boot-nanopi-r4s-ddr3.patch: Add file. * gnu/local.mk
    (dist_patch_DATA): Register patch. Change-Id: Ibbf952f2806c9cac7fc29e1264d427bf6ee67d01
    --- gnu/local.mk | 1 + gnu/packages/bootloaders.scm | 1 + .../patches/u-boot-nanopi-r4s-ddr3.patch
    | 33 +++++++++++++++++++ 3 files changed, 35 ins [...] 
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
                             The query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                             [81.205.150.117 listed in sa-accredit.habeas.com]
  3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
                             [81.205.150.117 listed in zen.spamhaus.org]
  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                            [81.205.150.117 listed in bl.score.senderscore.com]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

* gnu/packages/bootloaders.scm (u-boot)[source]: Use patch.
* gnu/packages/patches/u-boot-nanopi-r4s-ddr3.patch: Add file.
* gnu/local.mk (dist_patch_DATA): Register patch.

Change-Id: Ibbf952f2806c9cac7fc29e1264d427bf6ee67d01
---
 gnu/local.mk                                  |  1 +
 gnu/packages/bootloaders.scm                  |  1 +
 .../patches/u-boot-nanopi-r4s-ddr3.patch      | 33 +++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 gnu/packages/patches/u-boot-nanopi-r4s-ddr3.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 4da94f68e2..4852c427b2 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2277,6 +2277,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/u-boot-allow-disabling-openssl.patch	\
   %D%/packages/patches/u-boot-nintendo-nes-serial.patch		\
   %D%/packages/patches/u-boot-rockchip-inno-usb.patch		\
+  %D%/packages/patches/u-boot-nanopi-r4s-ddr3.patch		\
   %D%/packages/patches/ucx-tcp-iface-ioctl.patch		\
   %D%/packages/patches/ultrastar-deluxe-no-freesans.patch		\
   %D%/packages/patches/ungoogled-chromium-extension-search-path.patch	\
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 1a464655b6..d946270317 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -759,6 +759,7 @@ (define u-boot
         (base32 "0yrhb0izihv47p781dc4cp0znc5g225ayl7anz23c6jdrmfbpz2h"))
        (patches (search-patches "u-boot-allow-disabling-openssl.patch"
                                 "u-boot-50M-kernel.patch"
+                                "u-boot-nanopi-r4s-ddr3.patch"
                                 "u-boot-rockchip-inno-usb.patch"))))
     (build-system gnu-build-system)
     (native-inputs
diff --git a/gnu/packages/patches/u-boot-nanopi-r4s-ddr3.patch b/gnu/packages/patches/u-boot-nanopi-r4s-ddr3.patch
new file mode 100644
index 0000000000..435ffd5554
--- /dev/null
+++ b/gnu/packages/patches/u-boot-nanopi-r4s-ddr3.patch
@@ -0,0 +1,33 @@
+From: Herman Rimm <herman@HIDDEN>
+Date: Sun, 2 Jul 2023 13:43:18 +0200
+Subject: [PATCH] Configure the Nano Pi R4S with DDR3.
+
+---
+This patch should be removed once something like this is upstream:
+https://github.com/anaelorlinski/OpenWrt-NanoPi-R2S-R4S-Builds/commit/9d836044340ddef53f5d9f1946ac48c946a78284
+
+diff --git a/arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi b/arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi
+index 69800cc368d..a3054849f88 100644
+--- a/arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi
++++ b/arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi
+@@ -13,7 +13,7 @@
+  */
+ 
+ #include "rk3399-nanopi4-u-boot.dtsi"
+-#include "rk3399-sdram-lpddr4-100.dtsi"
++#include "rk3399-sdram-ddr3-1866.dtsi"
+ 
+ / {
+ 	smbios {
+diff --git a/configs/nanopi-r4s-rk3399_defconfig b/configs/nanopi-r4s-rk3399_defconfig
+index ada04b46cb1..b39e350bbed 100644
+--- a/configs/nanopi-r4s-rk3399_defconfig
++++ b/configs/nanopi-r4s-rk3399_defconfig
+@@ -48,7 +48,6 @@ CONFIG_PMIC_RK8XX=y
+ CONFIG_SPL_DM_REGULATOR_FIXED=y
+ CONFIG_REGULATOR_RK8XX=y
+ CONFIG_PWM_ROCKCHIP=y
+-CONFIG_RAM_ROCKCHIP_LPDDR4=y
+ CONFIG_BAUDRATE=1500000
+ CONFIG_DEBUG_UART_SHIFT=2
+ CONFIG_SYS_NS16550_MEM32=y
-- 
2.45.2





Information forwarded to efraim@HIDDEN, vagrant@HIDDEN, guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 13 Dec 2024 21:08:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 13 16:08:56 2024
Received: from [127.0.0.1] (port=44346 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tMCtt-0004BP-16
	for submit <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:56 -0500
Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:59747
 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <herman@HIDDEN>) id 1tMCtk-0004Ae-0e
 for 72987 <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman;
 t=1734124100;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=KTqeRSChzljvI9ntP9ECLpLaarMpUDOPIi19QcnDTNs=;
 b=jmM/YAL5capN2Hf67x/XkIpmx33M2kVP6Cw2Zf9lNIOYJx/vr0WM6I+LsIjb+kebc+/m62
 XMyMSNkpyEOVxqS+KY7VwD+FqKNWjgdHsQDRxMHvpwDrADkwCjonHuUi8FO3UNPkbJ4SMI
 kZaXJqHfIrJdEzs/eC5C2+vTVBVaNAd9ZecT94K9XWAii7GwSyjVcwqfJ3l4RVhwtneJck
 j+rHf2+ctIdtxsx/VAPN9IAwO2nFRyfcWwwByTWzQclsrMWlkv16AvZEBD4chERqcTI2GS
 wGBKj4tdIk8ATmrTaeF+cfj7DRPch6VygLIy7l7ZlMH5e62DypVUqXF8ttXV7g==
Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id cc429a47
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO)
 for <72987 <at> debbugs.gnu.org>; Fri, 13 Dec 2024 21:08:20 +0000 (UTC)
From: Herman Rimm <herman@HIDDEN>
To: 72987 <at> debbugs.gnu.org
Subject: [PATCH v3 2/5] gnu: bootloader: Add nanopi-r4s-rk3399 bootloader.
Date: Fri, 13 Dec 2024 22:07:33 +0100
Message-ID: <ecde5ff47a839a2d727c7a3917b1edf58ec51abb.1734122005.git.herman@HIDDEN>
X-Mailer: git-send-email 2.45.2
In-Reply-To: <cover.1734122005.git.herman@HIDDEN>
References: <cover.1734122005.git.herman@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN>,
 Vagrant Cascadian <vagrant@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: * gnu/bootloader/u-boot.scm
 (u-boot-nanopi-r4s-rk3399-bootloader):
 Add. * gnu/packages/bootloaders.scm (u-boot-nanopi-r4s-rk3399): Add variable.
 Change-Id: I6d4cb098727fe4027aea33a39c59d34000dfc4db ---
 gnu/bootloader/u-boot.scm
 | 6 ++++++ gnu/packages/bootloaders.scm | 3 +++ 2 files changed,
 9 insertions(+)
 Content analysis details:   (3.6 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in sa-accredit.habeas.com]
 3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
 [81.205.150.117 listed in zen.spamhaus.org]
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in bl.score.senderscore.com]
 0.0 TVD_RCVD_IP            Message was received from an IP address
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
X-Debbugs-Envelope-To: 72987
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: -1.0 (-)

* gnu/bootloader/u-boot.scm (u-boot-nanopi-r4s-rk3399-bootloader): Add.
* gnu/packages/bootloaders.scm (u-boot-nanopi-r4s-rk3399): Add variable.

Change-Id: I6d4cb098727fe4027aea33a39c59d34000dfc4db
---
 gnu/bootloader/u-boot.scm    | 6 ++++++
 gnu/packages/bootloaders.scm | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
index 5d5fc1bff2..9c7df3b40f 100644
--- a/gnu/bootloader/u-boot.scm
+++ b/gnu/bootloader/u-boot.scm
@@ -38,6 +38,7 @@ (define-module (gnu bootloader u-boot)
             u-boot-cubietruck-bootloader
             u-boot-firefly-rk3399-bootloader
             u-boot-mx6cuboxi-bootloader
+            u-boot-nanopi-r4s-rk3399-bootloader
             u-boot-nintendo-nes-classic-edition-bootloader
             u-boot-novena-bootloader
             u-boot-orangepi-r1-plus-lts-rk3328-bootloader
@@ -220,6 +221,11 @@ (define u-boot-novena-bootloader
    (inherit u-boot-imx-bootloader)
    (package u-boot-novena)))
 
+(define u-boot-nanopi-r4s-rk3399-bootloader
+  (bootloader
+   (inherit u-boot-rockchip-bootloader)
+   (package u-boot-nanopi-r4s-rk3399)))
+
 (define u-boot-orangepi-r1-plus-lts-rk3328-bootloader
   (bootloader
    (inherit u-boot-rockchip-bootloader)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 478385fb18..1a464655b6 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -1274,6 +1274,9 @@ (define-public u-boot-novena
 version, contrary to Novena upstream, does not load u-boot.img from the first
 partition."))
 
+(define-public u-boot-nanopi-r4s-rk3399
+  (make-u-boot-rockchip-package "nanopi-r4s" 'rk3399))
+
 (define-public u-boot-orangepi-r1-plus-lts-rk3328
   (make-u-boot-rockchip-package "orangepi-r1-plus-lts" 'rk3328))
 
-- 
2.45.2





Information forwarded to efraim@HIDDEN, vagrant@HIDDEN, guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 13 Dec 2024 21:08:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 13 16:08:30 2024
Received: from localhost ([127.0.0.1]:44342 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tMCth-0004Ar-Dk
	for submit <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:29 -0500
Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:41455
 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <herman@HIDDEN>) id 1tMCte-0004AN-No
 for 72987 <at> debbugs.gnu.org; Fri, 13 Dec 2024 16:08:28 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman;
 t=1734124099;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding;
 bh=PboYooXRqHDf/GWcy9YsNLEkb1ULCgH9DlR7nXtjdKs=;
 b=TpuuFW9K6DI15Brzk+gDvVAVjYrvOBc3Le9O97iFq20H2N/CdPJjLTbYFs78ShjgjlUU2h
 mdA7Xo4BRjV4Jsj71m6sNBzoRZM9xCvKipsrOkoL7McI5Vqyo7s/yCHFu6gtnXZsIMBtIm
 XV6wQ5XJBlaUS3Q5GS4rmdr1LIMsVOm6u6e4VXMlgYjBr0gZtzn/6Kq2GxZKtNRfIj2o5g
 /rIxuCZ7U+/W1vfW1oXu9QLcLzcW0Kb2ipyQZH+JFXUKWtRYAgvr9UtWRiOlx6CKBP0xHD
 /3O16WkHiQSXTyU4YJWlJaERd1cGrmDr6uQN1PWr08y50DYRfJIckqUh5vRMpw==
Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 415cef67
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO)
 for <72987 <at> debbugs.gnu.org>; Fri, 13 Dec 2024 21:08:19 +0000 (UTC)
From: Herman Rimm <herman@HIDDEN>
To: 72987 <at> debbugs.gnu.org
Subject: [PATCH v3 0/5] Add U-Boot patches and bootloaders.
Date: Fri, 13 Dec 2024 22:07:31 +0100
Message-ID: <cover.1734122005.git.herman@HIDDEN>
X-Mailer: git-send-email 2.45.2
MIME-Version: 1.0
X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN>,
 Vagrant Cascadian <vagrant@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hello, This revision depends on #74842 and #74849,
 in addition
 to #70131. The top-level U-Boot patches are removed in #70131 instead of
 in the first patch, and the Nano Pi R4S and Orange Pi Zero 2W bootloaders
 are added in the second and fourth instead of in #70131. 
 Content analysis details:   (3.6 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 TVD_RCVD_IP            Message was received from an IP address
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in sa-accredit.habeas.com]
 3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
 [81.205.150.117 listed in zen.spamhaus.org]
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [81.205.150.117 listed in bl.score.senderscore.com]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
X-Debbugs-Envelope-To: 72987
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: 2.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hello, This revision depends on #74842 and #74849, in addition
    to #70131. The top-level U-Boot patches are removed in #70131 instead of
   in the first patch, and the Nano Pi R4S and Orange Pi Zero 2W bootloaders
   are added in the second and fourth instead of in #70131. 
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
                             The query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                             [81.205.150.117 listed in sa-accredit.habeas.com]
  3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
                             [81.205.150.117 listed in zen.spamhaus.org]
  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                            [81.205.150.117 listed in bl.score.senderscore.com]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

Hello,

This revision depends on #74842 and #74849, in addition to #70131.

The top-level U-Boot patches are removed in #70131 instead of in the
first patch, and the Nano Pi R4S and Orange Pi Zero 2W bootloaders are
added in the second and fourth instead of in #70131.

The final patch adds a bootloader for the ASUS Tinker Board S and the
ARM Trusted Firmware for its SoC.  The HDMI is flaky.

I could create an additional U-Boot package for the Nano Pi R4S, and
apply the DDR3 patch to it instead, so both variants are supported.

Cheers,
Herman

Herman Rimm (5):
  gnu: u-boot: Enlarge space available for kernel.
  gnu: bootloader: Add nanopi-r4s-rk3399 bootloader.
  gnu: u-boot: Use DDR3 patch for Nano Pi R4S.
  gnu: bootloader: Add orangepi-zero2w bootloader.
  gnu: bootloader: Add ASUS Tinker Board S bootloader.

 gnu/bootloader/u-boot.scm                     | 22 ++++++++
 gnu/local.mk                                  |  4 +-
 gnu/packages/bootloaders.scm                  | 43 ++++++++++++++-
 gnu/packages/firmware.scm                     |  9 +++
 gnu/packages/patches/u-boot-50M-kernel.patch  | 55 +++++++++++++++++++
 .../patches/u-boot-nanopi-r4s-ddr3.patch      | 33 +++++++++++
 6 files changed, 164 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/u-boot-50M-kernel.patch
 create mode 100644 gnu/packages/patches/u-boot-nanopi-r4s-ddr3.patch


base-commit: 383e7ca281bae36a151f3fdb2e3a1ac4c5c65b50
-- 
2.45.2





Information forwarded to efraim@HIDDEN, vagrant@HIDDEN, guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 20 Sep 2024 21:53:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 20 17:53:58 2024
Received: from localhost ([127.0.0.1]:36504 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1srlZe-0006mR-GH
	for submit <at> debbugs.gnu.org; Fri, 20 Sep 2024 17:53:58 -0400
Received: from cascadia.aikidev.net ([173.255.214.101]:41314)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vagrant@HIDDEN>)
 id 1srlZc-0006m6-45; Fri, 20 Sep 2024 17:53:56 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org;
 s=1.vagrant.user; t=1726869181;
 bh=Jmt2P9eiaUZHx6+Qz4VWAXcsTfr9DkhNxH9iufyvX0w=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=grO0jDYKg0Zp18ev3at+Z9MTCaRg9ENj6oY3Y+92ERko5XWn37FNGT+fZYnKoPsWv
 8hf5oaMUUZk+RpaHL5BCqpH09w5A162r2RLSp4N5r1TnhINTml8NeIIfx8K7vQa8Dz
 v2CXW/GfUrijrBZWaMUQ/kfESPP+7u3DdFB01420x7CIYBb9BSEEHsknQ62KGBFgq8
 uAcJ7fyzJuOdMP1MCoeeAYjiFXw2DedSeKmME4pWlZ+aVL8+vnU4LRBGdFcrILUGiC
 6fLJPaoPfTHPg+JymLxIq/2ftSpnlkzZfhZDEKUWT3ZpjGJxB/wNn0zqjoogiiUrfT
 V1+nz6/SHgBfw==
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 by cascadia.aikidev.net (Postfix) with ESMTPSA id 470171757;
 Fri, 20 Sep 2024 14:53:01 -0700 (PDT)
From: Vagrant Cascadian <vagrant@HIDDEN>
To: Herman Rimm <herman@HIDDEN>, 70131 <at> debbugs.gnu.org
Subject: Re: [bug#70131] [bug#72987] [PATCH v2] gnu: u-boot: Enlarge space
 available for kernel.
In-Reply-To: <j3bdlgh27wynyk4go5vqktwe273vo5vzskjgo2kjeko37etdxx@llokl4gowaoi>
References: <20240902190459.13783-1-herman@HIDDEN>
 <c56191d9f088cc52844d3cb1c7eec0f413745b2d.1726507300.git.herman@HIDDEN>
 <87h6afl2y7.fsf@wireframe>
 <j3bdlgh27wynyk4go5vqktwe273vo5vzskjgo2kjeko37etdxx@llokl4gowaoi>
Date: Fri, 20 Sep 2024 14:52:56 -0700
Message-ID: <87tteaj8lj.fsf@wireframe>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 72987
Cc: 72987 <at> debbugs.gnu.org
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: -1.0 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On 2024-09-19, Herman Rimm wrote:
> On Mon, Sep 16, 2024 at 02:10:40PM -0700, Vagrant Cascadian wrote:
>> u-boot is still only version 2024.01 in guix ... sorry I have lagged at
>> u-boot updates.
>>=20
>>=20
>> > base-commit: a493d65d04deafb763710bb1cb0425185750327d
>>=20
>> This appears to be from some branch not present in guix....
>
> This patch can be applied on top of the v2 revision of issue 70131, I
> must not have CC'ed you that either.

Or the bug you were replying to, done so now, so people know what is
up. :)

live well,
  vagrant

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZu3uuAAKCRDcUY/If5cW
qmy9AP42JJs23hOESglGuC/f/OzSOmfWLfs+fzNEhVU+xxhzVwD/YoJkX1L/32s5
x+iEVniDk0YzspfQqs9VGSpOLXEtcg8=
=Tgfr
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 19 Sep 2024 14:13:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 19 10:13:20 2024
Received: from localhost ([127.0.0.1]:33186 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1srHuK-0001YT-Fm
	for submit <at> debbugs.gnu.org; Thu, 19 Sep 2024 10:13:20 -0400
Received: from mail-pg1-f171.google.com ([209.85.215.171]:44443)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sjg@HIDDEN>) id 1srHuI-0001Y9-CU
 for 72987 <at> debbugs.gnu.org; Thu, 19 Sep 2024 10:13:19 -0400
Received: by mail-pg1-f171.google.com with SMTP id
 41be03b00d2f7-7db4c1a54easo537273a12.1
 for <72987 <at> debbugs.gnu.org>; Thu, 19 Sep 2024 07:13:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=chromium.org; s=google; t=1726755115; x=1727359915; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=84xmllLzcNWq6sR2aesI/kmuvgMCEaVimg6P8MHvCbk=;
 b=EBbXDYArKwOT30qiErysMuMIdEl1Pst3zE2k3CVFRl7YJ+A5Sf1P0sekFSEvYVag9Y
 oGq7w3o44AodF7SLyRbcF2v5a8zeA4sn/pmJFeCb35IGqx9F4nFddla0TNu5hH25tfqm
 pHIUFq64UYvQk3o/dC56tDiamxHGw61OLZ5mo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1726755115; x=1727359915;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=84xmllLzcNWq6sR2aesI/kmuvgMCEaVimg6P8MHvCbk=;
 b=PFHuAz+UOo1Unh6t6gAWvm5Ew2+/o/6ETAYxmyS9SsOsYv/cCGJ5r6Nq2bgCE1kc6Q
 lAkcG/n6iq+UCnUn29g76uLpNF7fHVqSJ4KAydI/Hgrnk5Ymv+QIFhRz8WPP4BJ+qalE
 2a03RmmFGjKE2F9fNuS8lZIOjj4OLkYlbxSlAK83YijYCHz/PFQII+Q2bqUYxqm2bsfE
 x1B87tVyNyszJPLnGQAH9ppC4mfjj8Ocd8/T+aCsmhhH8v/7nXU5ziMgBlmnrVeRO7WH
 cO33ypliJF1QH+gEH6GqKSFuUp5dnMwFa6jlqQ2nVtsiiRtLPkwm3lhbQ2fnutIKTiFW
 nPuQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCUJ4cALogtkyW0fLZu4LHObFmG9NpaZiYKQJYex7Wrj+0F7hnySnWKE+27dqUwXQ1FUZ95fkQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxynPlk6jOIykhTbdvHqD8AueBh3CKoACshNOnQzZqhg8M4cmdL
 VfcIcSaqscRx83uwK7jnh1IO86rmYMhcDBp01LW28whq/Py8Bk4a+I5CxAkAUC+sfc2QCUcsJvb
 zNaS8DwAMuhxcE4yafUsG9yUevQPavZ47UPH4
X-Google-Smtp-Source: AGHT+IEmM4wOwPpFxmcNa5dtidH1h/ByC5Gba+xKb2hg+x+dgofAM6uRLeZO7bc0jjcsu9Fseh65hWKh6uWpl2TnFEw=
X-Received: by 2002:a05:6a20:c888:b0:1cf:4102:9762 with SMTP id
 adf61e73a8af0-1cf76244cbemr31981253637.42.1726755114820; Thu, 19 Sep 2024
 07:11:54 -0700 (PDT)
MIME-Version: 1.0
References: <20240902190459.13783-1-herman@HIDDEN>
 <c56191d9f088cc52844d3cb1c7eec0f413745b2d.1726507300.git.herman@HIDDEN>
 <87jzfbl371.fsf@wireframe>
In-Reply-To: <87jzfbl371.fsf@wireframe>
From: Simon Glass <sjg@HIDDEN>
Date: Thu, 19 Sep 2024 16:11:43 +0200
Message-ID: <CAFLszTgMRRFiLVMq8YAHFc355LoT-Jmk77E1CweYUzoJffd4vw@HIDDEN>
Subject: Re: u-boot: rpi: Enlarge space available for kernel.
To: Vagrant Cascadian <vagrant@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 72987
Cc: Matthias Brugger <mbrugger@HIDDEN>, 72987 <at> debbugs.gnu.org,
 Efraim Flashner <efraim@HIDDEN>, u-boot@HIDDEN,
 Herman Rimm <herman@HIDDEN>, Peter Robinson <pbrobinson@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: -1.0 (-)

Hi,

On Mon, 16 Sept 2024 at 23:06, Vagrant Cascadian <vagrant@HIDDEN> wrote:
>
> On 2024-09-16, Herman Rimm wrote:
> > --- /dev/null
> > +++ b/gnu/packages/patches/u-boot-50M-kernel.patch
> > @@ -0,0 +1,51 @@
> > +This patch configures the U-Boot for Raspberry Pis to reserve 50 MB for
> > +linux kernels, because the 6.9 and newer linux-libre-arm64-generic
> > +kernels can be larger than 36 MB.  It was created by Herman Rimm
> > +<herman@HIDDEN> in August 2024 and is not submitted upstream yet.
> > +diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env
> > +index 30228285ed..54a8e9e5ae 100644
> > +--- a/board/raspberrypi/rpi/rpi.env
> > ++++ b/board/raspberrypi/rpi/rpi.env
> > +@@ -43,22 +43,22 @@ dfu_alt_info+=zImage fat 0 1
> > +  *   text_offset bytes (specified in the header of the Image) into a 2MB
> > +  *   boundary. The 'booti' command relocates the image if necessary. Linux uses
> > +  *   a default text_offset of 0x80000.  In summary, loading at 0x80000
> > +- *   satisfies all these constraints and reserving memory up to 0x02400000
> > +- *   permits fairly large (roughly 36M) kernels.
> > ++ *   satisfies all these constraints and reserving memory up to 0x03400000
> > ++ *   permits fairly large (roughly 50M) kernels.
> > +  *
> > +  * scriptaddr and pxefile_addr_r can be pretty much anywhere that doesn't
> > +  * conflict with something else. Reserving 1M for each of them at
> > +- * 0x02400000-0x02500000 and 0x02500000-0x02600000 should be plenty.
> > ++ * 0x03200000-0x03300000 and 0x03300000-0x03400000 should be plenty.
> > +  *
> > +  * On ARM, both the DTB and any possible initrd must be loaded such that they
> > +  * fit inside the lowmem mapping in Linux. In practice, this usually means not
> > +  * more than ~700M away from the start of the kernel image but this number can
> > +  * be larger OR smaller depending on e.g. the 'vmalloc=xxxM' command line
> > +  * parameter given to the kernel. So reserving memory from low to high
> > +- * satisfies this constraint again. Reserving 1M at 0x02600000-0x02700000 for
> > +- * the DTB leaves rest of the free RAM to the initrd starting at 0x02700000.
> > ++ * satisfies this constraint again. Reserving 1M at 0x03400000-0x03500000 for
> > ++ * the DTB leaves rest of the free RAM to the initrd starting at 0x03500000.
> > +  * Even with the smallest possible CPU-GPU memory split of the CPU getting
> > +- * only 64M, the remaining 25M starting at 0x02700000 should allow quite
> > ++ * only 64M, the remaining 11M starting at 0x03500000 should allow quite
> > +  * large initrds before they start colliding with U-Boot.
> > +  */
> > + #ifdef CONFIG_ARM64
> > +@@ -69,9 +69,9 @@ fdt_high=ffffffff
> > + initrd_high=ffffffff
> > + #endif
> > + kernel_addr_r=0x00080000
> > +-scriptaddr=0x02400000
> > +-pxefile_addr_r=0x02500000
> > +-fdt_addr_r=0x02600000
> > +-ramdisk_addr_r=0x02700000
> > ++scriptaddr=0x03200000
> > ++pxefile_addr_r=0x03300000
> > ++fdt_addr_r=0x03400000
> > ++ramdisk_addr_r=0x03500000
> > +
> > + boot_targets=mmc usb pxe dhcp
>
> I would really like to hear comments from the upstream u-boot
> maintainers on adjusting these values...

It is fine to adjust them, so long as the memory is actually there. I
don't know of anything special about the current values.

Regards,
Simon




Information forwarded to guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 16 Sep 2024 21:11:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 16 17:11:07 2024
Received: from localhost ([127.0.0.1]:53470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sqIzz-0000bJ-Fu
	for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 17:11:07 -0400
Received: from cascadia.aikidev.net ([173.255.214.101]:36978)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vagrant@HIDDEN>) id 1sqIzx-0000ao-4Q
 for 72987 <at> debbugs.gnu.org; Mon, 16 Sep 2024 17:11:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org;
 s=1.vagrant.user; t=1726521046;
 bh=bEr6gkLpjXChth9AhKWvxmkQnPIPKhPA0tngjSxPbAI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=mWF1ONz4fKJ4njCOOswCKRmQqRsjm7S2pZet4eFVITSS3NlrMhen4DZF7Q46Rbf1e
 mTvql2Tyz/oUP6r8baUtQVFSBR9AGf2mpGXDTDN0Ma8bPBTFgpoOrA+I+i9Tsq2Dn5
 8u3NF7wR99Kdd7/oZz0dMDf+KOOg51Ap4+t44bZQGEVn/qXYAQK5CNoMFovVZkzYZ5
 kRBJ3QTvRJ6xV5i6JHoqq8qau4y4KBzW1ljzqN8qb/wXXgtDl4wAR29h8PzBkeTr+P
 oexa8zEV2as1gdMBvqFEZz7CYg2V7ja7B8SB0DFPz5MGYKav6F6EFVZ/d/+MAPUyFk
 xqppsD7wFQeKA==
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 by cascadia.aikidev.net (Postfix) with ESMTPSA id E0E4D1638;
 Mon, 16 Sep 2024 14:10:45 -0700 (PDT)
From: Vagrant Cascadian <vagrant@HIDDEN>
To: Herman Rimm <herman@HIDDEN>, 72987 <at> debbugs.gnu.org
Subject: Re: [bug#72987] [PATCH v2] gnu: u-boot: Enlarge space available for
 kernel.
In-Reply-To: <c56191d9f088cc52844d3cb1c7eec0f413745b2d.1726507300.git.herman@HIDDEN>
References: <20240902190459.13783-1-herman@HIDDEN>
 <c56191d9f088cc52844d3cb1c7eec0f413745b2d.1726507300.git.herman@HIDDEN>
Date: Mon, 16 Sep 2024 14:10:40 -0700
Message-ID: <87h6afl2y7.fsf@wireframe>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 72987
Cc: Efraim Flashner <efraim@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: -1.0 (-)

--=-=-=
Content-Type: text/plain

On 2024-09-16, Herman Rimm wrote:
>  (define u-boot
>    (package
>      (name "u-boot")
>      (version "2024.07")

u-boot is still only version 2024.01 in guix ... sorry I have lagged at
u-boot updates.


> base-commit: a493d65d04deafb763710bb1cb0425185750327d

This appears to be from some branch not present in guix....

live well,
  vagrant

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZuie0AAKCRDcUY/If5cW
qvAYAP9vGwLcSQl9qOI7RcO/jy4glni8r/cCW7HeZ0gjlsjVPAD+MfYUtVnD5HuV
lwh1cZJW0mFBMEjREvg7cBFesir+4AE=
=F7yi
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 16 Sep 2024 21:06:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 16 17:06:08 2024
Received: from localhost ([127.0.0.1]:53466 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sqIv9-0000L1-Lk
	for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 17:06:08 -0400
Received: from cascadia.aikidev.net ([173.255.214.101]:59658)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vagrant@HIDDEN>) id 1sqIv6-0000KQ-V0
 for 72987 <at> debbugs.gnu.org; Mon, 16 Sep 2024 17:06:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org;
 s=1.vagrant.user; t=1726520745;
 bh=JsGkH37o/rsydOvJVHzSuDMUoDTYFLMaRPyAZODIkD4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=lkkj3CdJG91YYnFRx2eRe0BvlFgk6aN1TjFHj+YngU1pkTU1Eq32tYkmyVFZDkrEj
 Hkq/T/NhRi3XWBhdqSIuRMHU7u+RwwppKLy6b+HBmQ5HQklhW4ZYVKZsioMspzSzhb
 ax8dXBrt6U2FiIVMZ7vbA/5s3Vb4ilZTG/w6Davano0xczzEI3t2ZEFJhTaWxbkW1+
 Y+RGYBxtWzyokMm1nAjv1NUcyQZP6as5IJsKIPMAJWwpjCSElBl1WrsNDjbGGmlutE
 AgUEKeFvEBBTPKEPcowvVXk20liwUha/kp7gJZgCkQfcm+KCHYdIhW61SOtO8JW092
 UvU51e8eb2MWg==
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 by cascadia.aikidev.net (Postfix) with ESMTPSA id F38B61638;
 Mon, 16 Sep 2024 14:05:44 -0700 (PDT)
From: Vagrant Cascadian <vagrant@HIDDEN>
To: Herman Rimm <herman@HIDDEN>, 72987 <at> debbugs.gnu.org
Subject: u-boot: rpi: Enlarge space available for kernel.
In-Reply-To: <c56191d9f088cc52844d3cb1c7eec0f413745b2d.1726507300.git.herman@HIDDEN>
References: <20240902190459.13783-1-herman@HIDDEN>
 <c56191d9f088cc52844d3cb1c7eec0f413745b2d.1726507300.git.herman@HIDDEN>
Date: Mon, 16 Sep 2024 14:05:22 -0700
Message-ID: <87jzfbl371.fsf@wireframe>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 72987
Cc: u-boot@HIDDEN, Matthias Brugger <mbrugger@HIDDEN>,
 Efraim Flashner <efraim@HIDDEN>, Peter Robinson <pbrobinson@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: -1.0 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On 2024-09-16, Herman Rimm wrote:
> --- /dev/null
> +++ b/gnu/packages/patches/u-boot-50M-kernel.patch
> @@ -0,0 +1,51 @@
> +This patch configures the U-Boot for Raspberry Pis to reserve 50 MB for
> +linux kernels, because the 6.9 and newer linux-libre-arm64-generic
> +kernels can be larger than 36 MB.  It was created by Herman Rimm
> +<herman@HIDDEN> in August 2024 and is not submitted upstream yet.
> +diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.e=
nv
> +index 30228285ed..54a8e9e5ae 100644
> +--- a/board/raspberrypi/rpi/rpi.env
> ++++ b/board/raspberrypi/rpi/rpi.env
> +@@ -43,22 +43,22 @@ dfu_alt_info+=3DzImage fat 0 1
> +  *   text_offset bytes (specified in the header of the Image) into a 2MB
> +  *   boundary. The 'booti' command relocates the image if necessary. Li=
nux uses
> +  *   a default text_offset of 0x80000.  In summary, loading at 0x80000
> +- *   satisfies all these constraints and reserving memory up to 0x02400=
000
> +- *   permits fairly large (roughly 36M) kernels.
> ++ *   satisfies all these constraints and reserving memory up to 0x03400=
000
> ++ *   permits fairly large (roughly 50M) kernels.
> +  *
> +  * scriptaddr and pxefile_addr_r can be pretty much anywhere that doesn=
't
> +  * conflict with something else. Reserving 1M for each of them at
> +- * 0x02400000-0x02500000 and 0x02500000-0x02600000 should be plenty.
> ++ * 0x03200000-0x03300000 and 0x03300000-0x03400000 should be plenty.
> +  *
> +  * On ARM, both the DTB and any possible initrd must be loaded such tha=
t they
> +  * fit inside the lowmem mapping in Linux. In practice, this usually me=
ans not
> +  * more than ~700M away from the start of the kernel image but this num=
ber can
> +  * be larger OR smaller depending on e.g. the 'vmalloc=3DxxxM' command =
line
> +  * parameter given to the kernel. So reserving memory from low to high
> +- * satisfies this constraint again. Reserving 1M at 0x02600000-0x027000=
00 for
> +- * the DTB leaves rest of the free RAM to the initrd starting at 0x0270=
0000.
> ++ * satisfies this constraint again. Reserving 1M at 0x03400000-0x035000=
00 for
> ++ * the DTB leaves rest of the free RAM to the initrd starting at 0x0350=
0000.
> +  * Even with the smallest possible CPU-GPU memory split of the CPU gett=
ing
> +- * only 64M, the remaining 25M starting at 0x02700000 should allow quite
> ++ * only 64M, the remaining 11M starting at 0x03500000 should allow quite
> +  * large initrds before they start colliding with U-Boot.
> +  */
> + #ifdef CONFIG_ARM64
> +@@ -69,9 +69,9 @@ fdt_high=3Dffffffff
> + initrd_high=3Dffffffff
> + #endif
> + kernel_addr_r=3D0x00080000
> +-scriptaddr=3D0x02400000
> +-pxefile_addr_r=3D0x02500000
> +-fdt_addr_r=3D0x02600000
> +-ramdisk_addr_r=3D0x02700000
> ++scriptaddr=3D0x03200000
> ++pxefile_addr_r=3D0x03300000
> ++fdt_addr_r=3D0x03400000
> ++ramdisk_addr_r=3D0x03500000
> +=20
> + boot_targets=3Dmmc usb pxe dhcp

I would really like to hear comments from the upstream u-boot
maintainers on adjusting these values...

live well,
  vagrant

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZuidkgAKCRDcUY/If5cW
quPqAP9nLcLkuvtdpf3dyKxkpJQuA9j+odEOJFEWuQNcG1gvBAEA9Yk4uId+n409
4gEcIwaiPYOyQnE0iIT1igum6nxu1AY=
=lRKm
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 16 Sep 2024 17:25:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 16 13:25:29 2024
Received: from localhost ([127.0.0.1]:53199 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sqFTd-0004tR-0q
	for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 13:25:29 -0400
Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:55765
 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <herman@HIDDEN>) id 1sqFTa-0004oD-FN
 for 72987 <at> debbugs.gnu.org; Mon, 16 Sep 2024 13:25:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman;
 t=1726507503;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding;
 bh=Klj2BAK4IanjRmHJml7eP5xEAlO3BC7LcqzBhPgSxfs=;
 b=qVuGY29AmPq7NBZtxVmeDEuYNRsjxnmqExCPGEJ8rU3ztT+fOa6A3Iw152wpY13dQ8XC0r
 ldpL1fFvnlefNhLuXbNeiMvfRunggB2qR8WmWbz1ETRmoUtmEiQ/wuix6+10uHndHItRm9
 kC4jDEddTEHvGZp3Vcv47v/7uBWr0Fq+PpSeGvTTwQ5Lj1oWHnF2FWllcPb0iiqbHIXx3V
 nBqaGwSs7yOG/UcIp52FtYJPlp79VkN8MVKi0E60owtD65actPTCNwcQNLm52xKu0M48oq
 ycPsEWuSZVjHVQDr878JbuG60jXDWlnOsaLEshyKysezkO+4cX7n1j20BOCo/Q==
Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 14d0fd28
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO)
 for <72987 <at> debbugs.gnu.org>; Mon, 16 Sep 2024 17:25:03 +0000 (UTC)
From: Herman Rimm <herman@HIDDEN>
To: 72987 <at> debbugs.gnu.org
Subject: [PATCH v2] gnu: u-boot: Enlarge space available for kernel.
Date: Mon, 16 Sep 2024 19:24:02 +0200
Message-ID: <c56191d9f088cc52844d3cb1c7eec0f413745b2d.1726507300.git.herman@HIDDEN>
X-Mailer: git-send-email 2.45.2
MIME-Version: 1.0
X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN>,
 Vagrant Cascadian <vagrant@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 3.5 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: * gnu/packages/bootloaders.scm
 (%u-boot-rockchip-inno-usb-patch, 
 %u-boot-allow-disabling-openssl-patch, %u-boot-nanopi-r4s-ddr3-patch): Remove
 variables. (u-boot)[source]: Use search-patches and add n [...] 
 Content analysis details:   (3.5 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 TVD_RCVD_IP            Message was received from an IP address
 3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
 [81.205.150.117 listed in zen.spamhaus.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
X-Debbugs-Envelope-To: 72987
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: 2.5 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  * gnu/packages/bootloaders.scm (%u-boot-rockchip-inno-usb-patch,
    %u-boot-allow-disabling-openssl-patch, %u-boot-nanopi-r4s-ddr3-patch): Remove
    variables. (u-boot)[source]: Use search-patches and add n [...] 
 
 Content analysis details:   (2.5 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
                             [81.205.150.117 listed in zen.spamhaus.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

* gnu/packages/bootloaders.scm (%u-boot-rockchip-inno-usb-patch,
%u-boot-allow-disabling-openssl-patch, %u-boot-nanopi-r4s-ddr3-patch):
Remove variables.
(u-boot)[source]: Use search-patches and add new patch.
* gnu/packages/patches/u-boot-50M-kernel.patch: Add file.
* gnu/local.mk (dist_patch_DATA): Register patch.

Change-Id: Ib0074d888a3553543b491e9198f9b9a1162722f3
---
 gnu/local.mk                                 |  1 +
 gnu/packages/bootloaders.scm                 | 49 +++++++++----------
 gnu/packages/patches/u-boot-50M-kernel.patch | 51 ++++++++++++++++++++
 3 files changed, 74 insertions(+), 27 deletions(-)
 create mode 100644 gnu/packages/patches/u-boot-50M-kernel.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index ce58d5bfb4..b763991d63 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2216,6 +2216,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/turbovnc-find-system-packages.patch	\
   %D%/packages/patches/tuxpaint-stamps-path.patch		\
   %D%/packages/patches/twinkle-bcg729.patch			\
+  %D%/packages/patches/u-boot-50M-kernel.patch			\
   %D%/packages/patches/u-boot-allow-disabling-openssl.patch	\
   %D%/packages/patches/u-boot-nintendo-nes-serial.patch		\
   %D%/packages/patches/u-boot-rockchip-inno-usb.patch		\
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 50e7bb8bbc..b38b407d38 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -826,37 +826,32 @@ (define-public dtc
 tree binary files.  These are board description files used by Linux and BSD.")
     (license license:gpl2+)))
 
-(define %u-boot-rockchip-inno-usb-patch
-  ;; Fix regression in 2020.10 causing freezes on boot with USB boot enabled.
-  ;; See https://gitlab.manjaro.org/manjaro-arm/packages/core/uboot-rockpro64/-/issues/4
-  ;; and https://patchwork.ozlabs.org/project/uboot/patch/20210406151059.1187379-1-icenowy@HIDDEN
-  (search-patch "u-boot-rockchip-inno-usb.patch"))
-
-(define %u-boot-allow-disabling-openssl-patch
-  ;; Fixes build of u-boot 2021.10 without openssl
-  ;; https://lists.denx.de/pipermail/u-boot/2021-October/462728.html
-  (search-patch "u-boot-allow-disabling-openssl.patch"))
-
-(define %u-boot-nanopi-r4s-ddr3-patch
-  ;; Use DDR3 instead of LPDDR4 for the Nano Pi R4S U-boot.
-  (search-patch "u-boot-nanopi-r4s-ddr3.patch"))
-
 (define u-boot
   (package
     (name "u-boot")
     (version "2024.07")
-    (source (origin
-              (patches
-               (list %u-boot-rockchip-inno-usb-patch
-                     %u-boot-allow-disabling-openssl-patch
-                     %u-boot-nanopi-r4s-ddr3-patch))
-              (method url-fetch)
-              (uri (string-append
-                    "https://ftp.denx.de/pub/u-boot/"
-                    "u-boot-" version ".tar.bz2"))
-              (sha256
-               (base32
-                "13rwv28g6z8ihrs8k0066gblw37rvw6nsxkks6rxdwqfp6ddm4gm"))))
+    (source
+      (origin
+        (patches
+          (search-patches
+            ;; Fix regression in 2020.10 causing freezes on boot with
+            ;; USB boot enabled.  See:
+            ;; https://gitlab.manjaro.org/manjaro-arm/packages/core/uboot-rockpro64/-/issues/4
+            ;; https://patchwork.ozlabs.org/project/uboot/patch/20210406151059.1187379-1-icenowy@HIDDEN
+            "u-boot-rockchip-inno-usb.patch"
+            ;; Fixes build of u-boot 2021.10 without openssl.  See:
+            ;; https://lists.denx.de/pipermail/u-boot/2021-October/462728.html
+            "u-boot-allow-disabling-openssl.patch"
+            ;; Use DDR3 instead of LPDDR4 for the Nano Pi R4S.
+            "u-boot-nanopi-r4s-ddr3.patch"
+            ;; Reserve more than 36 MB for linux-libre 6.9+ kernels.
+            "u-boot-50M-kernel.patch"))
+        (method url-fetch)
+        (uri (string-append "https://ftp.denx.de/pub/u-boot/"
+                            "u-boot-" version ".tar.bz2"))
+        (sha256
+          (base32
+            "13rwv28g6z8ihrs8k0066gblw37rvw6nsxkks6rxdwqfp6ddm4gm"))))
     (build-system gnu-build-system)
     (native-inputs
      (list bison
diff --git a/gnu/packages/patches/u-boot-50M-kernel.patch b/gnu/packages/patches/u-boot-50M-kernel.patch
new file mode 100644
index 0000000000..4566894087
--- /dev/null
+++ b/gnu/packages/patches/u-boot-50M-kernel.patch
@@ -0,0 +1,51 @@
+This patch configures the U-Boot for Raspberry Pis to reserve 50 MB for
+linux kernels, because the 6.9 and newer linux-libre-arm64-generic
+kernels can be larger than 36 MB.  It was created by Herman Rimm
+<herman@HIDDEN> in August 2024 and is not submitted upstream yet.
+diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env
+index 30228285ed..54a8e9e5ae 100644
+--- a/board/raspberrypi/rpi/rpi.env
++++ b/board/raspberrypi/rpi/rpi.env
+@@ -43,22 +43,22 @@ dfu_alt_info+=zImage fat 0 1
+  *   text_offset bytes (specified in the header of the Image) into a 2MB
+  *   boundary. The 'booti' command relocates the image if necessary. Linux uses
+  *   a default text_offset of 0x80000.  In summary, loading at 0x80000
+- *   satisfies all these constraints and reserving memory up to 0x02400000
+- *   permits fairly large (roughly 36M) kernels.
++ *   satisfies all these constraints and reserving memory up to 0x03400000
++ *   permits fairly large (roughly 50M) kernels.
+  *
+  * scriptaddr and pxefile_addr_r can be pretty much anywhere that doesn't
+  * conflict with something else. Reserving 1M for each of them at
+- * 0x02400000-0x02500000 and 0x02500000-0x02600000 should be plenty.
++ * 0x03200000-0x03300000 and 0x03300000-0x03400000 should be plenty.
+  *
+  * On ARM, both the DTB and any possible initrd must be loaded such that they
+  * fit inside the lowmem mapping in Linux. In practice, this usually means not
+  * more than ~700M away from the start of the kernel image but this number can
+  * be larger OR smaller depending on e.g. the 'vmalloc=xxxM' command line
+  * parameter given to the kernel. So reserving memory from low to high
+- * satisfies this constraint again. Reserving 1M at 0x02600000-0x02700000 for
+- * the DTB leaves rest of the free RAM to the initrd starting at 0x02700000.
++ * satisfies this constraint again. Reserving 1M at 0x03400000-0x03500000 for
++ * the DTB leaves rest of the free RAM to the initrd starting at 0x03500000.
+  * Even with the smallest possible CPU-GPU memory split of the CPU getting
+- * only 64M, the remaining 25M starting at 0x02700000 should allow quite
++ * only 64M, the remaining 11M starting at 0x03500000 should allow quite
+  * large initrds before they start colliding with U-Boot.
+  */
+ #ifdef CONFIG_ARM64
+@@ -69,9 +69,9 @@ fdt_high=ffffffff
+ initrd_high=ffffffff
+ #endif
+ kernel_addr_r=0x00080000
+-scriptaddr=0x02400000
+-pxefile_addr_r=0x02500000
+-fdt_addr_r=0x02600000
+-ramdisk_addr_r=0x02700000
++scriptaddr=0x03200000
++pxefile_addr_r=0x03300000
++fdt_addr_r=0x03400000
++ramdisk_addr_r=0x03500000
+ 
+ boot_targets=mmc usb pxe dhcp

base-commit: a493d65d04deafb763710bb1cb0425185750327d
-- 
2.45.2





Information forwarded to efraim@HIDDEN, vagrant@HIDDEN, guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at 72987) by debbugs.gnu.org; 15 Sep 2024 22:12:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 15 18:12:49 2024
Received: from localhost ([127.0.0.1]:50668 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1spxU8-0000Cn-QI
	for submit <at> debbugs.gnu.org; Sun, 15 Sep 2024 18:12:49 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34750)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1spxU6-0000CY-3U
 for 72987 <at> debbugs.gnu.org; Sun, 15 Sep 2024 18:12:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1spxTj-00023t-7l; Sun, 15 Sep 2024 18:12:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=RgHNfEK/4IcmVwhbuIaaON1tmdkXd8fPBQv8aOSLO64=; b=Iw5HV/a9D3TR76ZKxcu4
 KhPiaR+erYqbglLjZZUFbHMo0keM20jIxOv4fA6o7eIVWPAZrgGaOkJL4wxXd/twWo1cc6pN9rK1u
 o8+dJtw7dzwZxAOKcIW/ahBbmP5SXiMuFLqE2aD4Dlr+kuo022rVAZ4oA5VS+rXwoTBHrwb9SxFmQ
 YC4G8GVgp+vVWCLyaLV2TxurPTjAU9UNgyUCASqxUHJgX1T6vJqtTwQXPnM3j3/Z3bIBR+AVhwyiF
 ICp8Z3lYC0bMj3Azr2wfhOaHIVYd9fVKFZb6jOIMwzeq3SF3n0a0pQmXCew9DOK+7Js9eA1HEo0zh
 bfgV1z5DBE7mNw==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Herman Rimm <herman@HIDDEN>
Subject: Re: [bug#72987] [PATCH] gnu: u-boot: Enlarge space available for
 kernel.
In-Reply-To: <20240902190459.13783-1-herman@HIDDEN> (Herman Rimm's message of
 "Mon, 2 Sep 2024 21:04:59 +0200")
References: <20240902190459.13783-1-herman@HIDDEN>
Date: Mon, 16 Sep 2024 00:12:07 +0200
Message-ID: <877cbcbm88.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72987
Cc: Vagrant Cascadian <vagrant@HIDDEN>, 72987 <at> debbugs.gnu.org,
 Efraim Flashner <efraim@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 (---)

Hi,

Cc=E2=80=99ing members of the =E2=80=98embedded=E2=80=99 team (normally the=
 =E2=80=98git send-email=E2=80=99
hook that gets installed should do that when you compose the message,
no?).

Herman Rimm <herman@HIDDEN> skribis:

> * gnu/packages/bootloaders.scm (u-boot): Use patch.
> * gnu/packages/patches/u-boot-50M-kernel.patch: Add file.
> * gnu/local.mk (dist_patch_DATA): Register patch.
> ---
> Based on [bug#70131].

Vagrant, Efraim: could you review and possibly apply #70131?

Some superficial comments:

> +++ b/gnu/packages/bootloaders.scm
> @@ -841,6 +841,10 @@ (define %u-boot-nanopi-r4s-ddr3-patch
>    ;; Use DDR3 instead of LPDDR4 for the Nano Pi R4S U-boot.
>    (search-patch "u-boot-nanopi-r4s-ddr3.patch"))
>=20=20
> +(define %u-boot-50M-kernel-patch
> +  ;; Make space for 6.9+ linux-libre kernel.
> +  (search-patch "u-boot-50M-kernel.patch"))

=E2=80=98search-patch=E2=80=99 must not be called from the top level: it in=
curs extra
=E2=80=98stat=E2=80=99 calls and it could throw an exception.  Thus, arrang=
e to have it
called from the =E2=80=98patches=E2=80=99 field (which is thunked) or somet=
hing similar.

> +++ b/gnu/packages/patches/u-boot-50M-kernel.patch
> @@ -0,0 +1,47 @@
> +diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.e=
nv
> +index 30228285ed..54a8e9e5ae 100644
> +--- a/board/raspberrypi/rpi/rpi.env

Please add a line or two at the top explaining what the patch does and
where it comes from.

I=E2=80=99ll let Vagrant and Efraim comment on the actual change.

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#72987; Package guix-patches. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 2 Sep 2024 19:08:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 15:08:54 2024
Received: from localhost ([127.0.0.1]:52454 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1slCQ2-00025l-6j
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2024 15:08:54 -0400
Received: from lists.gnu.org ([209.51.188.17]:42792)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <herman@HIDDEN>) id 1slCPz-00025b-Nn
 for submit <at> debbugs.gnu.org; Mon, 02 Sep 2024 15:08:52 -0400
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 <herman@HIDDEN>) id 1slCMt-00070s-8X
 for guix-patches@HIDDEN; Mon, 02 Sep 2024 15:05:39 -0400
Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]
 helo=email.rimm.ee)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <herman@HIDDEN>) id 1slCMp-0001VQ-Rd
 for guix-patches@HIDDEN; Mon, 02 Sep 2024 15:05:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman;
 t=1725303930;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding;
 bh=OQbNMk3pYGGy28tcw0igFmBS1z1fY82A6iPVIQUPz/A=;
 b=YEhEDf+XqLyJc86QPDWcUPnlPw4EYtNKQVl+fxaB7GC6zt+KkJAz3AhtQJoHgTrsx3vxxg
 iT5H4CJ/FCQSMvweZXlrKHgRKmOOrBGePnQ3XH5kdd9GGlQOBUpgziPi2Q7L6pqQFPoUsj
 lf+Xm5eIXcZfBtWQLu87ErmAG3abJscSesD5DJFG6NM6gMgrSjEthvOFWmekIuplHWvcT3
 5eXe8v24PWaPP4R66EdlAIa36Ui25e7N7MIuxgONQyorznJIB0eixkdJo5woBzSwsC+P2s
 u7xnYW8p5O9AE/d8vfUuvJ+LM5wZYqOp5x1X1wGqFhh3vLV720anem2cAyOL1w==
Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 0c411196
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO)
 for <guix-patches@HIDDEN>; Mon, 2 Sep 2024 19:05:30 +0000 (UTC)
From: Herman Rimm <herman@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: u-boot: Enlarge space available for kernel.
Date: Mon,  2 Sep 2024 21:04:59 +0200
Message-ID: <20240902190459.13783-1-herman@HIDDEN>
X-Mailer: git-send-email 2.45.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=81.205.150.117; envelope-from=herman@HIDDEN;
 helo=email.rimm.ee
X-Spam_score_int: 12
X-Spam_score: 1.2
X-Spam_bar: +
X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_PBL=3.335,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
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: -2.4 (--)

* gnu/packages/bootloaders.scm (u-boot): Use patch.
* gnu/packages/patches/u-boot-50M-kernel.patch: Add file.
* gnu/local.mk (dist_patch_DATA): Register patch.
---
Based on [bug#70131].

 gnu/local.mk                                 |  1 +
 gnu/packages/bootloaders.scm                 |  7 ++-
 gnu/packages/patches/u-boot-50M-kernel.patch | 47 ++++++++++++++++++++
 3 files changed, 54 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/u-boot-50M-kernel.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 2ce910ad28..d674acd7ca 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2165,6 +2165,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/turbovnc-find-system-packages.patch	\
   %D%/packages/patches/tuxpaint-stamps-path.patch		\
   %D%/packages/patches/twinkle-bcg729.patch			\
+  %D%/packages/patches/u-boot-50M-kernel.patch			\
   %D%/packages/patches/u-boot-allow-disabling-openssl.patch	\
   %D%/packages/patches/u-boot-nintendo-nes-serial.patch		\
   %D%/packages/patches/u-boot-rockchip-inno-usb.patch		\
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 162eef6859..9980521a5f 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -841,6 +841,10 @@ (define %u-boot-nanopi-r4s-ddr3-patch
   ;; Use DDR3 instead of LPDDR4 for the Nano Pi R4S U-boot.
   (search-patch "u-boot-nanopi-r4s-ddr3.patch"))
 
+(define %u-boot-50M-kernel-patch
+  ;; Make space for 6.9+ linux-libre kernel.
+  (search-patch "u-boot-50M-kernel.patch"))
+
 (define u-boot
   (package
     (name "u-boot")
@@ -849,7 +853,8 @@ (define u-boot
               (patches
                (list %u-boot-rockchip-inno-usb-patch
                      %u-boot-allow-disabling-openssl-patch
-                     %u-boot-nanopi-r4s-ddr3-patch))
+                     %u-boot-nanopi-r4s-ddr3-patch
+                     %u-boot-50M-kernel-patch))
               (method url-fetch)
               (uri (string-append
                     "https://ftp.denx.de/pub/u-boot/"
diff --git a/gnu/packages/patches/u-boot-50M-kernel.patch b/gnu/packages/patches/u-boot-50M-kernel.patch
new file mode 100644
index 0000000000..d31501400e
--- /dev/null
+++ b/gnu/packages/patches/u-boot-50M-kernel.patch
@@ -0,0 +1,47 @@
+diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env
+index 30228285ed..54a8e9e5ae 100644
+--- a/board/raspberrypi/rpi/rpi.env
++++ b/board/raspberrypi/rpi/rpi.env
+@@ -43,22 +43,22 @@ dfu_alt_info+=zImage fat 0 1
+  *   text_offset bytes (specified in the header of the Image) into a 2MB
+  *   boundary. The 'booti' command relocates the image if necessary. Linux uses
+  *   a default text_offset of 0x80000.  In summary, loading at 0x80000
+- *   satisfies all these constraints and reserving memory up to 0x02400000
+- *   permits fairly large (roughly 36M) kernels.
++ *   satisfies all these constraints and reserving memory up to 0x03400000
++ *   permits fairly large (roughly 50M) kernels.
+  *
+  * scriptaddr and pxefile_addr_r can be pretty much anywhere that doesn't
+  * conflict with something else. Reserving 1M for each of them at
+- * 0x02400000-0x02500000 and 0x02500000-0x02600000 should be plenty.
++ * 0x03200000-0x03300000 and 0x03300000-0x03400000 should be plenty.
+  *
+  * On ARM, both the DTB and any possible initrd must be loaded such that they
+  * fit inside the lowmem mapping in Linux. In practice, this usually means not
+  * more than ~700M away from the start of the kernel image but this number can
+  * be larger OR smaller depending on e.g. the 'vmalloc=xxxM' command line
+  * parameter given to the kernel. So reserving memory from low to high
+- * satisfies this constraint again. Reserving 1M at 0x02600000-0x02700000 for
+- * the DTB leaves rest of the free RAM to the initrd starting at 0x02700000.
++ * satisfies this constraint again. Reserving 1M at 0x03400000-0x03500000 for
++ * the DTB leaves rest of the free RAM to the initrd starting at 0x03500000.
+  * Even with the smallest possible CPU-GPU memory split of the CPU getting
+- * only 64M, the remaining 25M starting at 0x02700000 should allow quite
++ * only 64M, the remaining 11M starting at 0x03500000 should allow quite
+  * large initrds before they start colliding with U-Boot.
+  */
+ #ifdef CONFIG_ARM64
+@@ -69,9 +69,9 @@ fdt_high=ffffffff
+ initrd_high=ffffffff
+ #endif
+ kernel_addr_r=0x00080000
+-scriptaddr=0x02400000
+-pxefile_addr_r=0x02500000
+-fdt_addr_r=0x02600000
+-ramdisk_addr_r=0x02700000
++scriptaddr=0x03200000
++pxefile_addr_r=0x03300000
++fdt_addr_r=0x03400000
++ramdisk_addr_r=0x03500000
+ 
+ boot_targets=mmc usb pxe dhcp
-- 
2.45.2





Acknowledgement sent to Herman Rimm <herman@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#72987; 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: Sun, 12 Jan 2025 05:45:02 UTC

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