Xavier pcie

In the guide of the NVIDIA JETSON AGX XAVIER PCIE ENDPOINT SOFTWARE FOR L4T. I have some problems.

I create the fun1 under /sys/kernel/config/pci_ep/functions/pci_epf_nv_test/, the vendorid and deviceid will be appeared, but the /sys/kernel/config/pci_ep/controllers if null, no foler 141a0000.pcie_ep under controllers.

when I buid /sys/kernel/config/pci_ep/controllers/141a0000.pcie_ep,I can’t do this because I don’t have permission.

what can i do to have /sys/kernel/config/pci_ep/controllers/141a0000.pcie_ep?

I think you missed to flash AGX with ODMDATA=0x9191000 to enable EP mode.

Please share complete dmesg and “lspci -vvv” output

I have tried from the beginning from the flash.
I have editted p2972-0000.conf.common, change it from 0x9190000 to 0x9191000.
when I do the next to reflash the system:
sudo ./flash.sh jetson-xavier mmcblk0p1
but it has error as follows:

How can I solve this problem?

Are you putting device is recovery mode before trying to flash?

please follow sequence to put device is recovery, you can confirm if device is in recovery by checking lsusb output:

lsusb | grep -i “NVidia Corp”

It shows NVidia Corp. I can confirm the device is in recovery.

Are you sure you are using the driver package from nv download center or sdkmanager?

Did you ever use this driver package to flash your board? Current issue is not related to PCIe configuration at all.