[英]How do I add a kernel module not compiled in my current kernel in linux
我发现内核模块“ 头孢 ”和“RBD”被配置为"Y"
或"M"
看的/ boot / config中-XXXX文件在我的CentOS 7。
Does any guys know what's the best way to add these modules back ?
我是否需要手动download
内核源代码并将这些模块configure
为“ Y / M”?
还是我只需要在那里build
两个内核模块add
它们add
到/ lib64 / modules中 ?
首先,
A kernel module is configured as either "Y" or "M". If you grep for the module under /boot/config it would be marked either of those.
如果标记为“ Y”,则该模块已作为STATIC MODULE内置在内核中。 您无需再次重建它。
如果标记为“ M”,则仍将构建该模块,但其模块为DYNAMIC MODULE。 您可以使用“ $ lsmod”命令找到该模块,也可以在/ lib / modules中找到该模块。
So, if you don't find your module listed under /boot/config*** only then you will have to consider building that module
接下来,如果找不到列出的模块,则必须下载与PC上的版本相对应的内核源,然后仅编译这些模块并安装它们
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.