打印

nuttx这个系统怎么样?有人了解吗?谢谢!

[复制链接]
6714|15
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
bear1|  楼主 | 2018-7-11 13:34 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
沙发
bear1|  楼主 | 2018-7-11 13:36 | 只看该作者
NuttX Real-Time Operating System

NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller environments, the primary governing standards in NuttX are Posix and ANSI standards. Additional standard APIs from Unix and other common RTOS's (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()).

NuttX was first released in 2007 by Gregory Nutt under the permissive BSD license.
Key features

    Standards Compliant.
    Core Task Management.
    Modular design.
    Fully preemptible.
    Naturally scalable.
    Highly configurable.
    Easily extensible to new processor architectures, SoC architecture, or board architectures. See Porting Guide.
    FIFO, round-robin, and “sporadic” scheduling.
    Realtime, deterministic, with support for priority inheritance.
    Tickless operation.
    POSIX/ANSI-like task controls, named message queues, counting semaphores, clocks/timers, signals, pthreads, robust mutexes, cancellation points, environment variables, filesystem.
    VxWorks-like task management and watchdog timers.
    BSD socket interface.
    Extensions to manage pre-emption.
    Optional tasks with address environments (Processes).
    Symmetric Multi-Processing (SMP)
    Loadable kernel modules; lightweight, embedded shared libraries.
    Memory Configurations: (1) Flat embedded build, (2) Protected build with MPU, and (3) Kernel build with MMU.
    Memory Allocators: (1) standard heap memory allocation, (2) granule allocator, (3) shared memory, and (4) dynamically sized, per-process heaps.
    Thread Local Storage (TLS)
    Inheritable “controlling terminals” and I/O redirection. Pseudo-terminals.
    On-demand paging.
    System logging
    May be built either as an open, flat embedded RTOS or as a separtely built, secure kernel with a system call gate interface.
    Built-in, per-thread CPU load measurements.
    Custom NuttX C library
    Application interface well documented in the NuttX User Guide.

Supported platforms

    ARM
        ARM7TDMI (TI TMS320 C5471, Calypso, MoxART, NXP LPC214x, LPC2378, STMicro STR71x)
        ARM920T (Freescale i.MX1)
        ARM926EJS (TI DM320, NXP LPC31xx)
        ARM Cortex-A5 (Atmel SAMA5D2, SAMA5D3, SAMA5D4)
        ARM Cortex-A8 (Allwinner A10)
        ARM Cortex-A9 (NXP/Freescale i.MX6)
        ARM Cortex-R4/R4F (TI TMS570)
        ARM Cortex-M0 (nuvoTon NUC120, NXP/Freescale KL25Z, KL26Z, Atmel SAMD20/21, SAML21, ST Micro STM32 F0)
        ARM Cortex-M3 (ST Micro STM32 F1/L4/F2, TI/Stellaris LM3S, NXP LPC17xx, Atmel SAM3U/3X, SiliconLabs EFM32)
        ARM Cortex-M4 (with/without floating point unit: ST Micro STM32 F3/F4/L4, TI/Stellaris LM4F/TM4C, NXP LPC43xx/LPC54xx, Freescale Kinetis K20/K28/K40/60/64/66, Atmel SAM4C/4E/4S/4L, Infineon XMC4xxx, Nordic NRF52xxx)
        ARM Cortex-M7 (Atmel SAMV71/SAME70, ST Micro STM32 F7, i.MX RT)
    Atmel AVR
        Atmel 8-bit AVR (AT90USB, ATmega)
        AVR32
    Freescale M68HCS12
    Intel
        80×86
    MIPS
        MicroChip PIC32MX (MIPS32 24Kc)
        MicroChip PIC32MZ (MIPS32 M14k)
    Misoc
        LM32 (Qemu)
    OpenRISC
        mor1kx
    Renesas/Hitachi
        Renesas/Hitachi SuperH
        Renesas M16C/26
    RISC-V
    Xtensa LX6
        Expressif ESP32
    Zilog
        Zilog Z16F ZNeo
        Zilog eZ80 Acclaim!
        Zilog Z8Encore!
        Zilog Z80
    Complete List

File system

    Tiny in-memory, root pseudo-file-system.
    Virtual File System (VFS)
    Mount-able volumes. Bind mountpoint, filesystem, and block device driver.
    Generic system logging (SYSLOG) support.
    FAT12/16/32 filesystem support.
    NFS Client. Client side support for a Network File System (NFS, version 3, UDP).
    NXFFS. The tiny NuttX wear-leveling FLASH file system.
    SMART. FLASH file system from Ken Pettit.
    ROMFS file system support.
    CROMFS file system support (compressed).
    BINFS pseudo-file system support.
    HOSTFS file system support (simulation only).
    Union file system. Supports combining and overlaying file systems
    UserFS. Provides a user application file system.
    procfs/ pseudo-file system.
    Generic driver for SPI-based MMC/SD/SDH cards.
    A Binary Loader with support for the following formats:
        Separately linked ELF modules.
        Separately linked NXFLATmodules. NXFLAT is a binary format that can be XIP from a file system.
    PATH variable support.
    File transfers via TFTP and FTP (get and put), HTML (wget), and Zmodem (sz and rz).
    Intel HEX conversions.

