
On 5/10/20 4:32 PM, Peng Fan wrote:
Subject: Re: [PATCH] imx8mp_evk: Make SPL binary size smaller
On Thu, May 7, 2020 at 8:59 AM Fabio Estevam festevam@gmail.com 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.
The new SPL size is 97kB, which is below the limit define in imx8mp_evk.h: #define CONFIG_SPL_MAX_SIZE (152 * 1024)
It seems the problem is not related to SPL size.
Peng, do you have any ideas?
The following patch will make it boot again, not perfect, I need think more out an elegant fix. Disable DM SPL? Or recalculate the address. Enable DM consumes too much on chip ocram malloc area. Need to think about it how we could use less ocram for SPL malloc area.
Can't you put the malloc area and stack into DRAM ? Look at SPL_STACK_R and MALLOC_SIMPLE