1) 툴체인(Toolchain) 다운로드
# mkdir /usr/local/toolchain
# cd /usr/local/toolchain
# apt-get install git
# git clone http://github.com/raspberrypi/tools
2) 디렉토리에 접근
# cd /usr/local/toolchain/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
# ls
3) .bashrc 파일에 PATH를 설정
# cd ~
# vi .bashrc
export CROSS_COMPILE=arm-linux-gnueabihf-
export PATH=$PATH: /usr/local/toolchain/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
# source .bashrc
4) 툴체인 테스트
# mkdir /디랙토리 생성
# cd /생성된 디렉토리
# vi hello.c
# arm-linux-gnueabihf-gcc -o hello-arm hello.c
# ./hello-arm