Skip to contentSkip to conversation

at91, smartweb: use SPL_SYS_MALLOC_F_LEN

PATCH New Heiko Schocher 2 participants 2 messages Aug 8, 2017 – Aug 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 at91, smartweb: use SPL_SYS_MALLOC_F_LEN

commit f1896c45cb2f: spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN introduced independent SYS_MALLOC_F_LEN for SPL and U-Boot.

Use it on the smartweb board, as above commit broke the smartweb board.

---

 configs/smartweb_defconfig | 1 +
 include/configs/smartweb.h | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)
configs/smartweb_defconfig +1 -0
index dd83b75095..924b164324 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SPL_NAND_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="at91sam9260-smartweb"
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x400
 CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9260"
 CONFIG_ENV_IS_IN_NAND=y
include/configs/smartweb.h +0 -3
index cc83b98348..e504e9cd45 100644
@@ -200,9 +200,6 @@
 #define CONFIG_SYS_INIT_SP_ADDR		0x301000
 #define CONFIG_SPL_STACK_R
 #define CONFIG_SPL_STACK_R_ADDR		CONFIG_SYS_TEXT_BASE
-/* we have only 4k sram in SPL, so cut SYS_MALLOC_F_LEN */
-#undef CONFIG_SYS_MALLOC_F_LEN
-#define CONFIG_SYS_MALLOC_F_LEN 0x400
 #else
 /*
  * Initial stack pointer: 4k - GENERATED_GBL_DATA_SIZE in internal SRAM,
Signature · 1 line
2.13.3
#1 lore raw

PATCH 1/1 at91, smartweb: use SPL_SYS_MALLOC_F_LEN

Quoted 7 lines · Heiko Schocher

commit f1896c45cb2f: spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN introduced independent SYS_MALLOC_F_LEN for SPL and U-Boot.

Use it on the smartweb board, as above commit broke the smartweb board.

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: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170812/f76336df/attachment.sig>