Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:mts:wg430223 [2022/08/15 17:11] – [Installation] csharper2005toh:mts:wg430223 [2023/05/17 16:54] – [Tags] csharper2005
Line 9: Line 9:
 /*****/ /*****/
  
-The MTS WG430223 is a wireless router based on the MT7621 platform. While it can be acquired for relatively low cost (especially on avito.ru) compared to other units with similar specifications.+The MTS WG430223 is a wireless router based on the MT7621 platform. While it can be acquired for relatively low cost (especially on avito.ru) compared to other units with similar specifications. Also known as Arcadyan WG430223.
  
 /*****/ /*****/
Line 30: Line 30:
 ===== Experimental firmware ===== ===== Experimental firmware =====
  
-  * Community builds - https://forum.openwrt.org/t/add-support-for-beeline-smartbox-giga/99390/4+  * [[https://forum.openwrt.org/t/add-support-for-beeline-smartbox-giga/99390/4|Community builds]]
  
 ===== Hardware Highlights ===== ===== Hardware Highlights =====
Line 40: Line 40:
 filter  : Model=WG430223 filter  : Model=WG430223
 ---- ----
 +
 +
 +===== Backup =====
 +It's strongly recommended to make a backup before you start:
 +
 +* Set up a tftp server (e.g. tftpd64 for windows)
 +
 +* Connect to a router using Telnet and run the following commands:
 +<code bash>
 +cd /tmp
 +for i in 1 2 3 4 5 6 7 8 9 10 11 12; do nanddump -f mtd$i /dev/mtd$i; \
 +tftp -l mtd$i -p 192.168.1.2; md5sum mtd$i >> mtd.md5; rm mtd$i; done
 +tftp -l mtd.md5 -p 192.168.1.2
 +</code>
 +192.168.1.2 - IP of the tftp server
 +
 +* Check backups in your tftp root folder.
  
  
 ===== Installation ===== ===== Installation =====
-/* stable release */ +
-/* uncomment once stable release is available+
 ---- datatable ---- ---- datatable ----
 cols    : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url cols    : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url
Line 52: Line 68:
 filter  : Model=WG430223 filter  : Model=WG430223
 ---- ----
-*/ 
  
  
-/* snapshot */ +-> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]
-/* delete once stable release is available */ +
----- datatable ---- +
-cols    Model, Versions, Supported Current Rel, Firmware OpenWrt snapshot Install URL_url, Firmware OpenWrt snapshot Upgrade URL_url, Firmware OEM Stock URL_url +
-headers Model, Version, Current Release, Firmware OpenWrt snapshot Install, Firmware OpenWrt snapshot Upgrade, Firmware OEM Stock +
-align   : c,c,c +
-filter  : Brand=MTS +
-filter  : Model=WG430223 +
-----+
  
 +==== OpenWrt installation ====
  
