开发板使用6410
Prepare Android enviroment follow this link:http://source.android.com/source/downloading.htmlrequire many time you need download about 8.5GBcd <dir enviroment base>/external/git clone https://github.com/etmatrix/tslib.gitcd tslibautoreconf -ivs./configurecd ../..# build all filesmake libtsmake ts/plugins/inputmake ts/plugins/pthresmake ts/plugins/dejittermake ts/plugins/linearmake ts/plugins/variancemake ts_calibratemake ts_test############### test tslib ################ push all filesadb push out/target/product/generic/system/lib/libts.so /system/lib/libts.soadb push out/target/product/generic/system/lib/ts/plugins/dejitter.so /system/lib/ts/plugins/dejitter.soadb push out/target/product/generic/system/lib/ts/plugins/input.so /system/lib/ts/plugins/input.soadb push out/target/product/generic/system/lib/ts/plugins/linear.so /system/lib/ts/plugins/linear.soadb push out/target/product/generic/system/lib/ts/plugins/pthres.so /system/lib/ts/plugins/pthres.soadb push out/target/product/generic/system/lib/ts/plugins/variance.so /system/lib/ts/plugins/variance.soadb push out/target/product/generic/system/bin/ts_calibrate /system/bin/ts_calibrateadb push out/target/product/generic/system/bin/ts_test /system/bin/ts_test# change file external/tslib/etc/ts.conf as needadb push external/tslib/etc/ts.conf /system/etc/ts.confadb shell# android shellstop zygoteexport TSLIB_TSDEVICE=/dev/touchscreen-1wire //对应显示设备的驱动名字
export TSLIB_CALIBFILE=/system/etc/pointercal
export TSLIB_CONFFILE=/system/etc/ts.confexport TSLIB_PLUGINDIR=/system/lib/ts/pluginsexport TSLIB_FBDEVICE=/dev/graphics/fb1 //这个是显示设备,和自己的设备对应,也许你的设备对应的是=/dev/graphics/fb0,或其他# calibrate touchts_calibrate# test calibration datats_test