Other Parts Discussed in Thread:AM5718
一、按照官网上的
software-dl.ti.com/…/PCIe_End_Point.html
将5718 pcie1配置为ep模式
修改1:
&pcie1_rc {
– status = "okay";
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
};
&pcie1_ep {
+ status = "okay";
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
};
修改2:
CONFIG_PCI_ENDPOINT=y
CONFIG_PCI_EPF_TEST=y
CONFIG_PCI_DRA7XX_EP=y
修改后,替换zImage和dtb文件,系统启动后
执行这个命令ls /sys/class/pci_epc/
没有发现51000000.pcie_ep设备
二、根据视频知道中的操作
(training.ti.com/enabling-pcie-end-point-ep-mode-sitara-am57x-using-processor-sdk-linux)
Kernel Configuration and Build
KConfig changes to enable End Point Mode
make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am57xxevm_defconfig
make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
Bus Support-> PCI Endpoint->PCI Endpoint Support <select>
->PCI Endpoint Test Drive <select>
PCI Controller Drivers->PCIe Mode-> endpoint only mode <select>
内核中没有找到这部分源码PCI Controller Drivers->PCIe Mode-> endpoint only mode <select>
Shine:
请问您的硬件是怎么连接的? 是AM5718 IDK开发板吗? processor SDK是哪个版本?