Firefly开源社区

标题: AIO-3588MQ启动pcie报错 [打印本页]

作者: bluesea    时间: 2022-12-1 12:00
标题: AIO-3588MQ启动pcie报错


aio-3588jq-8G内存版本,只要连接一个外部pcie板卡,都会报这个错误,请问如何解决。
tchip_askquestions

boot.zip

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


作者: 799959745    时间: 2022-12-1 15:55
接的是什么pcie板卡?
作者: bluesea    时间: 2022-12-1 20:56
799959745 发表于 2022-12-1 15:55
接的是什么pcie板卡?

米联客zynq7035 pcie2.0 x4 xdma
几个比较老的显卡
还有一个pciex8的视频采集卡
作者: 799959745    时间: 2022-12-2 10:18
bluesea 发表于 2022-12-1 20:56
米联客zynq7035 pcie2.0 x4 xdma
几个比较老的显卡
还有一个pciex8的视频采集卡

试试这个修改看看能不能解决

32bits-np空间不足.zip

1.25 KB, 下载次数: 10, 下载积分: 灯泡 -1 , 经验 -1


作者: bluesea    时间: 2022-12-2 11:02
本帖最后由 bluesea 于 2022-12-2 11:03 编辑
799959745 发表于 2022-12-2 10:18
试试这个修改看看能不能解决

您好,请问是这样修改吗 ?               

ranges = <0x00000800 0x0 0xf0000000 0x0 0xf0000000 0x0 0x100000
0x81000000 0x0 0xf0100000 0x0 0xf0100000 0x0 0x100000
0x82000000 0x0 0xf0200000 0x0 0xf0200000 0x0 0xe00000
0x82000000 0x0 0xf1000000 0x9 0x00000000 0x0 0x3000000
0xc3000000 0x9 0x00000000 0x9 0x03000000 0x0 0x3d000000>;
                reg = <0x0 0xfe150000 0x0 0x10000>,
                      <0xa 0x40000000 0x0 0x400000>;


作者: 799959745    时间: 2022-12-2 11:08
是的。减号就是表示去除,加号表示添加
作者: bluesea    时间: 2022-12-2 14:01
本帖最后由 bluesea 于 2022-12-2 15:06 编辑
799959745 发表于 2022-12-2 11:08
是的。减号就是表示去除,加号表示添加

我同时修改的
u-boot/arch/arm/dts/rk3588.dtsi
kernel/arch/arm64/boot/dts/rockchip/rk3588.dtsi

版本:rk3588_repo_sdk_v1.0.2a.7z bundle到104b
./build.sh aio-3588q-ubuntu.mk
-----------------------------------------------------------------------------------
还是存在如下启动错误
-----------------------------------------------------------------------------------
[    2.872557] wireguard: nonce counter self-tests: pass
[    3.013123] rk-pcie fe170000.pcie: PCIe Linking... LTSSM is 0x3
[    3.038668] rk-pcie fe170000.pcie: PCIe Linking... LTSSM is 0x3
[    3.065332] rk-pcie fe170000.pcie: PCIe Linking... LTSSM is 0x3
[    3.085336] rk-pcie fe150000.pcie: PCIe Link up, LTSSM is 0x130011
[    3.085505] rk-pcie fe150000.pcie: PCI host bridge to bus 0000:00
[    3.085522] pci_bus 0000:00: root bus resource [bus 00-0f]
[    3.085534] pci_bus 0000:00: root bus resource [??? 0xf0000000-0xf00fffff flags 0x0]
[    3.085550] pci_bus 0000:00: root bus resource [io  0x100000-0x1fffff] (bus address [0xf0100000-0xf01fffff])
[    3.085562] pci_bus 0000:00: root bus resource [mem 0xf0200000-0xf0ffffff]
[    3.085575] pci_bus 0000:00: root bus resource [mem 0x900000000-0x902ffffff] (bus address [0xf1000000-0xf3ffffff])
[    3.085588] pci_bus 0000:00: root bus resource [mem 0x903000000-0x93fffffff pref] (bus address [0x900000000-0x93cffffff])
[    3.085632] pci 0000:00:00.0: [1d87:3588] type 01 class 0x060400
[    3.085654] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x3fffffff]
[    3.085669] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x3fffffff]
[    3.085683] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    3.085757] pci 0000:00:00.0: supports D1 D2
[    3.085767] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    3.092003] rk-pcie fe170000.pcie: PCIe Linking... LTSSM is 0x3
[    3.094693] pci_bus 0000:01: busn_res: can not insert [bus 01-ff] under [bus 00-0f] (conflicts with (null) [bus 00-0f])
[    3.094802] pci 0000:01:00.0: [10ee:7024] type 00 class 0x070001
[    3.094871] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    3.094905] pci 0000:01:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    3.095054] pci 0000:01:00.0: enabling Extended Tags
[    3.095257] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot
[    3.103915] pci 0000:00:00.0: BAR 0: no space for [mem size 0x40000000]
[    3.103942] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x40000000]
[    3.103956] pci 0000:00:00.0: BAR 1: no space for [mem size 0x40000000]
[    3.103967] pci 0000:00:00.0: BAR 1: failed to assign [mem size 0x40000000]

