]> git.baikalelectronics.ru Git - uboot.git/commit
configs: stm32mp1: stm32mp1: Increase SPL malloc() size
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Mon, 22 Mar 2021 13:19:59 +0000 (08:19 -0500)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 9 Apr 2021 09:59:13 +0000 (11:59 +0200)
commitf66509efeebd569d343e3edc92db7733ece8eb71
tree963fdd8f38eda038c330028a1bc128ff80bd85f9
parentb131d1d670160b4215005d1f4d13934116a17589
configs: stm32mp1: stm32mp1: Increase SPL malloc() size

Since commit 9630fed0f936 ("spl: fit: Prefer a malloc()'d buffer for
loading images"), FIT images must be malloc()'d before being loaded.
The old size of 1 MiB is suitable for FIT images with u-boot and an
FDT, but something containing a linux kernel is almost sure to fail.

It's safe to extend malloc all the way to 0xc2000000, but no further.
Linux likes to be loaded at 0xc2000000, so we use that as our cutoff
point. This gives us 29 MiB of malloc() space, which suited for more
complex FIT images including several DTBs, kernel, and OP-TEE images.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
include/configs/stm32mp1.h