I am use PCIe to communicate between two Xaviers now, but I have some problem.
According to document 《NVIDIA Jetson AGX Xavier PCIe Endpoint Software for L4T》, I set the endpoint xavier as follows:
Did you flash the system which you would like to operate in PCIe endpoint mode with the correct ODM data? i.e. setting 12th bit in ODM data to ‘1’ to operate PCIe in endpoint mode.
Execution script “apply_binaries.sh” at folder Linux_for_Tegra
sudo ./flash.sh jetson-xavier mmcblk0p1
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.
If I am not config CONFIG_PCIE_TEGRA_DW_EP=y, The /sys/kernel/config/pci_ep/functions/pci_epf_nv_test/141a0000.pcie_ep will be appeared. But the kernel log will be error about endpoint as follows:
tegra-pcie-dw 141a0000.pcie_ep: invalid max-speed (err=-22), set to Gen-1
If I am set CONFIG_PCIE_TEGRA_DW_EP=y, the kernel log show
tegra-pcie-dw-ep 141a0000.pcie_ep: EP BAR DMA addr = 0XFFF00000.
Hi,
Please don’t change any kernel config.
After downloading the package, flash the one that you want to operate in RootPort mode with default ODM data and the one you want to operate as endpoint with ODM data modified to have ‘1’ set in 12th bit.
After booting the EP system, execute the following commands as sudo
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.
I have the same questions,can you tell me how to solve this problem?