[    3.103980] pci 0000:00:00.0: BAR 8: assigned [mem 0xf0200000-0xf03fffff]
[    3.103993] pci 0000:00:00.0: BAR 6: assigned [mem 0xf0400000-0xf040ffff pref]
[    3.104009] pci 0000:01:00.0: BAR 0: assigned [mem 0xf0200000-0xf02fffff]
[    3.104033] pci 0000:01:00.0: BAR 1: assigned [mem 0xf0300000-0xf030ffff]
[    3.104053] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    3.104066] pci 0000:00:00.0:   bridge window [mem 0xf0200000-0xf03fffff]
[    3.106793] pcieport 0000:00:00.0: PME: Signaling with IRQ 141
[    3.118666] rk-pcie fe170000.pcie: PCIe Linking... LTSSM is 0x3
[    3.145333] rk-pcie fe170000.pcie: PCIe Linking... LTSSM is 0x3
[    3.148018] wireguard: ratelimiter self-tests: pass
[    3.148103] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    3.148108] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    3.148436] tun: Universal TUN/TAP device driver, 1.6
[    3.148566] CAN device driver interface



作者: 799959745    时间: 2022-12-2 15:16
bluesea 发表于 2022-12-2 14:01
我同时修改的
u-boot/arch/arm/dts/rk3588.dtsi
kernel/arch/arm64/boot/dts/rockchip/rk3588.dtsi

把上面的修改取消,试试这个修改:
  1. diff --git a/arch/arm64/boot/dts/rockchip/rk3588.dtsi b/arch/arm64/boot/dts/rockchip/rk3588.dtsi
  2. index b70a40bee82a..279cb67b4051 100644
  3. --- a/arch/arm64/boot/dts/rockchip/rk3588.dtsi
  4. +++ b/arch/arm64/boot/dts/rockchip/rk3588.dtsi
  5. @@ -693,7 +693,7 @@
  6.                 num-lanes = <1>;
  7.                 phys = <&combphy1_ps PHY_TYPE_PCIE>;
  8.                 phy-names = "pcie-phy";
  9. -               ranges = <0x00000800 0x0 0xf2000000 0x0 0xf2000000 0x0 0x100000
  10. +               ranges = <0x00000800 0x0 0xf2000000 0x0 0xf2000000 0x0 0x800000
  11.                           0x81000000 0x0 0xf2100000 0x0 0xf2100000 0x0 0x100000
  12.                           0x82000000 0x0 0xf2200000 0x0 0xf2200000 0x0 0xe00000
  13.                           0xc3000000 0x9 0x80000000 0x9 0x80000000 0x0 0x40000000>;
复制代码




