From d888c21df67c5f2e424fa2955849890ac4a66be8 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 30 May 2016 00:54:43 +0200 Subject: [PATCH] add support for LEDE * replace: * OpenWrt -> LEDE * OPENWRT -> LEDE * openwrt -> lede * fix imagebuilder/toolchain/sdk file name because it's now lowercase * refresh patches * use LEDE-17.01-commit of 2017-02-16 * use lede-17.01 feeds of 2017-02-16 * change feed url from git -> https:// * rename ar71xx -> ar71xx_generic Signed-off-by: Alexander Couzens This is backported and updated to the master-branch. orginal commit was cd1ae9b81daea5234dca77b5e14c491378cc215c * refresh all software * change NAME and VERSION to reflect LEDE-branch-build * according to proposal: https://github.com/freifunk-berlin/firmware/issues/24#issuecomment-269655041 * profiles: update new default of ar71xx-mikrotik * LEDE: "ar71xx: create a proper default profile for the mikrotik subtarget, drop other profiles" (e53e44a0ad4873645c7a22) * remove luci-bootstrap-input-css.patch, as this was fixed upstream * remove add_package_snmp-mibs.patch went upstream Signed-off-by: Sven Roederer --- .gitignore | 1 + Makefile | 108 +++---- config.mk | 4 +- configs/common.config | 5 +- feeds.conf | 10 +- patches/000-fix-mt7620-failsafe.patch | 17 -- patches/003-add_tpl-wr842v3.patch | 275 ----------------- patches/004-add_GL-AR150.patch | 322 -------------------- patches/005-add_GL-AR300.patch | 274 ----------------- patches/006-add_GL-DominoPi.patch | 299 ------------------ patches/007-add_GL-MT300A.patch | 281 ----------------- patches/008-add_GL-MT300N.patch | 266 ---------------- patches/009-add_GL-MT750.patch | 282 ----------------- patches/010-tpl-CPE_enable_LNA.patch | 35 --- patches/011-tpl-wr841_names.patch | 88 ------ patches/012-iwinfo_add_nsm2locoxm.patch | 8 - patches/100-add_package_snmp-mibs.patch | 62 ---- patches/200-update-community-profiles.patch | 161 ---------- patches/702-luci-bootstrap-input-css.patch | 17 -- patches/series | 14 - profiles/ar71xx-mikrotik.profiles | 2 +- 21 files changed, 66 insertions(+), 2465 deletions(-) delete mode 100644 patches/000-fix-mt7620-failsafe.patch delete mode 100644 patches/003-add_tpl-wr842v3.patch delete mode 100644 patches/004-add_GL-AR150.patch delete mode 100644 patches/005-add_GL-AR300.patch delete mode 100644 patches/006-add_GL-DominoPi.patch delete mode 100644 patches/007-add_GL-MT300A.patch delete mode 100644 patches/008-add_GL-MT300N.patch delete mode 100644 patches/009-add_GL-MT750.patch delete mode 100644 patches/010-tpl-CPE_enable_LNA.patch delete mode 100644 patches/011-tpl-wr841_names.patch delete mode 100644 patches/012-iwinfo_add_nsm2locoxm.patch delete mode 100644 patches/100-add_package_snmp-mibs.patch delete mode 100644 patches/200-update-community-profiles.patch delete mode 100644 patches/702-luci-bootstrap-input-css.patch diff --git a/.gitignore b/.gitignore index 980b566fff..e9cfed3d0a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ patches/*~ bin openwrt +/lede/ firmwares dl diff --git a/Makefile b/Makefile index 1cb3b71110..19cac57f52 100644 --- a/Makefile +++ b/Makefile @@ -10,13 +10,13 @@ REVISION=git describe --always # set dir and file names FW_DIR=$(shell pwd) -OPENWRT_DIR=$(FW_DIR)/openwrt +LEDE_DIR=$(FW_DIR)/lede TARGET_CONFIG=$(FW_DIR)/configs/common.config $(FW_DIR)/configs/$(TARGET).config IB_BUILD_DIR=$(FW_DIR)/imgbldr_tmp FW_TARGET_DIR=$(FW_DIR)/firmwares/$(TARGET) UMASK=umask 022 -# if any of the following files have been changed: clean up openwrt dir +# if any of the following files have been changed: clean up lede dir DEPS=$(TARGET_CONFIG) feeds.conf patches $(wildcard patches/*) # profiles to be built (router models) @@ -26,40 +26,40 @@ FW_REVISION=$(shell $(REVISION)) default: firmwares -# clone openwrt -$(OPENWRT_DIR): - git clone $(OPENWRT_SRC) $(OPENWRT_DIR) +# clone lede +$(LEDE_DIR): + git clone $(LEDE_SRC) $(LEDE_DIR) -# clean up openwrt working copy -openwrt-clean: stamp-clean-openwrt-cleaned .stamp-openwrt-cleaned -.stamp-openwrt-cleaned: config.mk | $(OPENWRT_DIR) openwrt-clean-bin - cd $(OPENWRT_DIR); \ +# clean up lede working copy +lede-clean: stamp-clean-lede-cleaned .stamp-lede-cleaned +.stamp-lede-cleaned: config.mk | $(LEDE_DIR) lede-clean-bin + cd $(LEDE_DIR); \ ./scripts/feeds clean && \ git clean -dff && git fetch && git reset --hard HEAD && \ rm -rf .config feeds.conf build_dir/target-* logs/ touch $@ -openwrt-clean-bin: - rm -rf $(OPENWRT_DIR)/bin +lede-clean-bin: + rm -rf $(LEDE_DIR)/bin -# update openwrt and checkout specified commit -openwrt-update: stamp-clean-openwrt-updated .stamp-openwrt-updated -.stamp-openwrt-updated: .stamp-openwrt-cleaned - cd $(OPENWRT_DIR); git checkout --detach $(OPENWRT_COMMIT) +# update lede and checkout specified commit +lede-update: stamp-clean-lede-updated .stamp-lede-updated +.stamp-lede-updated: .stamp-lede-cleaned + cd $(LEDE_DIR); git checkout --detach $(LEDE_COMMIT) touch $@ -# patches require updated openwrt working copy -$(OPENWRT_DIR)/patches: | .stamp-openwrt-updated +# patches require updated lede working copy +$(LEDE_DIR)/patches: | .stamp-lede-updated ln -s $(FW_DIR)/patches $@ # feeds -$(OPENWRT_DIR)/feeds.conf: .stamp-openwrt-updated feeds.conf +$(LEDE_DIR)/feeds.conf: .stamp-lede-updated feeds.conf cp $(FW_DIR)/feeds.conf $@ # update feeds feeds-update: stamp-clean-feeds-updated .stamp-feeds-updated -.stamp-feeds-updated: $(OPENWRT_DIR)/feeds.conf unpatch - +cd $(OPENWRT_DIR); \ +.stamp-feeds-updated: $(LEDE_DIR)/feeds.conf unpatch + +cd $(LEDE_DIR); \ ./scripts/feeds uninstall -a && \ ./scripts/feeds update && \ ./scripts/feeds install -a @@ -67,13 +67,13 @@ feeds-update: stamp-clean-feeds-updated .stamp-feeds-updated # prepare patch pre-patch: stamp-clean-pre-patch .stamp-pre-patch -.stamp-pre-patch: .stamp-feeds-updated $(wildcard $(FW_DIR)/patches/*) | $(OPENWRT_DIR)/patches +.stamp-pre-patch: .stamp-feeds-updated $(wildcard $(FW_DIR)/patches/*) | $(LEDE_DIR)/patches touch $@ -# patch openwrt working copy +# patch lede working copy patch: stamp-clean-patched .stamp-patched .stamp-patched: .stamp-pre-patch - cd $(OPENWRT_DIR); quilt push -a + cd $(LEDE_DIR); quilt push -a touch $@ .stamp-build_rev: .FORCE @@ -88,31 +88,31 @@ endif # share download dir $(FW_DIR)/dl: mkdir $(FW_DIR)/dl -$(OPENWRT_DIR)/dl: $(FW_DIR)/dl - ln -s $(FW_DIR)/dl $(OPENWRT_DIR)/dl +$(LEDE_DIR)/dl: $(FW_DIR)/dl + ln -s $(FW_DIR)/dl $(LEDE_DIR)/dl -# make embedded-files avail to openwrt -$(OPENWRT_DIR)/files: $(FW_DIR)/embedded-files - ln -s $(FW_DIR)/embedded-files $(OPENWRT_DIR)/files +# make embedded-files avail to lede +$(LEDE_DIR)/files: $(FW_DIR)/embedded-files + ln -s $(FW_DIR)/embedded-files $(LEDE_DIR)/files -# openwrt config -$(OPENWRT_DIR)/.config: .stamp-patched $(TARGET_CONFIG) .stamp-build_rev $(OPENWRT_DIR)/dl - cat $(TARGET_CONFIG) >$(OPENWRT_DIR)/.config - sed -i "/^CONFIG_VERSION_NUMBER=/ s/\"$$/\+$(FW_REVISION)\"/" $(OPENWRT_DIR)/.config +# lede config +$(LEDE_DIR)/.config: .stamp-patched $(TARGET_CONFIG) .stamp-build_rev $(LEDE_DIR)/dl + cat $(TARGET_CONFIG) >$(LEDE_DIR)/.config + sed -i "/^CONFIG_VERSION_NUMBER=/ s/\"$$/\+$(FW_REVISION)\"/" $(LEDE_DIR)/.config $(UMASK); \ - $(MAKE) -C $(OPENWRT_DIR) defconfig + $(MAKE) -C $(LEDE_DIR) defconfig -# prepare openwrt working copy -prepare: stamp-clean-prepared .stamp-prepared $(OPENWRT_DIR)/files -.stamp-prepared: .stamp-patched $(OPENWRT_DIR)/.config - sed -i 's,^# REVISION:=.*,REVISION:=$(FW_REVISION),g' $(OPENWRT_DIR)/include/version.mk +# prepare lede working copy +prepare: stamp-clean-prepared .stamp-prepared $(LEDE_DIR)/files +.stamp-prepared: .stamp-patched $(LEDE_DIR)/.config + sed -i 's,^# REVISION:=.*,REVISION:=$(FW_REVISION),g' $(LEDE_DIR)/include/version.mk touch $@ # compile compile: stamp-clean-compiled .stamp-compiled -.stamp-compiled: .stamp-prepared openwrt-clean-bin +.stamp-compiled: .stamp-prepared lede-clean-bin $(UMASK); \ - $(MAKE) -C $(OPENWRT_DIR) $(MAKE_ARGS) + $(MAKE) -C $(LEDE_DIR) $(MAKE_ARGS) touch $@ # fill firmwares-directory with: @@ -123,8 +123,8 @@ firmwares: stamp-clean-firmwares .stamp-firmwares .stamp-firmwares: .stamp-compiled rm -rf $(IB_BUILD_DIR) mkdir -p $(IB_BUILD_DIR) - $(eval TOOLCHAIN_PATH := $(shell printf "%s:" $(OPENWRT_DIR)/staging_dir/toolchain-*/bin)) - $(eval IB_FILE := $(shell ls -tr $(OPENWRT_DIR)/bin/$(MAINTARGET)/OpenWrt-ImageBuilder-*.tar.bz2 | tail -n1)) + $(eval TOOLCHAIN_PATH := $(shell printf "%s:" $(LEDE_DIR)/staging_dir/toolchain-*/bin)) + $(eval IB_FILE := $(shell ls -tr $(LEDE_DIR)/bin/targets/$(MAINTARGET)/$(SUBTARGET)/*-imagebuilder-*.tar.bz2 | tail -n1)) mkdir -p $(FW_TARGET_DIR) # Create version info file GIT_BRANCH_ESC=$(shell $(GIT_BRANCH) | tr '/' '_'); \ @@ -132,12 +132,12 @@ firmwares: stamp-clean-firmwares .stamp-firmwares echo "https://github.com/freifunk-berlin/firmware" > $$VERSION_FILE; \ echo "https://wiki.freifunk.net/Berlin:Firmware" >> $$VERSION_FILE; \ echo "Firmware: git branch \"$$GIT_BRANCH_ESC\", revision $(FW_REVISION)" >> $$VERSION_FILE; \ - # add openwrt revision with data from config.mk \ - OPENWRT_REVISION=`cd $(OPENWRT_DIR); $(REVISION)`; \ - echo "OpenWRT: repository from $(OPENWRT_SRC), git branch \"$(OPENWRT_COMMIT)\", revision $$OPENWRT_REVISION" >> $$VERSION_FILE; \ + # add lede revision with data from config.mk \ + LEDE_REVISION=`cd $(LEDE_DIR); $(REVISION)`; \ + echo "OpenWRT: repository from $(LEDE_SRC), git branch \"$(LEDE_COMMIT)\", revision $$LEDE_REVISION" >> $$VERSION_FILE; \ # add feed revisions \ - for FEED in `cd $(OPENWRT_DIR); ./scripts/feeds list -n`; do \ - FEED_DIR=$(addprefix $(OPENWRT_DIR)/feeds/,$$FEED); \ + for FEED in `cd $(LEDE_DIR); ./scripts/feeds list -n`; do \ + FEED_DIR=$(addprefix $(LEDE_DIR)/feeds/,$$FEED); \ FEED_GIT_REPO=`cd $$FEED_DIR; $(GIT_REPO)`; \ FEED_GIT_BRANCH_ESC=`cd $$FEED_DIR; $(GIT_BRANCH) | tr '/' '_'`; \ FEED_REVISION=`cd $$FEED_DIR; $(REVISION)`; \ @@ -156,12 +156,12 @@ firmwares: stamp-clean-firmwares .stamp-firmwares for file in `find $(RELPATH) -name "openwrt-*"` ; do mv $$file $${file/openwrt-/kathleen-}; done # copy imagebuilder, sdk and toolchain (if existing) # remove old versions - rm -f $(FW_TARGET_DIR)/OpenWrt-*.tar.bz2 - cp -a $(OPENWRT_DIR)/bin/$(MAINTARGET)/OpenWrt-*.tar.bz2 $(FW_TARGET_DIR)/ + rm -f $(FW_TARGET_DIR)/*.tar.bz2 + cp -a $(LEDE_DIR)/bin/targets/$(MAINTARGET)/$(SUBTARGET)/*{imagebuilder,sdk,toolchain}*.tar.bz2 $(FW_TARGET_DIR)/ # copy packages PACKAGES_DIR="$(FW_TARGET_DIR)/packages"; \ rm -rf $$PACKAGES_DIR; \ - cp -a $(OPENWRT_DIR)/bin/$(MAINTARGET)/packages $$PACKAGES_DIR + cp -a $(LEDE_DIR)/bin/$(MAINTARGET)/$(SUBTARGET)/packages $$PACKAGES_DIR rm -rf $(IB_BUILD_DIR) touch $@ @@ -171,14 +171,14 @@ stamp-clean-%: stamp-clean: rm -f .stamp-* -# unpatch needs "patches/" in openwrt -unpatch: $(OPENWRT_DIR)/patches +# unpatch needs "patches/" in lede +unpatch: $(LEDE_DIR)/patches # RC = 2 of quilt --> nothing to be done - cd $(OPENWRT_DIR); quilt pop -a -f || [ $$? = 2 ] && true + cd $(LEDE_DIR); quilt pop -a -f || [ $$? = 2 ] && true rm -f .stamp-patched -clean: stamp-clean .stamp-openwrt-cleaned +clean: stamp-clean .stamp-lede-cleaned -.PHONY: openwrt-clean openwrt-clean-bin openwrt-update patch feeds-update prepare compile firmwares stamp-clean clean +.PHONY: lede-clean lede-clean-bin lede-update patch feeds-update prepare compile firmwares stamp-clean clean .NOTPARALLEL: .FORCE: diff --git a/config.mk b/config.mk index d44350ac0f..ab8aa433bc 100644 --- a/config.mk +++ b/config.mk @@ -2,6 +2,6 @@ SHELL:=$(shell which bash) TARGET=ar71xx-generic PACKAGES_LIST_DEFAULT=default backbone -OPENWRT_SRC=git://github.com/openwrt/openwrt.git -OPENWRT_COMMIT=1b6dc2e48ce654a004a7d0b98d7070a515424595 +LEDE_SRC=https://git.lede-project.org/source.git +LEDE_COMMIT=25b7295617cc6b2e317ef970d6d8d04ada49822c MAKE_ARGS= diff --git a/configs/common.config b/configs/common.config index 78bb02704b..4a1b3f0374 100644 --- a/configs/common.config +++ b/configs/common.config @@ -172,8 +172,9 @@ CONFIG_VERSIONOPT=y CONFIG_VERSION_DIST="Freifunk Berlin" CONFIG_VERSION_HWREV="" CONFIG_VERSION_MANUFACTURER="" -CONFIG_VERSION_NICK="Kathleen" -CONFIG_VERSION_NUMBER="experimental" +CONFIG_VERSION_NICK="Hedy" +CONFIG_VERSION_NUMBER="0.3.0-alpha" +CONFIG_VERSION_CODE="" CONFIG_VERSION_PRODUCT="" CONFIG_VERSION_REPO="http://buildbot.berlin.freifunk.net/buildbot/stable/%V/%T/packages" # CONFIG_OPENVPN_polarssl_ENABLE_DEF_AUTH is not set diff --git a/feeds.conf b/feeds.conf index 5a9cee991f..48208a658a 100644 --- a/feeds.conf +++ b/feeds.conf @@ -1,11 +1,11 @@ -src-git packages git://github.com/openwrt/packages.git^e3e9f341e605a06d3c79b8530341a30df57d9d3f -src-git luci git://github.com/openwrt/luci.git^90474569d218cefb789f0c9cd804ccde44b532da -src-git routing git://github.com/openwrt-routing/packages.git^d580d71309f0867022ab7f47badb8c2a1860fc83 -src-git packages_berlin git://github.com/freifunk-berlin/firmware-packages.git^34d859b8eb5e7e56738a3de6bcc74e8f31072f18 +src-git packages https://github.com/openwrt/packages.git^f492265424992e064ee5732b7d0e869d652a6385 +src-git luci https://github.com/openwrt/luci.git^f535090ffcbe3e0fbb394eb443cc65d6ddb8cefa +src-git routing https://github.com/openwrt-routing/packages.git^dd36dd47bbd75defcb3c517cafe7a19ee425f0af +src-git packages_berlin https://github.com/freifunk-berlin/firmware-packages.git^3186386056cf52ebea3c7298b0a57fa8eafc851e ## # just for reference (syntax of different feed-sources) # see https://wiki.openwrt.org/doc/devel/feeds for more info ## -#src-git packages_berlin git://github.com/freifunk-berlin/firmware-packages.git;master +#src-git packages_berlin https://github.com/freifunk-berlin/firmware-packages.git;master #src-link packages_berlin ../../../firmware-packages diff --git a/patches/000-fix-mt7620-failsafe.patch b/patches/000-fix-mt7620-failsafe.patch deleted file mode 100644 index 6c5bc398b2..0000000000 --- a/patches/000-fix-mt7620-failsafe.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: openwrt/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips -=================================================================== ---- openwrt.orig/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips -+++ openwrt/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips -@@ -26,6 +26,12 @@ ramips_set_preinit_iface() { - vconfig add eth0 1 - ifconfig eth0 up - ifname=eth0.1 -+ elif grep MT7620 /proc/cpuinfo; then -+ # from https://dev.openwrt.org/ticket/18768#comment:5 -+ swconfig dev mt7620 set reset 1 -+ swconfig dev mt7620 set enable_vlan 0 -+ swconfig dev mt7620 set apply -+ ifname=eth0 - else - ifname=eth0 - fi diff --git a/patches/003-add_tpl-wr842v3.patch b/patches/003-add_tpl-wr842v3.patch deleted file mode 100644 index e18b79fc6c..0000000000 --- a/patches/003-add_tpl-wr842v3.patch +++ /dev/null @@ -1,275 +0,0 @@ -commit 4f495c236f7a288810d1b51663b0b53081587cb9 -Author: Sven Roederer -Date: Fri May 20 23:29:08 2016 +0200 - - ar71xx: add support for TP-LINK TL-WR842N/ND v3 - - - CPU QCA9531-BL3A - - RAM: 64MB - - flash: 16MB - - USB - - AP143 platform, similar to tl-wr841n v10/v11, but with USB - - modified for OpenWRT-CC from LEDE-Project 0b45bec22c59cc6e6b2fa71dc9a88386c5587132 - -Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/diag.sh -+++ openwrt/target/linux/ar71xx/base-files/etc/diag.sh -@@ -280,6 +280,7 @@ get_status_led() { - tl-wr841n-v11 | \ - tl-wa830re-v2 | \ - tl-wr842n-v2 | \ -+ tl-wr842n-v3 | \ - tl-wr941nd | \ - tl-wr941nd-v5) - status_led="tp-link:green:system" -Index: openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -+++ openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -@@ -519,6 +519,16 @@ tl-wr842n-v2) - ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" - ;; - -+tl-wr842n-v3) -+ ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1" -+ ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10" -+ ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08" -+ ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04" -+ ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02" -+ ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" -+ ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" -+ ;; -+ - tl-wa801nd-v2 | \ - tl-wa901nd-v3) - ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0" -Index: openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -+++ openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -@@ -440,6 +440,7 @@ tl-wr741nd-v4 |\ - tl-wr841n-v7 |\ - tl-wr841n-v9 |\ - tl-wr841n-v11 |\ -+tl-wr842n-v3 |\ - whr-g301n |\ - whr-hp-g300n |\ - whr-hp-gn |\ -Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh -+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -@@ -821,6 +821,9 @@ ar71xx_board_detect() { - *"TL-WR842N/ND v2") - name="tl-wr842n-v2" - ;; -+ *"TL-WR842N/ND v3") -+ name="tl-wr842n-v3" -+ ;; - *TL-WR941ND) - name="tl-wr941nd" - ;; -Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -@@ -360,6 +360,7 @@ platform_check_image() { - tl-wr841n-v9 | \ - tl-wr841n-v11 | \ - tl-wr842n-v2 | \ -+ tl-wr842n-v3 | \ - tl-wr941nd | \ - tl-wr941nd-v5 | \ - tl-wr941nd-v6 | \ -Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c -=================================================================== ---- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c -+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c -@@ -1,5 +1,5 @@ - /* -- * TP-LINK TL-WR841N/ND v9/v11 -+ * TP-LINK TL-WR841N/ND v9/v11/TL-WR842N/ND v3 - * - * Copyright (C) 2014 Matthias Schiffer - * Copyright (C) 2016 Cezary Jackiewicz -@@ -49,6 +49,20 @@ - #define TL_WR841NV11_GPIO_BTN_RESET 12 - #define TL_WR841NV11_GPIO_BTN_WIFI 17 - -+#define TL_WR842NV3_GPIO_LED_SYSTEM 2 -+#define TL_WR842NV3_GPIO_LED_WLAN 3 -+#define TL_WR842NV3_GPIO_LED_WAN_RED 4 -+#define TL_WR842NV3_GPIO_LED_WAN_GREEN 11 -+#define TL_WR842NV3_GPIO_LED_LAN1 12 -+#define TL_WR842NV3_GPIO_LED_LAN2 13 -+#define TL_WR842NV3_GPIO_LED_LAN3 14 -+#define TL_WR842NV3_GPIO_LED_LAN4 15 -+#define TL_WR842NV3_GPIO_LED_3G 16 -+#define TL_WR842NV3_GPIO_LED_WPS 17 -+ -+#define TL_WR842NV3_GPIO_BTN_RESET 1 -+#define TL_WR842NV3_GPIO_BTN_WIFI 0 -+ - #define TL_WR841NV9_KEYS_POLL_INTERVAL 20 /* msecs */ - #define TL_WR841NV9_KEYS_DEBOUNCE_INTERVAL (3 * TL_WR841NV9_KEYS_POLL_INTERVAL) - -@@ -151,6 +165,68 @@ static struct gpio_led tl_wr841n_v11_led - }, - }; - -+static struct gpio_led tl_wr842n_v3_leds_gpio[] __initdata = { -+ { -+ .name = "tp-link:green:lan1", -+ .gpio = TL_WR842NV3_GPIO_LED_LAN1, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:green:lan2", -+ .gpio = TL_WR842NV3_GPIO_LED_LAN2, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:green:lan3", -+ .gpio = TL_WR842NV3_GPIO_LED_LAN3, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:green:lan4", -+ .gpio = TL_WR842NV3_GPIO_LED_LAN4, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:green:wan", -+ .gpio = TL_WR842NV3_GPIO_LED_WAN_GREEN, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:red:wan", -+ .gpio = TL_WR842NV3_GPIO_LED_WAN_RED, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:green:wlan", -+ .gpio = TL_WR842NV3_GPIO_LED_WLAN, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:green:system", -+ .gpio = TL_WR842NV3_GPIO_LED_SYSTEM, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:green:3g", -+ .gpio = TL_WR842NV3_GPIO_LED_3G, -+ .active_low = 1, -+ }, { -+ .name = "tp-link:green:wps", -+ .gpio = TL_WR842NV3_GPIO_LED_WPS, -+ .active_low = 1, -+ }, -+}; -+ -+static struct gpio_keys_button tl_wr842n_v3_gpio_keys[] __initdata = { -+ { -+ .desc = "Reset button", -+ .type = EV_KEY, -+ .code = KEY_RESTART, -+ .debounce_interval = TL_WR841NV9_KEYS_DEBOUNCE_INTERVAL, -+ .gpio = TL_WR842NV3_GPIO_BTN_RESET, -+ .active_low = 1, -+ }, { -+ .desc = "WIFI button", -+ .type = EV_KEY, -+ .code = KEY_RFKILL, -+ .debounce_interval = TL_WR841NV9_KEYS_DEBOUNCE_INTERVAL, -+ .gpio = TL_WR842NV3_GPIO_BTN_WIFI, -+ .active_low = 1, -+ } -+}; -+ - static void __init tl_ap143_setup(void) - { - u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); -@@ -212,3 +288,21 @@ static void __init tl_wr841n_v11_setup(v - - MIPS_MACHINE(ATH79_MACH_TL_WR841N_V11, "TL-WR841N-v11", "TP-LINK TL-WR841N/ND v11", - tl_wr841n_v11_setup); -+ -+static void __init tl_wr842n_v3_setup(void) -+{ -+ tl_ap143_setup(); -+ -+ ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr842n_v3_leds_gpio), -+ tl_wr842n_v3_leds_gpio); -+ -+ ath79_register_gpio_keys_polled(1, TL_WR841NV9_KEYS_POLL_INTERVAL, -+ ARRAY_SIZE(tl_wr842n_v3_gpio_keys), -+ tl_wr842n_v3_gpio_keys); -+ -+ ath79_register_usb(); -+} -+ -+MIPS_MACHINE(ATH79_MACH_TL_WR842N_V3, "TL-WR842N-v3", "TP-LINK TL-WR842N/ND v3", -+ tl_wr842n_v3_setup); -+ -Index: openwrt/target/linux/ar71xx/image/Makefile -=================================================================== ---- openwrt.orig/target/linux/ar71xx/image/Makefile -+++ openwrt/target/linux/ar71xx/image/Makefile -@@ -590,6 +590,13 @@ define Device/tl-wr842n-v2 - TPLINK_HWID := 0x8420002 - endef - -+define Device/tl-wr842n-v3 -+ $(Device/tplink-16mlzma) -+ BOARDNAME := TL-WR842N-v3 -+ DEVICE_PROFILE := TLWR842 -+ TPLINK_HWID := 0x08420003 -+endef -+ - define Device/tl-wr843nd-v1 - $(Device/tplink-4mlzma) - BOARDNAME := TL-WR841N-v8 -@@ -603,7 +610,7 @@ define Device/tl-wr847n-v8 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08470008 - endef --TARGET_DEVICES += tl-wr841n-v8 tl-wr841n-v9 tl-wr841n-v10 tl-wr841n-v11 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8 -+TARGET_DEVICES += tl-wr841n-v8 tl-wr841n-v9 tl-wr841n-v10 tl-wr841n-v11 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8 - - define Device/tl-wr941nd-v5 - $(Device/tplink-4mlzma) -Index: openwrt/target/linux/ar71xx/patches-3.18/912-MIPS-ath79-add-tl_wr842v3.patch -=================================================================== ---- /dev/null -+++ openwrt/target/linux/ar71xx/patches-3.18/912-MIPS-ath79-add-tl_wr842v3.patch -@@ -0,0 +1,34 @@ -+--- a/arch/mips/ath79/Kconfig -++++ b/arch/mips/ath79/Kconfig -+@@ -1314,13 +1314,14 @@ config ATH79_MACH_TL_WR841N_V8 -+ select ATH79_DEV_WMAC -+ -+ config ATH79_MACH_TL_WR841N_V9 -+- bool "TP-LINK TL-WR841N/ND v9 support" -+- select SOC_QCA953X -+- select ATH79_DEV_ETH -+- select ATH79_DEV_GPIO_BUTTONS -+- select ATH79_DEV_LEDS_GPIO -+- select ATH79_DEV_M25P80 -+- select ATH79_DEV_WMAC -++ bool "TP-LINK TL-WR841N/ND v9/TL-WR842N/ND v3 support" -++ select SOC_QCA953X -++ select ATH79_DEV_ETH -++ select ATH79_DEV_GPIO_BUTTONS -++ select ATH79_DEV_LEDS_GPIO -++ select ATH79_DEV_M25P80 -++ select ATH79_DEV_USB -++ select ATH79_DEV_WMAC -+ -+ config ATH79_MACH_TL_WR941ND -+ bool "TP-LINK TL-WR941ND support"--- a/arch/mips/ath79/machtypes.h -+--- a/arch/mips/ath79/machtypes.h -++++ b/arch/mips/ath79/machtypes.h -+@@ -171,6 +171,7 @@ -+ ATH79_MACH_TL_WR841N_V8, /* TP-LINK TL-WR841N/ND v8 */ -+ ATH79_MACH_TL_WR841N_V9, /* TP-LINK TL-WR841N/ND v9 */ -+ ATH79_MACH_TL_WR842N_V2, /* TP-LINK TL-WR842N/ND v2 */ -++ ATH79_MACH_TL_WR842N_V3, /* TP-LINK TL-WR842N/ND v3 */ -+ ATH79_MACH_TL_WR941ND, /* TP-LINK TL-WR941ND */ -+ ATH79_MACH_TL_WR941ND_V5, /* TP-LINK TL-WR941ND v5 */ -+ ATH79_MACH_TL_WR941ND_V6, /* TP-LINK TL-WR941ND v6 */ diff --git a/patches/004-add_GL-AR150.patch b/patches/004-add_GL-AR150.patch deleted file mode 100644 index 5f9719960a..0000000000 --- a/patches/004-add_GL-AR150.patch +++ /dev/null @@ -1,322 +0,0 @@ -commit e466da52e3ac0fca93cfb3bd10da7582c7e3e28d -Author: alzhao@gmail.com -Date: Thu May 5 11:02:05 2016 +0800 - - ar71xx: add GL-AR150 support - - Backport of changeset 47620, add support of GL-AR150 to cc - - Signed-off-by: Alfie Zhao - -Index: openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -+++ openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -@@ -188,6 +188,10 @@ dlan-pro-1200-ac) - ucidef_set_led_trigger_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0" - ;; - -+gl-ar150) -+ ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt" -+ ;; -+ - gl-inet) - ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1" - ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt" -Index: openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -+++ openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -@@ -382,6 +382,7 @@ dir-505-a1) - alfa-ap96 |\ - alfa-nx |\ - ap83 |\ -+gl-ar150 |\ - gl-inet |\ - jwap003 |\ - pb42 |\ -Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh -+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -@@ -461,6 +461,9 @@ ar71xx_board_detect() { - name="gl-inet" - gl_inet_board_detect - ;; -+ *"GL-AR150") -+ name="gl-ar150" -+ ;; - *"EnGenius EPG5000") - name="epg5000" - ;; -Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -@@ -212,6 +212,7 @@ platform_check_image() { - dlan-pro-500-wp | \ - dlan-pro-1200-ac | \ - dragino2 | \ -+ gl-ar150 | \ - epg5000 | \ - esr1750 | \ - esr900 | \ -Index: openwrt/target/linux/ar71xx/config-3.18 -=================================================================== ---- openwrt.orig/target/linux/ar71xx/config-3.18 -+++ openwrt/target/linux/ar71xx/config-3.18 -@@ -70,6 +70,7 @@ CONFIG_ATH79_MACH_ESR1750=y - CONFIG_ATH79_MACH_ESR900=y - CONFIG_ATH79_MACH_EW_DORIN=y - CONFIG_ATH79_MACH_F9K1115V2=y -+CONFIG_ATH79_MACH_GL_AR150=y - CONFIG_ATH79_MACH_GL_INET=y - CONFIG_ATH79_MACH_GS_MINIBOX_V1=y - CONFIG_ATH79_MACH_GS_OOLITE=y -Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c -=================================================================== ---- /dev/null -+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c -@@ -0,0 +1,125 @@ -+/* -+ * GL_ar150 board support -+ * -+ * Copyright (C) 2011 dongyuqi <729650915@qq.com> -+ * Copyright (C) 2011-2012 Gabor Juhos -+ * Copyright (C) 2013 alzhao -+ * Copyright (C) 2014 Michel Stempin -+ * -+ * 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. -+*/ -+ -+#include -+ -+#include -+ -+#include "dev-eth.h" -+#include "dev-gpio-buttons.h" -+#include "dev-leds-gpio.h" -+#include "dev-m25p80.h" -+#include "dev-usb.h" -+#include "dev-wmac.h" -+#include "machtypes.h" -+ -+#define GL_AR150_GPIO_LED_WLAN 0 -+#define GL_AR150_GPIO_LED_LAN 13 -+#define GL_AR150_GPIO_LED_WAN 15 -+ -+#define GL_AR150_GPIO_BIN_USB 6 -+#define GL_AR150_GPIO_BTN_MANUAL 7 -+#define GL_AR150_GPIO_BTN_AUTO 8 -+#define GL_AR150_GPIO_BTN_RESET 11 -+ -+#define GL_AR150_KEYS_POLL_INTERVAL 20 /* msecs */ -+#define GL_AR150_KEYS_DEBOUNCE_INTERVAL (3 * GL_AR150_KEYS_POLL_INTERVAL) -+ -+#define GL_AR150_MAC0_OFFSET 0x0000 -+#define GL_AR150_MAC1_OFFSET 0x0000 -+#define GL_AR150_CALDATA_OFFSET 0x1000 -+#define GL_AR150_WMAC_MAC_OFFSET 0x0000 -+ -+static struct gpio_led gl_ar150_leds_gpio[] __initdata = { -+ { -+ .name = "gl_ar150:wlan", -+ .gpio = GL_AR150_GPIO_LED_WLAN, -+ .active_low = 0, -+ }, -+ { -+ .name = "gl_ar150:lan", -+ .gpio = GL_AR150_GPIO_LED_LAN, -+ .active_low = 0, -+ }, -+ { -+ .name = "gl_ar150:wan", -+ .gpio = GL_AR150_GPIO_LED_WAN, -+ .active_low = 0, -+ .default_state = 1, -+ }, -+}; -+ -+static struct gpio_keys_button gl_ar150_gpio_keys[] __initdata = { -+ { -+ .desc = "BTN_7", -+ .type = EV_KEY, -+ .code = BTN_7, -+ .debounce_interval = GL_AR150_KEYS_DEBOUNCE_INTERVAL, -+ .gpio = GL_AR150_GPIO_BTN_MANUAL, -+ .active_low = 0, -+ }, -+ { -+ .desc = "BTN_8", -+ .type = EV_KEY, -+ .code = BTN_8, -+ .debounce_interval = GL_AR150_KEYS_DEBOUNCE_INTERVAL, -+ .gpio = GL_AR150_GPIO_BTN_AUTO, -+ .active_low = 0, -+ }, -+ { -+ .desc = "reset", -+ .type = EV_KEY, -+ .code = KEY_RESTART, -+ .debounce_interval = GL_AR150_KEYS_DEBOUNCE_INTERVAL, -+ .gpio = GL_AR150_GPIO_BTN_RESET, -+ .active_low = 0, -+ }, -+}; -+ -+static void __init gl_ar150_setup(void) -+{ -+ -+ /* ART base address */ -+ u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); -+ -+ /* disable PHY_SWAP and PHY_ADDR_SWAP bits */ -+ ath79_setup_ar933x_phy4_switch(false, false); -+ -+ /* register flash. */ -+ ath79_register_m25p80(NULL); -+ -+ /* register gpio LEDs and keys */ -+ ath79_register_leds_gpio(-1, ARRAY_SIZE(gl_ar150_leds_gpio), -+ gl_ar150_leds_gpio); -+ ath79_register_gpio_keys_polled(-1, GL_AR150_KEYS_POLL_INTERVAL, -+ ARRAY_SIZE(gl_ar150_gpio_keys), -+ gl_ar150_gpio_keys); -+ -+ /* enable usb */ -+ gpio_request_one(GL_AR150_GPIO_BIN_USB, -+ GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, -+ "USB power"); -+ ath79_register_usb(); -+ -+ /* register eth0 as WAN, eth1 as LAN */ -+ ath79_init_mac(ath79_eth0_data.mac_addr, art+GL_AR150_MAC0_OFFSET, 0); -+ ath79_init_mac(ath79_eth1_data.mac_addr, art+GL_AR150_MAC1_OFFSET, 0); -+ ath79_register_mdio(0, 0x0); -+ ath79_register_eth(0); -+ ath79_register_eth(1); -+ -+ /* register wireless mac with cal data */ -+ ath79_register_wmac(art + GL_AR150_CALDATA_OFFSET, art + GL_AR150_WMAC_MAC_OFFSET); -+} -+ -+MIPS_MACHINE(ATH79_MACH_GL_AR150, "GL-AR150", "GL-AR150",gl_ar150_setup); -Index: openwrt/target/linux/ar71xx/generic/profiles/gl-connect.mk -=================================================================== ---- openwrt.orig/target/linux/ar71xx/generic/profiles/gl-connect.mk -+++ /dev/null -@@ -1,17 +0,0 @@ --# --# Copyright (C) 2014 OpenWrt.org --# --# This is free software, licensed under the GNU General Public License v2. --# See /LICENSE for more information. --# -- --define Profile/GLINET -- NAME:=GL.iNet -- PACKAGES:=kmod-usb-core kmod-usb2 --endef -- --define Profile/GLINET/Description -- Package set optimized for the GL-Connect GL.iNet v1. --endef -- --$(eval $(call Profile,GLINET)) -Index: openwrt/target/linux/ar71xx/generic/profiles/gli.mk -=================================================================== ---- /dev/null -+++ openwrt/target/linux/ar71xx/generic/profiles/gli.mk -@@ -0,0 +1,27 @@ -+# -+# Copyright (C) 2013 OpenWrt.org -+# -+# This is free software, licensed under the GNU General Public License v2. -+# See /LICENSE for more information. -+# -+define Profile/GLINET -+ NAME:=GL.iNet 6416 -+ PACKAGES:=kmod-usb-core kmod-usb2 -+endef -+ -+define Profile/GLINET/Description -+ Package set optimized for the GL-Connect GL.iNet v1. -+endef -+ -+$(eval $(call Profile,GLINET)) -+ -+define Profile/GL-AR150 -+ NAME:=GL-AR150 -+ PACKAGES:=kmod-usb-core kmod-usb2 -+endef -+ -+define Profile/GL-AR150/Description -+ Configuration of GL-AR150. -+endef -+ -+$(eval $(call Profile,GL-AR150)) -Index: openwrt/target/linux/ar71xx/image/Makefile -=================================================================== ---- openwrt.orig/target/linux/ar71xx/image/Makefile -+++ openwrt/target/linux/ar71xx/image/Makefile -@@ -144,6 +144,14 @@ define Device/weio - endef - TARGET_DEVICES += weio - -+define Device/gl-ar150 -+ BOARDNAME = GL-AR150 -+ IMAGE_SIZE = 16000k -+ CONSOLE = ttyATH0,115200 -+ MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro -+endef -+TARGET_DEVICES += gl-ar150 -+ - define Device/wndr3700 - BOARDNAME = WNDR3700 - NETGEAR_KERNEL_MAGIC = 0x33373030 -Index: openwrt/target/linux/ar71xx/patches-3.18/911-MIPS-ath79-add-gl_ar150.patch -=================================================================== ---- /dev/null -+++ openwrt/target/linux/ar71xx/patches-3.18/911-MIPS-ath79-add-gl_ar150.patch -@@ -0,0 +1,39 @@ -+--- a/arch/mips/ath79/Kconfig -++++ b/arch/mips/ath79/Kconfig -+@@ -533,6 +533,16 @@ config ATH79_MACH_GL_INET -+ select ATH79_DEV_USB -+ select ATH79_DEV_WMAC -+ -++config ATH79_MACH_GL_AR150 -++ bool "GL AR150 support" -++ select SOC_AR933X -++ select ATH79_DEV_ETH -++ select ATH79_DEV_GPIO_BUTTONS -++ select ATH79_DEV_LEDS_GPIO -++ select ATH79_DEV_M25P80 -++ select ATH79_DEV_USB -++ select ATH79_DEV_WMAC -++ -+ config ATH79_MACH_EAP300V2 -+ bool "EnGenius EAP300 v2 support" -+ select SOC_AR934X -+--- a/arch/mips/ath79/Makefile -++++ b/arch/mips/ath79/Makefile -+@@ -78,6 +78,7 @@ obj-$(CONFIG_ATH79_MACH_EL_MINI) += mach -+ obj-$(CONFIG_ATH79_MACH_EPG5000) += mach-epg5000.o -+ obj-$(CONFIG_ATH79_MACH_ESR1750) += mach-esr1750.o -+ obj-$(CONFIG_ATH79_MACH_F9K1115V2) += mach-f9k1115v2.o -++obj-$(CONFIG_ATH79_MACH_GL_AR150) += mach-gl-ar150.o -+ obj-$(CONFIG_ATH79_MACH_GL_INET) += mach-gl-inet.o -+ obj-$(CONFIG_ATH79_MACH_GS_MINIBOX_V1) += mach-gs-minibox-v1.o -+ obj-$(CONFIG_ATH79_MACH_GS_OOLITE) += mach-gs-oolite.o -+--- a/arch/mips/ath79/machtypes.h -++++ b/arch/mips/ath79/machtypes.h -+@@ -67,6 +67,7 @@ enum ath79_mach_type { -+ ATH79_MACH_ESR1750, /* EnGenius ESR1750 */ -+ ATH79_MACH_EPG5000, /* EnGenius EPG5000 */ -+ ATH79_MACH_F9K1115V2, /* Belkin AC1750DB */ -++ ATH79_MACH_GL_AR150, /* GL-AR150 support */ -+ ATH79_MACH_GL_INET, /* GL-CONNECT GL-INET */ -+ ATH79_MACH_GS_MINIBOX_V1, /* Gainstrong MiniBox V1.0 */ -+ ATH79_MACH_GS_OOLITE, /* GS OOLITE V1.0 */ diff --git a/patches/005-add_GL-AR300.patch b/patches/005-add_GL-AR300.patch deleted file mode 100644 index d22aeb5b8d..0000000000 --- a/patches/005-add_GL-AR300.patch +++ /dev/null @@ -1,274 +0,0 @@ -commit 09be7a359a596d7f5bc321594f882be94f769174 -Author: alzhao@gmail.com -Date: Thu May 5 11:02:06 2016 +0800 - - ar71xx: add GL-AR300 support - - Backport of changeset 47621 - Add support for GL-AR300 - - Signed-off-by: alzhao - -Index: openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -+++ openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -@@ -192,6 +192,10 @@ gl-ar150) - ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt" - ;; - -+gl-ar300) -+ ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt" -+ ;; -+ - gl-inet) - ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1" - ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt" -Index: openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -+++ openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -@@ -394,6 +394,12 @@ wpe72) - ucidef_set_interfaces_lan_wan "eth1" "eth0" - ;; - -+gl-ar300) -+ ucidef_set_interfaces_lan_wan "eth1" "eth0" -+ ucidef_add_switch "switch0" "1" "1" -+ ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" -+ ;; -+ - wpj344) - ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "switch0" "1" "1" -Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh -+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -@@ -445,6 +445,9 @@ ar71xx_board_detect() { - *"DW33D") - name="dw33d" - ;; -+ *"GL-AR300") -+ name="gl-ar300" -+ ;; - *"EAP300 v2") - name="eap300v2" - ;; -Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -@@ -213,6 +213,7 @@ platform_check_image() { - dlan-pro-1200-ac | \ - dragino2 | \ - gl-ar150 | \ -+ gl-ar300 | \ - epg5000 | \ - esr1750 | \ - esr900 | \ -Index: openwrt/target/linux/ar71xx/config-3.18 -=================================================================== ---- openwrt.orig/target/linux/ar71xx/config-3.18 -+++ openwrt/target/linux/ar71xx/config-3.18 -@@ -71,6 +71,7 @@ CONFIG_ATH79_MACH_ESR900=y - CONFIG_ATH79_MACH_EW_DORIN=y - CONFIG_ATH79_MACH_F9K1115V2=y - CONFIG_ATH79_MACH_GL_AR150=y -+CONFIG_ATH79_MACH_GL_AR300=y - CONFIG_ATH79_MACH_GL_INET=y - CONFIG_ATH79_MACH_GS_MINIBOX_V1=y - CONFIG_ATH79_MACH_GS_OOLITE=y -Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c -=================================================================== ---- /dev/null -+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c -@@ -0,0 +1,106 @@ -+/* -+ * Domino board support -+ * -+ * Copyright (C) 2011 dongyuqi <729650915@qq.com> -+ * Copyright (C) 2011-2012 Gabor Juhos -+ * Copyright (C) 2013 alzhao -+ * Copyright (C) 2014 Michel Stempin -+ * -+ * 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. -+*/ -+ -+#include -+#include -+#include -+#include -+#include -+ -+#include "common.h" -+#include "dev-eth.h" -+#include "dev-gpio-buttons.h" -+#include "dev-leds-gpio.h" -+#include "dev-m25p80.h" -+#include "dev-usb.h" -+#include "dev-wmac.h" -+#include "machtypes.h" -+ -+#define GL_AR300_GPIO_LED_WLAN 13 -+#define GL_AR300_GPIO_LED_WAN 14 -+#define GL_AR300_GPIO_BTN_RESET 16 -+ -+ -+#define GL_AR300_KEYS_POLL_INTERVAL 20 /* msecs */ -+#define GL_AR300_KEYS_DEBOUNCE_INTERVAL (3 * GL_AR300_KEYS_POLL_INTERVAL) -+ -+#define GL_AR300_MAC0_OFFSET 0x0000 -+#define GL_AR300_MAC1_OFFSET 0x0000 -+#define GL_AR300_CALDATA_OFFSET 0x1000 -+#define GL_AR300_WMAC_MAC_OFFSET 0x0000 -+ -+static struct gpio_led gl_ar300_leds_gpio[] __initdata = { -+ { -+ .name = "gl_ar300:wlan", -+ .gpio = GL_AR300_GPIO_LED_WLAN, -+ .active_low = 1, -+ }, -+ { -+ .name = "gl_ar300:wan", -+ .gpio = GL_AR300_GPIO_LED_WAN, -+ .active_low = 1, -+ }, -+}; -+ -+static struct gpio_keys_button gl_ar300_gpio_keys[] __initdata = { -+ { -+ .desc = "reset", -+ .type = EV_KEY, -+ .code = KEY_RESTART, -+ .debounce_interval = GL_AR300_KEYS_DEBOUNCE_INTERVAL, -+ .gpio = GL_AR300_GPIO_BTN_RESET, -+ .active_low = 1, -+ }, -+}; -+ -+static void __init gl_ar300_setup(void) -+{ -+ -+ /* ART base address */ -+ u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); -+ -+ /* disable PHY_SWAP and PHY_ADDR_SWAP bits */ -+ //ath79_setup_ar933x_phy4_switch(false, false); -+ -+ /* register flash. */ -+ ath79_register_m25p80(NULL); -+ -+ /* register gpio LEDs and keys */ -+ ath79_register_leds_gpio(-1, ARRAY_SIZE(gl_ar300_leds_gpio), -+ gl_ar300_leds_gpio); -+ ath79_register_gpio_keys_polled(-1, GL_AR300_KEYS_POLL_INTERVAL, -+ ARRAY_SIZE(gl_ar300_gpio_keys), -+ gl_ar300_gpio_keys); -+ -+ /* enable usb */ -+ ath79_register_usb(); -+ ath79_register_mdio(1, 0x0); -+ -+ /* register eth0 as WAN, eth1 as LAN */ -+ ath79_init_mac(ath79_eth0_data.mac_addr, art+GL_AR300_MAC0_OFFSET, 0); -+ ath79_switch_data.phy4_mii_en = 1; -+ ath79_switch_data.phy_poll_mask = BIT(4); -+ ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; -+ ath79_eth0_data.phy_mask = BIT(4); -+ ath79_eth0_data.mii_bus_dev = &ath79_mdio1_device.dev; -+ ath79_register_eth(0); -+ -+ ath79_init_mac(ath79_eth1_data.mac_addr, art+GL_AR300_MAC1_OFFSET, 0); -+ ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII; -+ ath79_register_eth(1); -+ -+ /* register wireless mac with cal data */ -+ ath79_register_wmac(art + GL_AR300_CALDATA_OFFSET, art + GL_AR300_WMAC_MAC_OFFSET); -+} -+ -+MIPS_MACHINE(ATH79_MACH_GL_AR300, "GL-AR300", "GL-AR300",gl_ar300_setup); -Index: openwrt/target/linux/ar71xx/generic/profiles/gli.mk -=================================================================== ---- openwrt.orig/target/linux/ar71xx/generic/profiles/gli.mk -+++ openwrt/target/linux/ar71xx/generic/profiles/gli.mk -@@ -25,3 +25,14 @@ define Profile/GL-AR150/Description - endef - - $(eval $(call Profile,GL-AR150)) -+ -+define Profile/GL-AR300 -+ NAME:=GL-AR300 -+ PACKAGES:=kmod-usb-core kmod-usb2 -+endef -+ -+define Profile/GL-AR300/Description -+ Configuration of GL-AR300. -+endef -+ -+$(eval $(call Profile,GL-AR300)) -Index: openwrt/target/linux/ar71xx/image/Makefile -=================================================================== ---- openwrt.orig/target/linux/ar71xx/image/Makefile -+++ openwrt/target/linux/ar71xx/image/Makefile -@@ -152,6 +152,14 @@ define Device/gl-ar150 - endef - TARGET_DEVICES += gl-ar150 - -+define Device/gl-ar300 -+ BOARDNAME = GL-AR300 -+ IMAGE_SIZE = 16000k -+ CONSOLE = ttyS0,115200 -+ MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro -+endef -+TARGET_DEVICES += gl-ar300 -+ - define Device/wndr3700 - BOARDNAME = WNDR3700 - NETGEAR_KERNEL_MAGIC = 0x33373030 -Index: openwrt/target/linux/ar71xx/patches-3.18/912-MIPS-ath79-add-gl_ar300.patch -=================================================================== ---- /dev/null -+++ openwrt/target/linux/ar71xx/patches-3.18/912-MIPS-ath79-add-gl_ar300.patch -@@ -0,0 +1,39 @@ -+--- a/arch/mips/ath79/Kconfig -++++ b/arch/mips/ath79/Kconfig -+@@ -543,6 +543,16 @@ config ATH79_MACH_GL_AR150 -+ select ATH79_DEV_USB -+ select ATH79_DEV_WMAC -+ -++config ATH79_MACH_GL_AR300 -++ bool "GL_AR300 support" -++ select SOC_AR934X -++ select ATH79_DEV_ETH -++ select ATH79_DEV_GPIO_BUTTONS -++ select ATH79_DEV_LEDS_GPIO -++ select ATH79_DEV_M25P80 -++ select ATH79_DEV_USB -++ select ATH79_DEV_WMAC -++ -+ config ATH79_MACH_EAP300V2 -+ bool "EnGenius EAP300 v2 support" -+ select SOC_AR934X -+--- a/arch/mips/ath79/Makefile -++++ b/arch/mips/ath79/Makefile -+@@ -79,6 +79,7 @@ obj-$(CONFIG_ATH79_MACH_EPG5000) += mach -+ obj-$(CONFIG_ATH79_MACH_ESR1750) += mach-esr1750.o -+ obj-$(CONFIG_ATH79_MACH_F9K1115V2) += mach-f9k1115v2.o -+ obj-$(CONFIG_ATH79_MACH_GL_AR150) += mach-gl-ar150.o -++obj-$(CONFIG_ATH79_MACH_GL_AR300) += mach-gl-ar300.o -+ obj-$(CONFIG_ATH79_MACH_GL_INET) += mach-gl-inet.o -+ obj-$(CONFIG_ATH79_MACH_GS_MINIBOX_V1) += mach-gs-minibox-v1.o -+ obj-$(CONFIG_ATH79_MACH_GS_OOLITE) += mach-gs-oolite.o -+--- a/arch/mips/ath79/machtypes.h -++++ b/arch/mips/ath79/machtypes.h -+@@ -68,6 +68,7 @@ enum ath79_mach_type { -+ ATH79_MACH_EPG5000, /* EnGenius EPG5000 */ -+ ATH79_MACH_F9K1115V2, /* Belkin AC1750DB */ -+ ATH79_MACH_GL_AR150, /* GL-AR150 support */ -++ ATH79_MACH_GL_AR300, /* GL-AR300 */ -+ ATH79_MACH_GL_INET, /* GL-CONNECT GL-INET */ -+ ATH79_MACH_GS_MINIBOX_V1, /* Gainstrong MiniBox V1.0 */ -+ ATH79_MACH_GS_OOLITE, /* GS OOLITE V1.0 */ diff --git a/patches/006-add_GL-DominoPi.patch b/patches/006-add_GL-DominoPi.patch deleted file mode 100644 index 0d2ad76a31..0000000000 --- a/patches/006-add_GL-DominoPi.patch +++ /dev/null @@ -1,299 +0,0 @@ -commit 7294fbd6f9d003ca18ad3f5716f6cfd96497d0da -Author: alzhao@gmail.com -Date: Thu May 5 11:02:07 2016 +0800 - - ar71xx: add GL-Domino Pi support - - Backport of changeset 47622 - Add GL-Domino Pi dev board support - - Signed-off-by: alzhao - -Index: openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -+++ openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds -@@ -196,6 +196,10 @@ gl-ar300) - ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt" - ;; - -+gl-domino) -+ ucidef_set_led_wlan "wlan" "WLAN" "domino:blue:wlan" "phy0tpt" -+ ;; -+ - gl-inet) - ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1" - ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt" -Index: openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -+++ openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network -@@ -383,6 +383,7 @@ alfa-ap96 |\ - alfa-nx |\ - ap83 |\ - gl-ar150 |\ -+gl-domino |\ - gl-inet |\ - jwap003 |\ - pb42 |\ -Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh -+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -@@ -445,6 +445,9 @@ ar71xx_board_detect() { - *"DW33D") - name="dw33d" - ;; -+ *"Domino Pi") -+ name="gl-domino" -+ ;; - *"GL-AR300") - name="gl-ar300" - ;; -Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -=================================================================== ---- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -@@ -214,6 +214,7 @@ platform_check_image() { - dragino2 | \ - gl-ar150 | \ - gl-ar300 | \ -+ gl-domino | \ - epg5000 | \ - esr1750 | \ - esr900 | \ -Index: openwrt/target/linux/ar71xx/config-3.18 -=================================================================== ---- openwrt.orig/target/linux/ar71xx/config-3.18 -+++ openwrt/target/linux/ar71xx/config-3.18 -@@ -72,6 +72,7 @@ CONFIG_ATH79_MACH_EW_DORIN=y - CONFIG_ATH79_MACH_F9K1115V2=y - CONFIG_ATH79_MACH_GL_AR150=y - CONFIG_ATH79_MACH_GL_AR300=y -+CONFIG_ATH79_MACH_GL_DOMINO=y - CONFIG_ATH79_MACH_GL_INET=y - CONFIG_ATH79_MACH_GS_MINIBOX_V1=y - CONFIG_ATH79_MACH_GS_OOLITE=y -Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c -=================================================================== ---- /dev/null -+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c -@@ -0,0 +1,136 @@ -+/* -+ * Domino board support -+ * -+ * Copyright (C) 2011 dongyuqi <729650915@qq.com> -+ * Copyright (C) 2011-2012 Gabor Juhos -+ * Copyright (C) 2013 alzhao -+ * Copyright (C) 2014 Michel Stempin -+ * -+ * 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. -+*/ -+ -+#include -+ -+#include -+ -+#include "dev-eth.h" -+#include "dev-gpio-buttons.h" -+#include "dev-leds-gpio.h" -+#include "dev-m25p80.h" -+#include "dev-usb.h" -+#include "dev-wmac.h" -+#include "machtypes.h" -+ -+#define DOMINO_GPIO_LED_WLAN 0 -+#define DOMINO_GPIO_LED_WAN 17 -+#define DOMINO_GPIO_LED_USB 1 -+#define DOMINO_GPIO_LED_LAN1 13 -+#define DOMINO_GPIO_LED_LAN2 14 -+#define DOMINO_GPIO_LED_LAN3 15 -+#define DOMINO_GPIO_LED_LAN4 16 -+#define DOMINO_GPIO_LED_SYS 27 -+#define DOMINO_GPIO_LED_WPS 26 -+#define DOMINO_GPIO_USB_POWER 6 -+ -+#define DOMINO_GPIO_BTN_RESET 11 -+#define DOMINO_GPIO_BTN_WPS 20 -+ -+#define DOMINO_KEYS_POLL_INTERVAL 20 /* msecs */ -+#define DOMINO_KEYS_DEBOUNCE_INTERVAL (3 * DOMINO_KEYS_POLL_INTERVAL) -+ -+#define DOMINO_MAC0_OFFSET 0x0000 -+#define DOMINO_MAC1_OFFSET 0x0000 -+#define DOMINO_CALDATA_OFFSET 0x1000 -+#define DOMINO_WMAC_MAC_OFFSET 0x0000 -+ -+static struct gpio_led domino_leds_gpio[] __initdata = { -+ { -+ .name = "domino:blue:wlan", -+ .gpio = DOMINO_GPIO_LED_WLAN, -+ .active_low = 0, -+ }, -+ { -+ .name = "domino:red:wan", -+ .gpio = DOMINO_GPIO_LED_WAN, -+ .active_low = 1, -+ }, -+ { -+ .name = "domino:white:usb", -+ .gpio = DOMINO_GPIO_LED_USB, -+ .active_low = 0, -+ }, -+ { -+ .name = "domino:green:lan1", -+ .gpio = DOMINO_GPIO_LED_LAN1, -+ .active_low = 0, -+ }, -+ { -+ .name = "domino:yellow:wps", -+ .gpio = DOMINO_GPIO_LED_WPS, -+ .active_low = 1, -+ }, -+ { -+ .name = "domino:orange:sys", -+ .gpio = DOMINO_GPIO_LED_SYS, -+ .active_low = 1, -+ }, -+}; -+ -+static struct gpio_keys_button domino_gpio_keys[] __initdata = { -+ { -+ .desc = "reset", -+ .type = EV_KEY, -+ .code = KEY_RESTART, -+ .debounce_interval = DOMINO_KEYS_DEBOUNCE_INTERVAL, -+ .gpio = DOMINO_GPIO_BTN_RESET, -+ .active_low = 0, -+ }, -+ { -+ .desc = "wps", -+ .type = EV_KEY, -+ .code = KEY_WPS_BUTTON, -+ .debounce_interval = DOMINO_KEYS_DEBOUNCE_INTERVAL, -+ .gpio = DOMINO_GPIO_BTN_WPS, -+ .active_low = 0, -+ } -+}; -+ -+static void __init domino_setup(void) -+{ -+ -+ /* ART base address */ -+ u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); -+ -+ /* disable PHY_SWAP and PHY_ADDR_SWAP bits */ -+ ath79_setup_ar933x_phy4_switch(false, false); -+ -+ /* register flash. */ -+ ath79_register_m25p80(NULL); -+ -+ /* register gpio LEDs and keys */ -+ ath79_register_leds_gpio(-1, ARRAY_SIZE(domino_leds_gpio), -+ domino_leds_gpio); -+ ath79_register_gpio_keys_polled(-1, DOMINO_KEYS_POLL_INTERVAL, -+ ARRAY_SIZE(domino_gpio_keys), -+ domino_gpio_keys); -+ -+ gpio_request_one(DOMINO_GPIO_USB_POWER, -+ GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, -+ "USB power"); -+ /* enable usb */ -+ ath79_register_usb(); -+ -+ /* register eth0 as WAN, eth1 as LAN */ -+ ath79_init_mac(ath79_eth0_data.mac_addr, art+DOMINO_MAC0_OFFSET, 0); -+ ath79_init_mac(ath79_eth1_data.mac_addr, art+DOMINO_MAC1_OFFSET, 0); -+ ath79_register_mdio(0, 0x0); -+ ath79_register_eth(0); -+ ath79_register_eth(1); -+ -+ /* register wireless mac with cal data */ -+ ath79_register_wmac(art + DOMINO_CALDATA_OFFSET, art + DOMINO_WMAC_MAC_OFFSET); -+} -+ -+MIPS_MACHINE(ATH79_MACH_GL_DOMINO, "DOMINO", "Domino Pi", domino_setup); -Index: openwrt/target/linux/ar71xx/generic/profiles/gli.mk -=================================================================== ---- openwrt.orig/target/linux/ar71xx/generic/profiles/gli.mk -+++ openwrt/target/linux/ar71xx/generic/profiles/gli.mk -@@ -36,3 +36,14 @@ define Profile/GL-AR300/Description - endef - - $(eval $(call Profile,GL-AR300)) -+ -+define Profile/DOMINO -+ NAME:=GL Domino Pi -+ PACKAGES:=kmod-usb-core kmod-usb2 -+endef -+ -+define Profile/DOMINO/Description -+ Configuration of Domino, Wifi for everything. -+endef -+ -+$(eval $(call Profile,DOMINO)) -Index: openwrt/target/linux/ar71xx/image/Makefile -=================================================================== ---- openwrt.orig/target/linux/ar71xx/image/Makefile -+++ openwrt/target/linux/ar71xx/image/Makefile -@@ -160,6 +160,14 @@ define Device/gl-ar300 - endef - TARGET_DEVICES += gl-ar300 - -+define Device/gl-domino -+ BOARDNAME = DOMINO -+ IMAGE_SIZE = 16000k -+ CONSOLE = ttyATH0,115200 -+ MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro -+endef -+TARGET_DEVICES += gl-domino -+ - define Device/wndr3700 - BOARDNAME = WNDR3700 - NETGEAR_KERNEL_MAGIC = 0x33373030 -Index: openwrt/target/linux/ar71xx/patches-3.18/913-MIPS-ath79-add-domino-support.patch -=================================================================== ---- /dev/null -+++ openwrt/target/linux/ar71xx/patches-3.18/913-MIPS-ath79-add-domino-support.patch -@@ -0,0 +1,39 @@ -+--- a/arch/mips/ath79/Kconfig -++++ b/arch/mips/ath79/Kconfig -+@@ -553,6 +553,16 @@ config ATH79_MACH_GL_AR300 -+ select ATH79_DEV_USB -+ select ATH79_DEV_WMAC -+ -++config ATH79_MACH_GL_DOMINO -++ bool "DOMINO support" -++ select SOC_AR933X -++ select ATH79_DEV_ETH -++ select ATH79_DEV_GPIO_BUTTONS -++ select ATH79_DEV_LEDS_GPIO -++ select ATH79_DEV_M25P80 -++ select ATH79_DEV_USB -++ select ATH79_DEV_WMAC -++ -+ config ATH79_MACH_EAP300V2 -+ bool "EnGenius EAP300 v2 support" -+ select SOC_AR934X -+--- a/arch/mips/ath79/Makefile -++++ b/arch/mips/ath79/Makefile -+@@ -80,6 +80,7 @@ obj-$(CONFIG_ATH79_MACH_ESR1750) += mach -+ obj-$(CONFIG_ATH79_MACH_F9K1115V2) += mach-f9k1115v2.o -+ obj-$(CONFIG_ATH79_MACH_GL_AR150) += mach-gl-ar150.o -+ obj-$(CONFIG_ATH79_MACH_GL_AR300) += mach-gl-ar300.o -++obj-$(CONFIG_ATH79_MACH_GL_DOMINO) += mach-gl-domino.o -+ obj-$(CONFIG_ATH79_MACH_GL_INET) += mach-gl-inet.o -+ obj-$(CONFIG_ATH79_MACH_GS_MINIBOX_V1) += mach-gs-minibox-v1.o -+ obj-$(CONFIG_ATH79_MACH_GS_OOLITE) += mach-gs-oolite.o -+--- a/arch/mips/ath79/machtypes.h -++++ b/arch/mips/ath79/machtypes.h -+@@ -69,6 +69,7 @@ enum ath79_mach_type { -+ ATH79_MACH_F9K1115V2, /* Belkin AC1750DB */ -+ ATH79_MACH_GL_AR150, /* GL-AR150 support */ -+ ATH79_MACH_GL_AR300, /* GL-AR300 */ -++ ATH79_MACH_GL_DOMINO, /* Domino */ -+ ATH79_MACH_GL_INET, /* GL-CONNECT GL-INET */ -+ ATH79_MACH_GS_MINIBOX_V1, /* Gainstrong MiniBox V1.0 */ -+ ATH79_MACH_GS_OOLITE, /* GS OOLITE V1.0 */ diff --git a/patches/007-add_GL-MT300A.patch b/patches/007-add_GL-MT300A.patch deleted file mode 100644 index 5a1affdbf5..0000000000 --- a/patches/007-add_GL-MT300A.patch +++ /dev/null @@ -1,281 +0,0 @@ -commit f3e50b54b86fc687f6593c2f7b91060f7b163e63 -Author: alzhao@gmail.com -Date: Thu May 5 11:02:08 2016 +0800 - - ramips: Add GL-MT300A support - - Backport of changeset 48992 - Add GL-MT300A support - - Signed-off-by: alzhao - -diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds -index 5327d00..a3661e8 100755 ---- a/target/linux/ramips/base-files/etc/board.d/01_leds -+++ b/target/linux/ramips/base-files/etc/board.d/01_leds -@@ -147,6 +147,9 @@ case $board in - mofi3500-3gn) - set_usb_led "mofi3500-3gn:green:usb" - ;; -+ gl-mt300a) -+ set_wifi_led "gl-mt300a:wlan" -+ ;; - mpr-a1) - set_wifi_led "hame:blue:system" - ;; -diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network -index a78912d..b5c2b81 100755 ---- a/target/linux/ramips/base-files/etc/board.d/02_network -+++ b/target/linux/ramips/base-files/etc/board.d/02_network -@@ -153,6 +153,13 @@ ramips_setup_interfaces() - ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t" - ucidef_add_switch_vlan "switch0" "2" "4 6t" - ;; -+ -+ gl-mt300a) -+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" -+ ucidef_add_switch "switch0" "1" "1" -+ ucidef_add_switch_vlan "switch0" "2" "0 6t" -+ ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t" -+ ;; - - whr-1166d) - ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" -diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh -index 8dc05b0..40c26e6 100755 ---- a/target/linux/ramips/base-files/lib/ramips.sh -+++ b/target/linux/ramips/base-files/lib/ramips.sh -@@ -169,6 +169,9 @@ ramips_board_detect() { - *"F5D8235 v2") - name="f5d8235-v2" - ;; -+ *"GL-MT300A") -+ name="gl-mt300a" -+ ;; - *"Hauppauge Broadway") - name="broadway" - ;; -diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh -index a3d0175..cfd44d7 100755 ---- a/target/linux/ramips/base-files/lib/upgrade/platform.sh -+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh -@@ -55,6 +55,7 @@ platform_check_image() { - fonera20n | \ - freestation5 | \ - firewrt |\ -+ gl-mt300a |\ - pbr-m1 |\ - hg255d | \ - hlk-rm04 | \ -diff --git a/target/linux/ramips/dts/GL-MT300A.dts b/target/linux/ramips/dts/GL-MT300A.dts -new file mode 100644 -index 0000000..c1eb0a9 ---- /dev/null -+++ b/target/linux/ramips/dts/GL-MT300A.dts -@@ -0,0 +1,164 @@ -+/dts-v1/; -+ -+/include/ "mt7620a.dtsi" -+ -+/ { -+ compatible = "GL-MT300A", "ralink,mt7620a-soc"; -+ model = "GL-MT300A"; -+ -+ chosen { -+ bootargs = "console=ttyS0,115200"; -+ }; -+ -+ palmbus@10000000 { -+ gpio0: gpio@600 { -+ status = "okay"; -+ }; -+ -+ gpio1: gpio@638 { -+ status = "okay"; -+ }; -+ -+ gpio2: gpio@660 { -+ status = "okay"; -+ }; -+ -+ gpio3: gpio@688 { -+ status = "okay"; -+ }; -+ -+ spi@b00 { -+ status = "okay"; -+ -+ m25p80@0 { -+ #address-cells = <1>; -+ #size-cells = <1>; -+ compatible = "w25q128"; -+ reg = <0 0>; -+ linux,modalias = "m25p80", "w25q128"; -+ spi-max-frequency = <10000000>; -+ -+ partition@0 { -+ label = "u-boot"; -+ reg = <0x0 0x30000>; -+ }; -+ -+ partition@30000 { -+ label = "u-boot-env"; -+ reg = <0x30000 0x10000>; -+ read-only; -+ }; -+ -+ factory: partition@40000 { -+ label = "factory"; -+ reg = <0x40000 0x10000>; -+ read-only; -+ }; -+ -+ partition@50000 { -+ label = "firmware"; -+ reg = <0x50000 0xf80000>; -+ }; -+ -+ partition@ff0000 { -+ label = "art"; -+ reg = <0xff0000 0x10000>; -+ }; -+ }; -+ }; -+ }; -+ -+ sdhci@10130000 { -+ status = "okay"; -+ }; -+ -+ ehci@101c0000 { -+ status = "okay"; -+ }; -+ -+ ohci@101c1000 { -+ status = "okay"; -+ }; -+ -+ ethernet@10100000 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&ephy_pins>; -+ mtd-mac-address = <&factory 0x4000>; -+ ralink,port-map = "wllll"; -+ }; -+ -+ wmac@10180000 { -+ ralink,mtd-eeprom = <&factory 0>; -+ }; -+ -+ pcie@10140000 { -+ status = "okay"; -+ -+ pcie-bridge { -+ mt76@0,0 { -+ reg = <0x0000 0 0 0 0>; -+ device_type = "pci"; -+ mediatek,mtd-eeprom = <&factory 0x8000>; -+ mediatek,2ghz = <0>; -+ }; -+ }; -+ }; -+ -+ pinctrl { -+ state_default: pinctrl0 { -+ gpio { -+ ralink,group = "wled","ephy","uartf","i2c"; -+ ralink,function = "gpio"; -+ }; -+ }; -+ }; -+ -+ gpio-leds { -+ compatible = "gpio-leds"; -+ -+ wan { -+ label = "gl-mt300a:wan"; -+ gpios = <&gpio2 0 1>; -+ }; -+ -+ lan { -+ label = "gl-mt300a:lan"; -+ gpios = <&gpio2 1 1>; -+ }; -+ -+ wlan { -+ label = "gl-mt300a:wlan"; -+ gpios = <&gpio3 0 1>; -+ }; -+ -+ usb { -+ label = "gl-mt300a:usb"; -+ gpios = <&gpio0 7 1>; -+ }; -+ -+ }; -+ -+ gpio-keys-polled { -+ compatible = "gpio-keys-polled"; -+ #address-cells = <1>; -+ #size-cells = <0>; -+ poll-interval = <20>; -+ reset { -+ label = "reset"; -+ gpios = <&gpio0 13 1>; -+ linux,code = <0x198>; -+ }; -+ -+ BTN_0 { -+ label = "BTN_0"; -+ gpios = <&gpio0 1 1>; -+ linux,code = <0x100>; -+ }; -+ -+ BTN_1 { -+ label = "BTN_1"; -+ gpios = <&gpio0 2 1>; -+ linux,code = <0x101>; -+ }; -+ }; -+}; -diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile -index c4f4028..d4991ad 100644 ---- a/target/linux/ramips/image/Makefile -+++ b/target/linux/ramips/image/Makefile -@@ -910,6 +910,7 @@ Image/Build/Profile/WR8305RT=$(call BuildFirmware/Default8M/$(1),$(1),wr8305rt,W - Image/Build/Profile/WRTNODE=$(call BuildFirmware/Default16M/$(1),$(1),wrtnode,WRTNODE) - Image/Build/Profile/WT3020=$(call BuildFirmware/PorayDualSize/$(1),$(1),wt3020,WT3020) - Image/Build/Profile/XIAOMI-MIWIFI-MINI=$(call BuildFirmware/Default16M/$(1),$(1),xiaomi-miwifi-mini,XIAOMI-MIWIFI-MINI) -+Image/Build/Profile/GL-MT300A=$(call BuildFirmware/Default16M/$(1),$(1),gl-mt300a,GL-MT300A) - Image/Build/Profile/ZTE-Q7=$(call BuildFirmware/Default8M/$(1),$(1),zte-q7,ZTE-Q7) - Image/Build/Profile/ZBT-WA05=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wa05,ZBT-WA05) - Image/Build/Profile/ArcherC20i=$(call BuildFirmware/Tplink/$(1),$(1),ArcherC20i,ArcherC20i) -@@ -944,6 +945,7 @@ define Image/Build/Profile/Default - $(call Image/Build/Profile/WRTNODE,$(1)) - $(call Image/Build/Profile/WT3020,$(1)) - $(call Image/Build/Profile/XIAOMI-MIWIFI-MINI,$(1)) -+ $(call Image/Build/Profile/GL-MT300A,$(1)) - $(call Image/Build/Profile/ZTE-Q7,$(1)) - $(call Image/Build/Profile/ZBT-WA05,$(1)) - $(call Image/Build/Profile/ArcherC20i,$(1)) -diff --git a/target/linux/ramips/mt7620/profiles/gli.mk b/target/linux/ramips/mt7620/profiles/gli.mk -new file mode 100644 -index 0000000..53e2e9d ---- /dev/null -+++ b/target/linux/ramips/mt7620/profiles/gli.mk -@@ -0,0 +1,16 @@ -+# -+# Copyright (C) 2015 OpenWrt.org -+# -+# This is free software, licensed under the GNU General Public License v2. -+# See /LICENSE for more information. -+# -+ -+define Profile/GL-MT300A -+ NAME:=GL-MT300A -+ PACKAGES:=kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci kmod-mt76 -+endef -+ -+define Profile/GL-MT300A/Description -+ Support for gl-mt300a Router -+endef -+$(eval $(call Profile,GL-MT300A)) diff --git a/patches/008-add_GL-MT300N.patch b/patches/008-add_GL-MT300N.patch deleted file mode 100644 index 14f9dada5a..0000000000 --- a/patches/008-add_GL-MT300N.patch +++ /dev/null @@ -1,266 +0,0 @@ -commit 192d6ccadb8af7617408e6582a9dccb24d5ebc47 -Author: alzhao@gmail.com -Date: Thu May 5 11:02:09 2016 +0800 - - ramips: add GL-MT300N support - - Backport changeset 48993 - Add GL-MT300N support to CC - - Signed-off-by: alzhao - -diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds -index a3661e8..3886e49 100755 ---- a/target/linux/ramips/base-files/etc/board.d/01_leds -+++ b/target/linux/ramips/base-files/etc/board.d/01_leds -@@ -150,6 +150,9 @@ case $board in - gl-mt300a) - set_wifi_led "gl-mt300a:wlan" - ;; -+ gl-mt300n) -+ set_wifi_led "gl-mt300n:wlan" -+ ;; - mpr-a1) - set_wifi_led "hame:blue:system" - ;; -diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network -index b5c2b81..1e91039 100755 ---- a/target/linux/ramips/base-files/etc/board.d/02_network -+++ b/target/linux/ramips/base-files/etc/board.d/02_network -@@ -160,6 +160,13 @@ ramips_setup_interfaces() - ucidef_add_switch_vlan "switch0" "2" "0 6t" - ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t" - ;; -+ -+ gl-mt300n) -+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" -+ ucidef_add_switch "switch0" "1" "1" -+ ucidef_add_switch_vlan "switch0" "2" "0 6t" -+ ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t" -+ ;; - - whr-1166d) - ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" -diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh -index 40c26e6..3ebb1b0 100755 ---- a/target/linux/ramips/base-files/lib/ramips.sh -+++ b/target/linux/ramips/base-files/lib/ramips.sh -@@ -172,6 +172,9 @@ ramips_board_detect() { - *"GL-MT300A") - name="gl-mt300a" - ;; -+ *"GL-MT300N") -+ name="gl-mt300n" -+ ;; - *"Hauppauge Broadway") - name="broadway" - ;; -diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh -index cfd44d7..7825af8 100755 ---- a/target/linux/ramips/base-files/lib/upgrade/platform.sh -+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh -@@ -56,6 +56,7 @@ platform_check_image() { - freestation5 | \ - firewrt |\ - gl-mt300a |\ -+ gl-mt300n |\ - pbr-m1 |\ - hg255d | \ - hlk-rm04 | \ -diff --git a/target/linux/ramips/dts/GL-MT300N.dts b/target/linux/ramips/dts/GL-MT300N.dts -new file mode 100644 -index 0000000..82db37e ---- /dev/null -+++ b/target/linux/ramips/dts/GL-MT300N.dts -@@ -0,0 +1,153 @@ -+/dts-v1/; -+ -+/include/ "mt7620n.dtsi" -+ -+/ { -+ compatible = "GL-MT300N", "ralink,mt7620n-soc"; -+ model = "GL-MT300N"; -+ -+ chosen { -+ bootargs = "console=ttyS0,115200"; -+ }; -+ -+ palmbus@10000000 { -+ gpio0: gpio@600 { -+ status = "okay"; -+ }; -+ -+ gpio1: gpio@638 { -+ status = "okay"; -+ }; -+ -+ gpio2: gpio@660 { -+ status = "okay"; -+ }; -+ -+ gpio3: gpio@688 { -+ status = "okay"; -+ }; -+ -+ spi@b00 { -+ status = "okay"; -+ -+ m25p80@0 { -+ #address-cells = <1>; -+ #size-cells = <1>; -+ compatible = "w25q128"; -+ reg = <0 0>; -+ linux,modalias = "m25p80", "w25q128"; -+ spi-max-frequency = <10000000>; -+ -+ partition@0 { -+ label = "u-boot"; -+ reg = <0x0 0x30000>; -+ }; -+ -+ partition@30000 { -+ label = "u-boot-env"; -+ reg = <0x30000 0x10000>; -+ read-only; -+ }; -+ -+ factory: partition@40000 { -+ label = "factory"; -+ reg = <0x40000 0x10000>; -+ read-only; -+ }; -+ -+ partition@50000 { -+ label = "firmware"; -+ reg = <0x50000 0xf80000>; -+ }; -+ -+ partition@ff0000 { -+ label = "art"; -+ reg = <0xff0000 0x10000>; -+ }; -+ }; -+ }; -+ }; -+ -+ ehci@101c0000 { -+ status = "okay"; -+ }; -+ -+ ohci@101c1000 { -+ status = "okay"; -+ }; -+ -+ ethernet@10100000 { -+ mtd-mac-address = <&factory 0x4000>; -+ ralink,port-map = "wllll"; -+ }; -+ -+ wmac@10180000 { -+ ralink,mtd-eeprom = <&factory 0>; -+ }; -+ -+ pcie@10140000 { -+ status = "okay"; -+ -+ pcie-bridge { -+ mt76@0,0 { -+ reg = <0x0000 0 0 0 0>; -+ device_type = "pci"; -+ mediatek,mtd-eeprom = <&factory 0x8000>; -+ mediatek,2ghz = <0>; -+ }; -+ }; -+ }; -+ -+ pinctrl { -+ state_default: pinctrl0 { -+ gpio { -+ ralink,group = "wled","ephy","i2c"; -+ ralink,function = "gpio"; -+ }; -+ }; -+ }; -+ -+ gpio-leds { -+ compatible = "gpio-leds"; -+ -+ wan { -+ label = "gl-mt300n:wan"; -+ gpios = <&gpio2 0 1>; -+ }; -+ -+ lan { -+ label = "gl-mt300n:lan"; -+ gpios = <&gpio2 1 1>; -+ }; -+ -+ wlan { -+ label = "gl-mt300n:wlan"; -+ gpios = <&gpio3 0 1>; -+ }; -+ -+ }; -+ -+ gpio-keys-polled { -+ compatible = "gpio-keys-polled"; -+ #address-cells = <1>; -+ #size-cells = <0>; -+ poll-interval = <20>; -+ reset { -+ label = "reset"; -+ gpios = <&gpio0 1 1>; -+ linux,code = <0x198>; -+ }; -+ -+ BTN_0 { -+ label = "BTN_0"; -+ gpios = <&gpio2 2 1>; -+ linux,code = <0x100>; -+ }; -+ -+ BTN_1 { -+ label = "BTN_1"; -+ gpios = <&gpio2 3 1>; -+ linux,code = <0x101>; -+ }; -+ }; -+}; -diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile -index d4991ad..9f83b1c 100644 ---- a/target/linux/ramips/image/Makefile -+++ b/target/linux/ramips/image/Makefile -@@ -911,6 +911,7 @@ Image/Build/Profile/WRTNODE=$(call BuildFirmware/Default16M/$(1),$(1),wrtnode,WR - Image/Build/Profile/WT3020=$(call BuildFirmware/PorayDualSize/$(1),$(1),wt3020,WT3020) - Image/Build/Profile/XIAOMI-MIWIFI-MINI=$(call BuildFirmware/Default16M/$(1),$(1),xiaomi-miwifi-mini,XIAOMI-MIWIFI-MINI) - Image/Build/Profile/GL-MT300A=$(call BuildFirmware/Default16M/$(1),$(1),gl-mt300a,GL-MT300A) -+Image/Build/Profile/GL-MT300N=$(call BuildFirmware/Default16M/$(1),$(1),gl-mt300n,GL-MT300N) - Image/Build/Profile/ZTE-Q7=$(call BuildFirmware/Default8M/$(1),$(1),zte-q7,ZTE-Q7) - Image/Build/Profile/ZBT-WA05=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wa05,ZBT-WA05) - Image/Build/Profile/ArcherC20i=$(call BuildFirmware/Tplink/$(1),$(1),ArcherC20i,ArcherC20i) -@@ -946,6 +947,7 @@ define Image/Build/Profile/Default - $(call Image/Build/Profile/WT3020,$(1)) - $(call Image/Build/Profile/XIAOMI-MIWIFI-MINI,$(1)) - $(call Image/Build/Profile/GL-MT300A,$(1)) -+ $(call Image/Build/Profile/GL-MT300N,$(1)) - $(call Image/Build/Profile/ZTE-Q7,$(1)) - $(call Image/Build/Profile/ZBT-WA05,$(1)) - $(call Image/Build/Profile/ArcherC20i,$(1)) -diff --git a/target/linux/ramips/mt7620/profiles/gli.mk b/target/linux/ramips/mt7620/profiles/gli.mk -index 53e2e9d..ce407e2 100644 ---- a/target/linux/ramips/mt7620/profiles/gli.mk -+++ b/target/linux/ramips/mt7620/profiles/gli.mk -@@ -14,3 +14,13 @@ define Profile/GL-MT300A/Description - Support for gl-mt300a Router - endef - $(eval $(call Profile,GL-MT300A)) -+ -+define Profile/GL-MT300N -+ NAME:=GL-MT300N -+ PACKAGES:=kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci kmod-mt76 -+endef -+ -+define Profile/GL-MT300N/Description -+ Support for gl-mt300n Router -+endef -+$(eval $(call Profile,GL-MT300N)) diff --git a/patches/009-add_GL-MT750.patch b/patches/009-add_GL-MT750.patch deleted file mode 100644 index 6138c6ebda..0000000000 --- a/patches/009-add_GL-MT750.patch +++ /dev/null @@ -1,282 +0,0 @@ -commit cf86fd6b03e1c5aa68351687631950dfe3f90d65 -Author: alzhao@gmail.com -Date: Thu May 5 11:02:10 2016 +0800 - - ramips: add GL-MT750 support - - Backport changeset 48994 - Add GT-MT750 support to CC - - Signed-off-by: alzhao - -diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds -index 3886e49..643b3cc 100755 ---- a/target/linux/ramips/base-files/etc/board.d/01_leds -+++ b/target/linux/ramips/base-files/etc/board.d/01_leds -@@ -153,6 +153,9 @@ case $board in - gl-mt300n) - set_wifi_led "gl-mt300n:wlan" - ;; -+ gl-mt750) -+ set_wifi_led "gl-mt750:wlan" -+ ;; - mpr-a1) - set_wifi_led "hame:blue:system" - ;; -diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network -index 1e91039..227aa63 100755 ---- a/target/linux/ramips/base-files/etc/board.d/02_network -+++ b/target/linux/ramips/base-files/etc/board.d/02_network -@@ -167,6 +167,13 @@ ramips_setup_interfaces() - ucidef_add_switch_vlan "switch0" "2" "0 6t" - ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t" - ;; -+ -+ gl-mt750) -+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" -+ ucidef_add_switch "switch0" "1" "1" -+ ucidef_add_switch_vlan "switch0" "2" "0 6t" -+ ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t" -+ ;; - - whr-1166d) - ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" -diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh -index 3ebb1b0..fb5be8c 100755 ---- a/target/linux/ramips/base-files/lib/ramips.sh -+++ b/target/linux/ramips/base-files/lib/ramips.sh -@@ -175,6 +175,9 @@ ramips_board_detect() { - *"GL-MT300N") - name="gl-mt300n" - ;; -+ *"GL-MT750") -+ name="gl-mt750" -+ ;; - *"Hauppauge Broadway") - name="broadway" - ;; -diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh -index 7825af8..7a84aab 100755 ---- a/target/linux/ramips/base-files/lib/upgrade/platform.sh -+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh -@@ -57,6 +57,7 @@ platform_check_image() { - firewrt |\ - gl-mt300a |\ - gl-mt300n |\ -+ gl-mt750 |\ - pbr-m1 |\ - hg255d | \ - hlk-rm04 | \ -diff --git a/target/linux/ramips/dts/GL-MT750.dts b/target/linux/ramips/dts/GL-MT750.dts -new file mode 100644 -index 0000000..a36ae5e ---- /dev/null -+++ b/target/linux/ramips/dts/GL-MT750.dts -@@ -0,0 +1,159 @@ -+/dts-v1/; -+ -+/include/ "mt7620a.dtsi" -+ -+/ { -+ compatible = "GL-MT750", "ralink,mt7620a-soc"; -+ model = "GL-MT750"; -+ -+ chosen { -+ bootargs = "console=ttyS0,115200"; -+ }; -+ -+ palmbus@10000000 { -+ gpio0: gpio@600 { -+ status = "okay"; -+ }; -+ -+ gpio1: gpio@638 { -+ status = "okay"; -+ }; -+ -+ gpio2: gpio@660 { -+ status = "okay"; -+ }; -+ -+ gpio3: gpio@688 { -+ status = "okay"; -+ }; -+ -+ spi@b00 { -+ status = "okay"; -+ -+ m25p80@0 { -+ #address-cells = <1>; -+ #size-cells = <1>; -+ compatible = "w25q128"; -+ reg = <0 0>; -+ linux,modalias = "m25p80", "w25q128"; -+ spi-max-frequency = <10000000>; -+ -+ partition@0 { -+ label = "u-boot"; -+ reg = <0x0 0x30000>; -+ }; -+ -+ partition@30000 { -+ label = "u-boot-env"; -+ reg = <0x30000 0x10000>; -+ read-only; -+ }; -+ -+ factory: partition@40000 { -+ label = "factory"; -+ reg = <0x40000 0x10000>; -+ read-only; -+ }; -+ -+ partition@50000 { -+ label = "firmware"; -+ reg = <0x50000 0xf80000>; -+ }; -+ -+ partition@ff0000 { -+ label = "art"; -+ reg = <0xff0000 0x10000>; -+ }; -+ }; -+ }; -+ }; -+ -+ sdhci@10130000 { -+ status = "okay"; -+ }; -+ -+ ehci@101c0000 { -+ status = "okay"; -+ }; -+ -+ ohci@101c1000 { -+ status = "okay"; -+ }; -+ -+ ethernet@10100000 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&ephy_pins>; -+ mtd-mac-address = <&factory 0x4000>; -+ ralink,port-map = "llllw"; -+ }; -+ -+ wmac@10180000 { -+ ralink,mtd-eeprom = <&factory 0>; -+ }; -+ -+ pcie@10140000 { -+ status = "okay"; -+ -+ pcie-bridge { -+ mt76@0,0 { -+ reg = <0x0000 0 0 0 0>; -+ device_type = "pci"; -+ mediatek,mtd-eeprom = <&factory 0x8000>; -+ mediatek,2ghz = <0>; -+ }; -+ }; -+ }; -+ -+ pinctrl { -+ state_default: pinctrl0 { -+ gpio { -+ ralink,group = "wled","ephy","uartf"; -+ ralink,function = "gpio"; -+ }; -+ }; -+ }; -+ -+ gpio-leds { -+ compatible = "gpio-leds"; -+ -+ wan { -+ label = "gl-mt750:wan"; -+ gpios = <&gpio2 0 1>; -+ }; -+ -+ lan { -+ label = "gl-mt750:lan"; -+ gpios = <&gpio2 1 1>; -+ }; -+ -+ wlan { -+ label = "gl-mt750:wlan"; -+ gpios = <&gpio3 0 1>; -+ }; -+ -+ }; -+ -+ gpio-keys-polled { -+ compatible = "gpio-keys-polled"; -+ #address-cells = <1>; -+ #size-cells = <0>; -+ poll-interval = <20>; -+ reset { -+ label = "reset"; -+ gpios = <&gpio0 13 1>; -+ linux,code = <0x198>; -+ }; -+ -+ BTN_0 { -+ label = "BTN_0"; -+ gpios = <&gpio2 2 1>; -+ linux,code = <0x100>; -+ }; -+ -+ BTN_1 { -+ label = "BTN_1"; -+ gpios = <&gpio2 3 1>; -+ linux,code = <0x101>; -+ }; -+ }; -+}; -diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile -index 9f83b1c..b55b2b0 100644 ---- a/target/linux/ramips/image/Makefile -+++ b/target/linux/ramips/image/Makefile -@@ -912,6 +912,7 @@ Image/Build/Profile/WT3020=$(call BuildFirmware/PorayDualSize/$(1),$(1),wt3020,W - Image/Build/Profile/XIAOMI-MIWIFI-MINI=$(call BuildFirmware/Default16M/$(1),$(1),xiaomi-miwifi-mini,XIAOMI-MIWIFI-MINI) - Image/Build/Profile/GL-MT300A=$(call BuildFirmware/Default16M/$(1),$(1),gl-mt300a,GL-MT300A) - Image/Build/Profile/GL-MT300N=$(call BuildFirmware/Default16M/$(1),$(1),gl-mt300n,GL-MT300N) -+Image/Build/Profile/GL-MT750=$(call BuildFirmware/Default16M/$(1),$(1),gl-mt750,GL-MT750) - Image/Build/Profile/ZTE-Q7=$(call BuildFirmware/Default8M/$(1),$(1),zte-q7,ZTE-Q7) - Image/Build/Profile/ZBT-WA05=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wa05,ZBT-WA05) - Image/Build/Profile/ArcherC20i=$(call BuildFirmware/Tplink/$(1),$(1),ArcherC20i,ArcherC20i) -@@ -948,6 +949,7 @@ define Image/Build/Profile/Default - $(call Image/Build/Profile/XIAOMI-MIWIFI-MINI,$(1)) - $(call Image/Build/Profile/GL-MT300A,$(1)) - $(call Image/Build/Profile/GL-MT300N,$(1)) -+ $(call Image/Build/Profile/GL-MT750,$(1)) - $(call Image/Build/Profile/ZTE-Q7,$(1)) - $(call Image/Build/Profile/ZBT-WA05,$(1)) - $(call Image/Build/Profile/ArcherC20i,$(1)) -diff --git a/target/linux/ramips/mt7620/profiles/gli.mk b/target/linux/ramips/mt7620/profiles/gli.mk -index ce407e2..0154bbc 100644 ---- a/target/linux/ramips/mt7620/profiles/gli.mk -+++ b/target/linux/ramips/mt7620/profiles/gli.mk -@@ -16,11 +16,21 @@ endef - $(eval $(call Profile,GL-MT300A)) - - define Profile/GL-MT300N -- NAME:=GL-MT300N -- PACKAGES:=kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci kmod-mt76 -+ NAME:=GL-MT300N -+ PACKAGES:=kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci kmod-mt76 - endef - - define Profile/GL-MT300N/Description - Support for gl-mt300n Router - endef - $(eval $(call Profile,GL-MT300N)) -+ -+define Profile/GL-MT750 -+ NAME:=GL-MT750 -+ PACKAGES:=kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-mt7610e -+endef -+ -+define Profile/GL-MT750/Description -+ Support for gl-mt750 Router -+endef -+$(eval $(call Profile,GL-MT750)) diff --git a/patches/010-tpl-CPE_enable_LNA.patch b/patches/010-tpl-CPE_enable_LNA.patch deleted file mode 100644 index 1edbaf6d80..0000000000 --- a/patches/010-tpl-CPE_enable_LNA.patch +++ /dev/null @@ -1,35 +0,0 @@ -commit 94e23bf7409d6cc4c9efb55ed32aba8e5a497966 -Author: Alexander Couzens -Date: Fri May 20 13:10:36 2016 +0200 - - ar71xx/cpe510: enable LNA for CPE210/220/510/520 - - The LNA improves the rx path. Within a simple test setup - it improved the signal from -60dbm to -40dbm. - - Signed-off-by: Alexander Couzens - -diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c -index 8bf5c0f..5cb052a 100644 ---- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c -+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c -@@ -30,6 +30,9 @@ - #define CPE510_GPIO_LED_L3 15 - #define CPE510_GPIO_LED_L4 16 - -+#define CPE510_GPIO_EXTERNAL_LNA0 18 -+#define CPE510_GPIO_EXTERNAL_LNA1 19 -+ - #define CPE510_GPIO_BTN_RESET 4 - - #define CPE510_KEYS_POLL_INTERVAL 20 /* msecs */ -@@ -93,6 +96,9 @@ static void __init cpe510_setup(void) - ARRAY_SIZE(cpe510_gpio_keys), - cpe510_gpio_keys); - -+ ath79_wmac_set_ext_lna_gpio(0, CPE510_GPIO_EXTERNAL_LNA0); -+ ath79_wmac_set_ext_lna_gpio(1, CPE510_GPIO_EXTERNAL_LNA1); -+ - ath79_register_m25p80(NULL); - - ath79_register_mdio(1, 0); diff --git a/patches/011-tpl-wr841_names.patch b/patches/011-tpl-wr841_names.patch deleted file mode 100644 index 6268d59232..0000000000 --- a/patches/011-tpl-wr841_names.patch +++ /dev/null @@ -1,88 +0,0 @@ -commit f9c65af8df6a3bb0b3eab5c67de22a0464220f82 -Author: Sven Roederer -Date: Thu Nov 3 23:27:56 2016 +0100 - - Revert "Revert "ar71xx: change some TP-link modelnames (WR841, WA701, WA730)"" - - This reverts commit 6d6921e1973a4624f45a163371706b072dc76cea. - To get rid of confusing different suffixes ("N"/"ND") of TPlink WR841er - - Conflicts: - target/linux/ar71xx/image/Makefile - -diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile -index 66ae537..defbb5f 100644 ---- a/target/linux/ar71xx/image/Makefile -+++ b/target/linux/ar71xx/image/Makefile -@@ -579,28 +579,28 @@ define Device/tl-wr743nd-v2 - endef - TARGET_DEVICES += tl-wr740n-v4 tl-wr740n-v5 tl-wr740n-v6 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v2 - --define Device/tl-wr841n-v8 -+define Device/tl-wr841-v8 - $(Device/tplink-4mlzma) - BOARDNAME := TL-WR841N-v8 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410008 - endef - --define Device/tl-wr841n-v9 -+define Device/tl-wr841-v9 - $(Device/tplink-4mlzma) - BOARDNAME := TL-WR841N-v9 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410009 - endef - --define Device/tl-wr841n-v10 -+define Device/tl-wr841-v10 - $(Device/tplink-4mlzma) - BOARDNAME := TL-WR841N-v9 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410010 - endef - --define Device/tl-wr841n-v11 -+define Device/tl-wr841-v11 - $(Device/tplink-4mlzma) - BOARDNAME := TL-WR841N-v11 - DEVICE_PROFILE := TLWR841 -@@ -634,7 +634,7 @@ define Device/tl-wr847n-v8 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08470008 - endef --TARGET_DEVICES += tl-wr841n-v8 tl-wr841n-v9 tl-wr841n-v10 tl-wr841n-v11 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8 -+TARGET_DEVICES += tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr841-v11 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8 - - define Device/tl-wr941nd-v5 - $(Device/tplink-4mlzma) -@@ -2069,13 +2069,13 @@ $(eval $(call SingleProfile,Seama,64k,QIHOO360,qihoo-c301,QIHOO-C301,ttyS0,11520 - - $(eval $(call SingleProfile,Senao,squashfs-only,EAP300V2,eap300v2,EAP300V2,ttyS0,115200,$$(eap300v2_mtdlayout))) - --$(eval $(call SingleProfile,TPLINKOLD,squashfs-only,TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M)) -+$(eval $(call SingleProfile,TPLINKOLD,squashfs-only,TLWR841NV15,tl-wr841-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M)) - - $(eval $(call SingleProfile,TPLINK,64kraw,RNXN360RT,rnx-n360rt,TL-WR941ND,ttyS0,115200,0x09410002,0x00420001,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLMR3220V1,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x32200001,1,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLMR3420V1,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x34200001,1,4M)) --$(eval $(call SingleProfile,TPLINK,64kraw,TLWA701NV1,tl-wa701n-v1,TL-WA901ND,ttyS0,115200,0x07010001,1,4M)) --$(eval $(call SingleProfile,TPLINK,64kraw,TLWA730REV1,tl-wa730rev1,TL-WA901ND,ttyS0,115200,0x07300001,1,4M)) -+$(eval $(call SingleProfile,TPLINK,64kraw,TLWA701NV1,tl-wa701nd-v1,TL-WA901ND,ttyS0,115200,0x07010001,1,4M)) -+$(eval $(call SingleProfile,TPLINK,64kraw,TLWA730REV1,tl-wa730re-v1,TL-WA901ND,ttyS0,115200,0x07300001,1,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLWA7510NV1,tl-wa7510n,TL-WA7510N,ttyS0,115200,0x75100001,1,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLWA801NV1,tl-wa801nd-v1,TL-WA901ND,ttyS0,115200,0x08010001,1,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLWA830RV1,tl-wa830re-v1,TL-WA901ND,ttyS0,115200,0x08300010,1,4M)) -@@ -2084,9 +2084,9 @@ $(eval $(call SingleProfile,TPLINK,64kraw,TLWA901NV2,tl-wa901nd-v2,TL-WA901ND-v2 - $(eval $(call SingleProfile,TPLINK,64kraw,TLWR740NV1,tl-wr740n-v1,TL-WR741ND,ttyS0,115200,0x07400001,1,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLWR740NV3,tl-wr740n-v3,TL-WR741ND,ttyS0,115200,0x07400003,1,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLWR743NV1,tl-wr743nd-v1,TL-WR741ND,ttyS0,115200,0x07430001,1,4M)) --$(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV3,tl-wr841nd-v3,TL-WR941ND,ttyS0,115200,0x08410003,3,4M)) --$(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV5,tl-wr841nd-v5,TL-WR741ND,ttyS0,115200,0x08410005,1,4M)) --$(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV7,tl-wr841nd-v7,TL-WR841N-v7,ttyS0,115200,0x08410007,1,4M)) -+$(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV3,tl-wr841-v3,TL-WR941ND,ttyS0,115200,0x08410003,3,4M)) -+$(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV5,tl-wr841-v5,TL-WR741ND,ttyS0,115200,0x08410005,1,4M)) -+$(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV7,tl-wr841-v7,TL-WR841N-v7,ttyS0,115200,0x08410007,1,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLWR842V1,tl-wr842n-v1,TL-MR3420,ttyS0,115200,0x08420001,1,8M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV2,tl-wr941nd-v2,TL-WR941ND,ttyS0,115200,0x09410002,2,4M)) - $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV3,tl-wr941nd-v3,TL-WR941ND,ttyS0,115200,0x09410002,2,4M)) diff --git a/patches/012-iwinfo_add_nsm2locoxm.patch b/patches/012-iwinfo_add_nsm2locoxm.patch deleted file mode 100644 index 14c99344d8..0000000000 --- a/patches/012-iwinfo_add_nsm2locoxm.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- /dev/null -+++ b/package/base-files/files/etc/uci-defaults/00_update_iwinfo -@@ -0,0 +1,5 @@ -+#!/bin/sh -+ -+echo >>/usr/share/libiwinfo/hardware.txt '0x168c 0x002e 0x0777 0xe0a2 8 0 "Ubiquiti" "NanoStation Loco M2 (XM)"' -+ -+exit 0 diff --git a/patches/100-add_package_snmp-mibs.patch b/patches/100-add_package_snmp-mibs.patch deleted file mode 100644 index cd19571689..0000000000 --- a/patches/100-add_package_snmp-mibs.patch +++ /dev/null @@ -1,62 +0,0 @@ -commit 5eead6cd002b4d66f13123886c2d263ef94ec351 -Author: Sven Roederer -Date: Sat Jul 23 13:26:01 2016 +0200 - - net-snmp: add package snmp-mibs - - this installs the default MIBS-files under /usr/share/snmp/mibs - -diff --git a/feeds/packages/net/net-snmp/Makefile b/feeds/packages/net/net-snmp/Makefile -index 5736e0d..86a70b1 100644 ---- a/feeds/packages/net/net-snmp/Makefile -+++ b/feeds/packages/net/net-snmp/Makefile -@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk - - PKG_NAME:=net-snmp - PKG_VERSION:=5.4.4 --PKG_RELEASE:=1 -+PKG_RELEASE:=2 - - PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz - PKG_SOURCE_URL:=@SF/net-snmp -@@ -88,6 +88,18 @@ $(call Package/net-snmp/Default/description) - endef - - -+define Package/snmp-mibs -+$(call Package/net-snmp/Default) -+ TITLE:=Open source SNMP implementation (MIB-files) -+endef -+ -+define Package/snmp-mibs/description -+$(call Package/net-snmp/Default/description) -+ . -+ This package contains SNMP MIB-Files. -+endef -+ -+ - SNMP_MIB_MODULES_INCLUDED = \ - host/hr_device \ - host/hr_disk \ -@@ -164,7 +176,6 @@ CONFIGURE_ARGS += \ - --enable-applications \ - --disable-debugging \ - --disable-manuals \ -- --disable-mibs \ - --disable-scripts \ - --with-out-mib-modules="$(SNMP_MIB_MODULES_EXCLUDED)" \ - --with-mib-modules="$(SNMP_MIB_MODULES_INCLUDED)" \ -@@ -250,7 +261,13 @@ define Package/snmp-utils/install - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/snmp{get,set,status,test,trap,walk} $(1)/usr/bin/ - endef - -+define Package/snmp-mibs/install -+ $(INSTALL_DIR) $(1)/usr/share/snmp/mibs -+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/snmp/mibs/* $(1)/usr/share/snmp/mibs/ -+endef -+ - $(eval $(call BuildPackage,libnetsnmp)) - $(eval $(call BuildPackage,snmp-utils)) - $(eval $(call BuildPackage,snmpd)) - $(eval $(call BuildPackage,snmpd-static)) -+$(eval $(call BuildPackage,snmp-mibs)) diff --git a/patches/200-update-community-profiles.patch b/patches/200-update-community-profiles.patch deleted file mode 100644 index 168c9a3722..0000000000 --- a/patches/200-update-community-profiles.patch +++ /dev/null @@ -1,161 +0,0 @@ -Index: openwrt/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_berlin -=================================================================== ---- openwrt.orig/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_berlin -+++ openwrt/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_berlin -@@ -1,50 +1,39 @@ - config 'community' 'profile' - option 'name' 'Freifunk Berlin' - option 'homepage' 'http://berlin.freifunk.net' -- option 'ssid' 'freifunk.net' -+ option 'ssid' 'berlin.freifunk.net' - option 'ssid_scheme' 'addchannelbefore' - option 'mesh_network' '104.0.0.0/8' - option 'splash_network' '10.104.0.0/16' - option 'splash_prefix' '27' - option 'latitude' '52.52075' - option 'longitude' '13.40948' -- list 'owm_api' 'http://api.openwifimap.net' -- list 'owm_api' 'http://owmapi.pberg.freifunk.net' -- option 'mapserver' 'http://map.pberg.freifunk.net/' -+ option 'owm_api' 'http://util.berlin.freifunk.net' - - config 'defaults' 'wifi_device' - option 'channel' '13' - -+config 'defaults' 'wifi_device_5' -+ option 'channel' '36' -+ -+config 'defaults' 'wifi_iface' -+ option 'mcast_rate' '6000' -+ -+config 'defaults' 'wifi_iface_5' -+ option 'mcast_rate' '12000' -+ - config 'defaults' 'bssidscheme' - option '10' '02:CA:FF:EE:BA:BE' - option '13' 'D2:CA:FF:EE:BA:BE' - option '36' '02:36:CA:FF:EE:EE' - - config 'defaults' 'ssidscheme' -- option '13' 'ch13.freifunk.net' -- option '36' 'ch36.freifunk.net' -+ option '13' 'intern-ch13.freifunk.net' -+ option '36' 'intern-ch36.freifunk.net' - - config 'defaults' 'interface' -- option 'netmask' '255.0.0.0' -- option 'dns' '85.214.20.141 213.73.91.35 194.150.168.168' -- --config 'defaults' 'olsr_interface' -- option 'Ip4Broadcast' '255.255.255.255' -- option 'HelloInterval' '3.0' -- option 'HelloValidityTime' '125.0' -- option 'TcInterval' '2.0' -- option 'TcValidityTime' '500.0' -- option 'MidInterval' '25.0' -- option 'MidValidityTime' '500.0' -- option 'HnaInterval' '10.0' -- option 'HnaValidityTime' '125.0' -- --config 'defaults' 'olsrd' -- option 'AllowNoInt' 'yes' -- option 'FIBMetric' 'flat' -- option 'Pollrate' '0.025' -- option 'TcRedundancy' '2' -- option 'NatThreshold' '0.75' -- option 'LinkQualityAlgorithm' 'etx_ff' -- option 'RtTableDefaultOlsrPriority' '20000' -- option 'RtTableTunnelPriority' '100000' -+ option 'netmask' '255.255.255.255' -+ option 'dns' '85.214.20.141 213.73.91.35 194.150.168.168 2001:4ce8::53 2001:910:800::12' -+ -+config 'dhcp' 'dhcp' -+ option leasetime '5m' -diff --git a/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_bno b/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_bno -deleted file mode 100644 -index 2d0f0f5..0000000 ---- a/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_bno -+++ /dev/null -@@ -1,38 +0,0 @@ --config 'community' 'profile' -- option 'name' 'Berlin NordOst' -- option 'homepage' 'http://www.freifunk-bno.de/' -- option 'ssid' 'olsr.freifunk.net' -- option 'mesh_network' '104.0.0.0/8' -- option 'splash_network' '10.104.0.0/16' -- option 'splash_prefix' '27' -- option 'latitude' '52.55010' -- option 'longitude' '13.45889' -- option 'suffix' 'olsr' -- list 'owm_api' 'http://api.openwifimap.net' -- list 'owm_api' 'http://owmapi.pberg.freifunk.net' -- option 'mapserver' 'http://map.pberg.freifunk.net/' -- --config 'defaults' 'wifi_device' -- option 'channel' '10' -- --config 'defaults' 'interface' -- option 'netmask' '255.0.0.0' -- --config 'defaults' 'olsr_interface' -- option 'Ip4Broadcast' '255.255.255.255' -- option 'HelloInterval' '3.0' -- option 'HelloValidityTime' '125.0' -- option 'TcInterval' '2.0' -- option 'TcValidityTime' '500.0' -- option 'MidInterval' '25.0' -- option 'MidValidityTime' '500.0' -- option 'HnaInterval' '10.0' -- option 'HnaValidityTime' '125.0' -- --config 'defaults' 'olsrd' -- option 'AllowNoInt' 'yes' -- option 'FIBMetric' 'flat' -- option 'Pollrate' '0.025' -- option 'TcRedundancy' '2' -- option 'NatThreshold' '0.75' -- option 'LinkQualityAlgorithm' 'etx_ff' -diff --git a/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_pberg b/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_pberg -deleted file mode 100644 -index 1122eaa..0000000 ---- a/feeds/luci/contrib/package/community-profiles/files/etc/config/profile_pberg -+++ /dev/null -@@ -1,38 +0,0 @@ --config 'community' 'profile' -- option 'name' 'Freifunk Berlin Prenzlauer Berg' -- option 'homepage' 'http://pberg.freifunk.net' -- option 'ssid' 'olsr.freifunk.net' -- option 'mesh_network' '104.0.0.0/8' -- option 'splash_network' '10.104.0.0/16' -- option 'splash_prefix' '27' -- option 'latitude' '52.5427' -- option 'longitude' '13.4172' -- list 'owm_api' 'http://api.openwifimap.net' -- list 'owm_api' 'http://owmapi.pberg.freifunk.net' -- option 'mapserver' 'http://map.pberg.freifunk.net/' -- --config 'defaults' 'wifi_device' -- option 'channel' '10' -- --config 'defaults' 'interface' -- option 'netmask' '255.0.0.0' -- --config 'defaults' 'olsr_interface' -- option 'Ip4Broadcast' '255.255.255.255' -- option 'HelloInterval' '3.0' -- option 'HelloValidityTime' '125.0' -- option 'TcInterval' '2.0' -- option 'TcValidityTime' '500.0' -- option 'MidInterval' '25.0' -- option 'MidValidityTime' '500.0' -- option 'HnaInterval' '10.0' -- option 'HnaValidityTime' '125.0' -- --config 'defaults' 'olsrd' -- option 'AllowNoInt' 'yes' -- option 'FIBMetric' 'flat' -- option 'Pollrate' '0.025' -- option 'TcRedundancy' '2' -- option 'NatThreshold' '0.75' -- option 'LinkQualityAlgorithm' 'etx_ff' -- diff --git a/patches/702-luci-bootstrap-input-css.patch b/patches/702-luci-bootstrap-input-css.patch deleted file mode 100644 index 7171fd937c..0000000000 --- a/patches/702-luci-bootstrap-input-css.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: openwrt/feeds/luci/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css -=================================================================== ---- openwrt.orig/feeds/luci/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css -+++ openwrt/feeds/luci/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css -@@ -493,6 +493,12 @@ select, - - select { - padding: initial; -+ color: #303030; -+ background-color: #f8f8f8; -+} -+ -+input { -+ color: #303030; - } - - input[type=checkbox], input[type=radio] { diff --git a/patches/series b/patches/series index 765466ae58..94978a75a3 100644 --- a/patches/series +++ b/patches/series @@ -1,19 +1,5 @@ -000-fix-mt7620-failsafe.patch 001-rt2x00_allow_adhoc_and_ap.patch 002-add_ramips-nexx-image.patch -003-add_tpl-wr842v3.patch -004-add_GL-AR150.patch -005-add_GL-AR300.patch -006-add_GL-DominoPi.patch -007-add_GL-MT300A.patch -008-add_GL-MT300N.patch -009-add_GL-MT750.patch -010-tpl-CPE_enable_LNA.patch -011-tpl-wr841_names.patch -012-iwinfo_add_nsm2locoxm.patch -100-add_package_snmp-mibs.patch -200-update-community-profiles.patch 600-imagebuilder-custom-postinst-script.patch 701-luci-freifunk-policyrouting-berlin.patch -702-luci-bootstrap-input-css.patch 703-policyrouting_fix_bypass-vpn.patch diff --git a/profiles/ar71xx-mikrotik.profiles b/profiles/ar71xx-mikrotik.profiles index 8b19395a15..697bb66f2c 100644 --- a/profiles/ar71xx-mikrotik.profiles +++ b/profiles/ar71xx-mikrotik.profiles @@ -1 +1 @@ -DefaultNoWifi +Default