Chinaunix首页 | 论坛 | 博客
  • 博客访问: 252205
  • 博文数量: 70
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2014-06-09 13:47
文章存档

2023年(1)

2018年(7)

2017年(4)

2016年(1)

2015年(25)

2014年(32)

我的朋友

分类: 嵌入式

2014-09-26 14:14:57

首先,感谢上大牛们的帮助

上一篇教程已经指定了交叉编译工具链,然后编写测试程序hello.c:
#include
int
main( int argc, char *argv[] )
{
    printf("hello the world!!\r\n");
    return( 0 );
}
编译:arm-linux-gnueabihf-gcc -o hello hello.c
拷贝到beagle挂接的网络文件系统cp hello /home/luyun/ti-sdk-am335x-evm-07.00.00.00/targetNFS/
到beglebone下执行:root@beaglebone:/mnt/nfs# ./hello 
-sh: ./hello: No such file or directory
结果不能运行,不知道什么原因,于是重新安装另一个交叉编译工具链:
sudo apt-get install gcc-arm-linux-gnueabi
然后:
 arm-linux-gnueabi-gcc -o hello hello.c 
cp hello /home/luyun/ti-sdk-am335x-evm-07.00.00.00/targetNFS/
再到beglebone下执行:root@beaglebone:/mnt/nfs# ./hello 
hello the world!!
成功输出,这次成功了


阅读(1448) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~