포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 1GB 입니다.

5. tslib

tar xzf tslib.tar.gz
cd tslib
./configure --prefix=/usr --enable-shared --enable-h3600 --enable-input --disable-corgi --disable-collie --disable-mk712 --disable-arctic2 --disable-ucb1x00 --build=i386-linux --host=arm-generic-linux-gnueabi

{
한 후 config.h를 다음과 같이 고쳐준 후
//#define malloc rpl_malloc

==> 현재는 configure를 손봐서 그냥 configure만 해도 되도록 해 놓았음.
}


make
make prefix=/opt/arm-generic/arm-generic-linux-gnueabi/sys-root/usr install

==> libts.la tslib.pc를 고쳐줄 것. 경로등 수정...(왜냐하면 prefix=/usr로 했기 때문이다)

cd /opt/arm-generic/arm-generic-linux-gnueabi/sys-root/usr/lib
vi libts.la

libdir='/usr/lib'
로 되어 있는 것을
libdir='/opt/arm-generic/arm-generic-linux-gnueabi/sys-root/usr/lib'
로 수정해 줄 것


cd /opt/arm-generic/arm-generic-linux-gnueabi/sys-root/usr/lib/pkgconfig
vi tslib-0.0.pc

의 파일의 내용을

prefix=/usr
을 다음과 같이 수정
prefix=/opt/arm-generic/arm-generic-linux-gnueabi/sys-root/usr


==> 이유
cross컴파일일 경우는 install path를 cross toolchain쪽으로 해줘야 하나 실행시 때문에
문제가 생긴다(왜냐하면 tslib를 prefix 디렉토리로 참조하기 때문에). 해서 약간 속여주는 것이다.


동작세팅: 다음과 같은 내용을 넣어준다.

1) 2.6.x kernel의 input device사용시

rootfs의 etc/tslib/ts.conf-input

module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear


rootfs의 etc/profile

여기서 device명은 알아서 맞춰줘서 넣을 것
(mds6410의 경우는 touchscreen0)

TSLIB_TSDEVICE=/dev/input/event1
TSLIB_CONFFILE=/etc/tslib/ts.conf-input


테스트는 보드 부팅 후.....

ts_calibrate로 touch calibrate 한 후
ts_test로 하면 됨


 

"사람은 자기가 보고 싶은 현실만 볼 뿐이다." - Gaius Julius Caesar
엮인글 :
http://www.aesop.or.kr/index.php?mid=Board_Resources_General&document_srl=36064&act=trackback&key=e25
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
48 리눅스 커널 부팅후 i2c버스에 연결된 장치 찾는 테스트 프로그램입... file 2009-06-12 10484
» tslib compile howto 고도리 2009-06-22 12845
46 OpenRISC OR1200 Toolchain - GCC 4.2.2 file 김재훈 2009-07-03 10136
45 ELBuilder file [1] 정경진 2009-08-08 7691
44 분석할때 유용한 search script: gref(grep 응용) 고현철 2009-09-01 7557
43 Kernel Power Management QOS와 Clock Management 쪽 입니다. file [1] 최종환 2009-09-04 7948
42 OpenRISC Processor 개발 킷 (VMWARE Image) file 김재훈 2009-09-07 11416
41 aesop2440 linux device driver tutorial using linux kernel d... file 고현철 2009-09-08 10936
40 OpenRISC OR1xxx Processor (OR32)용 U-Boot v1.3.4 file [2] 김재훈 2009-10-13 8560
39 OpenRISC OR1xxx Processor (OR32) IROM용 Serial Download... file [2] 김재훈 2009-10-13 8249
38 AESOP 문서양식 file [1] 고현철 2010-01-06 8176
37 OpenRISC OR1xxx Processor (OR32) IROM용 DNW 0.1r1 file JhoonKim 2010-02-23 8711
36 [ODROID-T] GPS test application file [1] 이제현 2010-05-29 8528
35 안드로이드 사용방법에 관련된 문서 file [2] 유형목 2010-05-31 8781
34 나만의 "N 드라이브" 만들기 file [11] 유형목 2010-07-03 9511
33 포팅중인 mplayer for Android입니다. [2] pinebud 2010-07-19 9501
32 tslib 포팅 - 안드로이드에서 사용하기 위한.... file [9] 정낙주 2010-07-27 11632
31 SD, CF card Dump 프로그램(DD for Windows) file [3] 김경수 2010-08-06 10103
30 리눅스용 DNW 프로그램을 고쳤습니다. file [6] 유형목 2010-08-14 11687
29 USB 케이블만 가지고 리눅스 NFS 개발환경 만들기 file 유형목 2010-10-24 10044

사용자 로그인