Skip to contentSkip to conversation

imx: variscite: Fix regression of SPL and U-boot booting

PATCH New Saravanan Sekar 2 participants 2 messages Aug 4, 2019 – Aug 6, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 imx: variscite: Fix regression of SPL and U-boot booting

1. Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver") causes some i.MX boards that were converted to DM, such as warp7, to fail to boot.

As explained by Lukas Auer:

"With the patch, U-Boot probes the drivers for devices under simple-bus device tree nodes in the pre-relocation device model. The default value of CONFIG_SYS_MALLOC_F_LEN (0x4000) leaves U-Boot with not enough memory to do this, causing it to hang."

Fix this problem by providing a convenient default value for CONFIG_SYS_MALLOC_F_LEN.

2. CONFIG_SPL_TEXT_BASE was moved to Kconfig, so added in defconfig "configs: move CONFIG_SPL_TEXT_BASE to Kconfig"
(sha1: f89d6133eef2e068f9c33853b6584d7fcbfa9d2e)

---

Notes:
Changes in V2
- changed CONFIG_SYS_MALLOC_F_LEN to 0x4000

 configs/variscite_dart6ul_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/variscite_dart6ul_defconfig +2 -0
index 55f4ff59d2..8f71cae521 100644
@@ -51,3 +51,5 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_LZO=y
+CONFIG_SPL_TEXT_BASE=0x00908000
+CONFIG_SYS_MALLOC_F_LEN=0x4000
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/1 imx: variscite: Fix regression of SPL and U-boot booting

Quoted 37 lines

Subject: [U-Boot] [PATCH v2] imx: variscite: Fix regression of SPL and U-boot booting

1. Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver") causes some i.MX boards that were converted to DM, such as warp7, to fail to boot.

As explained by Lukas Auer:

"With the patch, U-Boot probes the drivers for devices under simple-bus device tree nodes in the pre-relocation device model. The default value of CONFIG_SYS_MALLOC_F_LEN (0x4000) leaves U-Boot with not enough memory to do this, causing it to hang."

Fix this problem by providing a convenient default value for CONFIG_SYS_MALLOC_F_LEN.

2. CONFIG_SPL_TEXT_BASE was moved to Kconfig, so added in defconfig "configs: move CONFIG_SPL_TEXT_BASE to Kconfig"
(sha1: f89d6133eef2e068f9c33853b6584d7fcbfa9d2e)

---

Notes:
Changes in V2
- changed CONFIG_SYS_MALLOC_F_LEN to 0x4000

 configs/variscite_dart6ul_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/variscite_dart6ul_defconfig +0 -0
index 55f4ff59d2..8f71cae521 100644

configs/variscite_dart6ul_defconfig CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 · line 55

Quoted 5 lines
configs/variscite_dart6ul_defconfig +2 -0
@@ -51,3 +51,5 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_LZO=y
+CONFIG_SPL_TEXT_BASE=0x00908000
+CONFIG_SYS_MALLOC_F_LEN=0x4000
Quoted 11 lines

--
2.17.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.d
enx.de%2Flistinfo%2Fu-boot&data=02%7C01%7CPeng.Fan%40nxp.com %7C6f29d59f20844d2b79cd08d71997504c%7C686ea1d3bc2b4c6fa92cd99c5 c301635%7C0%7C1%7C637006010013900947&sdata=zklKVpRPKhGI8Zc VBn3uZCEiHsRwvI%2BzjEr3dqdquQs%3D&reserved=0