[meta-freescale] tslib in fsl-image-gui

Otavio Salvador otavio at ossystems.com.br
Fri Jul 12 06:33:35 PDT 2013


On Fri, Jul 12, 2013 at 6:10 AM, Petr Kolesnikov <petr at kolesnikov.eu> wrote:
> 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.

An easier one is to make a patch to 2.6.35 which fixes the EV_VERSION there.

--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the meta-freescale mailing list