TSLIB cross compilation for iMX53 sabre tablet

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TSLIB cross compilation for iMX53 sabre tablet

Jump to solution
1,356 Views
winstonrodrigue
Contributor IV

Hi pals,

    I m working on linux on imx53 i have compiled a rootfs for this sabre tablet.

I have cross compiled qt and qt app is working fine with the mouse.

the issue is I cannot use touchscreen because tslib is not configured..

I have cross compiled tslib succesfully by freescale toolchain. and it has produced the files necessary.

And i have set all the environmental variables in the Target system.

but when I run ts_calibrate,

when I run ./ts_calibrate I can see

"TSLIB calibration Utility" screen on my board. and one crosshair on

top left corner. But when i touch it Nothing happens.

   I tried to do a little debugging by using printf statements in

ts_calibrate.c file just to know where exactly is the problem. It gets

struck in the function getxy();

   when i see the code of  getxy() in tests/testutils.c , it gets

struck at this point :

    do {

              printf("Inside do-getxy\n");

                 if (ts_read_raw(ts, &samp[0], 1) < 0) {

                      printf("Inside if-getxy\n");

                         perror("ts_read");

                        close_framebuffer ();

                         exit(1);

                 }

         } while (samp[0].pressure == 0);

  here it never comes out of the do-while loop. so i guess there is a

problem in ts_read_raw() function.

  when i run ./ts_print_raw it gives me:

root@freescale /mnt/buha/bin$ ./ts_print_raw

14224.983211:  22304  24288      0

14224.987890:  22304  24288      0

14224.992615:  22304  24288      0

14224.997350:  22304  24288      0

14225.002073:  22304  24288      0

14225.006804:  22304  24288      0

14225.011538:  22304  24288      0

14225.016271:  22304  24288      0

14225.020993:  22336  24272      0

14225.042071:  22432  24272      0

14225.043366:  22432  24272      0

14226.641742:  22544  23968      0

14226.646461:  22544  23968      0

14226.651188:  22544  23968      0

14226.655925:  22544  23968      0

14226.660646:  22544  23968      0

14226.665375:  22544  23968      0

  So i guess there is no problem with the touch screen driver.

It uses egalax capacitive touch screen.

    Thanks and Regards,

   Winston Rodrigues,

   Schiller Healthcare,

   Bangalore -India


Labels (3)
1 Solution
762 Views
Yuri
NXP Employee
NXP Employee

Have you tried single touch mode as described in section 35.7 (Enable in Ubuntu) of "mx53_sabre_tablet_linux.pdf" :

To support ubuntu with single touch event, the source code needs to be modified and enabled for single

mode:

• Modify egalax_ts.c and add “#define FORCE_SINGLE_POINTER_SUPPORT”.

• Rebuild the kernel

View solution in original post

3 Replies
763 Views
Yuri
NXP Employee
NXP Employee

Have you tried single touch mode as described in section 35.7 (Enable in Ubuntu) of "mx53_sabre_tablet_linux.pdf" :

To support ubuntu with single touch event, the source code needs to be modified and enabled for single

mode:

• Modify egalax_ts.c and add “#define FORCE_SINGLE_POINTER_SUPPORT”.

• Rebuild the kernel

762 Views
winstonrodrigue
Contributor IV

Hey Yuri Muhin,

       It works.. Once i modified egalax_ts.c to add the "#defineFORCE_SINGLE_POINTER_SUPPORT" line , and after compiling the kernel. It worked.

Thanks..

0 Kudos
762 Views
winstonrodrigue
Contributor IV

Or can someone give me the cross compiled tslib and its libraries for imx53 please. I need touchscreen very badly.

thanks

0 Kudos