插入模块出现Error: could not insert module testsecond.ko: Device or resource busy
2014-10-14 22:01
1831 查看
今天是自己写的第二个设备驱动程序,很不幸,中枪了
在insmod xxx.ko 时候总是出现Error: could not insert module testsecond.ko: Device or resource busy,
分析了各种情况,都快崩溃了后来在很而然的看的一篇很不起眼的小短文,顿时灵感来了。
解决方法:在文本界面输入$cat /proc/devices 查看你的驱动的进程号,例如我的驱动进程号如下所示
可以看到这是字符设备的进程号,如果你写的是快设备或者是FIFO之类的,那你要到块设备里面去查找
你可以看到这进程号是否与你所定义的MAJOR冲突,如果冲突,那就是你insmod xxx.ko失败的原因了 ,你只要把MAJOR改一下,就没有问题了
在insmod xxx.ko 时候总是出现Error: could not insert module testsecond.ko: Device or resource busy,
分析了各种情况,都快崩溃了后来在很而然的看的一篇很不起眼的小短文,顿时灵感来了。
解决方法:在文本界面输入$cat /proc/devices 查看你的驱动的进程号,例如我的驱动进程号如下所示
可以看到这是字符设备的进程号,如果你写的是快设备或者是FIFO之类的,那你要到块设备里面去查找
你可以看到这进程号是否与你所定义的MAJOR冲突,如果冲突,那就是你insmod xxx.ko失败的原因了 ,你只要把MAJOR改一下,就没有问题了
相关文章推荐
- 嵌入式linux插入内核模块Error: could not insert module xxx.ko: Device or resource busy处理
- 模块插入错误 insmod: can't insert 'memdev.ko': Device or resource busy
- 模块插入错误 insmod: can't insert 'memdev.ko': Device or resource busy
- ubuntu 12.04出现insmod: error inserting 'hello.ko': -1 Device or resource busy的解决办法
- ubuntu12.04出现ERROR: Removing 'hello': Device or resource busy和insmod: error inserting 'hello.ko': -1 Device or r
- 编译模块出错:insmod: ERROR: could not insert module module.ko: Invalid parameters
- LINUX驱动学习:加载模块时出现Device or resource busy的解决方法
- ubuntu12.04出现ERROR: Removing 'hello': Device or resource busy和insmod: error inserting 'hello.ko': -1 Device or resource busy解决方案
- 应用层直接操作gpio口及出现的问题sh: write error: Device or resource busy
- insmod: ERROR: could not insert module module.ko: Invalid parameters
- 安装Dahdi模块出现insmod: can't insert 'dahdi.ko': unknown symbol in module or invalid parameter
- LINUX驱动学习:加载模块时出现Device or resource busy的解决方法
- 应用层直接操作gpio口及出现的问题sh: write error: Device or resource busy
- 错误信息insmod: error inserting 'hello.ko': -1 Device or resource busy
- insmod: can't insert 'adc.ko': Device or resource busy:
- LINUX驱动学习:加载模块时出现Device or resource busy的解决方法
- Error: could not insert module dnw_usb.ko: Invalid module format
- insmod: ERROR: could not insert module xxx.ko: Unkown symbol in module
- ERROR: Removing 'hello': Device or resource busy
- linux 加载驱动 insmod: ERROR: could not insert module *: Invalid parameters