tslib 未创建设备 [英] tslib not creating device
问题描述
我正在尝试将 tslib 嵌入 ARM 系统,以便使用触摸屏设备;我已经成功安装了它,但不幸的是我无法检索所有笔记以再次安装.x)
I am trying to embed tslib on an ARM system, in order to use a touchscreen device ; I already installed it successfully but unfortunately I can't retrieve all my notes to do it again. x)
我交叉编译了库文件,并将它们放入 /usr/lib ;我已经创建了 conf 文件 /etc/ts.conf 并且我已经导出了良好的环境变量:
I cross-compiled the libraries files, and I put them into /usr/lib ; I have created the conf file /etc/ts.conf and I have exported the good environment variables :
export TSLIB_TSDEVICE="/dev/event2"
export TSLIB_CONFFILE="/etc/ts.conf"
这是我的问题:当我插入设备时,tslib 似乎没有创建事件设备.这是 *ts_calibrate* 的结果:ts_open: No such file or directory
Here is my problem : tslib doesn't seem to create the event device when I plug the device in. And here is the result of *ts_calibrate* : ts_open: No such file or directory
我认为它试图打开不存在的 /dev/event2,因为它不是由 tslib 创建的.
I think it tries to open /dev/event2 which doesn't exist because it has not been created by tslib.
有什么想法吗?
谢谢
推荐答案
你有什么样的内核 + 用户空间?设备文件创建通常是内核热插拔 + udev 或 mdev 的工作.
What kind of kernel + userspace do you have ? device file creation is usually the job of kernel hotplug + udev or mdev.
无论如何,tslib 不应该创建设备文件.你有两个选择:
In any case, tslib is not supposed to create device file. You have two options :
手动创建设备,前提是您的 busybox 包含 mknod 实用程序:
creating the device manually, provided your busybox contains the mknod utility :
mknod event2 c 13 66
其中 66 是次要编号,它应该比 event1 的次要编号多 1.
where 66 is the minor number, it should be one more than the minor number for event1.
启动 mdev -s 并查看/dev 目录的内容是否发生变化
launching mdev -s and see if the content of your /dev directory change
找出没有检测/创建通风设备的原因:请在启动后发布uname -a
和dmesg
的输出.
find out why the vent device is not detected / created : please post the output of uname -a
, and dmesg
after boot.
这篇关于tslib 未创建设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!