You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/01/29 18:40:12 UTC
[incubator-nuttx] branch master updated (b8dc64f -> bd37272)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.
from b8dc64f drivers/net/encx24j600.c: Correct setting of ifstate
new 0a5e7bd libs/libc: libc.csv "mkfifo" and "pipe" has to be conditionalized same as in the sources.
new d77fe33 board/arm/imxrt: the request for map file in Make.defs LDFLAGS results in absolute path in export target.
new 17c3118 libs/libc: libc.csv fill in calloc, gethostbyname and signal.
new 2106895 boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh: increase number of memory regions.
new e7ed720 boards/arm/lpc17xx_40xx/lx_cpu/: increase sections alignment and fix .ARM.exidx overlap.
new c5d25d5 boards/arm/lpc17xx_40xx/lx_cpu: enable CLOCK_MONOTONIC and NETDB support.
new bd37272 boards/arm/imxrt/teensy-4.x: added configuration for PiKRON's BaseBoard v1.
The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../imxrt/teensy-4.x/configs/pikron-bb/defconfig | 152 +++++++++++++++++++++
boards/arm/imxrt/teensy-4.x/scripts/Make.defs | 5 -
.../arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig | 4 +-
.../lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld | 14 +-
.../lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld | 14 +-
.../arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld | 17 ++-
libs/libc/libc.csv | 8 +-
7 files changed, 183 insertions(+), 31 deletions(-)
create mode 100644 boards/arm/imxrt/teensy-4.x/configs/pikron-bb/defconfig
mode change 100644 => 100755 boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld
[incubator-nuttx] 04/07:
boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh: increase number of memory
regions.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 210689535aa6874518474ca8b6188e1bb2aba024
Author: Pavel Pisa <pp...@pikron.com>
AuthorDate: Fri Jan 29 15:29:22 2021 +0100
boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh: increase number of memory regions.
There was one region missing to register external SDRAM
into heap.
Signed-off-by: Pavel Pisa <pp...@pikron.com>
---
boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig b/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig
index bacaeb8..ef1bdc5 100644
--- a/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig
+++ b/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig
@@ -94,7 +94,7 @@ CONFIG_M25P_SUBSECTOR_ERASE=y
CONFIG_MAX_TASKS=16
CONFIG_MMCSD=y
CONFIG_MMCSD_SDIO=y
-CONFIG_MM_REGIONS=2
+CONFIG_MM_REGIONS=3
CONFIG_MTD=y
CONFIG_MTD_M25P=y
CONFIG_NETDB_DNSCLIENT=y
[incubator-nuttx] 03/07: libs/libc: libc.csv fill in calloc,
gethostbyname and signal.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 17c3118b859fa8f015c93cb68082e7ce1bb6ad80
Author: Pavel Pisa <pp...@pikron.com>
AuthorDate: Fri Jan 29 01:22:33 2021 +0100
libs/libc: libc.csv fill in calloc, gethostbyname and signal.
Signed-off-by: Pavel Pisa <pp...@pikron.com>
---
libs/libc/libc.csv | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libs/libc/libc.csv b/libs/libc/libc.csv
index a1e246d..8be0283 100644
--- a/libs/libc/libc.csv
+++ b/libs/libc/libc.csv
@@ -18,6 +18,7 @@
"b16sqr","fixedmath.h","!defined(CONFIG_HAVE_LONG_LONG)","b16_t","b16_t"
"basename","libgen.h","","FAR char *","FAR char *"
"btowc","wchar.h","defined(CONFIG_LIBC_WCHAR)","wint_t","int"
+"calloc","stdlib.h","","FAR void *","size_t","size_t"
"cfgetspeed","termios.h","defined(CONFIG_SERIAL_TERMIOS)","speed_t","FAR const struct termios *"
"cfsetspeed","termios.h","defined(CONFIG_SERIAL_TERMIOS)","int","FAR struct termios *","speed_t"
"chdir","unistd.h","!defined(CONFIG_DISABLE_ENVIRON)","int","FAR const char *"
@@ -52,6 +53,8 @@
"ftell","stdio.h","defined(CONFIG_FILE_STREAM)","long","FAR FILE *"
"fwrite","stdio.h","defined(CONFIG_FILE_STREAM)","size_t","FAR const void *","size_t","size_t","FAR FILE *"
"getcwd","unistd.h","!defined(CONFIG_DISABLE_ENVIRON)","FAR char *","FAR char *","size_t"
+"gethostbyname","netdb.h","defined(CONFIG_LIBC_NETDB)","FAR struct hostent *","FAR const char *"
+"gethostbyname2","netdb.h","defined(CONFIG_LIBC_NETDB)","FAR struct hostent *","FAR const char *","int"
"gethostname","unistd.h","","int","FAR char *","size_t"
"getopt","unistd.h","","int","int","FAR char * const []|FAR char * const *","FAR const char *"
"getoptargp","unistd.h","","FAR char **"
@@ -155,6 +158,7 @@
"sigemptyset","signal.h","","int","FAR sigset_t *"
"sigfillset","signal.h","","int","FAR sigset_t *"
"sigismember","signal.h","","int","FAR const sigset_t *","int"
+"signal","signal.h","","_sa_handler_t","int","_sa_handler_t"
"sleep","unistd.h","","unsigned int","unsigned int"
"snprintf","stdio.h","","int","FAR char *","size_t","FAR const IPTR char *","..."
"sprintf","stdio.h","","int","FAR char *","FAR const IPTR char *","..."
[incubator-nuttx] 01/07: libs/libc: libc.csv "mkfifo" and "pipe"
has to be conditionalized same as in the sources.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 0a5e7bd3ef033ed6e40e94680f0fdb2a8313f0cb
Author: Pavel Pisa <pp...@pikron.com>
AuthorDate: Wed Jan 20 15:25:39 2021 +0100
libs/libc: libc.csv "mkfifo" and "pipe" has to be conditionalized same as in the sources.
The CONFIG_PIPES, CONFIG_DEV_FIFO_SIZE and CONFIG_DEV_PIPE_SIZE setting
has to be considered.
Signed-off-by: Pavel Pisa <pp...@pikron.com>
---
libs/libc/libc.csv | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/libc/libc.csv b/libs/libc/libc.csv
index a5395ed..a1e246d 100644
--- a/libs/libc/libc.csv
+++ b/libs/libc/libc.csv
@@ -100,12 +100,12 @@
"memcpy","string.h","","FAR void *","FAR void *","FAR const void *","size_t"
"memmove","string.h","","FAR void *","FAR void *","FAR const void *","size_t"
"memset","string.h","","FAR void *","FAR void *","int","size_t"
-"mkfifo","sys/stat.h","","int","FAR const char *","mode_t"
+"mkfifo","sys/stat.h","defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0","int","FAR const char *","mode_t"
"mktime","time.h","","time_t","FAR struct tm *"
"ntohl","arpa/inet.h","","uint32_t","uint32_t"
"ntohs","arpa/inet.h","","uint16_t","uint16_t"
"perror","stdio.h","defined(CONFIG_FILE_STREAM)","void","FAR const char *"
-"pipe","unistd.h","","int","int [2]|FAR int *"
+"pipe","unistd.h","defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0","int","int [2]|FAR int *"
"printf","stdio.h","","int","FAR const IPTR char *","..."
"pthread_attr_destroy","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *"
"pthread_attr_getinheritsched","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR const pthread_attr_t *","FAR int *"
[incubator-nuttx] 07/07: boards/arm/imxrt/teensy-4.x: added
configuration for PiKRON's BaseBoard v1.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit bd372724cc5e9ff0bf42b1b0751338b900d817eb
Author: Pavel Pisa <pp...@pikron.com>
AuthorDate: Wed Jan 20 19:17:58 2021 +0100
boards/arm/imxrt/teensy-4.x: added configuration for PiKRON's BaseBoard v1.
The BaseBoard carries Teensy 4.1 SBC. The complete design
of the baseboard (teensy_bb-1.tdb) is available at
https://gitlab.com/pikron/projects/imxrt-devel/-/tree/master/hw
Attempt is to provide configuration which enables most
of interfaces of the BaseBoard and allows runtime applications
loading over TFTP.
Signed-off-by: Pavel Pisa <pp...@pikron.com>
---
.../imxrt/teensy-4.x/configs/pikron-bb/defconfig | 152 +++++++++++++++++++++
1 file changed, 152 insertions(+)
diff --git a/boards/arm/imxrt/teensy-4.x/configs/pikron-bb/defconfig b/boards/arm/imxrt/teensy-4.x/configs/pikron-bb/defconfig
new file mode 100644
index 0000000..eed4af2
--- /dev/null
+++ b/boards/arm/imxrt/teensy-4.x/configs/pikron-bb/defconfig
@@ -0,0 +1,152 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed .config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that includes your
+# modifications.
+#
+# CONFIG_ARCH_LEDS is not set
+# CONFIG_NSH_DISABLE_DATE is not set
+# CONFIG_NSH_DISABLE_PRINTF is not set
+# CONFIG_NSH_DISABLE_TRUNCATE is not set
+CONFIG_ARCH="arm"
+CONFIG_ARCH_BOARD="teensy-4.x"
+CONFIG_ARCH_BOARD_TEENSY_4X=y
+CONFIG_ARCH_CHIP="imxrt"
+CONFIG_ARCH_CHIP_IMXRT=y
+CONFIG_ARCH_CHIP_MIMXRT1062DVL6A=y
+CONFIG_ARCH_RAMVECTORS=y
+CONFIG_ARCH_STACKDUMP=y
+CONFIG_ARMV7M_DCACHE=y
+CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
+CONFIG_ARMV7M_ICACHE=y
+CONFIG_ARMV7M_USEBASEPRI=y
+CONFIG_BOARDCTL_APP_SYMTAB=y
+CONFIG_BOARDCTL_OS_SYMTAB=y
+CONFIG_BOARD_LOOPSPERMSEC=104926
+CONFIG_BUILTIN=y
+CONFIG_CAN=y
+CONFIG_CANCELLATION_POINTS=y
+CONFIG_CANUTILS_CANDUMP=y
+CONFIG_CANUTILS_CANSEND=y
+CONFIG_CAN_FD=y
+CONFIG_CLOCK_MONOTONIC=y
+CONFIG_DEBUG_ERROR=y
+CONFIG_DEBUG_FEATURES=y
+CONFIG_DEBUG_FULLOPT=y
+CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DEBUG_WARN=y
+CONFIG_DEV_LOOP=y
+CONFIG_DEV_ZERO=y
+CONFIG_DRIVERS_VIDEO=y
+CONFIG_ELF=y
+CONFIG_ETH0_PHY_DP83825I=y
+CONFIG_EXAMPLES_FB=y
+CONFIG_EXECFUNCS_HAVE_SYMTAB=y
+CONFIG_EXECFUNCS_SYSTEM_SYMTAB=y
+CONFIG_FAT_LCNAMES=y
+CONFIG_FAT_LFN=y
+CONFIG_FS_BINFS=y
+CONFIG_FS_FAT=y
+CONFIG_FS_FATTIME=y
+CONFIG_FS_NAMED_SEMAPHORES=y
+CONFIG_FS_PROCFS=y
+CONFIG_FS_PROCFS_REGISTER=y
+CONFIG_FS_ROMFS=y
+CONFIG_FS_TMPFS=y
+CONFIG_IDLETHREAD_STACKSIZE=2048
+CONFIG_IMXRT_ENET=y
+CONFIG_IMXRT_ENET_NRXBUFFERS=16
+CONFIG_IMXRT_ENET_NTXBUFFERS=8
+CONFIG_IMXRT_FLEXCAN3=y
+CONFIG_IMXRT_LPSPI4=y
+CONFIG_IMXRT_LPUART1=y
+CONFIG_IMXRT_SNVS_LPSRTC=y
+CONFIG_INTELHEX_BINARY=y
+CONFIG_LCD=y
+CONFIG_LCD_FRAMEBUFFER=y
+CONFIG_LCD_PORTRAIT=y
+CONFIG_LCD_ST7789=y
+CONFIG_LIBC_DLFCN=y
+CONFIG_LIBC_EXECFUNCS=y
+CONFIG_LIBC_STRERROR=y
+CONFIG_LIB_ENVPATH=y
+CONFIG_LIB_HOSTNAME="Teensy 4.x"
+CONFIG_LPUART1_SERIAL_CONSOLE=y
+CONFIG_MAX_TASKS=16
+CONFIG_NET=y
+CONFIG_NETDB_DNSCLIENT=y
+CONFIG_NETDEV_LATEINIT=y
+CONFIG_NETDEV_STATISTICS=y
+CONFIG_NETINIT_DHCPC=y
+CONFIG_NETINIT_NOMAC=y
+CONFIG_NETUTILS_FTPC=y
+CONFIG_NETUTILS_TELNETD=y
+CONFIG_NETUTILS_TFTPC=y
+CONFIG_NET_ARP_SEND=y
+CONFIG_NET_BROADCAST=y
+CONFIG_NET_CAN=y
+CONFIG_NET_CAN_SOCK_OPTS=y
+CONFIG_NET_ICMP=y
+CONFIG_NET_ICMP_SOCKET=y
+CONFIG_NET_ICMPv6=y
+CONFIG_NET_ICMPv6_NEIGHBOR=y
+CONFIG_NET_ICMPv6_SOCKET=y
+CONFIG_NET_IPv6=y
+CONFIG_NET_LOOPBACK=y
+CONFIG_NET_PKT=y
+CONFIG_NET_ROUTE=y
+CONFIG_NET_SOLINGER=y
+CONFIG_NET_STATISTICS=y
+CONFIG_NET_TCP=y
+CONFIG_NET_TCPBACKLOG=y
+CONFIG_NET_TCP_KEEPALIVE=y
+CONFIG_NET_TCP_WRITE_BUFFERS=y
+CONFIG_NET_UDP=y
+CONFIG_NET_UDP_WRITE_BUFFERS=y
+CONFIG_NFILE_DESCRIPTORS=8
+CONFIG_NSH_ARCHINIT=y
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_FILEIOSIZE=512
+CONFIG_NSH_FILE_APPS=y
+CONFIG_NSH_LINELEN=64
+CONFIG_NSH_READLINE=y
+CONFIG_NSH_ROMFSETC=y
+CONFIG_NXFONTS_DISABLE_16BPP=y
+CONFIG_NXFONTS_DISABLE_1BPP=y
+CONFIG_NXFONTS_DISABLE_24BPP=y
+CONFIG_NXFONTS_DISABLE_2BPP=y
+CONFIG_NXFONTS_DISABLE_32BPP=y
+CONFIG_NXFONTS_DISABLE_4BPP=y
+CONFIG_NXFONTS_DISABLE_8BPP=y
+CONFIG_PRIORITY_INHERITANCE=y
+CONFIG_PSEUDOTERM=y
+CONFIG_PTABLE_PARTITION=y
+CONFIG_PTHREAD_CLEANUP=y
+CONFIG_PTHREAD_MUTEX_TYPES=y
+CONFIG_PTHREAD_STACK_MIN=1024
+CONFIG_RAM_SIZE=1048576
+CONFIG_RAM_START=0x20200000
+CONFIG_READLINE_CMD_HISTORY=y
+CONFIG_RR_INTERVAL=10
+CONFIG_SCHED_CPULOAD=y
+CONFIG_SCHED_CPULOAD_EXTCLK=y
+CONFIG_SCHED_LPWORK=y
+CONFIG_SCHED_USER_IDENTITY=y
+CONFIG_SCHED_WAITPID=y
+CONFIG_SERIAL_TERMIOS=y
+CONFIG_SPI=y
+CONFIG_SPI_CMDDATA=y
+CONFIG_START_DAY=14
+CONFIG_START_MONTH=3
+CONFIG_SYMTAB_ORDEREDBYNAME=y
+CONFIG_SYSTEM_DHCPC_RENEW=y
+CONFIG_SYSTEM_NSH=y
+CONFIG_SYSTEM_NSH_STACKSIZE=4096
+CONFIG_SYSTEM_NTPC=y
+CONFIG_SYSTEM_PING6=y
+CONFIG_SYSTEM_PING=y
+CONFIG_SYSTEM_TEE=y
+CONFIG_TEENSY_41=y
+CONFIG_USER_ENTRYPOINT="nsh_main"
+CONFIG_VIDEO_FB=y
[incubator-nuttx] 05/07: boards/arm/lpc17xx_40xx/lx_cpu/: increase
sections alignment and fix .ARM.exidx overlap.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit e7ed720699e8698d83c2e582f46306d8d2fb69a6
Author: Pavel Pisa <pp...@pikron.com>
AuthorDate: Fri Jan 29 15:38:46 2021 +0100
boards/arm/lpc17xx_40xx/lx_cpu/: increase sections alignment and fix .ARM.exidx overlap.
The ARMv7 specifies minimal alignment to be 8 for EABI. Ensure
that sections are placed with even greater minimal alignment.
Sections final alignment should be adjusted according
to alignment of their inputs, but for some reasons some
combinations lead to .ARM.exidx overlap with .data.
When alignment is increased then the direct fetch of the
fill location
_eronly = ABSOLUTE(.);
does not match with final LMA placement of the .data section.
Use constructs which should result in matching .data LMA
address for all cases
_eronly = ABSOLUTE(.);
Signed-off-by: Pavel Pisa <pp...@pikron.com>
---
.../arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld | 14 +++++++-------
.../arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld | 14 +++++++-------
boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld | 17 ++++++++---------
3 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld
old mode 100644
new mode 100755
index 9e6aaed..85b5060
--- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld
+++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld
@@ -78,25 +78,23 @@ SECTIONS
_etext = ABSOLUTE(.);
} > FLASH
- .init_section : ALIGN(4) {
+ .init_section : ALIGN(16) {
_sinit = ABSOLUTE(.);
*(.init_array .init_array.*)
_einit = ABSOLUTE(.);
} > FLASH
- .ARM.extab : {
+ .ARM.extab : ALIGN(16) {
*(.ARM.extab*)
} > FLASH
- .ARM.exidx : ALIGN(4) {
+ .ARM.exidx : ALIGN(16) {
__exidx_start = ABSOLUTE(.);
*(.ARM.exidx*)
__exidx_end = ABSOLUTE(.);
} > FLASH
- _eronly = ABSOLUTE(.);
-
- .data : ALIGN(4) {
+ .data : ALIGN(16) {
_sdata = ABSOLUTE(.);
*(.data .data.*)
*(.gnu.linkonce.d.*)
@@ -105,7 +103,9 @@ SECTIONS
_edata = ABSOLUTE(.);
} > SRAM AT > FLASH
- .bss : ALIGN(4) {
+ _eronly = LOADADDR(.data);
+
+ .bss : ALIGN(16) {
_sbss = ABSOLUTE(.);
*(.bss .bss.*)
*(.gnu.linkonce.b.*)
diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld
index 02d9c14..e9a80ef 100644
--- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld
+++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld
@@ -76,25 +76,23 @@ SECTIONS
_etext = ABSOLUTE(.);
} > FLASH
- .init_section : ALIGN(4) {
+ .init_section : ALIGN(16) {
_sinit = ABSOLUTE(.);
*(.init_array .init_array.*)
_einit = ABSOLUTE(.);
} > FLASH
- .ARM.extab : {
+ .ARM.extab : ALIGN(16) {
*(.ARM.extab*)
} > FLASH
- .ARM.exidx : ALIGN(4) {
+ .ARM.exidx : ALIGN(16) {
__exidx_start = ABSOLUTE(.);
*(.ARM.exidx*)
__exidx_end = ABSOLUTE(.);
} > FLASH
- _eronly = ABSOLUTE(.);
-
- .data : ALIGN(4) {
+ .data : ALIGN(16) {
_sdata = ABSOLUTE(.);
*(.data .data.*)
*(.gnu.linkonce.d.*)
@@ -103,7 +101,9 @@ SECTIONS
_edata = ABSOLUTE(.);
} > SRAM AT > FLASH
- .bss : ALIGN(4) {
+ _eronly = LOADADDR(.data);
+
+ .bss : ALIGN(16) {
_sbss = ABSOLUTE(.);
*(.bss .bss.*)
*(.gnu.linkonce.b.*)
diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld
index 423d2af..cab2f72 100644
--- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld
+++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld
@@ -79,26 +79,23 @@ SECTIONS
_etext = ABSOLUTE(.);
} > SDRAM
- .init_section : {
+ .init_section : ALIGN(16) {
_sinit = ABSOLUTE(.);
*(.init_array .init_array.*)
_einit = ABSOLUTE(.);
} > SDRAM
- .ARM.extab : {
+ .ARM.extab : ALIGN(16) {
*(.ARM.extab*)
} > SDRAM
- __exidx_start = ABSOLUTE(.);
- .ARM.exidx : {
+ .ARM.exidx : ALIGN(16) {
+ __exidx_start = ABSOLUTE(.);
*(.ARM.exidx*)
+ __exidx_end = ABSOLUTE(.);
} > SDRAM
- __exidx_end = ABSOLUTE(.);
-
- _eronly = ABSOLUTE(.);
-
- .data : {
+ .data : ALIGN(16) {
_sdata = ABSOLUTE(.);
*(.data .data.*)
*(.gnu.linkonce.d.*)
@@ -107,6 +104,8 @@ SECTIONS
_edata = ABSOLUTE(.);
} > SRAM AT > SDRAM
+ _eronly = LOADADDR(.data);
+
.bss : {
_sbss = ABSOLUTE(.);
*(.bss .bss.*)
[incubator-nuttx] 02/07: board/arm/imxrt: the request for map file
in Make.defs LDFLAGS results in absolute path in export target.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit d77fe3390fff6ec2c18cf0a3dbf1841dd32e3d94
Author: Pavel Pisa <pp...@pikron.com>
AuthorDate: Wed Jan 20 19:09:54 2021 +0100
board/arm/imxrt: the request for map file in Make.defs LDFLAGS results in absolute path in export target.
The BSP MAke.defs line
LDFLAGS += -Map=$(TOPDIR)/nuttx.map
results in absolute path in nuttx-export/scripts/Make.defs
which would mean that each application rebuild would attempt
to modify file inside original build of NuttX system.
Even worse, it prevents linking by GCC, because -Map=xxx/nuttx.map
works directly in LD, it would require -Wl,-Map= for GCC.
Fixed name of map file prevents to define map file by build
system using exported NuttX libraries and link kit.
Change is done to allow OMK template based applications
development for another NuttX BSP
https://github.com/ppisa/nuttx-devel/tree/master/nuttx-omk-template
Signed-off-by: Pavel Pisa <pp...@pikron.com>
---
boards/arm/imxrt/teensy-4.x/scripts/Make.defs | 5 -----
1 file changed, 5 deletions(-)
diff --git a/boards/arm/imxrt/teensy-4.x/scripts/Make.defs b/boards/arm/imxrt/teensy-4.x/scripts/Make.defs
index 2757a0e..918effc 100644
--- a/boards/arm/imxrt/teensy-4.x/scripts/Make.defs
+++ b/boards/arm/imxrt/teensy-4.x/scripts/Make.defs
@@ -85,11 +85,6 @@ endif
ifneq ($(CROSSDEV),arm-nuttx-elf-)
LDFLAGS += -nostartfiles -nodefaultlibs
-ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
- LDFLAGS += -Map="${shell cygpath -w $(TOPDIR)/nuttx.map}"
-else
- LDFLAGS += -Map=$(TOPDIR)/nuttx.map
-endif
endif
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
LDFLAGS += -g
[incubator-nuttx] 06/07: boards/arm/lpc17xx_40xx/lx_cpu: enable
CLOCK_MONOTONIC and NETDB support.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit c5d25d588708da98d3393d7dc050aec5c6c49bed
Author: Pavel Pisa <pp...@pikron.com>
AuthorDate: Fri Jan 29 16:20:28 2021 +0100
boards/arm/lpc17xx_40xx/lx_cpu: enable CLOCK_MONOTONIC and NETDB support.
Signed-off-by: Pavel Pisa <pp...@pikron.com>
---
boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig b/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig
index ef1bdc5..14905df 100644
--- a/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig
+++ b/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig
@@ -34,6 +34,7 @@ CONFIG_CDCACM=y
CONFIG_CDCACM_COMPOSITE=y
CONFIG_CDCACM_IFLOWCONTROL=y
CONFIG_CDCECM_COMPOSITE=y
+CONFIG_CLOCK_MONOTONIC=y
CONFIG_DEV_LOOP=y
CONFIG_DEV_ZERO=y
CONFIG_DFU=y
@@ -153,6 +154,7 @@ CONFIG_SYSTEM_CDCACM=y
CONFIG_SYSTEM_DHCPC_RENEW=y
CONFIG_SYSTEM_I2CTOOL=y
CONFIG_SYSTEM_MDIO=y
+CONFIG_SYSTEM_NETDB=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_NSH_STACKSIZE=4096
CONFIG_SYSTEM_NTPC=y