把編譯好的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頭文件路徑,也能夠下載和機
相關文章
相關標籤/搜索