aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorPawel Dembicki <paweldembicki@gmail.com>2018-11-17 08:47:40 +0000
committerJohn Crispin <john@phrozen.org>2018-11-26 12:16:52 +0100
commit20b09a2125f5b35ade1f3e9cebb15fe03e3b4e3c (patch)
tree514411700431f59bb7f7b6aa5141338f7e4498df /target/linux/ramips/base-files
parentb85fe43ec8c4d4aa34d3c0bbb3e57da3f176526b (diff)
downloadupstream-20b09a2125f5b35ade1f3e9cebb15fe03e3b4e3c.tar.gz
upstream-20b09a2125f5b35ade1f3e9cebb15fe03e3b4e3c.tar.bz2
upstream-20b09a2125f5b35ade1f3e9cebb15fe03e3b4e3c.zip
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 <paweldembicki@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network4
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh3
4 files changed, 11 insertions, 3 deletions
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)
;;
diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index 711b8388ba..aee446d156 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -56,7 +56,8 @@ case "$FIRMWARE" in
case $board in
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)
wifi_mac=$(macaddr_add "$wan_mac" 1)
jboot_eeprom_extract "config" 0xE000
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index f54f2fbe77..ecc4650f68 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -295,7 +295,8 @@ platform_check_image() {
dlink,dwr-116-a1|\
dlink,dwr-118-a2|\
dlink,dwr-921-c1|\
- dwr-512-b)
+ dwr-512-b|\
+ lava,lr-25g001)
[ "$magic" != "0404242b" ] && {
echo "Invalid image type."
return 1