没有合适的资源?快使用搜索试试~ 我知道了~
openwrt开发SD卡的时候,SD卡拔插流程的信息,对开发sd卡功能就有参考价值
资源推荐
资源详情
资源评论
export DBGLVL=10; procd -h /etc/hotplug.json
//=======================拔SD卡
[10642.220000] mmc0: card 0001 removed
procd: hotplug_handler_debug(404): {{"ACTION":"remove","DEVPATH":"\/devices\/10130000.sdhci\/mmc_host\/mmc0\/mmc0:0001\/block\/mmcblk0\/mmcblk0p1","SUBSYSTEM":"block","MAJOR":"179","MINOR":"1","DEVNAME":"mmcblk0p1","DEVTYPE":"partition","SEQNUM":"551"}}
procd: rule_handle_command(355): Command: rm
procd: rule_handle_command(357): /dev/mmcblk0p1
procd: rule_handle_command(358):
procd: rule_handle_command(360): Message:
procd: rule_handle_command(362): ACTION=remove
procd: rule_handle_command(362): DEVPATH=/devices/10130000.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1
procd: rule_handle_command(362): SUBSYSTEM=block
procd: rule_handle_command(362): MAJOR=179
procd: rule_handle_command(362): MINOR=1
procd: rule_handle_command(362): DEVNAME=mmcblk0p1
procd: rule_handle_command(362): DEVTYPE=partition
procd: rule_handle_command(362): SEQNUM=551
procd: rule_handle_command(363):
procd: rule_handle_command(355): Command: exec
procd: rule_handle_command(357): /sbin/hotplug-call
procd: rule_handle_command(357): block
procd: rule_handle_command(358):
procd: rule_handle_command(360): Message:
procd: rule_handle_command(362): ACTION=remove
remove(脚本执行)
procd: rule_handle_command(362): DEVPATH=/devices/10130000.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1
procd: rule_handle_command(362): SUBSYSTEM=block
procd: rule_handle_command(362): MAJOR=179
procd: rule_handle_command(362): MINOR=1
procd: rule_handle_command(362): DEVNAME=mmcblk0p1
procd: rule_handle_command(362): DEVTYPE=partition
//=======================拔SD卡
[10642.220000] mmc0: card 0001 removed
procd: hotplug_handler_debug(404): {{"ACTION":"remove","DEVPATH":"\/devices\/10130000.sdhci\/mmc_host\/mmc0\/mmc0:0001\/block\/mmcblk0\/mmcblk0p1","SUBSYSTEM":"block","MAJOR":"179","MINOR":"1","DEVNAME":"mmcblk0p1","DEVTYPE":"partition","SEQNUM":"551"}}
procd: rule_handle_command(355): Command: rm
procd: rule_handle_command(357): /dev/mmcblk0p1
procd: rule_handle_command(358):
procd: rule_handle_command(360): Message:
procd: rule_handle_command(362): ACTION=remove
procd: rule_handle_command(362): DEVPATH=/devices/10130000.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1
procd: rule_handle_command(362): SUBSYSTEM=block
procd: rule_handle_command(362): MAJOR=179
procd: rule_handle_command(362): MINOR=1
procd: rule_handle_command(362): DEVNAME=mmcblk0p1
procd: rule_handle_command(362): DEVTYPE=partition
procd: rule_handle_command(362): SEQNUM=551
procd: rule_handle_command(363):
procd: rule_handle_command(355): Command: exec
procd: rule_handle_command(357): /sbin/hotplug-call
procd: rule_handle_command(357): block
procd: rule_handle_command(358):
procd: rule_handle_command(360): Message:
procd: rule_handle_command(362): ACTION=remove
remove(脚本执行)
procd: rule_handle_command(362): DEVPATH=/devices/10130000.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1
procd: rule_handle_command(362): SUBSYSTEM=block
procd: rule_handle_command(362): MAJOR=179
procd: rule_handle_command(362): MINOR=1
procd: rule_handle_command(362): DEVNAME=mmcblk0p1
procd: rule_handle_command(362): DEVTYPE=partition
资源评论
- HW.LI2021-11-01yumei
pyx_code
- 粉丝: 123
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功