Linux下ARM开发环境搭建

Linux下ARM开发环境搭建本人的系统环境:Linuxubuntu3.8.0-35-generic#50-UbuntuSMPTueDec301:25:33UTC2013i686i686i686GNU/Linux1、安装skyeyesudoapt-getinstallskyeyeskyeye-h可以看到skyeye的版本号为1.2.5也可以到http

大家好,又见面了,我是你们的朋友全栈君。

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/140920.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 两种方式创建SqlSessionFactory[通俗易懂]

    两种方式创建SqlSessionFactory[通俗易懂]前提:已经完成了MyBatis环境的搭建!!!一、使用配置文件创建SqlSessionFactory开始Code了:packagecom.littlestar.util;importorg.apache.ibatis.io.Resources;importorg.apache.ibatis.session.SqlSessionFactory;importorg.apache…

    2022年6月6日
    84
  • Socat虚拟pty

    命令:socatptypty问题:从pty1到pty2的数据,也会被pty1所接收。

    2022年4月6日
    35
  • Centos6.5 Qt4开发 Cannot find -lGL QApplication not file or dir

    Centos6.5 Qt4开发 Cannot find -lGL QApplication not file or dir

    2021年9月4日
    61
  • AAA认证

    AAA认证AAA:认证、授权、计费的作用1、认证模式为AAA[Huawei]user-interfacevty04[Huawei-ui-vty0-4]authentication-mode?aaaAAAauthenticationpasswordAuthenticationthroughthepasswordofauserterminalinterface[Huawei-ui-vty0-4]authentication-modeaaa–将t.

    2022年6月7日
    93
  • 对三点估算法的理解

    对三点估算法的理解三点估算也称PERT法,在计算每项活动的工期时都要考虑三种可能性,计算最悲观的工期、最可能的工期、最乐观的工期,然后再计算出该活动的期望工期,PERT法计算的是期望工期.用PERT法计算工期,我们必须记住下面三个公式(P代表最悲观工期;M代表最可能工期;O代表最乐观工期)PERT公式标准差公式:(a+4m+b)/6方差公式:(b-a)/6用PERT公

    2025年7月22日
    3
  • android fragment不执行onResume,onPause「建议收藏」

    android fragment不执行onResume,onPause「建议收藏」在使用ViewPager+fragment框架时,fragment不执行onResume,onPause,解决办法如下。重载setUserVisibleHint方法@OverridepublicvoidsetUserVisibleHint(booleanisVisibleToUser){super.setUserVisibleHint(isVisibleToUse

    2022年5月5日
    164

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号