Specifications: SoC: MediaTek MT7981B RAM: 256MiB Flash: SPI-NAND 128 MiB Switch: 1 WAN, 3 LAN (Gigabit) Buttons: Reset, Mesh Power: DC 12V 1A WiFi: MT7976CN UART: 115200n8 UART Layout: VCC-RX-TX-GND No. of Antennas: 6 Note: Upon opening the router, only 5 antennas were connected to the mainboard. Led Layout: Power-Mesh-5gwifi-WAN-LAN3-LAN2-LAN1-2gWiFi Buttons: Reset-Mesh Installation: A. Through OpenWrt Dashboard: If your router comes with OpenWrt preinstalled (modified by the seller), you can easily upgrade by going to the dashboard (192.168.1.1) and then navigate to System -> Backup/Flash firmware, then flash the firmware B. Through TFTP Standard installation via UART: 1. Connect USB Serial Adapter to the UART, (NOTE: Don't connect the VCC pin). 2. Power on the router. Make sure that you can access your router via UART. 3. Restart the router then repeatedly press ctrl + c to skip default boot. 4. Type > bootmenu 5. Press '2' to select upgrade firmware 6. Press 'Y' on 'Run image after upgrading?' 7. Press '0' and hit 'enter' to select TFTP client (default) 8. Fill the U-Boot's IP address and TFTP server's IP address. 9. Finally, enter the 'firmware' filename. Signed-off-by: Ian Oderon <ianoderon@gmail.com> (cherry picked from commit 4300bc668819a77226b6e8ea079d3067f216e7bb)
62 lines
2.2 KiB
Plaintext
62 lines
2.2 KiB
Plaintext
. /lib/functions/leds.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board=$(board_name)
|
|
|
|
board_config_update
|
|
|
|
case $board in
|
|
confiabits,mt7981)
|
|
ucidef_set_led_netdev "lan1" "lan1" "blue:lan-1" "lan1" "link tx rx"
|
|
ucidef_set_led_netdev "lan2" "lan2" "blue:lan-2" "lan2" "link tx rx"
|
|
ucidef_set_led_netdev "lan3" "lan3" "blue:lan-3" "lan3" "link tx rx"
|
|
ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan" "link tx rx"
|
|
;;
|
|
cudy,re3000-v1)
|
|
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" "link tx rx"
|
|
;;
|
|
cudy,wr3000-v1)
|
|
ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan"
|
|
;;
|
|
mercusys,mr90x-v1)
|
|
ucidef_set_led_netdev "lan0" "lan0" "green:lan0" "lan0" "link tx rx"
|
|
ucidef_set_led_netdev "lan1" "lan2" "green:lan1" "lan1" "link tx rx"
|
|
ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2" "link tx rx"
|
|
ucidef_set_led_netdev "wan" "wan" "green:wan" "eth1" "link tx rx"
|
|
;;
|
|
netgear,wax220)
|
|
ucidef_set_led_netdev "eth0" "LAN" "green:lan" "eth0"
|
|
ucidef_set_led_netdev "wlan2g" "WLAN2G" "blue:wlan2g" "phy0-ap0"
|
|
ucidef_set_led_netdev "wlan5g" "WLAN5G" "blue:wlan5g" "phy1-ap0"
|
|
;;
|
|
routerich,ax3000)
|
|
ucidef_set_led_netdev "lan-1" "lan-1" "blue:lan-1" "lan1" "link tx rx"
|
|
ucidef_set_led_netdev "lan-2" "lan-2" "blue:lan-2" "lan2" "link tx rx"
|
|
ucidef_set_led_netdev "lan-3" "lan-3" "blue:lan-3" "lan3" "link tx rx"
|
|
ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan" "link tx rx"
|
|
ucidef_set_led_netdev "wan-off" "wan-off" "red:wan" "wan" "link"
|
|
;;
|
|
xiaomi,mi-router-wr30u-stock|\
|
|
xiaomi,mi-router-wr30u-ubootmod)
|
|
ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan" "link tx rx"
|
|
;;
|
|
xiaomi,redmi-router-ax6000-stock|\
|
|
xiaomi,redmi-router-ax6000-ubootmod)
|
|
ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan"
|
|
;;
|
|
zbtlink,zbt-z8103ax)
|
|
ucidef_set_led_netdev "wan" "wan" "green:wan" "eth1" "link tx rx"
|
|
;;
|
|
zyxel_ex5601-t0-stock|\
|
|
zyxel,ex5601-t0-ubootmod)
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0" "link tx rx"
|
|
ucidef_set_led_netdev "wan" "WAN" "green:inet" "eth1" "link tx rx"
|
|
ucidef_set_led_netdev "wifi-24g" "WIFI-2.4G" "green:wifi24g" "phy0-ap0" "link tx rx"
|
|
ucidef_set_led_netdev "wifi-5g" "WIFI-5G" "green:wifi5g" "phy1-ap0" "link tx rx"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|