mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
ath79: add support for Mercury MW4530R v1
Mercury MW4530R is a TP-Link TL-WDR4310 clone. Specification: * SOC: Atheros AR9344 (560 MHz) * RAM: 128 MiB * Flash: 8192 KiB * Ethernet: 5 x 10/100/1000 (4 x LAN, 1 x WAN) (AR8327) * Wireless: - 2.4 GHz b/g/n (internal) - 5 GHz a/n (AR9580) * USB: yes, 1 x USB 2.0 Installation: Flash factory image via OEM web interface. Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
This commit is contained in:
parent
bee76f1bfa
commit
53df30f02b
9
target/linux/ath79/dts/ar9344_mercury_mw4530r-v1.dts
Normal file
9
target/linux/ath79/dts/ar9344_mercury_mw4530r-v1.dts
Normal file
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9344_tplink_tl-wdr4300.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Mercury MW4530R v1";
|
||||
compatible = "mercury,mw4530r-v1", "qca,ar9344";
|
||||
};
|
@ -223,6 +223,19 @@ ath79_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "5:wan" "6@eth1" "4:lan"
|
||||
;;
|
||||
mercury,mw4530r-v1|\
|
||||
tplink,archer-a7-v5|\
|
||||
tplink,archer-c6-v2|\
|
||||
tplink,archer-c6-v2-us|\
|
||||
tplink,archer-c7-v4|\
|
||||
tplink,archer-c7-v5|\
|
||||
tplink,tl-wdr3600-v1|\
|
||||
tplink,tl-wdr4300-v1|\
|
||||
tplink,tl-wdr4300-v1-il|\
|
||||
tplink,tl-wdr4310-v1)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
|
||||
;;
|
||||
nec,wg1200cr|\
|
||||
ubnt,nanostation-ac|\
|
||||
yuncore,a782|\
|
||||
@ -273,18 +286,6 @@ ath79_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "2:lan:3" "3:lan:2" "4:lan:1"
|
||||
;;
|
||||
tplink,archer-a7-v5|\
|
||||
tplink,archer-c6-v2|\
|
||||
tplink,archer-c6-v2-us|\
|
||||
tplink,archer-c7-v4|\
|
||||
tplink,archer-c7-v5|\
|
||||
tplink,tl-wdr3600-v1|\
|
||||
tplink,tl-wdr4300-v1|\
|
||||
tplink,tl-wdr4300-v1-il|\
|
||||
tplink,tl-wdr4310-v1)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
|
||||
;;
|
||||
tplink,archer-c5-v1|\
|
||||
tplink,archer-c7-v1|\
|
||||
tplink,archer-c7-v2|\
|
||||
@ -502,6 +503,13 @@ ath79_setup_macs()
|
||||
wan_mac=$(fconfig -s -r -d $(find_mtd_part "RedBoot config") -n alias/ethaddr)
|
||||
lan_mac=$(macaddr_add "$wan_mac" 1)
|
||||
;;
|
||||
mercury,mw4530r-v1|\
|
||||
tplink,tl-wdr3600-v1|\
|
||||
tplink,tl-wdr4300-v1|\
|
||||
tplink,tl-wdr4300-v1-il)
|
||||
base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
|
||||
wan_mac=$(macaddr_add "$base_mac" 1)
|
||||
;;
|
||||
nec,wg800hp)
|
||||
lan_mac=$(mtd_get_mac_text board_data 0x280)
|
||||
wan_mac=$(mtd_get_mac_text board_data 0x480)
|
||||
@ -536,12 +544,6 @@ ath79_setup_macs()
|
||||
base_mac=$(mtd_get_mac_binary info 0x8)
|
||||
wan_mac=$(macaddr_add "$base_mac" 1)
|
||||
;;
|
||||
tplink,tl-wdr3600-v1|\
|
||||
tplink,tl-wdr4300-v1|\
|
||||
tplink,tl-wdr4300-v1-il)
|
||||
base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
|
||||
wan_mac=$(macaddr_add "$base_mac" 1)
|
||||
;;
|
||||
trendnet,tew-823dru)
|
||||
lan_mac=$(mtd_get_mac_text mac 0x4)
|
||||
wan_mac=$(mtd_get_mac_text mac 0x18)
|
||||
|
@ -90,6 +90,7 @@ case "$FIRMWARE" in
|
||||
caldata_extract "calibrate" 0x5000 0x440
|
||||
ath9k_patch_mac $(mtd_get_mac_ascii u-boot-env0 RADIOADDR0)
|
||||
;;
|
||||
mercury,mw4530r-v1|\
|
||||
ocedo,raccoon|\
|
||||
tplink,tl-wdr3500-v1|\
|
||||
tplink,tl-wdr3600-v1|\
|
||||
|
@ -21,6 +21,14 @@ engenius,epg5000)
|
||||
glinet,gl-mifi)
|
||||
migrate_leds ":net=:3g4g"
|
||||
;;
|
||||
mercury,mw4530r-v1|\
|
||||
tplink,archer-c7-v2|\
|
||||
tplink,tl-wdr3600-v1|\
|
||||
tplink,tl-wdr4300-v1|\
|
||||
tplink,tl-wdr4300-v1-il|\
|
||||
tplink,tl-wdr4310-v1)
|
||||
migrate_leds ":blue:=:green:"
|
||||
;;
|
||||
tplink,archer-c25-v1|\
|
||||
tplink,archer-c58-v1|\
|
||||
tplink,archer-c59-v1|\
|
||||
@ -32,13 +40,6 @@ tplink,archer-c7-v5|\
|
||||
tplink,tl-wr902ac-v1)
|
||||
migrate_leds "^$boardonly:=tp-link:"
|
||||
;;
|
||||
tplink,archer-c7-v2|\
|
||||
tplink,tl-wdr3600-v1|\
|
||||
tplink,tl-wdr4300-v1|\
|
||||
tplink,tl-wdr4300-v1-il|\
|
||||
tplink,tl-wdr4310-v1)
|
||||
migrate_leds ":blue:=:green:"
|
||||
;;
|
||||
tplink,re355-v1)
|
||||
migrate_leds "re355:=tp-link:"
|
||||
;;
|
||||
|
@ -1090,6 +1090,18 @@ define Device/meraki_mr16
|
||||
endef
|
||||
TARGET_DEVICES += meraki_mr16
|
||||
|
||||
define Device/mercury_mw4530r-v1
|
||||
$(Device/tplink-8mlzma)
|
||||
SOC := ar9344
|
||||
DEVICE_VENDOR := Mercury
|
||||
DEVICE_MODEL := MW4530R
|
||||
DEVICE_VARIANT := v1
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
||||
TPLINK_HWID := 0x45300001
|
||||
SUPPORTED_DEVICES += tl-wdr4300
|
||||
endef
|
||||
TARGET_DEVICES += mercury_mw4530r-v1
|
||||
|
||||
define Device/nec_wg1200cr
|
||||
SOC := qca9563
|
||||
DEVICE_VENDOR := NEC
|
||||
|
Loading…
x
Reference in New Issue
Block a user