aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7621/base-files
diff options
context:
space:
mode:
authorPiotr Dymacz <pepe2k@gmail.com>2023-07-28 11:41:14 +0200
committerPiotr Dymacz <pepe2k@gmail.com>2023-09-11 11:41:57 +0200
commitf1aaa267f0ea18ffe5840f3ce46a48be123d2f62 (patch)
treefc033d3d563fece887ba521c001a85cd3c11b44d /target/linux/ramips/mt7621/base-files
parent948ad2ec7a21645bac4d523c8f31d1cc3e2eac71 (diff)
downloadupstream-f1aaa267f0ea18ffe5840f3ce46a48be123d2f62.tar.gz
upstream-f1aaa267f0ea18ffe5840f3ce46a48be123d2f62.tar.bz2
upstream-f1aaa267f0ea18ffe5840f3ce46a48be123d2f62.zip
ramips: add support for ALFA Network AX1800RM
ALFA Network AX1800RM (FCC ID: 2AB877621) is a dual-band Wi-Fi 6 (AX1800) router, based on MediaTek MT7621A + MT79x5D platform. Specifications: - SOC: MT7621A (880 MHz) - DRAM: DDR3 256 MiB (Nanya NT5CC128M16JR-EK) - Flash: 16 MiB SPI NOR (EN25QH128A-104HIP) - Ethernet: 4x 10/100/1000 Mbps (SOC's built-in switch) - Wi-Fi: 2x2:2 2.4/5 GHz (MT7905DAN + MT7975DN) (MT7905DAN doesn't support background DFS scan/BT) - LED: 6x green, 1x green/red - Buttons: 2x (reset, WPS) - Antenna: 4x external, non-detachable omnidirectional - UART: 1x 4-pin (2.54 mm pitch, J4, not populated) - Power: 12 V DC/1 A (DC jack) MAC addresses: LAN: 00:c0:ca:xx:xx:4e (factory 0x4, +2) WAN: 00:c0:ca:xx:xx:4f (factory 0x4, +3) 2.4 GHz: 00:c0:ca:xx:xx:4c (factory 0x4, device's label) 5 GHz: 00:c0:ca:xx:xx:4c (factory 0xa) Flash instructions for web-based U-Boot recovery: 1. Power the device with WPS button pressed and wait around 10 seconds. 2. Setup static IP 192.168.1.2/24 on your PC. 3. Go to 192.168.1.1 in browser and upload 'recovery' image. The device runs LEDE 17.01 (kernel 4.4.x) based firmware with 'failsafe' mode available which allows alternative upgrade method: 1. Run device in 'failsafe' mode and change password for default user. 2. SSH to the device, transfer 'sysupgrade' image and perform upgrade in forced mode, without preserving settings: 'sysupgrade -n -F ...'. Other notes: If you own early version of this device, the vendor firmware might refuse OpenWrt image because of missing custom header. In that case, ask vendor's customer support for stock firmware without custom header support/requirement. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ramips/mt7621/base-files')
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/board.d/01_leds6
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/board.d/02_network58
2 files changed, 36 insertions, 28 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
index 1e13c04c2f2..d4dfdf39e2e 100644
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
@@ -7,6 +7,12 @@ board=$(board_name)
board_config_update
case $board in
+alfa-network,ax1800rm)
+ ucidef_set_led_netdev "lan1" "lan1" "green:lan1" "lan1"
+ ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2"
+ ucidef_set_led_netdev "lan3" "lan3" "green:lan3" "lan3"
+ ucidef_set_led_netdev "wan" "wan" "green:wan" "wan"
+ ;;
asus,rp-ac87)
ucidef_set_rssimon "wlan0" "200000" "1"
ucidef_set_rssimon "wlan1" "200000" "1"
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 7bd5e83c5a1..a162cb9d1de 100644
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -8,6 +8,26 @@ ramips_setup_interfaces()
local board="$1"
case $board in
+ alfa-network,ax1800rm|\
+ ampedwireless,ally-r1900k|\
+ asus,rt-ax53u|\
+ gehua,ghl-r-001|\
+ h3c,tx1800-plus|\
+ h3c,tx1801-plus|\
+ h3c,tx1806|\
+ haier,har-20s2u1|\
+ hiwifi,hc5962|\
+ netgear,wax202|\
+ sim,simax1800t|\
+ xiaomi,mi-router-3-pro|\
+ xiaomi,mi-router-ac2100|\
+ xiaomi,mi-router-cr6606|\
+ xiaomi,mi-router-cr6608|\
+ xiaomi,mi-router-cr6609|\
+ xiaomi,redmi-router-ac2100|\
+ zyxel,wsm20)
+ ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
+ ;;
arcadyan,we420223-99)
ucidef_set_interface_lan "swp0 swp1"
;;
@@ -39,25 +59,6 @@ ramips_setup_interfaces()
zyxel,nwa55axe)
ucidef_set_interface_lan "lan"
;;
- ampedwireless,ally-r1900k|\
- asus,rt-ax53u|\
- gehua,ghl-r-001|\
- h3c,tx1800-plus|\
- h3c,tx1801-plus|\
- h3c,tx1806|\
- haier,har-20s2u1|\
- hiwifi,hc5962|\
- netgear,wax202|\
- sim,simax1800t|\
- xiaomi,mi-router-3-pro|\
- xiaomi,mi-router-ac2100|\
- xiaomi,mi-router-cr6606|\
- xiaomi,mi-router-cr6608|\
- xiaomi,mi-router-cr6609|\
- xiaomi,redmi-router-ac2100|\
- zyxel,wsm20)
- ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
- ;;
asiarf,ap7621-001|\
humax,e10|\
wavlink,ws-wn572hp3-4g|\
@@ -166,6 +167,16 @@ ramips_setup_macs()
local label_mac=""
case $board in
+ alfa-network,ax1800rm|\
+ jcg,y2|\
+ wavlink,wl-wn531a6|\
+ wavlink,wl-wn533a8|\
+ winstars,ws-wn583a6|\
+ zbtlink,zbt-we1326|\
+ zbtlink,zbt-wg3526-16m|\
+ zbtlink,zbt-wg3526-32m)
+ label_mac=$(mtd_get_mac_binary factory 0x4)
+ ;;
ampedwireless,ally-00x19k)
lan_mac=$(mtd_get_mac_ascii hwconfig HW.LAN.MAC.Address)
label_mac=$lan_mac
@@ -236,15 +247,6 @@ ramips_setup_macs()
lan_mac=$(mtd_get_mac_ascii config ethaddr)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
- jcg,y2|\
- wavlink,wl-wn531a6|\
- wavlink,wl-wn533a8|\
- winstars,ws-wn583a6|\
- zbtlink,zbt-we1326|\
- zbtlink,zbt-wg3526-16m|\
- zbtlink,zbt-wg3526-32m)
- label_mac=$(mtd_get_mac_binary factory 0x4)
- ;;
linksys,e5600|\
linksys,ea6350-v4|\
linksys,ea7300-v1|\