Nuttx学习之——Linux开发环境搭建
来源:互联网 发布:美丽说聊天软件 编辑:程序博客网 时间:2024/06/06 12:40
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
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
http://ymorin.is-a-geek.org/download/kconfig-frontends/to
"your local path"
/nx/misc/
then extract the archive and rename the folder to
"kconfig-frontends"
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
http://sourceforge.net/projects/nuttx/files/nuttx/
and get the latest version. At this moment it is 7.3. So download the OS itself
http://downloads.sourceforge.net/project/nuttx/nuttx/nuttx-7.3/nuttx-7.3.tar.gz
and the apps
http://softlayer-dal.dl.sourceforge.net/project/nuttx/nuttx/nuttx-7.3/apps-7.3.tar.gz
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
8. Build
make
Note:
如果出现make: Nothing to be done for all:的问题,是因为系统的不同,导致运行库版本不同,则需要重新编译源文件。方法如下:
>make clean(清除上次make命令所产生的object文件(后缀为“.o”的文件)及可执行文件。)
>ldconfig (该命令通常在系统启动时运行,确保动态链接库为系统所共享。当用户安装了一个新的动态链接库时,则需手工运行该命令。)
>make(执行makefile文件)
这样就能够重新编译啦。
- Nuttx学习之——Linux开发环境搭建
- 1.Linux环境下的Nuttx开发环境搭建
- 一、nuttx开发环境搭建
- ubuntu14.04 nuttx开发环境的搭建
- ESP8266学习之搭建Linux开发环境
- ATSAMV7Xult板卡调试Nuttx系统----开发环境的搭建
- linux 开发环境搭建学习
- Windows Phone开发学习之二——环境搭建
- QT学习之路(二)————Linux下搭建qt程序编译环境、开发板上搭建qt程序运行环境
- Linux下C语言学习之路——(1)系统开发环境搭建以及一些常用指令
- android学习笔记——linux环境下android开发环境的搭建
- 学习android开发——环境搭建
- python学习——搭建开发环境
- Android学习——开发环境搭建
- Android 开发环境的搭建之Linux
- linux驱动开发之(一)---环境搭建
- vivado+zedboard之Linux开发环境搭建
- linux开发入门之环境的搭建
- 1071-specified-key-was-too-long-max-key-length-is-767-bytes
- 使用linux的MTD tests support测试flash性能
- reJava基础篇之四--被观察者
- Java中的阻塞队列
- SharedPreferences的工具类
- Nuttx学习之——Linux开发环境搭建
- Android两个android两个activity之间相互传递数据之装备选择(书上案例)
- HDOJ.1075 What Are You Talking About(map)
- mysql:游标嵌套使用
- C#, VS2010, Tablelayout的Dock = Fill属性无效,被statusStrip或toolStrip遮住
- java多线程之线程并发库同步集合类的应用
- 微服务框架的存储架构
- JNDI简析
- C#导入导出与处理Excel文件