--[[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]+<WRAP round info 100%> 
 +**CAUTION:** \\ 
 +If you have any third-party firmware (e.g. Padavan, Keenetic, AsusWrt, non-official OpenWrt community builds (especially for Breed bootloaderetc.) installed on your device it's strongly recommended to restore original OEM firmware (including bootloader, EEPROM, partition map etc.) from your backup before you start the OpenWrt installation on your device. 
 +</WRAP>
  
 1. Login to the router web interface (superadmin:serial number) 1. Login to the router web interface (superadmin:serial number)
Line 76: Line 87:
 4. Connect to the router using telnet shell (no password required) 4. Connect to the router using telnet shell (no password required)
  
-5. Save MAC adresses to U-Boot environment:+5. Check the bootpartition:
 <code bash> <code bash>
-uboot_env --set --name eth2macaddr --value $(ifconfig | grep eth2 | awk '{print $5}'+uboot_env --get --name bootpartition
-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}')+
 </code> </code>
- +If the result is //1// then go to the next step, otherwise (//0//) - change the boot partition and reboot:
-6. Ensure that MACs were saved correctly:+
 <code bash> <code bash>
-uboot_env --get --name eth2macaddr +uboot_env --set --name bootpartition --value 1 
-uboot_env --get --name eth3macaddr +reboot
-uboot_env --get --name ra0macaddr +
-uboot_env --get --name rax0macaddr+
 </code> </code>
  
-7. Download and write the OpenWrt images:+6. Download and write the OpenWrt images:
 <code bash> <code bash>
 cd /tmp cd /tmp
-wget http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-mts_wg430223-squashfs-factory.trx+wget https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/openwrt-22.03.0-ramips-mt7621-mts_wg430223-squashfs-factory.trx
 mtd_write erase /dev/mtd4 mtd_write erase /dev/mtd4
-mtd_write write factory.trx /dev/mtd4+mtd_write write openwrt-22.03.0-ramips-mt7621-mts_wg430223-squashfs-factory.trx /dev/mtd4
 </code> </code>
  
-8. Set 1st boot partition and reboot:+7. Set 1st boot partition and reboot:
 <code bash> <code bash>
 uboot_env --set --name bootpartition --value 0 uboot_env --set --name bootpartition --value 0
 +reboot
 </code> </code>
  
 +
 +==== OEM easy installation ====
 +
 +Under development
 +
 +
 +==== OEM installation using the TFTP method ====
 +
 +->  [[docs:guide-user:installation:generic.flashing.tftp]]
 +
 +Not applicable
 ===== Return to Stock ===== ===== Return to Stock =====
 1. Login as root via SSH on 192.168.1.1, then enter the following commands: 1. Login as root via SSH on 192.168.1.1, then enter the following commands:
-   fw_setenv bootpartition 1 +<code bash> 
-   reboot+fw_setenv bootpartition 1 
 +reboot 
 +</code>
 2. Optional step. Upgrade the stock firmware with any version to overwrite the OpenWrt in Slot 1. 2. Optional step. Upgrade the stock firmware with any version to overwrite the OpenWrt in Slot 1.
-==== Flash Layout ====+===== Flash Layout =====
  
 ^ mtd    ^ partition    ^ start           ^ size       ^ ^ mtd    ^ partition    ^ start           ^ size       ^
Line 131: Line 150:
  
 * arccfg util unencrypts (cipher aes-128-cbc + some obfuscation) the configuration from mtd8(10) at every boot * arccfg util unencrypts (cipher aes-128-cbc + some obfuscation) the configuration from mtd8(10) at every boot
-<code>+<code bash>
 ~ # arccfg  ~ # arccfg 
 fgets partition name ok!the partition is [glbcfg]  fgets partition name ok!the partition is [glbcfg] 
Line 142: Line 161:
  
 * @abyrga & @r3d5ky from telegram group [[https://t.me/smartboxgiga/49944|Beeline SmarBox Giga]] found a way how to decrypt a partition. [[https://github.com/openwrt/openwrt/issues/10062|Issue]] * @abyrga & @r3d5ky from telegram group [[https://t.me/smartboxgiga/49944|Beeline SmarBox Giga]] found a way how to decrypt a partition. [[https://github.com/openwrt/openwrt/issues/10062|Issue]]
-<code>+<code bash>
 $ dd status=none if=mtd9 bs=1 count=368 skip=256 | openssl aes-128-cbc -d -nopad \ $ dd status=none if=mtd9 bs=1 count=368 skip=256 | openssl aes-128-cbc -d -nopad \
 -K 2A4B303D7644395C3B2B7053553C5200 -iv 00000000000000000000000000000000 -K 2A4B303D7644395C3B2B7053553C5200 -iv 00000000000000000000000000000000
Line 163: Line 182:
 </code> </code>
  
- +===== OEM firmware trx format =====
-<WRAP BOX> +
-=== OEM firmware trx format ===+
  
 The same as [[:toh:beeline:smartbox_flash#oem_firmware_trx_format|Beeline Smartbox Flash]] but with another trx magic The same as [[:toh:beeline:smartbox_flash#oem_firmware_trx_format|Beeline Smartbox Flash]] but with another trx magic
-<code>+<code bash>
 +--------------+---------------+----------------------------------------+ +--------------+---------------+----------------------------------------+
 | Offset                     | Description                            | | Offset                     | Description                            |
Line 175: Line 192:
 +--------------+---------------+----------------------------------------+ +--------------+---------------+----------------------------------------+
 </code> </code>
-</WRAP> 
  
-=== Original bootloader ===+===== Original bootloader =====
 -> [[docs:techref:bootloader]] -> [[docs:techref:bootloader]]
  
Line 185: Line 201:
  
 * There is no any bootcounters * There is no any bootcounters
-==== OEM easy installation ==== 
  
-Under development 
  
-==== OEM installation using the TFTP method ==== 
- 
-->  [[docs:guide-user:installation:generic.flashing.tftp]] 
- 
-Not applicable 
 ===== Upgrading OpenWrt ===== ===== Upgrading OpenWrt =====
 ->  [[docs:guide-user:installation:generic.sysupgrade]] ->  [[docs:guide-user:installation:generic.sysupgrade]]
Line 218: Line 227:
   * Login as root via SSH on 192.168.1.1, then enter the following commands:   * Login as root via SSH on 192.168.1.1, then enter the following commands:
  
-<code>+<code bash>
 cd /tmp cd /tmp
 wget https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-mts_wg430223-squashfs-sysupgrade.bin wget https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-mts_wg430223-squashfs-sysupgrade.bin
Line 230: Line 239:
   * Login as root via SSH on 192.168.1.1, then enter the following commands:   * Login as root via SSH on 192.168.1.1, then enter the following commands:
  
-<code>+<code bash>
 cd /tmp cd /tmp
 wget https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-mts_wg430223-squashfs-factory.trx wget https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-mts_wg430223-squashfs-factory.trx
Line 249: Line 258:
 ===== Specific Configuration ===== ===== Specific Configuration =====
  
-<WRAP BOX> 
  
 ==== Network interfaces ==== ==== Network interfaces ====
Line 259: Line 267:
  
  
-</WRAP> 
  
 ==== Switch Ports (for VLANs) ==== ==== Switch Ports (for VLANs) ====
-<WRAP BOX> 
  
 ^ Port             ^ Switch port   ^ ^ Port             ^ Switch port   ^
Line 269: Line 275:
 | LAN 2            | lan2    | | LAN 2            | lan2    |
  
-</WRAP> 
  
 ==== Buttons ==== ==== Buttons ====
Line 319: Line 324:
  
 //Main PCB://\\ //Main PCB://\\
-{{media:mts:wg430223_pcb_top.jpg?600|MTS WG 430223 PCB Top}}+{{media:mts:wg430223_pcb_top.jpg?400|MTS WG 430223 PCB Top}}
  
-{{media:mts:wg430223_pcb_bottom.jpg?600|MTS WG 430223 PCB Bottom}}+{{media:mts:wg430223_pcb_bottom.jpg?400|MTS WG 430223 PCB Bottom}}
 ==== Serial ==== ==== Serial ====
 -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc. -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc.
Line 327: Line 332:
 How to connect to the Serial Port of this device:\\ How to connect to the Serial Port of this device:\\
  
-{{media:mts:wg430223_pcb_serial.jpg?600|MTS WG 430223 PCB serial}}+{{media:mts:wg430223_pcb_serial.jpg?400|MTS WG 430223 PCB serial}}
  
 <a2s> <a2s>
Line 348: Line 353:
 -> [[docs:techref:bootloader]] -> [[docs:techref:bootloader]]
  
-<color #ed1c24>It's not recommended to change the original bootloader. You can easily brick your device.</color> 
-==== Breed bootloader ==== 
-Original Breed for Xiaomi R3G can be used, but breedenter utility is required to enter the Breed. Breed web interface shouldn't be used for flashing firmware or EEPROM backup or recovery. Telnet should be used instead.  
- 
-See //Notes -> Breed bootloader// section for links 
- 
-Breed settings for Beeline Smartbox Flash: 
  
-^ Setting                    ^ Value                 ^ 
-| autoboot.command            boot flash 0x30001c  | 
  
 ===== Hardware mods ===== ===== Hardware mods =====
Line 1630: Line 1626:
  
 === Online OpenWrt builder === === Online OpenWrt builder ===
-  * [[https://chef.libremesh.org/?version=SNAPSHOT&target=ramips%2Fmt7621&id=mts_wg430223|Build MTS WG430223 firmware]]+  * [[https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=ramips%2Fmt7621&id=mts_wg430223|Build MTS WG430223 firmware]]
  
-=== Breed bootloader === +=== Common === 
-  * [[https://github.com/legale/breed-mt7621-xiaomi-r3g.bin-reset-button-changer/tree/main/smartbox-flash-giga-turbo-pro|Breed bootloader (MOD) r1338 for Smartbox Flash / MTS WG430223, GIGA, Turbo, PRO (github)]] +  * [[https://mega.nz/folder/xoBklZTZ#g1l_wH-nBOMONrDqOkeEvQ/folder/F1gQWC5a|Stock firmware collection]]
-  * [[https://t.me/smartboxgiga/27744|Breed bootloader (MOD) r1338 for Smartbox Flash / MTS WG430223, GIGA, Turbo, PRO]] +
-  * [[https://breed.hackpascal.net/breed-mt7621-xiaomi-r3g.bin|Breed bootloader (original) Xiaomi R3G]] +
-  * [[https://4pda.to/forum/index.php?showtopic=954030&st=2740#entry104489218|Breedenter utility]]+
  
 ===== Tags ===== ===== Tags =====
  
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>ramips mediatek mt7621 GigabitEthernet wlan 3port 802.11abgn 802.11a 802.11bgn 802.11ac 128nand 128RAM serial u-boot arcadyan dbdc mt7615dn dual_firmware mts breed}}+{{tag>ramips mediatek mt7621 GigabitEthernet wlan 3port 802.11abgn 802.11a 802.11bgn 802.11ac 128nand 128RAM serial u-boot arcadyan dbdc mt7615dn dual_firmware mts}}
  • Last modified: 2024/02/12 11:13
  • by 127.0.0.1