module_layout版本不兼容 [英] module_layout version incompatibility

查看:118
本文介绍了module_layout版本不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装由我移植的Linux内核旧版模块. 出现以下错误:

I try to insmod a linux kernel legacy module being ported by me. The following errors appear:

> sudo insmod camac-mx.ko
insmod: error inserting 'camac-mx.ko': -1 Invalid module format
dmesg |tail -n 1
[1312783.938299] camac_mx: disagrees about version of symbol module_layout

我该如何解决?

推荐答案

这表示您已针对与运行时不同的内核版本编译了模块.请注意,即使正在运行的内核和内核源具有相同的数值(例如,两者均为2.6.31-20服务器),如果两者使用不同的配置选项,则可能会看到此错误.另外,请检查计算机上是否有该模块的多个版本,并确保您加载了正确的版本.

This indicates you have compiled the module against a different version of the kernel than is running. Note that even if the running kernel and kernel source have the same numerical value (e.g. both are 2.6.31-20-server), if the two use different configuration options, you may see this error. Also check if there are multiple versions of this module on the machine and ensure you are loading the correct one.

这篇关于module_layout版本不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