From 5f932988c3b65af14bd6e48a05cc2204b7aeb419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Fri, 5 May 2017 17:54:26 +0200 Subject: ramips: add support for Asus RT-AC51U MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Specification: - SoC: MediaTek MT7620A (580 MHz) - RAM: 64 MiB (Winbond W9751G6JB-25) - Flash: 16 MiB (Spansion S25FL128SAIF00) - LAN: x4 100M - WAN: x1 100M - Others: USB 2.0, reset button, wps button and 9 LEDs Issues: - 5 GHz band is not functional (missing driver support) Installation: Asus windows recovery tool: - install the Asus firmware restoration utility - unplug the router, hold the reset button while powering it on - release when the power LED flashes slowly - specify a static IP on your computer: IP address: 192.168.1.75; Subnet mask 255.255.255.0 - Start the Asus firmware restoration utility, specify the sysupgrade image, and press upload TFTP Recovery method: - set computer to a static ip, 192.168.1.75 - connect computer to the LAN 1 port of the router - hold the reset button while powering on the router for a few seconds - send firmware image using a tftp client; i.e from linux: $ tftp tftp> binary tftp> connect 192.168.1.1 tftp> put lede-ramips-mt7620-rt-ac51u-squashfs-sysupgrade.bin tftp> quit Signed-off-by: Ørjan Malde --- target/linux/ramips/base-files/etc/board.d/01_leds | 4 ++++ target/linux/ramips/base-files/etc/board.d/02_network | 4 ++++ 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, 13 insertions(+) (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 9322228a10..2a35fc4bc2 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -314,6 +314,10 @@ rp-n53) ucidef_set_led_netdev "eth" "Network" "$board:white:back" "eth0" set_wifi_led "$board:blue:wifi" ;; +rt-ac51u) + set_wifi_led "$board:blue:wifi" + set_usb_led "$board:blue:usb" "1-1" + ;; rt-n14u) ucidef_set_led_default "power" "power" "$board:blue:power" "1" ucidef_set_led_netdev "lan" "lan" "$board:blue:lan" eth0.1 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 cefc4f41fe..6d93f2ccaa 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -135,6 +135,10 @@ ramips_setup_interfaces() ;; ar670w|\ ar725w|\ + rt-ac51u) + ucidef_add_switch "switch0" \ + "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0" + ;; rt-n15|\ wl-351) ucidef_add_switch "switch0" \ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index a36ce54675..e37f9cfda4 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -117,6 +117,7 @@ get_status_led() { dap-1350|\ na930|\ pbr-m1|\ + rt-ac51u|\ rt-n13u|\ rt-n14u|\ rt-n15|\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 506a98230a..4213159378 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -436,6 +436,9 @@ ramips_board_detect() { *"RT5350F-OLinuXino-EVB") name="rt5350f-olinuxino-evb" ;; + *"RT-AC51U") + name="rt-ac51u" + ;; *"RT-G32 B1") name="rt-g32-b1" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 039009303b..32bc453497 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -127,6 +127,7 @@ platform_check_image() { rp-n53|\ rt5350f-olinuxino|\ rt5350f-olinuxino-evb|\ + rt-ac51u|\ rt-g32-b1|\ rt-n10-plus|\ rt-n13u|\ -- cgit v1.2.3