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.

AM5728: How to read pcie data on EP side

Part Number: AM5728

Hi,

I have configured my sitara AM5728 processor as endpoint i.e pcie2_ep on dts. This EP is connected to zynqmp  which is configured as root complex.

Now I want to read data on sitara EP side using devmem tool. But when I give "devmem2 0x30000000" command, my kernel is hanging & I am not able to proceed further.

How can read read pcie data on EP side. Please help on this.

Thank you.

  • Hi,

    My Kernel hang problem is solved now. My pci link was not up when I was running devmem command.

    Once the pci link between zynqmp and sitara Am5728 is up, then I can able to run devmem command.

    But how can I do read and write operation in sitara EP using devmem and where can see my pci BAR address in EP. Please help on this.

    Thank you.

  • Puneeth, 

    sorry for the delayed response. on your last question, can you restate the question, as I am not sure if you are trying to find out the PCIe memory map from EP side (?), if so, you can use lspci from RC side to list all exported BAR windows from EP. 

    regards

    Jian