EM2440-Touch panel is not working,please help!.

Rofique Anowar
Hi Everybody,

      I am  developing application using stamp module compatible to EM2440
board.
      I have to run our application to this board which we have developed
in FriendlyARM development board. We have used our development platform
using "qt-everywhere-opensource-src-4.7.3" and cross compilation tools
arm-none-linux-gnueabi version 4.4.3. But the shared library generating
after cross compilation is not compatible to your kernel version
"GLIBC_2.9" missing.
       Now we have overcome that problem using  crosscompiler provided by
brodcon (version 4.3.3) and "qt-everywhere-opensource-src-4.6.3" and using
the latest "tslib" :

       git clone http://github.com/kergoth/tslib.git
Now our custom GUI is loading.

       But now the problem is touch panel is not working. I have followed
the tutorial below:-
https://importgeek.wordpress.com/tag/qtopia/

My configuration 
---------------------------------------------------------------------------
/etc/profile
---------------------------------------------------------------------------
# Ash profile
# vim: syntax=sh

# No core files by default
#ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
PS1='[\u@\h \W]# '
PATH=$PATH

HOSTNAME=`/bin/hostname`

export USER LOGNAME PS1 PATH
export LD_LIBRARY_PATH=/usr/local/tslib/lib
export QTDIR=/usr/local/Qt
#export QWS_MOUSE_PROTO=tslib:/dev/input/event0
#export QWS_MOUSE_PROTO=tslib:/dev/event0
export QWS_MOUSE_PROTO=/dev/event0
#export QWS_MOUSE_PROTO="Auto"
export TSLIB_CALIBFILE=/etc/pointercal
#export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts
export TSLIB_TSEVENTTYPE=INPUT
export QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140

      Please, help me to resolve this problem.I am Cluless.Pleaease,please
help me!!!!!!!!!!!

davef
I was surprised to read that a cross-compiler built for the Broadcom (?)
chip would work on the mini2440 armv4t architecture.  Is that correct?

Next, there are many different types of touchscreens, so there are many
threads around about the struggles various people have had.  What is the
display that you are using?

Was your cross compilation tools "arm-none-linux-gnueabi version 4.4.3"
supplied by the distributor for this board?  I assume you tried to fix the 
"GLIBC_2.9" missing problem before you changed tools.

Rofique Anowar
Hi davef,
        Thanks for your reply.Yes you are wright.I mentioned wrongly
"Broadcon board". 
Actually it is "Samsung S3C2440A ARM920T". I brought from the following
site.
http://www.armdesigner.com/EM2440-III.html

I am sorry but, there is no part no or anything os touch screen. It comes
along with "W35" LCD model.

1.I have tried so many different tslib version. All version behave in same
manner. 
I think I am missing something in compilation process of tslib or
environment setting.

2.Please, tell me how to test the tslibrary?
I got some executable form "/home/tslib/bin"
eg.a)ts_calibrate,b)ts_print,c)ts_test,......
I put the the same to "/usr/local/tslib/bin" folder in "EM2440" board.

When I run the follwing command.

1.[root@Boardcon bin]#.ts_calibrate
Couldnt open tslib config file: No such file or directory
ts_config: Illegal seek

3.In my board there is no input folder in /dev file 
so, I put "export TSLIB_TSDEVICE=/dev/event0"

a)/usr/loacal/Qt--- is my shared library for QT.
b)/usr/local/tslib/lib --- is my tslib after cross compilation.

c)/etc/profile

export LD_LIBRARY_PATH=/usr/local/tslib/lib
export QTDIR=/usr/local/Qt                 
export QWS_MOUSE_PROTO=/dev/event0
export TSLIB_CALIBFILE=/etc/pointercal        
export TSLIB_CONFFILE=/usr/local/etc/ts.conf  
export TSLIB_CONSOLEDEVICE=none               
export TSLIB_FBDEVICE=/dev/fb0              
export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
export TSLIB_TSDEVICE=/dev/event0
export TSLIB_TSEVENTTYPE=INPUT                
export QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140

Please reply.

davef
I am sorry but, there is no part no or anything os touch screen. It comes
along with "W35" LCD model.


Appears you are using a W35 touchscreen.  Putting W35 into search provides
some reading material.  Also, you need to know if your screen is a 1wire
touchscreen.  There are many pages of hits on the forum.

You need to find out why ts_config is not in /etc

I would suggest you follow this tutorial:

http://mini2440vietnam.blogspot.co.nz/2011/04/upgrade-qt462-in-mini2440....

Rofique Anowar
Hi davef,

I have already tried the following site:

http://mini2440vietnam.blogspot.co.nz/2011/04/upgrade-qt462-in-mini2440....
https://importgeek.wordpress.com/2012/04/09/compiling-qt-and-tslib-for-m...
http://qtinstall.blogspot.in/

Nothings works for me. Is there any other step to test whether my tslib
works or not?

Is there any forum of this site http://www.armdesigner.com/EM2440-III.html.
How people develop? Even they do not give any technical support. I have
already send five mail. No reply!!!!

Rofique Anowar
Thanks all.Problem has solved.Library and all file/folder structure are
different in my board. If any one need help, Mail me
:"rofique007@gmail.com" I will definitely help you.

Rofique Anowar

Abhishek Ekhare
Hi Rofique Anowar,
I using Mini2440 and facing the same issue that touchscreen not working.
I have referred the same tutorials as you:-

https://importgeek.wordpress.com/tag/qtopia/

https://importgeek.wordpress.com/2012/04/09/compiling-qt-and-tslib-for-m...

My tft display works fine, but my touchscreen does not work.
Please tell me how you solved this problem.

Thank you in advance.