bingxia 发表于 2021-11-15 17:44:07

【FAQ】Ubuntu18.04.5系统中编译PCIe驱动提示inter_fpga_pcie_dma.c error

本帖最后由 BOB_Sun 于 2021-11-25 10:15 编辑

Q:DE10-Agilex的版本是Rev C B2E2,Linux系统是Ubuntu 18.04.5 LTS,按照DE10-Agilex user manual的8.3 PCI Express Software Stack小节的步骤执行make命令编译intel_fpga_pcie_drv.ko驱动时报错,提示inter_fpga_pcie_dma.c: error: dereferencing pointer to incomplete type 'struct timeval',storage size of 'start_tv' isn't known和storage size of 'end_tv' isn't known,该如何解决呢?



A: 这是因为有些库文件依赖于较高版本的glibc库,可以尝试以下几种方法解决:

1、降低Ubuntu 18.04.5 LTS系统的内核版本,从kernel 5.8降到kernel 5.4:

2、在intel_fpga_pcie_dma.c中加入<linux/time.h>:



3、切换到DE10-Agilex user manual手册所建议的Ubuntu 20.04系统


页: [1]
查看完整版本: 【FAQ】Ubuntu18.04.5系统中编译PCIe驱动提示inter_fpga_pcie_dma.c error