本人的系统环境: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 skyeyes 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_helloSkyEye 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停止运行