用modprobe 加载模块时,提示模块找不到的问题
2016-10-21 17:57
387 查看
http://blog.chinaunix.net/uid-20296509-id-3283759.html
用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
用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
相关文章推荐
- 用modprobe 加载模块时,提示模块找不到的问题
- C#开发中提示无法加载DLL"***.dll":找不到指定的模块(异常来自HRESULT:0x8007007E)问题的解决办法
- 命令行执行python模块时提示包找不到的问题
- codeigniter加载自定义libray时,提示找不到对象(Undefined property)的问题
- 使用java命令运行class文件提示“错误:找不到或无法加载主类“的问题分析
- 使用java命令运行class文件提示“错误:找不到或无法加载主类“的问题分析
- 提示rundll“加载c:/winnt/system32/drivers/pupw.sys时出错,找不到指定的模块”的处理
- 提示模块已加载,但找不到入口点
- Eclipse中使用maven mobile开发,加载模块设置找不到子项目问题
- 在命令行界面使用java命令运行class文件提示“错误:找不到或无法加载主类“的问题分析
- nodejs 模块以及加载机制,主要讨论找不到模块的问题
- 使用java命令运行class文件提示“错误:找不到或无法加载主类“的问题分析
- 关于java命令行在dos窗口下执行class文件时提示“找不到或无法加载类”问题
- DLL错误之——无法加载DLL"***.dll":找不到指定的模块(异常来自HRESULT:0x8007007E)问题的终极感悟
- Rundll加载dll时出现问题 找不到指定模块解决办法
- 解决进系统【加载C:/windows/system32/*.dl出错,找不到指定模块】之类问题的方法
- Emgu在引用openCV时提示:无法加载 DLL“opencv_core2410”: 找不到指定的模块。
- 关于无法加载DLL"***.dll":找不到指定的模块(异常来自HRESULT:0x8007007E)问题的解决办法
- 【转载】使用java命令运行class文件提示“错误:找不到或无法加载主类“的问题分析
- nodejs 模块以及加载机制,主要讨论找不到模块的问题