Appendix II. CAN 드라이버 설치하기
1. PEAK System CAN-USB
1) Linux Driver 설치
- PEAK System 홈페이지(www.peak-system.com)의 Support -> Download -> Linux 에서 "Driver Download"로 이동하여 리눅스용 CAN Driver를 다운로드 받는다.(주의) Jetson TK1용 JetPack 2.3에는 7.12 버전 PCAN 드라이버가 정상동작하는 것을 확인하였다. PC용 Ubunt에서는 최신 버전을 권장한다.
- 터미널창을 연다 (ctrl + alt + T)
- 압출 풀기 명령을 실행한다
확장자가 tar일경우 : tar xvf FILENAME.tar
확장자가 tar.gz일경우 : tar xvzf FILENAME.tar.gz
Dependency 에러 "popt.h no such file or directory" 방지를 위하여, 아래와 같이 popt 패키지를 설치한다.
sudo apt-get install libpopt-dev
아래 명령을 통하여 Kernel Headers를 준비한다. cd /usr/src/linux-headers-3.10.40-ga7da876 sudo make modules_prepare
5.설치된 documentation 폴더의 설명서를 참고하여 드라이버를 설치한다.
cd ~/mylib/peak-linux-driver-7.12/
make clean
make
sudo make install
- After building the sources and the following binary installation on
your target computer it's enough to type in
sudo /sbin/modprobe pcan