openwrt固件支持3G和4G上网卡

摘要:
http://wiki.openwrt.org/doc/howtobuild/wireless-router-with-a-3g-dongleBuildingimagewithsupportfor3g/4gandusbtetheringPreparingbuildenvironmentFirstofall,youneedacompletebuildenvironment,eitherphysica

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上网卡》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇JAVA通过Map拼接SQL语句(Insert Update语句)jmeter中变量拼接使用的场景下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Andrioid Studio生成jar, aar包

在Android Studio中对一个自己库进行生成操作时将会同时生成*.jar与*.aar文件。分别存储位置:*.jar:库/build/intermediates/bundles/debug(release)/classes.jar *.aar:库/build/outputs/aar/libraryname.aar 两者区别:*.jar:只包含了cla...

(转)使用CruiseControl+SVN+ANT实现持续集成之二

1. 环境搭建1.1. 下载及目录介绍 从官方站点http://cruisecontrol.sourceforge.net/download.html下载一份最新的 CC 压缩包,最新的版本号为2.8.4 下载了cruisecontrol-bin-2.8.4.zip 直接解压到E盘下,文件结构如下图: apache-ant-1.7.0:CC中使用...

Windos Linux(CentOS 7) opencv安装 tar.gz文件安装

前提: 版本为4.4.0 下载地址:https://github.com/opencv/opencv/releases windows 下载.exe 安装之后 复制2个文件: buildjavaopencv-440.jar, buildjavax64opencv_java440.dll 调用列子如下: //windows 版本...

cef build

BranchesAndBuilding View History This Wiki page provides information about CEF branches and instructions for downloading, building and packaging source code. Note to Editors: Cha...

dpdk test + dpdk-procinfo

https://www.geek-share.com/detail/2586671676.html ABI_VERSION buildtools devtools GNUmakefile MAINTAINERS mk app config...

Android 编译时:m、mm、mmm、mma、mmma的区别

m:编译整个安卓系统 makes from the top of the tree mm:编译当前目录下的模块,当前目录下需要有Android.mk这个makefile文件,否则就往上找最近的Android.mk文件。 builds all of the moudles in the current directory mma:当前目录新增或删除文件后,可...