Skip to contentSkip to conversation

ARM: Fix nand boot of imx6q and imx6qdl boards

PATCH New Michael Trimarchi 3 participants 4 messages Mar 6, 2019 – Mar 8, 2019 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

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
index c34c515080..69c45b948b 100644
@@ -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
index cf149d615b..b53a5010e5 100644
@@ -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
#1 lore raw

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 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
index c34c515080..69c45b948b 100644
@@ -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 +0 -0
index cf149d615b..b53a5010e5 100644

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,

#2 lore raw

PATCH 1/1 ARM: Fix nand boot of imx6q and imx6qdl boards

In reply to Michael Trimarchi
Quoted 7 lines · Michael Trimarchi

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.

---

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,

#3 lore raw

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 increase CONFIG_SPL_SYS_MALLOC_F_LEN to 0x2000.

---

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 of 0x2000 size similarly like what we have used for icore mmc defconfigs.

Once this is added,

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               |