Device Drivers

    VFS supports character and block drivers.
    Asynchronous I/O (AIO).
    Network, USB (host), USB (device), serial, I2C, I2S, NAND, CAN, ADC, DAC, PWM, Quadrature Encoder, generic timer, and watchdog timer driver architectures.
    RAMDISK, pipes, FIFO, /dev/null, /dev/zero, /dev/random, and loop drivers.
    Generic driver for SPI-based or SDIO-based MMC/SD/SDH cards.
    Power Management sub-system.
    ModBus support provided by built-in FreeModBus version 1.5.0.
    Graphics Devices: framebuffer drivers, graphic and segment LCD drivers
    Audio Subsystem: CODECs, audio input and output drivers. Command line and graphic media player applications.
    Crytopgraphic sub-system.
    Input Devices: Touchscreen, USB keyboard, USB mouse, analog/discrete joystock, GPIO-based buttons and keypads.
    Memory Technology Devices
    Analog Devices: Support for Analog-to-Digital conversion (ADC), Digital-to-Analog conversion (DAC), multiplexers, and amplifiers.
    System Logging Devices.

C/C++ Library

    Standard C Library Fully integrated into the OS.
    Includes floating point support via a Standard Math Library.
    Add-on uClibc++ module provides Standard C++ Library supportng iostreams, strings, STL, RTTI, exceptions, etc. (LGPL).
    Contemporary port of the C++11 LLVM libc++ is also available.

Networking

    Multiple network interface support; multiple network link layer support
    IPv4, IPv6, TCP/IP, UDP, ARP, ICMP, ICMPv6, IGMPv2 (client) stacks.
    User space stacks
    Stream, datagram, and raw packet sockets
    Address Families: IPv4/IPv6 (AF_INET,AF_INET6), Raw socket (AF_PACKET), raw IEEE 802.15.4 (AF_IEEE802154), raw Bluetooth (AF_BLUETOOTH), and local, Unix domain socket support (AF_LOCAL).
    Special INET protocol sockets: Raw ICMP and ICMPv6 protocol ping sockets (IPPROTO_ICMP, IPPROTO_ICMP6).
    Custom user sockets.
    IP forwarding
    DNS name resolution / NetDB
    IEEE 802.11 FullMac
    Radio Network Drivers: IEEE 802.15.4 MAC, Generic Packet Radio, Bluetooth LE
    6LoWPAN for radio network drivers (IEEE 802.15.4 MAC and generic packet radios)
    SLIP, TUN/PPP, local loopback devices
    A cJSON port
    Small footprint.
    BSD compatible socket layer.
    Networking utilities (DHCP server and client, SMTP client, TELNET server and client, FTP server and client, TFTP client, HTTP server and client, PPPD, NTP client). Inheritable TELNET server sessions (as “controlling terminal”). VNC server.
    ICMPv6 autonomous auto-configuration
    NFS Client. Client side support for a Network File System (NFS, version 3, UDP).
    A NuttX port of Jeff Poskanzer's THTTPD HTTP server integrated with NXFLAT to provide embedded CGI.
    PHY Link Status Management
    UDP Network Discvory, XML RPC Server.
    XML RPC Server
    Support for network modules (such as the ESP8266).

Flash Support

    MTD-inspired interface for Memory Technology Devices.
    NAND Support.
    FTL. Simple Flash Translation Layer support file systems on FLASH.
    NXFFS. the NuttX wear-leveling FLASH file system.
    Support for SPI-based FLASH devices.

USB Support
USB Host Support

    USB host architecture for USB host controller drivers and device-dependent USB class drivers.
    USB host controller drivers available for the Atmel SAMA5Dx, NXP LPC17xx, LPC31xx, and STmicro STM32.
    Device-dependent USB class drivers available for USB mass storage, CDC/ACM serial, HID keyboard, HID mouse, and Xbox game controller.
    Seam-less support for USB hubs.

USB Device Support

    Gadget-like architecture for USB device controller drivers and device-dependent USB class drivers.
    USB device controller drivers available for the PIC32, Atmel AVR, SAM3, SAM4, and SAMA5Dx, NXP LPC17xx, LPC214x, LPC313x, and LPC43xx, Silicon Laboraties EFM32, STMicro STM32 F1, F2, F3, and F4, and TI DM320, and others.
    Device-dependent USB class drivers available for USB mass storage, CDC/ACM serial, RNDIS networking, and PL2303 serial emulation.
    Dynamically configurable, composite USB devices.
    Built-in USB trace functionality for USB debug.

