Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1477209
  • 博文数量: 108
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 997
  • 用 户 组: 普通用户
  • 注册时间: 2013-06-29 09:58
个人简介

兴趣是坚持一件事永不衰竭的动力

文章分类

全部博文(108)

文章存档

2021年(1)

2020年(10)

2019年(19)

2018年(9)

2016年(23)

2015年(43)

2013年(3)

我的朋友

分类: 嵌入式

2019-06-28 10:32:37

 原文地址: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/

阅读(275775) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~