Rm520 firmware RM520NGLAPR01A03M4G_01.001.01.001 not showing serials intefaces (ttyUSBs)

Hi, i have the above 5G modem, the mhi devices are showing and i have connection. The problem is that idon’t have any ttyUSB device showing.
I tested all the possible combinations of this AT commands torught the mhi_DUN

AT+QCFG=“usbnet”
+QCFG: “usbnet”,0

OK
AT+QCFG=“usbspeed”
+QCFG: “usbspeed”,“20”

OK
AT+QCFG=“data_interface”
+QCFG: “data_interface”,1,1

OK
AT+QCFG=“pcie/mode”
+QCFG: “pcie/mode”,0

OK
AT+QCFG=“pcie_mbim”
+QCFG: “pcie_mbim”,0

I’ve did make and make install of the kernel modules, i tryed to manually modprobe and even to modprobe the standard usbserial specifying the vendor and device id (that on newer firmare works).

modprobe usbserial vendor=0x2c7c product=0x0801

I actually have 2 modems in the same condition, and without the usbserial i can’t update to new firmware.
I’ve also tested in windows and also in windows no serial device is showing.

AT+QCFG=“data_interface”
+QCFG: “data_interface”,1,1

If you still need the ttyUSB, please try set it to
AT+QCFG=“data_interface”,1,0

Hi Ben, thanks for coming back to me, as said i tested all the possible combinations of data_interface, and 1,1 was my first test but no way, also 1,0 and 0,0.
Non of them showed the ttyusbs.

I tested again AT+QCFG=“data_interface”,1,0

root@AchilleVarzi:/home/khadas/pipe-kvim# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@AchilleVarzi:/home/khadas/pipe-kvim# lspci -v
00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 124
Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: f5700000-f57fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Expansion ROM at f5800000 [virtual] [disabled] [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Port (Slot-), MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [148] L1 PM Substates
Kernel driver in use: pcieport

01:00.0 Unassigned class [ff00]: Qualcomm Device 0308
Subsystem: Qualcomm Device 5201
Flags: bus master, fast devsel, latency 0, IRQ 128
Memory at f5700000 (64-bit, non-prefetchable) [size=4K]
Memory at f5701000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=8/32 Maskable+ 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [148] Secondary PCI Express
Capabilities: [168] Physical Layer 16.0 GT/s <?> Capabilities: [18c] Lane Margining at the Receiver <?>
Capabilities: [19c] Transaction Processing Hints
Capabilities: [228] Latency Tolerance Reporting
Capabilities: [230] L1 PM Substates
Capabilities: [240] Data Link Feature <?>
Kernel driver in use: mhi_q
Kernel modules: pcie_mhi

Isn’t USB permanently disabled in AP?

Sorry.
Yes. It is PCIE only and not support USB.

Thanks Ben ,this is an important piece of information I was missing ! But how I update the firmware on this module ? Both qflash and qfirehose need serial.

If you have implement the PCIE hotplug, with PCIe, QFirehose also support to flash firmware with PCIE mode

Thanks Ben, can you be a bit more specific on this ?

Acutally there is examples in the qfirehose/log.

# ./QFirehose -p /dev/mhi_BHI -f v09

[000.000]: QFirehose Version: Quectel_LTE&5G_QFirehose_Linux&Android_V1.4.5
[000.000]: Builded: Feb 10 2021 14:14:00
[000.000]: Find md5 check file <v09/md5.txt>
[000.000]: Totals checking 0 files md5 value, 0 file fail!
[000.024]: switch_to_edl_mode
[001.027]: poll_wait events=POLLIN msec=1000 timeout
[001.027]: qusb_noblock_read cur=0, min_size=1
[001.027]: switch to ‘Emergency download mode’
[001.039]: successful, wait module reboot
[002.040]: bhi_ee = 6
[004.105]: dir=v09/update/firehose
[004.105]: d_name=rawprogram_nand_p4K_b256K_factory.xml