Net Device driver 添加PPP 协议
USB 设备添加 3G/GPRS 拨号设备
编译出 pppd, chat 等程序, 把拨号脚本拷贝到 /etc/ppp 目录
重新打包: ./build spi
执行一个命令完成网络下载固件,擦除, 烧写:
sh tftp_get_conprog.sh; sh update_linux_mtd.sh;
插入华为/中兴 的USB设备
自动出现 /dev/ttyUSB* 设备
~ #
~ #
~ # usb 1-1: new high speed USB device using w55fa92-ehci and address 2
scsi1 : usb-storage 1-1:1.0
scsi2 : usb-storage 1-1:1.1
USB device plug in
usb 1-1: USB disconnect, address 2
USB device plug out
usb 1-1: new high speed USB device using w55fa92-ehci and address 3
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1:1.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
scsi7 : usb-storage 1-1:1.4
scsi8 : usb-storage 1-1:1.5
USB device plug in
Allocate Buffer 0 for USB Host
Allocate Buffer 1 for USB Host
scsi 7:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 8:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
sd 8:0:0:0: [sdb] Attached SCSI removable disk
然后执行命令:
pppd call wcdma (中国联通)
或
pppd call cdma2000 (中国电信)