.gnu.linkonce.this_module section size must match the kernel's built struct module size at run time的解决办法

编module,加载的时候碰到:

insmod: ERROR: could not insert module ice.ko: Invalid module format

查看dmesg:

.gnu.linkonce.this_module section size must match the kernel's built struct module size at run time

回想自己在编译时候的情形,我觉得是我把linux-header搞坏了,也就是/lib/modules/$(uname -r)/build指向的kernel tree。重新安装以下linux header。

apt install --reinstall linux-headers-$(uname -r)

再次编译,安装,成功。

 

posted on   半山随笔  阅读(871)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

点击右上角即可分享
微信分享提示