In this manual will see how to install and configure all the tools needed to build NuttX for ARM under Linux. The toolchain is the one comming with the Ubuntu itself (at least with the new versions of Ubuntu). The version of LInux I'm using is Ubuntu 14.04.
1. Install the Ubuntu 14.04 and update all the packages.
2. Install the ARM toolchain
sudo apt-get install gcc-arm-none-eabi
3. Install kconfig-frontends package
This package is used by the NuttX to configure the build. You can select the board, build environment, what is enabled as peripherals from the SoC and from the board.
Get the latest kconfig-frontends from
"your local path"/nx/misc/
then extract the archive and rename the folder to
Now we need to install the dependencies
# Install kconfig-frontends dependencies (the upcoming configure may catch more dependencies) sudo apt-get install gperf libncurses5-dev flex bison cd "your local path"/nx/misc/kconfig-frontends/ ./configure make sudo make install
4. Go to the NuttX download page
and get the latest version. At this moment it is 7.3. So download the OS itself
and the apps
5. Unpack both archives in "nx" so the structure is like this (need to rename the nuttx-7.3 and apps-7.3)
|- nx | |-- nuttx | |-- apps
6. Now we need to configure the NuttX for SAM4E-EK
cd "your local path"/nx/nuttx/tools ./configure.sh sam4e-ek/nsh
7. Configure the toolchain
cd "your local path"/nx/nuttx # Be sure you have: # Build Setup # `--> Build Host Platform (Linux) # System Type # `--> Toolchain Selection (Generic GNU EABI toolchain under Linux (or other POSIX environment)) make menuconfig # Set the environment . ./setenv.sh