This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

两块DM8168 PCIE通信



    我在做两块DM8168 PCIe通信实验,一块做RC,一块做EP,实验根据 TI81XX PSP PCI Express Endpoint Driver User Guide.pdf,出现很多错误,驱动问题已经解决了,现在应用程序又有错误,

     rc_app:

Unhandled fault: Precise External Abort on non-linefetch (0x0184

/dev/ti81xx_ep_hlpr open success  

no of ep in system is 1 

start address of mgmt_area is virt--c4000000 phy--84000000
Bus error

请问这是什么原因?datasheet上说程序适合DM8168,为什么执行出现错误?有没有最新的DM8168 PCIe 使用例程?

  • 在出错前后用lspci看看PCIE的状态

  • lspci 可以找到 DM8168  EP设备,执行ep_app时,出现错误:

    ti81xx_ep_app.c:778:main(): Not a valid id assigned to it                       
     still continue by manually assigning valid id -- 2                             
    /dev/ti81xx_pcie_ep open sucsess/dev/ti81xx_pcie_ep open sucsessINFO: start add0
    initialization of management mgmt_area complete                                 
    ti81xx_ep_app.c:893:main(): mgmt area access not granted                        
    ti81xx_ep_app.c:893:main(): mgmt area access not granted

    ………………………………………………………………………… 

    执行rc_app 出现错误:

    /dev/ti81xx_ep_hUnhandled fault: Precise External Abort on non-linefetch (0x0184
    lpr open successno of ep in system is 1                                         
    start address of mgmt_area is virt--c4000000  phy--84000000                     

    Bus error

    追踪错误,都是mgmt_area的错误,不知道为什么要在这里面加上MGMT。

  • 您好,请问您的Bus error问题解决了没,我也遇到同样的问题,应该是在mmap后出错的。

  • 你好,我正在做DM8168的PCIE部分,作为EP模式,但是按照官方的教程加载epdrv驱动总是出错,你知道原因吗?

  • 需要在uboot 初始化pcie。可参考pcie boot的相关函数