6ce2be908dba1512e33b2ff63e77d20940edd3cc
[openwrt/staging/nbd.git] / package / boot / uboot-sunxi / patches / 270-arm-sunxi-increase-SYS_MALLOC_F_LEN.patch
1 From 20abdd7feefbb4fccef5c653e045911670237e8b Mon Sep 17 00:00:00 2001
2 From: Stijn Tintel <stijn@linux-ipv6.be>
3 Date: Thu, 22 Dec 2022 00:35:07 +0200
4 Subject: [PATCH] arm: sunxi: increase SYS_MALLOC_F_LEN
5
6 Version 2020.10 throws the following output after loading bl31:
7 alloc space exhausted
8
9 This has been fixed in v2022.07, but the change is too intrusive to
10 backport. Instead, just modify the default for ARCH_SUNXI for now.
11
12 See e05689242238 ("Kconfig: Change SYS_MALLOC_F_LEN default to 0x2000").
13
14 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
15 ---
16 Kconfig | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 --- a/Kconfig
20 +++ b/Kconfig
21 @@ -146,7 +146,7 @@ config SYS_MALLOC_F_LEN
22 default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \
23 ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \
24 ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
25 - ARCH_LS1046A || ARCH_QEMU)
26 + ARCH_LS1046A || ARCH_QEMU || ARCH_SUNXI)
27 default 0x400
28 help
29 Before relocation, memory is very limited on many platforms. Still,