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.