From: Marek Vasut Date: Sun, 10 May 2020 16:34:55 +0200 Subject: [PATCH] imx8mp_evk: Make SPL binary size smaller In-Reply-To: References: <20200507120029.3172-1-festevam@gmail.com> Message-ID: <13f68d4e-ccad-a9ea-a42f-2f50f8e6dacd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 >> 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