rmmod卸载驱动问题

以前rmmod不能卸载驱动,提示
rmmod: chdir(/lib/modules): No such file or directory
我在lib目录下新建目录modules,再次卸载提示
rmmod: chdir(2.6.32.2): No such file or directory
我在modules目录下再新建目录2.6.32.2
如果配置
 General setup  ---> 
()  Local version - append to kernel release 
这里什么也没有的话,那么新建目录就是Linux的版本号
如果有字符的话,就是Linux版本号加上你输入的字符
记得改变后要重新编译驱动
在其它目录下卸载模块,可以卸载,但会提示
rmmod: module 'hello' not found
将驱动hello.ko拷贝到/lib/modules/2.6.32.2目录下
卸载驱动不会提示这个错误
posted @ 2011-12-09 23:54  移动应用开发  阅读(438)  评论(0编辑  收藏  举报