From 8c1f5141ceee722cdd282f909390b73455968cfd Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 24 Nov 2015 18:29:26 +0000 Subject: ralink: add support for netis WF-2881 netis WF-2881 is an MT7621AT based router with MT7602EN, MT7612EN. It has 128MB DDR3, 128MB SLC NAND FLASH, 5-port Gbps switch and 1x USB 3.0. The following patch adds support for this device. this device only works on top of UBI. Tested and working: * ethernet * both WiFi radios * USB 3.0 * buttons (reset button) * ethernet switch and USB diag LEDs * UART * GPIOs * sysupgrade Tested and not working * failsafe Signed-off-by: YounJae Rho SVN-Revision: 47619 --- target/linux/ramips/base-files/etc/board.d/01_leds | 3 ++- target/linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/etc/diag.sh | 1 + target/linux/ramips/base-files/lib/ramips.sh | 3 +++ target/linux/ramips/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 8 insertions(+), 1 deletion(-) (limited to 'target/linux/ramips/base-files') 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 1c18ded505..a4658a01b1 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -44,7 +44,8 @@ air3gii) all0239-3g|\ hw550-3g|\ mofi3500-3gn|\ -sap-g3200u3) +sap-g3200u3|\ +wf-2881) set_usb_led "$board:green:usb" ;; all0256n) 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 22809d1720..7e5122986c 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -78,6 +78,7 @@ ramips_setup_interfaces() oy-0001|\ pbr-m1|\ sap-g3200u3|\ + wf-2881|\ whr-300hp2|\ whr-600d|\ wsr-1166|\ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 3013d245d6..ff5fbf2696 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -155,6 +155,7 @@ get_status_led() { tew-692gr|\ ur-326n4g|\ ur-336un|\ + wf-2881|\ wr512-3gn) status_led="$board:green:wps" ;; diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index d6fdeb9891..92e13c034f 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -376,6 +376,9 @@ ramips_board_detect() { *"WCR-150GN") name="wcr-150gn" ;; + *"WF-2881") + name="wf-2881" + ;; *"WHR-1166D") name="whr-1166d" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 0b9dd43791..073593ad38 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -108,6 +108,7 @@ platform_check_image() { w150m|\ w306r-v20|\ w502u|\ + wf-2881|\ whr-1166d|\ whr-300hp2|\ whr-600d|\ -- cgit v1.2.3