I can enable option and usbserial drivers at /sys/bus/usb/drivers; however, how to enable qmi_wwan at /sys/bus/usb/drivers?
I added the following at the file: imx8mq_ima_gki.fragment
+CONFIG_PPP_ASYNC=m
+CONFIG_PPP_SYNC_TTY=m
+CONFIG_USBNET=m
+CONFIG_USB_USBNET=m
+CONFIG_USB_WDM=m
+CONFIG_USB_NET_QMI_WWAN=m
+CONFIG_USB_SERIAL_QUALCOMM=m
And I added the following at the file: imx_v8_ima_android_defconfig
+CONFIG_PPP_ASYNC=y
+CONFIG_PPP_SYNC_TTY=y
+CONFIG_USBNET=y
+CONFIG_USB_WDM=y
+CONFIG_USB_NET_QMI_WWAN=y
+CONFIG_USB_SERIAL_QUALCOMM=y
And I added the following at the file: SharedBoardConfig.mk
$(KERNEL_OUT)/drivers/usb/serial/usbserial.ko \
$(KERNEL_OUT)/drivers/usb/serial/usb_wwan.ko \
$(KERNEL_OUT)/drivers/usb/serial/option.ko \
$(KERNEL_OUT)/drivers/usb/serial/qcserial.ko \
$(KERNEL_OUT)/drivers/net/usb/qmi_wwan.ko \
$(KERNEL_OUT)/drivers/net/ppp/ppp_async.ko \
$(KERNEL_OUT)/drivers/net/ppp/ppp_synctty.ko \
$(KERNEL_OUT)/drivers/net/usb/usbnet.ko
As the above settings, I can build and flash to the device successfully.
After flashing, I can see there are option.ko and qmi_wwan.ko in the device.
-rw-r--r-- 1 root root 185440 2023-02-07 10:46 ./vendor/lib/modules/option.ko
-rw-r--r-- 1 root root 105744 2023-02-07 10:46 ./vendor/lib/modules/qmi_wwan.ko
And when I check the path /sys/bus/usb/drivers, I just saw option driver. I cannot get qmi_wwan driver.
Could you please help me to clarify this issue? Thanks a lot.
Solved! Go to Solution.
Hi,
This issue has been solved. It can be closed.
I just moved some codes to qmi_wwan.c and cdc_wdm.c. It is ok to have the module of qmi_wwan and cdc_wdm. Thanks a lot.
Hello @fengyingchu
The qmi_wwan driver is suitable for Qualcomm SOC, not i.MX
Hi, I use the imx SOC with Quectel GPS and LTE.
The driver of Quectel GPS and LTE needs to use qmi_wwan driver.
Have you tried to install the driver manually?
Hi,
This issue has been solved. It can be closed.
I just moved some codes to qmi_wwan.c and cdc_wdm.c. It is ok to have the module of qmi_wwan and cdc_wdm. Thanks a lot.
Hi,
I did "insmod ./vendor/lib/modules/qmi_wwan.ko", and the dmesg log shows: "Unknown symbol usb_cdc_wdm_register (err -2)".
Then, I did "insmod ./vendor/lib/modules/cdc-wdm.ko", and the dmesg log shows "Unknown symbol usb_register_dev (err -2)".
However, I don't know how to solve usb_register_dev problem, because I cannot build usbcore.ko out.
I think the build system do not allow me to set CONFIG_USB to be m.
The attachments are the dmesg log and my .config file.
Thanks.