linux dvbh driver

Hey this is Michael's current job, write device driver under linux. DVBH player is the first project for me and I've already finished it. Here in this blog,I'm recording my result.

Website Counter

星期二, 十二月 12, 2006

tslib download and cross compile for arm

Mine MatchBox>K+ & TinyX board is running,except the touch screen.
and tslib is the program I need. I met problem during the download and compile as many other people. So here I write download the download address and how to do the cross compile.

1. Where to download tslib source code.

Well, the tslib source code is maintained on a cvs server from handheld.org. you can get the latest version there:
export CVSROOT=:pserver:anoncvs@cvs.handhelds.org:/cvs
cvs login
(password:anoncvs)
cvs co apps/tslib

I downloaded 2 version through http, for I can't access the CVS server outside our company. Here are the addresses:
addr1 http://www.zelow.no/floppyfw/download/Development/src/ (I suggest use this one)
addr 2 http://mail.pdaxrom.org/download/1.1.0beta3/src/

2. How to compile
We've to manual set soem enviroment virables. and correctly configure the source code. I show you a build file wrote myself:
#step 1 play a trick
echo "ac_cv_func_malloc_0_nonnull=yes" > arm-linux.autogen

#step 2 set the enviroment
export CC=/cross-compile/bin/arm-linux-gcc
export CXX=/cross-compile/bin/arm-linux-g++
export CONFIG_SITE=arm-linux.autogen
#step 2
./configure --build=i386-linux --host=arm-linux --target=arm --disable-inputapi --prefix=$PWD/build
do make and make install,you will get what you want under ./build. Actually you can set the prefix as your root_fs befor hand then after the "make install" these file are stay on position.


3. How to install
3.1 initialize the enviroment setting first, you'd better place them in /etc/profile or other place you like.
#haigang added this for tslib
export TSLIB_TSEVENTTYPE=H3600
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/touchscreen/0
export TSLIB_CALIBFILE=/usr/etc/pointercal
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts

3.2 modify the ts.conf file, pay attention here: you've got two things to do, first ,uncomment the correct device your board is using;second delete the commented lines. If you don't do the second step, you will met segment falt error.

4. run the programs
./ts_calibrate will do a calibrate
run ./ts_test you can play with your touchscreen! :^)

1 Comments:

At 4:22 下午, Blogger Edmondo said...

I would really need your help...can you please write me an email at edmondo.porcu@gmail.com ?
Thanks
Edmondo

 

发表评论

<< Home