[PATCH] board: var-som-mx8mn: Fix alloc space exhausted in SPL

Fabio Estevam festevam at gmail.com
Thu Jun 12 15:53:06 CEST 2025


Hi Hugo,

On Thu, Jun 12, 2025 at 10:35 AM Hugo Villeneuve <hugo at hugovil.com> wrote:
>
> From: Hugo Villeneuve <hvilleneuve at dimonoff.com>
>
> After enabling some options to support EEPROM read in SPL
> (CONFIG_SPL_I2C_EEPROM), the following error appears:
>
>     alloc space exhausted
>
> Increasing SYS_MALLOC_F_LEN from 8kB to 64kB fixes the problem.
>
> But instead of manually increasing the value, adopt method used in
> commit ce3f23404c19 ("board: bsh: imx8mn_bsh_smm_s2/s2pro: enlarge
> CONFIG_SPL_SYS_MALLOC_F_LEN"):
>
> Dropping CONFIG_SPL_SYS_MALLOC_F_LEN option allows it to be set to the
> default value of CONFIG_SYS_MALLOC_F_LEN, which is set by default to 64kB
> (0x10000) on i.MX8M platforms.
>
> Suggested-by: Fabio Estevam  <festevam at gmail.com>
> Signed-off-by: Hugo Villeneuve <hvilleneuve at dimonoff.com>

Thanks for the fix:

Reviewed-by: Fabio Estevam <festevam at gmail.com>

Tom, feel free to apply it directly to u-boot/master.


More information about the U-Boot mailing list