'TIP51C'에 해당되는 글 2건
- 2008.11.10 TinyOS 2.x 설치 (msp430 기준) 2
- 2008.10.31 Installng TinyOS 2.1
기본 문서는 다음을 참조한다.
LINK : TinyOS_2.1#Manual_installation_on_your_host_OS_with_RPMs">http://docs.tinyos.net/index.php/Installing_TinyOS_2.1#Manual_installation_on_your_host_OS_with_RPMs
Step 1: Install Java 1.6 JDK
Download and install Sun's 1.6 JDK from http://java.sun.com.
Step 2: Install Cygwin
Download cygwin-files.zip 및 설치
Step 3: Install native compilers
Atmel AVR Tools
Tool | Windows/Cygwin | Linux |
avr-binutils† | rpm" href="http://www.tinyos.net/dist-2.1.0/tools/windows/avr-binutils-2.17tinyos-3.cygwin.i386.rpm" rel="nofollow">avr-binutils-2.17tinyos-3.cygwin.i386.rpm | avr-binutils-2.17tinyos-3.i386.rpm |
avr-gcc | avr-gcc-4.1.2-1.cygwin.i386.rpm | avr-gcc-4.1.2-1.i386.rpm |
avr-libc | avr-libc-1.4.7-1.cygwin.i386.rpm | avr-libc-1.4.7-1.i386.rpm |
avarice | avarice-2.4-1.cygwin.i386.rpm | avarice-2.4-1.i386.rpm |
insight (avr-gdb) | avr-insight-6.3-1.cygwin.i386.rpm | avr-insight-6.3-1.i386.rpm |
avrdude | avrdude-tinyos-5.6cvs-1.cygwin.i386.rpm | avrdude-tinyos-5.6cvs-1.i386.rpm |
†If you receive an rpm error that indicates that you have a newer version already installed, try rpm -Uvh --force
rpm 옵션은 -ivh --ignoreso 로 자잘한 에러는 pass
TI MSP430">MSP430 Tools
rpm 옵션은 -ivh --ignoreso 로 자잘한 에러는 pass
Step 4: Install TinyOS toolchain
TinyOS-specific Tools
Tool | Windows/Cygwin | Linux | Command |
NesC | nesc-1.3.0a-1.cygwin.i386.rpm | nesc-1.3.0-1.fc9.i386.rpm | rpm -Uvh rpm -Uvh --ignoreos (if Cygwin complains) |
Tool | Windows/Cygwin | Linux | Command |
Deputy | tinyos-deputy-1.1-1.cygwin.i386.rpm | tinyos-deputy-1.1-1.fc9.i386.rpm | rpm -i rpm -i --ignoreos (if Cygwin complains) |
Tool | Windows/Cygwin | Linux | Command |
tinyos-tools | tinyos-tools-1.3.0-1.cygwin.i386.rpm | tinyos-tools-1.3.0-1.i386.rpm | rpm -ivh --force (1.x tree)rpm -Uvh (no 1.x tree) |
뒤에 Command 를 참조하여 패키지 설치
Step 5: Install the TinyOS 2.x">2.x source tree
TinyOS 2.x
Windows/Cygwin | Linux | |
TinyOS | tinyos-2.1.0-1.cygwin.noarch.rpm | tinyos-2.1.0-1.fc9.noarch.rpm |
rpm -ivh --ignoreos rpmname 으로 설치
Configure your environment
TinyOS 2.x
Environment Variable | Windows | Linux | |
TOSROOT | /opt/tinyos-2.x | same as in Cygwin | |
TOSDIR | $TOSROOT/tos | same as in Cygwin | |
CLASSPATH | C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;. | $TOSROOT/support/sdk/java/tinyos.jar:. | |
MAKERULES | $TOSROOT/support/make/Makerules | same as in Cygwin | |
PATH† | /opt/msp430/bin:/opt/jflashmm:$PATH | same as in Cygwin |
다음 테이블 내용은 계정에 쉘 스크립트에 넣는다.
export TOSROOT="/opt/tinyos-2.x"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH="G:\CYGWIN\opt\tinyos-2.x\support\sdk\java\tinyos.jar;."
export MAKERULES="$TOSROOT/support/make/Makerules"
export PATH="opt/msp430/bin:/opt/jflashmm:$PATH"
Step 6: Installing Graphviz
download page 에서 받아서 설치
다음은 잘 깔렸는지 확인차 컴파일을 해보자`~
cd /opt/tinnyos-2.x /apps/Blink
make telos install
완료~!!
2.1 버젼은 윈도우즈 인스톨러 패키지 버전이 없는 관계로 cygwin 상에서 rpm 패키지 인스톨을 진행하여야 한다. 사실 좀 귀찮다...
기존 1.x 설치가 되었다면 다음 단계만 진행..
Step 5: Install the TinyOS 2.x source tree
Now that the tools are installed, you need only install the tinyos 2.x source tree and then set your environment variables. Install the appropriate version of the following (Window or Linux) with the rpm command 'rpm -ivh rpm'. As with the previous rpms, if you get an error claiming that the rpm was build for an NT computer and you're on a windows NT computer, bypass the erroneous error by using 'rpm -ivh --ignoreos rpmname'.
- Install tinyos-2.x
TinyOS 2.x
Windows/Cygwin Linux TinyOS tinyos-2.1.0-1.cygwin.noarch.rpm tinyos-2.1.0-1.fc9.noarch.rpm - Configure your environment
Ideally, you'll put these environment variables in a shell script that will run when your shell starts, but you needn't put such a script under /etc/profile.d.
The example settings below assume that the tinyos-2.x installation is in /opt/tinyos-2.x. Change the settings to be correct for where you've put your tinyos-2.x tree. Note that the windows CLASSPATH must be a windows-style path, not a cygwin path. You can generate a windows style path from a cygwin-style path using 'cygpath -w'. For example:
export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar` export CLASSPATH="$CLASSPATH;."
TinyOS 2.x
Environment Variable Windows Linux TOSROOT /opt/tinyos-2.x same as in Cygwin TOSDIR $TOSROOT/tos same as in Cygwin CLASSPATH C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;. $TOSROOT/support/sdk/java/tinyos.jar:. MAKERULES $TOSROOT/support/make/Makerules same as in Cygwin PATH† /opt/msp430/bin:/opt/jflashmm:$PATH same as in Cygwin †Only necessary if you're using MSP430 or iMote2 platform/tools.
In addition to the above environment variables, do the following on Linux machines:
- Change the ownership on your /opt/tinyos-2.x files:
chown -R <your uid> /opt/tinyos-2.x
- Change the permissions on any serial (/dev/ttyS<N>), usb (/dev/tts/usb<N>, /dev/ttyUSB<N>), or parallel (/dev/parport) devices you are going to use:
chmod 666 /dev/<devicename>
- Change the ownership on your /opt/tinyos-2.x files: