]> git.baikalelectronics.ru Git - uboot.git/commit
rpi: Change load addresses to make more room for the kernel & DTB
authorTuomas Tynkkynen <tuomas@tuxera.com>
Fri, 20 Apr 2018 10:03:49 +0000 (13:03 +0300)
committerAlexander Graf <agraf@suse.de>
Thu, 24 May 2018 08:20:53 +0000 (10:20 +0200)
commit5452c76f9570b6a6f63582324ca01b53765692c4
tree68dd054dfb14c496329991051298a8ad9f2e2b78
parenteb10a12b82118a81c1edd2e2df3b5a5a9741b41c
rpi: Change load addresses to make more room for the kernel & DTB

As of Linux 4.16, a multiplatform AArch64 kernel with our distro config
takes 26M. The current space reservation leaves only 17M for the kernel
and if it goes over it, the initrd gets overwritten when loading the
kernel from the filesystem.

A similar problem happens on ARMv7 with the DTBs taken from the
downstream Raspberry Pi foundation kernel. I guess they compile them
with DT overlay support enabled which grows them just enough.

Fix both of these problems by rewriting the memory map, which now allows
kernels to be up to 36M and DTBs up to 1M. Also the comment block was
kind of obsolete ever since the introduction of AArch64 support and the
firmware-loaded DTB doesn't get placed at 0x100 anymore either, so that
is fixed as well.

Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/configs/rpi.h