summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Richard2025-08-14 15:03:04 +0000
committerHauke Mehrtens2025-08-17 17:02:33 +0000
commitd72157f4e3bef8767be4d1c699102292361fdbd2 (patch)
tree745926852617d6ebaca5acdc9b9dfb17ed30f218
parent96e5e12d408edb5278bad59cb347e8bd7dd695d7 (diff)
downloadopenwrt-d72157f4e3bef8767be4d1c699102292361fdbd2.tar.gz
uboot-stm32: bump to 2025.07
Now devicetrees imported from Linux kernel release are used, so update DEVICE_TREE to use correct path. A patch was backported to increase SYS_MALLOC_F_LEN for stm32mp13 (more alloc space is needed due to SCMI update to protocol v2.0). Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: https://github.com/openwrt/openwrt/pull/19779 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/boot/uboot-stm32/Makefile6
-rw-r--r--package/boot/uboot-stm32/patches/001-configs-stm32mp13-increase-SYS_MALLOC_F_LEN-to-0x210.patch27
2 files changed, 30 insertions, 3 deletions
diff --git a/package/boot/uboot-stm32/Makefile b/package/boot/uboot-stm32/Makefile
index 8803504095..534857c07f 100644
--- a/package/boot/uboot-stm32/Makefile
+++ b/package/boot/uboot-stm32/Makefile
@@ -7,10 +7,10 @@
include $(TOPDIR)/rules.mk
-PKG_VERSION:=2025.04
+PKG_VERSION:=2025.07
PKG_RELEASE:=1
-PKG_HASH:=439d3bef296effd54130be6a731c5b118be7fddd7fcc663ccbc5fb18294d8718
+PKG_HASH:=0f933f6c5a426895bf306e93e6ac53c60870e4b54cda56d95211bec99e63bec7
PKG_MAINTAINER:=Thomas Richard <thomas.richard@bootlin.com>
UBOOT_USE_INTREE_DTC:=1
@@ -56,7 +56,7 @@ UBOOT_TARGETS := \
stm32mp157c-dk2 \
stm32mp157c-dk2-scmi
-UBOOT_MAKE_FLAGS += DEVICE_TREE=$(DEVICE_TREE)
+UBOOT_MAKE_FLAGS += DEVICE_TREE=st/$(DEVICE_TREE)
UBOOT_CUSTOMIZE_CONFIG := \
--disable TOOLS_MKEFICAPSULE
diff --git a/package/boot/uboot-stm32/patches/001-configs-stm32mp13-increase-SYS_MALLOC_F_LEN-to-0x210.patch b/package/boot/uboot-stm32/patches/001-configs-stm32mp13-increase-SYS_MALLOC_F_LEN-to-0x210.patch
new file mode 100644
index 0000000000..b93fb52a6f
--- /dev/null
+++ b/package/boot/uboot-stm32/patches/001-configs-stm32mp13-increase-SYS_MALLOC_F_LEN-to-0x210.patch
@@ -0,0 +1,27 @@
+From 1cdb64ad3aa9d6cd4a02adc09fcc1015f90e2fb9 Mon Sep 17 00:00:00 2001
+From: Patrice Chotard <patrice.chotard@foss.st.com>
+Date: Mon, 9 Jun 2025 14:53:13 +0200
+Subject: [PATCH] configs: stm32mp13: increase SYS_MALLOC_F_LEN to 0x210000
+
+Due SCMI update to protocol v2.0, we need to increase
+SYS_MALLOC_F_LEN value to avoid following message:
+alloc space exhausted ptr 200040 limit 200000
+
+Set SYS_MALLOC_F_LEN to 0x210000 to fix this issue.
+
+Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
+---
+ configs/stm32mp13_defconfig | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/configs/stm32mp13_defconfig
++++ b/configs/stm32mp13_defconfig
+@@ -1,7 +1,7 @@
+ CONFIG_ARM=y
+ CONFIG_ARCH_STM32MP=y
+ CONFIG_TFABOOT=y
+-CONFIG_SYS_MALLOC_F_LEN=0x180000
++CONFIG_SYS_MALLOC_F_LEN=0x210000
+ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc0400000
+ CONFIG_ENV_OFFSET=0x900000
+ CONFIG_DEFAULT_DEVICE_TREE="st/stm32mp135f-dk"