Firefly开源社区

标题: RK3568J为什么lspci没有信息 [打印本页]

作者: 刘祎杰    时间: 2024-8-9 14:08
标题: RK3568J为什么lspci没有信息
firefly的rk3568j的lspci显示不出任何信息
  1. root@firefly:~# uname -a
  2. Linux firefly 4.19.232 #1 SMP Wed Aug 7 18:16:11 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
  3. root@firefly:~# lspci
  4. root@firefly:~# lspci -v
  5. root@firefly:~# lspci -k<span style="background-color: rgb(255, 255, 255);"></span>
复制代码

dmesg | grep "pci"的信息如下
  1. root@firefly:~# dmesg | grep "pci"
  2. [    0.177600] reg-fixed-voltage pcie30-avdd0v9: Looking up vin-supply from device tree
  3. [    0.177613] pcie30_avdd0v9: supplied by vcc3v3_sys
  4. [    0.177720] pcie30_avdd0v9: 900 mV
  5. [    0.177969] reg-fixed-voltage pcie30-avdd0v9: pcie30_avdd0v9 supplying 900000uV
  6. [    0.178112] reg-fixed-voltage pcie30-avdd1v8: Looking up vin-supply from device tree
  7. [    0.178126] pcie30_avdd1v8: supplied by vcc3v3_sys
  8. [    0.178211] pcie30_avdd1v8: 1800 mV
  9. [    0.178485] reg-fixed-voltage pcie30-avdd1v8: pcie30_avdd1v8 supplying 1800000uV
  10. [    0.180342] pcie_pi6c_oe_en: no parameters
  11. [    0.180593] reg-fixed-voltage pcie-pi6c-oe-regulator: pcie_pi6c_oe_en supplying 0uV
  12. [    0.182808] pcie30_3v3: 100 <--> 3300 mV at 3300 mV
  13. [    0.841098] rk-pcie 3c0800000.pcie: Looking up vpcie3v3-supply from device tree
  14. [    0.841226] rk-pcie 3c0800000.pcie: Linked as a consumer to regulator.19
  15. [    0.850621] snps pcie3phy FW update! size 8192
  16. [    0.864657] rk-pcie 3c0800000.pcie: missing legacy IRQ resource
  17. [    0.864702] rk-pcie 3c0800000.pcie: Missing *config* reg space
  18. [    0.864734] rk-pcie 3c0800000.pcie: host bridge /pcie@fe280000 ranges:
  19. [    0.864781] rk-pcie 3c0800000.pcie:   err 0xf0000000..0xf00fffff -> 0xf0000000
  20. [    0.864811] rk-pcie 3c0800000.pcie:    IO 0xf0100000..0xf01fffff -> 0xf0100000
  21. [    0.864837] rk-pcie 3c0800000.pcie:   MEM 0xf0200000..0xf1ffffff -> 0xf0200000
  22. [    0.864870] rk-pcie 3c0800000.pcie:   MEM 0x380000000..0x3bfffffff -> 0x380000000
  23. [    1.228656] ehci-pci: EHCI PCI platform driver
  24. [    1.875743] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  25. [    2.885791] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  26. [    3.899192] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  27. [    4.912880] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x1
  28. [    5.925741] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  29. [    6.939079] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  30. [    7.952421] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  31. [    8.969151] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  32. [    9.979138] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  33. [   10.992453] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
  34. [   12.005758] rk-pcie 3c0800000.pcie: PCIe Link Fail
  35. [   12.005802] rk-pcie 3c0800000.pcie: failed to initialize host
  36. [   33.766134] pcie30_3v3: disabling
复制代码




tchip_askquestions

image.png (25.26 KB, 下载次数: 240)

image.png

image.png (32.73 KB, 下载次数: 243)

image.png

dmesg.zip

21.68 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1


作者: 刘祎杰    时间: 2024-8-9 14:41
准确来说,是根据官方给的源码编译的,但是我也试了官方固件和自己编译出来的一样,啥也没有。

作者: 刘祎杰    时间: 2024-8-12 13:37
我还有一块瑞芯微RK3588X0的板子,他的lspci 的信息如下

  1. root@debian:~# uname -a
  2. Linux debian.toybrick 5.10.110-g164f0f2deb89-dirty #1 SMP Fri Feb 3 18:05:50 CST 2023 aarch64 GNU/Linux
  3. root@debian:~# lspci
  4. 0002:20:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3588 (rev 01)
  5. 0002:21:00.0 Network controller: Broadcom Inc. and subsidiaries Device 449d (rev 02)
  6. 0003:30:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3588 (rev 01)
  7. 0003:31:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
  8. root@debian:~# lspci -k
  9. 0002:20:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3588 (rev 01)
  10.         Kernel driver in use: pcieport
  11. lspci: Unable to load libkmod resources: error -2
  12. 0002:21:00.0 Network controller: Broadcom Inc. and subsidiaries Device 449d (rev 02)
  13.         Subsystem: Broadcom Inc. and subsidiaries Device aae8
  14.         Kernel driver in use: pcieh
  15. 0003:30:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3588 (rev 01)
  16.         Kernel driver in use: pcieport
  17. 0003:31:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
  18.         Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller
  19.         Kernel driver in use: r8168
复制代码

他多了一个Ethernet controller,这个用的就是r8168,我如果想RK3568J和这个一样,我该怎么做?
我有试过在RK3568J的源码里,config配置取消掉stmmac改为realtek,但是应该是没匹配上
作者: 板蓝根    时间: 2024-8-12 13:48
接什么设备?接到哪里?m2 pcie ?
作者: 刘祎杰    时间: 2024-8-12 13:54
板蓝根 发表于 2024-8-12 13:48
接什么设备?接到哪里?m2 pcie ?

就是自带的网口,我想跑igh接ethercat从站,要替换网卡驱动
作者: 板蓝根    时间: 2024-8-12 18:01
我们自带的网口不是 pcie 接口的,当然 lspci 找不到啊
作者: 刘祎杰    时间: 2024-8-12 18:23
板蓝根 发表于 2024-8-12 18:01
我们自带的网口不是 pcie 接口的,当然 lspci 找不到啊

那请问一下,自带的接口是使用的什么驱动,我之前在瑞芯微板子上跑的就是上面我发的,用的是r8168驱动,就可以内核里先配置取消加载,然后加载igh的网卡驱动进行通信。
我如果想和这个进行差不多的操作,所以想找到RK3568那两个网口使用的网卡驱动,然后替换掉




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1