把编译好的ko文件加载模块时出错:Error: could not insert module hello_world.ko: Invalid module format

编译一个打印helloworld信息驱动模块的时候遇到问题:spa insmod: ERROR: could not insert module hello_world.ko: Invalid module format3d 问题应该是编译模块时选择的Linux头文件目录与当前运行的系统版本不匹配,使用命令:uname -r查看当前运行的内核版本,而后选择正确的Linux头文件路径,也能够下载和机
相关文章
相关标签/搜索