[PATCH] imx8mp_evk: Make SPL binary size smaller

Marek Vasut marex at denx.de
Thu May 7 14:02:08 CEST 2020


On 5/7/20 2:00 PM, Fabio Estevam wrote:
> Commit f24dea4e1b52 ("ARM: imx8m: Fix reset in SPL on NXP iMX8MP EVK") caused
> the u-boot-spl.bin binary size to grow by around 2000 bytes, which makes the
> board to fail to boot.
> 
> Reduce the SPL size by the same amount so that it can boot again.
> 
> Further SPL reduction work is needed, such as removing driver model support
> in SPL.
> 
> Just to provide a comparison: NXP U-Boot tree has a SPL binary size of 64kB
> versus 96KB in U-Boot mainline.
> 
> Signed-off-by: Fabio Estevam <festevam at gmail.com>
> ---
> Hi,
> 
> I plan to reduce SPL size even further by removing SPL_DM=y, but this
> needs more time to accomplish, so I prefer to give a small SPL reduction
> at this time, just to allow the board to boot again.
> 
> Also, will try to come up with a SPL size detection in build time, as it
> is hard to debug such issues in run-time.
> 
>  configs/imx8mp_evk_defconfig | 4 ----
>  1 file changed, 4 deletions(-)

So the obvious question is, if you call hang(), does the SPL still reset
or does it fail?


More information about the U-Boot mailing list