Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux编程 > » 正文

rmmod卸载驱动问题

来源: 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目录下
卸载驱动不会提示这个错误

Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史