'ZigBee'에 해당되는 글 1건
- 2008.10.31 Installng TinyOS 2.1
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: