http://wiki.openwrt.org/doc/howtobuild/wireless-router-with-a-3g-dongle

Building image with support for 3g/4g and usb tethering

 

Preparing build environment

First of all, you need a complete build environment, either physical or virtual system, as described on the OpenWrt buildroot exigence.

You need to clone OpenWrt git repository on your build system and synchronize all package feeds with your config file.

Be sure to understand the build procedure to prevent build failure.

Configuring packages

 

Selecting target architecture and profile

Run make menuconfig to configure OpenWrt packages.

Select your architecture on which you would put your compiled OpenWrt image. Then select your target profile, according your hardware type.

If you have selected correct value for target system, target profile, and target images, go to next step.

Selecting kernel modules for usb networking support.

Go to Kernel Modules → USB Support.

Select the following modules by pressing y to include the modules within the compiled image.

Kernel Modules -> USB Support
<*> kmod-usb2
<*> kmod-usb-ohci
<*> kmod-usb-uhci
<*> kmod-usb-acm # For ACM based modem, such as Nokia Phones
<*> kmod-usb-net # For tethering and rndis support

kmod-usb-net –> to support usb networking interface.

Select all subsets if you want perfect support for usb network interfaces, including Android and iPhone tethering. Some newer 4g dongles use usb network interface (rndis) instead of legacy serial protocol.

<*> kmod-usb-net............... Kernel modules for USB-to-Ethernet convertors
<*> kmod-usb-net-asix...... Kernel module for USB-to-Ethernet Asix convertors
<*> kmod-usb-net-cdc-eem..................... Support for CDC EEM connections
-*- kmod-usb-net-cdc-ether.............. Support for cdc ethernet connections
<*> kmod-usb-net-cdc-mbim..................... Kernel module for MBIM Devices
-*- kmod-usb-net-cdc-ncm..................... Support for CDC NCM connections
<*> kmod-usb-net-cdc-subset...... Support for CDC Ethernet subset connections
<*> kmod-usb-net-dm9601-ether........ Support for DM9601 ethernet connections
<*> kmod-usb-net-hso.. Kernel module for Option USB High Speed Mobile Devices
<*> kmod-usb-net-ipheth..................... Apple iPhone USB Ethernet driver
<*> kmod-usb-net-kalmia................... Samsung Kalmia based LTE USB modem
<*> kmod-usb-net-kaweth.. Kernel module for USB-to-Ethernet Kaweth convertors
<*> kmod-usb-net-mcs7830
<*> kmod-usb-net-pegasus
<*> kmod-usb-net-qmi-wwan.................................... QMI WWAN driver
<*> kmod-usb-net-rndis......................... Support for RNDIS connections
<*> kmod-usb-net-sierrawireless.......... Support for Sierra Wireless devices
<*> kmod-usb-net-smsc95xx. SMSC LAN95XX based USB 2.0 10/100 ethernet devices

kmod-usb-serial → to support legacy 3g dongles.

Select all subsets to ensure that your dongle works. Most 3g dongles use the option driver or generic serial driver to work. Note that option driver has better capability of distinguishing between modem serial interfaces and storage interface than generic usb serial driver.

<*> kmod-usb-serial..................... Support for USB-to-Serial converters
<*> kmod-usb-serial-ark3116........ Support for ArkMicroChips ARK3116 devices
<*> kmod-usb-serial-belkin........................ Support for Belkin devices
<*> kmod-usb-serial-ch341.......................... Support for CH341 devices
<*> kmod-usb-serial-cp210x........... Support for Silicon Labs cp210x devices
<*> kmod-usb-serial-cypress-m8.............. Support for CypressM8 USB-Serial
<*> kmod-usb-serial-ftdi............................ Support for FTDI devices
<*> kmod-usb-serial-ipw.................... Support for IPWireless 3G devices
<*> kmod-usb-serial-keyspan........ Support for Keyspan USB-to-Serial devices
<*> kmod-usb-serial-mct.............. Support for Magic Control Tech. devices
<*> kmod-usb-serial-mos7720.............. Support for Moschip MOS7720 devices
<*> kmod-usb-serial-motorola-phone............ Support for Motorola usb phone
<*> kmod-usb-serial-option................... Support for Option HSDPA modems
<*> kmod-usb-serial-oti6858...... Support for Ours Technology OTI6858 devices
<*> kmod-usb-serial-pl2303............... Support for Prolific PL2303 devices
<*> kmod-usb-serial-qualcomm................. Support for Qualcomm USB serial
<*> kmod-usb-serial-sierrawireless....... Support for Sierra Wireless devices
<*> kmod-usb-serial-ti-usb...................... Support for TI USB 3410/5052
<*> kmod-usb-serial-visor............... Support for Handspring Visor devices
-*- kmod-usb-serial-wwan..................... Support for GSM and CDMA modems

Additional packages required for 3g functionality

Go to Network section. Select `uqmi` to support qmi interface and `ppp` to support standard point-to-point protocol.

Network
<*>ppp
<*>uqmi

Go to Utilities section. Select comgt to provide control over 3g interface and usb-modeswitch to provide mode switching between virtual cd-rom interface to serial interface.

Utilities
<*>comgt
<*>usb-modeswitch

Web Interface Support

If you want to control your 3g dongle with Luci web interface, go to Luci.

Luci
1. Collections
<*> luci
3. Applications
<*> luci-app-multiwan (optional to support multiple 3g dongles)
6. Protocols
<*> luci-proto-3g
-*- luci-proto-ppp

Build process

Continue selecting packages as needed. When you are done, run the build process

time make V=s download &&
time make V=s

If build process is successful, your firmware images will be located on bin/target-platform/.

