Skip to contentSkip to conversation

Kconfig: Enlarge default SYS_MALLOC_F_LEN for AM33XX

PATCH New Sjoerd Simons 2 participants 3 messages Apr 12, 2018 – Apr 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Kconfig: Enlarge default SYS_MALLOC_F_LEN for AM33XX

Since commit 8e14ba7bd524 ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag") omap GPIO gets bound before relocation. Unfortunately due to this, on at least the beaglebone black, the pre-relocation memory pool gets exhausted before probing the serial port. This then causes u-boot to panic as CONFIG_REQUIRE_SERIAL_CONSOLE is set...

Resolve this by resizing the default size of the pre-relocation malloc pool for AM335X platforms.

---

Changes in v2:
- Set the default in the toplevel kConfig file rather then the omap2plus one

 Kconfig | 1 +
 1 file changed, 1 insertion(+)
Kconfig +1 -0
index 6670913799..55dddc844d 100644
@@ -131,6 +131,7 @@ config SYS_MALLOC_F
 config SYS_MALLOC_F_LEN
 	hex "Size of malloc() pool before relocation"
 	depends on SYS_MALLOC_F
+	default 0x1000 if AM33XX
 	default 0x400
 	help
 	  Before relocation, memory is very limited on many platforms. Still,
Signature · 1 line
2.17.0
#1 lore raw

PATCH v2 1/1 Kconfig: Enlarge default SYS_MALLOC_F_LEN for AM33XX

Quoted 10 lines · Sjoerd Simons

Since commit 8e14ba7bd524 ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag") omap GPIO gets bound before relocation. Unfortunately due to this, on at least the beaglebone black, the pre-relocation memory pool gets exhausted before probing the serial port. This then causes u-boot to panic as CONFIG_REQUIRE_SERIAL_CONSOLE is set...

Resolve this by resizing the default size of the pre-relocation malloc pool for AM335X platforms.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180416/99098fee/attachment.sig>
#2 lore raw

PATCH v2 1/1 Kconfig: Enlarge default SYS_MALLOC_F_LEN for AM33XX

Quoted 8 lines · Tom Rini
Quoted 6 lines · Sjoerd Simons

Since commit 8e14ba7bd524 ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag") omap GPIO gets bound before relocation. Unfortunately due to this, on at least the beaglebone black, the pre-relocation memory pool gets exhausted before probing the serial port. This then causes u-boot to panic as CONFIG_REQUIRE_SERIAL_CONSOLE is set...

Quoted 6 lines
Quoted 4 lines

Resolve this by resizing the default size of the pre-relocation malloc pool for AM335X platforms.

Applied to u-boot/master, thanks!

That done, a patch on top of this to move ARCH_OMAP2PLUS to 0x2000 instead would be greatly appreciated for post v2018.05, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180417/22aa807d/attachment.sig>