标题: 【FAQ】编译PCIe驱动提示insmod: ERROR: could not insert module [打印本页] 作者: Doreen 时间: 2021-9-15 17:25 标题: 【FAQ】编译PCIe驱动提示insmod: ERROR: could not insert module Q: 因为使用的是Ubuntu 20.04 lts test machine (咱们手册推荐Centos 7.2 Linux PC ),编译PCIe驱动遇到提示:"insmod: ERROR: could not insert module ./altera_pcie.ko: Invalid module format"
而且:
My kernel header-files (umode -r) are 5.11.0.34-generic
The altera_pcie.ko file (modinfo) is compiled also for 5.11.0.34-generic