.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 @ 2024-06-27 13:42  半山随笔  阅读(143)  评论(0编辑  收藏  举报