From e68c975c4128be646324fbeeec2d6233d62f9ae8 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Fri, 26 Aug 2022 14:58:59 +0900 Subject: [PATCH] boards: lm3s6965-ek: Fix to load ELF applications for qemu-protected Summary: - I noticed that error happens in loading nettest elf application. - This commit fixes this issue by adding SYMTAB to the NSH as well as adjusting some parameters in CONFIG_ELF_XXX - Also, CONFIG_EXAMPLES_HELLO is changed from y to m for testing. Impact: - lm3s6965-ek:qemu-protected only Tested: - Tested with qemu-6.2 Signed-off-by: Masayuki Ishikawa --- .../tiva/lm3s6965-ek/configs/qemu-protected/defconfig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig b/boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig index 933e1d560a..6c917c8d61 100644 --- a/boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig +++ b/boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig @@ -17,7 +17,6 @@ CONFIG_ARCH_CHIP_LM=y CONFIG_ARCH_STACKDUMP=y CONFIG_ARM_MPU=y CONFIG_ARM_SEMIHOSTING_HOSTFS=y -CONFIG_BOARDCTL_APP_SYMTAB=y CONFIG_BOARDCTL_ROMDISK=y CONFIG_BOARD_LOOPSPERMSEC=4531 CONFIG_BUILD_PROTECTED=y @@ -30,9 +29,11 @@ CONFIG_DEBUG_INFO=y CONFIG_DEBUG_SYMBOLS=y CONFIG_DEBUG_WARN=y CONFIG_ELF=y +CONFIG_ELF_RELOCATION_BUFFERCOUNT=64 +CONFIG_ELF_SYMBOL_CACHECOUNT=64 CONFIG_EXAMPLES_ELF=y CONFIG_EXAMPLES_ELF_DEVPATH="/dev/ram5" -CONFIG_EXAMPLES_HELLO=y +CONFIG_EXAMPLES_HELLO=m CONFIG_EXAMPLES_MODULE=y CONFIG_EXAMPLES_MODULE_DEVPATH="/dev/ram6" CONFIG_EXAMPLES_NETTEST=m @@ -41,7 +42,6 @@ CONFIG_FS_BINFS=y CONFIG_FS_HOSTFS=y CONFIG_FS_PROCFS=y CONFIG_FS_TMPFS=y -CONFIG_HOST_MACOS=y CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_LIBC_DLFCN=y CONFIG_LIBC_ENVPATH=y @@ -95,6 +95,9 @@ CONFIG_SYSLOG_CONSOLE=y CONFIG_SYSTEM_DHCPC_RENEW=y CONFIG_SYSTEM_NETDB=y CONFIG_SYSTEM_NSH=y +CONFIG_SYSTEM_NSH_SYMTAB=y +CONFIG_SYSTEM_NSH_SYMTAB_ARRAYNAME="g_symtab" +CONFIG_SYSTEM_NSH_SYMTAB_COUNTNAME="g_nsymbols" CONFIG_SYSTEM_NTPC=y CONFIG_SYSTEM_PING=y CONFIG_TASK_NAME_SIZE=24