Build TinyOS on Fedora10 and build tinyos on fedora10

Source: Internet
Author: User

Build TinyOS on Fedora10 and build tinyos on fedora10

Recently I have been studying wireless sensor networks, So I installed a Fedora10 Virtual Machine in VirtualBox and built a software environment for the TinyOS operating system in this Fedora10. The following is my setup process and I hope to help you.

1. Install JDK

(1) Installation

# Wget http://down1.chinaunix.net/distfiles/jdk-6u10-dlj-linux-i586.bin

#./Jdk-6u10-dlj-linux-i586.bin

(2) Configure Environment Variables

# Vi/etc/profile

Add the following content:

# Java

Export PATH = $ PATH:/home/source_code/jdk1.6.0 _ 10/bin

Export CLASSPATH =/home/source_code/jdk1.6.0 _ 10/lib/dt. jar:/home/source_code/jdk1.6.0 _ 10/lib/tools. jar

Export JAVA_HOME =/home/source_code/jdk1.6.0 _ 10

(3) effective environment variables

# Source/etc/profile

 

2. Install the Compiler

# Wget http://www.tinyos.net/dist-2.1.0/tools/linux/avr-binutils-2.17tinyos-3.i386.rpm

# Rpm-ivh avr-binutils-2.17tinyos-3.i386.rpm

# Wget http://www.tinyos.net/dist-2.1.0/tools/linux/avr-gcc-4.1.2-1.i386.rpm

# Rpm-ivh avr-gcc-4.1.2-1.i386.rpm

# Wget http://www.tinyos.net/dist-2.1.0/tools/linux/avr-libc-1.4.7-1.i386.rpm

# Rpm-ivh avr-libc-1.4.7-1.i386.rpm

# Yum install avarice-2.6-3

# Wget http://www.tinyos.net/dist-1.2.0/tools/linux/avr-insight-6.3-1.i386.rpm

# Rpm-ivh avr-insight-6.3-1.i386.rpm

# Wget http://www.tinyos.net/dist-2.1.0/tools/linux/avrdude-tinyos-5.6cvs-1.i386.rpm

# Rpm-ivh avrdude-tinyos-5.6cvs-1.i386.rpm

# Wget http://www.tinyos.net/dist-1.2.0/tools/linux/msp430tools-base-0.1-20050607.i386.rpm

# Rpm-ivh msp430tools-base-0.1-20050607.i386.rpm

# Wget http://www.tinyos.net/dist-1.2.0/tools/linux/msp430tools-python-tools-1.0-1.noarch.rpm

# Rpm-ivh msp430tools-python-tools-1.0-1.noarch.rpm

# Wget http://www.tinyos.net/dist-1.2.0/tools/linux/msp430tools-binutils-2.16-20050607.i386.rpm

# Rpm-ivh msp430tools-binutils-2.16-20050607.i386.rpm

# Wget http://www.tinyos.net/dist-1.2.0/tools/linux/msp430tools-gcc-3.2.3-20050607.i386.rpm

# Rpm-ivh msp430tools-gcc-3.2.3-20050607.i386.rpm

# Wget http://www.tinyos.net/dist-1.2.0/tools/linux/msp430tools-libc-20050308cvs-20050608.i386.rpm

# Rpm-ivh msp430tools-libc-20050308cvs-20050608.i386.rpm

# Wget http://www.tinyos.net/dist-1.2.0/tools/linux/msp430tools-jtag-lib-20031101cvs-20050610.i386.rpm

# Rpm-ivh msp430tools-jtag-lib-20031101cvs-20050610.i386.rpm

# Wget http://www.tinyos.net/dist-1.2.0/tools/linux/msp430tools-gdb-6.0-20050609.i386.rpm

# Rpm-ivh msp430tools-gdb-6.0-20050609.i386.rpm

 

3. Install TinyOS tool chain

# Wget http://tinyos.stanford.edu/tinyos-rpms/nesc-1.3.1-1.fc9.i386.rpm

# Rpm-ivh nesc-1.3.1-1.fc9.i386.rpm1

# Wget http://www.tinyos.net/dist-2.1.0/tinyos/linux/tinyos-deputy-1.1-1.fc9.i386.rpm

# Rpm-ivh tinyos-deputy-1.1-1.fc9.i386.rpm

# Wget http://tinyos.stanford.edu/tinyos-rpms/tinyos-tools-1.4.0-3.ubuntu.i386.rpm

# Rpm-ivh tinyos-tools-1.4.0-3.ubuntu.i386.rpm

 

4. Install TinyOS 2.x Resource Tree

# Wget http://tinyos.stanford.edu/tinyos-rpms/tinyos-2.1.1-3.ubuntu.noarch.rpm

# Rpm-ivh tinyos-2.1.1-3.ubuntu.noarch.rpm

# Yum install libpng10

# Yum install graphviz

 

5. Configure Environment Variables

# Vi/etc/profile

Add the following content:

# TinyOS

Export TOSROOT =/opt/tinyos-2.x

Export TOSDIR = $ TOSROOT/tos

Export CLASSPATH = $ CLASSPATH: $ TOSROOT/support/sdk/java/tinyos. jar :.

Export MAKERULES = $ TOSROOT/support/make/Makerules

Effective environment variables:

# Source/etc/profile

 

6. Test

# Cd $ TOSROOT/apps/Blink

# Make sim micaz

Mkdir-p simbuild/micaz

Placing object files in simbuild/micaz

Writing XML schema to app. xml

Compiling BlinkAppC to object file sim. o

....

 

* ** Successfully built micaz TOSSIM library.

 

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.