The establishment of imote2 cross-compilation chain under Ubuntu10.04

Source: Internet
Author: User
Operating System: Ubuntu10.04TinyOS version: TinyOS2.1.1 there are two options: xscale-elf-gcc for pxa271, and arm-elf-gcc for arm. Note: pxz271 is part 1 of the arm architecture. xscale-elf-gcc installation 1. download xscale-elf-binutils, xscale-elf-gcc, xscale-elf-newli

Operating System: Ubuntu 10.04

TinyOS version: TinyOS 2.1.1

There are two options

One is xscale-elf-gcc for pxa271, and the other is arm-elf-gcc for arm.
Note: pxz271 is based on the arm architecture.

1. Install xscale-elf-gcc
1. Download the cross-compilation chain xscale-elf-binutils, xscale-elf-gcc, xscale-elf-newlibc to your directory
2. Installation
# Cd
# Dpkg -- install -- force-xscale-elf-*. deb
Note: The -- force parameter is not added and cannot be installed. It is in conflict with avr-gcc.
3. Test
# Cd $ TOSROOT/apps/
# Make intelmote2

Ii. install and configure arm-elf-gcc
1. Download the arm-compiler-elf tool chain to your directory.
2. Installation
# Cd
# Dpkg -- install arm-compiler-elf_4.1.1-1.deb
3. Configuration
Edit/opt/tinyos-2.1.1/tos/platforms/intelmote2/. platform with the appropriate part replaced
@ Opts = qw (
-Gcc = arm-elf-gcc
-Nostartfiles
-Fnesc-target = env
-Fnesc-no-debug
);
Edit/opt/tinyos-2.1.1/support/make/pxa27x. rules and replace the appropriate part
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. Test
# Cd $ TOSROOT/apps/
# Make intelmote2

If the above content is unclear or incorrect, please correct it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.