[U-Boot] WaRP7 nok on master

Auer, Lukas lukas.auer at aisec.fraunhofer.de
Thu May 2 16:57:40 UTC 2019


Hi Fabio,

On Thu, 2019-05-02 at 11:08 -0300, Fabio Estevam wrote:
> Hi Lukas,
> 
> On Thu, May 2, 2019 at 7:21 AM Auer, Lukas
> <lukas.auer at aisec.fraunhofer.de> wrote:
> 
> > I was able to reproduce the issue on my side. 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_LEN (0x400) leaves U-Boot with not enough memory to
> > do this, causing it to hang. If it is increased, for example to 0x1000,
> > everything works again.
> > 
> > Let me know, how you want to fix this. If you want, I can send a patch
> > to increase CONFIG_SYS_MALLOC_LEN for the i.MX parts.
> 
> I guess you mean CONFIG_SYS_MALLOC_F_LEN instead?
> 

Oops yes, that's what I meant.

> Could you please send a patch setting CONFIG_SYS_MALLOC_F_LEN as
> 0x2000 by default for i.MX?
> 
> 0x1000 seems not to be enough:
> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=8b9cba0295dcdce5eb8bb10d79f6dafb5a167349;hp=b7de88cd5cb8c213fb158b37fcf0662c1d2332cd

Yes, I will send a patch for this. Do you prefer setting the default
value for i.MX in one place (in arch/arm/mach-imx/Kconfig) or
individually for each sub-family (for example in arch/arm/mach-
imx/mx7/Kconfig for i.MX7)?

Thanks,
Lukas


More information about the U-Boot mailing list