简体   繁体   English

执行 modprobe 时未找到模块

[英]Module not found when I do a modprobe

I am trying to install this module: https://github.com/mkottman/acpi_call我正在尝试安装此模块: https ://github.com/mkottman/acpi_call

I did a make, make install.我做了一个 make,make install。

I then saw acpi_call.ko is in /lib/modules/4.3.3-5-default/extra/ .然后我看到acpi_call.ko/lib/modules/4.3.3-5-default/extra/中。

When I do a当我做一个

modprobe acpi_call modprobe acpi_call

I get我明白了

modprobe: FATAL: Module acpi_call not found in directory /lib/modules/4.3.3-5-default modprobe:致命:在目录 /lib/modules/4.3.3-5-default 中找不到模块 acpi_call

Tried putting acpi_call.ko in /lib/modules/4.3.3-5-default but got the same result.尝试将acpi_call.ko放入/lib/modules/4.3.3-5-default但得到了相同的结果。

I would like to make it persistent so that when I reboot, module is loaded.我想让它持久化,以便在我重新启动时加载模块。 I think it's possible only with modprobe.我认为只有使用 modprobe 才有可能。

If the module.ko file is really under /lib/modules/4.3.3-5-default/extra/ and 4.3.3-5-default is indeed your current kernel version, then the problem may simply be that you need to run depmod to re-create the module dependency list.如果 module.ko 文件确实在/lib/modules/4.3.3-5-default/extra/下并且4.3.3-5-default确实是您当前的内核版本,那么问题可能只是您需要运行depmod重新创建模块依赖列表。 Run:跑步:

sudo depmod

and try again to modprobe the module.并再次尝试对模块进行modprobe

My solution is unique, but in my system I rebuilt the kernel and took out a module.我的解决方案是独一无二的,但在我的系统中,我重建了内核并取出了一个模块。 I installed the vendors module and could not get the system to boot using the vendors module.我安装了供应商模块,但无法使用供应商模块启动系统。 In my case I forgot to move all the /lib/modules info, so modules.builtin still had the module, that I was upgrading.在我的例子中,我忘记移动所有 /lib/modules 信息,所以modules.builtin仍然有我正在升级的模块。 Manually removing the module from modules.builtin and doing the depmod -a fixed my problem.手动从modules.builtin删除模块并执行depmod -a解决了我的问题。

Try running make && sudo make install in the source directory.尝试在源目录中运行make && sudo make install That should install the module in the right place using the Makefile that comes with your kernel headers.这应该使用内核头文件附带的 Makefile 在正确的位置安装模块。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到模块:modprobe - Module not found: modprobe 使用modprobe“致命:模块未找到错误” - “FATAL: Module not found error” using modprobe modprobe: FATAL: Module industrialio-sw-device not found in directory /lib/modules/5.15.56-v8+ 尝试在 RPI 上修改模块时出错 - modprobe: FATAL: Module industrialio-sw-device not found in directory /lib/modules/5.15.56-v8+ error while trying to modprobe a module on RPI `rmmod`或`modprobe -r`时的“分段错误” - “Segmentation fault” when `rmmod` or `modprobe -r` 我无法执行命令 modprobe vboxdrv - I can't execute command modprobe vboxdrv 尝试使用cpan安装Perl模块时,为什么会出现“找不到404”和“无法更改目录”错误? - Why do I get “404 Not Found” and “Failed to change directory” errors when I try to install a Perl module with cpan? 如何解决错误“找不到名为 pyside2 的模块”? - How do I solve error "no module found named pyside2"? 我可以在INSMOD或MODPROBE期间将参数传递给驱动程序吗? - Can I pass parameter to driver during INSMOD or MODPROBE? modprobe/insmod - 错误:无法插入模块 操作不允许以 root 权限安装 kernel 空间模块 - modprobe/insmod - ERROR: could not insert module Operation not permitted installing a kernel space module with root privileges 当我尝试通过 python 脚本执行 shell 命令时出现错误“找不到模块” - I'm getting an error “module not found ” when I'm trying to execute shell commands through a python script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM