simcom7100c在ubuntu下移动宽带mobile broadband上网

自己的ubuntu版本是14.04lts 已经包含了qmi的qmi_wwan.ko驱动

首先装载驱动Insmod (modprobe) cdc_wdm


然后装载 insmod (modprobe) qmi_wwan
下一步将vid pid写到new_id里面
echo "vid pid" >/sys/bus/usb/drivers/qmi_wwan/new_id

sudo echo "1e0e 9001" > /sys/bus/usb/drivers/qmi_wwan/new_id


chit@ubuntu:~$ sudo find / -name qmi_wwan* -print
[sudo] password for chit: 
/tftproot/code/source/git/drivers/net/usb/qmi_wwan.c
/home/chit/fsl-release-bsp/build-x11/tmp/work-shared/imx6ulevk/kernel-mfgtool-source/drivers/net/usb/qmi_wwan.c
/home/chit/fsl-release-bsp/build-x11/tmp/work-shared/imx6ulevk/kernel-source/drivers/net/usb/qmi_wwan.c
/home/chit/fsl-release-bsp/build-x11/tmp/work-shared/imx6ulevk/kernel-source/drivers/net/usb/qmi_wwan.o
/home/chit/fsl-release-bsp/build-x11/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/linux-libc-headers/3.14-r0/linux-3.14/drivers/net/usb/qmi_wwan.c
/home/chit/fsl-release-bsp/build-x11/tmp/work/i686-nativesdk-pokysdk-linux/nativesdk-linux-libc-headers/3.19-r0/linux-3.19/drivers/net/usb/qmi_wwan.c
/lib/modules/3.13.0-74-generic/kernel/drivers/net/usb/qmi_wwan.ko
/lib/modules/3.13.0-71-generic/kernel/drivers/net/usb/qmi_wwan.ko
/lib/modules/3.13.0-73-generic/kernel/drivers/net/usb/qmi_wwan.ko
/lib/modules/3.13.0-32-generic/kernel/drivers/net/usb/qmi_wwan.ko


chit@ubuntu:/lib/modules/3.13.0-32-generic/kernel/drivers/net/usb$ uname -a
Linux ubuntu 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:02 UTC 2015 i686 i686 i686 GNU/Linux


chit@ubuntu:/lib/modules/3.13.0-74-generic/kernel/drivers/net/usb$ sudo modprobe qmi_wwan

[  720.527109] usbcore: registered new interface driver cdc_wdm
[  720.535140] usbcore: registered new interface driver qmi_wwan


chit@ubuntu:/lib/modules/3.13.0-74-generic/kernel/drivers/net/usb$ lsusb 
Bus 001 Device 004: ID 1e0e:9001 Qualcomm / Option 


root@ubuntu:/home/chit# dmesg 

[ 6012.663514] usb 1-1: new high-speed USB device number 7 using ehci-pci
[ 6012.810946] usb 1-1: New USB device found, idVendor=1e0e, idProduct=9001
[ 6012.810951] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6012.810954] usb 1-1: Product: SimTech, Incorporated
[ 6012.810956] usb 1-1: Manufacturer: SimTech, Incorporated
[ 6012.810957] usb 1-1: SerialNumber: 0123456789ABCDEF
[ 6012.889065] qmi_wwan: probe of 1-1:1.0 failed with error -22
[ 6012.889129] qmi_wwan 1-1:1.1: bogus CDC Union: master=0, slave=0
[ 6012.889135] qmi_wwan: probe of 1-1:1.1 failed with error -1
[ 6012.889198] qmi_wwan 1-1:1.2: bogus CDC Union: master=0, slave=0
[ 6012.889202] qmi_wwan: probe of 1-1:1.2 failed with error -1
[ 6012.889259] qmi_wwan 1-1:1.3: bogus CDC Union: master=0, slave=0
[ 6012.889263] qmi_wwan: probe of 1-1:1.3 failed with error -1
[ 6012.889316] qmi_wwan 1-1:1.4: bogus CDC Union: master=0, slave=0
[ 6012.889320] qmi_wwan: probe of 1-1:1.4 failed with error -1
[ 6012.996863] qmi_wwan 1-1:1.5: cdc-wdm0: USB WDM device
[ 6012.997161] qmi_wwan 1-1:1.5 wwan0: register 'qmi_wwan' at usb-0000:02:03.0-1, WWAN/QMI device, 96:54:33:6f:75:d6
[ 6013.067184] qmi_wwan: probe of 1-1:1.6 failed with error -22


出现设备/dev/cdc-wdm0

root@ubuntu:/home/chit# ls -l /dev/cdc*
crw------- 1 root root 180, 0 Apr  5 18:09 /dev/cdc-wdm0


root@ubuntu:/home/chit# ifconfig -a

wwan0     Link encap:Ethernet  HWaddr 96:54:33:6f:75:d6  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

出现Mobile Broadband然后点击New Mobile Broadband connection 创建移动宽带连接




我的是中国联通4G卡





随便输入个密码123456




chit@ubuntu:/$ ifconfig 

wwan0     Link encap:Ethernet  HWaddr ee:e7:17:1a:49:34  
          inet6 addr: fe80::ece7:17ff:fe1a:4934/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7788 (7.7 KB)  TX bytes:25637 (25.6 KB)





你可能感兴趣的:(simcom7100c在ubuntu下移动宽带mobile broadband上网)