How bacnh85/quectel_linux_usb_driver works
Project type and purpose
• This is a Linux kernel driver project providing USB-serial and QMI WWAN support for Quectel cellular modems (UCxx/EC2x/EGxx/EP06/EM06/BG96/AG35).
• It plugs into the USB core, registers against the generic “option” and “usbnet” subsystems, and exposes serial (ttyUSBx) and network (wwan0) interfaces to user space.
File structure
• Top level:
• LICENSE, README.md, Makefile – project metadata and build script
• Quectel_WCDMA<E_Linux_USB_Driver_User_Guide_V1.8.pdf – vendor guide
• Source under pseudo-kernel tree:
• drivers/net/usb/qmi_wwan.c – QMI-over-USB network driver
• drivers/net/usb/usbnet.c – generic USB-network support
• drivers/usb/serial/option.c – generic serial-over-USB driver
• drivers/usb/serial/qcserial.c – Quectel-specific serial bindings
• drivers/usb/serial/usb_wwan.c – USB WWAN helper definitions
• No user-space code: all is implemented as loadable kernel modules.
Insights from README
• Targets Ubuntu 16.04 with kernel 4.15.x.
• Build instructions use “make” and “make install” to place modules in /lib/modules/$(uname -r)/kernel/drivers/… and then modprobe them.