mx6sabresd: Reduce overall SPL size
PATCH 1/1 mx6sabresd: Reduce overall SPL size
Currently the SPL binary is 67 kB, which leaves only 1 kB of free internal RAM space.
The following options can be safely removed to save some precious SPL space:
- CONFIG_SPL_FS_EXT4: u-boot-dtb.img is stored in raw sector via dd command (at offset 69 kB)
- CONFIG_SPL_I2C_SUPPORT: I2C is not used during SPL
- CONFIG_SPL_OS_BOOT: no need to make Falcon mode supported by default
After this change the SPL binary size gets down to 51 kB.
--- configs/mx6sabresd_defconfig | 3 --- 1 file changed, 3 deletions(-)
configs/mx6sabresd_defconfig +0 -3
@@ -23,9 +23,6 @@ CONFIG_BOUNCE_BUFFER=y CONFIG_SPL_TEXT_BASE=0x00908000 CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_FIT_IMAGE_TINY=y -CONFIG_SPL_FS_EXT4=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_OS_BOOT=y CONFIG_SPL_USB_HOST_SUPPORT=y CONFIG_SPL_USB_GADGET=y CONFIG_SPL_USB_SDP_SUPPORT=y
Signature · 1 line
2.17.1
PATCH 1/1 mx6sabresd: Reduce overall SPL size
Quoted 24 lines
Subject: [PATCH] mx6sabresd: Reduce overall SPL size
Currently the SPL binary is 67 kB, which leaves only 1 kB of free internal RAM space.
The following options can be safely removed to save some precious SPL space:
-
CONFIG_SPL_FS_EXT4: u-boot-dtb.img is stored in raw sector via dd command (at offset 69 kB)
-CONFIG_SPL_I2C_SUPPORT: I2C is not used during SPL
-CONFIG_SPL_OS_BOOT: no need to make Falcon mode supported by defaultAfter this change the SPL binary size gets down to 51 kB.
Signed-off-by Fabio Estevam <[email protected]>--- configs/mx6sabresd_defconfig | 3 --- 1 file changed, 3 deletions(-)configs/mx6sabresd_defconfig +0
-0
configs/mx6sabresd_defconfig CONFIG_BOUNCE_BUFFER=y · line 28
Quoted 9 lines
configs/mx6sabresd_defconfig +0
-3@@ -23,9 +23,6 @@ CONFIG_BOUNCE_BUFFER=y CONFIG_SPL_TEXT_BASE=0x00908000 CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_FIT_IMAGE_TINY=y -CONFIG_SPL_FS_EXT4=y -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_OS_BOOT=y CONFIG_SPL_USB_HOST_SUPPORT=y CONFIG_SPL_USB_GADGET=y CONFIG_SPL_USB_SDP_SUPPORT=y
Quoted 2 lines
--
2.17.1
PATCH 1/1 mx6sabresd: Reduce overall SPL size
In reply to Fabio EstevamQuoted 10 lines
Currently the SPL binary is 67 kB, which leaves only 1 kB of free internal RAM space.
The following options can be safely removed to save some precious SPL space:
-CONFIG_SPL_FS_EXT4: u-boot-dtb.img is stored in raw sector via dd command (at offset 69 kB)
-CONFIG_SPL_I2C_SUPPORT: I2C is not used during SPL
-CONFIG_SPL_OS_BOOT: no need to make Falcon mode supported by default
After this change the SPL binary size gets down to 51 kB.
Quoted 2 lines
Signed-off-by Fabio Estevam <[email protected]>Reviewed-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================