[PATCH 5/5] ARM: Tegra: Use calc env var feature on all boards

Stephen Warren swarren at wwwdotorg.org
Tue Mar 17 18:38:10 CET 2020

On 3/16/20 1:40 PM, twarren at nvidia.com wrote:
> From: Tom Warren <twarren at nvidia.com>
> Large kernels (>32MB) can fail to boot because they overwrite the FDT
> address, corrupting the DTB. Stephen Warren had created a fix to
> dynamically adjust the fdt/ramdisk/pxefile/kernel addr vars at boot time
> for T186, which allows a large kernel to load and boot.

That was actually done to support holes in the RAM map; it's not
actually required in order to support large kernels at all. We could
just as easily directly modify the existing hard-coded load addresses.

> This is based on his commit, but applied to the tegraXXX-common.h
> headers so it's used on all T186 and T210 Jetson boards. Note that I've
> put the kernel 'size' param at 0x03000000, or 48MB, to leave room for
> kernel growth. Current L4T kernels are running at about 32MB.

I had completely forgotten that we had the calculated env vars feature
upstream already!

I thought we went with 96 or 128MB space for the kernel downstream, to
make sure there'd "never" any future problem as the kernel grows?

But this patch seems OK for now I guess.

More information about the U-Boot mailing list