Hi Michael, Am Fr., 15. Juli 2022 um 12:21 Uhr schrieb Michael Nazzareno Trimarchi <mich...@amarulasolutions.com>: > > Hi Heiko > > On Fri, Jul 15, 2022 at 12:06 PM Heiko Thiery <heiko.thi...@gmail.com> wrote: > > > > Hi Marek > > > > Am Fr., 15. Juli 2022 um 11:29 Uhr schrieb Marek Vasut <ma...@denx.de>: > > > > > > On 7/15/22 10:33, Heiko Thiery wrote: > > > > Hi, > > > > > > Hi, > > > > > > > I see since the change to CLK_IMX8MQ that the kontron_pitx_imx8m board > > > > does not start anymore. I have enabled the DUBUG_UART and see the > > > > following outputs > > > > > > Pick > > > [PATCH] board_init: Do not reserve MALLOC_F area on stack if non-zero > > > MALLOC_F_ADDR > > > > this does not solve the issue. > > > > > > And also, increate SPL_MALLOC_F_LEN in board config if that itself does > > > not help. > > > > As said, I need to increase SYS_MALLOC_F_LEN to 0xc000. Then the board > > starts. But Peng said that this is not a valid value due to the > > OCRAM_S is limited to 32k and this is the MALLOC base. > > On the other hand, why does my board consums that much memory and the > > others not. I cannot find any difference in these boards that explains > > this to me. > > When you try to boot from sdcard your memory should be already in ddr. > So the allocation > should already be there.
Maybe I just don't understand it correctly, but isn't it the case that there is also code in the U-boot that uses malloc before the relocation takes place? And doesn't this use the memory that has SYS_MALLOC_F and the size SYS_MALLOC_F_LEN? And the flag DM_FLAG_PRE_RELOC which is used e.g. in clk-imx8mq indicates that this is then in this memory area? > Michael > > > > > -- > > Heiko -- Heiko