Hi all, me and my colleges made an HowTo to install TinyOs in Fedora Core 6. This tutorial was installed in several computers and all are working fine.
Attention, this tutorial is only to install and not to do update from a previous installation. You must have the rpm's and the java ibm. Open console: su yum install libstdc++.so.5 yum install libXp.so.6 rpm -ivh ibm-java2-i386-sdk-5.0-2.0.i386.rpm rpm -ivh ibm-java2-i386-javacomm-5.0-2.0.i386.rpm Now you must set the Classpath and Path and other settings, so edit ~/.bashrc and insert: export PATH="/usr/bin:.:/sbin:/usr/sbin:$PATH" # Java environment variables #echo "Setting up Java 1.50" export JAVA_HOME=/opt/ibm/java2-i386-50 export JDKROOT=$JAVA_HOME export PATH="$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH" export CLASSPATH=.:$JAVA_HOME Now to test if java is installed correctly, do source ~/.bashrc java javac javah if you have this error: Error loading: /opt/ibm/java2-i386-50/jre/bin/libj9thr23.so: cannot restore segment prot after reloc: Permission denied Do this, else ignore: * menu->Administration->Security Level and Firewall * Enter root password * Choose SELinux tap * expand Memory Protection entry *check the box of the first entry "Allow all unconfirmed executables to use libraries requiring text relocation that are not labled ....." Test again now if the commands java, javac and javah is working fine. Now that java is well installed you will install rpm's: NOTE THAT THIS IS INSTALLING, NOT UPDATING rpm -ivh avr-binutils-2.15tinyos-3.i386.rpm rpm -ivh avr-gcc-3.4.3-1.i386.rpm rpm -ivh avr-libc-1.2.3-1.i386.rpm rpm -ivh avarice-2.4-1.i386.rpm rpm -ivh avr-insight-6.3-1.i386.rpm rpm -ivh msp430tools-base-0.1-20050607.i386.rpm rpm -ivh msp430tools-python-tools-1.0-1.noarch.rpm rpm -ivh msp430tools-binutils-2.16-20050607.i386.rpm rpm -ivh msp430tools-gcc-3.2.3-20050607.i386.rpm rpm -ivh msp430tools-libc-20050308cvs-20050608.i386.rpm rpm -ivh msp430tools-jtag-lib-20031101cvs-20050610.i386.rpm rpm -ivh msp430tools-gdb-6.0-20050609.i386.rpm rpm -Uvh nesc-1.2.8a-1.i386.rpm rpm -ivh tinyos-tools-1.2.3-1.i386.rpm tos-install-jni rpm -ivh tinyos-2.0.0-3.noarch.rpm Edit again ~/.bashrc and insert # MSPGCC export MSPGCCROOT=/opt/msp430 export PATH="$MSPGCCROOT/bin:$PATH" #echo "Setting up for TinyOS 2.x" export TOSROOT=/opt/tinyos-2.x export TOSDIR=$TOSROOT/tos export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:. export MAKERULES=$TOSROOT/support/make/Makerules export PATH="opt/msp430/bin:$PATH" And after exit run the script source ~/.bashrc The gcc that fc6 have is newer, so you must install the older gcc34, so you must do: yum install compat-gcc-34 compat-gcc-34-g77 compat-gcc-34-c++ compat-libstdc++-33 compat-db compat-readline43 after you can create an alias or you can simple force cp /usr/bin/gcc34 /usr/bin/gcc cp /usr/bin/g++34 /usr/bin/g++ If you try to compile you can't, because python is 2.3, and must be 2.4 because fc6 have python 2.4 open /tinyos-2.x/support/make/sim.extra and change this line PYTHON_VERSION=2.3 to PYTHON_VERSION=2.4 Then yum install python-devel To do the updates of cvs you must install yum install cvs and then you only have to do cd /opt cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos login cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P tinyos-2.x/ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos login cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P tinyos-2.x-contrib/ If you don't understand something please read : https://twiki.cern.ch/twiki/bin/view/LHCb/LHCbSLCOnFC I hope this become useful to some people with more difficulties in linux. Tanks to Miguel Pereira and Ricardo Tiago for testing with me this tutorial before I send it. Miguel Torres Silva
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