If your hardware-specific image name could not be found, it's possible that you added too many packages that don't fit your hardware flash memory. Try reducing packages and restart the build process if such case happens.

openwrt固件支持3G和4G上网卡的更多相关文章

  1. 转:小白编译openwrt固件教程

    原文地址 编译openwrt固件并没有想象的那么复杂,我也是个小白,以下内容是我将网络上的编译教程稍微进行了一下整合.因为我发现很多编译教程没有说明如何更改flash相关配置.   安装ubuntu, ...

  2. 针对电信乌龙事件的深度测试: 广州电信错误将深圳地区189的号码在3G升级4G申请时从广州网厅发货,造成深圳用户收到4G卡后无法激活,深圳电信找不到订单

    广州电信错误将深圳地区189的3G升级4G申请从中国电信广州网厅发货(智能卡号:8986 1114 9002 0851  742X S  电话号码 189),造成用户收到4G卡后无法激活,深圳电信找不 ...

  3. TL-WR703Nv1.7刷写openwrt固件

    TP-LINK TL-WR703N是一个小型的路由器,可以有线转WiFi,3G转WiFi,很多人拿它刷openwrt系统,然后可以在上面各种搞事. V1.7以前 通常刷openwrt的做法是, 下载一 ...

  4. 编译适用于TP-Link WR703N的OpenWRT固件

    编译适用于TP-Link WR703N TP-Link MR11U 以及使用AR9331芯片组的单WAN/LAN复用口的路由. 注:刷机有风险,刷机需谨慎.一般情况下是不会失败的,若无法通过捅Rese ...

  5. Win10无法安装提示磁盘布局不受UEFI固件支持怎样解决

    微软在推出Win10系统以后,就向Win7和Win8.1系统用户提供了免费升级Win10系统的推送,但是用户在安装Win10系统的时候,却有一部分用户反映,遇到提示“无法安装Windows,因为这台电 ...

  6. OpenWrt固件刷入后串口终端没有反应的问题

    [路由器开发板硬件固件配置] MTK双频:MT7620a + MT7612e 内存:256 MB 闪存:16 MB 固件:MTK自带SDK中的OpenWrt固件(mtksdk-openwrt-2.6. ...

  7. darwin转发时,摄像机在3G和4G模式下的参数设置

    darwin转发时,摄像机在3G和4G模式下的参数设置 我们转发的是摄像机的子码流,因为在不同的网络环境下,为了达到当前网络环境下最清晰,最流畅的目标,在转发前要根据使用的是3G还是4G及信号强度来自 ...

  8. 4G上网卡NIDS拨号之Rmnet驱动

    4G上网卡一般为双对外通讯口,一个是串口.一个是USB. 但是基于串口的常用波特率为115200,速度过于底下,所以大多使用USB. 1)一般来说常用ppp拨号方式,ppp拨号方式分为应用层pppd与 ...

  9. 检测网络变化(wifi、2g、3g、4g)

    检测网络变化(wifi.2g.3g.4g) 1.注册广播"android.net.conn.CONNECTIVITY_CHANGE"和"android.net.wifi. ...

随机推荐

  1. React JS高速新手教程

    翻译至官方文档<Tutorial>http://facebook.github.io/react/docs/tutorial.html 转载请注明出处:http://blog.csdn.n ...

  2. C#程序(含多个Dll)合并成一个Exe

    把C#程序(含多个Dll)合并成一个Exe的超简单方法   开发程序的时候经常会引用一些第三方的DLL,然后编译生成的exe文件就不能脱离这些DLL独立运行了. 但是,很多时候我们本想开发一款只需要一 ...

  3. Android开发系列(十九个):至SimpleAdapter设置样式

    Adapter任务:在数据adapter处理后做.展会上的观点 对于一般ArrayAdapter供.传递给ArrayAdapter之后就能够在视图上用一个列表显示出这个字符串数组. 比例如以下边的代码 ...

  4. Codeforces 450 C. Jzzhu and Chocolate

    //area=(n*m)/ ((x+1)*(k-x+1)) //1: x==0; //2: x=n-1 //3: x=m-1 # include <stdio.h> long long m ...

  5. SpringMVC使用FileUpload上传文件

    进口FileUpload和common-io的Jar包 注意:1.Struts2其它方法需要使用的:struts2过滤,将改变reqeust类型,由HttpServletRequest成为MultiP ...

  6. &lt;%%&gt;创建内联代码块(表达)

    其实<%%>很早之前见过它,将一个小的功能仅.别人不理解.今天偶尔,我们看到它的真面目,今天,给大家分享. 语法 代码块呈现(<%%>)定义了当呈现页时运行的内联代码或内联表达 ...

  7. react.js 从零开始(二)组件的生命周期

    什么是生命周期? 组件本质上是一个状态机,输入确定,输出一定确定. 当状态改变的时候 会触发不同的钩子函数,可以让开发者做出响应.. 一个组件的生命周期可以概括为 初始化:状态下 可以自定义的函数 g ...

  8. openstack 网络简史

    openstack 网络简史 研究openstack有2个月的时间,这段时间从网上获取N多宝贵资料,对我的学习有非常大帮助,在加上我自己的研究,最终对openstack整个网络体系有了个浅显的认识,写 ...

  9. Sql Server之旅——第五站 确实不得不说的DBCC命令

    原文:Sql Server之旅--第五站 确实不得不说的DBCC命令 今天研发中心办年会,晚上就是各自部门聚餐了,我个人喜欢喝干红,在干红中你可以体味到那种酸甜苦辣...人生何尝不是这样呢???正好 ...

  10. POJ 2502 Subway (Dijkstra 最短+建设规划)

    Subway Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 6689   Accepted: 2176 Descriptio ...