From: Christopher Obbard <obbardc@debian.org>
To: Simon Glass <sjg@chromium.org>,
U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Stephen Warren <swarren@wwwdotorg.org>,
Stephen Warren <swarren@nvidia.com>,
Matthias Brugger <mbrugger@suse.com>,
Tom Rini <trini@konsulko.com>,
Peter Robinson <pbrobinson@gmail.com>
Subject: Re: [PATCH v4 4/5] rpi: Update environment to support booti and large initrd
Date: Sun, 30 Mar 2025 14:35:50 +0100 [thread overview]
Message-ID: <e672db931b223184ca8644c9d56ca86f0fdac7bc.camel@debian.org> (raw)
In-Reply-To: <20241220003447.2913443-5-sjg@chromium.org>
Hi Simon,
On Thu, 2024-12-19 at 17:34 -0700, Simon Glass wrote:
> The existing values don't provide for decompressing an arm64 boot-
> image.
> Add those values and move things apart a bit so that a 50MB kernel
> can be
> accommodated.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Christopher Obbard <christopher.obbard@linaro.org>
Tested-by: Christopher Obbard <christopher.obbard@linaro.org> # CM4 1G
> ---
>
> (no changes since v3)
>
> Changes in v3:
> - Update the comment block with the new values, including compression
>
> board/raspberrypi/rpi/rpi.env | 27 ++++++++++++++++-----------
> 1 file changed, 16 insertions(+), 11 deletions(-)
>
> diff --git a/board/raspberrypi/rpi/rpi.env
> b/board/raspberrypi/rpi/rpi.env
> index 9b9fad82828..9ac9d6768ca 100644
> --- a/board/raspberrypi/rpi/rpi.env
> +++ b/board/raspberrypi/rpi/rpi.env
> @@ -48,28 +48,33 @@ dfu_alt_info+=zImage fat 0 1
> *
> * 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.
> + * 0x05400000-0x05500000 and 0x05500000-0x05600000 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.
> - * Even with the smallest possible CPU-GPU memory split of the CPU
> getting
> - * only 64M, the remaining 25M starting at 0x02700000 should allow
> quite
> - * large initrds before they start colliding with U-Boot.
> + * satisfies this constraint again. Reserving 1M at 0x05600000-
> 0x05700000 for
> + * the DTB leaves rest of the free RAM to the initrd starting at
> 0x05700000.
> + * This means that the board must have at least 128MB of RAM
> available to
> + * U-Boot, more if the initrd is large.
> *
> - * Limit bootm_size to 512MB so that all boot images stay within the
> bottom
> + * For compressed kernels, the maximum size is just under 32MB, with
> an area for
> + * decompression at 0x02000000 with space for 52MB, which is plenty
> for current
> + * kernels.
> + *
> + * limit bootm_size to 512MB so that all boot images stay within the
> bottom
> * 512MB of memory
> */
> bootm_size=0x20000000
>
> kernel_addr_r=0x00080000
> -scriptaddr=0x02400000
> -pxefile_addr_r=0x02500000
> -fdt_addr_r=0x02600000
> -ramdisk_addr_r=0x02700000
> +kernel_comp_addr_r=0x02000000
> +kernel_comp_size=0x03400000
> +scriptaddr=0x05400000
> +pxefile_addr_r=0x05500000
> +fdt_addr_r=0x05600000
> +ramdisk_addr_r=0x05700000
>
> boot_targets=mmc usb pxe dhcp
next prev parent reply other threads:[~2025-03-30 14:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-20 0:34 [PATCH v4 0/5] rpi: Tidy up booting Simon Glass
2024-12-20 0:34 ` [PATCH v4 1/5] rpi: Add myself to the list of maintainers Simon Glass
2025-03-30 13:37 ` Christopher Obbard
2025-04-21 10:09 ` Peter Robinson
2025-05-23 20:20 ` Simon Glass
2024-12-20 0:34 ` [PATCH v4 2/5] rpi: Set bootm_size to 512MB Simon Glass
2025-03-30 13:35 ` Christopher Obbard
2025-04-21 10:09 ` Peter Robinson
2024-12-20 0:34 ` [PATCH v4 3/5] rpi: Drop fdt_high and initrd_high Simon Glass
2025-03-30 13:35 ` Christopher Obbard
2025-03-30 14:07 ` Christopher Obbard
2025-04-21 10:10 ` Peter Robinson
2024-12-20 0:34 ` [PATCH v4 4/5] rpi: Update environment to support booti and large initrd Simon Glass
2025-03-30 13:35 ` Christopher Obbard [this message]
2025-03-30 14:07 ` Christopher Obbard
2025-04-21 10:09 ` Peter Robinson
2024-12-20 0:34 ` [PATCH v4 5/5] rpi: Use the U-Boot control FDT for fdt_addr Simon Glass
2025-03-30 13:36 ` Christopher Obbard
2025-03-30 14:07 ` Christopher Obbard
2025-04-21 10:34 ` Peter Robinson
2025-05-23 20:20 ` Simon Glass
2025-01-15 14:09 ` [PATCH v4 0/5] rpi: Tidy up booting Simon Glass
2025-01-30 19:54 ` Simon Glass
2025-02-03 3:41 ` Peter Robinson
2025-03-30 13:29 ` Christopher Obbard
2025-03-30 15:03 ` Christopher Obbard
2025-04-01 15:51 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e672db931b223184ca8644c9d56ca86f0fdac7bc.camel@debian.org \
--to=obbardc@debian.org \
--cc=mbrugger@suse.com \
--cc=pbrobinson@gmail.com \
--cc=sjg@chromium.org \
--cc=swarren@nvidia.com \
--cc=swarren@wwwdotorg.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox