Request : quectel rm520n-gl 5g sub-6 arm64 hmi pci driver

hello.

Is it possible to get the MHI-PCI driver based on arm64 architecture for quectel rm520n-gl 5g sub-6 module ?

Please share the latest driver version that supports Ubuntu 20.04 version.

Please try the Quectel_Linux_PCIE_MHI_Driver_V1.3.8.zip.

Hello.
Thanks for your suports

But something happened to me.
I got the following error message while generating the make file.

user@avg:~/Downloads/pcie_mhi$ sudo make
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.10.120-rqx590.rel-1v2.5/build M=/home/user/Downloads/pcie_mhi clean
make[1]: ๋””๋ ‰ํ„ฐ๋ฆฌ โ€˜/usr/src/linux-headers-5.10.120-rqx590.rel-1v2.5โ€™ ๋“ค์–ด๊ฐ
cat: kernel-int-overlays.txt: ๊ทธ๋Ÿฐ ํŒŒ์ผ์ด๋‚˜ ๋””๋ ‰ํ„ฐ๋ฆฌ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค
Makefile:712: arch/aarch64/Makefile: ๊ทธ๋Ÿฐ ํŒŒ์ผ์ด๋‚˜ ๋””๋ ‰ํ„ฐ๋ฆฌ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค
make[1]: *** ํƒ€๊ฒŸ 'arch/aarch64/Makefileโ€™์„(๋ฅผ) ๋งŒ๋“ค ๊ทœ์น™์ด ์—†์Šต๋‹ˆ๋‹ค. ๋ฉˆ์ถค.
make[1]: ๋””๋ ‰ํ„ฐ๋ฆฌ โ€˜/usr/src/linux-headers-5.10.120-rqx590.rel-1v2.5โ€™ ๋‚˜๊ฐ
make: *** [Makefile:29: clean] ์˜ค๋ฅ˜ 2

It should be
make ARCH=arm64

Is there a manual for making the module aware of the PCI slot?

PCIE_BRingup.pdf (237.2 KB)
Any suggestion about this document is welcome.

1 Like

Hi, thanks as always for your help.
Below is the error I got while building using the make ARCH=arm64 command.

user@tegra-ubuntu:~/Downloads/pcie_mhi$ make ARCH=arm64
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.15.148-rqx590.rel-1v4.0/build M=/home/user/Downloads/pcie_mhi clean
make[1]: Entering directory โ€˜/usr/src/linux-headers-5.15.148-rqx590.rel-1v4.0โ€™
make[1]: Leaving directory โ€˜/usr/src/linux-headers-5.15.148-rqx590.rel-1v4.0โ€™
find . -name *.o.ur-safe | xargs rm -f
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.15.148-rqx590.rel-1v4.0/build M=/home/user/Downloads/pcie_mhi modules
make[1]: Entering directory โ€˜/usr/src/linux-headers-5.15.148-rqx590.rel-1v4.0โ€™
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot 2022.08) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
CC [M] /home/user/Downloads/pcie_mhi/core/mhi_init.o
CC [M] /home/user/Downloads/pcie_mhi/core/mhi_main.o
CC [M] /home/user/Downloads/pcie_mhi/core/mhi_pm.o
CC [M] /home/user/Downloads/pcie_mhi/core/mhi_boot.o
CC [M] /home/user/Downloads/pcie_mhi/core/mhi_dtr.o
CC [M] /home/user/Downloads/pcie_mhi/controllers/mhi_qti.o
CC [M] /home/user/Downloads/pcie_mhi/devices/mhi_uci.o
CC [M] /home/user/Downloads/pcie_mhi/devices/mhi_netdev_quectel.o
/home/user/Downloads/pcie_mhi/devices/mhi_netdev_quectel.c:1714:14: warning: โ€˜rmnet_vnd_unregister_deviceโ€™ defined but not used [-Wunused-function]
1714 | static void rmnet_vnd_unregister_device(struct net_device *qmap_net) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
LD [M] /home/user/Downloads/pcie_mhi/pcie_mhi.o
MODPOST /home/user/Downloads/pcie_mhi/Module.symvers
ERROR: modpost: โ€œrmnet_nss_callbacksโ€ [/home/user/Downloads/pcie_mhi/pcie_mhi.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:133: /home/user/Downloads/pcie_mhi/Module.symvers] Error 1
make[2]: *** Deleting file โ€˜/home/user/Downloads/pcie_mhi/Module.symversโ€™
make[1]: *** [Makefile:1834: modules] Error 2
make[1]: Leaving directory โ€˜/usr/src/linux-headers-5.15.148-rqx590.rel-1v4.0โ€™
make: *** [Makefile:25: pcie_mhi] Error 2

My PC is running Nvidia-Jetpack6.1 (Ubuntu22.04 , aarch64)
with Nvidia-Jetpack6.1 (Ubuntu22.04 , aarch64).

Can you give me some ideas to solve this problem ?

It is because your Linux kernel have added the kernel configuration related with the IPQ807x.
You need modify the pcie_mhi driver to make it ignore the rmnet_nss.