aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/mt7629
diff options
context:
space:
mode:
authorWenli Looi <wlooi@ucalgary.ca>2023-03-30 19:46:19 +0000
committerDaniel Golle <daniel@makrotopia.org>2023-07-13 12:05:28 +0100
commit23d6474e451216d2e9c7b3b5d29df336b9523b5c (patch)
tree907928d5e0113b9ea6168e98494e356bef23a28e /target/linux/mediatek/mt7629
parent977ee439d7068e405361322013e9a2114bfefcda (diff)
downloadupstream-23d6474e451216d2e9c7b3b5d29df336b9523b5c.tar.gz
upstream-23d6474e451216d2e9c7b3b5d29df336b9523b5c.tar.bz2
upstream-23d6474e451216d2e9c7b3b5d29df336b9523b5c.zip
mediatek: add support for Netgear EX6250v2 series
Netgear EX6250v2, EX6400v3, EX6410v2, EX6470 are wall-plug 802.11ac (Wi-Fi 5) extenders. Like other MT7629 devices, Wi-Fi does not work currently as there is no driver. Related: https://github.com/openwrt/openwrt/pull/5084 For future reference, 2.4GHz MAC = LAN+1, 5GHz MAC = LAN+2. Specifications: * MT7629, 256 MiB RAM, 16 MiB SPI NOR * MT7761N (2.4GHz) / MT7762N (5GHz) - no driver * Ethernet: 1 port 10/100/1000 * UART: 115200 baud (labeled on board) Installation: * Flash the factory image through the stock web interface, or TFTP to the bootloader. NMRP can be used to TFTP without opening the case. * After installation, perform a factory reset. Wait for the device to boot, then hold the reset button for 10 seconds. This is needed because sysupgrade in the stock firmware will attempt to preserve its configuration using sysupgrade.tgz. See https://github.com/openwrt/openwrt/pull/4182 Revert to stock firmware: * Flash the stock firmware to the bootloader using TFTP/NMRP. Signed-off-by: Wenli Looi <wlooi@ucalgary.ca> (cherry picked from commit 73de41898fcd06d837b013449c370c493bcdc595)
Diffstat (limited to 'target/linux/mediatek/mt7629')
-rw-r--r--target/linux/mediatek/mt7629/base-files/etc/board.d/01_leds4
-rw-r--r--target/linux/mediatek/mt7629/base-files/etc/board.d/02_network11
2 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/mediatek/mt7629/base-files/etc/board.d/01_leds b/target/linux/mediatek/mt7629/base-files/etc/board.d/01_leds
index 42b6fcbbb3..c42ab4713b 100644
--- a/target/linux/mediatek/mt7629/base-files/etc/board.d/01_leds
+++ b/target/linux/mediatek/mt7629/base-files/etc/board.d/01_leds
@@ -9,6 +9,10 @@ case $board in
iptime,a6004mx)
ucidef_set_led_netdev "wan" "WAN" "orange:wan" "eth1"
;;
+netgear,ex6250-v2)
+ ucidef_set_led_netdev "eth_act" "LAN act" "yellow:eth" "eth0" "tx rx"
+ ucidef_set_led_netdev "eth_link" "LAN link" "green:eth" "eth0" "link"
+ ;;
esac
board_config_flush
diff --git a/target/linux/mediatek/mt7629/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7629/base-files/etc/board.d/02_network
index 4254f39ca0..db931c8334 100644
--- a/target/linux/mediatek/mt7629/base-files/etc/board.d/02_network
+++ b/target/linux/mediatek/mt7629/base-files/etc/board.d/02_network
@@ -16,6 +16,9 @@ mediatek_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "6@eth0"
;;
+ netgear,ex6250-v2)
+ ucidef_set_interface_lan "eth0"
+ ;;
esac
}
@@ -24,7 +27,15 @@ mediatek_setup_macs()
local board="$1"
case $board in
+ netgear,ex6250-v2)
+ lan_mac=$(mtd_get_mac_ascii Config mac)
+ label_mac=$lan_mac
+ ;;
esac
+
+ [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
+ [ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac
+ [ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac
}
board_config_update