设为首页 加入收藏

TOP

Ubuntu 10.04下imote2交叉编译链的建立
2014-11-24 11:20:27 来源: 作者: 【 】 浏览:0
Tags:Ubuntu 10.04 imote2 交叉 编译 建立

TinyOS 版本:TinyOS 2.1.1


有两种选择


一种是专门针对pxa271的xscale-elf-gcc,一种是针对arm的arm-elf-gcc
注:pxz271是arm体系架构的


一、xscale-elf-gcc安装
1. 下载交叉编译链xscale-elf-binutils, xscale-elf-gcc, xscale-elf-newlibc到您的目录
2. 安装
# cd
# dpkg --install --force- xscale-elf-*.deb
注:不加--force参数,安装不上,与avr-gcc冲突。
3. 测试
# cd $TOSROOT/apps/
# make intelmote2


二、arm-elf-gcc安装配置
1. 下载arm-compiler-elf工具链到您的目录
2. 安装
# cd
# dpkg --install arm-compiler-elf_4.1.1-1.deb
3. 配置
编辑/opt/tinyos-2.1.1/tos/platforms/intelmote2/.platform,相应部分替换为
@opts = qw(
-gcc=arm-elf-gcc
-nostartfiles
-fnesc-target=env
-fnesc-no-debug
);
编辑/opt/tinyos-2.1.1/support/make/pxa27x.rules,相应部分替换为
GAS = arm-elf-gcc -combine -c # This ensures .c and .s compiled object are compatible
OBJCOPY = arm-elf-objcopy
OBJDUMP = arm-elf-objdump
PFLAGS += -mcpu=xscale -mtune=xscale -mfpu=fpa
4. 测试
# cd $TOSROOT/apps/
# make intelmote2


上述内容有不清楚、不正确的地方,欢迎指出指正。


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇使用 Python 进行 socket 编程 下一篇Linux C 线程同步实例分析

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·怎样用 Python 写一 (2025-12-27 02:49:19)
·如何学习python数据 (2025-12-27 02:49:16)
·想要自学数据分析, (2025-12-27 02:49:14)
·Java 集合框架 - 菜 (2025-12-27 02:19:36)
·Java集合框架最全详 (2025-12-27 02:19:33)