Hello,
I’m working with i.mx8 and Quectel EG21 module (Yocto based) and i try to enabling wwan0 interface to connect the device with network LTE operator
I’ve update the kernel adding “qmi_wwan_q.c” file dilivered from Quectel and activate the driver via menuconfig.
When, from shell, I bring up the wwan0 interface i see :
wwan0: flags=193<UP,RUNNING,NOARP> mtu 1500
inet6 fe80::28b5:d6ff:fe76:689 prefixlen 64 scopeid 0x20
ether 2a:b5:d6:76:06:89 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 560 (560.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
where the ip address is the default ipv6 address. So I need to set the parameters so to connect with network and I image something like wpa_supplicant for wifi connection
Someone can help me?
Thanks in advance
It is great that you have ported the qmi_wwan_q.
What you need to do in next is you need to set up data call for the modem.
It is recommended to port the quectel-CM and set up data call with quectel-CM.
In yocto there is no option for menuconfig
but I see the option for defconfig so I need to enable wwan0 for my quectel driver
If I add CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL_OPTION=y to my defconfig file so can I see wwan0 interface after building the full image for yocto or do I need to do any other changes?
is for usbserial driver.
For the usbnet, you need add:
CONFIG_USB_NET_QMI_WWAN
CONFIG_USB_WDM
I have added the configuration to the defconfig file but after building the yocto image, I can only see the
/lib/modules/5.10.35-lts-5.10.y+gfd785034f0db/kernel/drivers/net/usb# ls
cdc_eem.ko
I don’t see for qmi_wwan.ko and qmi_wwan_q.ko
@Bean.Wang-Q @ratataplam
I have followed the Quectel_UMTS_LTE_5G_Linux_USB_Driver_User_Guide_V3.0
In defconfig
CONFIG_USB_NET_QMI_WWAN=y
CONFIG_USB_WDM=y
qmi_wwan_q.c is provided by Quectel.
For Android and for Quectel LTE-A and Quectel 5G module, it is better to replace the qmi_wwan.c with the qmi_wwan_q.c