diff mbox series

[U-Boot,v3,3/4] pico-imx7d: Make SPL binary fit into 64kB

Message ID 20180928142239.4660-3-otavio@ossystems.com.br
State Accepted
Commit 4d72d3406d0ba9855e5e55f60244171c6c9aac69
Delegated to: Stefano Babic
Headers show
Series [U-Boot,v3,1/4] pico-imx6ul, pico-imx7d: Use eMMC user partition by default | expand

Commit Message

Otavio Salvador Sept. 28, 2018, 2:22 p.m. UTC
From: Fabio Estevam <festevam@gmail.com>

Currently SPL binary is larger than 64kB, which is larger than
CONFIG_SPL_MAX_SIZE defined in imx7_spl.h.

This causes boot failure on the pico-mx7 targets.

Remove CONFIG_SPL_LIBDISK_SUPPORT option for now, so that the SPL
binary can fit into the 64kB range.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

Changes in v3:
- new patch

Changes in v2: None

 configs/pico-hobbit-imx7d_defconfig | 1 -
 configs/pico-imx7d_defconfig        | 1 -
 configs/pico-pi-imx7d_defconfig     | 1 -
 3 files changed, 3 deletions(-)

Comments

Stefano Babic Oct. 9, 2018, 4:29 p.m. UTC | #1
On 28/09/2018 16:22, Otavio Salvador wrote:
> From: Fabio Estevam <festevam@gmail.com>
> 
> Currently SPL binary is larger than 64kB, which is larger than
> CONFIG_SPL_MAX_SIZE defined in imx7_spl.h.
> 
> This causes boot failure on the pico-mx7 targets.
> 
> Remove CONFIG_SPL_LIBDISK_SUPPORT option for now, so that the SPL
> binary can fit into the 64kB range.

Agree !


> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> 
> Changes in v3:
> - new patch
> 
> Changes in v2: None
> 
>  configs/pico-hobbit-imx7d_defconfig | 1 -
>  configs/pico-imx7d_defconfig        | 1 -
>  configs/pico-pi-imx7d_defconfig     | 1 -
>  3 files changed, 3 deletions(-)
> 
> diff --git a/configs/pico-hobbit-imx7d_defconfig b/configs/pico-hobbit-imx7d_defconfig
> index 568fb11d59..b02cae5237 100644
> --- a/configs/pico-hobbit-imx7d_defconfig
> +++ b/configs/pico-hobbit-imx7d_defconfig
> @@ -8,7 +8,6 @@ CONFIG_TARGET_PICO_IMX7D=y
>  CONFIG_SPL_MMC_SUPPORT=y
>  CONFIG_SPL_SERIAL_SUPPORT=y
>  CONFIG_SPL=y
> -CONFIG_SPL_LIBDISK_SUPPORT=y
>  CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
>  CONFIG_IMX_RDC=y
>  CONFIG_IMX_BOOTAUX=y
> diff --git a/configs/pico-imx7d_defconfig b/configs/pico-imx7d_defconfig
> index d6cfc2065e..f355f07be7 100644
> --- a/configs/pico-imx7d_defconfig
> +++ b/configs/pico-imx7d_defconfig
> @@ -8,7 +8,6 @@ CONFIG_TARGET_PICO_IMX7D=y
>  CONFIG_SPL_MMC_SUPPORT=y
>  CONFIG_SPL_SERIAL_SUPPORT=y
>  CONFIG_SPL=y
> -CONFIG_SPL_LIBDISK_SUPPORT=y
>  CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
>  CONFIG_IMX_RDC=y
>  CONFIG_IMX_BOOTAUX=y
> diff --git a/configs/pico-pi-imx7d_defconfig b/configs/pico-pi-imx7d_defconfig
> index 73800fc8eb..3a182dcb81 100644
> --- a/configs/pico-pi-imx7d_defconfig
> +++ b/configs/pico-pi-imx7d_defconfig
> @@ -8,7 +8,6 @@ CONFIG_TARGET_PICO_IMX7D=y
>  CONFIG_SPL_MMC_SUPPORT=y
>  CONFIG_SPL_SERIAL_SUPPORT=y
>  CONFIG_SPL=y
> -CONFIG_SPL_LIBDISK_SUPPORT=y
>  CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
>  CONFIG_IMX_RDC=y
>  CONFIG_IMX_BOOTAUX=y
>
diff mbox series

Patch

diff --git a/configs/pico-hobbit-imx7d_defconfig b/configs/pico-hobbit-imx7d_defconfig
index 568fb11d59..b02cae5237 100644
--- a/configs/pico-hobbit-imx7d_defconfig
+++ b/configs/pico-hobbit-imx7d_defconfig
@@ -8,7 +8,6 @@  CONFIG_TARGET_PICO_IMX7D=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL=y
-CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
 CONFIG_IMX_RDC=y
 CONFIG_IMX_BOOTAUX=y
diff --git a/configs/pico-imx7d_defconfig b/configs/pico-imx7d_defconfig
index d6cfc2065e..f355f07be7 100644
--- a/configs/pico-imx7d_defconfig
+++ b/configs/pico-imx7d_defconfig
@@ -8,7 +8,6 @@  CONFIG_TARGET_PICO_IMX7D=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL=y
-CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
 CONFIG_IMX_RDC=y
 CONFIG_IMX_BOOTAUX=y
diff --git a/configs/pico-pi-imx7d_defconfig b/configs/pico-pi-imx7d_defconfig
index 73800fc8eb..3a182dcb81 100644
--- a/configs/pico-pi-imx7d_defconfig
+++ b/configs/pico-pi-imx7d_defconfig
@@ -8,7 +8,6 @@  CONFIG_TARGET_PICO_IMX7D=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL=y
-CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
 CONFIG_IMX_RDC=y
 CONFIG_IMX_BOOTAUX=y