kontron_pitx_imx8m does not start

Michael Nazzareno Trimarchi michael at amarulasolutions.com
Fri Jul 15 23:26:25 CEST 2022


Hi

Il ven 15 lug 2022, 21:21 Heiko Thiery <heiko.thiery at gmail.com> ha scritto:

> Hi Michael,
>
> Am Fr., 15. Juli 2022 um 12:21 Uhr schrieb Michael Nazzareno Trimarchi
> <michael at amarulasolutions.com>:
> >
> > Hi Heiko
> >
> > On Fri, Jul 15, 2022 at 12:06 PM Heiko Thiery <heiko.thiery at gmail.com>
> wrote:
> > >
> > > Hi Marek
> > >
> > > Am Fr., 15. Juli 2022 um 11:29 Uhr schrieb Marek Vasut <marex at 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?
>

I see it already seen it the flag after suggestion of fabio.

Michael

>
> > Michael
> >
> > >
> > > --
> > > Heiko
>
> --
> Heiko
>


More information about the U-Boot mailing list