[U-Boot] [PATCHv2] spl: TI: Do not default to SPL_FIT_IMAGE_TINY being enabled

Tom Rini trini at konsulko.com
Tue Nov 28 04:05:04 UTC 2017


This option prevents booting on am335x_evm at least along with most
likely other platforms.

Fixes: 337bbb629777 ("spl: fit: add SPL_FIT_IMAGE_TINY config to reduce code-size")
Signed-off-by: Tom Rini <trini at konsulko.com>
---
Changes in v2:
- Turn off SPL_USE_ARCH_MEMSET/MEMCPY on am335x_hs_evm_defconfig due to
  size constraints, which I suspect is what caused the initial change.
  Since I can't confirm that SPL_FIT_IMAGE_TINY works on am335x_hs_evm
  this is the safer option.
---
 common/spl/Kconfig              | 1 -
 configs/am335x_hs_evm_defconfig | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index b1ee15c96d13..aef0034b3356 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -232,7 +232,6 @@ config SPL_FIT_IMAGE_TINY
 	bool "Remove functionality from SPL FIT loading to reduce size"
 	depends on SPL_FIT
 	default y if MACH_SUN50I || MACH_SUN50I_H5
-	default y if ARCH_OMAP2PLUS
 	help
 	  Enable this to reduce the size of the FIT image loading code
 	  in SPL, if space for the SPL binary is very tight.
diff --git a/configs/am335x_hs_evm_defconfig b/configs/am335x_hs_evm_defconfig
index 9bc9dc339436..48b0e8583997 100644
--- a/configs/am335x_hs_evm_defconfig
+++ b/configs/am335x_hs_evm_defconfig
@@ -1,4 +1,6 @@
 CONFIG_ARM=y
+# CONFIG_SPL_USE_ARCH_MEMCPY is not set
+# CONFIG_SPL_USE_ARCH_MEMSET is not set
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_AM33XX=y
-- 
2.7.4



More information about the U-Boot mailing list