mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-27 12:33:49 +08:00
Compare commits
57 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70f0315d8d | ||
|
|
f3f3f69789 | ||
|
|
cf2c8972b3 | ||
|
|
5d8dcb76df | ||
|
|
525d55177a | ||
|
|
5b69874139 | ||
|
|
92c7c24a43 | ||
|
|
906f7881c7 | ||
|
|
1cec925bbb | ||
|
|
bd6aa7ed3d | ||
|
|
4e3fbdb5b3 | ||
|
|
02363930c1 | ||
|
|
c35f3b1ca1 | ||
|
|
da88558c98 | ||
|
|
3fa918aacc | ||
|
|
406002c5b0 | ||
|
|
e4df6d3814 | ||
|
|
52a8c3b217 | ||
|
|
9c4252e918 | ||
|
|
39d7ee1f1a | ||
|
|
e446abffd3 | ||
|
|
a35497685b | ||
|
|
c364bb7f82 | ||
|
|
0440496d16 | ||
|
|
981d4b0b7d | ||
|
|
7513d32e91 | ||
|
|
45c4d8dc39 | ||
|
|
1fa45afa52 | ||
|
|
8c272d3613 | ||
|
|
8de301e38b | ||
|
|
f91e7063ca | ||
|
|
bcba464917 | ||
|
|
b1d03ebb60 | ||
|
|
833e1b90c5 | ||
|
|
206370c994 | ||
|
|
ad4d329dc1 | ||
|
|
f8857b208d | ||
|
|
f072c81d04 | ||
|
|
7799804f1d | ||
|
|
6d5130e982 | ||
|
|
b08f86d209 | ||
|
|
a9976f626b | ||
|
|
223f025b72 | ||
|
|
c8ba536d59 | ||
|
|
6781aad52e | ||
|
|
133ab71018 | ||
|
|
e3c43d892f | ||
|
|
d9380968a1 | ||
|
|
8784439985 | ||
|
|
d1ad9dc34f | ||
|
|
c430a0f15e | ||
|
|
800728c7aa | ||
|
|
38668ee8d9 | ||
|
|
e9d00040a7 | ||
|
|
bc5fad2c76 | ||
|
|
52ea555ffb | ||
|
|
eeecaa27de |
@@ -1,15 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys Software Solutions AB. All rights reserved.
|
||||
# Copyright (C) 2016 inteno
|
||||
#
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
@@ -27,9 +20,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
# support parallel build
|
||||
#PKG_BUILD_PARALLEL:=1
|
||||
|
||||
|
||||
@@ -13,9 +13,6 @@ PKG_MD5SUM:=b72c17870bfab2fd791b1f6de4d79f9e
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=none
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
if PACKAGE_libbbfdm
|
||||
|
||||
config LIBBBFDM_VENDOR_PREFIX
|
||||
string "Vendor Prefix"
|
||||
default "X_IOPSYS_EU_"
|
||||
|
||||
config BBF_TR181
|
||||
bool "Compile with tr181 device features"
|
||||
default y
|
||||
|
||||
config BBF_TR104
|
||||
bool "Compile with tr104 voice features"
|
||||
default y
|
||||
|
||||
config BBF_TR143
|
||||
bool "Compile with tr143 diagnostics features"
|
||||
default y
|
||||
|
||||
config BBF_TR157
|
||||
bool "Compile with tr157 bulkdata collector features"
|
||||
default y
|
||||
|
||||
config BBF_TR064
|
||||
bool "Compile with tr064 features"
|
||||
default n
|
||||
|
||||
endif
|
||||
88
bbf/Makefile
88
bbf/Makefile
@@ -1,88 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2019 Iopsys
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libbbfdm
|
||||
PKG_VERSION:=1.0-2019-11-02
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bbf.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=a33b47b9c34bdd174e39b54525b082259c60850c
|
||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libbbfdm
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Library for broadband-forum data model
|
||||
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c +libtrace
|
||||
endef
|
||||
|
||||
define Package/libbbfdm/config
|
||||
source "$(SOURCE)/Config_bbfdm.in"
|
||||
endef
|
||||
|
||||
define Package/libbbfdm/description
|
||||
Test description will update later.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += -DCUSTOM_PREFIX=\\\"$(CONFIG_LIBBBFDM_VENDOR_PREFIX)\\\"
|
||||
|
||||
TARGET_CFLAGS += \
|
||||
-D_GNU_SOURCE -D_AADJ
|
||||
|
||||
ifeq ($(CONFIG_BBF_TR181),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-tr181
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BBF_TR104),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-tr104
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BBF_TR143),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-tr143
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BBF_TR157),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-tr157
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BBF_TR064),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-tr064
|
||||
endif
|
||||
|
||||
define Package/libbbfdm/install
|
||||
$(INSTALL_DIR) $(1)/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.so* $(1)/lib/
|
||||
$(INSTALL_DIR) $(1)/etc/bbfdm
|
||||
$(INSTALL_DIR) $(1)/etc/bbfdm/json
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/dmmap $(1)/etc/bbfdm
|
||||
$(INSTALL_DIR) $(1)/usr/share/bbfdm
|
||||
$(CP) $(PKG_BUILD_DIR)/scripts/functions $(1)/usr/share/bbfdm
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(INSTALL_DIR) $(1)/usr/include/libbbfdm
|
||||
$(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libbbfdm/
|
||||
$(CP) $(PKG_BUILD_DIR)/dmtree/tr181/*.h $(1)/usr/include/libbbfdm/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.{a,so*} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libbbfdm))
|
||||
@@ -1,42 +0,0 @@
|
||||
#
|
||||
# Copright (C) 2018 The Internet Foundation In Sweden
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=bbk_cli
|
||||
PKG_SOURCE_VERSION:=7b810a696c78b746185c11282bdbe3fb7f8c5d4b
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/dotse/bbk.git
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/bbk_cli
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=+libpthread +libstdcpp
|
||||
TITLE:=Bredbandskollen CLI - A bandwidth measurement tool
|
||||
endef
|
||||
|
||||
define Package/bbk_cli/description
|
||||
To measure connection speed in an environment that is missing a web browser,
|
||||
for example, in a server, you can use our command line interface bbk_cli,
|
||||
which is available for some of the most common operating systems.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)/src/cli CROSS_COMPILE="$(TARGET_CROSS)"
|
||||
endef
|
||||
|
||||
define Package/bbk_cli/install
|
||||
$(INSTALL_DIR) $(1)/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/cli/cli $(1)/sbin/bbk_cli
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,bbk_cli))
|
||||
@@ -1,25 +0,0 @@
|
||||
diff --git a/src/framework/engine.h b/src/framework/engine.h
|
||||
index 57a48ad..9e1bc36 100644
|
||||
--- a/src/framework/engine.h
|
||||
+++ b/src/framework/engine.h
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
+#include <sys/select.h>
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
diff --git a/src/framework/mk.inc b/src/framework/mk.inc
|
||||
index 793e211..13275be 100644
|
||||
--- a/src/framework/mk.inc
|
||||
+++ b/src/framework/mk.inc
|
||||
@@ -7,7 +7,7 @@ OS:=$(shell uname)
|
||||
CXXFLAGS += -O2 -W -Wall -I$(DIRLEVEL)
|
||||
|
||||
ifeq ($(OS),Linux)
|
||||
-CXX = g++
|
||||
+CXX = $(CROSS_COMPILE)g++
|
||||
endif
|
||||
|
||||
ifeq ($(OS),Darwin)
|
||||
@@ -18,9 +18,6 @@ PKG_SOURCE_VERSION:=3ab81137cafe25c2ca4bc3a5f322a63646f9ce8d
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=none
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/bootchart2
|
||||
|
||||
@@ -1,19 +1,9 @@
|
||||
#
|
||||
# Copyright (C) 2018 iopsys Software Solutions AB
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=catv
|
||||
PKG_RELEASE:=1
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=none
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/catv
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys Software Solutions AB
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=crashlog
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=none
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys Software Solutions AB
|
||||
# Copyright (C) 2006-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_RELEASE:=1
|
||||
PKG_VERSION:=1.3.0
|
||||
PKG_VERSION:=1.2.0
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=2c8990fd5275d469e8ab6c7a99e17fe0a56052ea
|
||||
PKG_SOURCE_VERSION:=0c029ed2486342e7e7687631b702d5c743f3c41a
|
||||
PKG_NAME:=dectmngr2
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
RSTRIP:=true
|
||||
export BUILD_DIR
|
||||
@@ -30,7 +29,7 @@ define Package/dectmngr2
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Dectmngr2
|
||||
URL:=
|
||||
DEPENDS:= +natalie-dect-h bcmkernel +libubox +ubus +libpicoevent endptmngr
|
||||
DEPENDS:= +natalie-dect-h bcmkernel +libubox +ubus +libpicoevent
|
||||
endef
|
||||
|
||||
define Package/dectmngr2/description
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2018 iopsys Software Solutions AB
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dslmngr
|
||||
PKG_VERSION:=1.0.0
|
||||
|
||||
LOCAL_DEV=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=7522faab4142fe2c0ac8cbf71bb0cc5bd49f0750
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dslmngr.git
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
endif
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_mips),y)
|
||||
TARGET_PLATFORM=BROADCOM
|
||||
else ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y)
|
||||
TARGET_PLATFORM=BROADCOM
|
||||
else ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
|
||||
TARGET_PLATFORM=MEDIATEK
|
||||
else ifeq ($(CONFIG_TARGET_iopsys_linksys),y)
|
||||
TARGET_PLATFORM=MARVELL
|
||||
else ifeq ($(CONFIG_TARGET_intel_mips),y)
|
||||
TARGET_PLATFORM=INTEL
|
||||
else
|
||||
$(info Unexpected CONFIG_TARGET)
|
||||
endif
|
||||
|
||||
export TARGET_PLATFORM
|
||||
|
||||
define Package/dslmngr
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=XDSL status and configration utility
|
||||
DEPENDS:=+libdsl +libuci +libubox +ubus +libpthread +libnl-genl +easy-soc-libs
|
||||
endef
|
||||
|
||||
define Package/dslmngr/description
|
||||
This package can be used to configure and provide status about
|
||||
the XDSL subsystem through UBUS.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += \
|
||||
-I$(STAGING_DIR)/usr/include \
|
||||
-I$(STAGING_DIR)/usr/include/libnl3 \
|
||||
-D_GNU_SOURCE
|
||||
|
||||
MAKE_FLAGS += \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
FPIC="$(FPIC)"
|
||||
|
||||
ifeq ($(LOCAL_DEV),1)
|
||||
define Build/Prepare
|
||||
rsync -r --exclude=.* ~/git/dslmngr/ $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
endif
|
||||
|
||||
define Build/Compile
|
||||
+$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS)
|
||||
endef
|
||||
|
||||
define Package/dslmngr/install
|
||||
$(INSTALL_DIR) $(1)/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dslmngr $(1)/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,dslmngr))
|
||||
@@ -1,51 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys Software Solutions AB
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=easy-qos
|
||||
PKG_VERSION:=1.1
|
||||
PKG_RELEASE:=0
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=none
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/easy-qos
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Easy QoS
|
||||
DEPENDS:=@(TARGET_intel_mips||TARGET_iopsys_brcm63xx_arm||TARGET_iopsys_brcm63xx_mips)
|
||||
endef
|
||||
|
||||
define Package/easy-qos/description
|
||||
This package contains Easy QoS utility
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
$(CP) ./files/* $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/easy-qos/install
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
$(CP) ./files/etc/config/easy_qos $(1)/etc/config/
|
||||
ifeq ($(CONFIG_TARGET_intel_mips),y)
|
||||
$(CP) ./files/etc/init.d/easy_qos.classcfg $(1)/etc/init.d/easy_qos
|
||||
else
|
||||
$(CP) ./files/etc/init.d/easy_qos.iptables $(1)/etc/init.d/easy_qos
|
||||
endif
|
||||
$(CP) ./files/etc/uci-defaults/* $(1)/etc/uci-defaults/
|
||||
$(CP) ./files/etc/firewall.easyqos $(1)/etc/firewall.easyqos
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,easy-qos))
|
||||
@@ -1 +0,0 @@
|
||||
/etc/init.d/easy_qos reload
|
||||
@@ -1,165 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
USE_PROCD=1
|
||||
|
||||
RULE_LIST="/tmp/easy_qos_rule.list"
|
||||
BRIDGE_INTF=""
|
||||
|
||||
[ -f /etc/profile.d/intel.sh ] && {
|
||||
. /etc/profile.d/intel.sh
|
||||
sh /etc/profile.d/intel.sh
|
||||
}
|
||||
|
||||
log() {
|
||||
echo "${@}"|logger -t easy_qos_class -p debug
|
||||
}
|
||||
|
||||
exec_log() {
|
||||
${@} |grep -i successful
|
||||
if [ "${?}" -ne 0 ]; then
|
||||
log "Failed to create ${@}";
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
get_priority() {
|
||||
local prio=$(echo $1|tr [A-Z] [a-z]);
|
||||
case "${prio}" in
|
||||
"lowest")
|
||||
echo 8;;
|
||||
"low")
|
||||
echo 7;;
|
||||
"besteffort")
|
||||
echo 6;;
|
||||
"normal")
|
||||
echo 5;;
|
||||
"video")
|
||||
echo 4;;
|
||||
"medium")
|
||||
echo 3;;
|
||||
"high")
|
||||
echo 2;;
|
||||
"highest")
|
||||
echo 1;;
|
||||
esac
|
||||
}
|
||||
|
||||
is_lan_bridge() {
|
||||
local _section=$1
|
||||
local _type
|
||||
local _is_lan
|
||||
|
||||
config_get _type "$section" "type"
|
||||
config_get _is_lan "$section" "is_lan"
|
||||
|
||||
if [ "${_type}" == "bridge" -a "${_is_lan}" == "1" ]; then
|
||||
BRIDGE_INTF="br-${_section}"
|
||||
fi
|
||||
}
|
||||
|
||||
get_bridge_interface() {
|
||||
config_load network
|
||||
config_foreach is_lan_bridge interface
|
||||
}
|
||||
|
||||
validate_rule_section()
|
||||
{
|
||||
uci_validate_section easy_qos rule "${1}" \
|
||||
'priority:string:none' \
|
||||
'macaddr:string:none' \
|
||||
'proto:string:none' \
|
||||
'port:list(uinteger):none' \
|
||||
'comment:string:none'
|
||||
}
|
||||
|
||||
# Clear existing rules before applying new rules
|
||||
clear_existing_rules() {
|
||||
# execute the delete rules written onto a file then delete the file
|
||||
[ -f ${RULE_LIST} ] || return 0
|
||||
|
||||
while read line
|
||||
do
|
||||
log "Deleting old classification rules"
|
||||
exec_log classcfg -D ${line} -i ${BRIDGE_INTF}
|
||||
done <${RULE_LIST}
|
||||
sync
|
||||
|
||||
[ -f ${RULE_LIST} ] && rm ${RULE_LIST}
|
||||
}
|
||||
|
||||
# classcfg -M local_dhcp -i lo -p udp --dport 67:67 --dport 68:68 -j mark --mark 1
|
||||
create_rule() {
|
||||
local proto=$1; shift
|
||||
local mac_addr=$1; shift
|
||||
local mark=$1; shift
|
||||
local ports=$1;
|
||||
local cmd="";
|
||||
# Rule name is uniqe, so we take hash of all the input as rule_name
|
||||
local rule_name="$(echo ${mac_addr}${proto}${mark}${ports} |md5sum |head -c 30)"
|
||||
|
||||
cmd="-j mark --mark ${mark}";
|
||||
|
||||
if [ "${mac_addr}" != "none" ]; then
|
||||
cmd="--smac ${mac_addr} ${cmd}";
|
||||
fi
|
||||
if [ "${ports}" != "none" ]; then
|
||||
IFS=","
|
||||
for port in ${ports};
|
||||
do
|
||||
cmd="--dport ${port}:${port} ${cmd}";
|
||||
done
|
||||
IFS=' '
|
||||
fi
|
||||
if [ "${proto}" != "none" ]; then
|
||||
cmd="-p ${proto} $cmd"
|
||||
fi
|
||||
cmd="-i ${BRIDGE_INTF} $cmd"
|
||||
cmd="-A ${rule_name} $cmd"
|
||||
|
||||
# Store the rule_names for cleanup on reload
|
||||
exec_log classcfg ${cmd}
|
||||
[ $? -eq 0 ] && \
|
||||
echo ${rule_name} >> ${RULE_LIST}
|
||||
}
|
||||
|
||||
manage_rule() {
|
||||
local cfg="$1"
|
||||
local priority macaddr proto port comment prio_num port_list
|
||||
|
||||
validate_rule_section "${1}" || {
|
||||
log "Validation of section failed"
|
||||
return 1;
|
||||
}
|
||||
|
||||
prio_num=$(get_priority ${priority})
|
||||
port_list=$(echo ${port}|sed 's/ /,/g')
|
||||
|
||||
if [ -n "${prio_num}" ]; then
|
||||
if [ "${proto}" == "none" -o "${proto}" == "tcpudp" ]; then
|
||||
create_rule tcp ${macaddr} ${prio_num} ${port_list}
|
||||
create_rule udp ${macaddr} ${prio_num} ${port_list}
|
||||
else
|
||||
create_rule ${proto} ${macaddr} ${prio_num} ${port_list}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
get_bridge_interface
|
||||
clear_existing_rules
|
||||
config_load easy_qos
|
||||
config_foreach manage_rule rule
|
||||
}
|
||||
|
||||
start_service() {
|
||||
[ -x /opt/intel/usr/sbin/classcfg ] || exit 0
|
||||
reload_service
|
||||
log "Easy QoS class installed"
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger "easy_qos" "network"
|
||||
}
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
USE_PROCD=1
|
||||
|
||||
log() {
|
||||
echo "${@}"|logger -t easy_qos.ebtable -p debug
|
||||
}
|
||||
|
||||
exec_log() {
|
||||
${@}
|
||||
if [ "${?}" -ne 0 ]; then
|
||||
log "Failed to create ${@}";
|
||||
fi
|
||||
}
|
||||
|
||||
get_priority() {
|
||||
local prio=$(echo $1|tr [A-Z] [a-z]);
|
||||
case "${prio}" in
|
||||
"lowest")
|
||||
echo 0;;
|
||||
"low")
|
||||
echo 1;;
|
||||
"besteffort")
|
||||
echo 2;;
|
||||
"normal")
|
||||
echo 3;;
|
||||
"video")
|
||||
echo 4;;
|
||||
"medium")
|
||||
echo 5;;
|
||||
"high")
|
||||
echo 6;;
|
||||
"highest")
|
||||
echo 7;;
|
||||
esac
|
||||
}
|
||||
|
||||
validate_rule_section()
|
||||
{
|
||||
uci_validate_section easy_qos rule "${1}" \
|
||||
'priority:string' \
|
||||
'macaddr:string' \
|
||||
'proto:string:none' \
|
||||
'port:list(uinteger)' \
|
||||
'comment:string:none'
|
||||
}
|
||||
|
||||
# Clear existing rules before applying new rules
|
||||
clear_existing_rules() {
|
||||
local rule=$(ebtables -t broute -L BROUTING|grep -m 1 mark)
|
||||
while [ -n "${rule}" ]; do
|
||||
exec_log ebtables -t broute -D BROUTING ${rule}
|
||||
rule=$(ebtables -t broute -L BROUTING|grep -m 1 mark)
|
||||
done
|
||||
}
|
||||
|
||||
create_rule() {
|
||||
local protocol=$1; shift
|
||||
local mac=$1; shift
|
||||
local mark="0x$1"; shift
|
||||
local forward_port=$1;
|
||||
local cmd="";
|
||||
local protocol_number
|
||||
|
||||
cmd="-j mark --mark-or ${mark}";
|
||||
if [ -n "${forward_port}" ]; then
|
||||
cmd="--ip-destination-port ${forward_port} ${cmd}";
|
||||
fi
|
||||
|
||||
case "${protocol}" in
|
||||
"tcp")
|
||||
protocol_number=6;;
|
||||
"udp")
|
||||
protocol_number=17;;
|
||||
"dccp")
|
||||
protocol_number=33;;
|
||||
"sctp")
|
||||
protocol_number=132;;
|
||||
*)
|
||||
log "Protocol ${protocol} not supported in ebtables"
|
||||
return;;
|
||||
esac
|
||||
|
||||
cmd="--ip-proto ${protocol_number} $cmd"
|
||||
cmd="-p ip $cmd"
|
||||
|
||||
cmd="-s ${mac} $cmd"
|
||||
exec_log ebtables -t broute -A BROUTING ${cmd}
|
||||
}
|
||||
|
||||
manage_rule() {
|
||||
local cfg="$1"
|
||||
local priority macaddr proto port comment prio_num protocol
|
||||
|
||||
validate_rule_section "${1}" || {
|
||||
log "Validation of section failed"
|
||||
return 1;
|
||||
}
|
||||
|
||||
protocol=$(echo ${proto}|tr [A-Z] [a-z])
|
||||
prio_num=$(get_priority ${priority})
|
||||
if [ -n "${macaddr}" -a -n "${prio_num}" ]; then
|
||||
for p in ${port}; do
|
||||
if [ "${protocol}" == "none" -o "${protocol}" == "tcpudp" ]; then
|
||||
create_rule tcp ${macaddr} ${prio_num} ${p}
|
||||
create_rule udp ${macaddr} ${prio_num} ${p}
|
||||
else
|
||||
create_rule ${protocol} ${macaddr} ${prio_num} ${p}
|
||||
fi
|
||||
done
|
||||
# Create rule for all ports if port is not mentioned in uci
|
||||
if [ -z "${port}" ]; then
|
||||
if [ "${protocol}" == "none" -o "${protocol}" == "tcpudp" ]; then
|
||||
create_rule tcp ${macaddr} ${prio_num}
|
||||
create_rule udp ${macaddr} ${prio_num}
|
||||
else
|
||||
create_rule ${protocol} ${macaddr} ${prio_num}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
# Do not apply rules if ebtables is not present in system
|
||||
[ -x /usr/sbin/ebtables ] || return;
|
||||
|
||||
clear_existing_rules
|
||||
config_load easy_qos
|
||||
config_foreach manage_rule rule
|
||||
}
|
||||
|
||||
start_service() {
|
||||
reload_service
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger "easy_qos"
|
||||
}
|
||||
|
||||
@@ -1,186 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
. /usr/share/libubox/jshn.sh
|
||||
|
||||
START=99
|
||||
USE_PROCD=1
|
||||
|
||||
CLIENT_LIST="/tmp/easy_qos_client.list"
|
||||
|
||||
log() {
|
||||
echo "${@}"|logger -t easy_qos -p debug
|
||||
}
|
||||
|
||||
exec_log() {
|
||||
${@}
|
||||
if [ "${?}" -ne 0 ]; then
|
||||
log "Failed to create ${@}";
|
||||
fi
|
||||
}
|
||||
|
||||
get_priority() {
|
||||
local prio=$(echo $1|tr [A-Z] [a-z]);
|
||||
case "${prio}" in
|
||||
"lowest")
|
||||
echo 0;;
|
||||
"low")
|
||||
echo 1;;
|
||||
"besteffort")
|
||||
echo 2;;
|
||||
"normal")
|
||||
echo 3;;
|
||||
"video")
|
||||
echo 4;;
|
||||
"medium")
|
||||
echo 5;;
|
||||
"high")
|
||||
echo 6;;
|
||||
"highest")
|
||||
echo 7;;
|
||||
esac
|
||||
}
|
||||
|
||||
clean_client_entries() {
|
||||
[ -f ${CLIENT_LIST} ] && rm ${CLIENT_LIST}
|
||||
}
|
||||
|
||||
map_client_entries() {
|
||||
local clients ip mac host
|
||||
|
||||
json_load "$(ubus call router.network 'clients')"
|
||||
json_get_keys keys
|
||||
|
||||
for key in ${keys};
|
||||
do
|
||||
json_select ${key}
|
||||
json_get_vars ipaddr macaddr hostname
|
||||
clients="${macaddr} ${ipaddr} ${hostname};${clients}"
|
||||
json_select ..
|
||||
done
|
||||
|
||||
json_init
|
||||
|
||||
# json_add_array "clients"
|
||||
IFS=";"
|
||||
for client in ${clients};
|
||||
do
|
||||
macaddr=$(echo ${client} | cut -d" " -f1)
|
||||
json_add_object "${macaddr//:/_}"
|
||||
json_add_string "ip" "$(echo ${client} | cut -d" " -f2)"
|
||||
json_add_string "macaddr" "$(echo ${client} | cut -d" " -f1)"
|
||||
json_add_string "host" "$(echo ${client} | cut -d" " -f3)"
|
||||
json_close_object
|
||||
done
|
||||
|
||||
IFS=' '
|
||||
echo `json_dump` > ${CLIENT_LIST}
|
||||
json_cleanup
|
||||
}
|
||||
|
||||
# Find the IP of a corresponding mac from arp table
|
||||
get_ipaddress() {
|
||||
local clients ip mac host
|
||||
|
||||
json_load "$(cat ${CLIENT_LIST})"
|
||||
json_get_keys keys
|
||||
|
||||
# jshn seems a bit iffy on having : in key, replace by _
|
||||
json_select "${1//:/_}" 2 > /dev/null
|
||||
json_get_var ip ip
|
||||
|
||||
echo "$ip"
|
||||
}
|
||||
|
||||
validate_rule_section()
|
||||
{
|
||||
uci_validate_section easy_qos rule "${1}" \
|
||||
'priority:string' \
|
||||
'macaddr:string' \
|
||||
'proto:string:none' \
|
||||
'port:list(uinteger)' \
|
||||
'comment:string:none'
|
||||
}
|
||||
|
||||
# Clear existing rules before applying new rules
|
||||
clear_existing_rules() {
|
||||
local rule=$(iptables -t mangle -S OUTPUT|grep -m 1 MARK |sed 's/-A/-D/1')
|
||||
while [ -n "${rule}" ]; do
|
||||
exec_log iptables -t mangle ${rule}
|
||||
rule=$(iptables -t mangle -S OUTPUT|grep -m 1 MARK |sed 's/-A/-D/1')
|
||||
done
|
||||
}
|
||||
|
||||
check_and_create() {
|
||||
iptables -t mangle -C OUTPUT ${@} 2>/dev/null
|
||||
# Create rule if not exists
|
||||
if [ ${?} -ne 0 ]; then
|
||||
exec_log iptables -t mangle -A OUTPUT ${@}
|
||||
else
|
||||
log "Rule exists for ${@}"
|
||||
fi
|
||||
}
|
||||
|
||||
create_rule() {
|
||||
local proto=$1; shift
|
||||
local src_ip=$1; shift
|
||||
local mark="0x$1/0x$1"; shift
|
||||
local ports=$1;
|
||||
local cmd="";
|
||||
|
||||
cmd="-j MARK --set-xmark ${mark}";
|
||||
if [ -n "${ports}" ]; then
|
||||
cmd="--match multiport --dports ${ports} ${cmd}";
|
||||
fi
|
||||
|
||||
if [ "${proto}" == "icmp" ]; then
|
||||
cmd="-p icmp -m icmp --icmp-type 8 $cmd"
|
||||
elif [ "${proto}" == "all" ]; then
|
||||
cmd="-p all $cmd"
|
||||
else
|
||||
cmd="-p ${proto} -m ${proto} $cmd"
|
||||
fi
|
||||
cmd="-s ${src_ip} $cmd"
|
||||
|
||||
check_and_create ${cmd}
|
||||
}
|
||||
|
||||
manage_rule() {
|
||||
local cfg="$1"
|
||||
local priority macaddr proto port comment prio_num ip port_list
|
||||
|
||||
validate_rule_section "${1}" || {
|
||||
log "Validation of section failed"
|
||||
return 1;
|
||||
}
|
||||
|
||||
prio_num=$(get_priority ${priority})
|
||||
ip=$(get_ipaddress ${macaddr})
|
||||
port_list=$(echo ${port}|sed 's/ /,/g')
|
||||
|
||||
if [ -n "${ip}" -a -n "${prio_num}" ]; then
|
||||
if [ "${proto}" == "none" -o "${proto}" == "tcpudp" ]; then
|
||||
create_rule tcp ${ip} ${prio_num} ${port_list}
|
||||
create_rule udp ${ip} ${prio_num} ${port_list}
|
||||
else
|
||||
create_rule ${proto} ${ip} ${prio_num} ${port_list}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
clear_existing_rules
|
||||
map_client_entries
|
||||
config_load easy_qos
|
||||
config_foreach manage_rule rule
|
||||
clean_client_entries
|
||||
}
|
||||
|
||||
start_service() {
|
||||
reload_service
|
||||
echo "Easy QoS installed">/dev/console;
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger "easy_qos"
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
# Add firewall include
|
||||
uci -q batch <<-EOT
|
||||
delete firewall.easyqos
|
||||
set firewall.easyqos=include
|
||||
set firewall.easyqos.path=/etc/firewall.easyqos
|
||||
set firewall.easyqos.reload=1
|
||||
uci del_list firewall.easyqos._access_w="root"
|
||||
uci add_list firewall.easyqos._access_w="root"
|
||||
commit firewall
|
||||
EOT
|
||||
@@ -15,9 +15,5 @@ config LIBDSL_DEBUG
|
||||
bool "Enable xdsl debugging"
|
||||
default n
|
||||
|
||||
config LIBDSL_TEST
|
||||
depends on PACKAGE_libdsl
|
||||
bool "Libdsl test program"
|
||||
default n
|
||||
endmenu
|
||||
endif
|
||||
|
||||
@@ -1,29 +1,21 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys Software Solutions AB
|
||||
# Copyright (C) 2018 Iopsys
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=easy-soc-libs
|
||||
PKG_VERSION:=2.4.1
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
LOCAL_DEV=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=63f749faa67670229a5cbaf39ee0fef92d8276f3
|
||||
PKG_SOURCE_VERSION:=6a311af7cd17fc410c27de3cfae33b658195fd0b
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/easy-soc-libs.git
|
||||
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
||||
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@inteno.se>
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
|
||||
endif
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/easy-soc-libs
|
||||
@@ -42,24 +34,26 @@ endef
|
||||
define Package/libwifi
|
||||
$(call Package/easy-soc-libs)
|
||||
TITLE:= WiFi library (libwifi)
|
||||
DEPENDS+=+libnl +libnl-route
|
||||
endef
|
||||
|
||||
define Package/libdsl
|
||||
$(call Package/easy-soc-libs)
|
||||
TITLE:= XDSL library (libdsl)
|
||||
endef
|
||||
|
||||
define Package/libethernet
|
||||
$(call Package/easy-soc-libs)
|
||||
TITLE:= Ethernet library (libethernet)
|
||||
DEPENDS+=+TARGET_iopsys_ramips:swconfig
|
||||
DEPENDS:=+TARGET_iopsys_ramips:swconfig
|
||||
endef
|
||||
|
||||
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_mips),y)
|
||||
TARGET_PLATFORM=BROADCOM
|
||||
TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCONFIG_BCM963138 \
|
||||
-I$(STAGING_DIR)/usr/include/bcm963xx/bcmdrivers/opensource/include/bcm963xx
|
||||
TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCONFIG_BCM963138
|
||||
KERNEL_DIR:=$(BUILD_DIR)/bcmkernel/bcm963xx
|
||||
else ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y)
|
||||
TARGET_PLATFORM=BROADCOM
|
||||
TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCONFIG_BCM963138 \
|
||||
-I$(STAGING_DIR)/usr/include/bcm963xx/bcmdrivers/opensource/include/bcm963xx
|
||||
TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCONFIG_BCM963138
|
||||
else ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
|
||||
TARGET_PLATFORM=MEDIATEK
|
||||
TARGET_CFLAGS +=-DIOPSYS_MEDIATEK
|
||||
@@ -70,21 +64,13 @@ else ifeq ($(CONFIG_TARGET_intel_mips),y)
|
||||
TARGET_PLATFORM=INTEL
|
||||
TARGET_CFLAGS +=-DIOPSYS_INTEL
|
||||
else
|
||||
$(info Unexpected CONFIG_TARGET)
|
||||
$(info (UNEXPECTED CONFIG TARGET))
|
||||
endif
|
||||
|
||||
export TARGET_PLATFORM
|
||||
|
||||
ifdef CONFIG_IOP_LLA_LIBS_DEBUG
|
||||
TARGET_CFLAGS += -DIOP_LLA_LIBS_DEBUG
|
||||
endif
|
||||
|
||||
define Package/libdsl
|
||||
$(call Package/easy-soc-libs)
|
||||
TITLE:= XDSL library (libdsl)
|
||||
DEPENDS+=+TARGET_intel_mips:dsl-cpe-api-vrx +TARGET_intel_mips:dsl-cpe-fapi +TARGET_intel_mips:kmod-ppa-drv
|
||||
endef
|
||||
|
||||
subdirs := \
|
||||
$(if $(CONFIG_PACKAGE_libwifi),libwifi) \
|
||||
$(if $(CONFIG_PACKAGE_libdsl),libdsl) \
|
||||
@@ -92,27 +78,20 @@ subdirs := \
|
||||
|
||||
TARGET_CFLAGS += \
|
||||
-I$(STAGING_DIR)/usr/include \
|
||||
-I$(STAGING_DIR)/usr/include/openssl \
|
||||
-I$(STAGING_DIR)/usr/include/libnl3
|
||||
|
||||
MAKE_FLAGS += \
|
||||
CFLAGS="$(TARGET_CFLAGS) -Wall -I./" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
FPIC="$(FPIC)" \
|
||||
PLATFORM="$(TARGET_PLATFORM)" \
|
||||
subdirs="$(subdirs)"
|
||||
|
||||
ifeq ($(LOCAL_DEV),1)
|
||||
define Build/Prepare
|
||||
rsync -r --exclude=.* ~/git/easy-soc-libs/ $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
endif
|
||||
|
||||
define Build/InstallDev/libwifi
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/libwifi/wifi.h $(1)/usr/include/
|
||||
$(CP) $(PKG_BUILD_DIR)/libwifi/libwifi*.so* $(1)/usr/lib/
|
||||
$(CP) $(PKG_BUILD_DIR)/libwifi/libwifi.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Build/InstallDev/libdsl
|
||||
@@ -129,12 +108,6 @@ define Build/InstallDev/libethernet
|
||||
$(CP) $(PKG_BUILD_DIR)/libethernet/libethernet.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default)
|
||||
ifeq ($(CONFIG_LIBDSL_TEST),y)
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)/libdsl/test" $(MAKE_FLAGS)
|
||||
endif
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(foreach dir,$(subdirs),$(call Build/InstallDev/$(dir),$(1),$(2));)
|
||||
@@ -142,7 +115,7 @@ endef
|
||||
|
||||
define Package/libwifi/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/libwifi/libwifi*.so* $(1)/usr/lib/
|
||||
$(CP) $(PKG_BUILD_DIR)/libwifi/libwifi.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libethernet/install
|
||||
@@ -152,14 +125,9 @@ endef
|
||||
|
||||
define Package/libdsl/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_BUILD_DIR)/libdsl/libdsl.so* $(1)/usr/lib/
|
||||
ifeq ($(CONFIG_LIBDSL_TEST),y)
|
||||
$(CP) $(PKG_BUILD_DIR)/libdsl/test/libdsl_test $(1)/usr/bin/
|
||||
endif
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libwifi))
|
||||
$(eval $(call BuildPackage,libdsl))
|
||||
$(eval $(call BuildPackage,libethernet))
|
||||
$(eval $(call BuildPackage,easy-soc-libs))
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
#
|
||||
# Copyright (C) 2018 IOPSYS Software Solutions AB
|
||||
# Copyright (C) 2006-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_RELEASE:=1
|
||||
PKG_VERSION:=0.2
|
||||
PKG_SOURCE_VERSION:=ef49d57c3824df4dfb4921d39461e2bd14f918a7
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_SOURCE_VERSION:=a78fe95d5c5a0a320f3b62b9d2faafd07b56e3a7
|
||||
|
||||
|
||||
ifeq ($(CONFIG_ENDPT_OPEN),y)
|
||||
BRCM_KERNEL_PROFILE=$(shell echo $(CONFIG_BCM_KERNEL_PROFILE) | sed s/\"//g)
|
||||
PKG_SOURCE:=endptmngr-$(BRCM_KERNEL_PROFILE)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://download.iopsys.eu/iopsys/opensdk/
|
||||
PKG_SOURCE_URL:=http://iopsys.inteno.se/iopsys/consumer/
|
||||
PKG_NAME:=endptmngr-open
|
||||
PATCH_DIR:=
|
||||
else
|
||||
PKG_SOURCE_URL:=git@dev.iopsys.eu:iopsys/endptmngr
|
||||
PKG_SOURCE_PROTO:=git
|
||||
@@ -42,7 +41,7 @@ define Package/endptmngr
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Brcmslic
|
||||
URL:=
|
||||
DEPENDS:= +libubox +ubus +libpicoevent @(PACKAGE_bcmkernel||PACKAGE_bcmopen) @TARGET_HAS_VOICE
|
||||
DEPENDS:= +libubox +ubus +libpicoevent +PACKAGE_bcmkernel:bcmkernel +PACKAGE_bcmopen:bcmopen
|
||||
endef
|
||||
|
||||
define Package/endptmngr/description
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Copyright (C) 2006-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v3.
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
@@ -20,9 +20,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPL-3.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
# support parallel build
|
||||
#PKG_BUILD_PARALLEL:=1
|
||||
|
||||
|
||||
3
gigaset-elements/.gitignore
vendored
Normal file
3
gigaset-elements/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
git-src
|
||||
|
||||
65
gigaset-elements/Makefile
Normal file
65
gigaset-elements/Makefile
Normal file
@@ -0,0 +1,65 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gigaset-elements
|
||||
|
||||
PKG_VERSION:=2.4.2
|
||||
# PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||
|
||||
PKG_GIGASET_ELEMENTS_SRC_URL ?= git@dev.iopsys.eu:3rdparty/gigaset-elements.git
|
||||
PKG_GIGASET_ELEMENTS_VERSION ?= v$(PKG_VERSION)
|
||||
|
||||
PKG_SOURCE_URL:=$(PKG_GIGASET_ELEMENTS_SRC_URL)
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=aa906b37062b6d7937a9c0f8e7b62b32afe4bdeb
|
||||
|
||||
|
||||
PKG_MAINTAINER:=Magier Marcin, Figlarek Piotr
|
||||
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
######################################################
|
||||
|
||||
define Package/gigaset-elements
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=+libjson-c +libcurl +libpthread
|
||||
TITLE:=Gigaset elements
|
||||
endef
|
||||
|
||||
######################################################
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) all
|
||||
endef
|
||||
|
||||
|
||||
|
||||
define Package/gigaset-elements/install
|
||||
$(CP) -r $(PKG_BUILD_DIR)/sysroot_common/* $(1)/
|
||||
$(CP) -r $(PKG_BUILD_DIR)/sysroot_$(CONFIG_ARCH)/* $(1)/
|
||||
endef
|
||||
|
||||
|
||||
|
||||
define Package/gigaset-elements/preinst
|
||||
#!/bin/sh
|
||||
mkdir -p $${IPKG_INSTROOT}/usr/gigaset/data/cert
|
||||
mkdir -p $${IPKG_INSTROOT}/usr/gigaset/data/fw
|
||||
endef
|
||||
|
||||
|
||||
define Package/gigaset-elements/postrm
|
||||
#!/bin/sh
|
||||
rm -rf $${IPKG_INSTROOT}/usr/gigaset/data
|
||||
rm -rf /usr/share/gigaset
|
||||
endef
|
||||
|
||||
|
||||
######################################################
|
||||
|
||||
$(eval $(call BuildPackage,gigaset-elements))
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
# Copyright (c) 2017 Genexis B.V.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=gryphon-led-kernel-module
|
||||
PKG_RELEASE:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define KernelPackage/$(PKG_NAME)
|
||||
SUBMENU:=LED modules
|
||||
TITLE:=LED driver for Gryphon
|
||||
FILES:=$(PKG_BUILD_DIR)/$(PKG_NAME).$(LINUX_KMOD_SUFFIX)
|
||||
KCONFIG:=CONFIG_PACKAGE_kmod-gryphon-led-kernel-module=y
|
||||
AUTOLOAD:=$(call AutoLoad,60,$(PKG_NAME))
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_URL:=
|
||||
endef
|
||||
|
||||
define KernelPackage/$(PKG_NAME)/description
|
||||
This package contains the LED driver for Gryphon devices.
|
||||
endef
|
||||
|
||||
EXTRA_KCONFIG:= CONFIG_RGB_LED=m
|
||||
|
||||
MODULE_INCLUDE=-I$(PKG_BUILD_DIR)
|
||||
|
||||
define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)/kdevlinks/
|
||||
$(CP) -s `pwd`/src/* $(PKG_BUILD_DIR)/kdevlinks/
|
||||
$(CP) src/* $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(LINUX_DIR)" \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
ARCH="$(LINUX_KARCH)" \
|
||||
SUBDIRS="$(PKG_BUILD_DIR)" \
|
||||
EXTRA_CFLAGS="-DKERNEL_MODULE $(BUILDFLAGS) -I$(LINUX_DIR)/include -include generated/autoconf.h $(MODULE_INCLUDE)" \
|
||||
modules
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,$(PKG_NAME)))
|
||||
@@ -1,26 +0,0 @@
|
||||
# Copyright (c) 2017 Genexis B.V.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
MODULE_NAME = gryphon-led-kernel-module
|
||||
|
||||
obj-m := $(MODULE_NAME).o
|
||||
|
||||
GENEXIS_FILES= \
|
||||
main.o \
|
||||
sk9822.o \
|
||||
sk9822_bitbang.o
|
||||
|
||||
$(MODULE_NAME)-objs := $(GENEXIS_FILES)
|
||||
@@ -1,253 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2017 Genexis B.V.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#define DEBUG 1
|
||||
|
||||
#include <linux/delay.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/printk.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/gpio/consumer.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#include "sk9822.h"
|
||||
|
||||
#define DRIVER_NAME "canyon_led"
|
||||
#define DRIVER_AUTHOR "Genexis B.V."
|
||||
#define DRIVER_DESC "Canyon LED driver for SK9822"
|
||||
#define DRIVER_VERSION "1"
|
||||
|
||||
/**
|
||||
* sysfs interfaces
|
||||
*/
|
||||
|
||||
static ssize_t get_led_color(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
/* [ln] todo: dummy implementation */
|
||||
int len;
|
||||
|
||||
len = sprintf(buf, "%d\n", 123);
|
||||
if (len <= 0) {
|
||||
dev_err(dev, "sk9822: Invalid sprintf len: %d\n", len);
|
||||
}
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set complete LED strip to a specific color
|
||||
* @retval count number of bytes written
|
||||
* @retval -EMSGSIZE if the message is too big
|
||||
* @retval -EIO for all other errors (e.g. leds cannot be configured)
|
||||
*/
|
||||
static ssize_t set_led_color(struct device *dev,
|
||||
struct device_attribute *attr, const char *buf, size_t count)
|
||||
{
|
||||
int ret = 0;
|
||||
size_t buflen = count;
|
||||
struct sk9822_leds *sk9822 = dev_get_drvdata(dev);
|
||||
|
||||
if (IS_ERR(sk9822)) {
|
||||
printk(KERN_ERR "Platform get drvdata returned NULL\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
/* strip newline */
|
||||
if ((count > 0) && (buf[count-1] == '\n')) {
|
||||
buflen--;
|
||||
}
|
||||
|
||||
if (buflen != 6) { // RRGGBB\0
|
||||
return -EMSGSIZE;
|
||||
}
|
||||
|
||||
// Update the LED array here
|
||||
ret = sk9822_set_color_str(sk9822, buf);
|
||||
if (ret != 0) {
|
||||
printk(KERN_ERR "Failed to set led color\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
// Now push to the HW
|
||||
ret = sk9822_update(sk9822);
|
||||
if (ret != 0) {
|
||||
printk(KERN_ERR "Failed to update led\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
static DEVICE_ATTR(led_color, S_IRUGO | S_IWUSR, get_led_color, set_led_color);
|
||||
|
||||
static struct attribute *sk9822_dev_attrs[] = {
|
||||
&dev_attr_led_color.attr,
|
||||
NULL
|
||||
};
|
||||
|
||||
static struct attribute_group sk9822_dev_attr_group = {
|
||||
.name = "sk9822",
|
||||
.attrs = sk9822_dev_attrs,
|
||||
};
|
||||
|
||||
/**
|
||||
* device prope and removal
|
||||
*/
|
||||
|
||||
static int canyon_led_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret;
|
||||
struct sk9822_leds *leds;
|
||||
|
||||
leds = devm_kzalloc(&pdev->dev, sizeof(*leds), GFP_KERNEL);
|
||||
if (!leds) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
leds->dev = &pdev->dev;
|
||||
leds->led_brightness = SK9822_DEFAULT_BRIGHTNESS;
|
||||
|
||||
ret = of_property_read_u16(pdev->dev.of_node, "led-count", &leds->led_count);
|
||||
if (ret < 0) {
|
||||
dev_warn(&pdev->dev, "Could not read led-count property\n");
|
||||
leds->led_count = SK9822_DEFAULT_NUM_LEDS;
|
||||
}
|
||||
|
||||
leds->led_colors = devm_kzalloc(&pdev->dev,
|
||||
(sizeof(cRGB) * leds->led_count), GFP_KERNEL);
|
||||
if (!leds->led_colors) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
||||
platform_set_drvdata(pdev, leds);
|
||||
|
||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 16, 0)
|
||||
leds->clock_gpio = gpiod_get_index(&pdev->dev, "led", 0);
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
|
||||
leds->clock_gpio = gpiod_get_index(&pdev->dev, "led", 0, GPIOD_OUT_HIGH);
|
||||
#else
|
||||
dev_warn(&pdev->dev, "Kernel version Not supported\n");
|
||||
exit(1);
|
||||
#endif
|
||||
|
||||
gpiod_direction_output(leds->clock_gpio, 1);
|
||||
if (IS_ERR(leds->clock_gpio)) {
|
||||
dev_err(&pdev->dev, "Failed to acquire clock GPIO %ld\n",
|
||||
PTR_ERR(leds->clock_gpio));
|
||||
leds->clock_gpio = NULL;
|
||||
return PTR_ERR(leds->clock_gpio);
|
||||
} else {
|
||||
printk(KERN_INFO "Got clock gpio\n");
|
||||
gpiod_set_value(leds->clock_gpio, 0);
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 16, 0)
|
||||
leds->data_gpio = gpiod_get_index(&pdev->dev, "led", 1);
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
|
||||
leds->data_gpio = gpiod_get_index(&pdev->dev, "led", 1, GPIOD_OUT_HIGH);
|
||||
#else
|
||||
dev_warn(&pdev->dev, "Kernel version Not supported\n");
|
||||
exit(1);
|
||||
#endif
|
||||
|
||||
gpiod_direction_output(leds->data_gpio, 1);
|
||||
if (IS_ERR(leds->data_gpio)) {
|
||||
dev_err(&pdev->dev, "Failed to acquire data GPIO %ld\n",
|
||||
PTR_ERR(leds->data_gpio));
|
||||
leds->data_gpio = NULL;
|
||||
return PTR_ERR(leds->data_gpio);
|
||||
} else {
|
||||
printk(KERN_INFO "Got data gpio\n");
|
||||
gpiod_set_value(leds->data_gpio, 0);
|
||||
}
|
||||
|
||||
printk(KERN_INFO "Attempt to set filefs stuff\n");
|
||||
ret = sysfs_create_group(&pdev->dev.kobj, &sk9822_dev_attr_group);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "sysfs creation failed\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if 0
|
||||
printk(KERN_INFO "Flash LEDs to verify they work\n");
|
||||
sk9822_set_color_str(leds, "00FF00");
|
||||
sk9822_update(leds);
|
||||
msleep(200);
|
||||
sk9822_set_color_str(leds, "000000");
|
||||
sk9822_update(leds);
|
||||
#endif
|
||||
|
||||
printk(KERN_INFO "canyon led successfully probed\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int canyon_led_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct sk9822_leds *leds;
|
||||
|
||||
sysfs_remove_group(&pdev->dev.kobj, &sk9822_dev_attr_group);
|
||||
|
||||
leds = platform_get_drvdata(pdev);
|
||||
if (IS_ERR(leds)) {
|
||||
printk(KERN_ERR "Platform get drvdata returned NULL\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (leds->clock_gpio) {
|
||||
gpiod_put(leds->clock_gpio);
|
||||
}
|
||||
|
||||
if (leds->data_gpio) {
|
||||
gpiod_put(leds->data_gpio);
|
||||
}
|
||||
|
||||
printk(KERN_NOTICE "Bye, bye\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* platform driver metadata
|
||||
*/
|
||||
|
||||
static const struct of_device_id canyon_led_of_ids[] = {
|
||||
{ .compatible = "canyon,led" },
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct platform_driver canyon_led = {
|
||||
.probe = &canyon_led_probe,
|
||||
.remove = &canyon_led_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = canyon_led_of_ids,
|
||||
},
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(of, canyon_led_of_ids);
|
||||
module_platform_driver(canyon_led);
|
||||
MODULE_AUTHOR(DRIVER_AUTHOR);
|
||||
MODULE_DESCRIPTION(DRIVER_DESC);
|
||||
MODULE_VERSION(DRIVER_VERSION);
|
||||
MODULE_LICENSE("GPL");
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2017 Genexis B.V.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "sk9822.h"
|
||||
#include "sk9822_bitbang.h"
|
||||
|
||||
cRGB __hexs_to_rgb(const char *hex)
|
||||
{
|
||||
cRGB rgb;
|
||||
int r, g, b;
|
||||
|
||||
sscanf(hex, "%02x%02x%02x", &r, &g, &b);
|
||||
// This needs sanity checking
|
||||
rgb.r = r;
|
||||
rgb.g = g;
|
||||
rgb.b = b;
|
||||
return rgb;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief update the color over the given device struct to the provided HEX color
|
||||
*/
|
||||
int sk9822_set_color_str(struct sk9822_leds *sk9822, const char *hex)
|
||||
{
|
||||
int i;
|
||||
cRGB color = __hexs_to_rgb(hex);
|
||||
|
||||
for (i = 0; i < sk9822->led_count; i++) {
|
||||
sk9822->led_colors[i] = color;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief write device struct to the device
|
||||
*/
|
||||
int sk9822_update(struct sk9822_leds *sk9822)
|
||||
{
|
||||
uint16_t i;
|
||||
uint16_t led_count = sk9822->led_count;
|
||||
|
||||
// Start Frame
|
||||
sk9822_bb_write(sk9822, 0x00);
|
||||
sk9822_bb_write(sk9822, 0x00);
|
||||
sk9822_bb_write(sk9822, 0x00);
|
||||
sk9822_bb_write(sk9822, 0x00);
|
||||
|
||||
for (i = 0; i < led_count; i++) {
|
||||
cRGB *p = &sk9822->led_colors[i];
|
||||
sk9822_bb_write(sk9822, 0xe0+sk9822->led_brightness); // Maximum global brightness
|
||||
sk9822_bb_write(sk9822, p->b);
|
||||
sk9822_bb_write(sk9822, p->g);
|
||||
sk9822_bb_write(sk9822, p->r);
|
||||
}
|
||||
|
||||
// End frame
|
||||
sk9822_bb_write(sk9822, 0xff);
|
||||
sk9822_bb_write(sk9822, 0xff);
|
||||
sk9822_bb_write(sk9822, 0xff);
|
||||
sk9822_bb_write(sk9822, 0xff);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2017 Genexis B.V.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SK9822_H_
|
||||
#define SK9822_H_
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#define SK9822_DEFAULT_NUM_LEDS 32 // U16, used if DT param fails
|
||||
#define SK9822_DEFAULT_BRIGHTNESS 15 // 5-bit brightness, 0-31
|
||||
|
||||
typedef struct {
|
||||
uint8_t b;
|
||||
uint8_t g;
|
||||
uint8_t r;
|
||||
} cRGB; // BGR (SK9822 Standard)
|
||||
|
||||
struct sk9822_leds {
|
||||
struct device *dev;
|
||||
struct gpio_desc *clock_gpio;
|
||||
struct gpio_desc *data_gpio;
|
||||
|
||||
cRGB *led_colors;
|
||||
uint8_t led_brightness;
|
||||
uint16_t led_count;
|
||||
};
|
||||
|
||||
int sk9822_set_color_str(struct sk9822_leds *sk9822, const char *hex);
|
||||
int sk9822_update(struct sk9822_leds *sk9822);
|
||||
|
||||
#endif /* SK9822_H_ */
|
||||
@@ -1,48 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2017 Genexis B.V.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <linux/gpio/consumer.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "sk9822.h"
|
||||
|
||||
/**
|
||||
* @brief Bitbang write operation CLOCK+DATA
|
||||
*
|
||||
* Assumed state before call: CLOCK- Low, DATA- High
|
||||
*/
|
||||
void sk9822_bb_write(struct sk9822_leds *sk9822, uint8_t c)
|
||||
{
|
||||
uint8_t i;
|
||||
|
||||
for (i = 0; i < 8 ; i++) {
|
||||
if (!(c&0x80)) {
|
||||
gpiod_set_value(sk9822->data_gpio, 0); // set data low
|
||||
} else {
|
||||
gpiod_set_value(sk9822->data_gpio, 1); // set data high
|
||||
}
|
||||
|
||||
gpiod_set_value(sk9822->clock_gpio, 1); // set clock high, data sampled here
|
||||
c <<= 1;
|
||||
udelay(1); // stretch clock
|
||||
gpiod_set_value(sk9822->clock_gpio, 0); // set clock low
|
||||
}
|
||||
|
||||
// State after call: SCK Low, Data high
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2017 Genexis B.V.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _SK9822_BB_H_
|
||||
#define _SK9822_BB_H_
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "sk9822.h"
|
||||
|
||||
void sk9822_bb_write(struct sk9822_leds *sk9822, uint8_t c);
|
||||
|
||||
#endif /* _SK9822_BB_H_ */
|
||||
4
ice-client/Config.in
Normal file
4
ice-client/Config.in
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
config ICE_OPEN
|
||||
bool "Use pre-compiled version for Open SDK"
|
||||
default n
|
||||
1046
ice-client/Makefile
Normal file
1046
ice-client/Makefile
Normal file
File diff suppressed because it is too large
Load Diff
74
ice-client/files/ice-client.uci_default
Normal file
74
ice-client/files/ice-client.uci_default
Normal file
@@ -0,0 +1,74 @@
|
||||
#!/bin/sh
|
||||
|
||||
grep -rq "^ice:" /etc/passwd || {
|
||||
adduser -D -H -s /bin/false ice
|
||||
}
|
||||
|
||||
uci -q delete passwords.ice
|
||||
uci -q set passwords.ice=usertype
|
||||
uci -q set passwords.ice.password="\$WPAKEY"
|
||||
uci -q del_list passwords.ice._access_w=root
|
||||
uci -q add_list passwords.ice._access_w=root
|
||||
uci -q del_list passwords.ice._access_r=root
|
||||
uci -q add_list passwords.ice._access_r=root
|
||||
uci -q commit passwords
|
||||
|
||||
uci show rpcd | grep username=.*ice.* >/dev/null || {
|
||||
cat >> /etc/config/rpcd << EOF
|
||||
|
||||
config login
|
||||
option username 'ice'
|
||||
option password '\$p\$ice'
|
||||
list _access_w 'none'
|
||||
list write 'user-user'
|
||||
list write 'juci-broadcom-dsl'
|
||||
list write 'juci-broadcom-dsl-admin'
|
||||
list write 'juci-broadcom-ethernet'
|
||||
list write 'juci-broadcom-iptv'
|
||||
list write 'juci-broadcom-vlan'
|
||||
list write 'juci-broadcom-vlan-admin'
|
||||
list write 'juci-wireless'
|
||||
list write 'juci-wireless-admin'
|
||||
list write 'juci-catv'
|
||||
list write 'juci-ddns'
|
||||
list write 'juci-diagnostics'
|
||||
list write 'juci-dnsmasq-dhcp'
|
||||
list write 'juci-dropbear'
|
||||
list write 'juci-ethernet'
|
||||
list write 'juci-event'
|
||||
list write 'juci-firewall-fw3'
|
||||
list write 'juci-iconnect'
|
||||
list write 'juci-igmpinfo'
|
||||
list write 'juci-inteno-backup'
|
||||
list write 'juci-inteno-multiwan'
|
||||
list write 'juci-inteno-provisioning'
|
||||
list write 'juci-inteno-qos'
|
||||
list write 'juci-inteno-voice-client'
|
||||
list write 'juci-minidlna'
|
||||
list write 'juci-mod-status'
|
||||
list write 'juci-mod-system'
|
||||
list write 'juci-natalie-dect'
|
||||
list write 'juci-netmode'
|
||||
list write 'juci-network-netifd'
|
||||
list write 'juci-owsd'
|
||||
list write 'juci-printer'
|
||||
list write 'juci-realtime-graphs'
|
||||
list write 'juci-samba'
|
||||
list write 'juci-sfp'
|
||||
list write 'juci-snmpd'
|
||||
list write 'juci-sysupgrade'
|
||||
list write 'juci-uhttpd'
|
||||
list write 'juci-upnp'
|
||||
list write 'juci-usb'
|
||||
list write 'core'
|
||||
list write 'unauthenticated'
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
uci -q del_list dhcp.@domain[0].name="inteno.lan"
|
||||
uci -q add_list dhcp.@domain[0].name="inteno.lan"
|
||||
uci -q commit dhcp
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys Software Solutions AB
|
||||
# Copyright (C) 2016 Inteno Broadband AB
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
||||
@@ -19,9 +19,17 @@ config CWMP_DEBUG
|
||||
bool "Compile with debug options"
|
||||
default y
|
||||
|
||||
config XMPP_ENABLE
|
||||
bool "enable xmpp feature"
|
||||
default n
|
||||
|
||||
config CWMP_DEVEL_DEBUG
|
||||
bool "Compile with development debug options"
|
||||
default n
|
||||
|
||||
config LIBDATAMODEL_VENDOR_PREFIX
|
||||
string "Vendor Prefix"
|
||||
default "X_IOPSYS_EU_"
|
||||
|
||||
endif
|
||||
|
||||
|
||||
7
icwmp/Config_datamodel.in
Normal file
7
icwmp/Config_datamodel.in
Normal file
@@ -0,0 +1,7 @@
|
||||
if PACKAGE_libdatamodel
|
||||
|
||||
config UPNP_TR064
|
||||
bool "Compile with tr064 features"
|
||||
default n
|
||||
|
||||
endif
|
||||
110
icwmp/Makefile
110
icwmp/Makefile
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys Software Solutions AB
|
||||
# Copyright (C) 2012 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@@ -8,17 +8,15 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=icwmp
|
||||
PKG_VERSION:=4.0-2019-10-17
|
||||
PKG_VERSION:=4.0-2019-04-01
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=9cfbfa9a381d372643fe18f8c258779bed3ee3bd
|
||||
PKG_SOURCE_VERSION:=7faa875dcb825869c6bd942e140d2200e5e0dc0e
|
||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_CWMP_ACS_MULTI \
|
||||
@@ -32,6 +30,13 @@ CWMP_REVISION=$(shell svnversion ./src/ -n|cut -f2 -d:)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libdatamodel
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Library for broadband-forum data model
|
||||
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c
|
||||
endef
|
||||
|
||||
define Package/icwmp_stun
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
@@ -46,32 +51,11 @@ define Package/icwmp_xmpp
|
||||
DEPENDS:=+libuci +libubox +libexpat +libstrophe
|
||||
endef
|
||||
|
||||
define Package/icwmp_twamp
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=TR-069 twamp feature
|
||||
DEPENDS:=+libuci
|
||||
endef
|
||||
|
||||
define Package/icwmp_udpechoserver
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=TR-069 udpechoserver feature
|
||||
DEPENDS:=+libuci
|
||||
endef
|
||||
|
||||
define Package/icwmp_bulkdata
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=TR-069 BulkData Collection
|
||||
DEPENDS:=+libubus +libuci +libubox +libjson-c +libcurl +curl +libblobmsg-json +libbbfdm
|
||||
endef
|
||||
|
||||
define Package/icwmp/Default
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=CWMP client
|
||||
DEPENDS:=+libuci +libmicroxml +libubox +jshn +libubus +libblobmsg-json +libpthread +ubusd +shflags +getopt +zlib +libjson-c +libopenssl +curl +libbbfdm +libtr098
|
||||
DEPENDS:=+libuci +libmicroxml +libubox +jshn +libubus +libblobmsg-json +libpthread +ubusd +shflags +getopt +zlib +libjson-c +libopenssl +libexpat +libstrophe +curl +libtrace +libdatamodel
|
||||
endef
|
||||
|
||||
define Package/icwmp/description
|
||||
@@ -96,6 +80,10 @@ define Package/icwmp-zstream/config
|
||||
source "$(SOURCE)/Config_cwmp.in"
|
||||
endef
|
||||
|
||||
define Package/libdatamodel/config
|
||||
source "$(SOURCE)/Config_datamodel.in"
|
||||
endef
|
||||
|
||||
USE_LOCAL=$(shell ls ./src/ 2>/dev/null >/dev/null && echo 1)
|
||||
ifneq ($(USE_LOCAL),)
|
||||
define Build/Prepare
|
||||
@@ -107,6 +95,8 @@ ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
|
||||
TARGET_CFLAGS += -DEX400
|
||||
endif
|
||||
|
||||
TARGET_CFLAGS += -DCUSTOM_PREFIX=\\\"$(CONFIG_LIBDATAMODEL_VENDOR_PREFIX)\\\"
|
||||
|
||||
TARGET_CFLAGS += \
|
||||
-D_GNU_SOURCE -D_AADJ
|
||||
|
||||
@@ -127,6 +117,16 @@ CONFIGURE_ARGS += \
|
||||
--with-libubox-include-path=$(STAGING_DIR)/usr/include \
|
||||
--with-libubus-include-path=$(STAGING_DIR)/usr/include
|
||||
|
||||
ifeq ($(CONFIG_UPNP_TR064),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-upnptr064
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_XMPP_ENABLE),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-xmpp
|
||||
endif
|
||||
|
||||
ifeq ($(BUILD_VARIANT),zstream)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-http=zstream \
|
||||
@@ -158,23 +158,18 @@ CONFIGURE_ARGS += \
|
||||
--enable-devel
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PACKAGE_libtr098),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-tr098
|
||||
endif
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-tr181
|
||||
define Package/libdatamodel/install
|
||||
$(INSTALL_DIR) $(1)/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libdatamodel.so* $(1)/lib/
|
||||
endef
|
||||
|
||||
define Package/icwmp-$(BUILD_VARIANT)/install
|
||||
$(INSTALL_DIR) $(1)/etc/icwmpd
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) $(PKG_BUILD_DIR)/bin/icwmpd $(1)/usr/sbin
|
||||
ifeq ($(CONFIG_PACKAGE_libtr098),y)
|
||||
$(CP) $(PKG_BUILD_DIR)/bin/icwmp_tr098d $(1)/usr/sbin
|
||||
endif
|
||||
$(CP) $(PKG_BUILD_DIR)/bin/.libs/icwmpd $(1)/usr/sbin
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp $(1)/etc/config
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/dmmap $(1)/etc/icwmpd
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/firewall.cwmp $(1)/etc/firewall.cwmp
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
@@ -206,35 +201,18 @@ define Package/icwmp_xmpp/install
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/init/icwmp_xmppd $(1)/etc/init.d/icwmp_xmppd
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp_xmpp $(1)/etc/config
|
||||
$(CP) ./xmpp-files/* $(1)/
|
||||
endef
|
||||
|
||||
define Package/icwmp_udpechoserver/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmp_udpechoserverd $(1)/usr/sbin/icwmp_udpechoserverd
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/init/icwmp_udpechoserverd $(1)/etc/init.d/icwmp_udpechoserverd
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp_udpechoserver $(1)/etc/config
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(INSTALL_DIR) $(1)/usr/include/libdatamodel
|
||||
$(CP) $(PKG_BUILD_DIR)/dm/*.h $(1)/usr/include/libdatamodel
|
||||
$(CP) $(PKG_BUILD_DIR)/dm/dmtree/common/root.h $(1)/usr/include/libdatamodel
|
||||
$(INSTALL_DIR) $(1)/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libdatamodel.so* $(1)/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libdatamodel.a $(1)/lib
|
||||
endef
|
||||
|
||||
define Package/icwmp_twamp/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmp_twampd $(1)/usr/sbin/icwmp_twampd
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/init/icwmp_twampd $(1)/etc/init.d/icwmp_twampd
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp_twamp $(1)/etc/config
|
||||
endef
|
||||
|
||||
define Package/icwmp_bulkdata/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmp_bulkdatad $(1)/usr/sbin/icwmp_bulkdatad
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/init/icwmp_bulkdatad $(1)/etc/init.d/icwmp_bulkdatad
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp_bulkdata $(1)/etc/config
|
||||
endef
|
||||
|
||||
define Package/icwmp-$(BUILD_VARIANT)/postinst
|
||||
#!/bin/sh
|
||||
@@ -255,9 +233,9 @@ define Package/icwmp-$(BUILD_VARIANT)/prerm
|
||||
exit 0
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,icwmp-curl))
|
||||
$(eval $(call BuildPackage,libdatamodel))
|
||||
$(eval $(call BuildPackage,icwmp_stun))
|
||||
$(eval $(call BuildPackage,icwmp_xmpp))
|
||||
$(eval $(call BuildPackage,icwmp_udpechoserver))
|
||||
$(eval $(call BuildPackage,icwmp_twamp))
|
||||
$(eval $(call BuildPackage,icwmp_bulkdata))
|
||||
$(eval $(call BuildPackage,icwmp-zstream))
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
- libz.so
|
||||
- libcrypto.so
|
||||
the librairies should be present in the "staging_dir/target-i386_uClibc-0.9.30.1/usr/lib/" or "staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib"
|
||||
|
||||
|
||||
header files and folders:
|
||||
- expat.h
|
||||
- expat_external.h
|
||||
@@ -33,7 +33,7 @@ this software is composed of 3 packages:
|
||||
- cwmp kernel package: contains cwmp kernel module. This module could be used by other kernel modules to notify the icwmpd daemon when kernel parameter changes
|
||||
|
||||
The three packages should be selected in the make menu config in order to get the three packages compiled.
|
||||
To compile the three packages: $ make package/cwmpd/compile
|
||||
To compile the three packages: $ make package/cwmpd/compile
|
||||
|
||||
3) OpenWRT settings
|
||||
in the OpenWRT, Add the following lines in the /usr/share/udhcpc/default.script file:
|
||||
@@ -49,7 +49,7 @@ in the OpenWRT, Add the following lines in the /usr/share/udhcpc/default.script
|
||||
- libopenssl package should be installed
|
||||
- libz package should be installed
|
||||
- libcrypto package should be installed
|
||||
|
||||
|
||||
Configure the acs url in the /etc/config/icwmp
|
||||
and then start the cwmpd service: /etc/init.d/icwmpd start
|
||||
for the help: /etc/init.d/icwmpd
|
||||
|
||||
@@ -41,14 +41,4 @@ set_cwmp_reqopts() {
|
||||
fi
|
||||
}
|
||||
|
||||
regenerate_ssl_link(){
|
||||
local cert_dir="/etc/ssl/certs"
|
||||
local all_file=$(ls $cert_dir/*.pem)
|
||||
for cfile in $all_file
|
||||
do
|
||||
ln -s $cfile $cert_dir/$(openssl x509 -hash -noout -in $cfile).0
|
||||
done
|
||||
}
|
||||
|
||||
set_cwmp_reqopts
|
||||
regenerate_ssl_link
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -f /etc/config/cwmp_xmpp ] || exit 0
|
||||
|
||||
[ "$ACTION" == "ifup" ] || exit 0
|
||||
[ "$INTERFACE" == "loopback" ] && exit 0
|
||||
|
||||
local defwan=$(uci -q get cwmp.cpe.default_wan_interface)
|
||||
[ -n "$defwan" -a "$(uci -q get network.$defwan)" == "interface" -a "$defwan" != "$INTERFACE" ] && exit 0
|
||||
|
||||
local islan="$(uci -q get network.$INTERFACE.is_lan)"
|
||||
[ "$islan" == "1" ] && exit 0
|
||||
|
||||
local proto="$(uci -q get network.$INTERFACE.proto)"
|
||||
[ "$proto" == "none" ] && exit 0
|
||||
|
||||
local ifname="$(uci -q get network.$INTERFACE.ifname)"
|
||||
[ "${ifname:0:1}" == "@" ] && exit 0
|
||||
|
||||
/etc/init.d/icwmp_xmppd reload &
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2019 Iopsys
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ieee1905
|
||||
PKG_VERSION:=1.0.0
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=a6a39128b1fe5132e51de4f580bf66f373515dcd
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/ieee1905.git
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/ieee1905
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=IEEE1905 handler
|
||||
DEPENDS:=+meshcomms +libubox +libubus +libblobmsg-json
|
||||
endef
|
||||
|
||||
define Package/ieee1905/description
|
||||
Listens to ieee1905 messages, parse and expose them over ubus.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += \
|
||||
-I$(STAGING_DIR)/usr/include \
|
||||
-D_GNU_SOURCE
|
||||
|
||||
#define Build/Prepare
|
||||
# $(CP) -rf ./ieee1905/* $(PKG_BUILD_DIR)/
|
||||
#endef
|
||||
|
||||
define Package/ieee1905/install
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/etc/init.d/ieee1905 $(1)/etc/init.d/ieee1905
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ieee1905 $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,ieee1905))
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
STOP=10
|
||||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/ieee1905
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command ${PROG}
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
service_triggers()
|
||||
{
|
||||
procd_add_config_trigger "config.change" "ieee1905" /etc/init.d/ieee1905 restart
|
||||
}
|
||||
@@ -6,9 +6,9 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=ifbt
|
||||
PKG_VERSION:=0.2
|
||||
PKG_VERSION:=0.1
|
||||
|
||||
PKG_SOURCE_VERSION:=6a279efa5046ace0681a1d0e79592a120f80e171
|
||||
PKG_SOURCE_VERSION:=0286812ed8036dea758f904694dc416481fba64d
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/ifbt.git
|
||||
|
||||
@@ -16,9 +16,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=README
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_mips),y)
|
||||
|
||||
39
ifsi/Makefile
Normal file
39
ifsi/Makefile
Normal file
@@ -0,0 +1,39 @@
|
||||
#
|
||||
# Copyright (C) 2015 Inteno
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=ifsi
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
LDFLAGS+= \
|
||||
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
||||
-Wl,-rpath-link=$(STAGING_DIR)/lib
|
||||
|
||||
define Package/ifsi
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=+ubus +libubox
|
||||
TITLE:=Inteno Functional Script Interface
|
||||
endef
|
||||
|
||||
define Package/ifsi/description
|
||||
Inteno Functional Script Interface
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
|
||||
define Package/ifsi/install
|
||||
$(INSTALL_DIR) $(1)/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ifsi $(1)/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,ifsi))
|
||||
17
ifsi/src/Makefile
Normal file
17
ifsi/src/Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
CC = gcc
|
||||
CFLAGS = -g -Wall
|
||||
LOCLIBS =
|
||||
LIBS = -lubus -lubox -lblobmsg_json
|
||||
OBJS = ifsi.o
|
||||
SRCS = ifsi.c
|
||||
LIBSRCS =
|
||||
ISRCS =
|
||||
|
||||
all: ifsi
|
||||
|
||||
ifsi: ${OBJS}
|
||||
${CC} ${LDFLAGS} ${LIBSRCS} -o ifsi ${OBJS} ${LIBS}
|
||||
|
||||
clean:
|
||||
rm -f ifsi *.o
|
||||
|
||||
74
ifsi/src/ifsi.c
Normal file
74
ifsi/src/ifsi.c
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* ifsi -- Inteno functional script interface
|
||||
*
|
||||
* Copyright (C) 2012-2013 Inteno Broadband Technology AB. All rights reserved.
|
||||
*
|
||||
* Author: dev@inteno.se
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <libubox/blobmsg.h>
|
||||
#include <libubox/blobmsg_json.h>
|
||||
#include <libubox/uloop.h>
|
||||
|
||||
#include <libubus.h>
|
||||
|
||||
static struct ubus_context *ctx;
|
||||
static struct ubus_event_handler event_listener;
|
||||
static struct blob_buf b;
|
||||
|
||||
|
||||
static void receive_event(struct ubus_context *ctx, struct ubus_event_handler *ev,
|
||||
const char *type, struct blob_attr *msg)
|
||||
{
|
||||
char *str;
|
||||
uint32_t id;
|
||||
|
||||
str = blobmsg_format_json(msg, true);
|
||||
fprintf(stdout, "I got %s event %s\n", type, str);
|
||||
free(str);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
const char *ubus_socket = NULL;
|
||||
int ret;
|
||||
|
||||
uloop_init();
|
||||
|
||||
ctx = ubus_connect(ubus_socket);
|
||||
if (!ctx) {
|
||||
fprintf(stderr, "Failed to connect to ubus\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
ubus_add_uloop(ctx);
|
||||
|
||||
event_listener.cb = receive_event;
|
||||
ret = ubus_register_event_handler(ctx, &event_listener, "*");
|
||||
if (ret)
|
||||
fprintf(stderr, "Couldn't register to router events\n");
|
||||
|
||||
uloop_run();
|
||||
|
||||
ubus_free(ctx);
|
||||
uloop_done();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2018 iopsys
|
||||
# Copyright (C) 2018 Inteno
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
@@ -12,21 +12,19 @@ PKG_INSTALL:=1
|
||||
|
||||
PKG_SOURCE_PROTO=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/imonitor.git
|
||||
PKG_SOURCE_VERSION:=532f4900862bcb45d8cd4bf37555fabda81750b6
|
||||
PKG_SOURCE_VERSION:=cea60630cfac1d3c70f486acea6663d339b7d444
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}
|
||||
PKG_MAINTAINER:=Sartura Support for Inteno <support-inteno@sartura.hr>
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/imonitor
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=iopsysWrt process supervisor
|
||||
TITLE:=Inteno process supervisor
|
||||
DEPENDS:=+ubox +uci +ubus +rpcd +rpcd-mod-file
|
||||
endef
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2016 iopsys
|
||||
# Copyright (C) 2016 Inteno
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@@ -12,7 +12,7 @@ PKG_NAME:=inbd
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_VERSION:=53ca7f58edb87976b5897ccaf487bb0cbbf39d07
|
||||
PKG_SOURCE_VERSION:=12755fccb8ef87965ac684d62d56e19e73a255bd
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/inbd
|
||||
|
||||
@@ -20,9 +20,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
# support parallel build
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
@@ -37,7 +34,7 @@ include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/inbd
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=iopsys Netlink Bridge Daemon
|
||||
TITLE:=Inteno Netlink Bridge Daemon
|
||||
URL:=
|
||||
DEPENDS:=+libuci +libubus +libblobmsg-json +libnl-genl
|
||||
endef
|
||||
|
||||
57
inotify-tools/Makefile
Normal file
57
inotify-tools/Makefile
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# Copyright (C) 2006-2010 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:=inotify-tools
|
||||
PKG_VERSION:=3.14
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_VERSION:=1df9af4d6cd0f4af4b1b19254bcf056aed4ae395
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/rvoicilas/inotify-tools.git
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
# support parallel build
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
#re create configure scripts if not present.
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
# run install target when cross compiling. basically, make install DESTDIR=$(PKG_INSTALL_DIR)
|
||||
# this way we don't need to pick out the resulting files from the build dir.
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/inotify-tools
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Tools to trace filesystem events.
|
||||
URL:=
|
||||
endef
|
||||
|
||||
define Package/inotify-tools/description
|
||||
Tools to trace filesystem events.
|
||||
endef
|
||||
|
||||
define Package/inotify-tools/install
|
||||
$(INSTALL_DIR) $(1)/usr
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/usr/lib/
|
||||
$(CP) ./files/* $(1)/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libinotifytools.so.0.4.1 $(1)/usr/lib/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libinotifytools.so.0 $(1)/usr/lib/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libinotifytools.so $(1)/usr/lib/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/inotifywait $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/inotifywatch $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,inotify-tools))
|
||||
13
inotify-tools/files/usr/bin/iop_write_monitor
Executable file
13
inotify-tools/files/usr/bin/iop_write_monitor
Executable file
@@ -0,0 +1,13 @@
|
||||
#! /bin/sh
|
||||
|
||||
# is the real root mounted ?
|
||||
if [ ! -f /tmp/inotify_real_root/etc/preinit ]
|
||||
then
|
||||
ubivol=$( cat /proc/cmdline | sed -e "s/.*root=\(ubi:rootfs_.\).*/\1/" )
|
||||
mkdir /tmp/inotify_real_root
|
||||
mount -t ubifs $ubivol /tmp/inotify_real_root
|
||||
fi
|
||||
|
||||
inotifywait -r -m -e modify -e create -e attrib -e delete -e move /tmp/inotify_real_root
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@@ -10,7 +10,6 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=iop
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=0
|
||||
PKG_LICENSE:=GPLv2
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
@@ -21,7 +20,7 @@ define Package/iop
|
||||
endef
|
||||
|
||||
define Package/iop/description
|
||||
This package contains iopsysWrt SDK utilities
|
||||
This package contains Intenos Iop utilities
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
|
||||
70
iop/config
70
iop/config
@@ -3,9 +3,11 @@ CONFIG_BUSYBOX_CUSTOM=y
|
||||
CONFIG_CCACHE=y
|
||||
CONFIG_DEBUG=y
|
||||
CONFIG_DEVEL=y
|
||||
# CONFIG_LOCALMIRROR is not set
|
||||
CONFIG_PACKAGE_6in4=y
|
||||
CONFIG_PACKAGE_6rd=y
|
||||
CONFIG_PACKAGE_6to4=y
|
||||
CONFIG_PACKAGE_6tunnel=y
|
||||
CONFIG_PACKAGE_alsa-lib=y
|
||||
CONFIG_PACKAGE_chat=y
|
||||
CONFIG_PACKAGE_comgt=y
|
||||
@@ -14,38 +16,58 @@ CONFIG_PACKAGE_comgt-ncm=y
|
||||
CONFIG_PACKAGE_crashlog=y
|
||||
CONFIG_PACKAGE_ddns-scripts=y
|
||||
CONFIG_PACKAGE_ds-lite=y
|
||||
CONFIG_PACKAGE_easy-qos=y
|
||||
CONFIG_PACKAGE_gdb=m
|
||||
CONFIG_PACKAGE_gdbserver=m
|
||||
CONFIG_PACKAGE_getopt=y
|
||||
CONFIG_PACKAGE_glib2=y
|
||||
CONFIG_PACKAGE_ice-client=y
|
||||
CONFIG_PACKAGE_ice-client-camerawatch=m
|
||||
CONFIG_PACKAGE_ice-client-fileme=m
|
||||
CONFIG_PACKAGE_ice-client-gigaset=m
|
||||
CONFIG_PACKAGE_ice-client-guest=m
|
||||
CONFIG_PACKAGE_ice-client-iperf=m
|
||||
CONFIG_PACKAGE_ice-client-logreader=m
|
||||
CONFIG_PACKAGE_ice-client-monitor=m
|
||||
CONFIG_PACKAGE_ice-client-netrounds=m
|
||||
CONFIG_PACKAGE_ice-client-rshell=m
|
||||
CONFIG_PACKAGE_ice-client-texec=m
|
||||
CONFIG_PACKAGE_icwmp-curl=y
|
||||
CONFIG_PACKAGE_ifbt=y
|
||||
CONFIG_PACKAGE_imonitor=y
|
||||
CONFIG_PACKAGE_inbd=y
|
||||
CONFIG_PACKAGE_iopupgrade=y
|
||||
CONFIG_PACKAGE_ip-full=y
|
||||
CONFIG_PACKAGE_iperf3=y
|
||||
CONFIG_PACKAGE_netmode=y
|
||||
CONFIG_PACKAGE_iperf-mt=y
|
||||
CONFIG_PACKAGE_ipset=y
|
||||
CONFIG_PACKAGE_iptables=y
|
||||
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
|
||||
CONFIG_PACKAGE_iptables-mod-filter=y
|
||||
CONFIG_PACKAGE_iptables-mod-ipopt=y
|
||||
CONFIG_PACKAGE_iup=y
|
||||
# CONFIG_PACKAGE_iwatchdog is not set
|
||||
CONFIG_PACKAGE_juci=y
|
||||
CONFIG_PACKAGE_juci-config-backup=y
|
||||
CONFIG_PACKAGE_juci-broadcom-iptv=y
|
||||
CONFIG_PACKAGE_juci-broadcom-pwrmgmt=y
|
||||
CONFIG_PACKAGE_juci-wifilife=y
|
||||
CONFIG_PACKAGE_juci-wireless=y
|
||||
CONFIG_PACKAGE_juci-ddns=y
|
||||
CONFIG_PACKAGE_juci-diagnostics=y
|
||||
CONFIG_PACKAGE_juci-dnsmasq-dhcp=y
|
||||
CONFIG_PACKAGE_juci-dropbear=y
|
||||
CONFIG_PACKAGE_juci-easyqos=y
|
||||
CONFIG_PACKAGE_juci-event=y
|
||||
CONFIG_PACKAGE_juci-firewall-fw3=y
|
||||
CONFIG_PACKAGE_juci-ice-client=y
|
||||
CONFIG_PACKAGE_juci-icwmp=y
|
||||
CONFIG_PACKAGE_juci-igmpinfo=y
|
||||
CONFIG_PACKAGE_juci-config-backup=y
|
||||
CONFIG_PACKAGE_juci-mwan3=y
|
||||
CONFIG_PACKAGE_juci-iup=y
|
||||
# CONFIG_PACKAGE_juci-qos is not set
|
||||
CONFIG_PACKAGE_juci-voice-client=y
|
||||
CONFIG_PACKAGE_juci-macdb=y
|
||||
CONFIG_PACKAGE_juci-minidlna=y
|
||||
CONFIG_PACKAGE_juci-mod-status=y
|
||||
CONFIG_PACKAGE_juci-mod-system=y
|
||||
CONFIG_PACKAGE_juci-mwan3=y
|
||||
CONFIG_PACKAGE_juci-natalie-dect=y
|
||||
CONFIG_PACKAGE_juci-netmode=y
|
||||
CONFIG_PACKAGE_juci-network-device=y
|
||||
CONFIG_PACKAGE_juci-network-dsl=y
|
||||
@@ -53,20 +75,24 @@ CONFIG_PACKAGE_juci-network-netifd=y
|
||||
CONFIG_PACKAGE_juci-network-port=y
|
||||
CONFIG_PACKAGE_juci-openvpn=y
|
||||
CONFIG_PACKAGE_juci-owsd=y
|
||||
CONFIG_PACKAGE_juci-printer=y
|
||||
CONFIG_PACKAGE_juci-realtime-graphs=y
|
||||
CONFIG_PACKAGE_juci-samba=y
|
||||
CONFIG_PACKAGE_juci-simple-gui=y
|
||||
CONFIG_PACKAGE_juci-snmpd=y
|
||||
CONFIG_PACKAGE_juci-sysupgrade=y
|
||||
CONFIG_PACKAGE_juci-theme-iopsys=y
|
||||
CONFIG_PACKAGE_juci-ubus-core=y
|
||||
CONFIG_PACKAGE_juci-upnp=y
|
||||
CONFIG_PACKAGE_juci-usb=y
|
||||
CONFIG_PACKAGE_juci-voice-client=y
|
||||
CONFIG_PACKAGE_juci-wifilife=y
|
||||
CONFIG_PACKAGE_juci-wireless=y
|
||||
CONFIG_PACKAGE_juci-theme-iopsys=y
|
||||
CONFIG_PACKAGE_juci-utils=y
|
||||
# CONFIG_PACKAGE_kmod-ipt-nathelper is not set
|
||||
CONFIG_PACKAGE_kmod-nls-base=y
|
||||
CONFIG_PACKAGE_kmod-siit=y
|
||||
CONFIG_PACKAGE_libcgroup-daemon=y
|
||||
CONFIG_PACKAGE_libcgroup=y
|
||||
# CONFIG_PACKAGE_libcgroup-utils is not set
|
||||
CONFIG_PACKAGE_ldd=y
|
||||
CONFIG_PACKAGE_libdaemon=y
|
||||
CONFIG_PACKAGE_libffmpeg-mini=y
|
||||
CONFIG_PACKAGE_libgmp=y
|
||||
@@ -74,19 +100,23 @@ CONFIG_PACKAGE_libreadline=y
|
||||
CONFIG_PACKAGE_loop-detector=m
|
||||
CONFIG_PACKAGE_minidlna=y
|
||||
CONFIG_PACKAGE_miniupnpd=y
|
||||
CONFIG_PACKAGE_mtd-utils=y
|
||||
CONFIG_PACKAGE_mtd-utils-deubinize=y
|
||||
CONFIG_PACKAGE_mtd-utils-imagewrite=y
|
||||
CONFIG_PACKAGE_mtd-utils-mkfs.jffs2=y
|
||||
CONFIG_PACKAGE_mtd-utils-nanddump=y
|
||||
CONFIG_PACKAGE_mwan3=y
|
||||
CONFIG_PACKAGE_nand-utils=y
|
||||
CONFIG_PACKAGE_ndisc6=y
|
||||
CONFIG_PACKAGE_netmode=y
|
||||
CONFIG_PACKAGE_ntfs-3g=y
|
||||
CONFIG_PACKAGE_ntpd=y
|
||||
CONFIG_PACKAGE_obuspa=y
|
||||
CONFIG_PACKAGE_odhcp6c=y
|
||||
CONFIG_PACKAGE_odhcpd=y
|
||||
CONFIG_PACKAGE_openssl-util=y
|
||||
CONFIG_OPENSSL_WITH_COMPRESSION=y
|
||||
CONFIG_PACKAGE_openvpn-easy-rsa=y
|
||||
CONFIG_PACKAGE_openvpn-openssl=y
|
||||
# CONFIG_PACKAGE_p910nd is not set
|
||||
CONFIG_PACKAGE_peripheral_manager=y
|
||||
CONFIG_PACKAGE_port-management=y
|
||||
CONFIG_PACKAGE_power-management=y
|
||||
@@ -117,7 +147,6 @@ CONFIG_PACKAGE_umbim=y
|
||||
CONFIG_PACKAGE_uqmi=y
|
||||
CONFIG_PACKAGE_usb-modeswitch=y
|
||||
CONFIG_PACKAGE_usbreset=y
|
||||
CONFIG_PACKAGE_uspd=y
|
||||
CONFIG_PACKAGE_wget=y
|
||||
CONFIG_PACKAGE_wwan=y
|
||||
CONFIG_PACKAGE_libwifi=y
|
||||
@@ -126,7 +155,7 @@ CONFIG_PACKAGE_wifimngr=y
|
||||
CONFIG_PACKAGE_xl2tpd=y
|
||||
CONFIG_PACKAGE_zoneinfo-core=y
|
||||
CONFIG_PACKAGE_zoneinfo-europe=y
|
||||
CONFIG_TARGET_CUSTOMER="IOPSYS"
|
||||
CONFIG_TARGET_CUSTOMER="INT"
|
||||
CONFIG_TARGET_ROOTFS_TARGZ=y
|
||||
# CONFIG_USE_SSTRIP is not set
|
||||
CONFIG_USE_STRIP=y
|
||||
@@ -158,6 +187,7 @@ CONFIG_BUSYBOX_CONFIG_MICROCOM=y
|
||||
# CONFIG_BUSYBOX_CONFIG_RMMOD is not set
|
||||
CONFIG_BUSYBOX_CONFIG_STTY=y
|
||||
CONFIG_BUSYBOX_CONFIG_TFTP=y
|
||||
# CONFIG_BUSYBOX_CONFIG_FEATURE_2_4_MODULES is not set
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_CHECK_TAINTED_MODULE=y
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_HTTPD_AUTH_MD5=y
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH=y
|
||||
@@ -171,9 +201,11 @@ CONFIG_BUSYBOX_CONFIG_FEATURE_HTTPD_RANGES=y
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_HTTPD_SETUID=y
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_HTTPD_USE_SENDFILE=y
|
||||
# CONFIG_BUSYBOX_CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=y
|
||||
# CONFIG_BUSYBOX_CONFIG_FEATURE_NOLOGIN is not set
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_SECURETTY=y
|
||||
# CONFIG_BUSYBOX_CONFIG_FEATURE_TASKSET_FANCY is not set
|
||||
# CONFIG_BUSYBOX_CONFIG_FEATURE_TFTP_BLOCKSIZE is not set
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_TFTP_GET=y
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_TFTP_PUT=y
|
||||
@@ -183,10 +215,7 @@ CONFIG_BUSYBOX_CONFIG_FEATURE_TFTP_PUT=y
|
||||
# CONFIG_BUSYBOX_CONFIG_PAM is not set
|
||||
# CONFIG_BUSYBOX_CONFIG_TFTP_DEBUG is not set
|
||||
# CONFIG_BUSYBOX_CONFIG_NTPD is not set
|
||||
CONFIG_BUSYBOX_CONFIG_MOUNTPOINT=y
|
||||
CONFIG_BUSYBOX_CONFIG_RUN_PARTS=y
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y
|
||||
CONFIG_BUSYBOX_CONFIG_FEATURE_RUN_PARTS_FANCY=y
|
||||
# CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set
|
||||
CONFIG_LIBCURL_CRYPTO_AUTH=y
|
||||
# CONFIG_LIBCURL_MBEDTLS is not set
|
||||
CONFIG_LIBCURL_OPENSSL=y
|
||||
@@ -195,6 +224,7 @@ CONFIG_OPENVPN_openssl_ENABLE_IPROUTE2=y
|
||||
# CONFIG_SIGNED_PACKAGES is not set
|
||||
CONFIG_KERNEL_DEVTMPFS=y
|
||||
CONFIG_KERNEL_DEVTMPFS_MOUNT=y
|
||||
CONFIG_PACKAGE_ip-full=y
|
||||
# CONFIG_BUSYBOX_CONFIG_IP is not set
|
||||
LOCAL_MIRROR="http://download.iopsys.eu/iopsys/mirror/"
|
||||
CONFIG_PACKAGE_iopupgrade=y
|
||||
|
||||
|
||||
15
iop/scripts/auto_feeds_conf.sh
Executable file
15
iop/scripts/auto_feeds_conf.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare -a feed_list
|
||||
function list_feeds {
|
||||
jq '.feed[] | .name' feeds.conf
|
||||
}
|
||||
|
||||
# Exported interface
|
||||
function auto_feeds_conf {
|
||||
echo "Function auto feeds conf"
|
||||
echo "feed list:"
|
||||
list_feeds
|
||||
}
|
||||
|
||||
register_command "auto_feeds_conf" "Automatically update feeds"
|
||||
@@ -1,36 +0,0 @@
|
||||
#!/bin/sh
|
||||
function cvecheck {
|
||||
CVEDIR="/tmp/cve-indicator/"
|
||||
CVEBIN="${CVEDIR}/bin"
|
||||
REPORTS="reports"
|
||||
mkdir -p $REPORTS
|
||||
|
||||
dpkg -s python3 python3-requests python3-yaml python3-mako python3-six &> /dev/null
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Missing dependencies"
|
||||
sudo apt-get update
|
||||
sudo apt-get install python3 python3-requests python3-yaml python3-mako python3-six
|
||||
|
||||
else
|
||||
echo "Dependecy check passed"
|
||||
fi
|
||||
|
||||
|
||||
if [ -d "$CVEDIR" ]; then
|
||||
### Take action if $DIR exists ###
|
||||
echo "${CVEDIR} exists running cvecheck"
|
||||
else
|
||||
### Control will jump here if $DIR does NOT exists ###
|
||||
echo "Error: cvecheck not found. getting from iopsys repo"
|
||||
git clone git@dev.iopsys.eu:iopsys/cve-indicator.git /tmp/cve-indicator
|
||||
fi
|
||||
CVEGENLIST=`${CVEBIN}/cve-indicator gen-list openwrt bin`
|
||||
CVEGETCVES=`${CVEBIN}/cve-indicator get-cves $CVEGENLIST --api_url http://cve.circl.lu/api/cvefor/`
|
||||
CVEGETRPRT=`${CVEBIN}/cve-indicator gen-rprt $CVEGETCVES`
|
||||
exit 0
|
||||
|
||||
}
|
||||
|
||||
|
||||
register_command "cvecheck" "Generate a CVE report on latest build"
|
||||
@@ -6,9 +6,13 @@ function extract_core {
|
||||
topdir=$(pwd)
|
||||
|
||||
# Paths to packages that should be exported.
|
||||
paths+='package/network/services/dnsmasq '
|
||||
paths+='package/network/config/firewall '
|
||||
paths+='package/network/config/netifd '
|
||||
paths+='package/network/config/qos-scripts '
|
||||
paths+='package/utils/busybox '
|
||||
paths+='package/base-files '
|
||||
paths+='package/system/procd '
|
||||
paths+='package/system/rpcd '
|
||||
paths+='package/network/services/openvpn '
|
||||
|
||||
@@ -20,13 +24,7 @@ function extract_core {
|
||||
echo ""
|
||||
echo "Example: $0 extract_core"
|
||||
echo " -p package/utils/busybox"
|
||||
echo " -r feeds/openwrt_core"
|
||||
echo " -b devel"
|
||||
echo ""
|
||||
echo "Extract all default packages:"
|
||||
echo "$0 extract_core"
|
||||
echo " -p default"
|
||||
echo " -r feeds/openwrt_core"
|
||||
echo " -r feeds/lede_core"
|
||||
echo " -b devel"
|
||||
}
|
||||
|
||||
|
||||
@@ -28,19 +28,17 @@ function feeds_update {
|
||||
|
||||
# replace core packages with iopsys versions
|
||||
if [ $override == 1 ]; then
|
||||
./scripts/feeds install -f -p openwrt_core -a
|
||||
./scripts/feeds install -f -p lede_core -a
|
||||
fi
|
||||
|
||||
# targets need to be installed explicitly
|
||||
targets="iopsys-brcm63xx-mips iopsys-brcm63xx-arm iopsys-ramips intel_mips"
|
||||
for target in $targets
|
||||
do
|
||||
rm -f target/linux/$target
|
||||
./scripts/feeds install -p targets $target
|
||||
done
|
||||
./scripts/feeds install -p targets iopsys-brcm63xx-mips
|
||||
./scripts/feeds install -p targets iopsys-brcm63xx-arm
|
||||
./scripts/feeds install -p targets iopsys-ramips
|
||||
./scripts/feeds install -p intel_targets intel_mips
|
||||
|
||||
# install all packages
|
||||
./scripts/feeds install -a
|
||||
./scripts/feeds install -a
|
||||
|
||||
# remove broken symlinks ( for packages that are no longer in the feed )
|
||||
find -L package/feeds -maxdepth 2 -type l -delete
|
||||
@@ -49,7 +47,7 @@ function feeds_update {
|
||||
make defconfig
|
||||
|
||||
# record when we last run this script
|
||||
touch tmp/.iop_bootstrap
|
||||
touch tmp/.iop_bootstrap
|
||||
|
||||
# always return true
|
||||
exit 0
|
||||
|
||||
@@ -12,99 +12,39 @@ function genconfig {
|
||||
export CUSTCONF="customerconfigs/customers"
|
||||
export VERBOSE=0
|
||||
export DEVELOPER=0
|
||||
LOCAL_MIRROR="http://mirror.inteno.se/mirror"
|
||||
|
||||
target="bogus"
|
||||
config_path=""
|
||||
brcm63xx_mips="target/linux/iopsys-brcm63xx-mips"
|
||||
brcm63xx_arm="target/linux/iopsys-brcm63xx-arm"
|
||||
ramips="target/linux/iopsys-ramips"
|
||||
intel_mips="target/linux/intel_mips"
|
||||
|
||||
Red='\033[0;31m' # Red
|
||||
Color_Off='\033[0m' # Text Reset
|
||||
Yellow='\033[0;33m' # Yellow
|
||||
|
||||
function find_last {
|
||||
egrep "^[ #]*${1}[ =]" $2 | tail -n1
|
||||
}
|
||||
|
||||
function is_new {
|
||||
for opt in $conf_warned
|
||||
do
|
||||
if [ "$opt" == "$1" ]
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
# option not found return true
|
||||
return 0
|
||||
}
|
||||
|
||||
function verify_config {
|
||||
IFS=$'\n'
|
||||
org=$(<.genconfig.config)
|
||||
unset IFS
|
||||
local num
|
||||
local conf_opt
|
||||
local conf_org
|
||||
local conf_new
|
||||
|
||||
#echo "lines to check $tot_lines"
|
||||
num=0
|
||||
for line in $org
|
||||
do
|
||||
conf_opt=$(echo $line | grep CONFIG_ | sed 's|.*\(CONFIG_[^ =]*\)[ =].*|\1|')
|
||||
if [ -n "${conf_opt}" ]
|
||||
then
|
||||
conf_org=$(find_last ${conf_opt} .genconfig.config)
|
||||
conf_new=$(find_last ${conf_opt} .config)
|
||||
if [ "$conf_org" != "$conf_new" ]
|
||||
then
|
||||
if is_new $conf_opt
|
||||
then
|
||||
echo -e "config option [${Red}$conf_opt${Color_Off}] is not set correctly in .config"
|
||||
echo -e "got value [${Yellow}$conf_new${Color_Off}] but wanted [${Yellow}$conf_org${Color_Off}]"
|
||||
echo "This is a real problem somebody needs to investigate"
|
||||
echo ""
|
||||
conf_warned="$conf_warned $conf_opt"
|
||||
fi
|
||||
else
|
||||
true
|
||||
# for debug to see all options
|
||||
#echo -e "wanted [$conf_org] got [$conf_new]"
|
||||
fi
|
||||
fi
|
||||
num=$((num+1))
|
||||
done
|
||||
}
|
||||
|
||||
# Takes a board name and returns the target name in global var $target
|
||||
set_target() {
|
||||
local profile=$1
|
||||
|
||||
local iopsys_brcm63xx_mips=$(cd target/linux/iopsys-brcm63xx-mips; ./genconfig)
|
||||
local iopsys_brcm63xx_arm=$(cd target/linux/iopsys-brcm63xx-arm; ./genconfig)
|
||||
local iopsys_ramips=$(cd target/linux/iopsys-ramips; ./genconfig)
|
||||
local intel_mips=$(cd target/linux/intel_mips; ./genconfig)
|
||||
|
||||
[ -e $brcm63xx_mips/genconfig ] &&
|
||||
iopsys_brcm63xx_mips=$(cd $brcm63xx_mips; ./genconfig)
|
||||
[ -e $brcm63xx_arm/genconfig ] &&
|
||||
iopsys_brcm63xx_arm=$(cd $brcm63xx_arm; ./genconfig)
|
||||
[ -e $ramips/genconfig ] &&
|
||||
iopsys_ramips=$(cd $ramips; ./genconfig)
|
||||
[ -e $intel_mips/genconfig ] &&
|
||||
iopsys_intel_mips=$(cd $intel_mips; ./genconfig)
|
||||
|
||||
if [ "$profile" == "LIST" ]; then
|
||||
for list in iopsys_brcm63xx_mips iopsys_brcm63xx_arm iopsys_ramips iopsys_intel_mips; do
|
||||
echo "$list based boards:"
|
||||
for b in ${!list}; do
|
||||
echo -e "\t$b"
|
||||
done
|
||||
done
|
||||
return
|
||||
if [ "$profile" == "LIST" ]
|
||||
then
|
||||
for list in iopsys_brcm63xx_mips iopsys_brcm63xx_arm iopsys_ramips intel_mips
|
||||
do
|
||||
echo "$list based boards:"
|
||||
for b in ${!list}
|
||||
do
|
||||
echo -e "\t$b"
|
||||
done
|
||||
done
|
||||
return
|
||||
fi
|
||||
|
||||
local targets
|
||||
|
||||
for p in $iopsys_brcm63xx_mips; do
|
||||
if [ $p == $profile ]; then
|
||||
target="iopsys_brcm63xx_mips"
|
||||
config_path="$brcm63xx_mips/config"
|
||||
config_path="target/linux/iopsys-brcm63xx-mips/config"
|
||||
return
|
||||
fi
|
||||
done
|
||||
@@ -112,7 +52,7 @@ function genconfig {
|
||||
for p in $iopsys_brcm63xx_arm; do
|
||||
if [ $p == $profile ]; then
|
||||
target="iopsys_brcm63xx_arm"
|
||||
config_path="$brcm63xx_arm/config"
|
||||
config_path="target/linux/iopsys-brcm63xx-arm/config"
|
||||
return
|
||||
fi
|
||||
done
|
||||
@@ -120,15 +60,15 @@ function genconfig {
|
||||
for p in $iopsys_ramips; do
|
||||
if [ $p == $profile ]; then
|
||||
target="iopsys_ramips"
|
||||
config_path="$ramips/config"
|
||||
config_path="target/linux/iopsys-ramips/config"
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
for p in $iopsys_intel_mips; do
|
||||
for p in $intel_mips; do
|
||||
if [ $p == $profile ]; then
|
||||
target="intel_mips"
|
||||
config_path="$intel_mips/config"
|
||||
config_path="target/linux/intel_mips/config"
|
||||
return
|
||||
fi
|
||||
done
|
||||
@@ -139,16 +79,23 @@ function genconfig {
|
||||
DEVELOPER=1
|
||||
|
||||
bcmAllowed=0
|
||||
iceAllowed=0
|
||||
endptAllowed=0
|
||||
natalieAllowed=0
|
||||
mediatekAllowed=0
|
||||
wifilifeAllowed=0
|
||||
|
||||
git ls-remote git@dev.iopsys.eu:broadcom/bcmcreator.git -q 2>/dev/null && bcmAllowed=1
|
||||
git ls-remote git@dev.iopsys.eu:mediatek/linux.git -q 2>/dev/null && mediatekAllowed=1
|
||||
git ls-remote git@dev.iopsys.eu:dialog/natalie-dect-12.26.git -q 2>/dev/null && natalieAllowed=1
|
||||
git ls-remote git@dev.iopsys.eu:iopsys/endptmngr.git -q 2>/dev/null && endptAllowed=1
|
||||
git ls-remote git@dev.iopsys.eu:iopsys/wifilife.git -q 2>/dev/null && wifilifeAllowed=1
|
||||
allowedRepos="$(ssh -o ConnectTimeout=5 git@private.inteno.se 2>/dev/null | grep -w 'R\|W' | awk '{print$NF}')"
|
||||
for repo in $allowedRepos; do
|
||||
case $repo in
|
||||
bcmkernel) bcmAllowed=1 ;;
|
||||
ice-client) iceAllowed=1 ;;
|
||||
endptcfg) endptAllowed=1 ;;
|
||||
natalie-dect*) natalieAllowed=1 ;;
|
||||
linux) mediatekAllowed=1 ;;
|
||||
wifilife) wifilifeAllowed=1 ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
v() {
|
||||
@@ -159,18 +106,17 @@ function genconfig {
|
||||
echo
|
||||
echo 1>&2 "Usage: $0 [ OPTIONS ] < Board_Type > [ Customer [customer2 ]...]"
|
||||
echo
|
||||
echo -e " -c|--clean\t\tRemove all files under ./files and import from config "
|
||||
echo -e " -v|--verbose\t\tVerbose"
|
||||
echo -e " -c|--clean\tRemove all files under ./files and import from config "
|
||||
echo -e " -v|--verbose\tVerbose"
|
||||
echo -e " -n|--no-update\tDo NOT! Update customer config before applying"
|
||||
echo -e " -s|--override\t\tEnable 'Package source tree override'"
|
||||
echo -e " -S|--brcmsingle\tForce build of bcmkernel to use only one thread"
|
||||
echo -e " -h|--help\t\tShow this message"
|
||||
echo -e " -s|--override\tEnable 'Package source tree override'"
|
||||
echo -e " -h|--help\tShow this message"
|
||||
echo -e " -l|--list [customer]\tList all Customers or all boards for one customer"
|
||||
echo -e " -a|--list-all\t\tList all Customers and their board types"
|
||||
echo -e " -b|--boards\t\tList all board types"
|
||||
echo -e " -a|--list-all\tList all Customers and their board types"
|
||||
echo -e " -b|--boards\tList all board types"
|
||||
echo
|
||||
echo "Example ./iop genconfig dg200 TELIA"
|
||||
echo "(if no customerconfig is chosen, iopsys config will be used)"
|
||||
echo "Example ./iop genconfig vg50 TELIA"
|
||||
echo "(if no customerconfig is chosen the Inteno Config will be used)"
|
||||
echo
|
||||
exit 0
|
||||
}
|
||||
@@ -230,7 +176,7 @@ function genconfig {
|
||||
|
||||
setup_dirs()
|
||||
{
|
||||
if git ls-remote $CUSTREPO -q 2>/dev/null; then
|
||||
if ssh -o ConnectTimeout=5 git@private.inteno.se 2>/dev/null | grep -qw ${CUSTREPO:22}; then
|
||||
if [ ! -d "$CUSTPATH" ]; then
|
||||
git clone "$CUSTREPO" "$CUSTPATH"
|
||||
elif [ $IMPORT -eq 1 ]; then
|
||||
@@ -354,24 +300,21 @@ function genconfig {
|
||||
# rewrite url to clone with ssh instead of http
|
||||
echo "CONFIG_GITMIRROR_REWRITE=y" >>.config
|
||||
[ $bcmAllowed -eq 0 ] && echo "CONFIG_BCM_OPEN=y" >> .config
|
||||
[ $iceAllowed -eq 0 ] && echo "CONFIG_ICE_OPEN=y" >> .config
|
||||
[ $endptAllowed -eq 0 ] && echo "CONFIG_ENDPT_OPEN=y" >> .config
|
||||
[ $natalieAllowed -eq 0 ] && echo "CONFIG_NATALIE_OPEN=y" >> .config
|
||||
[ $mediatekAllowed -eq 0 ] && echo "CONFIG_MEDIATEK_OPEN=y" >> .config
|
||||
[ $wifilifeAllowed -eq 0 ] && echo "CONFIG_WIFILIFE_OPEN=y" >> .config
|
||||
else
|
||||
echo "# CONFIG_GITMIRROR_REWRITE is not set" >>.config
|
||||
echo "CONFIG_GITMIRROR_REWRITE=n" >>.config
|
||||
echo "CONFIG_BCM_OPEN=y" >> .config
|
||||
echo "CONFIG_ICE_OPEN=y" >> .config
|
||||
echo "CONFIG_ENDPT_OPEN=y" >> .config
|
||||
echo "CONFIG_NATALIE_OPEN=y" >> .config
|
||||
echo "CONFIG_MEDIATEK_OPEN=y" >> .config
|
||||
echo "CONFIG_WIFILIFE_OPEN=y" >> .config
|
||||
fi
|
||||
|
||||
if [ -n "$BRCM_MAX_JOBS" ]
|
||||
then
|
||||
echo "CONFIG_BRCM_MAX_JOBS=\"1\"" >>.config
|
||||
fi
|
||||
|
||||
# Force regeneration of themes
|
||||
touch package/feeds/juci/juci/Makefile
|
||||
|
||||
@@ -384,9 +327,6 @@ function genconfig {
|
||||
# so just touch that file.
|
||||
[ -d ./build_dir ] && find build_dir/ -name "boardparms*c" -print0 2>/dev/null | xargs -0 touch 2>/dev/null
|
||||
|
||||
# Store generated config
|
||||
cp .config .genconfig.config
|
||||
|
||||
# Set default values based on selected parameters
|
||||
v "$(make defconfig 2>&1)"
|
||||
|
||||
@@ -394,8 +334,6 @@ function genconfig {
|
||||
|
||||
# Clean base-file package to force rebuild when changing profile
|
||||
v "$(make package/base-files/clean 2>&1)"
|
||||
|
||||
verify_config
|
||||
}
|
||||
|
||||
####### main #####
|
||||
@@ -420,7 +358,6 @@ function genconfig {
|
||||
-p|--profile) export PROFILE="$2"; shift;;
|
||||
-r|--repo) export CUSTREPO="$2"; shift;;
|
||||
-s|--override) export SRCTREEOVERR=1;;
|
||||
-S|--brcmsingel) export BRCM_MAX_JOBS=1;;
|
||||
-h|--help) usage;;
|
||||
-l|--list) list_customers 0 $2;;
|
||||
-a|--list-all)list_customers 1;;
|
||||
@@ -435,7 +372,7 @@ function genconfig {
|
||||
shift;
|
||||
done
|
||||
|
||||
CUSTREPO="${CUSTREPO:-git@dev.iopsys.eu:consumer/iopsys.git}"
|
||||
CUSTREPO="${CUSTREPO:-git@private.inteno.se:customerconfigs}"
|
||||
|
||||
setup_dirs
|
||||
create_and_copy_files "$@"
|
||||
|
||||
@@ -59,6 +59,23 @@ build_endptmngr_consumer() {
|
||||
cd "$curdir"
|
||||
}
|
||||
|
||||
build_ice_consumer() {
|
||||
# create ice-client open version tar file
|
||||
local iceversion icebasever icerelease icecommith
|
||||
icecommith=$(grep -w "PKG_SOURCE_VERSION:" ./feeds/iopsys/ice-client/Makefile | head -1 | cut -d'=' -f2)
|
||||
icebasever=$(grep -w "BASE_PKG_VERSION:" ./feeds/iopsys/ice-client/Makefile | cut -d'=' -f2)
|
||||
icerelease=$(grep -w "PKG_RELEASE:" ./feeds/iopsys/ice-client/Makefile | cut -d'=' -f2)
|
||||
iceversion=$icebasever$icerelease
|
||||
[ -n "$target" -a -n "$iceversion" -a -n "$icecommith" ] || return
|
||||
ssh $SERVER "test -f $FPATH/ice-client-$target-$iceversion-$icecommith.tar.gz" && return
|
||||
cd ./build_dir/target-*/ice-client-$icebasever/ipkg-* || cd ./build_dir/target-mips*musl-*/ice-client-$icebasever/ipkg-*
|
||||
tar -czv ice-client -f ice-client-$target-$iceversion-$icecommith.tar.gz
|
||||
scp -pv ice-client-$target-$iceversion-$icecommith.tar.gz $SERVER:$FPATH/
|
||||
cp ice-client-$target-$iceversion-$icecommith.tar.gz $curdir/
|
||||
rm -f ice-client-$target-$iceversion-$icecommith.tar.gz
|
||||
cd "$curdir"
|
||||
}
|
||||
|
||||
build_wifilife_consumer() {
|
||||
local ver commit
|
||||
ver=$(grep -w "PKG_VERSION:" ./feeds/iopsys/wifilife/Makefile | cut -d'=' -f2)
|
||||
@@ -112,8 +129,8 @@ function print_usage {
|
||||
|
||||
function generate_tarballs {
|
||||
|
||||
SERVER="god@download.iopsys.eu"
|
||||
FPATH="/var/www/html/iopsys/opensdk"
|
||||
SERVER="god@software.inteno.se"
|
||||
FPATH="/var/www/html/iopsys/consumer"
|
||||
|
||||
set -e
|
||||
git remote -v | grep -q http && return # do not continue if this is an open SDK environment
|
||||
@@ -152,9 +169,11 @@ function generate_tarballs {
|
||||
build_bcmkernel_consumer
|
||||
build_natalie_consumer
|
||||
build_endptmngr_consumer
|
||||
build_ice_consumer
|
||||
build_wifilife_consumer
|
||||
elif [ "$stk_target" == "mediatek" ]; then
|
||||
build_mediatek_kernel
|
||||
build_ice_consumer
|
||||
build_wifilife_consumer
|
||||
else
|
||||
echo "Invalid target: $stk_target"
|
||||
|
||||
@@ -10,7 +10,7 @@ function install_key {
|
||||
echo "::sysinit:/etc/init.d/rcS S boot" >files/etc/inittab
|
||||
echo "::shutdown:/etc/init.d/rcS K shutdown" >>files/etc/inittab
|
||||
echo "tty/0::askfirst:/bin/ash --login" >>files/etc/inittab
|
||||
echo "console::askfirst:/bin/cttyhack /bin/ash --login" >>files/etc/inittab
|
||||
echo "ttyS0::askfirst:/bin/ash --login" >>files/etc/inittab
|
||||
|
||||
echo Done
|
||||
}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/bin/sh
|
||||
function license_report {
|
||||
LICDIR="/tmp/licenses-generator/"
|
||||
LICBIN="${LICDIR}/bin"
|
||||
|
||||
|
||||
dpkg -s python3 python3-requests python3-yaml python3-mako python3-six &> /dev/null
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Missing dependencies"
|
||||
sudo apt-get update
|
||||
sudo apt-get install python3 python3-requests python3-yaml python3-mako python3-six
|
||||
|
||||
else
|
||||
echo "Dependecy check passed"
|
||||
fi
|
||||
|
||||
|
||||
if [ -d "$LICDIR" ]; then
|
||||
### Take action if $DIR exists ###
|
||||
echo "Creating json licences file and html formated report"
|
||||
else
|
||||
### Control will jump here if $DIR does NOT exists ###
|
||||
echo "Error: licenses-generator not found. getting from iopsys repo"
|
||||
git clone git@dev.iopsys.eu:iopsys/licenses-generator.git $LICDIR
|
||||
fi
|
||||
LICGET=`${LICBIN}/licenses-generator gen-License bin/`
|
||||
echo $LICGET
|
||||
${LICBIN}/licenses-generator gen-licrprt $LICGET
|
||||
exit 0
|
||||
|
||||
}
|
||||
|
||||
|
||||
register_command "license_report" "Generate a Licence report on latest build in json format and html under reports"
|
||||
@@ -46,7 +46,7 @@ function update_feed_branches {
|
||||
git checkout $commith
|
||||
git push origin :$release
|
||||
git checkout -b $release
|
||||
git push --set-upstream origin $release
|
||||
git push origin $release
|
||||
cd $ipath
|
||||
done
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys
|
||||
# Copyright (C) 2006-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@@ -12,7 +12,7 @@ PKG_NAME:=iopupgrade
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_VERSION:=01f2afd6c831d6f9eb2940c7e7af16f7e4d439c2
|
||||
PKG_SOURCE_VERSION:=9b5ed4bc9f7ac5064414cf5feb510ffd95df6ec4
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/iopupgrade
|
||||
|
||||
@@ -20,9 +20,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
# support parallel build
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ cur_vol="" # num,[0/1] Number used for ubifs root filesystem volume name.
|
||||
upd_vol="" # num,[0/1] Number used for ubifs root filesystem volume name.
|
||||
# eg: rootfs_0 or rootfs_1, the one we want to update
|
||||
cmdline="" # command line settings.
|
||||
cmdline_match="" # Headers to match to the image
|
||||
|
||||
###############################################################################
|
||||
# file local variables. should not be used in imported functions. Can be used
|
||||
@@ -21,11 +20,11 @@ upd_ubi_id="" # num, UBI volume number for the volume name
|
||||
run_cleanup=0 # if set the cleanup should be run otherwise we skip it.
|
||||
run_mount_cleanup=0 # set if we should run umount in cleanup
|
||||
upd_kernel=0 # set to 1 if system has the kernel in own mtd partition
|
||||
upd_cfe=0 # set to 1 if system is using cfe as bootloader.
|
||||
log_stdout=1 # set to 0 to prevent the log to also print to stdout
|
||||
upd_noreboot=0 # set to 1 if we should not reboot after programming
|
||||
upd_forceimage=0 # set this to force upgrade even if image is for wrong board.
|
||||
upd_forceboot=0 # set this to force upgrade of boot loader
|
||||
upd_keepconfig=0 # set this to keep the current configuration.
|
||||
###############################################################################
|
||||
# import external functions
|
||||
source /lib/upgrade/iopsys.sh
|
||||
@@ -52,41 +51,25 @@ function log {
|
||||
# anyhting it calls as stdout/stderr might no longer exist
|
||||
function finish {
|
||||
|
||||
if [ $run_cleanup -eq 1 ]
|
||||
if [ "$run_cleanup" == "1" ]
|
||||
then
|
||||
|
||||
function_call upd_cleanup
|
||||
run_cleanup=0
|
||||
log ""
|
||||
fi
|
||||
|
||||
if [ $run_mount_cleanup -eq 1 ]
|
||||
if [ "$run_mount_cleanup" == "1" ]
|
||||
then
|
||||
log "Cleaning up after mount"
|
||||
umount_newroot
|
||||
fi
|
||||
# always kill the timeout process, will leave the sleep but that is harmless
|
||||
# as long as the kill will nerver be run.
|
||||
if [ -n "$TIMEOUT_PID" ]; then
|
||||
kill $TIMEOUT_PID 2>/dev/null
|
||||
TIMEOUT_PID=""
|
||||
fi
|
||||
kill $TIMEOUT_PID 2>/dev/null
|
||||
|
||||
lock -u /tmp/iopu.lock
|
||||
}
|
||||
|
||||
function ctrl_c {
|
||||
|
||||
# on ctrl-c we remove the exit handler as it is called directly.
|
||||
trap - EXIT
|
||||
|
||||
# call cleanup function
|
||||
finish
|
||||
|
||||
# do not continue program
|
||||
exit 1
|
||||
}
|
||||
|
||||
function sig_pipe {
|
||||
log_stdout=0 # stdin,stdout,stderr do not exist anymore
|
||||
log "Got sigpipe. Turning of log printing to stdout"
|
||||
@@ -94,6 +77,7 @@ function sig_pipe {
|
||||
|
||||
# if a timout happens terminate
|
||||
function timeout {
|
||||
finish
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -149,7 +133,6 @@ function umount_newroot {
|
||||
umount /tmp/newroot_overlay/rom
|
||||
umount /tmp/newroot_overlay
|
||||
umount /tmp/newroot
|
||||
rmdir /tmp/newroot_overlay /tmp/newroot
|
||||
run_mount_cleanup=0
|
||||
}
|
||||
|
||||
@@ -158,23 +141,11 @@ function usage {
|
||||
echo ""
|
||||
echo "opts:"
|
||||
echo ""
|
||||
echo " -n Do not do the final reboot of the target board"
|
||||
echo " -c Keep configuration"
|
||||
echo " -x Force install even if firmware is not for this board"
|
||||
echo " -b Force install of bootloader regardless of version installed"
|
||||
echo " -r Jump into chroot env of other system"
|
||||
echo " -C \"command\" Execute command in chroot env of other system"
|
||||
}
|
||||
|
||||
# Execute command in newroot(other system root)
|
||||
function newroot_exec {
|
||||
|
||||
upd_vol=$(get_flashbank_next)
|
||||
mount_newroot
|
||||
(ENV=/sbin/iopu_chroot_env chroot /tmp/newroot_overlay "$@")
|
||||
echo ""
|
||||
umount_newroot
|
||||
|
||||
echo " -n Do not do the final reboot of the target board"
|
||||
echo " -c Keep configuration"
|
||||
echo " -x Force install even if firmware is not for this board"
|
||||
echo " -b Force install of bootloader regardless of version installed"
|
||||
echo " -r Jump into chroot env of other system"
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
@@ -190,11 +161,10 @@ then
|
||||
fi
|
||||
|
||||
trap finish EXIT
|
||||
trap ctrl_c INT
|
||||
trap timeout SIGALRM
|
||||
trap sig_pipe SIGPIPE
|
||||
|
||||
while getopts "nrxbhcC:" opt; do
|
||||
while getopts "nrxb" opt; do
|
||||
case $opt in
|
||||
n)
|
||||
upd_noreboot=1
|
||||
@@ -205,19 +175,16 @@ while getopts "nrxbhcC:" opt; do
|
||||
b)
|
||||
upd_forceboot=1
|
||||
;;
|
||||
c)
|
||||
upd_keepconfig=1
|
||||
;;
|
||||
r)
|
||||
newroot_exec /bin/sh
|
||||
exit
|
||||
;;
|
||||
C)
|
||||
newroot_exec "${OPTARG}"
|
||||
exit
|
||||
upd_vol=$(get_flashbank_next)
|
||||
mount_newroot
|
||||
(ENV=/sbin/iopu_chroot_env chroot /tmp/newroot_overlay /bin/sh)
|
||||
echo ""
|
||||
umount_newroot
|
||||
exit 0
|
||||
;;
|
||||
h)
|
||||
usage
|
||||
upd_usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -226,7 +193,8 @@ done
|
||||
# put a timeout on this if it takes longer than 120 seconds we should abort
|
||||
# and clean up
|
||||
(
|
||||
sleep 120 && kill -ALRM $$ 2>/dev/null # send it a SIGALRM signal
|
||||
sleep 120 # if 2 minutes pass
|
||||
kill -ALRM $$ 2>/dev/null # send it a SIGALRM signal
|
||||
)&
|
||||
TIMEOUT_PID=$!
|
||||
|
||||
@@ -236,55 +204,51 @@ log "Firmware upgrade started"
|
||||
if [ $upd_forceimage -eq 0 ]
|
||||
then
|
||||
board=$(db get hw.board.iopVerBoard)
|
||||
cmdline_match="board=$board"
|
||||
cmdline="$cmdline -b $board"
|
||||
else
|
||||
cmdline="$cmdline -q"
|
||||
fi
|
||||
|
||||
# find out what rootfs volume is active.
|
||||
cur_vol=$(get_flashbank_current)
|
||||
upd_vol=$(get_flashbank_next)
|
||||
|
||||
# convert volume name "rootfs_$upd_vol" into ubi volume id
|
||||
# convert volume name "rootfs_$upd_vol" into ubifs volume id
|
||||
upd_ubi_id=$(ubinfo -d 0 -N rootfs_$upd_vol | awk "/Volume ID:/ {print \$3}")
|
||||
log "installing Root Fileystem into UBI volume rootfs_$upd_vol"
|
||||
|
||||
# prepare to match dsl.
|
||||
function_call upd_conf_dsl
|
||||
|
||||
# prepare to update CFE if it exists
|
||||
function_call upd_conf_cfe
|
||||
|
||||
# prepare to update kernel if it is stored in MTD/JFFS2
|
||||
function_call upd_conf_kernel
|
||||
|
||||
log "now starting writing data to flash with [ iopupgrade $cmdline -M "$cmdline_match" -u ubi0_$upd_ubi_id ]"
|
||||
log "now starting writing data to flash with [ iopupgrade $cmdline -u ubi0_$upd_ubi_id ]"
|
||||
run_cleanup=1 # When we start to actually write data there might be some
|
||||
# things that need cleanup if we get an error/crash
|
||||
if ! iopupgrade $cmdline -M "$cmdline_match" -u ubi0_$upd_ubi_id; then
|
||||
log "iopupgrade program Failed"
|
||||
exit 1
|
||||
iopupgrade $cmdline -u ubi0_$upd_ubi_id
|
||||
|
||||
# in case of any error we abort
|
||||
if [ $? -ne 0 ]; then
|
||||
log "iopupgrade program Failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
log "Firmware programmed to flash."
|
||||
|
||||
|
||||
log "Transfering configuration to new system."
|
||||
|
||||
# Force upgrade of boot loader
|
||||
[ $upd_forceboot -eq 1 ] && chroot_cmdline="$chroot_cmdline -b"
|
||||
|
||||
if [ $upd_keepconfig -eq 1 ]; then
|
||||
log "Transfering configuration to new system."
|
||||
chroot_cmdline="$chroot_cmdline -c"
|
||||
fi
|
||||
|
||||
mount_newroot
|
||||
if ! chroot /tmp/newroot_overlay /sbin/iopu_chroot $chroot_cmdline; then
|
||||
log "Configuration migration failed!"
|
||||
exit 1
|
||||
fi
|
||||
chroot /tmp/newroot_overlay /sbin/iopu_chroot $chroot_cmdline
|
||||
umount_newroot
|
||||
|
||||
log "New firmware fully installed."
|
||||
log "Update fully installed."
|
||||
run_cleanup=0
|
||||
|
||||
|
||||
# Now make sure that we actually boot the new system on the next reboot
|
||||
upd_finnish
|
||||
|
||||
@@ -306,3 +270,8 @@ else
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
# by functions declared in this script
|
||||
upd_forceboot=0
|
||||
log_stdout=1 # set to 0 to prevent the log to also print to stdout
|
||||
upd_keepconfig=0 # set this to keep the current configuration.
|
||||
|
||||
###############################################################################
|
||||
# import external functions
|
||||
@@ -25,36 +24,33 @@ source /lib/upgrade/iopsys.sh
|
||||
|
||||
# only call function if it exists
|
||||
function_call() {
|
||||
if [ -n "$1" ] && type "$1" 2>/dev/null >/dev/null
|
||||
then
|
||||
$1 "$@" || exit
|
||||
fi
|
||||
if type "$1" 2>/dev/null >/dev/null
|
||||
then
|
||||
$1 $@
|
||||
fi
|
||||
}
|
||||
# Cleanup and error handling functions.
|
||||
function log {
|
||||
TIME=$(date)
|
||||
[ $log_stdout -eq 1 ] && echo "$@"
|
||||
echo "[$TIME] $@" >>/root/upd_log
|
||||
TIME=$(date)
|
||||
[ $log_stdout -eq 1 ] && echo "$@"
|
||||
echo "[$TIME] $@" >>/root/upd_log
|
||||
}
|
||||
|
||||
|
||||
while getopts "hbc" opt; do
|
||||
case $opt in
|
||||
h)
|
||||
upd_usage
|
||||
exit 1
|
||||
;;
|
||||
c)
|
||||
upd_keepconfig=1
|
||||
;;
|
||||
b)
|
||||
upd_forceboot=1
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
while getopts "hb" opt; do
|
||||
case $opt in
|
||||
h)
|
||||
upd_usage
|
||||
exit 1
|
||||
;;
|
||||
b)
|
||||
upd_forceboot=1
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# copy old install log over
|
||||
@@ -63,9 +59,3 @@ cp /tmp/oldroot/tmp/upd_log /root/upd_log
|
||||
# Upgrade boot loader if needed.
|
||||
function_call upd_program_boot
|
||||
|
||||
# Let the new upgrade do whatever it needs,
|
||||
# such as configuration migration etc.
|
||||
if [ $upd_keepconfig -eq 1 -a -x /lib/upgrade/post-rootfs-fixup ]; then
|
||||
(/lib/upgrade/post-rootfs-fixup /dev/null /tmp/oldroot) || exit
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
# Copyright (C) 2019 iopsys
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
# Copyright (C) 2013 Inteno
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
@@ -11,9 +8,6 @@ PKG_NAME:=iwatchdog
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
# support parallel build
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
@@ -28,7 +22,7 @@ include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/iwatchdog
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=IOPSYS watchdog
|
||||
TITLE:=Inteno watchdog
|
||||
endef
|
||||
|
||||
define Package/iwatchdog/description
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2019 IOPSYS
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=json-editor
|
||||
PKG_RELEASE:=1.0.0
|
||||
|
||||
PKG_SOURCE_VERSION:=44b32937a062ec4ffc9f7355841dc94ab6efa50f
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=git@dev.iopsys.eu:iopsys/json-editor.git
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/json-editor
|
||||
SECTION:=base
|
||||
CATEGORY:=Libraries
|
||||
DEPENDS:=+libjson-c +libblobmsg-json
|
||||
TITLE:=JSON-editor
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_BUILD_DIR)/src/json-editor.h $(1)/usr/include/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/libjson-editor.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,json-editor))
|
||||
@@ -17,8 +17,6 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_LICENSE:=LGPLv3
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libjwt
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2012-2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libmicroxml
|
||||
PKG_VERSION:=2012-06-11
|
||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=git://dev.freecwmp.org/microxml
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=72965423184f24cc0b963d91c2d1863cdb01b6aa
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_LICENSE:=LGPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libmicroxml
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=XML library
|
||||
MAINTAINER:=Luka Perkov <luka@openwrt.org>
|
||||
endef
|
||||
|
||||
define Package/libmicroxml/description
|
||||
A micro sized XML library
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-threads \
|
||||
--enable-static \
|
||||
--enable-shared
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_BUILD_DIR)/microxml.h $(1)/usr/include
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/libmicroxml.so* $(1)/usr/lib
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(CP) $(PKG_BUILD_DIR)/microxml.pc $(1)/usr/lib/pkgconfig
|
||||
endef
|
||||
|
||||
define Package/libmicroxml/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/libmicroxml.so* $(1)/usr/lib
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libmicroxml))
|
||||
@@ -1,130 +0,0 @@
|
||||
diff --git a/mxml-file.c b/mxml-file.c
|
||||
index 02eca9d..f10d202 100644
|
||||
--- a/mxml-file.c
|
||||
+++ b/mxml-file.c
|
||||
@@ -363,9 +363,12 @@ mxmlSaveFile(mxml_node_t *node, /* I - Node to write */
|
||||
* Write the node...
|
||||
*/
|
||||
|
||||
- if ((col = mxml_write_node(node, fp, cb, 0, mxml_file_putc, global)) < 0)
|
||||
+ if ((col = mxml_write_node(node, fp, cb, 0, mxml_file_putc, global)) < 0){
|
||||
+ global_free(global);
|
||||
return (-1);
|
||||
-
|
||||
+ }
|
||||
+
|
||||
+ global_free(global);
|
||||
if (col > 0)
|
||||
if (putc('\n', fp) < 0)
|
||||
return (-1);
|
||||
@@ -1448,6 +1451,7 @@ mxml_load_data(
|
||||
if ((buffer = malloc(64)) == NULL)
|
||||
{
|
||||
mxml_error("Unable to allocate string buffer!");
|
||||
+ global_free(global);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
@@ -2083,11 +2087,12 @@ mxml_load_data(
|
||||
node->parent ? node->parent->value.element.name : "(null)");
|
||||
|
||||
mxmlDelete(first);
|
||||
-
|
||||
+ global_free(global);
|
||||
return (NULL);
|
||||
}
|
||||
}
|
||||
|
||||
+ global_free(global);
|
||||
if (parent)
|
||||
return (parent);
|
||||
else
|
||||
@@ -2102,7 +2107,7 @@ error:
|
||||
mxmlDelete(first);
|
||||
|
||||
free(buffer);
|
||||
-
|
||||
+ global_free(global);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
diff --git a/mxml-private.c b/mxml-private.c
|
||||
index 4378ca3..ea6e452 100644
|
||||
--- a/mxml-private.c
|
||||
+++ b/mxml-private.c
|
||||
@@ -41,6 +41,32 @@
|
||||
* This code currently supports AIX, HP-UX, Linux, Mac OS X, Solaris, and
|
||||
* Windows. It might work on the BSDs and IRIX, but I haven't tested that.
|
||||
*/
|
||||
+void *global_mem[16] = {0};
|
||||
+
|
||||
+static void *global_calloc(int x, int size)
|
||||
+{
|
||||
+ int i;
|
||||
+ void *m = calloc(x, size);
|
||||
+ for (i = ((sizeof(global_mem)/sizeof(global_mem[0])) - 1); i > 0; i--) {
|
||||
+ global_mem[i] = global_mem[i-1];
|
||||
+ }
|
||||
+ global_mem[0] = m;
|
||||
+ return m;
|
||||
+}
|
||||
+
|
||||
+void global_free(void *m)
|
||||
+{
|
||||
+ int i;
|
||||
+ if (m == NULL)
|
||||
+ return;
|
||||
+ for (i = ((sizeof(global_mem)/sizeof(global_mem[0])) - 1); i >= 0; i--) {
|
||||
+ if (global_mem[i] == m) {
|
||||
+ global_mem[i] = NULL;
|
||||
+ free(m);
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
|
||||
#if defined(__sun) || defined(_AIX)
|
||||
# pragma fini(_mxml_fini)
|
||||
@@ -148,7 +174,6 @@ mxml_real_cb(mxml_node_t *node) /* I - Current node */
|
||||
return (MXML_REAL);
|
||||
}
|
||||
|
||||
-
|
||||
#ifdef HAVE_PTHREAD_H /**** POSIX threading ****/
|
||||
# include <pthread.h>
|
||||
|
||||
@@ -190,7 +215,6 @@ _MXML_FINI(void)
|
||||
}
|
||||
}
|
||||
|
||||
-
|
||||
/*
|
||||
* '_mxml_global()' - Get global data.
|
||||
*/
|
||||
@@ -205,7 +229,7 @@ _mxml_global(void)
|
||||
|
||||
if ((global = (_mxml_global_t *)pthread_getspecific(_mxml_key)) == NULL)
|
||||
{
|
||||
- global = (_mxml_global_t *)calloc(1, sizeof(_mxml_global_t));
|
||||
+ global = (_mxml_global_t *)global_calloc(1, sizeof(_mxml_global_t));
|
||||
pthread_setspecific(_mxml_key, global);
|
||||
|
||||
global->num_entity_cbs = 1;
|
||||
@@ -288,7 +312,7 @@ _mxml_global(void)
|
||||
|
||||
if ((global = (_mxml_global_t *)TlsGetValue(_mxml_tls_index)) == NULL)
|
||||
{
|
||||
- global = (_mxml_global_t *)calloc(1, sizeof(_mxml_global_t));
|
||||
+ global = (_mxml_global_t *)global_calloc(1, sizeof(_mxml_global_t));
|
||||
|
||||
global->num_entity_cbs = 1;
|
||||
global->entity_cbs[0] = _mxml_entity_cb;
|
||||
diff --git a/mxml-private.h b/mxml-private.h
|
||||
index c591208..72ed338 100644
|
||||
--- a/mxml-private.h
|
||||
+++ b/mxml-private.h
|
||||
@@ -43,3 +43,4 @@ typedef struct _mxml_global_s
|
||||
extern _mxml_global_t *_mxml_global(void);
|
||||
extern int _mxml_entity_cb(const char *name);
|
||||
|
||||
+extern void global_free(void *m);
|
||||
@@ -14,8 +14,6 @@ PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=7875222706cb6999af0361ef0aebdc85cd75c127
|
||||
PKG_NAME:=libpicoevent
|
||||
|
||||
PKG_LICENSE:=GPL-2.0-only
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=librpc
|
||||
PKG_RELEASE=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL=$(LEDE_GIT)/project/librpc-uclibc.git
|
||||
PKG_SOURCE_DATE:=2015-11-04
|
||||
PKG_SOURCE_VERSION:=a921e3ded051746f9f7cd5e5a312fb6771716aac
|
||||
PKG_MIRROR_HASH:=22c8dc55e1c4e8e31635a37708a3ce622a6ca33ebd918a4321b0be6ffce89b21
|
||||
CMAKE_INSTALL:=1
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
PKG_LICENSE:=LGPL-2.1
|
||||
PKG_LICENSE_FILES:=
|
||||
|
||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/librpc
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=uClibc RPC library
|
||||
endef
|
||||
|
||||
define Package/librpc/install
|
||||
$(INSTALL_DIR) $(1)/lib/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/librpc.so $(1)/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,librpc))
|
||||
@@ -12,9 +12,6 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_INSTALL:=1
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
|
||||
@@ -15,9 +15,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
||||
PKG_SOURCE_URL:=@SF/lmbench/
|
||||
PKG_MD5SUM:=b3351a3294db66a72e2864a199d37cbf
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_BUILD_DEPENDS:=librpc
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
@@ -19,9 +19,6 @@ PKG_CAT:=zcat
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/logrotate
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# Copyright (C) 2019 iopsys
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=loop-detector
|
||||
@@ -17,9 +11,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2008-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ltq-nand
|
||||
PKG_VERSION:=1.0
|
||||
|
||||
PKG_SOURCE:=v$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/merbanan/ltq-nand/archive/
|
||||
#PKG_SOURCE_PROTO:=git
|
||||
#PKG_SOURCE_URL:=https://github.com/merbanan/ltq-nand/releases/download/v$(PKG_VERSION)/
|
||||
#PKG_SOURCE_URL:=https://github.com/merbanan/ltq-nand.git
|
||||
#PKG_SOURCE_VERSION:=07b5b0331af6de4174dab2c02bf260ee9625452a
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
|
||||
|
||||
define Host/Compile
|
||||
$(MAKE) -C $(HOST_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
$(CP) \
|
||||
$(HOST_BUILD_DIR)/ltq-nand \
|
||||
$(STAGING_DIR_HOST)/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2019 IOPSYS
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=meshcomms
|
||||
PKG_VERSION:=1.0.1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=8d5808d81d1fc96e4ce4ee682847b4de15b46224
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/meshcomms.git
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=BSD2+Patent
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PLATFORM := linux
|
||||
FLAVOUR := iopsys
|
||||
|
||||
export PLATFORM
|
||||
export FLAVOUR
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/meshcomms
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Mesh agent
|
||||
DEPENDS:=+libpcap +libopenssl +libubox +libubus +libblobmsg-json
|
||||
endef
|
||||
|
||||
define Package/meshcomms/description
|
||||
meshComms is an open source implementation of IEEE 1905.1a that is an output
|
||||
of the Broadband Forum Open Broadband - Multi Access Point (OB-MAP) project.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += \
|
||||
-I$(STAGING_DIR)/usr/include \
|
||||
-D_GNU_SOURCE \
|
||||
-DDO_NOT_ACCEPT_UNAUTHENTICATED_COMMANDS
|
||||
|
||||
ifneq ($(CONFIG_BIG_ENDIAN),)
|
||||
TARGET_CFLAGS += -D_HOST_IS_BIG_ENDIAN_=1
|
||||
else
|
||||
TARGET_CFLAGS += -D_HOST_IS_LITTLE_ENDIAN_=1
|
||||
endif
|
||||
|
||||
#define Build/Prepare
|
||||
# $(CP) -rf ./meshcomms/* $(PKG_BUILD_DIR)/
|
||||
#endef
|
||||
|
||||
define Package/meshcomms/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/meshcomms.conf $(1)/etc/config/meshcomms
|
||||
$(INSTALL_BIN) ./files/meshcomms.init $(1)/etc/init.d/meshcomms
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/output/al_entity $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,meshcomms))
|
||||
@@ -1,8 +0,0 @@
|
||||
config meshcomms 'global'
|
||||
option basemacint 'wan'
|
||||
list interfaces 'lan'
|
||||
list interfaces 'wan'
|
||||
option mapall true
|
||||
option debug false
|
||||
option port 8888
|
||||
|
||||
@@ -1,105 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
STOP=10
|
||||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/al_entity
|
||||
|
||||
validate_global_section()
|
||||
{
|
||||
uci_validate_section meshcomms meshcomms "${1}" \
|
||||
'basemacint:string:wan' \
|
||||
'interfaces:string:lan' \
|
||||
'mapall:bool:true' \
|
||||
'debug:bool:true' \
|
||||
'port:port:8888'
|
||||
}
|
||||
|
||||
get_device_name() {
|
||||
local device
|
||||
# Get wan L3 interface
|
||||
ubus list |grep -iq network.interface.${1}
|
||||
if [ "$?" -eq 0 ]; then
|
||||
json_load "$(ubus -t 2 call network.interface.${1} status)"
|
||||
json_get_var device device
|
||||
echo ${device}
|
||||
fi
|
||||
}
|
||||
|
||||
get_interface_mac() {
|
||||
local l3 basemac
|
||||
l3=$(get_device_name ${1})
|
||||
if [ -n ${l3} ]; then
|
||||
json_load "$(ubus -t 2 call network.device status "{\"name\":\"${l3}\"}")"
|
||||
json_get_var basemac macaddr
|
||||
fi
|
||||
echo ${basemac}
|
||||
}
|
||||
|
||||
configure_meshcomms()
|
||||
{
|
||||
local basemacint interfaces mapall debug port l3device basemac intf
|
||||
|
||||
validate_global_section global || {
|
||||
echo "Validation of global section failed"
|
||||
return 1;
|
||||
}
|
||||
if [ ${debug} -eq 1 ]; then
|
||||
# Forward stdout of the command to logd
|
||||
procd_set_param stdout 1
|
||||
# Same for stderr
|
||||
procd_set_param stderr 1
|
||||
fi
|
||||
|
||||
basemac=$(get_interface_mac ${basemacint})
|
||||
|
||||
|
||||
for f in ${interfaces}
|
||||
do
|
||||
local l3=$(get_device_name $f)
|
||||
intf="${intf} ${l3}"
|
||||
done
|
||||
intf=$(echo $intf|sed 's/ /,/g')
|
||||
[ -z "${intf}" ] && \
|
||||
echo "interface list is empty/invalid">/dev/console \
|
||||
return 1
|
||||
|
||||
procd_append_param command -m ${basemac} -i ${intf}
|
||||
|
||||
[ "${debug}" -eq 1 ] && \
|
||||
procd_append_param command -vv
|
||||
|
||||
[ "${mapall}" -eq 1 ] && \
|
||||
procd_append_param command -w
|
||||
|
||||
[ ${port} -ne 8888 ] && \
|
||||
procd_append_param command -p ${port}
|
||||
}
|
||||
|
||||
configure_network() {
|
||||
ebtables -L FORWARD|grep -iqE "1:80:C2:(0)+:(0)+:13.*-j.*DROP"
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "Applying drop rule to drop pkts forwared by kernel to 1905.1 multicast mac"
|
||||
ebtables -A FORWARD -d 01:80:c2:00:00:13 -j DROP
|
||||
fi
|
||||
config_load meshcomms
|
||||
config_foreach configure_meshcomms meshcomms
|
||||
}
|
||||
|
||||
start_service() {
|
||||
procd_open_instance meshcomms
|
||||
procd_set_param command ${PROG}
|
||||
configure_network
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger "network"
|
||||
}
|
||||
@@ -16,8 +16,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/mqtt-ciotc
|
||||
|
||||
291
mt7603/Makefile
291
mt7603/Makefile
@@ -1,291 +0,0 @@
|
||||
# All rights reserved.
|
||||
# See LICENSE for more information.
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=mt7603e
|
||||
PKG_VERSION:=4.1.2.0_20190222
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=git@dev.iopsys.eu:mediatek/mt7603.git
|
||||
PKG_SOURCE_VERSION:=4e94b2c3f45b7d5374ed988cdad925d5ca30b838
|
||||
#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
#PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_KCONFIG:= \
|
||||
AP_SUPPORT \
|
||||
RT_FIRST_CARD \
|
||||
RT_SECOND_CARD \
|
||||
RT_FIRST_IF_RF_OFFSET \
|
||||
RT_SECOND_IF_RF_OFFSET \
|
||||
MT_WIFI \
|
||||
WIFI_BASIC_FUNC \
|
||||
MT_WIFI_PATH \
|
||||
FIRST_IF_NONE \
|
||||
FIRST_IF_EEPROM_FLASH \
|
||||
FIRST_IF_EEPROM_EFUSE \
|
||||
RT_FIRST_CARD_EEPROM \
|
||||
SECOND_IF_NONE \
|
||||
SECOND_IF_EEPROM_FLASH \
|
||||
SECOND_IF_EEPROM_PROM \
|
||||
SECOND_IF_EEPROM_EFUSE \
|
||||
RT_SECOND_CARD_EEPROM \
|
||||
MULTI_INF_SUPPORT \
|
||||
WIFI_BASIC_FUNC \
|
||||
WIRELESS_EXT \
|
||||
WEXT_SPY \
|
||||
WEXT_PRIV \
|
||||
DOT11_N_SUPPORT \
|
||||
DOT11_VHT_AC \
|
||||
DOT11_HE_AX \
|
||||
CFG_SUPPORT_FALCON_MURU \
|
||||
CFG_SUPPORT_FALCON_TXCMD_DBG \
|
||||
CFG_SUPPORT_FALCON_SR \
|
||||
WIFI_DRIVER \
|
||||
G_BAND_256QAM_SUPPORT \
|
||||
BRCM_256QAM_SUPPORT \
|
||||
ICAP_SUPPORT \
|
||||
MT_AP_SUPPORT \
|
||||
BACKGROUND_SCAN_SUPPORT \
|
||||
SMART_CARRIER_SENSE_SUPPORT \
|
||||
SCS_FW_OFFLOAD \
|
||||
THERMAL_PROTECT_SUPPORT \
|
||||
MT_DFS_SUPPORT \
|
||||
HDR_TRANS_TX_SUPPORT \
|
||||
CHIP_MT7615E \
|
||||
HDR_TRANS_RX_SUPPORT \
|
||||
SUPPORT_DYNAMIC_TXOP \
|
||||
WSC_INCLUDED \
|
||||
MT_STA_SUPPORT \
|
||||
WSC_V2_SUPPORT \
|
||||
DOT11W_PMF_SUPPORT \
|
||||
PASSPOINT_R2 \
|
||||
TXBF_SUPPORT \
|
||||
IGMP_SNOOP_SUPPORT \
|
||||
RATE_ADAPTION \
|
||||
RATE_ADAPT_AGBS_SUPPORT \
|
||||
RTMP_FLASH_SUPPORT \
|
||||
ATE_SUPPORT \
|
||||
WLAN_SERVICE \
|
||||
UAPSD \
|
||||
RLT_MAC \
|
||||
RLT_BBP \
|
||||
RLT_RF \
|
||||
RTMP_MAC \
|
||||
RTMP_BBP \
|
||||
RTMP_RF \
|
||||
RTMP_PCI_SUPPORT \
|
||||
RTMP_USB_SUPPORT \
|
||||
RTMP_RBUS_SUPPORT \
|
||||
WIFI_MODE_AP \
|
||||
WIFI_MODE_STA \
|
||||
WIRELESS_EXT \
|
||||
WEXT_SPY \
|
||||
WEXT_PRIV \
|
||||
WDS_SUPPORT \
|
||||
MBSS_SUPPORT \
|
||||
APCLI_SUPPORT \
|
||||
APCLI_CERT_SUPPORT \
|
||||
APCLI_CONNECTION_TRIAL \
|
||||
MAC_REPEATER_SUPPORT \
|
||||
RALINK_RT6352 \
|
||||
RALINK_MT7620 \
|
||||
RALINK_MT7603E \
|
||||
CON_WPS_SUPPORT \
|
||||
VOW_SUPPORT \
|
||||
BAND_STEERING \
|
||||
TXOP_ARBITER \
|
||||
CFG_SUPPORT_DYNAMIC_TXOP \
|
||||
WIFI_MODE_BOTH \
|
||||
WIFI_RLT_MAC \
|
||||
RLT_MAC \
|
||||
WIFI_RTMP_MAC \
|
||||
RTMP_MAC \
|
||||
WIFI_MT_MAC \
|
||||
CHIP_MT7603E \
|
||||
CHIP_MT7615E \
|
||||
MT_MAC \
|
||||
RATE_ADAPTION \
|
||||
SUPPORT_OPENWRT \
|
||||
SDK_USER_LIGHTY \
|
||||
MUMIMO_SUPPORT \
|
||||
MU_RA_SUPPORT \
|
||||
LED_CONTROL_SUPPORT \
|
||||
RA_HW_NAT \
|
||||
RA_HW_NAT_WIFI_NEW_ARCH \
|
||||
CFG80211_SUPPORT \
|
||||
SER_SUPPORT \
|
||||
GREENAP_SUPPORT \
|
||||
RADIUS_ACCOUNTING_SUPPORT \
|
||||
TPC_SUPPORT \
|
||||
RLM_CAL_CACHE_SUPPORT \
|
||||
CAL_BIN_FILE_SUPPORT \
|
||||
RF_LOCKDOWN_SUPPORT \
|
||||
PASSPOINT_R2 \
|
||||
RED_SUPPORT \
|
||||
FIRST_IF_EPAELNA \
|
||||
FIRST_IF_IPAILNA \
|
||||
FIRST_IF_IPAELNA \
|
||||
FIRST_IF_EPAILNA \
|
||||
SECOND_IF_EPAELNA \
|
||||
SECOND_IF_IPAILNA \
|
||||
SECOND_IF_IPAELNA \
|
||||
SECOND_IF_EPAILNA \
|
||||
THIRD_IF_EPAELNA \
|
||||
THIRD_IF_IPAILNA \
|
||||
THIRD_IF_IPAELNA \
|
||||
THIRD_IF_EPAILNA \
|
||||
WIFI_PKT_FWD \
|
||||
DOT11K_RRM_SUPPORT \
|
||||
DOT11R_FT_SUPPORT \
|
||||
ENTERPRISE_AP_SUPPORT \
|
||||
WIFI_EAP_FEATURE \
|
||||
RADIUS_MAC_AUTH_SUPPORT \
|
||||
VLAN_SUPPORT \
|
||||
DYNAMIC_VLAN_SUPPORT \
|
||||
CUSTOMISED_HOSTAPD_SUPPORT \
|
||||
APCLI_STA_SUPPORT \
|
||||
WDS_STA_SUPPORT \
|
||||
MBSS_AS_WDS_AP_SUPPORT \
|
||||
MBO_SUPPORT \
|
||||
MAP_SUPPORT \
|
||||
WPA3_SUPPORT \
|
||||
OWE_SUPPORT \
|
||||
WIFI_PKT_FWD_V1 \
|
||||
FIRST_IF_MT7615E \
|
||||
FIRST_IF_MT7622 \
|
||||
FIRST_IF_MT7626 \
|
||||
FIRST_IF_AXE \
|
||||
FIRST_IF_MT7915 \
|
||||
SECOND_IF_MT7615E \
|
||||
SECOND_IF_AXE \
|
||||
THIRD_IF_NONE \
|
||||
THIRD_IF_MT7615E \
|
||||
CHIP_AXE \
|
||||
CHIP_MT7915 \
|
||||
RT_THIRD_CARD \
|
||||
RT_THIRD_IF_RF_OFFSET \
|
||||
THIRD_IF_EEPROM_FLASH \
|
||||
THIRD_IF_EEPROM_PROM \
|
||||
THIRD_IF_EEPROM_EFUSE \
|
||||
RT_THIRD_CARD_EEPROM \
|
||||
SPECTRUM_SUPPORT \
|
||||
PRE_CAL_TRX_SET1_SUPPORT \
|
||||
MWDS \
|
||||
MCAST_RATE_SPECIFIC \
|
||||
WLAN_HOOK \
|
||||
COEX_SUPPORT \
|
||||
EASY_SETUP_SUPPORT \
|
||||
EVENT_NOTIFIER_SUPPORT \
|
||||
AIR_MONITOR \
|
||||
OFFCHANNEL_SCAN_FEATURE \
|
||||
WNM_SUPPORT \
|
||||
INTERWORKING \
|
||||
LINUX_NET_TXQ_SUPPORT \
|
||||
CHIP_MT7622 \
|
||||
CHIP_MT7626 \
|
||||
MEMORY_SHRINK \
|
||||
RPS_EFFICIENCY \
|
||||
WHNAT_SUPPORT \
|
||||
FAST_NAT_SUPPORT \
|
||||
PRE_CAL_TRX_SET2_SUPPORT \
|
||||
LINK_TEST_SUPPORT \
|
||||
TCP_RACK_SUPPORT \
|
||||
FQ_SCH_SUPPORT \
|
||||
BRCM_256QAM_SUPPORT \
|
||||
VHT_TXBF_2G_EPIGRAM_IE_SUPPORT \
|
||||
DSCP_QOS_MAP_SUPPORT \
|
||||
DSCP_PRI_SUPPORT \
|
||||
PCIE_ASPM_DYM_CTRL_SUPPORT \
|
||||
MIN_PHY_RATE_SUPPORT \
|
||||
FAST_UP_RATE_SUPPORT \
|
||||
TXRX_STAT_SUPPORT \
|
||||
VENDOR_FEATURE11_SUPPORT \
|
||||
WIFI_TWT_SUPPORT \
|
||||
SINGLE_SKU \
|
||||
SNIFFER_SUPPORT \
|
||||
|
||||
PKG_CONFIG_DEPENDS:=$(foreach c, $(PKG_KCONFIG),$(if $(CONFIG_MTK_$c),CONFIG_$(c)))
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
#TAR_CMD=$(HOST_TAR) -C $(1)/ $(TAR_OPTIONS)
|
||||
|
||||
define KernelPackage/mt7603e
|
||||
CATEGORY:=Mediatek drivers
|
||||
TITLE:=WiFi drivers
|
||||
DEPENDS:= +wifi-profile
|
||||
ifneq ($(CONFIG_MTK_FAST_NAT_SUPPORT), )
|
||||
ifneq ($(CONFIG_NET_MEDIATEK_HNAT), )
|
||||
DEPENDS+=+kmod-mediatek_hnat
|
||||
endif
|
||||
endif
|
||||
FILES:=$(PKG_BUILD_DIR)/mt7603_wifi_ap/mt7603e.ko
|
||||
AUTOLOAD:=$(call AutoProbe, mt7603e)
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define KernelPackage/mt7603e/config
|
||||
source "$(SOURCE)/globalconfig.in"
|
||||
endef
|
||||
|
||||
## check following
|
||||
#CONFIG_MT7603E_HOTSPOT=y (depends on missing WAPP_SUPPORT)
|
||||
#CONFIG_MT7603E_MBO_SUPPORT=y
|
||||
#CONFIG_MT7603E_MAP_SUPPORT=y
|
||||
#CONFIG_MT7603E_TXBF_SUPPORT=y (undef -DVHT_TXBF_SUPPORT)
|
||||
#CONFIG_MT7603E_ACL_V2_SUPPORT=y (build error)
|
||||
#CONFIG_MT7603E_DFS_SUPPORT=y (unnecessary)
|
||||
#CONFIG_MT7603E_SINGLE_SKU_V2=y (fix: get_single_sku_path())
|
||||
#CONFIG_MT7603E_WDS_SUPPORT=y ( incomplete? )
|
||||
#CONFIG_MT7603E_BTCOEX_CONCURRENT=y (undefined)
|
||||
|
||||
NOSTDINC_FLAGS := -DCONFIG_SECOND_IF_MT7615E -DCONFIG_FIRST_IF_MT7603E
|
||||
|
||||
|
||||
define Build/Compile
|
||||
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
||||
$(KERNEL_MAKE_FLAGS) V=1 \
|
||||
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
||||
SUBDIRS="$(PKG_BUILD_DIR)/mt7603_wifi_ap" \
|
||||
$(foreach c, $(PKG_KCONFIG),$(if $(CONFIG_MTK_$c),CONFIG_$(c)=$(CONFIG_MTK_$(c)))) \
|
||||
CONFIG_SUPPORT_OPENWRT=y CONFIG_MT_AP_SUPPORT=m CONFIG_CHIP_MT7603E=y CONFIG_MT_MAC=y \
|
||||
CONFIG_FIRST_IF_MT7603E=y CONFIG_SECOND_IF_MT7615E=y \
|
||||
CONFIG_RT_FIRST_IF_RF_OFFSET=0x0 CONFIG_RT_SECOND_IF_RF_OFFSET=0x8000 \
|
||||
CONFIG_MT7603E_RALINK_MT7603E=y \
|
||||
CONFIG_MT_MAC=y \
|
||||
CONFIG_MT7603E_RTMP_PCI_SUPPORT=y \
|
||||
CONFIG_MT7603E_NEW_RATE_ADAPT_SUPPORT=y CONFIG_MT7603E_AGS_SUPPORT=y \
|
||||
CONFIG_MT7603E_UAPSD=y CONFIG_MT7603E_MT_MAC=y \
|
||||
CONFIG_MT7603E_WSC_INCLUDED=y CONFIG_MT7603E_WSC_V2_SUPPORT=y \
|
||||
CONFIG_MT7603E_DOT11W_PMF_SUPPORT=y \
|
||||
CONFIG_MT7603E_DOT11N_DRAFT3=y \
|
||||
CONFIG_MT7603E_DOT11R_FT_SUPPORT=y \
|
||||
CONFIG_MT7603E_DOT11K_RRM_SUPPORT=y \
|
||||
CONFIG_MT7603E_WNM_SUPPORT=y \
|
||||
CONFIG_MT7603E_INTERWORKING=y \
|
||||
CONFIG_MT7603E_IGMP_SNOOP_SUPPORT=y \
|
||||
CONFIG_MT7603E_LED_CONTROL_SUPPORT=y \
|
||||
CONFIG_MT7603E_MBSS_SUPPORT=y \
|
||||
CONFIG_MT7603E_APCLI_SUPPORT=y \
|
||||
CONFIG_MT7603E_MULTI_APCLI_SUPPORT=y \
|
||||
CONFIG_MT7603E_MAC_REPEATER_SUPPORT=y \
|
||||
CONFIG_MT7603E_ATE_SUPPORT=y \
|
||||
CONFIG_MT7603E_BAND_STEERING_7603=y \
|
||||
CONFIG_MT7603E_MULTI_INF_SUPPORT=y \
|
||||
CONFIG_MT7603E_WPA3_SUPPORT=y \
|
||||
CONFIG_MT7603E_OWE_SUPPORT=y \
|
||||
CONFIG_MT7603E_SECURITY_IMPROVEMENT_SUPPORT=y \
|
||||
CONFIG_MT7603E_NEW_BW2040_COEXIST_SUPPORT=y \
|
||||
CONFIG_MT7603E_RLT_AP_SUPPORT=m \
|
||||
modules
|
||||
endef
|
||||
|
||||
define KernelPackage/mt7603e/install
|
||||
true
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,mt7603e))
|
||||
@@ -1,317 +0,0 @@
|
||||
config MTK_MT_AP_SUPPORT
|
||||
bool
|
||||
default y
|
||||
depends on MTK_WIFI_MODE_AP
|
||||
|
||||
if MTK_MT_AP_SUPPORT
|
||||
|
||||
config MTK_WDS_SUPPORT
|
||||
bool "WDS"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_MBSS_SUPPORT
|
||||
bool "Multi-BSS (MBSSID)"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_APCLI_SUPPORT
|
||||
bool "AP-Client Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_APCLI_CERT_SUPPORT
|
||||
bool "AP-Client TGn Cert Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MAC_REPEATER_SUPPORT
|
||||
bool "MAC Repeater Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_APCLI_CONNECTION_TRIAL
|
||||
bool "AP-Client Trial Connection"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MWDS
|
||||
bool "Mixed WDS (MWDS)"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
select MTK_APCLI_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MUMIMO_SUPPORT
|
||||
bool "MU-MIMO Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_MU_RA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_MU_RA_SUPPORT
|
||||
bool "MU-RGA Support"
|
||||
depends on MTK_MUMIMO_SUPPORT
|
||||
|
||||
config MTK_DOT11R_FT_SUPPORT
|
||||
bool "IEEE 802.11r Fast BSS Transition"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_DOT11K_RRM_SUPPORT
|
||||
bool "IEEE 802.11k Radio Resource Management"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_IGMP_SNOOP_SUPPORT
|
||||
bool "IGMP snooping (for multicast --> unicast)"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_OFFCHANNEL_SCAN_FEATURE
|
||||
bool "Off-Channel scan support (Channel Quality Monitor)"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_SNIFFER_SUPPORT
|
||||
bool "Sniffer support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_ENTERPRISE_AP_SUPPORT
|
||||
bool "Enterprise AP Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_WIFI_EAP_FEATURE
|
||||
bool "EAP Feature"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_RADIUS_MAC_AUTH_SUPPORT
|
||||
bool "RADIUS MAC Auth Support"
|
||||
depends on MTK_ENTERPRISE_AP_SUPPORT
|
||||
depends on MTK_CFG80211_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_VLAN_SUPPORT
|
||||
bool "VLAN Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_ENTERPRISE_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_DYNAMIC_VLAN_SUPPORT
|
||||
bool "Dynamic VLAN Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_ENTERPRISE_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_CFG80211_SUPPORT
|
||||
bool "Linux CFG80211 support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
#CUSTOMISED HOSTAPD
|
||||
config MTK_CUSTOMISED_HOSTAPD_SUPPORT
|
||||
bool "Customised Hostapd Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_CFG80211_SUPPORT
|
||||
default n
|
||||
|
||||
#APCLI STA
|
||||
config MTK_APCLI_STA_SUPPORT
|
||||
bool "APCLI STA Support"
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
depends on MTK_CFG80211_SUPPORT
|
||||
default n
|
||||
|
||||
#WDS STA
|
||||
config MTK_WDS_STA_SUPPORT
|
||||
bool "WDS STA Support"
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
depends on MTK_CFG80211_SUPPORT
|
||||
default n
|
||||
|
||||
#WDS AP
|
||||
config MTK_MBSS_AS_WDS_AP_SUPPORT
|
||||
bool "MBSS as WDS AP Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_MBSS_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_DSCP_QOS_MAP_SUPPORT
|
||||
bool "Dscp Qos Mapping Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_DSCP_PRI_SUPPORT
|
||||
bool "Dscp Priority Mapping Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MIN_PHY_RATE_SUPPORT
|
||||
bool "Minimum PHY rate support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_FAST_UP_RATE_SUPPORT
|
||||
bool "Fast UP rate support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_CON_WPS_SUPPORT
|
||||
bool "Concurrent WPS Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
depends on MTK_WSC_INCLUDED
|
||||
depends on MTK_WSC_V2_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MCAST_RATE_SPECIFIC
|
||||
bool "User specific tx rate of mcast pkt"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_VOW_SUPPORT
|
||||
bool "MediaAir (VOW) support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_BAND_STEERING
|
||||
bool "Band Steering"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_LED_CONTROL_SUPPORT
|
||||
bool "LED Control Support"
|
||||
default n
|
||||
|
||||
config MTK_WLAN_HOOK
|
||||
bool "WLAN hook Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_RADIUS_ACCOUNTING_SUPPORT
|
||||
bool "Radius Accounting Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_GREENAP_SUPPORT
|
||||
bool "GreenAP Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_TXRX_STAT_SUPPORT
|
||||
bool "Tx/Rx Stats Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_VENDOR_FEATURE11_SUPPORT
|
||||
bool "Enable Vendor-11 Features"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_PCIE_ASPM_DYM_CTRL_SUPPORT
|
||||
bool "Pcie Aspm Dynamic Control Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_COEX_SUPPORT
|
||||
bool "Coex Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_EASY_SETUP_SUPPORT
|
||||
bool "Whole Home Coverage - Easy Setup"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_EVENT_NOTIFIER_SUPPORT
|
||||
bool "Whole Home Coverage - Event Notifier"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_AIR_MONITOR
|
||||
bool "Air Monitor"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_WNM_SUPPORT
|
||||
bool "IEEE 802.11v WNM Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_INTERWORKING
|
||||
bool "IEEE 802.11u Interworking"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_LINUX_NET_TXQ_SUPPORT
|
||||
bool "NET TX Queue Support"
|
||||
default n
|
||||
|
||||
config MTK_WPA3_SUPPORT
|
||||
bool "WPA3 Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_OWE_SUPPORT
|
||||
bool "Enhanced Open Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_SINGLE_SKU
|
||||
bool "Single SKU Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_ICAP_SUPPORT
|
||||
bool "ICAP Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_SPECTRUM_SUPPORT
|
||||
bool "Wifi Spectrum Mgmt Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_FTM_SUPPORT
|
||||
bool "FTM Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_PASSPOINT_R2
|
||||
default n
|
||||
|
||||
config MTK_PASSPOINT_R2
|
||||
bool "Passpoint Release-2 Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_DOT11W_PMF_SUPPORT
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MBO_SUPPORT
|
||||
bool "MBO Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_INTERWORKING
|
||||
select MTK_WNM_SUPPORT
|
||||
select MTK_DOT11K_RRM_SUPPORT
|
||||
select MTK_DOT11R_FT_SUPPORT
|
||||
select MTK_DOT11W_PMF_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MAP_SUPPORT
|
||||
bool "Multi-AP (MAP) Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_INTERWORKING
|
||||
select MTK_WNM_SUPPORT
|
||||
select MTK_DOT11K_RRM_SUPPORT
|
||||
select MTK_DOT11R_FT_SUPPORT
|
||||
select MTK_DOT11W_PMF_SUPPORT
|
||||
default n
|
||||
|
||||
endif #MTK_MT_AP_SUPPORT
|
||||
@@ -1,250 +0,0 @@
|
||||
#mtk wifi common optiions
|
||||
|
||||
menu "Common WiFi options"
|
||||
|
||||
config MTK_WIFI_BASIC_FUNC
|
||||
bool "Linux Wireless Extension support (for iwconfig, iwpriv etc.)"
|
||||
select MTK_WIRELESS_EXT
|
||||
select MTK_WEXT_SPY
|
||||
select MTK_WEXT_PRIV
|
||||
|
||||
config MTK_DOT11_N_SUPPORT
|
||||
bool "IEEE 802.11n support"
|
||||
default y
|
||||
|
||||
config MTK_DOT11_VHT_AC
|
||||
bool "IEEE 802.11ac support"
|
||||
depends on MTK_DOT11_N_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_DOT11_HE_AX
|
||||
bool "IEEE 802.11ax support"
|
||||
depends on MTK_DOT11_VHT_AC
|
||||
depends on MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_CFG_SUPPORT_FALCON_MURU
|
||||
bool "MURU support"
|
||||
depends on MTK_DOT11_VHT_AC
|
||||
depends on MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_CFG_SUPPORT_FALCON_TXCMD_DBG
|
||||
bool "TXCMD DBG support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_DOT11_VHT_AC
|
||||
depends on MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_CFG_SUPPORT_FALCON_SR
|
||||
bool "Spatial Reuse (SR) support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_WIFI_TWT_SUPPORT
|
||||
bool "Target Wake Time (TWT) support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_DOT11_HE_AX
|
||||
depends on MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_G_BAND_256QAM_SUPPORT
|
||||
bool "2.4G 256-QAM support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_DOT11_VHT_AC
|
||||
default y
|
||||
|
||||
config MTK_BRCM_256QAM_SUPPORT
|
||||
bool "BRCM 2.4G 256-QAM support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_G_BAND_256QAM_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_VHT_TXBF_2G_EPIGRAM_IE_SUPPORT
|
||||
bool "BRCM 2.4G VHT Sounding support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_MT_DFS_SUPPORT
|
||||
bool "IEEE 802.11h DFS Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_TPC_SUPPORT
|
||||
bool "IEEE 802.11h TPC Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_BACKGROUND_SCAN_SUPPORT
|
||||
bool "Background Scan Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_SMART_CARRIER_SENSE_SUPPORT
|
||||
bool "Smart Carrier Sense Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_THERMAL_PROTECT_SUPPORT
|
||||
bool "Thermal Protection"
|
||||
depends on MTK_WIFI_DRIVER && MTK_SMART_CARRIER_SENSE_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_SCS_FW_OFFLOAD
|
||||
bool "SCS Fw Offload Support"
|
||||
depends on MTK_WIFI_DRIVER && MTK_SMART_CARRIER_SENSE_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_HDR_TRANS_TX_SUPPORT
|
||||
bool "Tx Header Translation"
|
||||
depends on MTK_CHIP_MT7615E || MTK_CHIP_MT7622 || MTK_CHIP_MT7626 || MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_HDR_TRANS_RX_SUPPORT
|
||||
bool "Rx Header Translation"
|
||||
depends on MTK_CHIP_MT7615E || MTK_CHIP_MT7622 || MTK_CHIP_MT7626 || MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_DBDC_MODE
|
||||
bool "Dual-Band Dual-Concurrent (DBDC) mode support"
|
||||
depends on MTK_CHIP_MT7615E || MTK_CHIP_MT7626 || MTK_CHIP_MT7915
|
||||
select MULTI_PROFILE_SUPPORT
|
||||
select DEFAULT_5G_PROFILE
|
||||
default y
|
||||
|
||||
config MTK_MULTI_PROFILE_SUPPORT
|
||||
bool "Multi Profile Support"
|
||||
depends on MTK_DBDC_MODE
|
||||
default n
|
||||
|
||||
config MTK_DEFAULT_5G_PROFILE
|
||||
bool "5G default profile for DBDC"
|
||||
depends on MTK_DBDC_MODE
|
||||
default y
|
||||
|
||||
config MTK_WSC_INCLUDED
|
||||
bool "WiFi Simple Config (WSC) or WPS"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_WSC_V2_SUPPORT
|
||||
bool "WiFi Simple Config ver.2 (WPS 2.0)"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_DOT11W_PMF_SUPPORT
|
||||
bool "IEEE 802.11w PMF support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_TXBF_SUPPORT
|
||||
bool "Tx Beam Forming Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_FAST_NAT_SUPPORT
|
||||
bool "Fast-NAT support"
|
||||
default n
|
||||
|
||||
config MTK_WHNAT_SUPPORT
|
||||
tristate "Wifi Hardware NAT support"
|
||||
depends on MTK_CHIP_MT7615E || MTK_CHIP_MT7915
|
||||
depends on MTK_WLAN_HOOK
|
||||
depends on MTK_FAST_NAT_SUPPORT
|
||||
depends on PACKAGE_kmod-hw_nat || PACKAGE_kmod-mediatek_hnat
|
||||
default n
|
||||
|
||||
#config CARRIER_DETECTION_SUPPORT
|
||||
# bool "Carrier Detect"
|
||||
# depends on WIFI_DRIVER
|
||||
# default n
|
||||
|
||||
config MTK_MEMORY_SHRINK
|
||||
bool "Memory Shrink"
|
||||
depends on MTK_WIFI_DRIVER && MTK_CHIP_MT7626
|
||||
default n
|
||||
|
||||
config MTK_RPS_EFFICIENCY
|
||||
bool "RPS Efficiency"
|
||||
depends on MTK_WIFI_DRIVER && MTK_CHIP_MT7626
|
||||
default n
|
||||
|
||||
config MTK_RTMP_FLASH_SUPPORT
|
||||
bool "Platform's Flash APIs Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_PRE_CAL_TRX_SET1_SUPPORT
|
||||
bool "Calibration To Flash/BinFile Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_RLM_CAL_CACHE_SUPPORT
|
||||
bool "Rlm Calibration Cache Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_PRE_CAL_TRX_SET2_SUPPORT
|
||||
bool "Pre-calibration to Flash Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_CAL_BIN_FILE_SUPPORT
|
||||
bool "Calibration to BinFile Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_RF_LOCKDOWN_SUPPORT
|
||||
bool "RF Lockdown Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_LINK_TEST_SUPPORT
|
||||
bool "Link Test Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_ATE_SUPPORT
|
||||
bool "ATE/QA Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_WLAN_SERVICE
|
||||
bool "Wlan Service Library Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_UAPSD
|
||||
bool "UAPSD support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_TCP_RACK_SUPPORT
|
||||
bool "TCP Reduced ACK support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_RED_SUPPORT
|
||||
bool "RED (Random Early Drop) support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_FQ_SCH_SUPPORT
|
||||
bool "Fair Queueing support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT && MTK_VOW_SUPPORT
|
||||
depends on MTK_CHIP_MT7622
|
||||
default y
|
||||
|
||||
config MTK_FDB_SUPPORT
|
||||
bool "FW Debug Port"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
endmenu
|
||||
250
mt7603/config.in
250
mt7603/config.in
@@ -1,250 +0,0 @@
|
||||
# Kconfig for mtk wifi
|
||||
|
||||
config MTK_WIFI_DRIVER
|
||||
bool
|
||||
default y
|
||||
depends on PACKAGE_kmod-mt7615 || PACKAGE_kmod-mt7603
|
||||
select MTK_SUPPORT_OPENWRT
|
||||
select MTK_MT_WIFI
|
||||
select MTK_WIFI_BASIC_FUNC
|
||||
|
||||
if MTK_WIFI_DRIVER
|
||||
|
||||
menu "First WiFi card"
|
||||
choice
|
||||
prompt "Choose First WiFi card"
|
||||
default MTK_FIRST_IF_MT7603E
|
||||
|
||||
config MTK_FIRST_IF_NONE
|
||||
bool "None"
|
||||
|
||||
config MTK_FIRST_IF_MT7603E
|
||||
bool "MT7603E"
|
||||
select RALINK_MT7603E
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7603E
|
||||
|
||||
config MTK_FIRST_IF_MT7615E
|
||||
bool "MT7615E"
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7615E
|
||||
|
||||
endchoice
|
||||
|
||||
config MTK_RT_FIRST_CARD
|
||||
int
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default 7603 if MTK_FIRST_IF_MT7603E
|
||||
default 7615 if MTK_FIRST_IF_MT7615E
|
||||
|
||||
config MTK_MT_WIFI_PATH_FIRST_CARD
|
||||
string "WiFi driver build directory name"
|
||||
default "rlt_wifi"
|
||||
|
||||
config MTK_RT_FIRST_IF_RF_OFFSET
|
||||
hex "RF offset of 1st card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default 0x0
|
||||
|
||||
#prompt "WiFi detailed options for 1st card"
|
||||
|
||||
choice
|
||||
prompt "EEPROM Type of 1st Card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default MTK_FIRST_IF_EEPROM_EFUSE
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_FLASH
|
||||
bool "FLASH"
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_PROM
|
||||
bool "EEPROM"
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_EFUSE
|
||||
bool "EFUSE"
|
||||
|
||||
endchoice
|
||||
|
||||
config MTK_RT_FIRST_CARD_EEPROM
|
||||
string
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default "prom" if MTK_FIRST_IF_EEPROM_PROM
|
||||
default "efuse" if MTK_FIRST_IF_EEPROM_EFUSE
|
||||
default "flash" if MTK_FIRST_IF_EEPROM_FLASH
|
||||
|
||||
choice
|
||||
prompt "PA/LNA Type of 1st Card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default MTK_FIRST_IF_IPAILNA
|
||||
|
||||
config MTK_FIRST_IF_EPAELNA
|
||||
bool "ePAeLNA"
|
||||
config MTK_FIRST_IF_IPAILNA
|
||||
bool "iPAiLNA"
|
||||
config MTK_FIRST_IF_IPAELNA
|
||||
bool "iPAeLNA"
|
||||
endchoice
|
||||
|
||||
menu "Operation Modes for 1st card"
|
||||
choice
|
||||
prompt "Operating mode"
|
||||
default MTK_WIFI_MODE_AP
|
||||
|
||||
config MTK_WIFI_MODE_AP
|
||||
bool "AP"
|
||||
|
||||
config MTK_WIFI_MODE_STA
|
||||
bool "STA"
|
||||
|
||||
config MTK_WIFI_MODE_BOTH
|
||||
bool "AP+STA"
|
||||
#select MTK_MT_STA_SUPPORT
|
||||
endchoice
|
||||
|
||||
source "ap.config.in"
|
||||
|
||||
endmenu
|
||||
endmenu
|
||||
### endmenu for 1st wifi card #######
|
||||
|
||||
#### menu starts for 2nd wifi card ###
|
||||
menu "Second WiFi card"
|
||||
|
||||
choice
|
||||
prompt "Choose Second WiFi card"
|
||||
default MTK_SECOND_IF_MT7615E
|
||||
|
||||
config MTK_SECOND_IF_NONE
|
||||
bool "None"
|
||||
|
||||
config MTK_SECOND_IF_MT7603E
|
||||
bool "MT7603E"
|
||||
select RALINK_MT7603E
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7603E
|
||||
|
||||
config MTK_SECOND_IF_MT7615E
|
||||
bool "MT7615E"
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7615E
|
||||
endchoice
|
||||
|
||||
config MTK_RT_SECOND_CARD
|
||||
int
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default 7603 if MTK_SECOND_IF_MT7603E
|
||||
default 7615 if MTK_SECOND_IF_MT7615E
|
||||
|
||||
config MTK_MT_WIFI_PATH_SECOND_CARD
|
||||
string "WiFi driver build directory name"
|
||||
default "mt_wifi"
|
||||
|
||||
config MTK_RT_SECOND_IF_RF_OFFSET
|
||||
hex "RF offset of 2nd card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default 0x8000
|
||||
|
||||
#prompt "WiFi detailed options for 2nd card"
|
||||
|
||||
choice
|
||||
prompt "EEPROM Type of 2nd Card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default MTK_SECOND_IF_EEPROM_EFUSE
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_FLASH
|
||||
bool "FLASH"
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_PROM
|
||||
bool "EEPROM"
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_EFUSE
|
||||
bool "EFUSE"
|
||||
endchoice
|
||||
|
||||
config MTK_RT_SECOND_CARD_EEPROM
|
||||
string
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default "prom" if MTK_SECOND_IF_EEPROM_PROM
|
||||
default "efuse" if MTK_SECOND_IF_EEPROM_EFUSE
|
||||
default "flash" if MTK_SECOND_IF_EEPROM_FLASH
|
||||
|
||||
|
||||
choice
|
||||
prompt "PA/LNA Type of 2nd Card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default MTK_SECOND_IF_IPAILNA
|
||||
|
||||
config MTK_SECOND_IF_EPAELNA
|
||||
bool "ePAeLNA"
|
||||
config MTK_SECOND_IF_IPAILNA
|
||||
bool "iPAiLNA"
|
||||
config MTK_SECOND_IF_IPAELNA
|
||||
bool "iPAeLNA"
|
||||
endchoice
|
||||
|
||||
|
||||
menu "Operation Modes for 2nd card"
|
||||
choice
|
||||
prompt "Operating mode"
|
||||
default MTK_WIFI_MODE_AP
|
||||
|
||||
config MTK_WIFI_MODE_AP
|
||||
bool "AP"
|
||||
|
||||
config MTK_WIFI_MODE_STA
|
||||
bool "STA"
|
||||
|
||||
config MTK_WIFI_MODE_BOTH
|
||||
bool "AP+STA"
|
||||
endchoice
|
||||
|
||||
source "ap.config.in"
|
||||
|
||||
endmenu
|
||||
|
||||
endmenu
|
||||
### endmenu for 2nd wifi card #######
|
||||
|
||||
|
||||
#### placeholder for 3rd wifi card ###
|
||||
config MTK_THIRD_IF_NONE
|
||||
bool
|
||||
default y
|
||||
|
||||
config MTK_RT_THIRD_CARD
|
||||
int
|
||||
default 0
|
||||
|
||||
config MTK_RT_THIRD_IF_RF_OFFSET
|
||||
hex
|
||||
default 0x4000
|
||||
|
||||
config MTK_RT_THIRD_CARD_EEPROM
|
||||
string
|
||||
default "efuse"
|
||||
### placehlder for 3rd wifi card #######
|
||||
|
||||
|
||||
config MTK_MULTI_INF_SUPPORT
|
||||
bool
|
||||
default y if !MTK_FIRST_IF_NONE && !MTK_SECOND_IF_NONE
|
||||
|
||||
|
||||
source "common.config.in"
|
||||
|
||||
#if MTK_CHIP_MT7615E || MTK_CHIP_MT7622 || MTK_CHIP_MT7626 || MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
# config MTK_MT_MAC
|
||||
# bool
|
||||
# default y
|
||||
# select MTK_RATE_ADAPTION
|
||||
# select MTK_RATE_ADAPT_AGBS_SUPPORT
|
||||
# select MTK_DOT11_N_SUPPORT
|
||||
# select MTK_DOT11_VHT_AC
|
||||
# select MTK_HDR_TRANS_TX_SUPPORT
|
||||
# select MTK_HDR_TRANS_RX_SUPPORT
|
||||
#endif
|
||||
|
||||
endif #MTK_WIFI_DRIVER#
|
||||
@@ -1,250 +0,0 @@
|
||||
# Kconfig for mtk wifi
|
||||
|
||||
config MTK_WIFI_DRIVER
|
||||
bool
|
||||
default y
|
||||
depends on (PACKAGE_kmod-mt7615e || PACKAGE_kmod-mt7603e)
|
||||
select MTK_SUPPORT_OPENWRT
|
||||
select MTK_MT_WIFI
|
||||
select MTK_WIFI_BASIC_FUNC
|
||||
|
||||
if MTK_WIFI_DRIVER
|
||||
|
||||
menu "First WiFi card"
|
||||
choice
|
||||
prompt "Choose First WiFi card"
|
||||
default MTK_FIRST_IF_MT7603E
|
||||
|
||||
config MTK_FIRST_IF_NONE
|
||||
bool "None"
|
||||
|
||||
config MTK_FIRST_IF_MT7603E
|
||||
bool "MT7603E"
|
||||
select RALINK_MT7603E
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7603E
|
||||
|
||||
config MTK_FIRST_IF_MT7615E
|
||||
bool "MT7615E"
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7615E
|
||||
|
||||
endchoice
|
||||
|
||||
config MTK_RT_FIRST_CARD
|
||||
int
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default 7603 if MTK_FIRST_IF_MT7603E
|
||||
default 7615 if MTK_FIRST_IF_MT7615E
|
||||
|
||||
config MTK_MT_WIFI_PATH_FIRST_CARD
|
||||
string "WiFi driver build directory name"
|
||||
default "rlt_wifi"
|
||||
|
||||
config MTK_RT_FIRST_IF_RF_OFFSET
|
||||
hex "RF offset of 1st card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default 0x0
|
||||
|
||||
#prompt "WiFi detailed options for 1st card"
|
||||
|
||||
choice
|
||||
prompt "EEPROM Type of 1st Card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default MTK_FIRST_IF_EEPROM_EFUSE
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_FLASH
|
||||
bool "FLASH"
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_PROM
|
||||
bool "EEPROM"
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_EFUSE
|
||||
bool "EFUSE"
|
||||
|
||||
endchoice
|
||||
|
||||
config MTK_RT_FIRST_CARD_EEPROM
|
||||
string
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default "prom" if MTK_FIRST_IF_EEPROM_PROM
|
||||
default "efuse" if MTK_FIRST_IF_EEPROM_EFUSE
|
||||
default "flash" if MTK_FIRST_IF_EEPROM_FLASH
|
||||
|
||||
choice
|
||||
prompt "PA/LNA Type of 1st Card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default MTK_FIRST_IF_IPAILNA
|
||||
|
||||
config MTK_FIRST_IF_EPAELNA
|
||||
bool "ePAeLNA"
|
||||
config MTK_FIRST_IF_IPAILNA
|
||||
bool "iPAiLNA"
|
||||
config MTK_FIRST_IF_IPAELNA
|
||||
bool "iPAeLNA"
|
||||
endchoice
|
||||
|
||||
menu "Operation Modes for 1st card"
|
||||
choice
|
||||
prompt "Operating mode"
|
||||
default MTK_WIFI_MODE_AP
|
||||
|
||||
config MTK_WIFI_MODE_AP
|
||||
bool "AP"
|
||||
|
||||
config MTK_WIFI_MODE_STA
|
||||
bool "STA"
|
||||
|
||||
config MTK_WIFI_MODE_BOTH
|
||||
bool "AP+STA"
|
||||
#select MTK_MT_STA_SUPPORT
|
||||
endchoice
|
||||
|
||||
source "ap.config.in"
|
||||
|
||||
endmenu
|
||||
endmenu
|
||||
### endmenu for 1st wifi card #######
|
||||
|
||||
#### menu starts for 2nd wifi card ###
|
||||
menu "Second WiFi card"
|
||||
|
||||
choice
|
||||
prompt "Choose Second WiFi card"
|
||||
default MTK_SECOND_IF_MT7615E
|
||||
|
||||
config MTK_SECOND_IF_NONE
|
||||
bool "None"
|
||||
|
||||
config MTK_SECOND_IF_MT7603E
|
||||
bool "MT7603E"
|
||||
select RALINK_MT7603E
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7603E
|
||||
|
||||
config MTK_SECOND_IF_MT7615E
|
||||
bool "MT7615E"
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7615E
|
||||
endchoice
|
||||
|
||||
config MTK_RT_SECOND_CARD
|
||||
int
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default 7603 if MTK_SECOND_IF_MT7603E
|
||||
default 7615 if MTK_SECOND_IF_MT7615E
|
||||
|
||||
config MTK_MT_WIFI_PATH_SECOND_CARD
|
||||
string "WiFi driver build directory name"
|
||||
default "mt_wifi"
|
||||
|
||||
config MTK_RT_SECOND_IF_RF_OFFSET
|
||||
hex "RF offset of 2nd card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default 0x8000
|
||||
|
||||
#prompt "WiFi detailed options for 2nd card"
|
||||
|
||||
choice
|
||||
prompt "EEPROM Type of 2nd Card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default MTK_SECOND_IF_EEPROM_EFUSE
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_FLASH
|
||||
bool "FLASH"
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_PROM
|
||||
bool "EEPROM"
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_EFUSE
|
||||
bool "EFUSE"
|
||||
endchoice
|
||||
|
||||
config MTK_RT_SECOND_CARD_EEPROM
|
||||
string
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default "prom" if MTK_SECOND_IF_EEPROM_PROM
|
||||
default "efuse" if MTK_SECOND_IF_EEPROM_EFUSE
|
||||
default "flash" if MTK_SECOND_IF_EEPROM_FLASH
|
||||
|
||||
|
||||
choice
|
||||
prompt "PA/LNA Type of 2nd Card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default MTK_SECOND_IF_IPAILNA
|
||||
|
||||
config MTK_SECOND_IF_EPAELNA
|
||||
bool "ePAeLNA"
|
||||
config MTK_SECOND_IF_IPAILNA
|
||||
bool "iPAiLNA"
|
||||
config MTK_SECOND_IF_IPAELNA
|
||||
bool "iPAeLNA"
|
||||
endchoice
|
||||
|
||||
|
||||
menu "Operation Modes for 2nd card"
|
||||
choice
|
||||
prompt "Operating mode"
|
||||
default MTK_WIFI_MODE_AP
|
||||
|
||||
config MTK_WIFI_MODE_AP
|
||||
bool "AP"
|
||||
|
||||
config MTK_WIFI_MODE_STA
|
||||
bool "STA"
|
||||
|
||||
config MTK_WIFI_MODE_BOTH
|
||||
bool "AP+STA"
|
||||
endchoice
|
||||
|
||||
source "ap.config.in"
|
||||
|
||||
endmenu
|
||||
|
||||
endmenu
|
||||
### endmenu for 2nd wifi card #######
|
||||
|
||||
|
||||
#### placeholder for 3rd wifi card ###
|
||||
config MTK_THIRD_IF_NONE
|
||||
bool
|
||||
default y
|
||||
|
||||
config MTK_RT_THIRD_CARD
|
||||
int
|
||||
default 0
|
||||
|
||||
config MTK_RT_THIRD_IF_RF_OFFSET
|
||||
hex
|
||||
default 0x4000
|
||||
|
||||
config MTK_RT_THIRD_CARD_EEPROM
|
||||
string
|
||||
default "efuse"
|
||||
### placehlder for 3rd wifi card #######
|
||||
|
||||
|
||||
config MTK_MULTI_INF_SUPPORT
|
||||
bool
|
||||
default y if !MTK_FIRST_IF_NONE && !MTK_SECOND_IF_NONE
|
||||
|
||||
|
||||
source "common.config.in"
|
||||
|
||||
#if MTK_CHIP_MT7615E || MTK_CHIP_MT7622 || MTK_CHIP_MT7626 || MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
# config MTK_MT_MAC
|
||||
# bool
|
||||
# default y
|
||||
# select MTK_RATE_ADAPTION
|
||||
# select MTK_RATE_ADAPT_AGBS_SUPPORT
|
||||
# select MTK_DOT11_N_SUPPORT
|
||||
# select MTK_DOT11_VHT_AC
|
||||
# select MTK_HDR_TRANS_TX_SUPPORT
|
||||
# select MTK_HDR_TRANS_RX_SUPPORT
|
||||
#endif
|
||||
|
||||
endif #MTK_WIFI_DRIVER#
|
||||
@@ -1,191 +0,0 @@
|
||||
diff -uprN a/mt7603_wifi/common/cmm_info.c b/mt7603_wifi/common/cmm_info.c
|
||||
--- a/mt7603_wifi/common/cmm_info.c 2019-02-22 10:01:55.000000000 +0100
|
||||
+++ b/mt7603_wifi/common/cmm_info.c 2019-12-08 21:47:48.553113878 +0100
|
||||
@@ -132,7 +132,7 @@ INT Set_DriverVersion_Proc(RTMP_ADAPTER
|
||||
{
|
||||
#ifdef CONFIG_AP_SUPPORT
|
||||
IF_DEV_CONFIG_OPMODE_ON_AP(pAd)
|
||||
- DBGPRINT(RT_DEBUG_OFF, ("Driver version-%s %s %s\n", AP_DRIVER_VERSION, __DATE__, __TIME__));
|
||||
+ DBGPRINT(RT_DEBUG_OFF, ("Driver version-%s\n", AP_DRIVER_VERSION));
|
||||
DBGPRINT(RT_DEBUG_OFF, ("Driver Patch\n"));
|
||||
DBGPRINT(RT_DEBUG_OFF, ("001 : 4AC + MGMT PSE queue pkt stuck detect & AP tr_entry is memory currupted\n"));
|
||||
DBGPRINT(RT_DEBUG_OFF, ("002 : wifi_forward support\n"));
|
||||
diff -uprN a/mt7603_wifi/os/linux/rt_linux.c b/mt7603_wifi/os/linux/rt_linux.c
|
||||
--- a/mt7603_wifi/os/linux/rt_linux.c 2019-02-22 10:01:39.000000000 +0100
|
||||
+++ b/mt7603_wifi/os/linux/rt_linux.c 2019-12-08 22:16:27.246150818 +0100
|
||||
@@ -47,8 +47,8 @@
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_RA_HW_NAT) || defined(CONFIG_RA_HW_NAT_MODULE)
|
||||
-#include "../../../../../../../../net/nat/hw_nat/ra_nat.h"
|
||||
-#include "../../../../../../../../net/nat/hw_nat/frame_engine.h"
|
||||
+#include <../net/nat/hw_nat/ra_nat.h>
|
||||
+#include <../net/nat/hw_nat/frame_engine.h>
|
||||
#endif
|
||||
|
||||
/* TODO */
|
||||
@@ -855,18 +855,27 @@ void RtmpOSFileSeek(RTMP_OS_FD osfd, int
|
||||
int RtmpOSFileRead(RTMP_OS_FD osfd, char *pDataPtr, int readLen)
|
||||
{
|
||||
/* The object must have a read method */
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)
|
||||
if (osfd->f_op && osfd->f_op->read) {
|
||||
return osfd->f_op->read(osfd, pDataPtr, readLen, &osfd->f_pos);
|
||||
- } else {
|
||||
- DBGPRINT(RT_DEBUG_ERROR, ("no file read method\n"));
|
||||
- return -1;
|
||||
+#else
|
||||
+ if (osfd->f_mode & FMODE_CAN_READ) {
|
||||
+ return __vfs_read(osfd, pDataPtr, readLen,&osfd->f_pos);
|
||||
+#endif
|
||||
+ } else {
|
||||
+ DBGPRINT(RT_DEBUG_ERROR, ("no file read method\n"));
|
||||
+ return -1;
|
||||
+ }
|
||||
}
|
||||
-}
|
||||
|
||||
|
||||
int RtmpOSFileWrite(RTMP_OS_FD osfd, char *pDataPtr, int writeLen)
|
||||
{
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
|
||||
return osfd->f_op->write(osfd, pDataPtr, (size_t) writeLen, &osfd->f_pos);
|
||||
+#else
|
||||
+ return __vfs_write(osfd, pDataPtr, (size_t) writeLen, &osfd->f_pos);
|
||||
+#endif
|
||||
}
|
||||
|
||||
|
||||
diff -uprN a/mt7603_wifi/os/linux/rt_proc.c b/mt7603_wifi/os/linux/rt_proc.c
|
||||
--- a/mt7603_wifi/os/linux/rt_proc.c 2019-02-22 10:01:39.000000000 +0100
|
||||
+++ b/mt7603_wifi/os/linux/rt_proc.c 2019-12-08 21:47:48.553113878 +0100
|
||||
@@ -61,7 +61,7 @@ int wl_proc_exit(void);
|
||||
#endif /* PROCREG_DIR */
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
-extern struct proc_dir_entry *procRegDir;
|
||||
+struct proc_dir_entry *procRegDir;
|
||||
|
||||
#ifdef VIDEO_TURBINE_SUPPORT
|
||||
extern BOOLEAN UpdateFromGlobal;
|
||||
diff -uprN a/mt7603_wifi/os/linux/rt_profile.c b/mt7603_wifi/os/linux/rt_profile.c
|
||||
--- a/mt7603_wifi/os/linux/rt_profile.c 2019-02-22 10:01:39.000000000 +0100
|
||||
+++ b/mt7603_wifi/os/linux/rt_profile.c 2019-12-09 10:27:49.609507632 +0100
|
||||
@@ -30,8 +30,8 @@
|
||||
#endif
|
||||
|
||||
#if defined (CONFIG_RA_HW_NAT) || defined (CONFIG_RA_HW_NAT_MODULE)
|
||||
-#include "../../../../../../../../net/nat/hw_nat/ra_nat.h"
|
||||
-#include "../../../../../../../../net/nat/hw_nat/frame_engine.h"
|
||||
+#include <../net/nat/hw_nat/ra_nat.h>
|
||||
+#include <../net/nat/hw_nat/frame_engine.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -689,7 +689,11 @@ NDIS_STATUS RTMPReadParametersHook(RTMP_
|
||||
{
|
||||
#ifndef OS_ABL_SUPPORT
|
||||
// TODO: need to roll back when convert into OSABL code
|
||||
- fsize = (ULONG)srcf->f_dentry->d_inode->i_size;
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)
|
||||
+ fsize = (ULONG)srcf->f_dentry->d_inode->i_size;
|
||||
+#else
|
||||
+ fsize = (ULONG)srcf->f_path.dentry->d_inode->i_size;
|
||||
+#endif
|
||||
if (buf_size < (fsize + 1))
|
||||
buf_size = fsize + 1;
|
||||
#endif /* OS_ABL_SUPPORT */
|
||||
diff -uprN a/mt7603_wifi_ap/Makefile b/mt7603_wifi_ap/Makefile
|
||||
--- a/mt7603_wifi_ap/Makefile 2019-02-22 10:01:27.000000000 +0100
|
||||
+++ b/mt7603_wifi_ap/Makefile 2019-12-08 21:52:10.253012796 +0100
|
||||
@@ -16,6 +16,90 @@ DRV_NAME = mt7603_wifi
|
||||
RT_WIFI_DIR = ../mt7603_wifi
|
||||
endif
|
||||
|
||||
+ifeq ($(CONFIG_SUPPORT_OPENWRT),y)
|
||||
+###EXTRA_CFLAGS += -DCONFIG_SUPPORT_OPENWRT
|
||||
+ifneq ($(CONFIG_RT_FIRST_CARD),)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_FIRST_CARD=$(CONFIG_RT_FIRST_CARD)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_FIRST_IF_RF_OFFSET=$(CONFIG_RT_FIRST_IF_RF_OFFSET)
|
||||
+endif
|
||||
+ifneq ($(CONFIG_RT_SECOND_CARD),)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_SECOND_CARD=$(CONFIG_RT_SECOND_CARD)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_SECOND_IF_RF_OFFSET=$(CONFIG_RT_SECOND_IF_RF_OFFSET)
|
||||
+endif
|
||||
+ifneq ($(CONFIG_RT_THIRD_CARD),)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_THIRD_CARD=$(CONFIG_RT_THIRD_CARD)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_THIRD_IF_RF_OFFSET=$(CONFIG_RT_THIRD_IF_RF_OFFSET)
|
||||
+endif
|
||||
+ifeq ($(CONFIG_FIRST_IF_EEPROM_PROM),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_FIRST_CARD_EEPROM="\"prom\""
|
||||
+else
|
||||
+ifeq ($(CONFIG_FIRST_IF_EEPROM_EFUSE),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_FIRST_CARD_EEPROM="\"efuse\""
|
||||
+else
|
||||
+ifeq ($(CONFIG_FIRST_IF_EEPROM_FLASH),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_FIRST_CARD_EEPROM="\"flash\""
|
||||
+endif
|
||||
+endif
|
||||
+endif
|
||||
+ifeq ($(CONFIG_SECOND_IF_EEPROM_PROM),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_SECOND_CARD_EEPROM="\"prom\""
|
||||
+else
|
||||
+ifeq ($(CONFIG_SECOND_IF_EEPROM_EFUSE),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_SECOND_CARD_EEPROM="\"efuse\""
|
||||
+else
|
||||
+ifeq ($(CONFIG_SECOND_IF_EEPROM_FLASH),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_SECOND_CARD_EEPROM="\"flash\""
|
||||
+endif
|
||||
+endif
|
||||
+endif
|
||||
+ifeq ($(CONFIG_THIRD_IF_EEPROM_PROM),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_THIRD_CARD_EEPROM="\"prom\""
|
||||
+else
|
||||
+ifeq ($(CONFIG_THIRD_IF_EEPROM_EFUSE),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_THIRD_CARD_EEPROM="\"efuse\""
|
||||
+else
|
||||
+ifeq ($(CONFIG_THIRD_IF_EEPROM_FLASH),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_RT_THIRD_CARD_EEPROM="\"flash\""
|
||||
+endif
|
||||
+endif
|
||||
+endif
|
||||
+endif
|
||||
+
|
||||
+ifeq ($(CONFIG_FIRST_IF_EPAELNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_FIRST_IF_EPAELNA
|
||||
+else
|
||||
+ifeq ($(CONFIG_FIRST_IF_IPAILNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_FIRST_IF_IPAILNA
|
||||
+else
|
||||
+ifeq ($(CONFIG_FIRST_IF_IPAELNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_FIRST_IF_IPAELNA
|
||||
+endif
|
||||
+endif
|
||||
+endif
|
||||
+ifeq ($(CONFIG_SECOND_IF_EPAELNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_SECOND_IF_EPAELNA
|
||||
+else
|
||||
+ifeq ($(CONFIG_SECOND_IF_IPAILNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_SECOND_IF_IPAILNA
|
||||
+else
|
||||
+ifeq ($(CONFIG_SECOND_IF_IPAELNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_SECOND_IF_IPAELNA
|
||||
+endif
|
||||
+endif
|
||||
+endif
|
||||
+ifeq ($(CONFIG_THIRD_IF_EPAELNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_THIRD_IF_EPAELNA
|
||||
+else
|
||||
+ifeq ($(CONFIG_THIRD_IF_IPAILNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_THIRD_IF_IPAILNA
|
||||
+else
|
||||
+ifeq ($(CONFIG_THIRD_IF_IPAELNA),y)
|
||||
+EXTRA_CFLAGS += -DCONFIG_THIRD_IF_IPAELNA
|
||||
+endif
|
||||
+endif
|
||||
+endif
|
||||
+
|
||||
+
|
||||
########################################################
|
||||
# Common files
|
||||
########################################################
|
||||
256
mt7615/Makefile
256
mt7615/Makefile
@@ -1,256 +0,0 @@
|
||||
# All rights reserved.
|
||||
# See LICENSE for more information.
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=mt7615e
|
||||
PKG_VERSION:=5.0.4.0_20190503
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=git@dev.iopsys.eu:mediatek/mt7615.git
|
||||
PKG_SOURCE_VERSION:=12c69fe1912113d16d17292bcee6415a8c9ab131
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
|
||||
|
||||
PKG_KCONFIG:= \
|
||||
AP_SUPPORT \
|
||||
RT_FIRST_CARD \
|
||||
RT_SECOND_CARD \
|
||||
RT_FIRST_IF_RF_OFFSET \
|
||||
RT_SECOND_IF_RF_OFFSET \
|
||||
MT_WIFI \
|
||||
WIFI_BASIC_FUNC \
|
||||
MT_WIFI_PATH \
|
||||
FIRST_IF_NONE \
|
||||
FIRST_IF_EEPROM_FLASH \
|
||||
FIRST_IF_EEPROM_EFUSE \
|
||||
RT_FIRST_CARD_EEPROM \
|
||||
SECOND_IF_NONE \
|
||||
SECOND_IF_EEPROM_FLASH \
|
||||
SECOND_IF_EEPROM_PROM \
|
||||
SECOND_IF_EEPROM_EFUSE \
|
||||
RT_SECOND_CARD_EEPROM \
|
||||
MULTI_INF_SUPPORT \
|
||||
WIFI_BASIC_FUNC \
|
||||
WIRELESS_EXT \
|
||||
WEXT_SPY \
|
||||
WEXT_PRIV \
|
||||
DOT11_N_SUPPORT \
|
||||
DOT11_VHT_AC \
|
||||
DOT11_HE_AX \
|
||||
CFG_SUPPORT_FALCON_MURU \
|
||||
CFG_SUPPORT_FALCON_TXCMD_DBG \
|
||||
CFG_SUPPORT_FALCON_SR \
|
||||
WIFI_DRIVER \
|
||||
G_BAND_256QAM_SUPPORT \
|
||||
BRCM_256QAM_SUPPORT \
|
||||
ICAP_SUPPORT \
|
||||
MT_AP_SUPPORT \
|
||||
BACKGROUND_SCAN_SUPPORT \
|
||||
SMART_CARRIER_SENSE_SUPPORT \
|
||||
SCS_FW_OFFLOAD \
|
||||
THERMAL_PROTECT_SUPPORT \
|
||||
MT_DFS_SUPPORT \
|
||||
HDR_TRANS_TX_SUPPORT \
|
||||
CHIP_MT7615E \
|
||||
HDR_TRANS_RX_SUPPORT \
|
||||
SUPPORT_DYNAMIC_TXOP \
|
||||
WSC_INCLUDED \
|
||||
MT_STA_SUPPORT \
|
||||
WSC_V2_SUPPORT \
|
||||
DOT11W_PMF_SUPPORT \
|
||||
PASSPOINT_R2 \
|
||||
TXBF_SUPPORT \
|
||||
IGMP_SNOOP_SUPPORT \
|
||||
RATE_ADAPTION \
|
||||
RATE_ADAPT_AGBS_SUPPORT \
|
||||
RTMP_FLASH_SUPPORT \
|
||||
ATE_SUPPORT \
|
||||
WLAN_SERVICE \
|
||||
UAPSD \
|
||||
RLT_MAC \
|
||||
RLT_BBP \
|
||||
RLT_RF \
|
||||
RTMP_MAC \
|
||||
RTMP_BBP \
|
||||
RTMP_RF \
|
||||
RTMP_PCI_SUPPORT \
|
||||
RTMP_USB_SUPPORT \
|
||||
RTMP_RBUS_SUPPORT \
|
||||
WIFI_MODE_AP \
|
||||
WIFI_MODE_STA \
|
||||
WIRELESS_EXT \
|
||||
WEXT_SPY \
|
||||
WEXT_PRIV \
|
||||
WDS_SUPPORT \
|
||||
MBSS_SUPPORT \
|
||||
APCLI_SUPPORT \
|
||||
APCLI_CERT_SUPPORT \
|
||||
APCLI_CONNECTION_TRIAL \
|
||||
MAC_REPEATER_SUPPORT \
|
||||
RALINK_RT6352 \
|
||||
RALINK_MT7620 \
|
||||
RALINK_MT7603E \
|
||||
CON_WPS_SUPPORT \
|
||||
VOW_SUPPORT \
|
||||
BAND_STEERING \
|
||||
TXOP_ARBITER \
|
||||
CFG_SUPPORT_DYNAMIC_TXOP \
|
||||
WIFI_MODE_BOTH \
|
||||
WIFI_RLT_MAC \
|
||||
RLT_MAC \
|
||||
WIFI_RTMP_MAC \
|
||||
RTMP_MAC \
|
||||
WIFI_MT_MAC \
|
||||
CHIP_MT7603E \
|
||||
CHIP_MT7615E \
|
||||
MT_MAC \
|
||||
RATE_ADAPTION \
|
||||
SUPPORT_OPENWRT \
|
||||
SDK_USER_LIGHTY \
|
||||
MUMIMO_SUPPORT \
|
||||
MU_RA_SUPPORT \
|
||||
LED_CONTROL_SUPPORT \
|
||||
RA_HW_NAT \
|
||||
RA_HW_NAT_WIFI_NEW_ARCH \
|
||||
CFG80211_SUPPORT \
|
||||
SER_SUPPORT \
|
||||
GREENAP_SUPPORT \
|
||||
RADIUS_ACCOUNTING_SUPPORT \
|
||||
TPC_SUPPORT \
|
||||
RLM_CAL_CACHE_SUPPORT \
|
||||
CAL_BIN_FILE_SUPPORT \
|
||||
RF_LOCKDOWN_SUPPORT \
|
||||
PASSPOINT_R2 \
|
||||
RED_SUPPORT \
|
||||
FIRST_IF_EPAELNA \
|
||||
FIRST_IF_IPAILNA \
|
||||
FIRST_IF_IPAELNA \
|
||||
FIRST_IF_EPAILNA \
|
||||
SECOND_IF_EPAELNA \
|
||||
SECOND_IF_IPAILNA \
|
||||
SECOND_IF_IPAELNA \
|
||||
SECOND_IF_EPAILNA \
|
||||
THIRD_IF_EPAELNA \
|
||||
THIRD_IF_IPAILNA \
|
||||
THIRD_IF_IPAELNA \
|
||||
THIRD_IF_EPAILNA \
|
||||
WIFI_PKT_FWD \
|
||||
DOT11K_RRM_SUPPORT \
|
||||
DOT11R_FT_SUPPORT \
|
||||
ENTERPRISE_AP_SUPPORT \
|
||||
WIFI_EAP_FEATURE \
|
||||
RADIUS_MAC_AUTH_SUPPORT \
|
||||
VLAN_SUPPORT \
|
||||
DYNAMIC_VLAN_SUPPORT \
|
||||
CUSTOMISED_HOSTAPD_SUPPORT \
|
||||
APCLI_STA_SUPPORT \
|
||||
WDS_STA_SUPPORT \
|
||||
MBSS_AS_WDS_AP_SUPPORT \
|
||||
MBO_SUPPORT \
|
||||
MAP_SUPPORT \
|
||||
WPA3_SUPPORT \
|
||||
OWE_SUPPORT \
|
||||
WIFI_PKT_FWD_V1 \
|
||||
FIRST_IF_MT7615E \
|
||||
FIRST_IF_MT7622 \
|
||||
FIRST_IF_MT7626 \
|
||||
FIRST_IF_AXE \
|
||||
FIRST_IF_MT7915 \
|
||||
SECOND_IF_MT7615E \
|
||||
SECOND_IF_AXE \
|
||||
THIRD_IF_NONE \
|
||||
THIRD_IF_MT7615E \
|
||||
CHIP_AXE \
|
||||
CHIP_MT7915 \
|
||||
RT_THIRD_CARD \
|
||||
RT_THIRD_IF_RF_OFFSET \
|
||||
THIRD_IF_EEPROM_FLASH \
|
||||
THIRD_IF_EEPROM_PROM \
|
||||
THIRD_IF_EEPROM_EFUSE \
|
||||
RT_THIRD_CARD_EEPROM \
|
||||
SPECTRUM_SUPPORT \
|
||||
PRE_CAL_TRX_SET1_SUPPORT \
|
||||
MWDS \
|
||||
MCAST_RATE_SPECIFIC \
|
||||
WLAN_HOOK \
|
||||
COEX_SUPPORT \
|
||||
EASY_SETUP_SUPPORT \
|
||||
EVENT_NOTIFIER_SUPPORT \
|
||||
AIR_MONITOR \
|
||||
OFFCHANNEL_SCAN_FEATURE \
|
||||
WNM_SUPPORT \
|
||||
INTERWORKING \
|
||||
LINUX_NET_TXQ_SUPPORT \
|
||||
CHIP_MT7622 \
|
||||
CHIP_MT7626 \
|
||||
MEMORY_SHRINK \
|
||||
RPS_EFFICIENCY \
|
||||
WHNAT_SUPPORT \
|
||||
FAST_NAT_SUPPORT \
|
||||
PRE_CAL_TRX_SET2_SUPPORT \
|
||||
LINK_TEST_SUPPORT \
|
||||
TCP_RACK_SUPPORT \
|
||||
FQ_SCH_SUPPORT \
|
||||
BRCM_256QAM_SUPPORT \
|
||||
VHT_TXBF_2G_EPIGRAM_IE_SUPPORT \
|
||||
DSCP_QOS_MAP_SUPPORT \
|
||||
DSCP_PRI_SUPPORT \
|
||||
PCIE_ASPM_DYM_CTRL_SUPPORT \
|
||||
MIN_PHY_RATE_SUPPORT \
|
||||
FAST_UP_RATE_SUPPORT \
|
||||
TXRX_STAT_SUPPORT \
|
||||
VENDOR_FEATURE11_SUPPORT \
|
||||
WIFI_TWT_SUPPORT \
|
||||
SINGLE_SKU \
|
||||
SNIFFER_SUPPORT \
|
||||
|
||||
PKG_CONFIG_DEPENDS:=$(foreach c, $(PKG_KCONFIG),$(if $(CONFIG_MTK_$c),CONFIG_$(c)))
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
#TAR_CMD=$(HOST_TAR) -C $(1)/ $(TAR_OPTIONS)
|
||||
|
||||
define KernelPackage/mt7615e
|
||||
CATEGORY:=Mediatek drivers
|
||||
TITLE:=WiFi drivers
|
||||
DEPENDS:= +wifi-profile
|
||||
ifneq ($(CONFIG_MTK_FAST_NAT_SUPPORT), )
|
||||
ifneq ($(CONFIG_NET_MEDIATEK_HNAT), )
|
||||
DEPENDS+=+kmod-mediatek_hnat
|
||||
endif
|
||||
endif
|
||||
ifneq ($(CONFIG_MTK_WHNAT_SUPPORT), )
|
||||
FILES:=$(PKG_BUILD_DIR)/mt_wifi_ap/mt_wifi.ko \
|
||||
$(PKG_BUILD_DIR)/mt_wifi/embedded/plug_in/whnat/mt_whnat.ko
|
||||
AUTOLOAD:=$(call AutoProbe,mt_wifi mt_whnat)
|
||||
else
|
||||
FILES:=$(PKG_BUILD_DIR)/mt_wifi_ap/mt_wifi.ko
|
||||
AUTOLOAD:=$(call AutoProbe,mt_wifi)
|
||||
endif
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define KernelPackage/mt7615e/config
|
||||
source "$(SOURCE)/globalconfig.in"
|
||||
endef
|
||||
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
||||
$(KERNEL_MAKE_FLAGS) V=1 \
|
||||
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
||||
SUBDIRS="$(PKG_BUILD_DIR)/mt_wifi_ap" \
|
||||
$(foreach c, $(PKG_KCONFIG),$(if $(CONFIG_MTK_$c),CONFIG_$(c)=$(CONFIG_MTK_$(c)))) \
|
||||
CONFIG_SUPPORT_OPENWRT=y CONFIG_MT_AP_SUPPORT=m CONFIG_CHIP_MT7615E=y CONFIG_MT_MAC=y \
|
||||
CONFIG_FIRST_IF_MT7603E=y CONFIG_SECOND_IF_MT7615E=y \
|
||||
modules
|
||||
endef
|
||||
|
||||
define KernelPackage/mt7615e/install
|
||||
$(INSTALL_DIR) $(1)/etc/wireless
|
||||
$(CP) ./files/l1profile.dat $(1)/etc/wireless
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,mt7615e))
|
||||
@@ -1,317 +0,0 @@
|
||||
config MTK_MT_AP_SUPPORT
|
||||
bool
|
||||
default y
|
||||
depends on MTK_WIFI_MODE_AP
|
||||
|
||||
if MTK_MT_AP_SUPPORT
|
||||
|
||||
config MTK_WDS_SUPPORT
|
||||
bool "WDS"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_MBSS_SUPPORT
|
||||
bool "Multi-BSS (MBSSID)"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_APCLI_SUPPORT
|
||||
bool "AP-Client Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_APCLI_CERT_SUPPORT
|
||||
bool "AP-Client TGn Cert Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MAC_REPEATER_SUPPORT
|
||||
bool "MAC Repeater Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_APCLI_CONNECTION_TRIAL
|
||||
bool "AP-Client Trial Connection"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MWDS
|
||||
bool "Mixed WDS (MWDS)"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
select MTK_APCLI_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MUMIMO_SUPPORT
|
||||
bool "MU-MIMO Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_MU_RA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_MU_RA_SUPPORT
|
||||
bool "MU-RGA Support"
|
||||
depends on MTK_MUMIMO_SUPPORT
|
||||
|
||||
config MTK_DOT11R_FT_SUPPORT
|
||||
bool "IEEE 802.11r Fast BSS Transition"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_DOT11K_RRM_SUPPORT
|
||||
bool "IEEE 802.11k Radio Resource Management"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_IGMP_SNOOP_SUPPORT
|
||||
bool "IGMP snooping (for multicast --> unicast)"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_OFFCHANNEL_SCAN_FEATURE
|
||||
bool "Off-Channel scan support (Channel Quality Monitor)"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_SNIFFER_SUPPORT
|
||||
bool "Sniffer support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_ENTERPRISE_AP_SUPPORT
|
||||
bool "Enterprise AP Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_WIFI_EAP_FEATURE
|
||||
bool "EAP Feature"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_RADIUS_MAC_AUTH_SUPPORT
|
||||
bool "RADIUS MAC Auth Support"
|
||||
depends on MTK_ENTERPRISE_AP_SUPPORT
|
||||
depends on MTK_CFG80211_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_VLAN_SUPPORT
|
||||
bool "VLAN Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_ENTERPRISE_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_DYNAMIC_VLAN_SUPPORT
|
||||
bool "Dynamic VLAN Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_ENTERPRISE_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_CFG80211_SUPPORT
|
||||
bool "Linux CFG80211 support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
#CUSTOMISED HOSTAPD
|
||||
config MTK_CUSTOMISED_HOSTAPD_SUPPORT
|
||||
bool "Customised Hostapd Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_CFG80211_SUPPORT
|
||||
default n
|
||||
|
||||
#APCLI STA
|
||||
config MTK_APCLI_STA_SUPPORT
|
||||
bool "APCLI STA Support"
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
depends on MTK_CFG80211_SUPPORT
|
||||
default n
|
||||
|
||||
#WDS STA
|
||||
config MTK_WDS_STA_SUPPORT
|
||||
bool "WDS STA Support"
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
depends on MTK_CFG80211_SUPPORT
|
||||
default n
|
||||
|
||||
#WDS AP
|
||||
config MTK_MBSS_AS_WDS_AP_SUPPORT
|
||||
bool "MBSS as WDS AP Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_MBSS_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_DSCP_QOS_MAP_SUPPORT
|
||||
bool "Dscp Qos Mapping Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_DSCP_PRI_SUPPORT
|
||||
bool "Dscp Priority Mapping Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MIN_PHY_RATE_SUPPORT
|
||||
bool "Minimum PHY rate support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_FAST_UP_RATE_SUPPORT
|
||||
bool "Fast UP rate support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_CON_WPS_SUPPORT
|
||||
bool "Concurrent WPS Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
depends on MTK_APCLI_SUPPORT
|
||||
depends on MTK_WSC_INCLUDED
|
||||
depends on MTK_WSC_V2_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MCAST_RATE_SPECIFIC
|
||||
bool "User specific tx rate of mcast pkt"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_VOW_SUPPORT
|
||||
bool "MediaAir (VOW) support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_BAND_STEERING
|
||||
bool "Band Steering"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_LED_CONTROL_SUPPORT
|
||||
bool "LED Control Support"
|
||||
default n
|
||||
|
||||
config MTK_WLAN_HOOK
|
||||
bool "WLAN hook Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_RADIUS_ACCOUNTING_SUPPORT
|
||||
bool "Radius Accounting Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_GREENAP_SUPPORT
|
||||
bool "GreenAP Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_TXRX_STAT_SUPPORT
|
||||
bool "Tx/Rx Stats Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_VENDOR_FEATURE11_SUPPORT
|
||||
bool "Enable Vendor-11 Features"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_PCIE_ASPM_DYM_CTRL_SUPPORT
|
||||
bool "Pcie Aspm Dynamic Control Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_COEX_SUPPORT
|
||||
bool "Coex Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_EASY_SETUP_SUPPORT
|
||||
bool "Whole Home Coverage - Easy Setup"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_EVENT_NOTIFIER_SUPPORT
|
||||
bool "Whole Home Coverage - Event Notifier"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_AIR_MONITOR
|
||||
bool "Air Monitor"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_WNM_SUPPORT
|
||||
bool "IEEE 802.11v WNM Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_INTERWORKING
|
||||
bool "IEEE 802.11u Interworking"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_LINUX_NET_TXQ_SUPPORT
|
||||
bool "NET TX Queue Support"
|
||||
default n
|
||||
|
||||
config MTK_WPA3_SUPPORT
|
||||
bool "WPA3 Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_OWE_SUPPORT
|
||||
bool "Enhanced Open Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_SINGLE_SKU
|
||||
bool "Single SKU Support"
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_ICAP_SUPPORT
|
||||
bool "ICAP Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_SPECTRUM_SUPPORT
|
||||
bool "Wifi Spectrum Mgmt Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_FTM_SUPPORT
|
||||
bool "FTM Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_PASSPOINT_R2
|
||||
default n
|
||||
|
||||
config MTK_PASSPOINT_R2
|
||||
bool "Passpoint Release-2 Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_DOT11W_PMF_SUPPORT
|
||||
depends on MTK_MT_AP_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MBO_SUPPORT
|
||||
bool "MBO Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_INTERWORKING
|
||||
select MTK_WNM_SUPPORT
|
||||
select MTK_DOT11K_RRM_SUPPORT
|
||||
select MTK_DOT11R_FT_SUPPORT
|
||||
select MTK_DOT11W_PMF_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_MAP_SUPPORT
|
||||
bool "Multi-AP (MAP) Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
select MTK_INTERWORKING
|
||||
select MTK_WNM_SUPPORT
|
||||
select MTK_DOT11K_RRM_SUPPORT
|
||||
select MTK_DOT11R_FT_SUPPORT
|
||||
select MTK_DOT11W_PMF_SUPPORT
|
||||
default n
|
||||
|
||||
endif #MTK_MT_AP_SUPPORT
|
||||
@@ -1,250 +0,0 @@
|
||||
#mtk wifi common optiions
|
||||
|
||||
menu "Common WiFi options"
|
||||
|
||||
config MTK_WIFI_BASIC_FUNC
|
||||
bool "Linux Wireless Extension support (for iwconfig, iwpriv etc.)"
|
||||
select MTK_WIRELESS_EXT
|
||||
select MTK_WEXT_SPY
|
||||
select MTK_WEXT_PRIV
|
||||
|
||||
config MTK_DOT11_N_SUPPORT
|
||||
bool "IEEE 802.11n support"
|
||||
default y
|
||||
|
||||
config MTK_DOT11_VHT_AC
|
||||
bool "IEEE 802.11ac support"
|
||||
depends on MTK_DOT11_N_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_DOT11_HE_AX
|
||||
bool "IEEE 802.11ax support"
|
||||
depends on MTK_DOT11_VHT_AC
|
||||
depends on MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_CFG_SUPPORT_FALCON_MURU
|
||||
bool "MURU support"
|
||||
depends on MTK_DOT11_VHT_AC
|
||||
depends on MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_CFG_SUPPORT_FALCON_TXCMD_DBG
|
||||
bool "TXCMD DBG support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_DOT11_VHT_AC
|
||||
depends on MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_CFG_SUPPORT_FALCON_SR
|
||||
bool "Spatial Reuse (SR) support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_WIFI_TWT_SUPPORT
|
||||
bool "Target Wake Time (TWT) support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_DOT11_HE_AX
|
||||
depends on MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_G_BAND_256QAM_SUPPORT
|
||||
bool "2.4G 256-QAM support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_DOT11_VHT_AC
|
||||
default y
|
||||
|
||||
config MTK_BRCM_256QAM_SUPPORT
|
||||
bool "BRCM 2.4G 256-QAM support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_G_BAND_256QAM_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_VHT_TXBF_2G_EPIGRAM_IE_SUPPORT
|
||||
bool "BRCM 2.4G VHT Sounding support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_MT_DFS_SUPPORT
|
||||
bool "IEEE 802.11h DFS Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_TPC_SUPPORT
|
||||
bool "IEEE 802.11h TPC Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_BACKGROUND_SCAN_SUPPORT
|
||||
bool "Background Scan Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_SMART_CARRIER_SENSE_SUPPORT
|
||||
bool "Smart Carrier Sense Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_THERMAL_PROTECT_SUPPORT
|
||||
bool "Thermal Protection"
|
||||
depends on MTK_WIFI_DRIVER && MTK_SMART_CARRIER_SENSE_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_SCS_FW_OFFLOAD
|
||||
bool "SCS Fw Offload Support"
|
||||
depends on MTK_WIFI_DRIVER && MTK_SMART_CARRIER_SENSE_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_HDR_TRANS_TX_SUPPORT
|
||||
bool "Tx Header Translation"
|
||||
depends on MTK_CHIP_MT7615E || MTK_CHIP_MT7622 || MTK_CHIP_MT7626 || MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_HDR_TRANS_RX_SUPPORT
|
||||
bool "Rx Header Translation"
|
||||
depends on MTK_CHIP_MT7615E || MTK_CHIP_MT7622 || MTK_CHIP_MT7626 || MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
default y
|
||||
|
||||
config MTK_DBDC_MODE
|
||||
bool "Dual-Band Dual-Concurrent (DBDC) mode support"
|
||||
depends on MTK_CHIP_MT7615E || MTK_CHIP_MT7626 || MTK_CHIP_MT7915
|
||||
select MULTI_PROFILE_SUPPORT
|
||||
select DEFAULT_5G_PROFILE
|
||||
default y
|
||||
|
||||
config MTK_MULTI_PROFILE_SUPPORT
|
||||
bool "Multi Profile Support"
|
||||
depends on MTK_DBDC_MODE
|
||||
default n
|
||||
|
||||
config MTK_DEFAULT_5G_PROFILE
|
||||
bool "5G default profile for DBDC"
|
||||
depends on MTK_DBDC_MODE
|
||||
default y
|
||||
|
||||
config MTK_WSC_INCLUDED
|
||||
bool "WiFi Simple Config (WSC) or WPS"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_WSC_V2_SUPPORT
|
||||
bool "WiFi Simple Config ver.2 (WPS 2.0)"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_DOT11W_PMF_SUPPORT
|
||||
bool "IEEE 802.11w PMF support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_TXBF_SUPPORT
|
||||
bool "Tx Beam Forming Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_FAST_NAT_SUPPORT
|
||||
bool "Fast-NAT support"
|
||||
default n
|
||||
|
||||
config MTK_WHNAT_SUPPORT
|
||||
tristate "Wifi Hardware NAT support"
|
||||
depends on MTK_CHIP_MT7615E || MTK_CHIP_MT7915
|
||||
depends on MTK_WLAN_HOOK
|
||||
depends on MTK_FAST_NAT_SUPPORT
|
||||
depends on PACKAGE_kmod-hw_nat || PACKAGE_kmod-mediatek_hnat
|
||||
default n
|
||||
|
||||
#config CARRIER_DETECTION_SUPPORT
|
||||
# bool "Carrier Detect"
|
||||
# depends on WIFI_DRIVER
|
||||
# default n
|
||||
|
||||
config MTK_MEMORY_SHRINK
|
||||
bool "Memory Shrink"
|
||||
depends on MTK_WIFI_DRIVER && MTK_CHIP_MT7626
|
||||
default n
|
||||
|
||||
config MTK_RPS_EFFICIENCY
|
||||
bool "RPS Efficiency"
|
||||
depends on MTK_WIFI_DRIVER && MTK_CHIP_MT7626
|
||||
default n
|
||||
|
||||
config MTK_RTMP_FLASH_SUPPORT
|
||||
bool "Platform's Flash APIs Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_PRE_CAL_TRX_SET1_SUPPORT
|
||||
bool "Calibration To Flash/BinFile Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_RLM_CAL_CACHE_SUPPORT
|
||||
bool "Rlm Calibration Cache Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_PRE_CAL_TRX_SET2_SUPPORT
|
||||
bool "Pre-calibration to Flash Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_CAL_BIN_FILE_SUPPORT
|
||||
bool "Calibration to BinFile Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_RF_LOCKDOWN_SUPPORT
|
||||
bool "RF Lockdown Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_LINK_TEST_SUPPORT
|
||||
bool "Link Test Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_ATE_SUPPORT
|
||||
bool "ATE/QA Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default y
|
||||
|
||||
config MTK_WLAN_SERVICE
|
||||
bool "Wlan Service Library Support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_UAPSD
|
||||
bool "UAPSD support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default y
|
||||
|
||||
config MTK_TCP_RACK_SUPPORT
|
||||
bool "TCP Reduced ACK support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
config MTK_RED_SUPPORT
|
||||
bool "RED (Random Early Drop) support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT || MTK_MT_STA_SUPPORT
|
||||
default n
|
||||
|
||||
config MTK_FQ_SCH_SUPPORT
|
||||
bool "Fair Queueing support"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
depends on MTK_MT_AP_SUPPORT && MTK_VOW_SUPPORT
|
||||
depends on MTK_CHIP_MT7622
|
||||
default y
|
||||
|
||||
config MTK_FDB_SUPPORT
|
||||
bool "FW Debug Port"
|
||||
depends on MTK_WIFI_DRIVER
|
||||
default n
|
||||
|
||||
endmenu
|
||||
250
mt7615/config.in
250
mt7615/config.in
@@ -1,250 +0,0 @@
|
||||
# Kconfig for mtk wifi
|
||||
|
||||
config MTK_WIFI_DRIVER
|
||||
bool
|
||||
default y
|
||||
depends on PACKAGE_kmod-mt7615 || PACKAGE_kmod-mt7603
|
||||
select MTK_SUPPORT_OPENWRT
|
||||
select MTK_MT_WIFI
|
||||
select MTK_WIFI_BASIC_FUNC
|
||||
|
||||
if MTK_WIFI_DRIVER
|
||||
|
||||
menu "First WiFi card"
|
||||
choice
|
||||
prompt "Choose First WiFi card"
|
||||
default MTK_FIRST_IF_MT7603E
|
||||
|
||||
config MTK_FIRST_IF_NONE
|
||||
bool "None"
|
||||
|
||||
config MTK_FIRST_IF_MT7603E
|
||||
bool "MT7603E"
|
||||
select RALINK_MT7603E
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7603E
|
||||
|
||||
config MTK_FIRST_IF_MT7615E
|
||||
bool "MT7615E"
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7615E
|
||||
|
||||
endchoice
|
||||
|
||||
config MTK_RT_FIRST_CARD
|
||||
int
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default 7603 if MTK_FIRST_IF_MT7603E
|
||||
default 7615 if MTK_FIRST_IF_MT7615E
|
||||
|
||||
config MTK_MT_WIFI_PATH_FIRST_CARD
|
||||
string "WiFi driver build directory name"
|
||||
default "rlt_wifi"
|
||||
|
||||
config MTK_RT_FIRST_IF_RF_OFFSET
|
||||
hex "RF offset of 1st card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default 0x0
|
||||
|
||||
#prompt "WiFi detailed options for 1st card"
|
||||
|
||||
choice
|
||||
prompt "EEPROM Type of 1st Card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default MTK_FIRST_IF_EEPROM_EFUSE
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_FLASH
|
||||
bool "FLASH"
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_PROM
|
||||
bool "EEPROM"
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_EFUSE
|
||||
bool "EFUSE"
|
||||
|
||||
endchoice
|
||||
|
||||
config MTK_RT_FIRST_CARD_EEPROM
|
||||
string
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default "prom" if MTK_FIRST_IF_EEPROM_PROM
|
||||
default "efuse" if MTK_FIRST_IF_EEPROM_EFUSE
|
||||
default "flash" if MTK_FIRST_IF_EEPROM_FLASH
|
||||
|
||||
choice
|
||||
prompt "PA/LNA Type of 1st Card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default MTK_FIRST_IF_IPAILNA
|
||||
|
||||
config MTK_FIRST_IF_EPAELNA
|
||||
bool "ePAeLNA"
|
||||
config MTK_FIRST_IF_IPAILNA
|
||||
bool "iPAiLNA"
|
||||
config MTK_FIRST_IF_IPAELNA
|
||||
bool "iPAeLNA"
|
||||
endchoice
|
||||
|
||||
menu "Operation Modes for 1st card"
|
||||
choice
|
||||
prompt "Operating mode"
|
||||
default MTK_WIFI_MODE_AP
|
||||
|
||||
config MTK_WIFI_MODE_AP
|
||||
bool "AP"
|
||||
|
||||
config MTK_WIFI_MODE_STA
|
||||
bool "STA"
|
||||
|
||||
config MTK_WIFI_MODE_BOTH
|
||||
bool "AP+STA"
|
||||
#select MTK_MT_STA_SUPPORT
|
||||
endchoice
|
||||
|
||||
source "ap.config.in"
|
||||
|
||||
endmenu
|
||||
endmenu
|
||||
### endmenu for 1st wifi card #######
|
||||
|
||||
#### menu starts for 2nd wifi card ###
|
||||
menu "Second WiFi card"
|
||||
|
||||
choice
|
||||
prompt "Choose Second WiFi card"
|
||||
default MTK_SECOND_IF_MT7615E
|
||||
|
||||
config MTK_SECOND_IF_NONE
|
||||
bool "None"
|
||||
|
||||
config MTK_SECOND_IF_MT7603E
|
||||
bool "MT7603E"
|
||||
select RALINK_MT7603E
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7603E
|
||||
|
||||
config MTK_SECOND_IF_MT7615E
|
||||
bool "MT7615E"
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7615E
|
||||
endchoice
|
||||
|
||||
config MTK_RT_SECOND_CARD
|
||||
int
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default 7603 if MTK_SECOND_IF_MT7603E
|
||||
default 7615 if MTK_SECOND_IF_MT7615E
|
||||
|
||||
config MTK_MT_WIFI_PATH_SECOND_CARD
|
||||
string "WiFi driver build directory name"
|
||||
default "mt_wifi"
|
||||
|
||||
config MTK_RT_SECOND_IF_RF_OFFSET
|
||||
hex "RF offset of 2nd card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default 0x8000
|
||||
|
||||
#prompt "WiFi detailed options for 2nd card"
|
||||
|
||||
choice
|
||||
prompt "EEPROM Type of 2nd Card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default MTK_SECOND_IF_EEPROM_EFUSE
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_FLASH
|
||||
bool "FLASH"
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_PROM
|
||||
bool "EEPROM"
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_EFUSE
|
||||
bool "EFUSE"
|
||||
endchoice
|
||||
|
||||
config MTK_RT_SECOND_CARD_EEPROM
|
||||
string
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default "prom" if MTK_SECOND_IF_EEPROM_PROM
|
||||
default "efuse" if MTK_SECOND_IF_EEPROM_EFUSE
|
||||
default "flash" if MTK_SECOND_IF_EEPROM_FLASH
|
||||
|
||||
|
||||
choice
|
||||
prompt "PA/LNA Type of 2nd Card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default MTK_SECOND_IF_IPAILNA
|
||||
|
||||
config MTK_SECOND_IF_EPAELNA
|
||||
bool "ePAeLNA"
|
||||
config MTK_SECOND_IF_IPAILNA
|
||||
bool "iPAiLNA"
|
||||
config MTK_SECOND_IF_IPAELNA
|
||||
bool "iPAeLNA"
|
||||
endchoice
|
||||
|
||||
|
||||
menu "Operation Modes for 2nd card"
|
||||
choice
|
||||
prompt "Operating mode"
|
||||
default MTK_WIFI_MODE_AP
|
||||
|
||||
config MTK_WIFI_MODE_AP
|
||||
bool "AP"
|
||||
|
||||
config MTK_WIFI_MODE_STA
|
||||
bool "STA"
|
||||
|
||||
config MTK_WIFI_MODE_BOTH
|
||||
bool "AP+STA"
|
||||
endchoice
|
||||
|
||||
source "ap.config.in"
|
||||
|
||||
endmenu
|
||||
|
||||
endmenu
|
||||
### endmenu for 2nd wifi card #######
|
||||
|
||||
|
||||
#### placeholder for 3rd wifi card ###
|
||||
config MTK_THIRD_IF_NONE
|
||||
bool
|
||||
default y
|
||||
|
||||
config MTK_RT_THIRD_CARD
|
||||
int
|
||||
default 0
|
||||
|
||||
config MTK_RT_THIRD_IF_RF_OFFSET
|
||||
hex
|
||||
default 0x4000
|
||||
|
||||
config MTK_RT_THIRD_CARD_EEPROM
|
||||
string
|
||||
default "efuse"
|
||||
### placehlder for 3rd wifi card #######
|
||||
|
||||
|
||||
config MTK_MULTI_INF_SUPPORT
|
||||
bool
|
||||
default y if !MTK_FIRST_IF_NONE && !MTK_SECOND_IF_NONE
|
||||
|
||||
|
||||
source "common.config.in"
|
||||
|
||||
#if MTK_CHIP_MT7615E || MTK_CHIP_MT7622 || MTK_CHIP_MT7626 || MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
# config MTK_MT_MAC
|
||||
# bool
|
||||
# default y
|
||||
# select MTK_RATE_ADAPTION
|
||||
# select MTK_RATE_ADAPT_AGBS_SUPPORT
|
||||
# select MTK_DOT11_N_SUPPORT
|
||||
# select MTK_DOT11_VHT_AC
|
||||
# select MTK_HDR_TRANS_TX_SUPPORT
|
||||
# select MTK_HDR_TRANS_RX_SUPPORT
|
||||
#endif
|
||||
|
||||
endif #MTK_WIFI_DRIVER#
|
||||
@@ -1,60 +0,0 @@
|
||||
#defconfig for mt7615
|
||||
CONFIG_WIFI_DRIVER=y
|
||||
CONFIG_SUPPORT_OPENWRT=y
|
||||
CONFIG_RT_FIRST_CARD=7603
|
||||
CONFIG_RT_FIRST_IF_RF_OFFSET=0x0
|
||||
CONFIG_FIRST_IF_EEPROM_EFUSE=y
|
||||
CONFIG_RT_FIRST_CARD_EEPROM="efuse"
|
||||
CONFIG_FIRST_IF_IPAILNA=y
|
||||
CONFIG_RT_SECOND_CARD=7615
|
||||
CONFIG_RT_SECOND_IF_RF_OFFSET=0x8000
|
||||
CONFIG_SECOND_IF_EEPROM_EFUSE=y
|
||||
CONFIG_RT_SECOND_CARD_EEPROM="efuse"
|
||||
CONFIG_SECOND_IF_IPAILNA=y
|
||||
CONFIG_RT_THIRD_CARD=0
|
||||
CONFIG_RT_THIRD_IF_RF_OFFSET=0x4000
|
||||
CONFIG_RT_THIRD_CARD_EEPROM="efuse"
|
||||
CONFIG_MULTI_INF_SUPPORT=y
|
||||
CONFIG_FIRST_IF_MT7603E=y
|
||||
CONFIG_SECOND_IF_MT7615E=y
|
||||
CONFIG_THIRD_IF_NONE=y
|
||||
CONFIG_WIFI_BASIC_FUNC=y
|
||||
CONFIG_DOT11_N_SUPPORT=y
|
||||
CONFIG_DOT11_VHT_AC=y
|
||||
CONFIG_G_BAND_256QAM_SUPPORT=y
|
||||
CONFIG_ICAP_SUPPORT=y
|
||||
CONFIG_MT_MAC=y
|
||||
#CONFIG_MT_AP_SUPPORT=y
|
||||
CONFIG_MT_DFS_SUPPORT=y
|
||||
CONFIG_BACKGROUND_SCAN_SUPPORT=y
|
||||
CONFIG_SMART_CARRIER_SENSE_SUPPORT=y
|
||||
CONFIG_WSC_INCLUDED=y
|
||||
CONFIG_WSC_V2_SUPPORT=y
|
||||
CONFIG_DOT11W_PMF_SUPPORT=y
|
||||
CONFIG_TXBF_SUPPORT=y
|
||||
CONFIG_IGMP_SNOOP_SUPPORT=y
|
||||
CONFIG_RTMP_FLASH_SUPPORT=y
|
||||
CONFIG_ATE_SUPPORT=y
|
||||
CONFIG_UAPSD=y
|
||||
CONFIG_WIFI_MODE_AP=y
|
||||
CONFIG_WDS_SUPPORT=y
|
||||
CONFIG_MBSS_SUPPORT=y
|
||||
CONFIG_APCLI_SUPPORT=y
|
||||
CONFIG_MAC_REPEATER_SUPPORT=y
|
||||
CONFIG_VOW_SUPPORT=y
|
||||
CONFIG_BAND_STEERING=y
|
||||
CONFIG_MUMIMO_SUPPORT=y
|
||||
CONFIG_MU_RA_SUPPORT=y
|
||||
CONFIG_GREENAP_SUPPORT=y
|
||||
CONFIG_TPC_SUPPORT=y
|
||||
CONFIG_RLM_CAL_CACHE_SUPPORT=y
|
||||
CONFIG_CAL_BIN_FILE_SUPPORT=y
|
||||
CONFIG_WIFI_EAP_FEATURE=y
|
||||
CONFIG_WPA3_SUPPORT=y
|
||||
CONFIG_SPECTRUM_SUPPORT=y
|
||||
CONFIG_PRE_CAL_TRX_SET1_SUPPORT=y
|
||||
CONFIG_MCAST_RATE_SPECIFIC=y
|
||||
CONFIG_PRE_CAL_TRX_SET2_SUPPORT=y
|
||||
CONFIG_PCIE_ASPM_DYM_CTRL_SUPPORT=y
|
||||
CONFIG_MT_AP_SUPPORT=m
|
||||
CONFIG_CHIP_MT7615E=y
|
||||
@@ -1,406 +0,0 @@
|
||||
Default
|
||||
AccessControlList0=
|
||||
AccessControlList1=
|
||||
AccessControlList10=
|
||||
AccessControlList11=
|
||||
AccessControlList12=
|
||||
AccessControlList13=
|
||||
AccessControlList14=
|
||||
AccessControlList15=
|
||||
AccessControlList2=
|
||||
AccessControlList3=
|
||||
AccessControlList4=
|
||||
AccessControlList5=
|
||||
AccessControlList6=
|
||||
AccessControlList7=
|
||||
AccessControlList8=
|
||||
AccessControlList9=
|
||||
AccessPolicy0=0
|
||||
AccessPolicy1=0
|
||||
AccessPolicy10=0
|
||||
AccessPolicy11=0
|
||||
AccessPolicy12=0
|
||||
AccessPolicy13=0
|
||||
AccessPolicy14=0
|
||||
AccessPolicy15=0
|
||||
AccessPolicy2=0
|
||||
AccessPolicy3=0
|
||||
AccessPolicy4=0
|
||||
AccessPolicy5=0
|
||||
AccessPolicy6=0
|
||||
AccessPolicy7=0
|
||||
AccessPolicy8=0
|
||||
AccessPolicy9=0
|
||||
AckPolicy=0;0;0;0
|
||||
APACM=0;0;0;0
|
||||
APAifsn=3;7;1;1
|
||||
ApCliAuthMode=
|
||||
ApCliBssid=
|
||||
ApCliDefaultKeyID=
|
||||
ApCliEnable=
|
||||
ApCliEncrypType=
|
||||
ApCliKey1Str=
|
||||
ApCliKey1Str1=
|
||||
ApCliKey1Type=
|
||||
ApCliKey2Str=
|
||||
ApCliKey2Str1=
|
||||
ApCliKey2Type=
|
||||
ApCliKey3Str=
|
||||
ApCliKey3Str1=
|
||||
ApCliKey3Type=
|
||||
ApCliKey4Str=
|
||||
ApCliKey4Str1=
|
||||
ApCliKey4Type=
|
||||
ApCliSsid=
|
||||
ApCliWirelessMode=
|
||||
ApCliWPAPSK=
|
||||
ApCliWPAPSK1=
|
||||
APCwmax=6;10;4;3
|
||||
APCwmin=4;4;3;2
|
||||
APSDCapable=1
|
||||
APTxop=0;0;94;47
|
||||
AuthMode=OPEN
|
||||
AutoChannelSelect=0
|
||||
AutoChannelSkipList=
|
||||
AutoProvisionEn=0
|
||||
BandSteering=0
|
||||
BasicRate=15
|
||||
BeaconPeriod=100
|
||||
BFBACKOFFenable=0
|
||||
BgndScanSkipCh=
|
||||
BGProtection=0
|
||||
BndStrgBssIdx=
|
||||
BSSACM=0;0;0;0
|
||||
BSSAifsn=3;7;2;2
|
||||
BSSCwmax=10;10;4;3
|
||||
BSSCwmin=4;4;3;2
|
||||
BssidNum=1
|
||||
BSSTxop=0;0;94;47
|
||||
BW_Enable=0
|
||||
BW_Guarantee_Rate=
|
||||
BW_Maximum_Rate=
|
||||
BW_Priority=
|
||||
BW_Root=0
|
||||
CalCacheApply=0
|
||||
CarrierDetect=0
|
||||
Channel=100
|
||||
ChannelGrp=
|
||||
CountryCode=US
|
||||
CountryRegion=5
|
||||
CountryRegionABand=7
|
||||
CP_SUPPORT=2
|
||||
CSPeriod=6
|
||||
DBDC_MODE=0
|
||||
DebugFlags=0
|
||||
DefaultKeyID=1
|
||||
DfsCalibration=0
|
||||
DfsEnable=0
|
||||
DfsFalseAlarmPrevent=1
|
||||
DfsZeroWait=0
|
||||
DfsZeroWaitCacTime=255
|
||||
DisableOLBC=0
|
||||
DtimPeriod=1
|
||||
E2pAccessMode=1
|
||||
EAPifname=br0
|
||||
EDCCAEnable=1
|
||||
EncrypType=NONE
|
||||
EthConvertMode=dongle
|
||||
EtherTrafficBand=0
|
||||
Ethifname=
|
||||
ETxBfEnCond=1
|
||||
FineAGC=0
|
||||
FixedTxMode=
|
||||
ForceRoamSupport=
|
||||
FragThreshold=2346
|
||||
FreqDelta=0
|
||||
FtSupport=0
|
||||
GreenAP=1
|
||||
G_BAND_256QAM=1
|
||||
HideSSID=0
|
||||
HT_AMSDU=1
|
||||
HT_AutoBA=1
|
||||
HT_BADecline=0
|
||||
HT_BAWinSize=64
|
||||
HT_BSSCoexistence=1
|
||||
HT_BW=1
|
||||
HT_DisallowTKIP=1
|
||||
HT_EXTCHA=1
|
||||
HT_GI=1
|
||||
HT_HTC=1
|
||||
HT_LDPC=1
|
||||
HT_LinkAdapt=0
|
||||
HT_MCS=33
|
||||
HT_MpduDensity=5
|
||||
HT_OpMode=0
|
||||
HT_PROTECT=1
|
||||
HT_RDG=0
|
||||
HT_RxStream=4
|
||||
HT_STBC=1
|
||||
HT_TxStream=4
|
||||
IcapMode=0
|
||||
idle_timeout_interval=0
|
||||
IEEE80211H=1
|
||||
IEEE8021X=0
|
||||
IgmpSnEnable=0
|
||||
ITxBfEn=1
|
||||
Key1Str=
|
||||
Key1Str1=
|
||||
Key1Str10=
|
||||
Key1Str11=
|
||||
Key1Str12=
|
||||
Key1Str13=
|
||||
Key1Str14=
|
||||
Key1Str15=
|
||||
Key1Str16=
|
||||
Key1Str2=
|
||||
Key1Str3=
|
||||
Key1Str4=
|
||||
Key1Str5=
|
||||
Key1Str6=
|
||||
Key1Str7=
|
||||
Key1Str8=
|
||||
Key1Str9=
|
||||
Key1Type=0
|
||||
Key2Str=
|
||||
Key2Str1=
|
||||
Key2Str10=
|
||||
Key2Str11=
|
||||
Key2Str12=
|
||||
Key2Str13=
|
||||
Key2Str14=
|
||||
Key2Str15=
|
||||
Key2Str16=
|
||||
Key2Str2=
|
||||
Key2Str3=
|
||||
Key2Str4=
|
||||
Key2Str5=
|
||||
Key2Str6=
|
||||
Key2Str7=
|
||||
Key2Str8=
|
||||
Key2Str9=
|
||||
Key2Type=0
|
||||
Key3Str=
|
||||
Key3Str1=
|
||||
Key3Str10=
|
||||
Key3Str11=
|
||||
Key3Str12=
|
||||
Key3Str13=
|
||||
Key3Str14=
|
||||
Key3Str15=
|
||||
Key3Str16=
|
||||
Key3Str2=
|
||||
Key3Str3=
|
||||
Key3Str4=
|
||||
Key3Str5=
|
||||
Key3Str6=
|
||||
Key3Str7=
|
||||
Key3Str8=
|
||||
Key3Str9=
|
||||
Key3Type=0
|
||||
Key4Str=
|
||||
Key4Str1=
|
||||
Key4Str10=
|
||||
Key4Str11=
|
||||
Key4Str12=
|
||||
Key4Str13=
|
||||
Key4Str14=
|
||||
Key4Str15=
|
||||
Key4Str16=
|
||||
Key4Str2=
|
||||
Key4Str3=
|
||||
Key4Str4=
|
||||
Key4Str5=
|
||||
Key4Str6=
|
||||
Key4Str7=
|
||||
Key4Str8=
|
||||
Key4Str9=
|
||||
Key4Type=0
|
||||
LinkTestSupport=0
|
||||
MACRepeaterEn=
|
||||
MACRepeaterOuiMode=2
|
||||
MeshAuthMode=
|
||||
MeshAutoLink=0
|
||||
MeshDefaultkey=0
|
||||
MeshEncrypType=
|
||||
MeshId=
|
||||
MeshWEPKEY=
|
||||
MeshWPAKEY=
|
||||
MUTxRxEnable=0
|
||||
NoForwarding=0
|
||||
NoForwardingBTNBSSID=0
|
||||
own_ip_addr=10.10.10.254
|
||||
|
||||
PcieAspm=0
|
||||
PERCENTAGEenable=0
|
||||
PhyRateLimit=0
|
||||
PMFMFPC=1
|
||||
PMFMFPR=0
|
||||
PMFSHA256=0
|
||||
PMKCachePeriod=10
|
||||
PowerUpCckOfdm=0:0:0:0:0:0:0
|
||||
PowerUpHT20=0:0:0:0:0:0:0
|
||||
PowerUpHT40=0:0:0:0:0:0:0
|
||||
PowerUpVHT160=0:0:0:0:0:0:0
|
||||
PowerUpVHT20=0:0:0:0:0:0:0
|
||||
PowerUpVHT40=0:0:0:0:0:0:0
|
||||
PowerUpVHT80=0:0:0:0:0:0:0
|
||||
PreAntSwitch=
|
||||
PreAuth=0
|
||||
PreAuthifname=br0
|
||||
RadioLinkSelection=0
|
||||
RadioOn=1
|
||||
RADIUS_Acct_Key=
|
||||
RADIUS_Acct_Port=1813
|
||||
RADIUS_Acct_Server=
|
||||
RADIUS_Key1=
|
||||
RADIUS_Key10=
|
||||
RADIUS_Key11=
|
||||
RADIUS_Key12=
|
||||
RADIUS_Key13=
|
||||
RADIUS_Key14=
|
||||
RADIUS_Key15=
|
||||
RADIUS_Key16=
|
||||
RADIUS_Key2=
|
||||
RADIUS_Key3=
|
||||
RADIUS_Key4=
|
||||
RADIUS_Key5=
|
||||
RADIUS_Key6=
|
||||
RADIUS_Key7=
|
||||
RADIUS_Key8=
|
||||
RADIUS_Key9=
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Server=0
|
||||
RDRegion=
|
||||
RED_Enable=1
|
||||
RekeyInterval=3600
|
||||
RekeyMethod=DISABLE
|
||||
RRMEnable=0
|
||||
RTSThreshold=2347
|
||||
session_timeout_interval=0
|
||||
ShortSlot=1
|
||||
SKUenable=0
|
||||
SSID=
|
||||
SSID1=MTK_AP2
|
||||
SSID10=
|
||||
SSID11=
|
||||
SSID12=
|
||||
SSID13=
|
||||
SSID14=
|
||||
SSID15=
|
||||
SSID16=
|
||||
SSID2=
|
||||
SSID3=
|
||||
SSID4=
|
||||
SSID5=
|
||||
SSID6=
|
||||
SSID7=
|
||||
SSID8=
|
||||
SSID9=
|
||||
StationKeepAlive=0
|
||||
StreamMode=0
|
||||
StreamModeMac0=
|
||||
StreamModeMac1=
|
||||
StreamModeMac2=
|
||||
StreamModeMac3=
|
||||
TGnWifiTest=0
|
||||
ThermalRecal=0
|
||||
TxBurst=1
|
||||
TxPower=100
|
||||
TxPreamble=1
|
||||
VHT_BW=1
|
||||
VHT_BW_SIGNAL=0
|
||||
VHT_LDPC=1
|
||||
VHT_Sec80_Channel=0
|
||||
VHT_SGI=1
|
||||
VHT_STBC=1
|
||||
VLANID=0
|
||||
VLANPriority=0
|
||||
VLANTag=0
|
||||
VOW_Airtime_Ctrl_En=
|
||||
VOW_Airtime_Fairness_En=1
|
||||
VOW_BW_Ctrl=0
|
||||
VOW_Group_Backlog=
|
||||
VOW_Group_DWRR_Max_Wait_Time=
|
||||
VOW_Group_DWRR_Quantum=
|
||||
VOW_Group_Max_Airtime_Bucket_Size=
|
||||
VOW_Group_Max_Rate=
|
||||
VOW_Group_Max_Rate_Bucket_Size=
|
||||
VOW_Group_Max_Ratio=
|
||||
VOW_Group_Max_Wait_Time=
|
||||
VOW_Group_Min_Airtime_Bucket_Size=
|
||||
VOW_Group_Min_Rate=
|
||||
VOW_Group_Min_Rate_Bucket_Size=
|
||||
VOW_Group_Min_Ratio=
|
||||
VOW_Rate_Ctrl_En=
|
||||
VOW_Refill_Period=
|
||||
VOW_RX_En=1
|
||||
VOW_Sta_BE_DWRR_Quantum=
|
||||
VOW_Sta_BK_DWRR_Quantum=
|
||||
VOW_Sta_DWRR_Max_Wait_Time=
|
||||
VOW_Sta_VI_DWRR_Quantum=
|
||||
VOW_Sta_VO_DWRR_Quantum=
|
||||
VOW_WATF_Enable=
|
||||
VOW_WATF_MAC_LV0=
|
||||
VOW_WATF_MAC_LV1=
|
||||
VOW_WATF_MAC_LV2=
|
||||
VOW_WATF_MAC_LV3=
|
||||
VOW_WATF_Q_LV0=
|
||||
VOW_WATF_Q_LV1=
|
||||
VOW_WATF_Q_LV2=
|
||||
VOW_WATF_Q_LV3=
|
||||
VOW_WMM_Search_Rule_Band0=
|
||||
VOW_WMM_Search_Rule_Band1=
|
||||
WapiAsCertPath=
|
||||
WapiAsIpAddr=
|
||||
WapiAsPort=
|
||||
Wapiifname=
|
||||
WapiPsk1=
|
||||
WapiPsk10=
|
||||
WapiPsk11=
|
||||
WapiPsk12=
|
||||
WapiPsk13=
|
||||
WapiPsk14=
|
||||
WapiPsk15=
|
||||
WapiPsk16=
|
||||
WapiPsk2=
|
||||
WapiPsk3=
|
||||
WapiPsk4=
|
||||
WapiPsk5=
|
||||
WapiPsk6=
|
||||
WapiPsk7=
|
||||
WapiPsk8=
|
||||
WapiPsk9=
|
||||
WapiPskType=
|
||||
WapiUserCertPath=
|
||||
WCNTest=0
|
||||
Wds0Key=
|
||||
Wds1Key=
|
||||
Wds2Key=
|
||||
Wds3Key=
|
||||
WdsEnable=0
|
||||
WdsEncrypType=NONE
|
||||
WdsList=
|
||||
WdsPhyMode=0
|
||||
WHNAT=1
|
||||
WiFiTest=0
|
||||
WirelessMode=14
|
||||
WmmCapable=1
|
||||
WPAPSK=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK10=
|
||||
WPAPSK11=
|
||||
WPAPSK12=
|
||||
WPAPSK13=
|
||||
WPAPSK14=
|
||||
WPAPSK15=
|
||||
WPAPSK16=
|
||||
WPAPSK2=
|
||||
WPAPSK3=
|
||||
WPAPSK4=
|
||||
WPAPSK5=
|
||||
WPAPSK6=
|
||||
WPAPSK7=
|
||||
WPAPSK8=
|
||||
WPAPSK9=
|
||||
WscConfMode=0
|
||||
WscConfStatus=2
|
||||
@@ -1,27 +0,0 @@
|
||||
Default
|
||||
INDEX0=MT7603
|
||||
INDEX0_profile_path=/etc/Wireless/RT2860/RT2860.dat
|
||||
INDEX0_EEPROM_offset=0x0
|
||||
INDEX0_EEPROM_size=0x4000
|
||||
INDEX0_EEPROM_name=e2p
|
||||
INDEX0_main_ifname=ra0
|
||||
INDEX0_ext_ifname=ra
|
||||
INDEX0_wds_ifname=wds
|
||||
INDEX0_apcli_ifname=apcli
|
||||
INDEX0_mesh_ifname=mesh
|
||||
INDEX0_nvram_zone=dev1
|
||||
INDEX0_single_sku_path=/etc_ro/Wireless/RT2860AP/SingleSKU.dat
|
||||
INDEX0_bf_sku_path=/etc_ro/Wireless/RT2860AP/SingleSKU_BF.dat
|
||||
INDEX1=MT7615
|
||||
INDEX1_profile_path=/etc/Wireless/iNIC/iNIC_ap.dat
|
||||
INDEX1_EEPROM_offset=0x4000
|
||||
INDEX1_EEPROM_size=0x4000
|
||||
INDEX1_EEPROM_name=e2p
|
||||
INDEX1_main_ifname=rai0
|
||||
INDEX1_ext_ifname=rai
|
||||
INDEX1_wds_ifname=wdsi
|
||||
INDEX1_apcli_ifname=apclii
|
||||
INDEX1_mesh_ifname=meshi
|
||||
INDEX1_nvram_zone=dev2
|
||||
INDEX1_single_sku_path=/etc_ro/Wireless/RT2860AP/SingleSKU.dat
|
||||
INDEX1_bf_sku_path=/etc_ro/Wireless/RT2860AP/SingleSKU_BF.dat
|
||||
@@ -1,250 +0,0 @@
|
||||
# Kconfig for mtk wifi
|
||||
|
||||
config MTK_WIFI_DRIVER
|
||||
bool
|
||||
default y
|
||||
depends on (PACKAGE_kmod-mt7615e || PACKAGE_kmod-mt7603e)
|
||||
select MTK_SUPPORT_OPENWRT
|
||||
select MTK_MT_WIFI
|
||||
select MTK_WIFI_BASIC_FUNC
|
||||
|
||||
if MTK_WIFI_DRIVER
|
||||
|
||||
menu "First WiFi card"
|
||||
choice
|
||||
prompt "Choose First WiFi card"
|
||||
default MTK_FIRST_IF_MT7603E
|
||||
|
||||
config MTK_FIRST_IF_NONE
|
||||
bool "None"
|
||||
|
||||
config MTK_FIRST_IF_MT7603E
|
||||
bool "MT7603E"
|
||||
select RALINK_MT7603E
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7603E
|
||||
|
||||
config MTK_FIRST_IF_MT7615E
|
||||
bool "MT7615E"
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7615E
|
||||
|
||||
endchoice
|
||||
|
||||
config MTK_RT_FIRST_CARD
|
||||
int
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default 7603 if MTK_FIRST_IF_MT7603E
|
||||
default 7615 if MTK_FIRST_IF_MT7615E
|
||||
|
||||
config MTK_MT_WIFI_PATH_FIRST_CARD
|
||||
string "WiFi driver build directory name"
|
||||
default "rlt_wifi"
|
||||
|
||||
config MTK_RT_FIRST_IF_RF_OFFSET
|
||||
hex "RF offset of 1st card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default 0x0
|
||||
|
||||
#prompt "WiFi detailed options for 1st card"
|
||||
|
||||
choice
|
||||
prompt "EEPROM Type of 1st Card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default MTK_FIRST_IF_EEPROM_EFUSE
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_FLASH
|
||||
bool "FLASH"
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_PROM
|
||||
bool "EEPROM"
|
||||
|
||||
config MTK_FIRST_IF_EEPROM_EFUSE
|
||||
bool "EFUSE"
|
||||
|
||||
endchoice
|
||||
|
||||
config MTK_RT_FIRST_CARD_EEPROM
|
||||
string
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default "prom" if MTK_FIRST_IF_EEPROM_PROM
|
||||
default "efuse" if MTK_FIRST_IF_EEPROM_EFUSE
|
||||
default "flash" if MTK_FIRST_IF_EEPROM_FLASH
|
||||
|
||||
choice
|
||||
prompt "PA/LNA Type of 1st Card"
|
||||
depends on ! MTK_FIRST_IF_NONE
|
||||
default MTK_FIRST_IF_IPAILNA
|
||||
|
||||
config MTK_FIRST_IF_EPAELNA
|
||||
bool "ePAeLNA"
|
||||
config MTK_FIRST_IF_IPAILNA
|
||||
bool "iPAiLNA"
|
||||
config MTK_FIRST_IF_IPAELNA
|
||||
bool "iPAeLNA"
|
||||
endchoice
|
||||
|
||||
menu "Operation Modes for 1st card"
|
||||
choice
|
||||
prompt "Operating mode"
|
||||
default MTK_WIFI_MODE_AP
|
||||
|
||||
config MTK_WIFI_MODE_AP
|
||||
bool "AP"
|
||||
|
||||
config MTK_WIFI_MODE_STA
|
||||
bool "STA"
|
||||
|
||||
config MTK_WIFI_MODE_BOTH
|
||||
bool "AP+STA"
|
||||
#select MTK_MT_STA_SUPPORT
|
||||
endchoice
|
||||
|
||||
source "ap.config.in"
|
||||
|
||||
endmenu
|
||||
endmenu
|
||||
### endmenu for 1st wifi card #######
|
||||
|
||||
#### menu starts for 2nd wifi card ###
|
||||
menu "Second WiFi card"
|
||||
|
||||
choice
|
||||
prompt "Choose Second WiFi card"
|
||||
default MTK_SECOND_IF_MT7615E
|
||||
|
||||
config MTK_SECOND_IF_NONE
|
||||
bool "None"
|
||||
|
||||
config MTK_SECOND_IF_MT7603E
|
||||
bool "MT7603E"
|
||||
select RALINK_MT7603E
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7603E
|
||||
|
||||
config MTK_SECOND_IF_MT7615E
|
||||
bool "MT7615E"
|
||||
select MTK_WIFI_MT_MAC
|
||||
select MTK_MT_MAC
|
||||
select MTK_CHIP_MT7615E
|
||||
endchoice
|
||||
|
||||
config MTK_RT_SECOND_CARD
|
||||
int
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default 7603 if MTK_SECOND_IF_MT7603E
|
||||
default 7615 if MTK_SECOND_IF_MT7615E
|
||||
|
||||
config MTK_MT_WIFI_PATH_SECOND_CARD
|
||||
string "WiFi driver build directory name"
|
||||
default "mt_wifi"
|
||||
|
||||
config MTK_RT_SECOND_IF_RF_OFFSET
|
||||
hex "RF offset of 2nd card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default 0x8000
|
||||
|
||||
#prompt "WiFi detailed options for 2nd card"
|
||||
|
||||
choice
|
||||
prompt "EEPROM Type of 2nd Card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default MTK_SECOND_IF_EEPROM_EFUSE
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_FLASH
|
||||
bool "FLASH"
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_PROM
|
||||
bool "EEPROM"
|
||||
|
||||
config MTK_SECOND_IF_EEPROM_EFUSE
|
||||
bool "EFUSE"
|
||||
endchoice
|
||||
|
||||
config MTK_RT_SECOND_CARD_EEPROM
|
||||
string
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default "prom" if MTK_SECOND_IF_EEPROM_PROM
|
||||
default "efuse" if MTK_SECOND_IF_EEPROM_EFUSE
|
||||
default "flash" if MTK_SECOND_IF_EEPROM_FLASH
|
||||
|
||||
|
||||
choice
|
||||
prompt "PA/LNA Type of 2nd Card"
|
||||
depends on ! MTK_SECOND_IF_NONE
|
||||
default MTK_SECOND_IF_IPAILNA
|
||||
|
||||
config MTK_SECOND_IF_EPAELNA
|
||||
bool "ePAeLNA"
|
||||
config MTK_SECOND_IF_IPAILNA
|
||||
bool "iPAiLNA"
|
||||
config MTK_SECOND_IF_IPAELNA
|
||||
bool "iPAeLNA"
|
||||
endchoice
|
||||
|
||||
|
||||
menu "Operation Modes for 2nd card"
|
||||
choice
|
||||
prompt "Operating mode"
|
||||
default MTK_WIFI_MODE_AP
|
||||
|
||||
config MTK_WIFI_MODE_AP
|
||||
bool "AP"
|
||||
|
||||
config MTK_WIFI_MODE_STA
|
||||
bool "STA"
|
||||
|
||||
config MTK_WIFI_MODE_BOTH
|
||||
bool "AP+STA"
|
||||
endchoice
|
||||
|
||||
source "ap.config.in"
|
||||
|
||||
endmenu
|
||||
|
||||
endmenu
|
||||
### endmenu for 2nd wifi card #######
|
||||
|
||||
|
||||
#### placeholder for 3rd wifi card ###
|
||||
config MTK_THIRD_IF_NONE
|
||||
bool
|
||||
default y
|
||||
|
||||
config MTK_RT_THIRD_CARD
|
||||
int
|
||||
default 0
|
||||
|
||||
config MTK_RT_THIRD_IF_RF_OFFSET
|
||||
hex
|
||||
default 0x4000
|
||||
|
||||
config MTK_RT_THIRD_CARD_EEPROM
|
||||
string
|
||||
default "efuse"
|
||||
### placehlder for 3rd wifi card #######
|
||||
|
||||
|
||||
config MTK_MULTI_INF_SUPPORT
|
||||
bool
|
||||
default y if !MTK_FIRST_IF_NONE && !MTK_SECOND_IF_NONE
|
||||
|
||||
|
||||
source "common.config.in"
|
||||
|
||||
#if MTK_CHIP_MT7615E || MTK_CHIP_MT7622 || MTK_CHIP_MT7626 || MTK_CHIP_AXE || MTK_CHIP_MT7915
|
||||
# config MTK_MT_MAC
|
||||
# bool
|
||||
# default y
|
||||
# select MTK_RATE_ADAPTION
|
||||
# select MTK_RATE_ADAPT_AGBS_SUPPORT
|
||||
# select MTK_DOT11_N_SUPPORT
|
||||
# select MTK_DOT11_VHT_AC
|
||||
# select MTK_HDR_TRANS_TX_SUPPORT
|
||||
# select MTK_HDR_TRANS_RX_SUPPORT
|
||||
#endif
|
||||
|
||||
endif #MTK_WIFI_DRIVER#
|
||||
@@ -11,8 +11,6 @@ PKG_NAME:=multiwan
|
||||
PKG_VERSION:=1.0.22
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/multiwan
|
||||
|
||||
@@ -16,8 +16,6 @@ PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=9e2236989ff58d0db897f938b6b07b535144e0e2
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=PROPRIETARY
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/image.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2019 IOPSYS Software Solutions AB
|
||||
# Copyright (C) 2006-2008 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
@@ -11,7 +14,7 @@ PKG_SOURCE_VERSION:=378c404fba3efc8f1bcde54370a5370670fa1853
|
||||
ifeq ($(CONFIG_NATALIE_OPEN),y)
|
||||
BRCM_KERNEL_PROFILE=$(shell echo $(CONFIG_BCM_KERNEL_PROFILE) | sed s/\"//g)
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(BRCM_KERNEL_PROFILE)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://download.iopsys.eu/iopsys/opensdk/
|
||||
PKG_SOURCE_URL:=http://iopsys.inteno.se/iopsys/consumer/
|
||||
PKG_NAME:=natalie-dect-open
|
||||
else
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
@@ -22,8 +25,6 @@ endif
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
PKG_LICENSE:=PROPRIETARY
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/image.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
@@ -15,9 +15,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=http://www.remlab.net/files/ndisc6
|
||||
PKG_MD5SUM:=50cb4c19606cf6ff2b7388e71832f579
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
36
ndt/Makefile
36
ndt/Makefile
@@ -1,36 +0,0 @@
|
||||
#
|
||||
# This is free software, See /COPYRIGHT for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ndt
|
||||
PKG_VERSION:=3.6.4
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_BUILD_DIR:=${BUILD_DIR}/ndt-$(PKG_VERSION)
|
||||
PKG_SOURCE:=ndt-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://software.internet2.edu/sources/ndt
|
||||
|
||||
PKG_LICENSE:=NONSTANDARD_PERMISSIV
|
||||
PKG_LICENSE_FILES:=COPYRIGHT
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/ndt
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=+libpthread +zlib
|
||||
TITLE:=Network Testing Tool
|
||||
endef
|
||||
|
||||
define Build/Compile/Default
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Package/ndt/install
|
||||
$(INSTALL_DIR) $(1)/sbin
|
||||
$(CP) $(PKG_BUILD_DIR)/src/web100clt $(1)/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,ndt))
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
#
|
||||
# Copyright (C) 2019 iopsys
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=netmode
|
||||
PKG_VERSION:=0.2.0
|
||||
|
||||
PKG_SOURCE_VERSION:=6406325e72d7ddd0ff7aaa3a87669519021bdb11
|
||||
PKG_SOURCE_VERSION:=9fa23664b3bdd963e4556f5921c9f9be1c9c578f
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/netmoded
|
||||
|
||||
@@ -18,9 +11,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/netmode
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user