作者: 799959745    时间: 2022-12-2 15:17
只修改kernel,不要修改u-boot
作者: bluesea    时间: 2022-12-2 15:35
799959745 发表于 2022-12-2 15:17
只修改kernel,不要修改u-boot

感谢 我再试一下
作者: bluesea    时间: 2022-12-2 15:39
799959745 发表于 2022-12-2 15:16
把上面的修改取消,试试这个修改:

您好 这个是pciex4的配置吗
作者: 799959745    时间: 2022-12-2 15:41
改 rk3588.dtsi 文件的这个节点  pcie2x1l0: pcie@fe170000


作者: bluesea    时间: 2022-12-2 16:42
799959745 发表于 2022-12-2 15:16
把上面的修改取消,试试这个修改:

您好 还是同样的错误 可以加一下微信吗15040286625
作者: 799959745    时间: 2022-12-5 09:44
bluesea 发表于 2022-12-2 16:42
您好 还是同样的错误 可以加一下微信吗15040286625

你是怎么改的?执行下 git diff 看下修改记录
作者: bluesea    时间: 2022-12-5 14:07
799959745 发表于 2022-12-5 09:44
你是怎么改的?执行下 git diff 看下修改记录

节点  pcie2x1l0: pcie@fe170000修改如下:            
              ranges = <0x00000800 0x0 0xf2000000 0x0 0xf2000000 0x0 0x800000
                          0x81000000 0x0 0xf2100000 0x0 0xf2100000 0x0 0x100000
                          0x82000000 0x0 0xf2200000 0x0 0xf2200000 0x0 0xe00000
                          0xc3000000 0x9 0x80000000 0x9 0x80000000 0x0 0x40000000>;
其他都没改的。
作者: 799959745    时间: 2022-12-5 17:32
编译烧录了吗
作者: bluesea    时间: 2022-12-5 21:49
799959745 发表于 2022-12-5 17:32
编译烧录了吗

是的 编译烧录测试了
作者: kernel_sa    时间: 2023-5-15 15:09
PCIE 3.0 x 2  读NVME 1T的硬盘不对。

