aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7621/base-files
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2019-10-07 21:36:05 +0900
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-11-06 14:31:32 +0100
commit62b1559b569c47e3b5596b190f3e077f8e70d7f0 (patch)
tree0ff29ee761f87bc77f961c770643ae4882c37f44 /target/linux/ramips/mt7621/base-files
parent15dc60e727e591a214c9ec1006ced29c3f706728 (diff)
downloadupstream-62b1559b569c47e3b5596b190f3e077f8e70d7f0.tar.gz
upstream-62b1559b569c47e3b5596b190f3e077f8e70d7f0.tar.bz2
upstream-62b1559b569c47e3b5596b190f3e077f8e70d7f0.zip
ramips: improve support for WeVO 11AC NAS and W2914NS v2
- remove WAN port index - load WAN MAC address directly from the flash - provide label MAC address - increase flash's SPI frequency to 80MHz - add mt76 led nodes to make WiFi LEDs work - drop unnecessary pinmux groups The factory partition scheme for MAC addresses (verified on both devices): 0x4 : WiFi 2.4GHz (label_mac-9) 0x28 : unused 0x2e : WAN (label_mac) 0x8004: WiFi 5GHz (label_mac-5) 0xe000: LAN (label_mac-1) 0xe006: unused By improving flash speed, `time dd if=/dev/mtdblock3 of=/dev/null bs=64k` has been reduced from 14.51s to 3.11s. Signed-off-by: Sungbo Eo <mans0n@gorani.run> [rebased] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/mt7621/base-files')
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network15
1 files changed, 9 insertions, 6 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index f415cd29b8..ae03dc71b1 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -69,9 +69,7 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "4:wan:5" "6@eth0"
;;
- d-team,newifi-d2|\
- wevo,11acnas|\
- wevo,w2914ns-v2)
+ d-team,newifi-d2)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0"
;;
@@ -113,7 +111,9 @@ ramips_setup_interfaces()
netgear,r6350|\
netgear,r6850|\
netgear,wndr3700-v5|\
- netis,wf-2881)
+ netis,wf-2881|\
+ wevo,11acnas|\
+ wevo,w2914ns-v2)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
;;
@@ -164,8 +164,6 @@ ramips_setup_macs()
ubiquiti,edgerouterx-sfp|\
unielec,u7621-06-16m|\
unielec,u7621-06-64m|\
- wevo,11acnas|\
- wevo,w2914ns-v2|\
xiaoyu,xy-c5|\
xzwifi,creativebox-v1|\
zbtlink,zbt-wg2626)
@@ -225,6 +223,11 @@ ramips_setup_macs()
netgear,r6850)
wan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 2)
;;
+ wevo,11acnas|\
+ wevo,w2914ns-v2)
+ wan_mac=$(mtd_get_mac_binary factory 0x2e)
+ label_mac=$wan_mac
+ ;;
xiaomi,mir3g)
lan_mac=$(mtd_get_mac_binary factory 0xe006)
;;