From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AG6gBfOd6GY84gAAe85BDQ:P1 (envelope-from ) for ; Mon, 16 Sep 2024 21:06:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id AG6gBfOd6GY84gAAe85BDQ (envelope-from ) for ; Mon, 16 Sep 2024 23:06:59 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Bl1RansH; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=lkkj3CdJ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726520818; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Yqst/pkNW01UxwwS+3PdWbfmhhvCXs4OhzHTLVeKhI0=; b=Kcevf4bk0vbX0ZsKKt9+qTdVkqBZYU48OK8Db/vjTUQIL+JZYKHP0poV9tAJ55dtu/OSjO GCArml+ecd/oZ7OOgVKkKgpMbuilhmLPZMTwgU/RjAR2Bjs+IpU+0JHv5Lyuj7NHaVcqvW 1ugcStWTy3rTKtgK7noUmOLGQjMgCpYSKjTvufvEN9l/6CdoUIF7LM8Uwr3fcHb2HEBVFq RRYm0fRk7/iOqPboUVEs+1g6ZFaZ8m0YCMA00bJ/Y6li2dDWc04ybHt830zMJPB0AY9tUh Uyjb5bUDFqGEJVPU329sd71skBZFcpH/xj4tWJesHlXWo7UhlZjZS8HG+CFf7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726520818; a=rsa-sha256; cv=none; b=BPMTsCMQ9gKF08XXkr0gk0cR26wXNd6cOoDNRgvcmmMEEYQrTg68C1cHFnQmXXYHYAsphJ W5eYCZRQbbp5yFVWPwkAxpYYwO33OAN+LSfac3tAmTPQevVaW7TtyDXdy1cCxqLH84M4Jy 3h3B3536Km6i8lRpGHTyA2S0FYE5qPdg0asab4T4xI3e4HsL8CxY8iNuaKEpS30sMSAbod 45fOx/MFG24tSevbull6MA5Wsv7Hmjm9lKpX3RSLr5pgb13rfquFQPBVIljZSTtap5uzd8 xtTdVjuIb2kIIbHLi/WDvz/dLslN64gG/IxVBXbd8WXR9jqo7AMn4IdERCKEdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Bl1RansH; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=lkkj3CdJ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A50887C205 for ; Mon, 16 Sep 2024 23:06:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqIvp-0008H2-W8; Mon, 16 Sep 2024 17:06:50 -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 ) id 1sqIvo-0008FU-9C for guix-patches@gnu.org; Mon, 16 Sep 2024 17:06:48 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqIvo-000305-0W for guix-patches@gnu.org; Mon, 16 Sep 2024 17:06:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Yqst/pkNW01UxwwS+3PdWbfmhhvCXs4OhzHTLVeKhI0=; b=Bl1RansHLazkD8XGk95TZ+lse4PqhhVoQ6OuF/ZOeyiK12Vrfe/XmRQnMkuqNDfqncxcHwWiQ58R7Ge+flW4l52A5TO3n21tmWEqMg7ZigI7mYzoUzuH2+yEpWUpnkUAc4q9hfQTvaovDwShk5ia16wn6rMeXsRtw4v4U06fgDnqgNWAIE/EmJlV6g1QQfnkDN5xVtKitK+JuLtEXB72BTV8ImyYrYkNQh5y80BijmkW0P4sBdUkA4KNGunA8ysHgQL+c+nNLhdsGcI+a5pbFIoR7p5/lHGs7oMV+FG9tXWt9NJDXKz6yz3UIYVO00Cb6lLw58sTatQ71RHEd84MIg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqIw1-0000MU-Mm for guix-patches@gnu.org; Mon, 16 Sep 2024 17:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72987] u-boot: rpi: Enlarge space available for kernel. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Sep 2024 21:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72987 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Herman Rimm , 72987@debbugs.gnu.org Cc: u-boot@lists.denx.de, Matthias Brugger , Efraim Flashner , Peter Robinson Received: via spool by 72987-submit@debbugs.gnu.org id=B72987.17265207681308 (code B ref 72987); Mon, 16 Sep 2024 21:07:01 +0000 Received: (at 72987) by debbugs.gnu.org; 16 Sep 2024 21:06:08 +0000 Received: from localhost ([127.0.0.1]:53466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqIv9-0000L1-Lk for submit@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 ) id 1sqIv6-0000KQ-V0 for 72987@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 In-Reply-To: References: <20240902190459.13783-1-herman@rimm.ee> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -11.64 X-Migadu-Queue-Id: A50887C205 X-Spam-Score: -11.64 X-TUID: viNg9/UVKsCd --=-=-= 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 > + 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----- --=-=-=--