现象:
执行海豚派 ./mk.sh 之后,生成 sun8iw8p1_linux_qt_dophin_pi_uart0_none.img 文件, 用 PhoenixSuit.exe 烧录, 重启之后在Linux控制台执行 ts_calibrate,
屏幕无显示, 触摸也不正常。
/ # ts_calibrate
xres = 480, yres = 272
tslib: Selected device is not a touchscreen (must support ABS and KEY event types)
离线
跟踪linux的启动log, 发现 TSC2003触摸芯片检测不正常:
[ 1.789028] tsc2003_ts_init
[ 1.792277] =====ctp_fetch_sysconfig_para=====.
[ 1.797510] ctp_fetch_sysconfig_para: ctp_power_ldo script_get_item err.
[ 1.805261] ctp_fetch_sysconfig_para: ctp_power_ldo_vol script_get_item err.
[ 1.813383] ctp_fetch_sysconfig_para: ctp_power_io script_get_item err.
[ 1.820934] script_get_item ctp_wakeup err
[ 1.825671] ctp_irq gpio number is 36
[ 1.829845] wakeup gpio_request is failed
[ 1.834462] =============GT82x Probe==================
[ 1.841039] twi_start()447 - [i2c1] START can't sendout!
[ 1.847043] sunxi_i2c_xfer()922 - [i2c1] Retrying transmission 1
[ 1.854208] twi_start()447 - [i2c1] START can't sendout!
[ 1.860219] sunxi_i2c_xfer()922 - [i2c1] Retrying transmission 2
[ 1.867335] twi_start()447 - [i2c1] START can't sendout!
[ 1.873339] sunxi_i2c_xfer()922 - [i2c1] Retrying transmission 3
[ 1.880301] i2c_write_bytes error -121
[ 1.884578] tsc2003: probe of 1-0048 failed with error -121
离线
/ # cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="sunxi-keyboard"
P: Phys=sunxikbd/input0
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=800 c0040 0 0 10000000I: Bus=0018 Vendor=dead Product=beef Version=1105
N: Name="tsc2003"
P: Phys=input/tsc2003-ts
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=event1
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="axp20-supplyer"
P: Phys=m1kbd/input2
S: Sysfs=/devices/platform/twi.0/i2c-0/0-0034/axp20-supplyer.7/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=7
B: KEY=100000 0 0 0
B: REL=0I: Bus=0019 Vendor=0001 Product=ffff Version=0100
N: Name="headset"
P: Phys=headset/input0
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=kbd event3
B: PROP=0
B: EV=3
B: KEY=4 0 0 0 c0000 0 0 0
终于找到 eventX文件与硬件设备的对应关系
离线