烧录内核
adb root
adb push kernel.img /data/
adb push resource.img /data/
adb shell
dd if=/data/kernel.img of=/dev/block/by-name/kernel
dd if=/data/resource.img of=/dev/block/by-name/resource
sync
reboot
调试
adb shell getevent
日志:/logs/kmsg
查看内核版本 adb shell cat/proc/ratta/version
adb root
adb shell am start com.android.settings
adb shell am force-stop com.android.settings
getevent -l
adb root
adb shell input keyevent 292
工厂测试
adb root
adb push test_factory /data
adb shell
stop
chmod 755 /data/test_factory
/data/test_factory &
鬼点坐标保持 /cache/factory/cap_ghost.log
Supernote A6 X:/cache/factory # /data/test_factory &
/data/test_factory &
[1] 1640
Supernote A6 X:/cache/factory # 2021-02-17 22:49:02 framebuffer: 3 R(1872 x 1404),V(1872 x 1404),offset=-594827638
2021-02-17 22:49:02 register_window: main_window
2021-02-17 22:49:02 register_window: single_test_window
2021-02-17 22:49:02 register_window: pwrkey_window
2021-02-17 22:49:02 register_window: wifi_window
2021-02-17 22:49:02 register_window: bluetooth_window
2021-02-17 22:49:02 register_window: leds_window
2021-02-17 22:49:02 register_window: time_window
2021-02-17 22:49:02 register_window: emr_touch_window
2021-02-17 22:49:02 register_window: emr_draw_window
2021-02-17 22:49:02 register_window: cap_touch_window
2021-02-17 22:49:02 register_window: cap_draw_window
2021-02-17 22:49:02 register_window: display_window
2021-02-17 22:49:02 register_window: otg_window
2021-02-17 22:49:02 register_window: hall_window
2021-02-17 22:49:02 register_window: device_window
2021-02-17 22:49:02 register_window: report_window
2021-02-17 22:49:02 register_window: report_pcba_window
2021-02-17 22:49:03 register_window: powerdown_window
2021-02-17 22:49:03 register_window: eng_window
2021-02-17 22:49:03 register_window: eink_window
2021-02-17 22:49:03 register_window: update_window
2021-02-17 22:49:03 register_window: refresh_ghost_window
2021-02-17 22:49:03 register_window: cpu_window
2021-02-17 22:49:03 register_window: cap_test_window
2021-02-17 22:49:03 register_window: tp_accuracy_window
2021-02-17 22:49:03 register_window: tp_cross_window
2021-02-17 22:49:03 register_window: cpu_run_window
2021-02-17 22:49:03 register_window: aging_window
2021-02-17 22:49:03 register_window: aging_test_window
2021-02-17 22:49:03 register_window: upgrade_window
2021-02-17 22:49:03 register_window: reboot_window
2021-02-17 22:49:03 register_window: sleep_window
2021-02-17 22:49:03 register_window: sleep_test_window
2021-02-17 22:49:03 register_window: man_sleep_window
2021-02-17 22:49:03 register_window: in_window
2021-02-17 22:49:03 register_window: out_window
2021-02-17 22:49:03 my_timer_thread begin.
2021-02-17 22:49:03 open command file failed,errno=2(No such file or directory)
2021-02-17 22:49:03 uevent_thread begin.
2021-02-17 22:49:03 Wacomscreen resolution: 15818x11864
2021-02-17 22:49:03 lookup 'Atmel maXTouch Touchscreen' failed.
2021-02-17 22:49:03 lookup 'Hall Sensor' failed.
2021-02-17 22:49:03 Touchscreen resolution: 1871x1367
cd /cache/factory/
Supernote A6 X:/cache/factory # more cap_ghost.log
cat cap_ghost.log
[2021-02-17 22:47:41] x=686,y=779,id=0
[2021-02-17 22:47:42] x=686,y=779,id=0
动态配置
调试节点是:
/sys/bus/i2c/devices/1-0014/gt9xx_config
直接cat这个节点,可以看到驱动里的配置和实际寄存器的值
更新配置的方法(假设配置文件路径是/data/gt9xx.cfg):
cat /data/gt9xx.cfg > /sys/bus/i2c/devices/1-0014/gt9xx_config
传送配置文件及配置
- window下修改配置文件名为gt9xx.cfg
- window 下打开adb
3.将gt9xx.cfg 传入开发板 /data目录下
3.1 先给权限
adb root
adb remount
adb push gt9xx.cfg /data/
- 进入开发板shell 将传入的配置文件进行配置
adb shell
判断进入开发板后,配置
cat /data/gt9xx.cfg > /sys/bus/i2c/devices/1-0014/gt9xx_config
若想查看是否为所传文件,在开发板shell下分别用cat进行查看
cat /data/gt9xx.cfg
cat /sys/bus/i2c/devices/1-0014/gt9xx_config