Apache NuttX is a mature, real-time embedded operating system (RTOS)
Go to file
zhanghongyu c22b39d8d7 arp.h: make struct arpreq four-byte aligned
current sizeof(struct sockaddr_in) is 66

arp/arp_table.c:241:28: runtime error: member access within misaligned address 0xe5f134e6 for type 'struct sockaddr_in', which requires 4 byte alignment
0xe5f134e6: note: pointer points here
 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
             ^
    #0 0x543287c1 in arp_get_arpreq arp/arp_table.c:241
    #1 0x5432a11f in arp_snapshot arp/arp_table.c:574
    #2 0x5435f0be in netlink_fill_arptable netlink/netlink_route.c:547
    #3 0x5435ffca in netlink_get_neighbor netlink/netlink_route.c:715
    #4 0x54360116 in netlink_get_neighborlist netlink/netlink_route.c:743
    #5 0x54363b20 in netlink_route_sendto netlink/netlink_route.c:1382
    #6 0x542ef1b1 in netlink_sendmsg netlink/netlink_sockif.c:625
    #7 0x542be94d in psock_sendmsg socket/sendmsg.c:96
    #8 0x542bc94b in psock_sendto socket/sendto.c:134
    #9 0x542bcb28 in sendto socket/sendto.c:247
    #10 0x542bc5ea in send socket/send.c:163
    #11 0x542aa715 in netlib_get_arptable /home/mi/gaofengzhi/code/dev1025/apps/netutils/netlib/netlib_getarptab.c:152
    #12 0x54279109 in cmd_arp /home/mi/gaofengzhi/code/dev1025/apps/nshlib/nsh_netcmds.c:1197
    #13 0x54257faf in nsh_command /home/mi/gaofengzhi/code/dev1025/apps/nshlib/nsh_command.c:1263
    #14 0x54231982 in nsh_execute /home/mi/gaofengzhi/code/dev1025/apps/nshlib/nsh_parse.c:718
    #15 0x5423da42 in nsh_parse_command /home/mi/gaofengzhi/code/dev1025/apps/nshlib/nsh_parse.c:2619
    #16 0x5423e12a in nsh_parse /home/mi/gaofengzhi/code/dev1025/apps/nshlib/nsh_parse.c:2706
    #17 0x5424088f in nsh_session /home/mi/gaofengzhi/code/dev1025/apps/nshlib/nsh_session.c:245
    #18 0x5422efc9 in nsh_consolemain /home/mi/gaofengzhi/code/dev1025/apps/nshlib/nsh_consolemain.c:75
    #19 0x5419e89f in nsh_main /home/mi/gaofengzhi/code/dev1025/apps/system/nsh/nsh_main.c:74
    #20 0x54067ee1 in nxtask_startup sched/task_startup.c:70
    #21 0x53f366c6 in nxtask_start task/task_start.c:116
    #22 0x5409e1a4 in pre_start sim/sim_initialstate.c:52

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-10-29 20:43:15 +08:00
.github CI: Enable sim-02 build when we create or update a Complex PR 2024-10-24 10:35:23 +08:00
Documentation Doc: Migrate Smaller Vector Tables 2024-10-28 09:35:07 +08:00
arch CMake/preprocess: fix typo PREPROCES -> PREPROCESS 2024-10-29 17:41:01 +08:00
audio audio: remove started from audio_complete 2024-10-16 20:27:45 +08:00
binfmt modlib:support modlib can load PIC elf 2024-10-16 18:40:06 +08:00
boards mps/clang: Add a defconfig for mps to support clang compilation 2024-10-28 22:19:58 +08:00
cmake CMake/preprocess: fix typo PREPROCES -> PREPROCESS 2024-10-29 17:41:01 +08:00
crypto libc: Refine the arc4random_buf implementation 2024-10-26 18:04:21 -03:00
drivers libc: Refine the arc4random_buf implementation 2024-10-26 18:04:21 -03:00
dummy
fs shmfs: return EINVAL if group null 2024-10-29 18:11:33 +08:00
graphics Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
include arp.h: make struct arpreq four-byte aligned 2024-10-29 20:43:15 +08:00
libs libbuitlin: distclean should delete all files 2024-10-28 22:19:58 +08:00
mm mm/kasan: extern kasan API only MM_KASAN is enabled 2024-10-25 19:04:14 +08:00
net net/usrsock: usrsock supports offload netlink 2024-10-28 19:42:05 +08:00
openamp cmake(bugfix):disable proxy and service source in open-amp 2024-10-15 15:25:20 +08:00
pass1 Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
sched sched/cpuload: move g_cpuload_wdog to private chapter 2024-10-25 13:28:51 +08:00
syscall libc: Refine the arc4random_buf implementation 2024-10-26 18:04:21 -03:00
tools mps/clang: Add a defconfig for mps to support clang compilation 2024-10-28 22:19:58 +08:00
video Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
wireless bluetooth: set bt_driver_register/unregister to xx_set/unset 2024-10-17 18:09:32 +08:00
.asf.yaml
.gitignore .gitignore: Add the .cache directory generated by clangd 2024-10-28 16:16:16 +08:00
.pre-commit-config.yaml
.yamllint
AUTHORS AUTHORS: add Ville Juven 2024-10-22 23:10:08 +08:00
CMakeLists.txt toolchain/tasking: fix build break on tasking toolchain 2024-10-29 18:11:04 +08:00
CONTRIBUTING.md Contributing and PR template fix. 2024-10-12 08:12:05 +08:00
INVIOLABLES.md
Kconfig clang:libclang_rt.builtins-xxx.a supports builtin 2024-10-28 16:38:45 +08:00
LICENSE libc string:Separate code. 2024-10-23 09:49:19 +08:00
Makefile
NOTICE
README.md
ReleaseNotes

README.md

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.