1,将移远EC20官方GOBI驱动源码拷贝到drivers/net/usb下
GobiUSBNet.c
QMI.c
QMI.h
QMIDevice.c
QMIDevice.h
Structs.h
2,修改drivers/net/usb/Makefile
obj-$(CONFIG_USB_GOBI_NET) += GobiNet.o
GobiNet-objs := GobiUSBNet.o QMIDevice.o QMI.o
3,修改drivers/net/usb/Kconfig
config USB_GOBI_NET
tristate "Gobi USB Net driver for Quectel
module"
help
Support Quectelmodule
A modemmanager with support for GobiNet is
recommended.
Tocompile this driver as amudule,choose M
here:the module will be calledGobiNet.
4,配置内核
使能Gobi驱动
-> Device Drivers
-> [*] Network device support
-> -*- USB Network Adapters
-> Gobi USB Net driver for Quectel module
编译内核后启动,可以看到系统输出
GobiNet 1-1.2:1.4 eth1: regi