使用insmod命令无法加载模块,内核提示"<your kernel name>: disagrees about version of symbol module_layout insmod: ERROR: could not insert module <your kernel name>.ko: Invalid module format

保证两点

1. 使用的相同内核源码

2. 使用的相同内核配置(指生成的配置文件)

原文地址:https://www.cnblogs.com/dakewei/p/12762939.html