[U-Boot] [PATCH] imx: Use a convenient default value for SYS_MALLOC_F_LEN

Joris Offouga offougajoris at gmail.com
Fri May 3 12:30:32 UTC 2019


Tested-by: Joris Offouga <offougajoris at gmail.com>

Le 03/05/2019 à 14:25, Fabio Estevam a écrit :
> Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to
> simple-bus driver") causes some i.MX boards that were converted
> to DM, such as warp7, to fail to boot.
>
> As explained by Lukas Auer:
>
> "With the patch, U-Boot probes the drivers for devices under simple-bus
> device tree nodes in the pre-relocation device model. The default value
> of CONFIG_SYS_MALLOC_F_LEN (0x400) leaves U-Boot with not enough memory to
> do this, causing it to hang."
>
> Fix this problem by providing a convenient default value for
> CONFIG_SYS_MALLOC_F_LEN.
>
> Reported-by: Pierre-Jean Texier <pjtexier at koncepto.io>
> Suggested-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
> Signed-off-by: Fabio Estevam <festevam at gmail.com>
> ---
>   arch/arm/mach-imx/Kconfig | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index ec09ef240f..a7a7d84b7a 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -90,3 +90,6 @@ config DDRMC_VF610_CALIBRATION
>   	  NXP does NOT recommend to perform this calibration at each boot. One
>   	  shall perform it on a new PCB and then use those values to program
>   	  the ddrmc_cr_setting on relevant board file.
> +
> +config SYS_MALLOC_F_LEN
> +	default 0x2000


More information about the U-Boot mailing list