ARM: Fix nand boot of imx6q and imx6qdl boards
PATCH 1/1 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.
--- configs/imx6dl_icore_nand_defconfig | 1 + configs/imx6q_icore_nand_defconfig | 1 + 2 files changed, 2 insertions(+)
configs/imx6dl_icore_nand_defconfig +1 -0
@@ -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
configs/imx6q_icore_nand_defconfig +1 -0
@@ -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
Signature · 1 line
2.17.1
PATCH 1/1 ARM: Fix nand boot of imx6q and imx6qdl boards
Hi Michael,
Quoted 27 lines
The nand boot require a little more memory that we had previosly allocated so it stopped booting.
This patch increaseCONFIG_SPL_SYS_MALLOC_F_LENto0x2000.Signed-off-by Michael Trimarchi <[email protected]>--- configs/imx6dl_icore_nand_defconfig | 1 + configs/imx6q_icore_nand_defconfig | 1 + 2 files changed, 2 insertions(+)configs/imx6dl_icore_nand_defconfig +1
-0@@ -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=yconfigs/imx6q_icore_nand_defconfig +0
-0
configs/imx6q_icore_nand_defconfig CONFIG_SYS_TEXT_BASE=0x17800000 · line 10
Quoted 7 lines
configs/imx6q_icore_nand_defconfig +1
-0@@ -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,
PATCH 1/1 ARM: Fix nand boot of imx6q and imx6qdl boards
In reply to Michael TrimarchiQuoted 7 lines · Michael Trimarchi
The nand boot require a little more memory that we had previosly allocated so it stopped booting.
This patch increaseCONFIG_SPL_SYS_MALLOC_F_LENto0x2000.Signed-off-by Michael Trimarchi <[email protected]>---
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,
PATCH 1/1 ARM: Fix nand boot of imx6q and imx6qdl boards
Hi Jagan
Quoted 18 lines · Jagan Teki
Quoted 7 lines · Michael Trimarchi
The nand boot require a little more memory that we had previosly allocated so it stopped booting.
This patch increaseCONFIG_SPL_SYS_MALLOC_F_LENto0x2000.Signed-off-by Michael Trimarchi <[email protected]>---
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.
Quoted 6 lines
So, enable SPL
malloc()pool of0x2000size similarly like what we have used for icore mmc defconfigs.Once this is added,
Reviewed-by Jagan Teki <[email protected]>
I will upload again.
Michael
Signature · 4 lines
| Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |