1. 修改drivers/input/touchscreen/下的Makefile
#obj-$(CONFIG_TOUCHSCREEN_S3C2410) += s3c2410_ts.o obj-$(CONFIG_TOUCHSCREEN_S3C2410) += s3c_ts.o
2. 修改.config,找到CONFIG_TOUCHSCREEN_S3C2410,修改为
# CONFIG_TOUCHSCREEN_ILI210X is not set CONFIG_TOUCHSCREEN_S3C2410=y # CONFIG_TOUCHSCREEN_GUNZE is not set
3. make uImage
4. 下载新内核,启动开发板,cd /mnt
5. cd ts_dir
6. cp * / -rfd
7. sh tslib.sh
8. 执行ts_calibrate以及ts_test,成功
/mnt # ts_calibratexres = 480, yres = 272Took 3 samples...Top left : X = 267 Y = 157Took 4 samples...Top right : X = 270 Y = 873Took 4 samples...Bot right : X = 743 Y = 871Took 3 samples...Bot left : X = 741 Y = 150Took 4 samples...Center : X = 504 Y = 507-33.081360 0.005015 0.528829-46.786865 0.363238 -0.001267Calibration constants: -2168020 328 34657 -3066224 23805 -83 65536/mnt # ts_test1792.029177: 372 24 11792.045631: 371 24 11792.051086: 371 25 01793.147675: 109 137 11793.165649: 109 138 11793.185634: 109 142 11793.251078: 107 159 01793.369837: 83 157 11793.385710: 83 157 11793.405633: 83 159 1
原文地址:https://www.cnblogs.com/zhu-g5may/p/9319786.html
时间: 2024-11-01 11:27:40