Hi, Am Mi., 14. Sept. 2022 um 06:12 Uhr schrieb Heiko Thiery <heiko.thi...@gmail.com>: > > Hi, > > Am Mi., 14. Sept. 2022 um 03:38 Uhr schrieb Peng Fan (OSS) > <peng....@oss.nxp.com>: > > > > From: Peng Fan <peng....@nxp.com> > > > > There is "alloc space exhausted" with DEBUG_UART enabled with the > > options enabled.
I don't think the explanation is right. The alloc problem is also there if you don't enable DEBUG_UART. But only with enabled DEBUG_UART you can see the output message(s). > > > > CONFIG_DEBUG_UART_BASE=0x30860000 # for uart1 > > CONFIG_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. > > When changing these values on the kontron_pitx_imx8m_defconfig this > board also works again. > Maybe it could be a good idea to change these values for all imx8mq boards. > > > > > Reported-by: Heiko Thiery <heiko.thi...@gmail.com> > > Signed-off-by: Peng Fan <peng....@nxp.com> > > Tested-by: Heiko Thiery <heiko.thi...@gmail.com> > > > --- > > configs/imx8mq_evk_defconfig | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/configs/imx8mq_evk_defconfig b/configs/imx8mq_evk_defconfig > > index cf207295e54..d877a1290f9 100644 > > --- a/configs/imx8mq_evk_defconfig > > +++ b/configs/imx8mq_evk_defconfig > > @@ -2,6 +2,8 @@ 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_SYS_MALLOC_F_LEN=0x2000 > > CONFIG_SPL_GPIO=y > > CONFIG_SPL_LIBCOMMON_SUPPORT=y > > CONFIG_SPL_LIBGENERIC_SUPPORT=y > > @@ -36,7 +38,7 @@ CONFIG_SPL_BSS_START_ADDR=0x180000 > > CONFIG_SPL_BSS_MAX_SIZE=0x2000 > > CONFIG_SPL_BOARD_INIT=y > > # 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 > > -- > > 2.36.0 > > > > Thank you > -- > Heiko