openwrt/target/linux
Mikhail Zhilkin 498c15376b 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>
2022-06-13 15:26:23 +08:00
..
apm821xx kernel: bump 5.10 to 5.10.114 2022-05-16 20:26:38 +02:00
archs38 kernel: delete Linux 5.4 config and patches 2022-03-21 11:36:30 +00:00
armvirt armvirt: 64: enable driver for QEMU' supported watchdog 2022-05-07 14:31:21 +02:00
at91 kernel: bump 5.10 to 5.10.118 2022-06-06 19:20:02 +02:00
ath25 kernel: bump 5.10 to 5.10.120 2022-06-06 19:20:02 +02:00
ath79 ath79: move ubnt-xm to tiny 2022-06-11 21:22:58 +02:00
bcm27xx kernel: bump 5.15 to 5.15.45 2022-06-06 19:20:28 +02:00
bcm47xx kernel: delete Linux 5.4 config and patches 2022-03-21 11:36:30 +00:00
bcm53xx bcm53xx: remove BROKEN flag from Asus RT-AC88U 2022-06-07 16:16:56 +02:00
bcm63xx bcm63xx: add linux v5.15 support 2022-05-20 15:53:16 +02:00
bcm4908 kernel: bump 5.10 to 5.10.117 2022-06-06 19:20:02 +02:00
bmips kernel: bump 5.15 to 5.15.42 2022-06-06 19:20:28 +02:00
gemini gemini: Bump kernel to v5.15 2022-04-14 10:12:34 +02:00
generic kernel: bump 5.15 to 5.15.45 2022-06-06 19:20:28 +02:00
imx kernel: bump 5.15 to 5.15.32 2022-04-09 19:31:46 +02:00
ipq40xx kernel: bump 5.15 to 5.15.45 2022-06-06 19:20:28 +02:00
ipq806x kernel: bump 5.10 to 5.10.116 2022-06-06 19:20:02 +02:00
kirkwood kirkwood: set testing kernel version to 5.15 2022-05-01 13:40:13 +09:00
lantiq kernel: bump 5.10 to 5.10.118 2022-06-06 19:20:02 +02:00
layerscape layerscape/armv8_64b: enable armv8-CE crypto algos 2022-06-04 12:39:01 +02:00
malta malta: use default OpenWrt network configuration 2022-05-28 17:35:34 +02:00
mediatek mediatek: add Ubiquiti UniFi 6 LR v2 targets 2022-06-11 19:51:33 +01:00
mpc85xx mpc85xx: enable error reporting for RAM and PCIe 2022-05-14 11:08:45 +02:00
mvebu kernel: bump 5.10 to 5.10.116 2022-06-06 19:20:02 +02:00
mxs kernel: move some symbols to generic config 2022-04-09 19:31:46 +02:00
octeon octeon: add SUPPORTED_DEVICES to er/erlite 2022-06-09 17:14:28 +02:00
octeontx octeontx: add armv8-CE version of CRC T10 2022-06-04 12:39:01 +02:00
omap config: limit CONFIG_DEBUG_INFO to top-level generic configs 2022-05-18 13:32:06 +03:00
oxnas kernel: bump 5.10 to 5.10.116 2022-06-06 19:20:02 +02:00
pistachio kernel: bump 5.10 to 5.10.95 2022-02-01 23:34:07 +00:00
qoriq config: limit CONFIG_DEBUG_INFO to top-level generic configs 2022-05-18 13:32:06 +03:00
ramips ramips: add support for MTS WG430223 2022-06-13 15:26:23 +08:00
realtek realtek: add gpio-restart for D-Link DGS-1210-28 2022-06-07 17:11:28 +02:00
rockchip rockchip/armv8: enable armv8-CE crypto algorithms 2022-06-04 12:39:01 +02:00
sunxi sunxi/cortexa53: enable armv8-CE crypto algorithms 2022-06-04 12:39:01 +02:00
tegra kernel: delete Linux 5.4 config and patches 2022-03-21 11:36:30 +00:00
uml uml: make use of 'rootfs-part' feature 2022-01-23 19:48:31 +00:00
x86 kernel/x86: move x86' specific watchdogs to the x86 target 2022-05-07 14:31:22 +02:00
zynq kernel: delete Linux 5.4 config and patches 2022-03-21 11:36:30 +00:00
Makefile