Message ID | 20241220003447.2913443-3-sjg@chromium.org |
---|---|
State | Accepted |
Commit | e072ebec0556dcbf63f8dc8a3aad739929ef93dd |
Delegated to: | Peter Robinson |
Headers | show |
Series | rpi: Tidy up booting | expand |
Hi Simon, On Thu, 2024-12-19 at 17:34 -0700, Simon Glass wrote: > Set this option so that all boot images stay within the bottom 512MB > of > memory. This should allow us to drop the fdt_high and initrd_high > options. > > Signed-off-by: Simon Glass <sjg@chromium.org> > Reviewed-by: Tom Rini <trini@konsulko.com> > Suggested-by: Tom Rini <trini@konsulko.com> 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: > - Add to the existing comment block > > Changes in v2: > - Add new patch to set bootm_size > > board/raspberrypi/rpi/rpi.env | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/board/raspberrypi/rpi/rpi.env > b/board/raspberrypi/rpi/rpi.env > index 30228285edd..a327fccc77f 100644 > --- a/board/raspberrypi/rpi/rpi.env > +++ b/board/raspberrypi/rpi/rpi.env > @@ -60,7 +60,12 @@ dfu_alt_info+=zImage fat 0 1 > * 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. > + * > + * Limit bootm_size to 512MB so that all boot images stay within the > bottom > + * 512MB of memory > */ > +bootm_size=0x20000000 > + > #ifdef CONFIG_ARM64 > fdt_high=ffffffffffffffff > initrd_high=ffffffffffffffff
Applied On Fri, 20 Dec 2024 at 00:34, Simon Glass <sjg@chromium.org> wrote: > > Set this option so that all boot images stay within the bottom 512MB of > memory. This should allow us to drop the fdt_high and initrd_high > options. > > Signed-off-by: Simon Glass <sjg@chromium.org> > Reviewed-by: Tom Rini <trini@konsulko.com> > Suggested-by: Tom Rini <trini@konsulko.com> > --- > > (no changes since v3) > > Changes in v3: > - Add to the existing comment block > > Changes in v2: > - Add new patch to set bootm_size > > board/raspberrypi/rpi/rpi.env | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env > index 30228285edd..a327fccc77f 100644 > --- a/board/raspberrypi/rpi/rpi.env > +++ b/board/raspberrypi/rpi/rpi.env > @@ -60,7 +60,12 @@ dfu_alt_info+=zImage fat 0 1 > * 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. > + * > + * Limit bootm_size to 512MB so that all boot images stay within the bottom > + * 512MB of memory > */ > +bootm_size=0x20000000 > + > #ifdef CONFIG_ARM64 > fdt_high=ffffffffffffffff > initrd_high=ffffffffffffffff > -- > 2.34.1 >
diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env index 30228285edd..a327fccc77f 100644 --- a/board/raspberrypi/rpi/rpi.env +++ b/board/raspberrypi/rpi/rpi.env @@ -60,7 +60,12 @@ dfu_alt_info+=zImage fat 0 1 * 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. + * + * Limit bootm_size to 512MB so that all boot images stay within the bottom + * 512MB of memory */ +bootm_size=0x20000000 + #ifdef CONFIG_ARM64 fdt_high=ffffffffffffffff initrd_high=ffffffffffffffff