[英]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.