tslib编译使用方法
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install libtool
編譯:
tar xzf tslib-1.4.tar.gz
cd tslib
./autogen.sh
mkdir tmp
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
./configure --host=arm-linux --cache-file=arm-linux.cache --prefix=$(pwd)/tmp
make
make install
安裝:
cd tmp
cp * -rf /nfsroot
使用:
先安裝s3c_ts.ko, lcd.ko
1.
修改 /etc/ts.conf第1行(去掉#號和第一個空格):
module_raw input
改為:
module_raw input
2.
export TSLIB_TSDEVICE=/dev/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
ts_calibrate
ts_test
cat /proc/mymsg
replay_r, replay_w
0x00075cf7 0x00000003 0x00000018 0
0x00076617 0x00000003 0x00000018 0
0x00076617 0x00000003 0x00000018 0
0x00076617 0x00000003 0x00000018 0
0x00076617 0x00000003 0x00000018 0
0x00076617 0x00000003 0x00000018 0
0x0007661b 0x00000003 0x00000018 0
0x0007661b 0x00000003 0x00000018 0
0x0007661b 0x00000003 0x00000018 0
0x0007661b 0x00000003 0x00000018 0
0x0007661b 0x00000003 0x00000018 0
轉載于:https://www.cnblogs.com/Dream998/p/8540759.html
總結
以上是生活随笔為你收集整理的tslib编译使用方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: .Net中json序列化与反序列化
- 下一篇: Zend Studio 13.6.1汉化