Quantcast
Channel: 数字信号处理器 (DSP) & ARM® 微处理器
Viewing all articles
Browse latest Browse all 21822

帖子: evmk2h linux下连接外接PCIE设备失败

$
0
0

自己做了一块AMC到PCIE的转接板,一头接EVMK2H的AMC接口,一头插PCIE采集卡。EVMK2H作为PCIE主控,启动LINUX系统时有扫描PCIE设备的过程,但是未扫描到。

进入系统后安装采集卡驱动,系统未能正常添加设备(在8168评估板上能正常扫描和添加设备)。请问EVMK2H如何才能在LINUX下实现与PCIE设备的正常连接和操作?

附EVMK2H的启动日志:

[ 288.972726] keystone-pcie: keystone_pcie_rc_init - start
[ 288.972797] keystone2_pcie_serdes_setup
[ 288.974495] keystone2_pcie_serdes_setup done, en_link_train = 1
[ 288.974521] keystone-pcie: MEM 0x0000000050000000..0x000000005fffffff -> 0x0000000050000000
[ 288.974529] keystone-pcie: IO 0x0000000024000000..0x0000000024003fff -> 0x0000000000000000
[ 288.974557] keystone-pcie: pcie - number of legacy irqs = 4
[ 288.974599] keystone-pcie: pcie - number of MSI host irqs = 8, msi_irqs = 32
[ 289.059710] keystone-pcie: Doing PCI Setup...Done
[ 289.059715] keystone-pcie: Starting PCI scan...
[ 289.059808] PCI host bridge to bus 0000:00
[ 289.059817] pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
[ 289.059823] pci_bus 0000:00: root bus resource [io 0x0000-0x3fff]
[ 289.059829] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 289.059864] PCI: bus0: Fast back to back transfers enabled
[ 289.059877] keystone-pcie: Ending PCI scan...
[ 289.059883] keystone-pcie: keystone_pcie_rc_init - end

驱动加载日志:

root@keystone-evm:~# insmod ProCapture.ko
root@keystone-evm:~#

8168评估板加载日志:

ti81xx_pcie: Invoking PCI BIOS...

ti81xx_pcie: Setting up Host Controller...

ti81xx_pcie: Register base mapped @0x87820000

ti81xx_pcie: Starting PCI scan...

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers disabled

pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]

pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x2000ffff]

pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x2000ffff] (PCI address [0x20000000-0x2000ffff])

pci 0000:00:00.0: PCI bridge to [bus 01-01]

pci 0000:00:00.0:   bridge window [io  disabled]

pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]

pci 0000:00:00.0:   bridge window [mem pref disabled]

PCI: enabling device 0000:00:00.0 (0140 -> 0143)

8168评估板 驱动加载日志:

root@dm816x:~# insmod ProCapture.ko
PCI: enabling device 0000:01:00.0 (0140 -> 0142)
Pro Capture: V4L2 device registered as video0
root@dm816x:~# 

ti81xx_pcie: Invoking PCI BIOS...ti81xx_pcie: Setting up Host Controller...ti81xx_pcie: Register base mapped @0x87820000ti81xx_pcie: Starting PCI scan...PCI: bus0: Fast back to back transfers disabledPCI: bus1: Fast back to back transfers disabledpci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x2000ffff]pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x2000ffff] (PCI address [0x20000000-0x2000ffff])pci 0000:00:00.0: PCI bridge to [bus 01-01]pci 0000:00:00.0:   bridge window [io  disabled]pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]pci 0000:00:00.0:   bridge window [mem pref disabled]PCI: enabling device 0000:00:00.0 (0140 -> 0143)


Viewing all articles
Browse latest Browse all 21822

Trending Articles