.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)
再次编译,安装,成功。
浙公网安备 33010602011771号