From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 mI93ELox7GZTaAAAqHPOHw:P1 (envelope-from ) for ; Thu, 19 Sep 2024 14:14:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mI93ELox7GZTaAAAqHPOHw (envelope-from ) for ; Thu, 19 Sep 2024 16:14:18 +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=lnhLX0sC; dkim=fail ("headers rsa verify failed") header.d=chromium.org header.s=google header.b=EBbXDYAr; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=chromium.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726755258; 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=84xmllLzcNWq6sR2aesI/kmuvgMCEaVimg6P8MHvCbk=; b=rER2tpKSHgTjc7Tprkdq6KhLYSVsN/zZK24PF6F6Qoi0omnFs2xfWkCsfzBwgauEEi8fSh Vu9cp4JhiyQTaeIFFNfaMwh/lmuThTZjlj2Inq4Qx2zmQerdQ4wjgDWhoMHjpfk7vsFvq/ ZbJjv1OMZyMEBQLbiZ90NTNnGRDkWw1aWem0INcYkORghlnn6MjSXsvnl+qbqnfNQaVKcZ PyxBSE/vgSc82eLKmJ2sQv/VdkkcgV0NQJ2WVY39x8z1pesEWHhvvtt4EKoJAgVcJMsrzd zic6c73cq/SbRCierMLpQQ5zdXtHRFqnPTgxl6RVsRzEsa+fwvuo0jR9he5f8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726755258; a=rsa-sha256; cv=none; b=POa/KRabHHP1bmfUKjBDn5Ta9VioWi8WQLk+k42Wm/K6j13D2YPXaz4lpWqZGo03qhRK4e ox4jUnBmsVCyTkl5lbwnCUQ96MyC8uekyL1ittyNHvImS40UU9cmfWMDGKA/CSrPzLh/d6 eLGbjnCAj1azrh6jwjhybzSaPMRPZEs89W4vGuWtebLjKIvoVLy9Kww5fmnhXilLCRFneb rFaI3WZ34un65bgzrdKed1MmLBbIiHGbjqMfo4aXmn3oTLtZyj/DC7jsF3ILQzp2UqEmf0 ePczrVyQ/6zgX8B99p5gECuAnxuK6hT6+MVcjXp7Zjh/S8Lh0+BcDL6/YqpdNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=lnhLX0sC; dkim=fail ("headers rsa verify failed") header.d=chromium.org header.s=google header.b=EBbXDYAr; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=chromium.org (policy=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 AA3A364891 for ; Thu, 19 Sep 2024 16:14:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srHum-0005h4-2F; Thu, 19 Sep 2024 10:13:48 -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 1srHuj-0005gV-L2 for guix-patches@gnu.org; Thu, 19 Sep 2024 10:13:45 -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 1srHuj-0000vF-C4 for guix-patches@gnu.org; Thu, 19 Sep 2024 10:13:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=84xmllLzcNWq6sR2aesI/kmuvgMCEaVimg6P8MHvCbk=; b=lnhLX0sCj2ygMZ/cPN72E9Zr2Wx5/K581qyuZFEwaXRlHztSGlQVdItgvE9/qs2fc2WJBwtREuvTjLMwXAebyAlVrfXFt8iYc47OBWbvMchdPxiNPLSOjwrjO8eE9Zuh5kS2K0dyMDIBjwcnC765lEsCtvk+nyANiA9rda66ewRsat7pKQ9R+2uknNx8Z+8AVPSHtBLUgRR32z/37qTjb6kUAfPTNeR/Uq+C8qLEEPbiAbYb2kBYqnBKib6T0BfrJ1wYBfKrRC8cAu/gtXNjLONqE0EUCBNcf9GcmE3w+h7KCjN1jz33mFsUoVPxMLwPvgL1OJbkKCH5seZu3uzwig==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srHuz-0001Zc-Pg for guix-patches@gnu.org; Thu, 19 Sep 2024 10:14:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72987] u-boot: rpi: Enlarge space available for kernel. Resent-From: Simon Glass Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2024 14:14: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: Vagrant Cascadian Cc: Matthias Brugger , 72987@debbugs.gnu.org, Efraim Flashner , u-boot@lists.denx.de, Herman Rimm , Peter Robinson Received: via spool by 72987-submit@debbugs.gnu.org id=B72987.17267552015987 (code B ref 72987); Thu, 19 Sep 2024 14:14:01 +0000 Received: (at 72987) by debbugs.gnu.org; 19 Sep 2024 14:13:21 +0000 Received: from localhost ([127.0.0.1]:33186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srHuK-0001YT-Fm for submit@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 ) id 1srHuI-0001Y9-CU for 72987@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@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@rimm.ee> <87jzfbl371.fsf@wireframe> In-Reply-To: <87jzfbl371.fsf@wireframe> From: Simon Glass Date: Thu, 19 Sep 2024 16:11:43 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" 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: -10.45 X-Migadu-Queue-Id: AA3A364891 X-Spam-Score: -10.45 X-TUID: AAcUTIsPUt5K Hi, On Mon, 16 Sept 2024 at 23:06, Vagrant Cascadian 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 > > + 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