Linux下ARM开发环境搭建

本人的系统环境:Linux ubuntu 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:25:33 UTC 2013 i686 i686 i686 GNU/Linux


1、安装skyeye

     sudo apt-get install skyeye
s kyeye -h可以看到skyeye的版本号为1.2.5

也可以到http://sourceforge.jp/projects/sfnet_skyeye/releases/下载skyeye源码,由于本人系统问题源码安装过程中遇到了一些问题,最新版本的skyeye没有安装成功。

安装skyeye-1.3.2_rc1.tar.gz

./configure

make lib

make

sudo make install_lib

sudo make

将/opt/skyeye/bin加入路径

2、安装arm-elf-*工具

下载工具http://www.uclinux.org/pub/uClinux/arm-elf-tools/,工具包是用makeself打包好的,可以直接运行安装。

	#sudo sh ./arm-elf-tools-20030314.sh

出现以下错误

tail: cannot open ‘+43’ for reading: No such file or directory

gzip: stdin: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

修改方法:

用VIM打开该文件,将第39行的代码:
    tail +${SKIP} ${SCRIPT} | gunzip | tar xvf -
改成如下:
    tail -n +${SKIP} ${SCRIPT} | gunzip | tar xvf -
文件末尾加空行

查看安装是否成功:#arm-elf-gcc -v

3、安装arm-linux-*工具

下载工具http://arm9.net/download.asp,软件包是已经编译好的,只需解压后加入路径即可使用。

解压缩包# tar zxvf arm-linux-gcc-4.4.3-20100728.tar.gz
/usr/local# sudo mkdir arm-linux
/usr/local/arm-linux# cp -avr ~/opt/FriendlyARM/toolschain/4.4.3 ./
#sudo vim /etc/profile
export PATH=$PATH:/usr/local/arm-linux/4.4.3/bin
#source /etc/profile


以上是实验所需要的工具,arm-elf-*是用来编译uclinux,arm-linux-*是用来编译arm Linux用的


测试skyeye:

/opt/skyeye/testsuite/arm_hello$ skyeye -e arm_hello 
SkyEye 1.3.2
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright. 
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list. 

 (skyeye)start

启动uart_instance,即串口串口

(skyeye)run

运行程序

(skyeye)stop停止运行


  • 0
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

callinglove

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值