Error compiling kernel modules

I am trying to interface a 5G module (Quectel RN520N-GL) with Jetson Orin Nano with Jetson Linux 36.2 (5.15.122-tegra). However, I am facing errors in compiling the drivers.

cm_v2@ubuntu:~/drivers/qmi_wwan_q$ sudo make ARCH=arm64 
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.15.122-tegra/build M=/home/cm_v2/drivers/qmi_wwan_q modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.122-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source'
  MODPOST /home/cm_v2/drivers/qmi_wwan_q/Module.symvers
ERROR: modpost: "rmnet_nss_callbacks" [/home/cm_v2/drivers/qmi_wwan_q/qmi_wwan_q.ko] undefined!
ERROR: modpost: "usb_cdc_wdm_register" [/home/cm_v2/drivers/qmi_wwan_q/qmi_wwan_q.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:133: /home/cm_v2/drivers/qmi_wwan_q/Module.symvers] Error 1
make[2]: *** Deleting file '/home/cm_v2/drivers/qmi_wwan_q/Module.symvers'
make[1]: *** [Makefile:1830: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.122-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source'
make: *** [Makefile:28: default] Error 2

What could be wrong here?

Thank you so much!!

I switched back to Jetpac 5.1.2, it worked.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.