Error when compiling kernel for openwrt

Hi,

I am trying to compile an openwrt with RM500Q-EA and kernel (6.6.x) but I am getting this error

ERROR: modpost: "rmnet_nss_callbacks" [/home/rob/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/quectel-mhi-pcie-1.3.6/pcie_mhi.ko] undefined!
make[6]: *** [scripts/Makefile.modpost:145: /home/rob/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/quectel-mhi-pcie-1.3.6/Module.symvers] Error 1
make[5]: *** [/home/rob/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.6.32/Makefile:1865: modpost] Error 2
make[4]: *** [Makefile:234: __sub-make] Error 2
make[4]: Leaving directory '/home/rob/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.6.32'
make[3]: *** [Makefile:29: /home/rob/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/quectel-mhi-pcie-1.3.6/.built] Error 2
make[3]: Leaving directory '/home/rob/immortalwrt/feeds/wwan/drivers/quectel-mhi-pcie'
time: package/feeds/wwan/quectel-mhi-pcie/compile#0.35#0.09#0.50
    ERROR: package/feeds/wwan/quectel-mhi-pcie failed to build.
make[2]: *** [package/Makefile:173: package/feeds/wwan/quectel-mhi-pcie/compile] Error 1
make[2]: Leaving directory '/home/rob/immortalwrt'
make[1]: *** [package/Makefile:167: /home/rob/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/rob/immortalwrt'
make: *** [/home/rob/immortalwrt/include/toplevel.mk:233: world] Error 2

Is there a new driver available for it?

Is the openwrt based on IPQ?
If it is not Qualcomm IPQ you don’t need the rmnet_nss.c

Hi @Bean.Wang-Q it’s using IPQ807x and I’m using NSS for the build

The essiest solution is to remove the rmnet_nss related setting in the qmi_wwan_q.

Otherway is that actually on IPQ807x, there is rmnet_nss.c in your sdk.

RMNET is already enabled on the QSDK, am I still missing something?

CONFIG_NSS_DRV_PPPOE_ENABLE=y
CONFIG_NSS_DRV_PPTP_ENABLE=y
# CONFIG_NSS_DRV_PVXLAN_ENABLE is not set
# CONFIG_NSS_DRV_QRFS_ENABLE is not set
# CONFIG_NSS_DRV_QVPN_ENABLE is not set
CONFIG_NSS_DRV_RMNET_ENABLE=y
# CONFIG_NSS_DRV_SHAPER_ENABLE is not set
# CONFIG_NSS_DRV_SJACK_ENABLE is not set
# CONFIG_NSS_DRV_TLS_ENABLE is not set