ERROR: Removing '***': Device or resource busy
2013-04-12 21:59
441 查看
编写实验 《linux驱动设备》 中的第一个例子 helloworld,但是insmod安装成功
dmsg |grep ** 也能找到我的模块安装的打印信息,但是rmmod的时候出错了。
ERROR: Removing 'helloworld': Device or resource busy
rmmod -- force 强制删除也没有用
一些常见的原因就不多说了:
1、没有按规定编写module_exit;
2、还有看stackflow上很多的低级函数名写错的问题。
最后参考了:
http://forum.ubuntu.com.cn/viewtopic.php?f=97&t=364431
才发现原来是自己系统目前的gcc版本与 内核的GCC 版本不符合导致的。
由于之前=编译其他代码 将gcc连接改为4.4的版本的,但是我的ubuntu12.04内核gcc是 4.6的
ls -al /usr/bin/gcc查看 gcc版本
cat /proc/version 查看系统信息,包含内核的GCC版本信息
dmsg |grep ** 也能找到我的模块安装的打印信息,但是rmmod的时候出错了。
ERROR: Removing 'helloworld': Device or resource busy
rmmod -- force 强制删除也没有用
一些常见的原因就不多说了:
1、没有按规定编写module_exit;
2、还有看stackflow上很多的低级函数名写错的问题。
最后参考了:
http://forum.ubuntu.com.cn/viewtopic.php?f=97&t=364431
才发现原来是自己系统目前的gcc版本与 内核的GCC 版本不符合导致的。
由于之前=编译其他代码 将gcc连接改为4.4的版本的,但是我的ubuntu12.04内核gcc是 4.6的
ls -al /usr/bin/gcc查看 gcc版本
cat /proc/version 查看系统信息,包含内核的GCC版本信息
相关文章推荐
- ERROR: Removing '***': Device or resource busy
- ubuntu 12.04出现insmod: error inserting 'hello.ko': -1 Device or resource busy的解决办法
- ERROR: Removing '': Device or resource busy
- ERROR: Removing 'hello': Device or resource busy
- 错误信息insmod: error inserting 'hello.ko': -1 Device or resource busy
- ERROR: Removing 'hello': Device or resource busy
- ubuntu12.04出现ERROR: Removing 'hello': Device or resource busy和insmod: error inserting 'hello.ko': -1 Device or r
- 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
- read()、write()返回 Input/output error, Device or resource busy解决
- 插入模块出现Error: could not insert module testsecond.ko: Device or resource busy
- how to deal with fdisk error: Re-reading the partition table failed with error 16: Device or resource busy.
- oracle RAC OCR device: PROC-26: Error [Device or resource busy] [16]
- ERROR: Removing 'hello': Device or resource busy
- 应用层直接操作gpio口及出现的问题sh: write error: Device or resource busy
- WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
- rmmod: remove 'led': Device or resource busy解决办法
- 重启docker服务器后 遇到 'device or resource busy'错误
- WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
- 嵌入式linux插入内核模块Error: could not insert module xxx.ko: Device or resource busy处理