This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 1128f6bd6c5d8087397f14e3e529348b1315e067
Author: Xiang Xiao <[email protected]>
AuthorDate: Mon Mar 23 16:57:51 2026 +0800

    boards/arm/tiva/lm3s6965-ek: fix qemu-protected to boot in QEMU
    
    Fix several issues preventing the protected build from booting:
    
    memory.ld: Increase ksram from 16K to 20K to accommodate kernel
    BSS and idle thread stack. Rebalance usram to 20K and xsram to
    24K accordingly.
    
    defconfig: Remove CONFIG_FS_TMPFS to reduce kernel binary size
    so it fits within the 128KB kflash partition.
    
    defconfig: Add CONFIG_TLS_LOG2_MAXSTACK=11 to reduce TLS stack
    alignment from 8K(default) to 2K. The default 8K alignment
    caused memalign to request oversized allocations from the
    user heap, failing the init task stack allocation.
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig | 2 +-
 boards/arm/tiva/lm3s6965-ek/scripts/memory.ld                | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig 
b/boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig
index f247e8d27f7..05c76a4be51 100644
--- a/boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig
+++ b/boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig
@@ -34,7 +34,6 @@ CONFIG_EXAMPLES_WGET=y
 CONFIG_FS_BINFS=y
 CONFIG_FS_HOSTFS=y
 CONFIG_FS_PROCFS=y
-CONFIG_FS_TMPFS=y
 CONFIG_INIT_ENTRYPOINT="nsh_main"
 CONFIG_LIBC_DLFCN=y
 CONFIG_LIBC_ELF_RELOCATION_BUFFERCOUNT=64
@@ -103,4 +102,5 @@ CONFIG_TIVA_GPIOG_IRQS=y
 CONFIG_TIVA_SSI0=y
 CONFIG_TIVA_UART0=y
 CONFIG_TIVA_WITH_QEMU=y
+CONFIG_TLS_LOG2_MAXSTACK=11
 CONFIG_UART0_SERIAL_CONSOLE=y
diff --git a/boards/arm/tiva/lm3s6965-ek/scripts/memory.ld 
b/boards/arm/tiva/lm3s6965-ek/scripts/memory.ld
index f8bfa633a85..a829353023a 100644
--- a/boards/arm/tiva/lm3s6965-ek/scripts/memory.ld
+++ b/boards/arm/tiva/lm3s6965-ek/scripts/memory.ld
@@ -34,7 +34,7 @@ MEMORY
 
     /* 64Kb of contiguous SRAM */
 
-  ksram (rwx)      : ORIGIN = 0x20000000, LENGTH = 16K
-  usram (rwx)      : ORIGIN = 0x20004000, LENGTH = 16K
-  xsram (rwx)      : ORIGIN = 0x20008000, LENGTH = 32K
+  ksram (rwx)      : ORIGIN = 0x20000000, LENGTH = 20K
+  usram (rwx)      : ORIGIN = 0x20005000, LENGTH = 20K
+  xsram (rwx)      : ORIGIN = 0x2000a000, LENGTH = 24K
 }

Reply via email to