We are using BSP of kernel version 4.19.79 for our SOM & have made appropriate device tree changes to bring-up pcie2_ep.
We tried following this script to bring up PCIe lane 2 as endpoint - https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Foundational_Components/Kernel/Kernel_Drivers/PCIe/PCIe_End_Point.html
But this TI website doesn't contain instructions specifically for for 4.19 kernel version, So we tried following the most recent one i.e, for kernel 4.14.
While executing the commands, we were not able to execute a command which binds the pci-epf-test driver to EP controller,
$ ln -s functions/pci_epf_test/func1 controllers/51000000.pcie_ep/
ln: controllers/51000000.pcie_ep/: No such file or directory
as there is no EP controller created inside /sys/kernel/config/pci_ep/controllers .
Is there instructions specifically for 4.19 kernel ?
Please help.
Thanks & Regards,
Sujan