[U-Boot] [PATCH v1 05/11] ARM: display5: Increase the pre-relocation malloc pool size to 4KiB

Peng Fan peng.fan at nxp.com
Mon Jun 10 06:43:14 UTC 2019


> Subject: Re: [PATCH v1 05/11] ARM: display5: Increase the pre-relocation
> malloc pool size to 4KiB
> 
> Hi Peng,
> 
> > > Subject: [PATCH v1 05/11] ARM: display5: Increase the pre-relocation
> > > malloc pool size to 4KiB
> > >
> > > Porting more DTS code from Linux kernel for display5 board required
> > > increase of pre-relocation malloc pool size in U-Boot proper.
> > >
> > > The early malloc memory is necessary for handling parsing and setup
> > > of e.g. serial port device (and all its ancestors in DT tree).
> > >
> > > Signed-off-by: Lukasz Majewski <lukma at denx.de>
> > > ---
> > >
> > >  configs/display5_defconfig | 3 +++
> > >  1 file changed, 3 insertions(+)
> > >
> > > diff --git a/configs/display5_defconfig b/configs/display5_defconfig
> > > index 3b793f4500..0ef56024e9 100644
> > > --- a/configs/display5_defconfig
> > > +++ b/configs/display5_defconfig
> > > @@ -4,16 +4,19 @@ CONFIG_SYS_TEXT_BASE=0x17800000
> > > CONFIG_SPL_GPIO_SUPPORT=y
> CONFIG_SPL_LIBCOMMON_SUPPORT=y
> > > CONFIG_SPL_LIBGENERIC_SUPPORT=y
> > > +CONFIG_SYS_MALLOC_F_LEN=0x1000
> > >  CONFIG_MX6_DDRCAL=y
> > >  CONFIG_TARGET_DISPLAY5=y
> > >  CONFIG_SPL_MMC_SUPPORT=y
> > >  CONFIG_SPL_SERIAL_SUPPORT=y
> > > +CONFIG_SPL_SYS_MALLOC_F_LEN=0x400
> > >  CONFIG_NR_DRAM_BANKS=1
> > >  CONFIG_SPL=y
> > >  CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y
> > >  CONFIG_SYS_BOOTCOUNT_ADDR=0x020CC068
> > >  CONFIG_SPL_SPI_FLASH_SUPPORT=y
> > >  CONFIG_SPL_SPI_SUPPORT=y
> > > +CONFIG_TPL_SYS_MALLOC_F_LEN=0x400
> >
> > Acked-by: Peng Fan <peng.fan at nxp.com>
> > Just a question, TPL is enabled for this platform?
> 
> No, display5 is not using TPL. This CONFIG_TPL_SYS_MALLOC_F_LEN seems
> to be enabled by default when setting SPL counterpart.

ok. But not make sense to set this macro if TPL is not enabled.

Regards,
Peng.

> 
> >
> > >  CONFIG_FIT=y
> > >  CONFIG_SPL_LOAD_FIT=y
> > >  CONFIG_OF_BOARD_SETUP=y
> > > --
> > > 2.11.0
> >
> 
> 
> 
> 
> Best regards,
> 
> Lukasz Majewski
> 
> --
> 
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
> lukma at denx.de


More information about the U-Boot mailing list