苗火 Nicholas
[embedded]tslib移植到mini2440上面
2016-7-12 萧
1.解压

tar zxvf tslib-1.4.tar.gz



2../autoget.sh



3../configure --prefix=/home/nicholas/tslib_install/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes



4.make



5.make install

这会将四个文件生成到prefix设定的目录下,将四个文件复制到根文件系统的

/usr/local/tslib

下就可以了。



6.修改文件系统中/etc/profile:

export TSLIB_ROOT=/usr/local/tslib

export TSLIB_TSDEVICE=/dev/event0

export TSLIB_FBDEVICE=/dev/fb0

export TSLIB_CALIBFILE=/etc/pointercal

export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf

export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts

export TSLIB_CONSOLEDEVICE=none

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/lib



7.系统起来后,运行

/usr/local/tslib/bin

下面的程序./ts_calibrate



8.可能会出现一些错误:

8.1

tslib -sh :./ts_calibrate:not found

将arm-linux-gcc下的库文件复制到根文件系统的lib下,

crosstool/gcc-4.4.3/arm-none-linux-gnueabi/lib/*



8.2

No raw modules loaded.

ts_config: No such file or directory

这个是因为raw modules没有配置值,通过

tslib/src/ts_config.c

可以看出来,是读

/usr/local/tslib/etc/ts.conf

而这个文件里有多个module_raw配置项可以选择,没有一个是打开的,我们打开第一个就可以了
评论:
nicholas
2017-04-28 09:43 回复
如果没有/dev/event0
那估计是没有相应的驱动
在内核里面,
make menuconfig
drivers->input->ts等等就行了
nicholas
2017-04-27 17:16 回复
../libtool: eval: line 6458: unexpected EOF while looking for matching `"'
../libtool: eval: line 6459: syntax error: unexpected end of file

Solution:
Edit ./libtool, uncoment the line of 6458:
#    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
1
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容