Skip to contentSkip to conversation

mips: mt7688: gardena-smart-gateway: Increase CONFIG_SYS_BOOTM_LEN

PATCH In review Ezra Buehler 3 participants 3 messages Oct 23, 2024 – Apr 23, 2025 Arm MediaTek

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips: mt7688: gardena-smart-gateway: Increase CONFIG_SYS_BOOTM_LEN

From: Ezra Buehler <[email protected]>

The default value of 0x800000 (8 MB) is somewhat limiting for us, as our compressed kernel may grow up to around 4 MB. By choosing the commonly used value of 0x2000000 (32 MB), we are definitely on the safe side. This rather large amount should be fine, as we have 128 MB of RAM.

---

Are there drawbacks of choosing a hight value for CONFIG_SYS_BOOTM_LEN that I am missing here? If so, 0x1000000 is most likely enough too.

Cheers,
Ezra.

 configs/gardena-smart-gateway-mt7688_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/gardena-smart-gateway-mt7688_defconfig +1 -0
index b7f4a76ce6..2c69e91339 100644
@@ -47,6 +47,7 @@ CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_LICENSE=y
+CONFIG_SYS_BOOTM_LEN=0x2000000
 # CONFIG_CMD_ELF is not set
 # CONFIG_CMD_XIMG is not set
 CONFIG_CMD_MEMINFO=y
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Ezra Buehler

From: Ezra Buehler <[email protected]>

The default value of 0x800000 (8 MB) is somewhat limiting for us, as our compressed kernel may grow up to around 4 MB. By choosing the commonly used value of 0x2000000 (32 MB), we are definitely on the safe side. This rather large amount should be fine, as we have 128 MB of RAM.

Quoted 5 lines

---

Are there drawbacks of choosing a hight value for CONFIG_SYS_BOOTM_LEN that I am missing here? If so, 0x1000000 is most likely enough too.

I don't see problems with using 32MB, so:

Thanks,
Stefan

Quoted 11 lines

Cheers,
Ezra.

  configs/gardena-smart-gateway-mt7688_defconfig | 1 +
  1 file changed, 1 insertion(+)
configs/gardena-smart-gateway-mt7688_defconfig +0 -0
index b7f4a76ce6..2c69e91339 100644

configs/gardena-smart-gateway-mt7688_defconfig CONFIG_SPL_SYS_MALLOC_SIMPLE=y · line 53

Quoted 7 lines
configs/gardena-smart-gateway-mt7688_defconfig +1 -0
@@ -47,6 +47,7 @@ CONFIG_SPL_SYS_MALLOC_SIMPLE=y
  CONFIG_SPL_NOR_SUPPORT=y
  CONFIG_HUSH_PARSER=y
  CONFIG_CMD_LICENSE=y
+CONFIG_SYS_BOOTM_LEN=0x2000000
  # CONFIG_CMD_ELF is not set
  # CONFIG_CMD_XIMG is not set
  CONFIG_CMD_MEMINFO=y

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#2 lore raw
In reply to Ezra Buehler
Quoted 6 lines · Ezra Buehler

The default value of 0x800000 (8 MB) is somewhat limiting for us, as our compressed kernel may grow up to around 4 MB. By choosing the commonly used value of 0x2000000 (32 MB), we are definitely on the safe side. This rather large amount should be fine, as we have 128 MB of RAM.

Applied to u-boot/master, thanks!

[1/1] mips: mt7688: gardena-smart-gateway: Increase CONFIG_SYS_BOOTM_LEN

      commit: 4446bc331c65d3efb8a9321d6368c61edb56479b
Signature · 1 line
Tom