1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux
Olgun Demir c3b8108a2b ramips: Add support for Xiaomi MiWiFi 3A
The Xiaomi MiWiFi 3A wireless router has a similar system architecture as the Xiaomi Mi 4A router, which is already officially supported by OpenWrt.

Product website: https://www.mi.com/miwifi3a

Device specification
--------------------
SoC:      MT7628AN MIPS_24KEc @ 580 MHz 2.4G-bgn 2x2
WiFi:     MT7612EN 5G-an, ac 80 MHz 2T2R
Flash:    16 MB
DRAM:     64 MB
Switch:   MT7628AN (integrated in SoC)
Ethernet: 1 x 10 /100 Mbps
USB:      None
Antennas: 2 x 2,4 GHz and 2 x 5 GHz (all are external and non-detachable)
LEDs:     blue/red/amber
Buttons:  Reset
Serial:   115200,8n1

MAC addresses as verified by OEM firmware:
------------------------------------------
use address source
LAN *:DD factory 0x28
WAN *:DD factory 0x28
2g *:DE factory 0x4
5g *:DF factory 0x8004

OEM firmware uses VLAN's to create the network interface for WAN and LAN.

Bootloader info:
----------------
The stock bootloader uses a "Dual ROM Partition System".
OS1 is a deep copy of OS2.
The bootloader starts OS2 by default.
To force start OS1 it is needed to set "flag_try_sys2_failed=1".

How to install:
---------------
1- Use OpenWRTInvasion to gain Telnet, SSH and FTP access: https://github.com/acecilia/OpenWRTInvasion
[IP: 192.168.31.1 | Username: root | Password: root | FTP-Port: 21]
2- Connect to router using telnet or ssh.
3- Backup all partitions. Use command "dd if=/dev/mtd0 of=/tmp/mtd0". Copy /tmp/mtd0 to computer using ftp.
4- Copy openwrt-ramips-mt76x8-xiaomi_miwifi-3a-squashfs-sysupgrade.bin to /tmp in router using ftp.
5- Enable UART access and change start image to OS1.

nvram set uart_en=1
nvram set flag_last_success=1
nvram set boot_wait=on
nvram set flag_try_sys2_failed=1
nvram commit

6- Erase OS1 & OS2 and install OpenWrt

mtd erase OS1
mtd erase OS2
mtd -r write /tmp/openwrt-ramips-mt76x8-xiaomi_miwifi-3a-squashfs-sysupgrade.bin OS1

Credits:
--------
This PR is based on the work of Zehao Zhang (Github: @ZZH-Finalize) that he had published in the PR: #15698

Signed-off-by: Olgun Demir <olgun.demir@mail.com.tr>
Link: https://github.com/openwrt/openwrt/pull/18427
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-04-20 21:50:22 +02:00
..
airoha an7581: fix phy2 led1 function 2025-04-07 23:57:15 +02:00
apm821xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
archs38 kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
armsr armsr: drop GC sections ARMv7 patch 2025-04-14 10:28:50 +02:00
at91 at91bootstrap: put at91bootstrap images into image staging directory 2025-04-04 14:39:00 +02:00
ath79 ath79: fix initramfs execution for NEC Aterm devices 2025-04-13 16:54:48 +02:00
bcm27xx generic: move patch from pending to backport 2025-04-14 10:28:48 +02:00
bcm47xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
bcm53xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
bcm4908 bcm63xx-cfe: install into image staging dir 2025-04-13 10:44:19 +02:00
bmips bcm63xx-cfe: install into image staging dir 2025-04-13 10:44:19 +02:00
d1 generic: globally enable CONFIG_PCPU_DEV_REFCNT 2025-03-08 11:33:56 +01:00
gemini gemini: Activate serial USB console on the DNS-313 2025-04-10 09:38:18 +02:00
generic generic: move TCP fraglist GRO patch to separate file in pending 2025-04-19 13:20:45 +02:00
imx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
ipq40xx generic: move patch from pending to backport 2025-04-14 10:28:48 +02:00
ipq806x generic: move QCOM SPI NAND driver to generic backports 2025-04-10 15:01:09 +02:00
ixp4xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
kirkwood kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
lantiq kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
layerscape layerscape: armv7: drop skipped packages 2025-04-13 11:25:14 +02:00
loongarch64 kernel: Add KERNEL_DCB (Data Center Bridging) 2025-03-09 17:05:26 +01:00
malta kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
mediatek mediatek: filogic: add support for WAVLINK WL-WN573HX3 2025-04-18 14:00:39 +02:00
mpc85xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
mvebu kernel: bump 6.6 to 6.6.87 2025-04-12 23:31:39 +02:00
mxs mxs: adapt default package list for Duckbill devices 2025-02-05 22:00:09 +01:00
octeon octeon: force pcs reset to fix qca833x traffic 2025-04-02 10:04:52 +02:00
omap kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
pistachio kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
qoriq kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
qualcommax qualcommax: ipq50xx: add support for GL.iNET GL-B3000 2025-04-20 16:11:29 +02:00
qualcommbe qualcommbe: ipq95xx: pcs: fix USXGMII link-up failure 2025-04-12 10:38:52 +02:00
ramips ramips: Add support for Xiaomi MiWiFi 3A 2025-04-20 21:50:22 +02:00
realtek generic: drop redundant ATS SFP GT-T quirk patch 2025-04-15 23:24:30 +02:00
rockchip rockchip: Add support for Radxa ROCK 4SE 2025-04-13 00:35:46 +02:00
sifiveu kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
siflower generic: move QCOM SPI NAND driver to generic backports 2025-04-10 15:01:09 +02:00
starfive generic: move patch from pending to backport 2025-04-14 10:28:48 +02:00
stm32 stm32: Add kmod-stm32-thermal 2025-04-19 18:41:29 +02:00
sunxi kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
tegra kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 x86: add Supermicro SuperServer E302-9D 2025-03-16 22:14:29 +01:00
zynq kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
Makefile linux: fix missing default packages in profiles.json 2024-11-17 19:29:06 +01:00