Graphics Support

    Framebuffer drivers.
    Graphic LCD drivers for both parallel and serial LCD and OLED devices.
    Segment LCD drivers.
    Serial-to-framebuffer conversion support.
    FTDI/Bridgetek FT800 and FT801 GUI drivers.
    mmap-able framebuffer character driver.
    LittlevGL support on framebuffer driver.
    VNC Server.
    NX Graphics Subsystem: A graphics library, windowing system and font support that works with either framebuffer or LCD drivers.
    NuttX Widgets: A graphical user interface written in conservative C++ that integrates with NX Graphics.
    NuttX Window Manager: A tiny window manager based on the NX Graphics Subsystem and NuttX Widgets.

Add-Ons
NuttShell

A small, scalable, bash-like shell for NuttX with rich feature set and small footprint. See the NuttShell User Guide.
Pascal Runtime

The Pascal add-on is available for download from the Bitbucket.org website.
apps/ Package

The apps/ package is not strictly a part or NuttX but is retained in the NuttX GIT repository and is released NuttX as a separate versioned package. The apps/ package contains a collection of NuttX appliations including the NuttShell (NSH), networking utilities, tests and examples, interpreters, and NSH extension commands.

使用特权

评论回复
板凳
iDiy| | 2018-7-11 13:37 | 只看该作者
看过介绍,组件比较全。

使用特权

评论回复
地板
bear1|  楼主 | 2018-7-11 13:47 | 只看该作者
iDiy 发表于 2018-7-11 13:37
看过介绍,组件比较全。

嗯,而且是 BSD 许可证,比RTT的GPL2+还要宽松。

使用特权

评论回复
5
bear1|  楼主 | 2018-7-11 18:13 | 只看该作者

使用特权

评论回复
6
lj_adminit| | 2018-7-12 15:28 | 只看该作者

使用特权

评论回复
7
generalissimo| | 2018-7-13 09:05 | 只看该作者
组件比较全,开发还行, 我在stm32上移植过

使用特权

评论回复
8
generalissimo| | 2018-7-13 09:07 | 只看该作者
其代码的构建方式,被众多其它系统所借鉴, 比如huawei_LiteOS,TizenRT

使用特权

评论回复
评论
bear1 2018-7-13 10:01 回复TA
哦,厉害啊,行家。 
9
bear1|  楼主 | 2018-7-13 10:01 | 只看该作者
generalissimo 发表于 2018-7-13 09:07
其代码的构建方式,被众多其它系统所借鉴, 比如huawei_LiteOS,TizenRT

不错不错。

使用特权

评论回复
10
paranoea2018| | 2018-7-16 14:03 | 只看该作者
bear1 发表于 2018-7-11 13:47
嗯,而且是 BSD 许可证,比RTT的GPL2+还要宽松。

RT-Thread以后也会变成BSD的,哈,多关注,国产的会越来越好!

使用特权

评论回复
11
yjmeishao| | 2018-7-19 20:34 | 只看该作者
Nuttx提供了POSIX API,很方便的将Linux平台部分代码直接移植过来。
是一个很强大好用的OS.
建议你可以参考以下博客:
https://blog.csdn.net/oldman147/article/details/78289291
也可以搜索下Alan Carvalho写的博客,提供非常详细的NuttX使用教程

使用特权

评论回复
12
bear1|  楼主 | 2019-8-27 18:08 | 只看该作者
yjmeishao 发表于 2018-7-19 20:34
Nuttx提供了POSIX API,很方便的将Linux平台部分代码直接移植过来。
是一个很强大好用的OS.
建议你可以参考 ...

Alan Carvalho写的博客,没搜到,请给个链接,谢谢!

使用特权

评论回复
13
yjmeishao| | 2019-8-28 22:18 | 只看该作者
bear1 发表于 2019-8-27 18:08
Alan Carvalho写的博客,没搜到,请给个链接,谢谢!

https://acassis.wordpress.com/

使用特权

评论回复
14
查询无结果| | 2019-9-20 10:14 | 只看该作者
generalissimo 发表于 2018-7-13 09:05
组件比较全,开发还行, 我在stm32上移植过

大佬,可以分享一个stm32移植工程吗,非常感谢

使用特权

评论回复
15
generalissimo| | 2020-9-1 00:50 | 只看该作者
查询无结果 发表于 2019-9-20 10:14
大佬,可以分享一个stm32移植工程吗,非常感谢

抱歉啊, 工作变动好久没来论坛了, 我当时的移植工程不记得在哪个linux服务器上了,不太好找,有好几台代码服务器,目前有空在做整理,不知你有没有搞定啊, 如没有 我再做一个分享给你。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

151

主题

964

帖子

1

粉丝