ts_calibrate segmentation fault

Thomas
Hi,

I'm trying to use touch screen on a mini2440, load seems ok at start up
(looking at "/etc/var/messages", and "cat /dev/event1" returns bytes when I
touch the screen. 

However, when I try to calibrate using ts_calibrate, I got a "segmentation
fault". I tried to export "TSCALIB_FILE=" as seen on some websites, but
same results. 

I'm using "raw module" in ts.conf (which I uncommented).

Any idea ?

thanks
Thomas

open-nandra
Check to run with strace.

Idrox
Hi Thomas!

Did you solved the problem? When I execute ts_calibrate I get an "Illegal
Instruction" error.

Thank U!

davef
Which tslib are you using?  I assume by the fact that it is not working you
have tried to build tslib from source yourself.

If so, this may help:
http://billforums.station51.net/viewtopic.php?f=8&p=937&sid=b3c5...

You have checked that it is an ARM binary by <readelf -A ts_calibrate>?


HTH

Idrox
I'm using  the last version. I've downloaded from
http://github.com/kergoth/tslib.git.

Yes, I've build successfully Qt 4.7.1 and tslib with no errors. And the
strangest thing, is that the Qt apps run well and touch screen too, but
cursor is shifted about 3 cm from the position where the screen is touched.
So... I've to calibrate. But when I execute ts_calibrate, I get the
"Illegal Instruction" error.

Yes it's an ARM binary:

arm-none-linux-gnueabi-readelf -A ts_calibrate:

Tag_CPU_name: "ARM10TDMI"
  Tag_CPU_arch: v5TE
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align8_needed: Yes
  Tag_ABI_align8_preserved: Yes, except leaf SP
  Tag_ABI_enum_size: int

Thank you!

davef
But you want armv4t not the default armv5TE for mini2440.

Check the link I suggested.

Idrox
Now it works!


Thank You!!!!!!!!!!

Idrox
The problem was compiling for the wrong architecture!