不tslib的创建设备 [英] tslib not creating device

查看:114
本文介绍了不tslib的创建设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图嵌入一个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:没有这样的文件或目录

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次设备号一个。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