EETI_eGTouch驱动移植及校准

EETI_eGTouch驱动移植及校准
⼀.环境
芯⽚:NXP IMX6Q
内核版本:4.1.15
uname:Linux myimx6ek314 4.1.15-myimx6-g5d588fa6-dirty #4 SMP PREEMPT Tue Nov 17 17:26:34 CST 2020 armv7l armv7l armv7l GNU/Linux
root@myimx6ek314:~/eGTouch_v2.5.9321.L-ma# lsusbsh setup.sh
(*) Driver installer for touch controller
(*) Script Version = 1.04.8625
(I) Check user permission: root, you are the supervisor.
(I) Platform application binary interface = armv7l
(W) No X server detected.
Declaration and Disclaimer
The programs, including but not limited to software and/or firmware (hereinafter referred to "Programs" or "PROGRAMS", are owned by eGalax_eMPIA Te chnology Inc. (hereinafter referred to EETI) and are compiled from EETI Source code. EETI hereby grants to licensee a personal, non-exclusive, non-trans ferable license to copy, use and create derivative works of Programs for the sole purpose in conjunction with an EETI Product, including but not limited to in tegrated circuit and/or controller. Any reproduction, copies, modification, translation, compilation, application, or representation of Programs except as spec ified above is prohibited without the express written permission by EETI.
Disclaimer: EETI MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO PROGRAMS, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. EETI reserves the right to make changes without f urther notice to the Programs described herein. Licensee agrees that EETI does not assume any liability, damages or costs, including but not limited to atto rney fees, arising out from Programs themselves or those arising out from the application or combination Programs into other products or circuit. The use o r the inclusion of EETI's Programs implies that the Licensee
assumes all risk of such use and in doing so indemnifies EETI against all charges, including bu t not limited to any claims to infringement of any third party's intellectual property right.
Do you agree with above patent declaration?
[Y] Yes, I agree.  [N] No, I don't agree.
Y
(Q) Which interface controller do you use?
(I) [1] RS232 [2] USB [3] PS2 : 2
(I) Please confirm the touch controller is linked with your device. Press [Enter] key
(I) Found uinput at path /dev/uinput
(I) Place eGTouch driver archive to /usr/local/eGTouchARMhfnonX.
(I) Create eGTouch daemon shortcut in /usr/bin.
(Q) Do you have requirement of monitor rotation or multi monitor?
(I) [y/N] :N
(I) Copying eGTouch.sh to /etc/rcS.d.
(I) /etc/rcS.d path found.
(I) Found hidraw module enabled in system
(W) You need to do kernel patch first.
(W) Please follow the Programming Guide to patch kernel.
[Y] Yes, I've patched kernel already.  [N] No, I haven't patched.
Y
(I) Append eGTouch daemon execution into /etc/rc.local.
(Q) How many controllers do you want to plug-in to system? [1-10]
(I) Default [1]:
(I) Device Nums is set to 1
(Q) Do you need to work with Tslib?
(I)[y/N] :Y^Hy^H^H
(I) No tslib support
(I) Driver installation completed. Setup version 1.04.8625.
(I) Please reboot the system.
root@myimx6ek314:~/eGTouch_v2.5.9321.L-ma# input: eGalax Inc. eGalaxTouch P80H84 2094 v00_T1 k48_165 as /devices/soc0/soc/2100000.aips-bus /2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/0003:0EEF:C002.0003/input/input4
hid-generic 0003:0EEF:C002.0003: input,hidraw0: USB HID v1.11 Pointer [eGalax Inc. eGalaxTouch P80H84 2094 v00_T1 k48_165] on usb-ci_hdrc.1-1.3/ input0
mxc_mipi_dsi 21e0000.mipi: failed to reset: -517
input: eGalaxTouch Virtual Device for Single as /devices/virtual/input/input5
input: eGalaxTouch Virtual Device for Eraser as /devices/virtual/input/input6
input: eGalaxTouch Virtual Device for Touch as /devices/virtual/input/input7
input: eGalaxTouch Virtual Device for Pen as /devices/virtual/input/input8
四.运⾏
cat /proc/bus/input/devices
I: Bus=0003 Vendor=0eef Product=c002 Version=0111
N: Name="eGalax Inc. eGalaxTouch P80H84 2094 v00_T1 k48_165"
P: Phys=usb-ci_hdrc.1-1.2/input0
S: Sysfs=/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2:1.0/0003:0EEF:C002.0001/input/input4 U: Uniq=
H: Handlers=mouse1 event3
B: PROP=0
B: EV=1b
B: KEY=400 0 30000 0 0 0 0 0 0 0 0
B: ABS=3f00 3
B: MSC=10
I: Bus=0006 Vendor=0eef Product=0001 Version=0001
N: Name="eGalaxTouch Virtual Device for Single"
P: Phys=usb-ci_hdrc.1-1.2/input0
S: Sysfs=/devices/virtual/input/input5
U: Uniq=
H: Handlers=mouse2 event4
B: PROP=2
B: EV=b
B: KEY=30000 0 0 0 0 0 0 0 0
B: ABS=3
I: Bus=0006 Vendor=0eef Product=0010 Version=0001
N: Name="eGalaxTouch Virtual Device for Eraser"
P: Phys=usb-ci_hdrc.1-1.2/input0
S: Sysfs=/devices/virtual/input/input6
U: Uniq=
H: Handlers=mouse3 event5
B: PROP=2
B: EV=1b
B: KEY=c03 0 1 0 0 0 0 0 0 0 0
B: ABS=d000003
B: MSC=10
I: Bus=0006 Vendor=0eef Product=0020 Version=0001
N: Name="eGalaxTouch Virtual Device for Touch"
P: Phys=usb-ci_hdrc.1-1.2/input0
S: Sysfs=/devices/virtual/input/input7
U: Uniq=
H: Handlers=mouse4 event6
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=6608000 1000003
I: Bus=0006 Vendor=0eef Product=0030 Version=0001
N: Name="eGalaxTouch Virtual Device for Pen"
P: Phys=usb-ci_hdrc.1-1.2/input0
S: Sysfs=/devices/virtual/input/input8
U: Uniq=
H: Handlers=mouse5 event7
B: PROP=0
B: EV=1b
B: KEY=c03 0 1 0 0 0 0 0 0 0 0
B: ABS=d000003
B: MSC=10
五.设备⽀持热插拔,插拔打印如下:
root@myimx6ek314:~/eGTouch_v2.5.9321.L-ma# usb 1-1.2: USB disconnect, device n                                      umber 4
evdevmouse: Could not read from input device (No such device)
usb 1-1.2: new full-speed USB device number 7 using ci_hdrc
input: eGalax Inc. eGalaxTouch P80H84 2094 v00_T1 k48_165 as /devices/soc0/soc                                      /2100000.aips-bus/2184200.usb/ci_hdrc.1/us b1/1-1/1-1.2/1-1.2:1.0/0003:0EEF:C00                                      2.0002/input/input9
hid-generic 0003:0EEF:C002.0002: input,hidraw0: USB HID v1.11 Pointer [eGalax                                        Inc. eGalaxTouch P80H84 2094 v00_T1 k48_1 65] on usb-ci_hdrc.1-1.2/input0
六.调整内核打印级别
查看内核打印级别:该⽂件有四个数字值,它们根据⽇志记录消息的重要性,定义将其发送到何处。关于不同⽇志级别的更多信息,请查阅syslog(2)联机帮助。上⾯显⽰的4个数据分别对应:
1)控制台⽇志级别:优先级⾼于该值的消息将被打印⾄控制台
2)默认的消息⽇志级别:将⽤该优先级来打印没有优先级的消息
3)最低的控制台⽇志级别:控制台⽇志级别可被设置的最⼩值(最⾼优先级)
4)默认的控制台⽇志级别:控制台⽇志级别的缺省值
root@myimx6ek314:~# cat /proc/sys/kernel/printk
7      4      1      7
修改内核打印级别:
root@myimx6ek314:~#  echo 8 4 1 7 > /proc/sys/kernel/printk
七.查看触摸打印,判断硬件正常
根据四,查看设备信息得知eGalaxTouch Virtual Device for Touch为event6:
root@myimx6ek314:~# hexdump /dev/input/event6
0000000 122f 5bac b7df 0000 0003 002f 0000 0000
0000010 122f 5bac b7df 0000 0003 0039 0000 0000
0000020 122f 5bac b7df 0000 0003 0035 0404 0000
0000030 122f 5bac b7df 0000 0003 0036 0492 0000
0000040 122f 5bac b7df 0000 0003 003a 0001 0000
⼋.触摸屏校准(tslib)
采⽤tslib开源库的测试程序,校准触摸屏:./ts_calibrate
root@myimx6ek314:/dev# ts_
ts_calibrate  ts_print      ts_test
ts_harvest    ts_print_raw

本文发布于:2024-09-21 21:57:09,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/2/93705.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:级别   打印   内核   消息
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议