1、硬件设计
2、 软件设计
option.c option_ids 添加如下
{ USB_DEVICE(0x1508, 0x1001) },
{ USB_DEVICE(0x1508, 0x1000) },
{ USB_DEVICE(0x1508, 0x1001), /* Fibocom NL668 (IOT version) */
.driver_info = RSVD(4) | RSVD(5) | RSVD(6) },
{ USB_DEVICE(0x1508, 0x1000), /* Fibocom NL668 (IOT version)*/
.driver_info = RSVD(4) | RSVD(5) | RSVD(6) },
if (serial->dev->descriptor.idVendor == cpu_to_le16(0x1508) &&
serial->dev->descriptor.idProduct == cpu_to_le16(0x1000) &&
serial->interface->cur_altsetting->desc.bInterfaceNumber >= 2)
return -ENODEV;
if (((serial->dev->descriptor.idVendor == cpu_to_le16(0x1c9e) && serial->dev->descriptor.idProduct == cpu_to_le16(0x9b05))
|| (serial->dev->descriptor.idVendor == cpu_to_le16(0x161c) && serial->dev->descriptor.idProduct == cpu_to_le16(0x9115))
||(serial->dev->descriptor.idVendor == cpu_to_le16(0x05c6) && serial->dev->descriptor.idProduct == cpu_to_le16(0xf601))
|| (serial->dev->descriptor.idVendor == cpu_to_le16(0x1c9e) && serial->dev->descriptor.idProduct == cpu_to_le16(0x9b3c))
|| (serial->dev->descriptor.idVendor == cpu_to_le16(0x1508) && serial->dev->descriptor.idProduct == cpu_to_le16(0x1001))
|| (serial->dev->descriptor.idVendor == 0x2cb7 && (serial->dev->descriptor.idProduct == 0x0104
|| serial->dev->descriptor.idProduct == 0x0105||serial->dev->descriptor.idProduct == 0x010b
))) &&
serial->interface->cur_altsetting->desc.bInterfaceNumber >= 4)
return -ENODEV;
在目录 drives/net/usb 添加Fibocom_Linux_GobiNet_Driver文件夹
下载
https://download.youkuaiyun.com/download/u011425939/87910747
修改makefile
编译生成 GobiNet.ko
拨号测试代码
ltemanage
下载
https://download.youkuaiyun.com/download/u011425939/87910764
udhcpc 分配不到ip出现如下情况
解决办法 找到下面进程杀死
重新执行测试代码
测试结果
能成功ping 外网