D1开发板配的gt911不能使用, 请问是怎么回事呢?
-
[ 15.011435] xt_time: kernel timezone is -0000 [ 15.041535] Error: Driver 'gt9xxnew_ts' is already registered, aborting... [ 16.741410] ieee80211_do_open: vif_type=2, p2p=0, ch=3, addr=dc:eb:d6:cd:9a:dc
root@TinaLinux:/# lsmod fuse 152450 0 ipt_REJECT 2647 0 iptable_filter 1759 0 uvcvideo 128408 0 videobuf2_memops 1796 1 videobuf2_vmalloc videobuf2_vmalloc 7423 1 uvcvideo xr829 844456 0 xt_LOG 1639 0 xt_TCPMSS 4060 0 xt_comment 1156 0 xt_limit 2725 0 xt_mac 1338 0 xt_mark 1472 0 xt_multiport 2489 0 xt_time 3573 0
root@TinaLinux:/# modprobe gt9xxnew_ts [ 233.026639] Error: Driver 'gt9xxnew_ts' is already registered, aborting... 1 module could not be probed - gt9xxnew_ts root@TinaLinux:/#
实际上这个 package 是使能了:
# CONFIG_PACKAGE_kmod-touchscreen-gslx680new is not set # CONFIG_PACKAGE_kmod-touchscreen-gt82x is not set CONFIG_PACKAGE_kmod-touchscreen-gt9xxnew=y # CONFIG_PACKAGE_kmod-touchscreen-tlsc6x is not set
-
还需要在dts 中修改一处:
目录:d1-tina-open/device/config/chips/d1/configs/nezha/linux/board.dts
compatible = "allwinner,goodix"; device_type = "ctp"; reg = <0x14>; # 此处使能 - status = "disabled"; + status = "okay"; # 此处更改触摸方向,实测y触摸方向相反 - ctp_revert_y_flag = <0x0>; + ctp_revert_y_flag = <0x1>; ctp_exchange_x_y_flag = <0x0>; ctp_int_port = <&pio PG 14 GPIO_ACTIVE_HIGH>; ctp_wakeup = <&pio PG 15 GPIO_ACTIVE_HIGH>;
-
@bedrock 感谢大佬, 搞定
先按楼上修改 device/config/chips/d1/configs/nezha/linux-5.4/board.dts
然后 make;pack;
另外自己再编译一个 evtest 进去:
https://elinux.org/images/9/93/Evtest.croot@TinaLinux:/# /mnt/exUDISK/evtest /dev/input/event2 Input driver version is 1.0.1 Input device ID: bus 0x18 vendor 0xdead product 0xbeef version 0x28bb Input device name: "gt9xxnew_ts" Supported events: Event type 0 (Sync) Event type 1 (Key) Event code 116 (Power) Event code 227 (?) Event code 228 (?) Event code 229 (?) Event code 230 (?) Event code 231 (?) Event code 232 (?) Event code 233 (?) Event code 234 (?) Event code 330 (Touch) Event type 3 (Absolute) Event code 48 (?) Value 0 Min 0 Max 255 Event code 50 (?) Value 0 Min 0 Max 255 Event code 53 (?) Value 0 Min 0 Max 800 Event code 54 (?) Value 0 Min 0 Max 1280 Event code 57 (?) Value 0 Min 0 Max 255 Testing ... (interrupt to exit) Event: time 1270.677369, type 1 (Key), code 330 (Touch), value 1 Event: time 1270.677369, type 3 (Absolute), code 53 (?), value 5 Event: time 1270.677369, type 3 (Absolute), code 54 (?), value 22 Event: time 1270.677369, type 3 (Absolute), code 48 (?), value 11 Event: time 1270.677369, type 3 (Absolute), code 50 (?), value 11 Event: time 1270.677369, type 3 (Absolute), code 57 (?), value 0 Event: time 1270.677369, -------------- Config Sync ------------ Event: time 1270.677369, -------------- Report Sync ------------ Event: time 1270.687591, type 3 (Absolute), code 53 (?), value 5 Event: time 1270.687591, type 3 (Absolute), code 54 (?), value 22 Event: time 1270.687591, type 3 (Absolute), code 48 (?), value 11 Event: time 1270.687591, type 3 (Absolute), code 50 (?), value 11 Event: time 1270.687591, type 3 (Absolute), code 57 (?), value 0 Event: time 1270.687591, -------------- Config Sync ------------ Event: time 1270.687591, -------------- Report Sync ------------ Event: time 1270.697845, type 3 (Absolute), code 53 (?), value 5 Event: time 1270.697845, type 3 (Absolute), code 54 (?), value 22 Event: time 1270.697845, type 3 (Absolute), code 48 (?), value 11 Event: time 1270.697845, type 3 (Absolute), code 50 (?), value 11 Event: time 1270.697845, type 3 (Absolute), code 57 (?), value 0 Event: time 1270.697845, -------------- Config Sync ------------ Event: time 1270.697845, -------------- Report Sync ------------
-
把 evtest 复制到 target/allwinner/d1-nezha/base-files/usr/bin
然后 make;pack; 生成的 img 就自带了 evtest
-
@memory Tina里有个测试命令
getevent
就可以同时看到 目前接入的 设备,并进行设备的测试 -
@bedrock 又get新知识了
-
@memory 在 D1开发板配的gt911不能使用, 请问是怎么回事呢? 中说:
@bedrock 又get新知识了
亲,请教一下,电容触摸( GT911 )的源码是在哪个目录的呢?配置流程是?多谢……
-
@memory 在 D1开发板配的gt911不能使用, 请问是怎么回事呢? 中说:
@bedrock 又get新知识了
亲,请教一下,电容触摸( GT911 )的源码是在哪个目录的呢?配置流程是?多谢……
-
@memory 大佬,要怎么另外编译呢?
-
@czr1711 在 D1开发板配的gt911不能使用, 请问是怎么回事呢? 中说:
@memory 大佬,要怎么另外编译呢?
驱动源码:linux-5.4/drivers/input/touchscreen/gt9xxnew/
make kernel_menuconfig 开启 CONFIG_TOUCHSCREEN_GT9XXNEW_TS
-
@whycan 我想问的是evtest这个怎么单独编译呢?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号