硬件环境:

    开发板为RT5053F   

    3G模块为中兴 MC2176 电信版



以下是操作步骤

  • 加入VID 、PID

    VID 、 PID 的获取方法是  将设备插入电脑在linux下执行lsusb命令,如图

    watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMTY0MTg4NQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">

    或者是依照无线模块驱动使用手冊,将产品支持的IDS所有增加option.c文件里

    openwrt-1407在例如以下位置:
    build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620n/linux-3.10.49/drivers/usb/serial/option.c
  • 内核的编译配置
    make kernel_ menuconfig

    USB串口驱动相关的配置项:

    Device Drivers  ---> [*] USB support  --->
    <*> Support for Host-side USB
    [*] USB announce new devices
    [*] Enable USB persist by default
    <*> EHCI HCD (USB 2.0) support
    [*] Root Hub Transaction Translators
    [*] Improved Transaction Translator scheduling
    <*> OHCI HCD (USB 1.1) support
    <*> USB Modem (CDC ACM) support
    <*> USB Printer support
    <*> USB Wireless Device Management support
    <*> USB Serial Converter support --->
    <*> USB driver for GSM and CDMA modems

    PPP拨号的相关配置:

    Device Drivers  ---> [*] Network device support  --->
    <*> PPP (point-to-point protocol) support
    <*> PPP BSD-Compress compression
    <*> PPP Deflate compression
    [*] PPP filtering
    <*> PPP MPPE compression (encryption)
    [*] PPP multilink support
    <*> PPP over Ethernet
    <*> PPP support for async serial ports
    <*> PPP support for sync tty ports

    所需软件包:

    ppp
    chat
    comgt
    librt
    libusb-1.0
    usb-modeswith
    zlib

    保存 运行make V=99 后将编译好的镜像文件烧写到开发板。然后启动开发板

  • 配置 网络

    /etc/config/network
    config interface 'ppp0'
    option ifname 'ppp0'
    option service 'evdo'
    option username 'card'
    option password 'card'
    option device '/dev/ttyUSB0'
    option proto '3g'
    option dialnumber '#777'
    option apn 'ctnet'
    option auto 1
  • 重新启动网络

    /etc/init.d/netwrok restart

    重新启动后 执行ifcong命令,若出现ppp接口表示拨号成功,如图

    watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMTY0MTg4NQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">











  • openwrt 3g模块上网的更多相关文章

    1. Openwrt 3g模块

      支持Huawei E367 一.编译选项的选择 都选上 都选上 Network目录下 Utiles Luci 二.USB连接3G模块时,显示如下,表示成功 三.没找到:

    2. Openwrt 3G模块的添加

      一. 在menuconfig中添加相关驱动 1. Kernel Modules -> USB Support <*> kmod-usb2 <*> kmod-usb-ohc ...

    3. Yocto开发笔记之《驱动调试-华为3G模块》(QQ交流群:519230208)

      QQ群:519230208,为避免广告骚扰,申请时请注明 “开发者” 字样 ======================================================== 参考:ht ...

    4. ZTE AD3812 3G模块在linux 2.6.34 内核的开发板上的支持方法

      先说段废话,话说在linux 2.6.34 下,好多比较新的3G网卡及3G模块都没有很好的支持.如果想支持的这些3G网卡/3G模块呢,基本上有两种方式: 1.使用该3G模块的 linux 下的驱动,交 ...

    5. 华为/中兴 3G 模块的调试

      1 检查/etc/init.d/pppd『红颜色的使上电自动上网注册(如果没有红颜色的语句),请添加』 #!/bin/sh#DAEMON=/usr/sbin/pppdPIDFILE=/var/run/ ...

    6. Ubuntu10.04下的使用使用华为E1750 3G模块

      系   统:Ubuntu 10.04 3G模块:华为E1750 1 安装usb-modeswitch软件 E1750 无线上网卡并没有提供linux环境下的驱动程序,但我们可以通过USB模式转换来让l ...

    7. ARM+llinux系统移植3G拨号上网收发短信(一)【转】

      本文转载自:http://blog.csdn.net/hanmengaidudu/article/details/17099737 一.      PPP移植 各项工作具体说明 向Linux内核添加3 ...

    8. 3G模块(U6300)linux下拨号上网

      U6300支持linux.Android系列嵌入式系统.作为linux内核系统,系统均会自带驱动usbserial,就没有提供专门的U6300V的USB驱动,都是加载系统的usbserial以实现对U ...

    9. Openwrt LuCI模块练习详细步骤

      前言 又到了成胖子^_^每周一博的时间了.最近在学习openwrt luci方面的知识,为了贯穿整个知识体系,练习题目为: 通过页面配置周期性地往/tmp/addtest文件写入内容和时间戳 1.在w ...

    随机推荐

    1. 使用VirtualBox SDK之初步编译

      VirtualBox成功编译出来后,在生成的out文件夹中会发现有SDK文件夹(当然也可以直接从官网下SDK),里面有例子,但是直接用Visual Studio编译的话会出一大堆错误,本文就是讲解如何 ...

    2. 玩转Windows服务系列汇总(9篇文章)

      玩转Windows服务系列汇总 创建Windows服务Debug.Release版本的注册和卸载及其原理无COM接口Windows服务启动失败原因及解决方案服务运行.停止流程浅析Windows服务小技 ...

    3. android开发隐藏了actionbar仍然短暂闪现的解决方法

      有时候我们在代码里隐藏了actionbar,在打开应用时,仍然短暂闪现下actionbar,用户体验很不好.   最简单的方法是 在AndroidManifest.xml中设置主题中配置不显示titl ...

    4. cocos2d-x2.0 win7第一次创建项目需要调用到的脚本(不断更新维护)//cocos2d-x 教程一

      第一步: 最新的cocos2d-x.下载地址https://github.com/cocos2d/cocos2d-x github上最新的引擎,值得注意的是官网上发布的引擎是稳定版.选择哪种就看个人喜 ...

    5. Java基础03 构造器与方法重载

      作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明.谢谢! 在方法与数据成员中,我们提到,Java中的对象在创建的时候会初始化(initial ...

    6. Delphi体系内部的4种消息传递办法(Send,Post,Perform,Dispatch)

      一.什么是消息? 消息是windows对应用程序发送的有关‘发生了某种事件’的通知.例如点击鼠标,调整窗口大小或键盘上按下一个键,都会引起windows发送一条消息到应用程序中去,去通知应用程序发生了 ...

    7. iphone开发教程下载

      iphone开发教程下载 3月份花了1个月研究ios 开发,看了几百页的iphone开发教程,累积了不少电子书,盘点一下 Beginning iPhone 4 Development: Explori ...

    8. sharepoint 2013 根据网站模版创建网站,并赋值网站权限 create a site by custom site template

      通过程序,根据网站模版,创建新的网站 private void CreateSiteBySiteTemplate() { SPSecurity.RunWithElevatedPrivileges(de ...

    9. hdu3999The order of a Tree (二叉平衡树(AVL))

      Problem Description As we know,the shape of a binary search tree is greatly related to the order of ...

    10. POJ 2404 Jogging Trails

      Jogging Trails Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 2122   Accepted: 849 Des ...