您好,我使用的是DM8168,使用demo板的PCI2插槽,插上我的PCI2板卡,DM8168的demo板启动后运行lspci命令显示如下:
root@seed_dvs8168:~# lspci
00:00.0 Class 0604: 104c:8888
我试过不同类型的PCIE板卡,读出来的Vendorid都是104c:8888,这个是不对的,查看kernel的启动打印如下
谁能帮忙分析一下这是什么原因,应该如何修改。
Starting kernel …
Uncompressing Linux… done, booting the kernel.
map_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
registered ti816x_vpss device
registered ti816x_gpio_vr device
registered TI816x on-chip HDMI device
registered ti816x_sr device
registered ti81xx_vidout device
pm_dbg_init: only OMAP3 supported
ti81xx_pcie: Invoking PCI BIOS…
ti81xx_pcie: Setting up Host Controller…
ti81xx_pcie: Register base mapped @0xd0820000
ti81xx_pcie: Starting PCI scan…
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers disabled
PCI: bus2: Fast back to back transfers disabled
PCI: bus3: Fast back to back transfers enabled
PCI: bus4: Fast back to back transfers enabled
PCI: bus5: Fast back to back transfers enabled
PCI: bus6: Fast back to back transfers enabled
PCI: bus7: Fast back to back transfers enabled
PCI: bus8: Fast back to back transfers enabled
pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x206fffff]
pci 0000:00:00.0: BAR 9: assigned [mem 0x20700000-0x20cfffff pref]
pci 0000:00:00.0: BAR 7: can't assign io (size 0x3000)
pci 0000:01:00.0: BAR 8: assigned [mem 0x20000000-0x205fffff]
pci 0000:01:00.0: BAR 9: assigned [mem 0x20700000-0x20cfffff 64bit pref]
pci 0000:01:00.0: BAR 0: assigned [mem 0x20600000-0x2061ffff]
pci 0000:01:00.0: BAR 0: set to [mem 0x20600000-0x2061ffff] (PCI address [0x20600000-0x2061ffff])
pci 0000:01:00.0: BAR 7: can't assign io (size 0x3000)
pci 0000:02:01.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
pci 0000:02:01.0: BAR 9: assigned [mem 0x20700000-0x208fffff 64bit pref]
pci 0000:02:05.0: BAR 8: assigned [mem 0x20200000-0x203fffff]
pci 0000:02:05.0: BAR 9: assigned [mem 0x20900000-0x20afffff 64bit pref]
pci 0000:02:09.0: BAR 8: assigned [mem 0x20400000-0x205fffff]
pci 0000:02:09.0: BAR 9: assigned [mem 0x20b00000-0x20cfffff 64bit pref]
pci 0000:02:01.0: BAR 7: can't assign io (size 0x1000)
pci 0000:02:05.0: BAR 7: can't assign io (size 0x1000)
pci 0000:02:09.0: BAR 7: can't assign io (size 0x1000)
pci 0000:02:01.0: PCI bridge to [bus 03-03]
pci 0000:02:01.0: bridge window [io disabled]
pci 0000:02:01.0: bridge window [mem 0x20000000-0x201fffff]
pci 0000:02:01.0: bridge window [mem 0x20700000-0x208fffff 64bit pref]
pci 0000:02:04.0: PCI bridge to [bus 04-04]
pci 0000:02:04.0: bridge window [io disabled]
pci 0000:02:04.0: bridge window [mem disabled]
pci 0000:02:04.0: bridge window [mem pref disabled]
pci 0000:02:05.0: PCI bridge to [bus 05-05]
pci 0000:02:05.0: bridge window [io disabled]
pci 0000:02:05.0: bridge window [mem 0x20200000-0x203fffff]
pci 0000:02:05.0: bridge window [mem 0x20900000-0x20afffff 64bit pref]
pci 0000:02:06.0: PCI bridge to [bus 06-06]
pci 0000:02:06.0: bridge window [io disabled]
pci 0000:02:06.0: bridge window [mem disabled]
pci 0000:02:06.0: bridge window [mem pref disabled]
pci 0000:02:08.0: PCI bridge to [bus 07-07]
pci 0000:02:08.0: bridge window [io disabled]
pci 0000:02:08.0: bridge window [mem disabled]
pci 0000:02:08.0: bridge window [mem pref disabled]
pci 0000:02:09.0: PCI bridge to [bus 08-08]
pci 0000:02:09.0: bridge window [io disabled]
pci 0000:02:09.0: bridge window [mem 0x20400000-0x205fffff]
pci 0000:02:09.0: bridge window [mem 0x20b00000-0x20cfffff 64bit pref]
pci 0000:01:00.0: PCI bridge to [bus 02-08]
pci 0000:01:00.0: bridge window [io disabled]
pci 0000:01:00.0: bridge window [mem 0x20000000-0x205fffff]
pci 0000:01:00.0: bridge window [mem 0x20700000-0x20cfffff 64bit pref]
pci 0000:00:00.0: PCI bridge to [bus 01-08]
pci 0000:00:00.0: bridge window [io disabled]
pci 0000:00:00.0: bridge window [mem 0x20000000-0x206fffff]
pci 0000:00:00.0: bridge window [mem 0x20700000-0x20cfffff pref]
PCI: enabling device 0000:00:00.0 (0140 -> 0143)
PCI: enabling device 0000:01:00.0 (0140 -> 0143)
PCI: enabling device 0000:02:01.0 (0140 -> 0143)
PCI: enabling device 0000:02:04.0 (0140 -> 0143)
PCI: enabling device 0000:02:05.0 (0140 -> 0143)
PCI: enabling device 0000:02:06.0 (0140 -> 0143)
PCI: enabling device 0000:02:08.0 (0140 -> 0143)
PCI: enabling device 0000:02:09.0 (0140 -> 0143)
pci 0000:00:00.0: BAR 7: can't assign io (size 0x3000)
pci 0000:01:00.0: BAR 7: can't assign io (size 0x3000)
pci 0000:02:01.0: BAR 7: can't assign io (size 0x1000)
pci 0000:02:05.0: BAR 7: can't assign io (size 0x1000)
pci 0000:02:09.0: BAR 7: can't assign io (size 0x1000)
bio: create slab <bio-0> at 0
regulator: VFB: 800 <–> 1025 mV at 920 mVvgaarb: loaded
lucky2:
您好
我想请问下:8168 PCIe配置是在应用代码中配置,还是驱动中?
比如我配置8168为EP设备,则需要配置寄存器PCIE_CFG的PCIE_DEVTYPE 字段,我在ep_drv驱动中没有看到Z这方面的配置
或者配置成RC设备,应该在哪里配置呢?
我在网上下载的demo里,没有见到这方面的配置,在驱动代码中也没有看到,不知。类似下面的那些配置,没有看到相关代码,那应该是怎样操作的呢
谢谢
xavier:
回复 lucky2:
顶下楼主,现在这个有答案了吗?
知道的也回复下
rain li:
回复 xavier:
你好,想问一下。我用sd卡启动了uboot,linux也跑起来了。现在想要查看一下与板子通过pcie 连接的fpga的设备号,不过输入指令lspci,显示command not found. 我该如何解决这个问题?
xavier:
回复 rain li:
自己网上下载,编译就可以了
rain li:
回复 xavier:
是不是在x86结构编译的结果,不能用到arm的架构上。有没有什么交叉编译的资料等?或者是下载的网址等可以推荐?太感谢了。
xavier:
回复 rain li:
当然需要交叉编译
sichang fu:
回复 rain li:
请问,你的问题解决了吗?我也遇到了同样的问题,能说一下怎么解决的吗?
rain li:
回复 lucky2:
TI8168板子的PCIE搜索设备号的问题 ?
1,linux内核启动之后,输入lspci命令,没有任何的打印信息,包括其TI816X其本身的 host的信息也没有。按照pcie user guide 将 PCIe
debugging enabled,之后就有No link/device的信息出现。
2,系统启动过程中,关于PCIE的打印信息只有如下内容:
我们的打印信息中:ti81xx_pcie: Register base mapped @0xcb820000,而看网上别人的打印信息是,Register base mapped @0xd0820000.是否是 这个地址映射出了问题。
3,在内核中加入两句话,
pci_bus_write_config_dword(bus,devfn,PCI_VENDOR_ID,0x66);//added
pci_bus_read_config_dword(bus,devfn,PCI_VENDOR_ID,&l);
发现人为写入的0X66,在下面的读语句中l=-1.这又是什么原因造成的?
weifeng liang:
回复 rain li:
请问你这个问题有解决吗?