I got a 7455 LTE module from SIERRA and the corresponding DEVKIT. The DEVKIT interface is USB3.0. I can connect my other openwrt development board through USB3.0, and then openwrt development board loads the corresponding driver, virtual network card and serial port. The function of the USB network card, not much nonsense, the following are the steps to add:
Go to the Sierra website to find the 7455USB driver and download it at the following address:
- Create a gobinet directory under package/kernel, enter the gobinet directory, and create the Makefile and src directories. The contents of the Makefile are as follows:
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=gobinet
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define KernelPackage/gobinet
SUBMENU:=Other modules
TITLE:=gobinet for sierra
DEPENDS:=+kmod-usb-core kmod-usb-net //Remember to add dependencies
FILES:=$(PKG_BUILD_DIR)/gobinet.ko
KCONFIG:=
AUTOLOAD:=$(call AutoLoad,50,gobinet) //Automatic loading
endef
define KernelPackage/gobinet/description
Kernel module for Sierra USB
endef
EXTRA_KCONFIG:= \
CONFIG_GOBINET=m
EXTRA_CFLAGS:= \
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \
MAKE_OPTS:= \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
SUBDIRS="$(PKG_BUILD_DIR)" \
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
$(EXTRA_KCONFIG)
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \
$(MAKE_OPTS) \
modules
endef
$(eval $(call KernelPackage,gobinet))
- Enter the src directory, copy the source code GobiNet downloaded from the official website to the src directory, modify the contents of the Makefile as follows:
obj-${CONFIG_GOBINET} += gobinet.o
gobinet-objs := GobiUSBNet.o QMIDevice.o QMI.o usbnet_2_6_32.o usbnet_3_0_6.o \
usbnet_2_6_35.o usbnet_3_10_21.o usbnet_3_12_xx.o usbnet_4_4_xx.o
config SIERRA-NET
tristate "net for sierra USB"
Add steps similar to NIC drivers, note that the Makefile dependency is changed to:
DEPENDS:=+kmod-usb-core kmod-usb-serial //Remember to add dependencies
- Return to the main directory, make menuconfig, choose the following:
After saving make, you can find gobinet.ko and in the ./build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/gobinet/ipkg-ramips_24kec/kmod-gobinet/lib/modules/3.10.14/ directory. Gobiserial.ko driver file, copy the file to the development board, after the insmod work, after the 7455 module and the development board are successfully connected through usb3.0, dmesg can see:
The representative was successfully mounted.
Then you can go through the webpage:
See two more NICs, add the appropriate interface to use.