找不到/dev/input/event的原因

276090阅读 0评论2019-06-28 fangdikui
分类:嵌入式

 原文地址:https://www.cnblogs.com/lizhi0755/archive/2013/05/04/3058935.html

使用busybox中的mdev时,默认不配置的情况下,即mdev.conf文件中没有定义时,所有的设备会被重新加载在/dev/目录下(即使在内核驱动中定义了也没有用),所以默认event被加载在/dev/eventXX,修改mdev.conf可修改其路径,该文件定义如下:



点击(此处)折叠或打开

  1. # mdev.conf
  2. #
  3. # Syntax:
  4. # <regexp> <UID>:<GID> <PERM> [{@,$,*} <CMD>]
  5. # @: run <CMD> after creating
  6. # $: run <CMD> before removal
  7. # *: like @ and $ at the same time
  8. # <CMD> is run inside /dev using system()

  9. # mmc sd
  10. mmcblk[0-9] 0:0 0660 @(mount -t vfat -w /dev/$MDEV /mnt)
  11. mmcblk[0-9] 0:0 0660 *(umount /mnt)
  12. mmcblk[0-9]*p[0-9] 0:0 0660 @(mount -t vfat -w /dev/$MDEV /mnt)
  13. mmcblk[0-9]*p[0-9] 0:0 0660 *(umount /mnt)

  14. # input devices
  15. mice 0:0 0660 =input/
  16. mouse.* 0:0 0660 =input/
  17. event.* 0:0 0660 =input/
  18. ts.* 0:0 0660 =input/

上一篇:Requested init /linuxrc failed (error -2).
下一篇:网卡发送数据过程