Got my LG 1730SF 17" touch screen working with Android on TrimSlice. Here's how: - Get trimslice android kernel, compile and test according to Compulab's instructions - Run make menuconfig and enable usbtouchscreen.ko as built-in to kernel. Recompile. Now Android recognizes it and mouse cursor responds to touch. - Edit usbtouchscreen.c: swap X and Y axis, mirror X and Y axis. Recompile. Now axis and directions are ok. Still works in a touchpad mode i.e. movement is relative, not absolute. - Make an .idc (input device configuration) file for the monitor and put it to /system/usr/idc (I think). IMPORTANT: set owner/group and permissions to same than other files in this directory have!!! Recompile. Touch screen works now ok.
Nice to play Angry Birds with a big touch screen. It runs quite smoothly, much better than the desktop. Still need to calibrate the touch screen, position is a bit off. Probably easiest to modify the driver again.
原因是因为TOUCHSCREEN的驱动没有成功的配置 第一步 * .
在编译make rk2926_v86_defconfig时,rk2926_v86_defconfig位于\kernel\arch\arm\configs中,在里面写了各种驱动的配置。
\kernel\drivers\input\touchscreen\AW5306 屏幕驱动的路径 里面都是些底层的c程序
所以要使屏幕有所反应 就得在rk2926_v86_defconfig文件中加入一句
CONFIG_TOUCHSCREEN_AW5306=y
直接使用make menuconfig命令 进入配置的图像界面
在里面配置驱动
/kernel$ make menuconfig
选则Device Drives-->
选择Input device support-->
选择TouchScreents-->
选择AW5306_IIC_based_touchscreens
然后exit 最后保存
第二步
解决了配置的问题之后 在继续重新编译
编译kernel,在sdk_root/kernel目录执行
$ make rk2926_v86_defconfig (注:按照方法2的话就不需要这一步) $ make kernel.img –j4 生成的固件在sdk_root/kernel/kernel.img
附:(
完整编译固件 必须先编译kernel,再在sdk_root目录执行 $ make –j4 $ ./mkimage.sh 生成的固件在sdk_root/rockdev/Image目录下 system.img boot.img recovery.img misc.img
)
编译完后 把这几个img文件一起copy到 RKTools\RK292xDevelopTool\rockdev\Image中
然后使用RKTools\RK292xDevelopTool\rockdev下的mkupdate.sh预处理 之后将生成的update.img
使用RKBatchTool移植到android平板中