RM500U-CNV Jeson Orin Nano PECI模式无法拨号

RM500U-CNV 在Jeson Orin Nano使用PCIE接口时,无法拨号,无法打开/dev/stty_nr31;相关信息如下:

模块模式确认以设置为0
AT+QCFG=“pcie/mode”

+QCFG: “pcie/mode”,0

OK

sprd_pcie版本V1.1.8,Makefile如下:

#
# Makefile for the sprd staging modem files
#
EXTRA_CFLAGS += -Wno-error -Wno-packed-bitfield-compat -Wno-unused-result -Wno-format
ccflags-y += -DCONFIG_SPRD_PCIE_EP_DEVICE
ccflags-y += -DCONFIG_SPRD_SIPA


########## Option feature ##########
# For NSS feature of some Qualcom platform(eg.ipq5018)
#ccflags-y += -DCONFIG_QCA_NSS_DRV

# define is normal mode, net dev type is ethernet;
# undefine is direct mode, net dev type is rawip, should set module to direct by
# using AT command[AT+QCFG="pcie/direct",1];
ccflags-y += -DCONFIG_SPRD_ETHERNET

# For pcie msi type interrupt
ccflags-y += -DCONFIG_PCI_IRQ_MSI

# For big endian platform
#ccflags-y += -DCONFIG_SIPC_BIG_TO_LITTLE


obj-y += sprd_pcie.o
sprd_pcie-objs := pcie/sprd_pcie_ep_device.o pcie/pcie_host_resource.o pcie/sprd_pcie_quirks.o sipc/sipc.o sipc/sblock.o sipc/sbuf.o \
                  sipc/sipc_debugfs.o sipc/smem.o sipc/smsg.o sipc/spipe.o sipc/spool.o power_manager/power_manager.o \
		  sipa/sipa_core.o sipa/sipa_eth.o sipa/sipa_nic.o sipa/sipa_skb_send.o sipa/sipa_skb_recv.o sipa/sipa_dummy.o  sipa/sipa_debugfs.o sipa/sipa_dele_cmn.o \
		  sipa/sipa_phy_v0/sipa_fifo_irq_hal.o sipa/sipa_phy_v0/sipa_common_fifo_hal.o

PWD := $(shell pwd)
ifeq ($(ARCH),)
ARCH := $(shell uname -m)
endif
ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE :=
endif
ifeq ($(KDIR),)
KDIR := /lib/modules/$(shell uname -r)/build
endif

sprd_pcie: clean
	$(MAKE) ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} -C $(KDIR) M=$(PWD) modules

clean:
	$(MAKE) ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} -C $(KDIR) M=$(PWD) clean
	find . -name *.o.ur-safe | xargs rm -f

install: sprd_pcie
	sudo cp sprd_pcie.ko /lib/modules/${shell uname -r}/kernel/drivers/pci/
	sudo depmod

lspci -vvv结果如下

