kontron_pitx_imx8m: enlarge SYS_MALLOC_F_LEN
PATCH 1/1 kontron_pitx_imx8m: enlarge SYS_MALLOC_F_LEN
There is "alloc space exhausted" that can be seen with DEBUG_UART options enabled and leeds to an non-functional board.
CONFIG_DEBUG_UART_BASE=0x30880000 # for serial3CONFIG_DEBUG_UART_CLOCK=24000000
It is because CONFIG_SYS_MALLOC_F_LEN is too small, enlarge it. And set CONFIG_SPL_STACK to 0x188000 to not waste the top 16bytes.
Signed-off-by Heiko Thiery <[email protected]>
--- configs/kontron_pitx_imx8m_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
configs/kontron_pitx_imx8m_defconfig +2 -1
@@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_IMX8M=y CONFIG_SYS_TEXT_BASE=0x40200000 CONFIG_SYS_MALLOC_LEN=0x600000 +CONFIG_SYS_MALLOC_F_LEN=0x10000 CONFIG_SPL_GPIO=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
@@ -35,7 +36,7 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x180000 CONFIG_SPL_BSS_MAX_SIZE=0x2000 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set -CONFIG_SPL_STACK=0x187ff0 +CONFIG_SPL_STACK=0x188000 CONFIG_SYS_SPL_MALLOC=y CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x42200000
Signature · 1 line
2.30.2
Hi Heiko,
Quoted 11 lines · Heiko Thiery
There is "alloc space exhausted" that can be seen with
DEBUG_UARToptions enabled and leeds to an non-functional board.
CONFIG_DEBUG_UART_BASE=0x30880000# for serial3CONFIG_DEBUG_UART_CLOCK=24000000It is because
CONFIG_SYS_MALLOC_F_LENis too small, enlarge it. And setCONFIG_SPL_STACKto0x188000to not waste the top 16bytes.Signed-off-by Heiko Thiery <[email protected]>
Reviewed-by Fabio Estevam <[email protected]>