rmmod卸载驱动问题
日期:2011-12-10
点击:128
来源: mcgrady_tracy
分享至:
以前rmmod.html' target='_blank'>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.html' target='_blank'>setup --->
() Local version - append to kernel release
这里什么也没有的话,那么新建目录就是Linux的版本号
如果有字符的话,就是Linux版本号加上你输入的字符
记得改变后要重新编译驱动
在其它目录下卸载模块,可以卸载,但会提示
rmmod: module 'hello' not found
将驱动hello.ko拷贝到/lib/modules/2.6.32.2目录下
卸载驱动不会提示这个错误
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史