immortalwrt/target/linux
Mikhail Zhilkin 9e6d7afff7
ramips: add support for MTS WG430223
MTS WG430223 is a wireless AC1300 (WiFi 5) router manufactured by
Arcadyan company. It's very similar to Beeline Smartbox Flash (Arcadyan
WG443223).

Device specification
--------------------
SoC Type: MediaTek MT7621AT
RAM: 128 MiB
Flash: 128 MiB (Winbond W29N01HV)
Wireless 2.4 GHz (MT7615DN): b/g/n, 2x2
Wireless 5 GHz (MT7615DN): a/n/ac, 2x2
Ethernet: 3xGbE (WAN, LAN1, LAN2)
USB ports: No
Button: 1 (Reset/WPS)
LEDs: 2 (Red, Green)
Power: 12 VDC, 1 A
Connector type: Barrel
Bootloader: U-Boot (Ralink UBoot Version: 5.0.0.2)
OEM: Arcadyan WG430223

Installation
------------
1. Login to the router web interface (superadmin:serial number)
2. Navigate to Administration -> Miscellaneous -> Access control lists &
   enable telnet & enable "Remote control from any IP address"
3. Connect to the router using telnet (default admin:admin)
4. Place *factory.trx on any web server (192.168.1.2 in this example)
5. Connect to the router using telnet shell (no password required)
6. Save MAC adresses to U-Boot environment:
   uboot_env --set --name eth2macaddr --value $(ifconfig | grep eth2 | \
    awk '{print $5}')
   uboot_env --set --name eth3macaddr --value $(ifconfig | grep eth3 | \
    awk '{print $5}')
   uboot_env --set --name ra0macaddr --value $(ifconfig | grep ra0 | \
    awk '{print $5}')
   uboot_env --set --name rax0macaddr --value $(ifconfig | grep rax0 | \
    awk '{print $5}')
7. Ensure that MACs were saved correctly:
   uboot_env --get --name eth2macaddr
   uboot_env --get --name eth3macaddr
   uboot_env --get --name ra0macaddr
   uboot_env --get --name rax0macaddr
8. Download and write the OpenWrt images:
   cd /tmp
   wget http://192.168.1.2/factory.trx
   mtd_write erase /dev/mtd4
   mtd_write write factory.trx /dev/mtd4
9. Set 1st boot partition and reboot:
   uboot_env --set --name bootpartition --value 0

Back to Stock
-------------
1. Run in the OpenWrt shell:
   fw_setenv bootpartition 1
   reboot
2. Optional step. Upgrade the stock firmware with any version to
   overwrite the OpenWrt in Slot 1.

MAC addresses
-------------
+-----------+-------------------+----------------+
| Interface | MAC               | Source         |
+-----------+-------------------+----------------+
| label     | A4:xx:xx:51:xx:F4 | No MACs was    |
| LAN       | A4:xx:xx:51:xx:F6 | found on Flash |
| WAN       | A4:xx:xx:51:xx:F4 | [1]            |
| WLAN_2g   | A4:xx:xx:51:xx:F5 |                |
| WLAN_5g   | A6:xx:xx:21:xx:F5 |                |
+-----------+-------------------+----------------+
[1]:
a. Label wasb't found neither in factory nor in other places.
b. MAC addresses are stored in encrypted partition "glbcfg". Encryption
   key hasn't known yet. To ensure the correct MACs in OpenWrt, a hack
   with saving of the MACs to u-boot-env during the installation was
   applied.
c. Default Ralink ethernet MAC address (00:0C:43:28:80:A0) was found in
   "Factory" 0xfff0. It's the same for all MTS WG430223 devices. OEM
   firmware also uses this MAC when initialazes ethernet driver. In
   OpenWrt we use it only as internal GMAC (eth0), all other MACs are
   unique. Therefore, there is no any barriers to the operation of several
   MTS WG430223 devices even within the same broadcast domain.

