下载源码
sudo mkdir Nuttx
cd Nuttx
Nuttx:git clone https://bitbucket.org/nuttx/nuttx.git
apps:git clone https://bitbucket.org/nuttx/apps.git
tools:git clone https://bitbucket.org/nuttx/tools.git
buildroot:git clone https://bitbucket.org/nuttx/buildroot.git
Manual Configuration. Configuring NuttX requires only copying the board-specific configuration files into the top level directory which appears in the make files as the make variable, ${TOPDIR}. This could be done manually as follows:
Copy boards/<arch-name>/<chip-name>/<board-name>/configs/[<config-dir>/]Make.defs to ${TOPDIR}/Make.defs (see NOTE below),
Copy boards/<arch-name>/<chip-name>/<board-name>/configs/[<config-dir>/]defconfig to ${TOPDIR}/.config
$cd nuttx
$cp boards/sim/sim/sim/configs/nsh2/Make.defs ./
$cp boards/sim/sim/sim/configs/nsh2/defconfig ./.config
$cd ../tools/kconfig-frontends
$./configure --enable-mconf
$ make
$sudo make install
回到nutt 源码根目录:
$cd -
$make menuconfig
此过程中的error:can not find kconfig-parser-4.1.0.so
$sudo vi /etc/ld.so.conf
加入:
include /usr/local/lib
>>wq写入退出
执行:
$sudo ldconfig
$make menuconfig $make -j8
执行模拟器:
$./nuttx
usrname:admin pswd:Adiministrator