From: Denys Dmytriyenko <denys@ti.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: meta-ti@yoctoproject.org, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 3/5] u-boot: reduce the SPL `.rodata' size
Date: Wed, 17 Oct 2018 18:34:50 -0400 [thread overview]
Message-ID: <20181017223449.GO4031@beryl> (raw)
In-Reply-To: <20181017192853.42942-3-raj.khem@gmail.com>
On Wed, Oct 17, 2018 at 12:28:51PM -0700, Khem Raj wrote:
> 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 <raj.khem@gmail.com>
> Cc: Tom Rini <trini@konsulko.com>
> Cc: Denys Dmytriyenko <trini@konsulko.com>
Hmm, interesting email I got here... :)
Anyway, I'm going to hold on this one for now. Let's see if we can patch
U-boot build instead.
> ---
> ...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
>
> diff --git a/recipes-bsp/u-boot/files/0001-am335x_evm_defconfig-Reduce-SPL-.rodata-size.patch b/recipes-bsp/u-boot/files/0001-am335x_evm_defconfig-Reduce-SPL-.rodata-size.patch
> new file mode 100644
> index 00000000..6244a56a
> --- /dev/null
> +++ b/recipes-bsp/u-boot/files/0001-am335x_evm_defconfig-Reduce-SPL-.rodata-size.patch
> @@ -0,0 +1,36 @@
> +From 45ead566ebf63999f07e966fa4962bb9bbe3ed4a Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +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 <raj.khem@gmail.com>
> +---
> + 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
> +
> diff --git a/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb b/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb
> index cbb8857a..46a26480 100644
> --- a/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb
> +++ b/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb
> @@ -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"
> --
> 2.19.1
>
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
next prev parent reply other threads:[~2018-10-17 22:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 19:28 [PATCH 1/5] recipes: Limit ti specific recipes under ti-soc override Khem Raj
2018-10-17 19:28 ` [PATCH 2/5] recips: Mark more recipes to be ti-soc specific Khem Raj
2018-10-17 20:11 ` Denys Dmytriyenko
2018-10-17 22:21 ` Khem Raj
2018-10-17 22:30 ` Denys Dmytriyenko
2018-10-17 19:28 ` [PATCH 3/5] u-boot: reduce the SPL `.rodata' size Khem Raj
2018-10-17 22:34 ` Denys Dmytriyenko [this message]
2018-10-17 22:50 ` Khem Raj
2018-10-17 19:28 ` [PATCH 4/5] beaglebone.conf: Package kernel and devicetree Khem Raj
2018-10-17 19:46 ` Denys Dmytriyenko
2018-10-17 19:50 ` Denys Dmytriyenko
2018-10-17 19:28 ` [PATCH 5/5] beaglebone.conf: SERIAL_CONSOLE has been deprecated Khem Raj
2018-10-17 19:37 ` Denys Dmytriyenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181017223449.GO4031@beryl \
--to=denys@ti.com \
--cc=meta-ti@yoctoproject.org \
--cc=raj.khem@gmail.com \
--cc=trini@konsulko.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.