用modprobe 加载模块时,提示模块找不到的问题
来源:互联网 发布:如何编写软件程序 编辑:程序博客网 时间:2024/05/16 06:54
用modprobe 加载模块时,提示模块找不到的问题,如在/home目录下有个编译好的模块:helloworld.ko,
当我们运行 sudo modprobe /home/helloworld.ko时,会提示“FATAL: Module helloworld not found.”
modprobe是在/lib/module/`uname -r`下寻找加载的模块的,并且modprobe需要一个最新的modules.dep文件,
这个modules.dep文件内容是些各个模块之间的依赖等信息,此文件是由depmod命令来更新的。
man modprobe:
modprobe looks in the module directory /lib/modules/`uname -r` for all the modules and other files, except for the
optional /etc/modprobe.conf configuration file and /etc/modprobe.d
directory (see modprobe.conf(5)).
modprobe expects an up-to-date modules.dep file, as generated by depmod
(see depmod(8)). This file lists what other modules each module needs
(if any), and modprobe uses this to add or remove these dependencies
automatically. See modules.dep(5)).
所以我们需要做的事情:
1.将编译好的模块放入/lib/module/`uname -r`下,
2. 用depmod更新modules.dep文件
3. modprobe helloworld.ko
当我们运行 sudo modprobe /home/helloworld.ko时,会提示“FATAL: Module helloworld not found.”
modprobe是在/lib/module/`uname -r`下寻找加载的模块的,并且modprobe需要一个最新的modules.dep文件,
这个modules.dep文件内容是些各个模块之间的依赖等信息,此文件是由depmod命令来更新的。
man modprobe:
modprobe looks in the module directory /lib/modules/`uname -r` for all the modules and other files, except for the
optional /etc/modprobe.conf configuration file and /etc/modprobe.d
directory (see modprobe.conf(5)).
modprobe expects an up-to-date modules.dep file, as generated by depmod
(see depmod(8)). This file lists what other modules each module needs
(if any), and modprobe uses this to add or remove these dependencies
automatically. See modules.dep(5)).
所以我们需要做的事情:
1.将编译好的模块放入/lib/module/`uname -r`下,
2. 用depmod更新modules.dep文件
3. modprobe helloworld.ko
0 0
- 用modprobe 加载模块时,提示模块找不到的问题
- 用modprobe 加载模块时,提示模块找不到的问题
- modprobe加载自定义模块
- 命令行执行python模块时提示包找不到的问题
- 模块加载——modprobe和insmod的区别
- insmod 模块1调用模块2 提示找不到模块2里面函数的问题总结
- modprobe,insmod内核模块加载函数
- Rundll加载dll时出现问题 找不到指定模块解决办法
- linux内核模块编译或加载时找不到符号问题
- 模块-内核模块加载命令modprobe使用注意事项
- 保存计划任务时提示:系统找不到指定的模块
- 关于matlab提示“找不到指定的模块”
- 提示rundll“加载c:/winnt/system32/drivers/pupw.sys时出错,找不到指定的模块”的处理
- 提示模块已加载,但找不到入口点
- Linux的驱动模块管理:modprobe
- 无法加载 DLL 找不到指定的模块
- 无法加载DLL,找不到指定的模块
- C#换机器后调用dll失败提示无法加载DLL找不到指定的模块
- Linearlayout 中layout_gravity不起作用问题
- MAVEN项目创建
- 路由器接口配置与管理——1
- 排列
- Windows CMD和bat中特殊符号的作用
- 用modprobe 加载模块时,提示模块找不到的问题
- ubuntu-caffe
- 学习笔记之ViewPager
- CSS选择器及CSS样式表
- 【励志文章】Learning needs of the target instead of passion
- Spring 4.x官方参考文档中文版——第21章 Web MVC框架(11)
- js 常用正则表达式表单验证代码
- Beaglebone Black———入门之改变BB-Black的CPU频率
- 00007-----连接mini2440开发板FTP