windows에 t1과 t2를 설치, cygwin을 이용한 개발 환경을 구축하기 위해서는
1. Java SDK 설치
java 1.5 jdk -> http://java.sun.com/
2. cygwin 설치
http://www.cygwin.com/ or
http://www.tinyos.net/dist-1.2.0/tools/windows/cygwin-1.2a.tgz
setup - Install from Local Directory - Root Directory 설정 - Select Package All install로 모두 설정 - install
3. cygwin-x 설치
http://www.cygwin.com/setup.exe
setup - install from internet - directory 설정 - 다운로드 받을 임시 디렉토리 설정 - Use IE5 Settings - FTP site 설정 - X11 항목 install - install
설치 완료 후 startxwin.sh 를 실행하여 설치 확인
4. TI MSP430 Tools 설치
http://www.tinyos.net/dist-1.2.0/tools/windows/
설치 명령 : rpm -ivh --ignoreos --nodeps --force
-base-0.1
-python-tools-1.0-1
-binutils-2.16
-gcc-3.2.3
-libc
5. TinyOS Toolchain (nesC, tinyos-tools) 설치
http://www.tinyos.net/dist-1.2.0/tinyos/windows/
-nesc-1.2.8a-1
-tinyos-tools-1.2.3-1
6. Graphviz 설치
http://www.graphviz.org/
7. tinyos 1.x & 2.x & 2.x-contrib source tree 다운로드
$ cd /opt
$ cvs -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos login
$ cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co -P tinyos-1.x tinyos-2.x tinyos-2.x-contrib
8. 환경설정
$ vim ~/.bashrc
export TOSROOT=/opt/tinyos-2.x
export TOSDIR = $TOSROOT/tos
export CLASSPATH = `cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
export CLASSPATH = "$CLASSPATH;."
export MAKERULES = $TOSROOT/support/make/Makerules
export PATH = /opt/msp430/bin:$PATH
$ source ~/.bashrc
9. java tool 컴파일
$ tos-install-jni
10. 설치 후 검증
$ cd /opt/tinyos-1.x/tools/script
$ ./toscheck
댓글 없음:
댓글 쓰기