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.