nuttx sim build

download nuttx:

apache/nuttx: Apache NuttX is a mature, real-time embedded operating system (RTOS) (github.com)

download genromfs

https://github.com/chexum/genromfs

make产生genromfs,复制到/usr/bin

编译nuttx:

cd nuttx

cmake -B build -DBOARD_CONFIG=sim:nsh -GNinja
cmake --build build 

运行:

./build/nuttx
login: admin
password: Administrator
User Logged-in!
nsh>

第一次编译可能有错误,根据提示安装缺少的工具即可

你可能感兴趣的:(nuttx)