Stock firmware image format
---------------------------
The same as Beeline Smartbox Flash but with another trx magic
+--------------+---------------+----------------------------------------+
| Offset       |               | Description                            |
+==============+===============+========================================+
| 0x0          | 31 52 48 53   | TRX magic "1RHS"                       |
+--------------+---------------+----------------------------------------+

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
(cherry picked from commit 498c15376b)
2022-06-14 02:14:48 +08:00
..
apm821xx kernel: refresh 5.4 patches 2022-05-29 22:57:30 +08:00
archs38 Merge Mainline 2022-05-29 17:53:15 +08:00
armvirt armvirt/64: change it to cortex-a53 instead of generic 2022-05-15 13:50:17 +08:00
at91 at91: add support for sam9x60-ek board 2022-03-17 11:23:53 +08:00
ath25 Merge Mainline 2022-05-29 17:53:15 +08:00
ath79 ath79: ZTE MF286[,A,R]: use GPIO19 as ath9k LED 2022-06-06 18:14:07 +08:00
bcm27xx kernel: refresh 5.10 patches 2022-05-30 00:20:54 +08:00
bcm47xx Merge Mainline 2022-05-29 17:53:15 +08:00
bcm53xx kernel: refresh 5.10 patches 2022-05-30 00:20:54 +08:00
bcm63xx kernel: bump 5.10 to 5.10.111 2022-05-29 18:32:17 +08:00
bcm4908 kernel: refresh 5.10 patches 2022-05-30 00:20:54 +08:00
bmips bmips: dgnd3700v2: fix network config 2022-05-31 01:19:20 +08:00
gemini kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
generic kernel: check dst of flow offloading table 2022-05-31 00:22:22 +08:00
imx [HOT FIX] Merge Mainline 2022-04-03 00:50:22 +08:00
ipq40xx ipq40xx: add support for Linksys WHW01 v1 2022-06-06 18:21:08 +08:00
ipq806x kernel: refresh 5.10 patches 2022-05-30 00:20:54 +08:00
ipq807x
kirkwood Merge Mainline 2022-05-29 17:53:15 +08:00
lantiq kernel: bump 5.4 to 5.4.191 2022-05-29 19:39:20 +08:00
layerscape kernel: refresh 5.4 patches 2022-05-29 22:57:30 +08:00
malta malta: use default OpenWrt network configuration 2022-05-31 00:29:50 +08:00
mediatek mediatek: ELECOM WRC-X3200GST3: fix usage of old snand driver 2022-06-14 01:52:46 +08:00
mpc85xx Merge Mainline 2022-05-29 17:53:15 +08:00
mvebu kernel: refresh 5.4 patches 2022-05-29 22:57:30 +08:00
mxs kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
octeon kernel: bump 5.10 to 5.10.94 2022-05-29 18:24:31 +08:00
octeontx kernel: bump 5.10 to 5.10.110 2022-05-29 18:31:49 +08:00
omap Merge Mainline 2022-05-29 17:53:15 +08:00
oxnas kernel: bump 5.4 to 5.4.194 2022-05-29 19:41:02 +08:00
pistachio kernel: refresh 5.10 patches 2022-05-30 00:20:54 +08:00
qoriq qoriq: enable I2C in target kernel config 2022-03-25 10:37:24 +08:00
ramips ramips: add support for MTS WG430223 2022-06-14 02:14:48 +08:00
realtek kernel: refresh 5.10 patches 2022-05-30 00:20:54 +08:00
rockchip kernel: refresh 5.10 patches 2022-05-30 00:20:54 +08:00
sunxi kernel: refresh 5.10 patches 2022-05-30 00:20:54 +08:00
tegra Merge Mainline 2022-05-29 17:53:15 +08:00
uml Merge Mainline 2022-05-29 17:53:15 +08:00
x86 Merge Mainline 2022-05-29 17:53:15 +08:00
zynq kernel: add missing Kconfigs for kernel 4.14 2022-01-01 17:35:27 +08:00
Makefile