《ARM架构里运行PCIe demo》
From Terasic Wiki
(Difference between revisions)
Line 5: | Line 5: | ||
'''<font size=3>A1. 可以直接修改driver,把altera_pcie.c里所有access_ok的第一个参数拿掉,access_ok的定义从access_ok(type, addr, size)变更为access_ok(addr, size)。移除第一个type参数例如 VERIFY_READ 或 VERIFY_WRITE)。</font>''' | '''<font size=3>A1. 可以直接修改driver,把altera_pcie.c里所有access_ok的第一个参数拿掉,access_ok的定义从access_ok(type, addr, size)变更为access_ok(addr, size)。移除第一个type参数例如 VERIFY_READ 或 VERIFY_WRITE)。</font>''' | ||
[[File:Modify driver.png|1000px]] | [[File:Modify driver.png|1000px]] | ||
+ | |||
+ | '''<font size=3>Q2. 改了驱动后再编译没问题了,但是sh load_driver有问题提示Matching Device Not Found。</font>''' | ||
+ | [[File:Loaddriver error.jpg|900px]] |
Revision as of 10:31, 30 May 2025
Q1. 在ARM架构、Ubuntu20.04.6LTS里编译DE10-Pro cd里PCIe_SW_KIT/Linux/PCIe_Driver驱动,有很多这样的error "access_ok" undeclared。
A1. 可以直接修改driver,把altera_pcie.c里所有access_ok的第一个参数拿掉,access_ok的定义从access_ok(type, addr, size)变更为access_ok(addr, size)。移除第一个type参数例如 VERIFY_READ 或 VERIFY_WRITE)。
Q2. 改了驱动后再编译没问题了,但是sh load_driver有问题提示Matching Device Not Found。