More update.
Finally I was able to make my touchscreen working:). The problem was in I2C bus data and clock pin assignments and handling. I was able to resolve it. Now I have my "TSC2004" device registered and can see touch events on "/dev/input/event1".
Next step is to calibrate touchscreen and I am using tslib from root file system available on Freescale website. This is the log below for errors when I calibrate touchscreen:
Mounting filesystems
mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
Starting the dropbear ssh server:
D-Bus per-session daemon address is: unix:abstract=/tmp/dbus-OW8J6eMDUD,guid=03bc44b0205f032679922e960000000c
gtk: creating gdk-pixbuf.loaders
pango: creating module list
starting pid 2505, tty '': '/etc/rc.d/rc_mxc.S'
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/freescale:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
(EE) XKB: Couldn't open rules file /usr/share/X11/xkb/rules/base
(EE) XKB: No components provided for device Virtual core keyboard
unrecognised device identifier!
(EE) config/hal: NewInputDeviceRequest failed (2)
arm-none-linux-gnueabi-gcc (4.4.4_09.06.2010) 4.4.4
root filesystem built on Mon, 27 Feb 2012 14:53:29 -0500
Freescale Semiconductor, Inc.
freescale login: root
login[2508]: root login on 'ttymxc1'
BusyBox v1.18.5 () built-in shell (ash)
Enter 'help' for a list of built-in commands.
xres = 800, yres = 480
error: could not support the device
EV_SYN=1 //I wonder in kernel source code it is defined as 0x00
EV_ABS=0 //and this is defined as 0x03. I tried changing it with no luck :(
ABS_MT_POSITION_X=0
ABS_MT_POSITION_Y=0
ABS_MT_TOUCH_MAJOR=0
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <Alt>n=next
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <Alt>p=prev
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <Alt>c=close
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <Alt>d=desktop
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <Alt>m=!matchbox-remote -mbmenu
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <ctrl><alt>x=!xterm
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <ctrl><alt>r=!rxvt
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <ctrl><alt>e=!!gpe-calender
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <alt>Tab=next
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <alt><shift>Tab=prev
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <alt>space=taskmenu
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <alt>escape=!matchbox-remote -mbmenu
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <alt>f4=close
matchbox: Cant find a keycode for keysym 65480
matchbox: ignoring key shortcut f11=fullscreen
mbmenu: no _MB_THEME set on root window
matchbox-desktop: loading /usr/lib/matchbox/desktop/tasks.so with args ( None )
matchbox-desktop: loading /usr/lib/matchbox/desktop/dotdesktop.so with args ( None )
user_overides is (nil)
mb-desktop-dotdesktop: failed to open /usr/local/share/applications
mb-desktop-dotdesktop: failed to open //.applications
mb-applet-menu-launcher: bonobo-browser.desktop has no icon, png or name
mb-applet-menu-launcher: failed to open /usr/local/share/applications
mb-applet-menu-launcher: failed to open //.applications
mb-applet-menu-launcher: bonobo-browser.desktop has no icon, png or name
mb-applet-menu-launcher: failed to open /usr/local/share/applications
mb-applet-menu-launcher: failed to open //.applications
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
Took 23 samples...
Top left : X = 3729 Y = 603
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
Took 35 samples...
Top right : X = 284 Y = 571
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
Took 68 samples...
Bot right : X = 198 Y = 3602
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
Took 4 samples...
Bot left : X = 3709 Y = 3559
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
error: could not grab the device. not a multi-touch?
error: could not grab the device. not a multi-touch?
tslib: Unknown event type 0
Took 5 samples...
Center : X = 2002 Y = 2081
806.836304 -0.201247 -0.003591
-24.835999 0.000214 0.126926
Calibration constants: 52876824 -13188 -235 -1627652 14 8318 65536
root@freescale ~$
root@freescale ~$ Switching to mouse protocol "imps/2"
Switching to mouse protocol "exps/2"
Switching to mouse protocol "bus"
Switching to mouse protocol "ps/2"
How should I resolve these errors? I downloaded tslib source code and went through it. It seems like the touch screen is sending "EV_SYN" event and tslib does not handle it correctly. I downloaded another version of tslib, cross compiled and generated new binaries for ts_calibrate, ts_test. After executing new ts_calibrate I get segmentation fault. Do I need to add different configuration under /usr/etc/ts.conf file?
Any help would be greatly appreciated.
Regards,
Sumit