All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] imx8mp_evk: Make SPL binary size smaller
@ 2020-05-07 12:00 Fabio Estevam
  2020-05-07 12:02 ` Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Fabio Estevam @ 2020-05-07 12:00 UTC (permalink / raw)
  To: u-boot

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@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(-)

diff --git a/configs/imx8mp_evk_defconfig b/configs/imx8mp_evk_defconfig
index 44b2935f69..00f4ccbe0d 100644
--- a/configs/imx8mp_evk_defconfig
+++ b/configs/imx8mp_evk_defconfig
@@ -33,7 +33,6 @@ CONFIG_SPL_BOOTROM_SUPPORT=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_POWER_SUPPORT=y
-CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="u-boot=> "
 # CONFIG_CMD_EXPORTENV is not set
@@ -79,8 +78,5 @@ CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_MXC_UART=y
 CONFIG_SYSRESET=y
-CONFIG_SPL_SYSRESET=y
 CONFIG_SYSRESET_PSCI=y
-CONFIG_SYSRESET_WATCHDOG=y
 # CONFIG_WATCHDOG is not set
-CONFIG_IMX_WATCHDOG=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-05-10 14:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 12:00 [PATCH] imx8mp_evk: Make SPL binary size smaller Fabio Estevam
2020-05-07 12:02 ` Marek Vasut
2020-05-07 12:08 ` Harald Seiler
2020-05-07 12:37   ` Fabio Estevam
2020-05-08  1:07 ` Fabio Estevam
2020-05-08  1:40   ` Marek Vasut
2020-05-08  2:56     ` Fabio Estevam
2020-05-08  2:59       ` Marek Vasut
2020-05-08  3:34         ` Fabio Estevam
2020-05-08  4:53       ` Fabio Estevam
2020-05-08 11:49         ` Fabio Estevam
2020-05-08 11:57           ` Marek Vasut
2020-05-08 12:04             ` Fabio Estevam
2020-05-08 12:04               ` Marek Vasut
2020-05-08 15:54                 ` Fabio Estevam
2020-05-10 14:32   ` Peng Fan
2020-05-10 14:34     ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.