0009:00:00.0 PCI bridge: NVIDIA Corporation Device 229c (rev a1) (prog-if 00 [Normal decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 191
        IOMMU group: 9
        Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
        I/O behind bridge: 0000f000-00000fff [disabled]
        Memory behind bridge: 40000000-40dfffff [size=14M]
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: tegra_pcie_dma_test

0009:01:00.0 Wireless controller: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 250
        IOMMU group: 9
        Region 0: Memory at 3828000000 (32-bit, prefetchable) [size=4M]
        Region 1: Memory at 3828c00000 (32-bit, non-prefetchable) [size=64K]
        Region 2: Memory at 3828400000 (32-bit, prefetchable) [size=4M]
        Region 3: Memory at 3828c10000 (32-bit, non-prefetchable) [size=64K]
        Region 4: Memory at 3828800000 (32-bit, non-prefetchable) [size=4M]
        Region 5: Memory at 3828c20000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: sprd-pcie-ep-device

访问stty_nr31报错

jetson@ubuntu:~$ sudo busybox microcom -s 115200 /dev/stty_nr31
microcom: can't open '/dev/stty_nr31': No such device

dmesg pcie相关日志:

[    7.123552] pcieport 0008:00:00.0: Adding to iommu group 8
[    7.123658] pcieport 0008:00:00.0: PME: Signaling with IRQ 189
[    7.123770] pcieport 0008:00:00.0: AER: enabled with IRQ 189
[    7.124734] tegra194-pcie 140c0000.pcie: Adding to iommu group 9
[    7.126053] tegra194-pcie 140c0000.pcie: host bridge /bus@0/pcie@140c0000 ranges:
[    7.126068] tegra194-pcie 140c0000.pcie:      MEM 0x3540000000..0x37ffffffff -> 0x3540000000
[    7.126074] tegra194-pcie 140c0000.pcie:      MEM 0x3828000000..0x382fffffff -> 0x0040000000
[    7.126077] tegra194-pcie 140c0000.pcie:       IO 0x002c100000..0x002c1fffff -> 0x002c100000
[    7.126348] tegra194-pcie 140c0000.pcie: iATU unroll: enabled
[    7.126350] tegra194-pcie 140c0000.pcie: Detected iATU regions: 8 outbound, 2 inbound
[    7.232026] tegra194-pcie 140c0000.pcie: Link up
[    7.234659] tegra194-pcie 140c0000.pcie: Link up
[    7.234734] tegra194-pcie 140c0000.pcie: PCI host bridge to bus 0009:00
[    7.255095] pcieport 0009:00:00.0: Adding to iommu group 9
[    7.255193] pcieport 0009:00:00.0: PME: Signaling with IRQ 191
[    7.255550] pcieport 0009:00:00.0: AER: enabled with IRQ 191
[    7.255730] sprd-pcie-ep-device 0009:01:00.0: Adding to iommu group 9
[    7.255782] sprd-pcie-ep-device 0009:01:00.0: ep: probe
[    7.255820] sprd-pcie-ep-device 0009:01:00.0: enabling device (0000 -> 0002)
[    7.256338] sprd-pcie-ep-device 0009:01:00.0: pci alloc msi irq cnt = 32
[    7.256340] sprd-pcie-ep-device 0009:01:00.0: ep: BAR[0] [mem 0x3828000000-0x38283fffff pref]
[    7.256342] sprd-pcie-ep-device 0009:01:00.0: ep: BAR[1] [mem 0x3828c00000-0x3828c0ffff]
[    7.256343] sprd-pcie-ep-device 0009:01:00.0: ep: BAR[2] [mem 0x3828400000-0x38287fffff pref]
[    7.256345] sprd-pcie-ep-device 0009:01:00.0: ep: BAR[3] [mem 0x3828c10000-0x3828c1ffff]
[    7.256346] sprd-pcie-ep-device 0009:01:00.0: ep: BAR[4] [mem 0x3828800000-0x3828bfffff]
[    7.256347] sprd-pcie-ep-device 0009:01:00.0: ep: BAR[5] [mem 0x3828c20000-0x3828c2ffff]
[    7.256370] sprd-pcie-ep-device 0009:01:00.0: ep: atu_view_port val = 0xffffffff
[    7.256377] sprd-pcie-ep-device 0009:01:00.0: ep: request IRQ = 250, cnt =32
[    7.256387] sprd-pcie-ep-device 0009:01:00.0: pass_smem, base=0x80400000,size=0x300000
[    7.256388] pcie res: ep_notify, probed cnt=1.
[   12.245270] tegra-mc 2c00000.memory-controller: pcie9ar: secure read @0x000000ffffffff00: EMEM address decode error (EMEM decode error)
[   12.245276] tegra-mc 2c00000.memory-controller: pcie9aw: secure write @0x00000003ffffff00: VPR violation ((null))
[   12.245280] tegra-mc 2c00000.memory-controller: pcie9aw: secure write @0x00000003ffffff00: Route Sanity error ((null))
[   12.274535] sipa_eth: dev 0x00000000459dc295 eth 0x00000000c0bef13a open pcie0 netid 0 term 0 mac_h 1
[   12.278060] sipa_eth: dev 0x000000006aaae94d eth 0x000000006f0d6fe3 open pcie1 netid 1 term 0 mac_h 1
[   12.282097] sipa_eth: dev 0x000000008878bd8d eth 0x000000007a580e27 open pcie2 netid 2 term 0 mac_h 1
[   12.285245] sipa_eth: dev 0x00000000c3986fad eth 0x0000000050dc0ab7 open pcie3 netid 3 term 0 mac_h 1