diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-25 20:18:51 +0200 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-10-21 23:52:49 +0530 |
commit | fb5b1678433711091e6f89a1c1ef24c422b5f521 (patch) | |
tree | 44ec2198a49ee993431b38f672b6f2be90d9da13 /common | |
parent | 5108a257b77ef0398d4743d65fd92f70738f73f0 (diff) | |
download | u-boot-fb5b1678433711091e6f89a1c1ef24c422b5f521.tar.gz |
arm: sunxi: increase SYS_MALLOC_F_LEN
The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any
additional drivers marked as DM_FLAG_PRE_RELOC are loaded before
relocation.
CONFIG_RSA=y which is needed for UEFI secure boot or for FIT image
verification loads the driver mod_exp_sw which has DM_FLAG_PRE_RELOC.
CONFIG_LOG=Y is another setting requiring additional early malloc
area, cf. log_init().
When running pine64-lts_defconfig with CONFIG_RSA=y and debug UART enabled
we see as output in main U-Boot
alloc_simple() alloc space exhausted
With this patch the default values of SYS_MALLOC_F_LEN and
SPL_SYS_MALLOC_F_LEN on ARCH_SUNXI are raised to 0x2000.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions