From 20b09a2125f5b35ade1f3e9cebb15fe03e3b4e3c Mon Sep 17 00:00:00 2001 From: Pawel Dembicki Date: Sat, 17 Nov 2018 08:47:40 +0000 Subject: ramips: add support for Lava LR-25G001 The Lava LR-25G001 Wireless Router is based on the MT7620A SoC. Specification: - MediaTek MT7620A (580 Mhz) - 64 MB of RAM - 16 MB of FLASH - 1x 802.11bgn radio - 1x 802.11ac radio (MT7610EN) - 5x 10/100/1000 Mbps AR8337 Switch (1 WAN AND 4 LAN) - 2x external, detachable antennas - 1x USB 2.0 - UART (J3) header on PCB (57600 8n1) - 8x LED (3x GPIO-controlled), 2x button - JBOOT bootloader Known issues: - Work only three Gigabit ports (3/5, 1 WAN and 2LAN) Installation: Apply factory image via http web-gui or JBOOT recovery page How to revert to OEM firmware: - push the reset button and turn on the power. Wait until LED start blinking (~10sec.) - upload original factory image via JBOOT http (IP: 192.168.123.254) Signed-off-by: Pawel Dembicki --- target/linux/ramips/base-files/etc/board.d/01_leds | 4 ++++ target/linux/ramips/base-files/etc/board.d/02_network | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'target/linux/ramips/base-files/etc/board.d') 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 29d3c31275..2f83f221f1 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -195,6 +195,10 @@ kn_rf|\ kng_rc) set_wifi_led "$boardname:green:wifi" ;; +lava,lr-25g001) + ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "wlan1" + ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "wlan0" + ;; linkits7688) ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt" ;; 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 6d5db45c50..043607df5b 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -353,6 +353,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "4:lan" "6@eth0" ;; + lava,lr-25g001|\ tew-691gr|\ tew-692gr|\ wlr-6000) @@ -475,7 +476,8 @@ ramips_setup_macs() ;; dlink,dwr-116-a1|\ dlink,dwr-118-a2|\ - dlink,dwr-921-c1) + dlink,dwr-921-c1|\ + lava,lr-25g001) wan_mac=$(jboot_config_read -m -i $(find_mtd_part "config") -o 0xE000) lan_mac=$(macaddr_add "$wan_mac" 1) ;; -- cgit v1.2.3