[    4.383970] reg-fixed-voltage vcc3v3-pcie30: Looking up vin-supply from device tree
[    4.383974] vcc3v3_pcie30: supplied by vcc12v_dcin
[    4.389660] vcc3v3_pcie30: 3300 mV, enabled
[    4.389724] reg-fixed-voltage vcc3v3-pcie30: vcc3v3_pcie30 supplying 3300000uV
[    4.723208] rk-pcie fe150000.pcie: invalid prsnt-gpios property in node
[    4.723225] rk-pcie fe150000.pcie: Looking up vpcie3v3-supply from device tree
[    4.734419] rk-pcie fe150000.pcie: missing legacy IRQ resource
[    4.734442] rk-pcie fe150000.pcie: IRQ msi not found
[    4.734451] rk-pcie fe150000.pcie: use outband MSI support
[    4.734461] rk-pcie fe150000.pcie: Missing *config* reg space
[    4.734478] rk-pcie fe150000.pcie: host bridge /pcie@fe150000 ranges:
[    4.734503] rk-pcie fe150000.pcie:      err 0x00f0000000..0x00f00fffff -> 0x00f0000000
[    4.734524] rk-pcie fe150000.pcie:       IO 0x00f0100000..0x00f01fffff -> 0x00f0100000
[    4.734549] rk-pcie fe150000.pcie:      MEM 0x00f0200000..0x00f0ffffff -> 0x00f0200000
[    4.734571] rk-pcie fe150000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    4.734609] rk-pcie fe150000.pcie: Missing *config* reg space
[    4.734643] rk-pcie fe150000.pcie: invalid resource
[    4.997753] rk-pcie fe150000.pcie: PCIe Link up, LTSSM is 0x230011
[    4.997930] rk-pcie fe150000.pcie: PCI host bridge to bus 0000:00
[    4.997949] pci_bus 0000:00: root bus resource [bus 00-0f]
[    4.997964] pci_bus 0000:00: root bus resource [??? 0xf0000000-0xf00fffff flags 0x0]
[    4.997979] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xf0100000-0xf01fffff])
[    4.997992] pci_bus 0000:00: root bus resource [mem 0xf0200000-0xf0ffffff]
[    4.998005] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    4.998053] pci 0000:00:00.0: [1d87:3588] type 01 class 0x060400
[    4.998077] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x3fffffff]
[    4.998094] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x3fffffff]
[    4.998111] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    4.998185] pci 0000:00:00.0: supports D1 D2
[    4.998198] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    5.008122] pci_bus 0000:01: busn_res: can not insert [bus 01-ff] under [bus 00-0f] (conflicts with (null) [bus 00-0f])
[    5.008228] pci 0000:01:00.0: [144d:a808] type 00 class 0x010802
[    5.008304] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    5.008811] pci 0000:01:00.0: 15.752 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x2 link at 0000:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s P)
[    5.027261] pci 0000:00:00.0: BAR 0: no space for [mem size 0x40000000]
[    5.027278] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x40000000]
[    5.027293] pci 0000:00:00.0: BAR 1: no space for [mem size 0x40000000]
[    5.027306] pci 0000:00:00.0: BAR 1: failed to assign [mem size 0x40000000]
[    5.027320] pci 0000:00:00.0: BAR 8: assigned [mem 0xf0200000-0xf02fffff]
[    5.027336] pci 0000:00:00.0: BAR 6: assigned [mem 0xf0300000-0xf030ffff pref]
[    5.027356] pci 0000:01:00.0: BAR 0: assigned [mem 0xf0200000-0xf0203fff 64bit]
[    5.027398] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    5.027413] pci 0000:00:00.0:   bridge window [mem 0xf0200000-0xf02fffff]
[    5.030562] pcieport 0000:00:00.0: PME: Signaling with IRQ 141
[    5.031076] nvme nvme0: pci function 0000:01:00.0
[    5.093831] ehci-pci: EHCI PCI platform driver
[    5.500528] reg-fixed-voltage pcie20-avdd0v85: Looking up vin-supply from device tree
[    5.500609] pcie20_avdd0v85: supplied by vdd_0v85_s0
[    5.500867] pcie20_avdd0v85: 850 mV, enabled
[    5.501040] reg-fixed-voltage pcie20-avdd0v85: pcie20_avdd0v85 supplying 850000uV
[    5.501159] reg-fixed-voltage pcie20-avdd1v8: Looking up vin-supply from device tree
[    5.501202] pcie20_avdd1v8: supplied by avcc_1v8_s0
[    5.501427] pcie20_avdd1v8: 1800 mV, enabled
[    5.501596] reg-fixed-voltage pcie20-avdd1v8: pcie20_avdd1v8 supplying 1800000uV
[    5.501707] reg-fixed-voltage pcie30-avdd0v75: Looking up vin-supply from device tree
[    5.501754] pcie30_avdd0v75: supplied by avdd_0v75_s0
[    5.501963] pcie30_avdd0v75: 750 mV, enabled
[    5.502069] reg-fixed-voltage pcie30-avdd0v75: pcie30_avdd0v75 supplying 750000uV
[    5.502151] reg-fixed-voltage pcie30-avdd1v8: Looking up vin-supply from device tree
[    5.502160] pcie30_avdd1v8: supplied by avcc_1v8_s0
[    5.502469] pcie30_avdd1v8: 1800 mV, enabled
[    5.502579] reg-fixed-voltage pcie30-avdd1v8: pcie30_avdd1v8 supplying 1800000uV



作者: 宇小宇    时间: 2023-11-27 16:02
我也遇到了同样的问题,请问解决了吗,怎么解决的呢
作者: 张泽韬    时间: 2024-4-24 20:28
请问一下这个问题最终解决了吗




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