kontron_pitx_imx8m does not start

Heiko Thiery heiko.thiery at gmail.com
Fri Jul 15 21:25:33 CEST 2022


Hi Marek,

Am Fr., 15. Juli 2022 um 12:24 Uhr schrieb Marek Vasut <marex at denx.de>:
>
> On 7/15/22 12:05, Heiko Thiery 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.
>
> Too many clock CCF nodes which each allocate udevice structure (which
> ... is sub-optimal) ?
>
> Try commenting out some of the clock in drivers/clk/*mx8mm*c using
> #ifdef CONFIG_SPL_BUILD , does that make a difference ?

I have now commented out all the clocks that i think are not needed.
Now my board at least starts again without a reboot.

gpu_XXX, vpu_XXX, audio_XXX

But what still makes me wonder is the fact that the same driver is
used by imx8mq_evk and imx8mq_phanbell and this problem is not seen
there.

---- 8< ----
U-Boot SPL 2022.07-00698-g208ed8a54e-dirty (Jul 15 2022 - 21:06:29 +0200)
Trying to boot from SD card


U-Boot 2022.07-00698-g208ed8a54e-dirty (Jul 15 2022 - 21:06:29 +0200)

CPU:   Freescale i.MX8MQLite rev2.1 at 1000 MHz
Reset cause: POR
Model: Kontron pITX-imx8m
DRAM:  alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
4 GiB
clk_register: failed to get <NULL> device (parent of ckil)
clk_register: failed to get <NULL> device (parent of clock-osc-27m)
clk_register: failed to get <NULL> device (parent of sys1_pll)
clk_register: failed to get <NULL> device (parent of sys2_pll)
clk_register: failed to get <NULL> device (parent of sys3_pll)
Core:  124 devices, 21 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In:    serial at 30880000
Out:   serial at 30880000
Err:   serial at 30880000
Net:
Error: ethernet at 30be0000 address not set.

Error: ethernet at 30be0000 address not set.
No ethernet found.

Hit any key to stop autoboot:  0
=>
---- 8< ----

--
Heiko


More information about the U-Boot mailing list