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

星期三, 十二月 13, 2006

tinyx build problem

Today I tried to build tinyx. Accroding to the INSTALL.txt I've to build ncurses first.
This "ncruses" is very hard to compile, I met problems, such as:

make[2]: Entering directory `/mnt/tmp/study/tinyx/ncurses-5.5/Ada95/gen'

./gen '' B A >Character_Attribute_Set_Rep
./gen: error while loading shared libraries: /mnt/tmp/study/tinyx/ncurses-5.5/lib/ ELF file OS ABI invalid

Any way, after make, I found these's then I tried to make install, ignore that error. Then I finished compile the tinyx. Here I gonna place some detail infomation about build tinyx

星期二, 十二月 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 you can get the latest version there:
cvs login
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 (I suggest use this one)
addr 2

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_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! :^)