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.

DM81xx pcie驱动的问题



大家好!

        我现在在调试dm8127的linux下的pcie驱动,我按照TI81XX_PSP_PCI_Express_Root_Complex_Driver_User_Guide 手册在内核里面加入pci bus驱动后,

然后 ls /sys/bus/pci/devices/ 发现什么也没有,

 

而文档里面显示

00:00.0 => TI816X PCIe RC Host

 01:00.0 => Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express Endpoint

我想如果没有设备,那至少pcie host bridge 会被检测到吧,而实现上什么也没有,希望有用过的朋友解释下,谢谢,我用的开发包是ipnc_rdk3.5

 

 

 

  • 内核启动的时候关于PCI-E有啥么打印没有?

  • eason,你好

    内核没有打印pcie的信息,应该是没有加载pcie的驱动,我查看   pcie-ti81xx.c   里面,有这么一段

    IMPORTANT NOTE: We are relying on SoC/Board level code to check PCIESS  * mode setting (RC/EP) and register the RC device only in RC mode.  

     static int __init ti81xx_pcie_rc_init(void)

     {  platform_driver_register(&ti81xx_pcie_driver);  return 0; }    

     

    是不是需要通过什么方式配置成RC模式才会加载pcie驱动,  我们用的8127,参考8148 evm的原理图设计的pcie部分,如何在8127让内核加载pcie驱动呢

     

  • #if !defined(CONFIG_MACH_DM385IPNC) && !defined(CONFIG_MACH_TI8148IPNC)

     ti81xx_init_pcie();

     #endif

    找到问题了,8127将pcie初始化屏蔽了,我打开后,pcie可以初始化但是扫描不到设备,不知道是不是其他地方还需要修改,不知道和uboot有没有关系,您能提供一些关于在8127上使用pcie的信息吗