[U-Boot] [PATCH] ARM: Fix nand boot of imx6q and imx6qdl boards

The nand boot require a little more memory that we had previosly allocated so it stopped booting. This patch increase CONFIG_SPL_SYS_MALLOC_F_LEN to 0x2000.
Signed-off-by: Michael Trimarchi michael@amarulasolutions.com --- configs/imx6dl_icore_nand_defconfig | 1 + configs/imx6q_icore_nand_defconfig | 1 + 2 files changed, 2 insertions(+)
diff --git a/configs/imx6dl_icore_nand_defconfig b/configs/imx6dl_icore_nand_defconfig index c34c515080..69c45b948b 100644 --- a/configs/imx6dl_icore_nand_defconfig +++ b/configs/imx6dl_icore_nand_defconfig @@ -4,6 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x17800000 CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_MX6Q_ENGICAM=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL=y diff --git a/configs/imx6q_icore_nand_defconfig b/configs/imx6q_icore_nand_defconfig index cf149d615b..b53a5010e5 100644 --- a/configs/imx6q_icore_nand_defconfig +++ b/configs/imx6q_icore_nand_defconfig @@ -4,6 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x17800000 CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_MX6Q_ENGICAM=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL=y

Hi Michael,
The nand boot require a little more memory that we had previosly allocated so it stopped booting. This patch increase CONFIG_SPL_SYS_MALLOC_F_LEN to 0x2000.
Signed-off-by: Michael Trimarchi michael@amarulasolutions.com
configs/imx6dl_icore_nand_defconfig | 1 + configs/imx6q_icore_nand_defconfig | 1 + 2 files changed, 2 insertions(+)
diff --git a/configs/imx6dl_icore_nand_defconfig b/configs/imx6dl_icore_nand_defconfig index c34c515080..69c45b948b 100644 --- a/configs/imx6dl_icore_nand_defconfig +++ b/configs/imx6dl_icore_nand_defconfig @@ -4,6 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x17800000 CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_MX6Q_ENGICAM=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL=y diff --git a/configs/imx6q_icore_nand_defconfig b/configs/imx6q_icore_nand_defconfig index cf149d615b..b53a5010e5 100644 --- a/configs/imx6q_icore_nand_defconfig +++ b/configs/imx6q_icore_nand_defconfig @@ -4,6 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x17800000 CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_MX6Q_ENGICAM=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL=y
I've tested it on imx6q-icore so,
Tested-by: Shyam Saini shyam.saini@amarulasolutions.com

On Wed, Mar 6, 2019 at 1:16 PM Michael Trimarchi michael@amarulasolutions.com wrote:
The nand boot require a little more memory that we had previosly allocated so it stopped booting. This patch increase CONFIG_SPL_SYS_MALLOC_F_LEN to 0x2000.
Signed-off-by: Michael Trimarchi michael@amarulasolutions.com
Commit head to be specify the issue on relevant board, so it can be
configs: icore: Fix U-Boot proper loading from nand
SPL on Engicam i.Core M6 boards enabled DM, so it would require some malloc() pool before relocation in order to load U-Boot proper properly.
So, enable SPL malloc() pool of 0x2000 size similarly like what we have used for icore mmc defconfigs.
Once this is added,
Reviewed-by: Jagan Teki jagan@amarulasolutions.com

Hi Jagan
On Fri, Mar 8, 2019 at 7:25 AM Jagan Teki jagan@amarulasolutions.com wrote:
On Wed, Mar 6, 2019 at 1:16 PM Michael Trimarchi michael@amarulasolutions.com wrote:
The nand boot require a little more memory that we had previosly allocated so it stopped booting. This patch increase CONFIG_SPL_SYS_MALLOC_F_LEN to 0x2000.
Signed-off-by: Michael Trimarchi michael@amarulasolutions.com
Commit head to be specify the issue on relevant board, so it can be
configs: icore: Fix U-Boot proper loading from nand
SPL on Engicam i.Core M6 boards enabled DM, so it would require some malloc() pool before relocation in order to load U-Boot proper properly.
So, enable SPL malloc() pool of 0x2000 size similarly like what we have used for icore mmc defconfigs.
Once this is added,
Reviewed-by: Jagan Teki jagan@amarulasolutions.com
I will upload again.
Michael
participants (4)
-
Jagan Teki
-
Michael Nazzareno Trimarchi
-
Michael Trimarchi
-
Shyam Saini