[Q] Help with TS driver not loading
New to android, but fairly good in linux so I can understand most technical stuff with these devices.
I have a chinese tablet, softwinners a13 clone. I rooted it the day I got it, and it was running fine until one day it booted into recovery, and wouldnt restore anything because it could not mount any folders. Long story short, I flashed the faastjb to it, and it booted up like a charm. I should also note no other images would succeed in livesuit, all gave error 162 except faaastjb.
As mentioned the TS would not work, so I cracked the tablet open and seen that the chip is a zet6251 chip??
Foolishly, I did not dump the factory rom, but I did do some sort of backup in which I was able to view the factory init.sun5i.rc file to see what drivers it had installed. Shows the zet6221 driver. Here I thought, awesome, theres a zet6221 driver in the thread. So I ran the batch file to insert the drivers, and still my touchscreen doesn't work. The gsensor works properly, but no touchscreen.
I tried to manually insmod the driver, but it gives me file already exists, and when I check lsmod, it shows zet6221 as loading, all other drivers are live.
insmod attempt :
root@android:/vendor # insmod zet6221.ko
insmod : init_module 'zet6221.ko' failed (File exists)
dmesg output (snippet) :
page 127  doesn't match! continue to download!
<4>[ 177.021254] write : 2c
<4>[ 177.040032] read : 3d 3d 3d page=123 offset=113 offset=116 offset=119 offset=122
<4>[ 177.404167] page=125 offset=118 offset=121 offset=124 offset=127
<4>[ 177.411239] page 127  doesn't match! continue to download!
<4>[ 177.411250] write : 2c
<4>[ 177.430029] read : 3d 3d 3d page=123 offset=113 offset=116 offset=119 offset=122
<4>[ 177.794167] page=125 offset=118 offset=121 offset=124 offset=127
<4>[ 177.801243] page 127  doesn't match! continue to download!
<4>[ 177.801255] write : 2c
<4>[ 177.820032] read : 3d 3d 3d page=123 offset=113 offset=116 offset=119 offset=122
<4>[ 178.184164] page=125 offset=118 offset=121 offset=124 offset=127
I didnt paste all of the dmesg output. It was pretty much all this over and over with varying offsets.
lsmod output :
zet6221 46023 1 - Loading 0x00000000
device 26862 0 - Live 0x00000000
rtl8150 10305 0 - Live 0x00000000
mcs7830 7581 0 - Live 0x00000000
qf9700 9152 0 - Live 0x00000000
asix 24601 0 - Live 0x00000000
camera 53105 0 - Live 0x00000000
videobuf_dma_contig 6243 0 - Live 0x00000000
videobuf_core 20242 1 videobuf_dma_contig, Live 0x00000000
cedarx 11869 0 - Live 0x00000000
mali 200007 21 - Live 0x00000000
ump 34213 9 mali, Live 0x00000000
mxc622x 6310 0 - Live 0x00000000
nand 225000 8 - Live 0x00000000
And finally the original init file that I fortunately had backed up. This was backed up after rooting, but the tablet was fully functioning.
Just the part that is relevant...
#insmod key & tp driver
# insmod /system/vendor/modules/sun4i-ts.ko
# insmod /system/vendor/modules/ft5x_ts.ko
# insmod /system/vendor/modules/gt811_ts.ko
# touch key
# insmod mali driver
#insmod video driver
#insmod gsensor driver
# insmod /system/vendor/modules/bma250.ko
# insmod /system/vendor/modules/mma7660.ko
# insmod /system/vendor/modules/dmard06.ko
I will be getting another tablet from the friend that got me this one sometime in the next week, and I will do a factory backup from it to extract drivers. I really don't want the factory firmware on it again... it seemed to run very slow in comparison to this. it was originally 4.1.1