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.

kconfig-frontends main view

Get the latest kconfig-frontends  from

http://ymorin.is-a-geek.org/download/kconfig-frontends/to

1
"your local path"/nx/misc/

 then extract the archive and rename the folder to

1
"kconfig-frontends"

 Now we need to install the dependencies

1
2
3
4
5
6
# 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)

1
2
3
|- nx
|   |-- nuttx
|   |-- apps

 

6. Now we need to configure the NuttX for SAM4E-EK

1
2
cd "your local path"/nx/nuttx/tools
./configure.sh sam4e-ek/nsh

 

7. Configure the toolchain

1
2
3
4
5
6
7
8
9
10
11
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

1
make

Note:

如果出现make: Nothing to be done for all:的问题,是因为系统的不同,导致运行库版本不同,则需要重新编译源文件。方法如下:

>make clean(清除上次make命令所产生的object文件(后缀为“.o”的文件)及可执行文件。)

>ldconfig  (该命令通常在系统启动时运行,确保动态链接库为系统所共享。当用户安装了一个新的动态链接库时,则需手工运行该命令。)

>make(执行makefile文件)

这样就能够重新编译啦。

0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 闲鱼退货货收了不退钱怎么办 闲鱼退货卖家收到东西不退钱怎么办 淘宝店铺物流服务给差评怎么办 在合肥东方融资网被骗了怎么办 微信今年绑定频繁明年再试怎么办 手机号码注销了微信密码忘了怎么办 摄像师把婚礼资料弄丢了怎么办 青岛拍的婚纱照修的不好怎么办 鞋店剩的鞋都是小码的怎么办 淘宝想买的衣服下架了怎么办 买家要求到付仲裁发生运费怎么办 淘宝退货退款页面刷新不出来怎么办 淘宝退货退款快递单号写错了怎么办 淘宝上已经退款的店家还发货怎么办 千牛买家下单付款了卖家怎么办 京东货到付款支付宝支付退款怎么办 美萍餐饮管理系统下单错误怎么办 淘宝店上传宝贝显示空间不足怎么办 淘宝店品牌被投诉未授权怎么办 淘宝天猫退货单号填错了怎么办 淘宝退货我把快递单号弄丢了怎么办 唯品会退货快递单号填错了怎么办 天猫换货写错运单号怎么办 训练衣舍的店铺名连接怎么办 兼职模特被骗去微整还贷了款怎么办 卖家已经发货了我要退款怎么办 卖家显示发货单号信息查不到怎么办 淘宝申请退款卖家发货了怎么办 咸鱼卖家不发货好会自动退款怎么办 淘宝卖家涨价后不发货怎么办 淘宝卖家发货选错在线下单怎么办 申请退款后卖家又虚假发货了怎么办 公司用淘宝没发票做账怎么办 淘宝网买了假货确认了怎么办? 吃了安眠药睡了一天还没有醒怎么办 淘宝买的东西退货快递弄丢了怎么办 在淘宝上已付钱店家说没货了怎么办 从淘宝物流寄东西到国外被扣怎么办 不是天猫的淘宝卖家不发货怎么办 微店违规说卖假冒商品怎么办 云集微店的商品没货了怎么办