Wireless Module Driver User Guide For EmbeddedLinux
All Rights reserved, No Spreading abroad without Permission of ZTEWelink
6
MW3820
2
Driver Integration
2.1
Enable USB-modem driver from kernel
USB-modem driver may be not enabled in the kernel, so please go to kernel, do make menuconfig and
select Device Drivers -> USB -> USB serial -> GSM modem, then enable it to be built-in:
-CONFIG_USB_SERIAL=y
-CONFIG_USB_SERIAL_GENERIC=y
-CONFIG_USB_SERIAL_OPTION=y
2.2
Add VID/PID to USB-modem driver
Modify driver file option.c which locates in \linux-source-2.6.XX\drivers\usb\serial. Add modem PID
and VID in driver id_table:
static struct usb_device_id option_ids[] = {
{ USB_DEVICE(0x19d2, 0xFFEB },
0x19d2 is ZTE VID, it is appropriate for all ZTEWelink wireless modems. 0xFFEB modem PID which
may vary with the modem you use, you can use `lsusb` to get it.
2.3
Enable PPP feature from kernel
PPP may not enable in the kernel. Managed to fix the issue by go to kernel, do make menuconfig and
select Device Drivers -> Network Device Support -> and then enable following to be built-in:
- CONFIG_PPP=y
-CONFIG_PPP_ MULTILINK=y
-CONFIG_PPP_FILTER=y
-CONFIG_PPP_ASYNC=y
-CONFIG_PPP_SYNC_TTY=y