openwrt/target/linux/ramips
Anton Stratonnikov f51cb74473 ramips: add support for Xiaomi R4AC v2 (intl)
The second edition of international version of Mi Router 4A 100M is
very similar to the non-international one, but has another wireless chip.

 Installation
--------------

1. Initialize build-in firmware (use webgui for 192.168.31.1)
  You should install root password

2. Run OpenWRTInvasion for the first time (probably it will fail)
  Version 0.0.10 is working as well as 0.0.1.

3. Run OpenWRTInvasion for the second time
  It will create an access to your router

4. Upload sysupgrade image to router (/tmp/fw.bin)
  pc# nc -l 8080 < …/ramips/mt76x8/…-100m-intl-v2-squashfs-sysupgrade.bin
  router# nc 192.168.31.175 8080 > /tmp/fw.bin

5. Flash new firmware
  router# run mtd -r write /tmp/fw.bin OS1

6. Check result
  Wait about 5-10 minutes after flash. Router should reboot itself and
  turn left led from orange to blue.

In case of failure one can use Xiaomi 4a 100m debrick tool
(it uploads special image via tftpd in recovery mode)
After that you can start again from step 1.

Another actions are very similar to original Mi Router 4A 100M

 Original mtd paritions:
-------------------------

```
Creating 9 MTD partitions on "raspi":
0x000000000000-0x000001000000 : "ALL"
0x000000000000-0x000000020000 : "Bootloader"
0x000000020000-0x000000030000 : "Config"
0x000000030000-0x000000040000 : "Factory"
0x000000040000-0x000000050000 : "crash"
0x000000050000-0x000000060000 : "cfg_bak"
0x000000060000-0x000000160000 : "overlay"
0x000000160000-0x000000dc0000 : "OS1"
0x000000dc0000-0x000001000000 : "disk"
with special sub-partition
0x0000002c0000-0x000000dc0000 : "rootfs"
```

We will use OS1+disk space:
```
0x000000160000-0x000001000000 : "firmware"
```

Co-authored-by: Nita Vesa <nita.vesa@elektrik.link>
Signed-off-by: Anton Stratonnikov <billic@yandex.ru>
Link: https://github.com/openwrt/openwrt/pull/14304
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-08-13 00:48:06 +02:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: add support for Xiaomi R4AC v2 (intl) 2024-08-13 00:48:06 +02:00
files/drivers ramips: mt7621_nand: use clk_get_optional_enabled 2024-08-12 19:40:48 +02:00
image ramips: add support for Xiaomi R4AC v2 (intl) 2024-08-13 00:48:06 +02:00
mt76x8 ramips: add support for Xiaomi R4AC v2 (intl) 2024-08-13 00:48:06 +02:00
mt7620 ramips: add support for Wavlink WL-WN531G3-A2 2024-07-21 18:47:37 +02:00
mt7621 ramips: fix PCIe port number for ZBT WE3526 2024-07-29 01:09:24 +02:00
patches-6.6 kernel: bump 6.6 to 6.6.44 2024-08-06 00:40:42 +02:00
rt288x ramips: gpio: convert to the generic GPIO driver 2024-07-04 22:20:47 +02:00
rt305x ramips: gpio: convert to the generic GPIO driver 2024-07-04 22:20:47 +02:00
rt3883 ramips: gpio: convert to the generic GPIO driver 2024-07-04 22:20:47 +02:00
Makefile ramips: switch to Linux 6.6 2024-05-03 21:36:42 +01:00
modules.mk ramips: modules: add Mediatek MMC driver package 2024-07-11 18:57:41 +02:00