immortalwrt/target/linux
Dmitry Sokolov 5ef0e58d80
ramips: mt7621: add support for Xiaomi Mi Router 4A Gigabit v2
Device is the same as Xiaomi Mi Router 4A Gigabit, except of:
- 5G WiFi is MT7663
- addresses of leds, wifi and eth ports are slightly changed

Specs:
  SoC:  MT7621
  CPU:  2 x 880 MHz
  ROM:  16 MB
  RAM:  128 MB
  WLAN: MT7603, MT7663

MAC addresses:
  WAN     ****  factory 0xe006 (label)
  LAN     *:f7  factory 0xe000
  2.4 GHz *:f8  factory 0x0000+0x4 (mtd-eeprom+0x4)
  5 GHz   *:f9  factory 0x8000+0x4 (mtd-eeprom+0x4)

Installation:

Factory firmware is based on a custom OpenWrt 17.x.
Installation is the same as for Xiaomi Mi Router 4A Gigabit.

Probably the easiest way to install is to use the script from
this repository: https://github.com/acecilia/OpenWRTInvasion/pull/155

In a more advanced case, you can do everything yourself:
- gain access to the device through one of the exploits described
  in the link above
- upload sysupgrade image to /tmp
- overwrite stock firmware:
  # mtd -e OS1 -r write /tmp/sysupgrade.bin OS1

Recovery:

Recovery procedure is the same as for Xiaomi Mi Router 4A Gigabit.
Possible options can be found here:
https://openwrt.org/inbox/toh/xiaomi/xiaomi_mi_router_4a_gigabit_edition

One of the ways is to use another router with OpenWrt:
- connect both routers by their LAN ports
- download stock firmware from [1]
- place it inside /tmp/test.bin on the main router
- configure PXE/TFTP on the main router
- power off 4Av2, hold Reset button, power on
- as soon as image download via TFTP starts, Reset can be released
- blinking blue wan LED will indicate the end of the flashing process,
  now router can be rebooted
[1] http://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/r4av2/miwifi_r4av2_firmware_release_2.30.28.bin

Signed-off-by: Dmitry Sokolov <e323w@proton.me>
(cherry picked from commit 39e4f03fd3)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-01-29 23:20:15 +08:00
..
apm821xx kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
arc770 target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
archs38 target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
armvirt kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
at91 treewide: make AddDepends/usb-serial selective 2021-06-08 22:50:32 +02:00
ath25 Merge Official Source 2022-09-05 13:20:57 +08:00
ath79 kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
bcm27xx kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
bcm47xx target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
bcm53xx kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
bcm63xx kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
bcm4908 kernel: Deactivate B53 symbols in generic configuration 2023-01-02 19:17:49 +08:00
gemini kernel: bump 5.4 to 5.4.150 2021-10-02 16:05:34 +02:00
generic Merge Official Source 2023-01-28 22:30:14 +08:00
imx6 kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
ipq40xx kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
ipq806x kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
kirkwood target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
lantiq kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
layerscape kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
malta target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
mediatek kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
mpc85xx Merge Official Source 2022-11-13 13:52:38 +08:00
mvebu kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
mxs
octeon kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
octeontx Merge Official Source 2022-09-05 13:20:57 +08:00
omap target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
oxnas Merge Official Source 2022-11-13 13:52:38 +08:00
pistachio kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
ramips ramips: mt7621: add support for Xiaomi Mi Router 4A Gigabit v2 2023-01-29 23:20:15 +08:00
realtek Merge Official Source 2023-01-07 16:35:05 +08:00
rockchip rockchip: rk3328: use 1.45v for 1512MHz overclocking 2023-01-29 20:44:57 +08:00
sunxi kernel: bump 5.4 to 5.4.230 2023-01-26 04:27:26 +08:00
tegra target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
uml target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
x86 x86: bypassing the HH3K up to 2.5Gbps using a BCM578xx 2022-12-05 03:57:38 +08:00
zynq kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
Makefile