u-boot: reduce the SPL `.rodata' size
PATCH v2 1/1 u-boot: reduce the SPL `.rodata' size
Fixes errors e.g.
| arm-yoe-linux-gnueabi-ld.bfd: u-boot-spl section .rodata' will not fit in region .sram' | arm-yoe-linux-gnueabi-ld.bfd: region `.sram' overflowed by 5772 bytes
Signed-off-by Khem Raj <[email protected]>
Cc Tom Rini <[email protected]>
Cc Denys Dmytriyenko <[email protected]>
--- ...vm_defconfig-Reduce-SPL-.rodata-size.patch | 36 +++++++++++++++++++ .../u-boot/u-boot-ti-staging_2018.01.bb | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 recipes-bsp/u-boot/files/0001-am335x_evm_defconfig-Reduce-SPL-.rodata-size.patch
recipes-bsp/u-boot/files/0001-am335x_evm_defconfig-Reduce-SPL-.rodata-size.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 45ead566ebf63999f07e966fa4962bb9bbe3ed4a Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 16 Oct 2018 17:11:13 -0700 +Subject: [PATCH] Disable usb-gadget usb-eth support in SPL + +This helps in shedding some size to fit in into SRAM + +Signed-off-by: Khem Raj <[email protected]> +--- + configs/am335x_evm_defconfig | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig +index 4908099431..8342089dee 100644 +--- a/configs/am335x_evm_defconfig ++++ b/configs/am335x_evm_defconfig +@@ -12,14 +12,13 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y + CONFIG_VERSION_VARIABLE=y + CONFIG_ARCH_MISC_INIT=y + CONFIG_SPL=y +-CONFIG_SPL_ETH_SUPPORT=y ++# CONFIG_SPL_ENV_SUPPORT is not set + CONFIG_SPL_MTD_SUPPORT=y + CONFIG_SPL_MUSB_NEW_SUPPORT=y + CONFIG_SPL_NET_SUPPORT=y + CONFIG_SPL_NET_VCI_STRING="AM335x U-Boot SPL" + CONFIG_SPL_OS_BOOT=y +-CONFIG_SPL_USB_GADGET_SUPPORT=y +-CONFIG_SPL_USBETH_SUPPORT=y ++# CONFIG_SPL_YMODEM_SUPPORT is not set + CONFIG_FASTBOOT=y + CONFIG_CMD_SPL=y + CONFIG_CMD_SPL_NAND_OFS=0x00080000 +-- +2.19.1 +
recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb +2 -0
@@ -5,3 +5,5 @@ PR = "r24" BRANCH = "ti-u-boot-2018.01" SRCREV = "2cc52408bf1357f11b96548e78223a1df321c1ae" + +SRC_URI += "file://0001-am335x_evm_defconfig-Reduce-SPL-.rodata-size.patch"
Signature · 1 line
2.19.1
Quoted 8 lines · Khem Raj
Fixes errors e.g.
| arm-yoe-linux-gnueabi-ld.bfd: u-boot-spl section
.rodata' will not fit in region.sram' | arm-yoe-linux-gnueabi-ld.bfd: region `.sram' overflowed by 5772 bytesSigned-off-by Khem Raj <[email protected]>Cc Tom Rini <[email protected]>Cc Denys Dmytriyenko <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 1 line
Tom