diff options
Diffstat (limited to 'target/linux/mediatek/mt7622')
3 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/mediatek/mt7622/base-files/etc/board.d/01_leds b/target/linux/mediatek/mt7622/base-files/etc/board.d/01_leds index 65a81df8da..5c32918d35 100644 --- a/target/linux/mediatek/mt7622/base-files/etc/board.d/01_leds +++ b/target/linux/mediatek/mt7622/base-files/etc/board.d/01_leds @@ -10,6 +10,9 @@ linksys,e8450|\ linksys,e8450-ubi) ucidef_set_led_netdev "wan" "WAN" "inet:blue" "wan" ;; +xiaomi,redmi-router-ax6s) + ucidef_set_led_netdev "wan" "WAN" "blue:net" "wan" + ;; esac board_config_flush diff --git a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network index 4649d0dc57..c55fcbee2e 100644 --- a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network @@ -24,6 +24,9 @@ mediatek_setup_interfaces() ubnt,unifi-6-lr-ubootmod) ucidef_set_interface_lan "eth0" ;; + xiaomi,redmi-router-ax6s) + ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" wan + ;; *) ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1" @@ -35,14 +38,22 @@ mediatek_setup_macs() { local board="$1" local lan_mac="" + local wan_mac="" + local label_mac="" case $board in ruijie,rg-ew3200gx-pro) lan_mac=$(macaddr_add $(get_mac_label) 1) ;; + xiaomi,redmi-router-ax6s) + wan_mac=$(mtd_get_mac_ascii bdata ethaddr_wan) + label_mac=$wan_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 diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh index fbca6ef0f7..f54665dfa1 100755 --- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh @@ -45,7 +45,8 @@ platform_do_upgrade() { default_do_upgrade "$1" ;; mediatek,mt7622-rfb1-ubi|\ - totolink,a8000ru) + totolink,a8000ru|\ + xiaomi,redmi-router-ax6s) nand_do_upgrade "$1" ;; *) @@ -67,7 +68,8 @@ platform_check_image() { buffalo_check_image "$board" "$magic" "$1" || return 1 ;; mediatek,mt7622-rfb1-ubi|\ - totolink,a8000ru) + totolink,a8000ru|\ + xiaomi,redmi-router-ax6s) nand_do_platform_check "$board" "$1" ;; *) |