x86계열의 리눅스에서 gcc 를 이용하여 컴파일하면 x86에서 실행 가능한 바이너리가 생성된다, 그러나 X-Hyper255에서 사용 할려면 다른 Compiler가 필요하다. Cross compiler를 이용하여 Host PC에서 바이너리를 생성 후 serial, ethernet을 이용 X-Hyper255로 다운로드 한다.
Toolchain 설치
CD의 파일을 그대로 복사하여 사용하겠다. 파일 복사후 쓰기가능한 모드로 바꿔 줘야 한다. 그렇지 않으면 파일 수정이 안된다.
#mkdir /home/embed/xhyper
#cp -a /mnt/cdrom/* /home/embed/xhyper/
#chmod -Rf 755 /home/embed/xhyper/*
#cd /home/embed/xhyper/Toolchain
#tar -xzvf hybus-arm-linux-R1.1.tar.gz
#vi /home/embed/.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/home/embed/xhyper/Toolchain/hybus-arm-linux-R1.1/bin/
export PATH
unset USERNAME
.bash_profile 에 빨간색 부분을 추가 해서 source 명령어를 실행하면 어디서든지 Toolchain을 사용 할 수 있다.
'X-Hyper255A' 카테고리의 다른 글
개발 환경 구축에 대한 문제점 (0) | 2006.08.10 |
---|---|
Bootp 설정 (0) | 2006.08.09 |
JTAG Compile (0) | 2006.08.09 |
Toolchain Test (0) | 2006.08.09 |
임베디드 리눅스 교육과정 (0) | 2006.08.05 |