openwrt/target/linux
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
..
airoha airoha: drop kernel 6.1 support 2024-06-05 09:34:06 +02:00
apm821xx kernel: rtl8367b: use realtek,extif property 2024-08-06 00:34:14 +02:00
archs38 archs38: enable features rootfs-part 2024-08-07 10:29:36 +02:00
armsr kernel: bump 6.1 to 6.1.97 2024-07-08 00:01:30 +02:00
at91 at91: 5.15: remove old config and patch files 2024-04-28 17:50:37 +02:00
ath79 kernel: bump 6.6 to 6.6.45 and update config-6.6 2024-08-13 00:34:16 +02:00
bcm27xx kernel: bump 6.6 to 6.6.45 and update config-6.6 2024-08-13 00:34:16 +02:00
bcm47xx generic: 6.6: add backported bmips CBR patches 2024-08-06 14:06:09 +02:00
bcm53xx kernel: bump 6.1 to 6.1.95 2024-06-23 16:33:41 +02:00
bcm4908 bcm4908: set kernel 6.6 as a testing version 2024-04-27 12:14:00 +02:00
bmips bmips: refactor Inteno XG6846 device tree 2024-08-07 20:40:11 +02:00
d1 d1: drop 6.1 support 2024-05-29 17:56:28 +02:00
gemini kernel: bump 6.6 to 6.6.33 and adjust subarches 2024-06-15 22:44:06 +02:00
generic kernel: bump 6.1 to 6.1.104 2024-08-13 00:40:39 +02:00
imx imx: drop 6.1 support 2024-08-12 20:59:06 +02:00
ipq40xx ipq40xx: Drop nand features from Chromium image 2024-08-02 19:54:38 +02:00
ipq806x ipq806x: 6.6: enable at803x driver 2024-06-27 17:11:40 +02:00
ixp4xx ixp4xx: Add back support for D-Link DSM G600 A 2024-05-25 09:17:19 +02:00
kirkwood kirkwood: remove 6.1 support 2024-08-01 17:10:15 +02:00
lantiq kernel: bump 6.6 to 6.6.45 and update config-6.6 2024-08-13 00:34:16 +02:00
layerscape layerscape: remove kernel 6.1 support 2024-08-02 12:15:44 +02:00
loongarch64 kernel: bump 6.6 to 6.6.33 and adjust subarches 2024-06-15 22:44:06 +02:00
malta malta: enable VM targets again 2024-06-30 22:00:03 +02:00
mediatek mediatek: mt7623: get rid of fitblk_get_bootdev 2024-08-12 19:20:49 +01:00
mpc85xx mpc85xx: remove 6.1 kernel support 2024-08-06 21:40:32 +02:00
mvebu mvebu: GL-MV1000: let u-boot-env be writable again 2024-08-06 21:46:25 +02:00
mxs mxs: drop 6.1 support 2024-04-25 14:33:22 +02:00
octeon octeon: ubnt-edgerouter: Disable PCIe 2024-07-28 19:34:30 +02:00
omap omap: re-enable target 2024-07-17 23:27:50 +02:00
pistachio pistachio: Fix setting mtd name 2024-07-01 00:46:16 +02:00
qoriq qoriq: use 6.1 by default and drop 5.15 2024-06-21 20:27:53 +02:00
qualcommax kernel: bump 6.6 to 6.6.45 and update config-6.6 2024-08-13 00:34:16 +02:00
ramips ramips: add support for Xiaomi R4AC v2 (intl) 2024-08-13 00:48:06 +02:00
realtek realtek: Trap LLDP packets to the CPU 2024-05-10 16:03:51 +02:00
rockchip rockchip: add led and network config to nanopi r6s 2024-08-11 18:56:27 +02:00
sifiveu sifiveu: drop 6.1 support 2024-04-30 11:02:48 +02:00
starfive kernel: bump 6.1 to 6.1.96 2024-07-04 22:02:47 +02:00
sunxi kernel: bump 6.6 to 6.6.44 2024-08-06 00:40:42 +02:00
tegra tegra: promote kernel 6.6 as default 2024-07-13 14:29:16 +02:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 base-files: improve Dell EMC Edge620 (x86) product support 2024-08-06 14:30:31 +02:00
zynq zynq: drop 6.1 support 2024-08-03 11:36:59 +02:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00