[meta-freescale] tslib in fsl-image-gui
Petr Kolesnikov
petr at kolesnikov.eu
Fri Jul 12 02:10:02 PDT 2013
Alexey Mednyy <swexru at ...> writes:
>
> Hello all,
>
> I figured out that mxc_ts driver works bad with X evtest, always returns
> bad values. On ubuntu images I always got touchscreen to work with tslib.
>
> my MACHINE ??= 'imx53qsb'
> I'm using my custom 2.6.35-maintain kernel from freescale git.
>
> On Yocto if I run ts_calibrate util I've got:
> "tslib: Selected device uses a different version of the event protocol
> than tslib was compiled for"
>
> I dive into tslib sources and found this:
>
> if (version < EV_VERSION) {
> fprintf(stderr, "tslib: Selected device uses a different version of the
> event protocol than tslib was compiled for\n");
> return -1;
> }
>
> EV_VERSION defined in input.h, so looks like tslib compiled with wrong
> kernel headers.
>
> For now I'm not familiar with all Yocto stuff so I just tried to append
> this to local.conf:
>
> PREFERRED_PROVIDER_virtual/kernel = "linux-imx"
> PREFERRED_VERSION_linux-imx = "2.6.35.3"
>
> but it didn't help.
>
> Any variants how to get tslib to work on fsl-image-gui?
>
Hi Alexey,
I went into same issue a few days ago. The tslib is compiled against yocto
kernel headers 3.8 while we are using quiet old imx kernel 2.6.35. The
EV_VERSION has been incremented in kernel 2.6.37.
So there are two approaches. Compile tslib against imx kernel headers, that
is most likely the right way. The second (dirty) way is to patch tslib to
accept version 0x010000, that is working fine too.
Regards,
Petr
More information about the meta-freescale
mailing list