Adding OpenWrt support for Xiaomi "Redmi Router AX6S"/"Xiaomi Router AX3200"

Now it is trying to push 1.0.71

Version 1.0.71 2022.1.19

Xiaomi Router AX3200

What's New

  1. New supported languages for web management page: Czech, Greek, Polish, Serbian, Swedish, Hungarian, Romanian
  2. Fixed the problem: after enabling WPA3 encryption, some devices could not be connected

Need to order the Chinese version and sell this one :sweat_smile:

Why did you make it so complicated?
I suggested that you make one image that would contain the kernel and rootfs.
Did I offer a bad option?
My version simplifies everything and provides more NAND space for data.

PS. My variant: https://github.com/openwrt/openwrt/pull/4810#discussion_r771177210

Until now I only flashed a redmi router over scp. Now I want to have an ax Router with OpenWRT, but I am little bit confused about the steps I have to do for flashing an AX6s router.

Therefore, I want to ask, if the following steps are correct:

  1. Buy a China version of the AX6S Router
  2. Buy a CH341A Programmer
  3. Dump the firmware from the Router with the CH341A Programmer
  4. Edit the dump with a HEX Editor to activate telnet, ssh, uart according to the description of cliobrando
  5. Flash the edited file on the memory of the router
  6. Connect a UART-USB Converter to the Router
  7. Make a tftp boot with the file «openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-initramfs-recovery.itb»
  8. Connect to luci and install the image file «openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-factory»

Is that correct?

You just need the right clip.

https://www.aliexpress.com/item/1005001633856995.html

2 Likes

OK, but, you still need to cut the VCC on the PCB. After that, re-connecting it still need some soldering (or use a silver conductive pen? I won't try).

PS: With a special solder tip, you can (de)solder the chip easily even if you don't have a heat gun.

Which Pin Version?

WSON-8 (8*6mm)

Disclaimer: I do not own an AX6S as of yet.

If I'm not mistaken it's an 8-pin 8x6mm WSON package. And whether or not it's VCC needs to be cut for this to work depends on various factors. That said, I know that such clips/needles work just fine on a bunch of other similar devices without the need of cutting/lifting any VCC. But then, yeah, on others it just won't...

Hello, my device has telnet_en=1, so I tried to flash using telnet but it won't boot up. I already tried your build and also mine but still the same. Can you confirm my steps is correct?

  1. connect to telnet
  2. nvram set uart_en=1;nvram commit;reboot
  3. mtd flash ???_factory.bin firmware
  4. mtd flash ???_factory.bin firmware1
  5. mtd flash ???_rootfs.??? rootfs
  6. reboot
2 Likes

I'm also interested.

Using this on my AX3200 (the international version of AX6S which comes with telnet enabled)

I was able to enable and start ssh and install OpenWrt!
Fantastic work, thanks a lot!

Can you share builds?

just building fresh ones with current master. Will share them later when they are ready.

1 Like

I'm envious of all you guys that have that have the RB01/international version. I have the telnet disabled RB03 version. I really didn't care/pay attention when I ordered back in December, because at the time it was not apparent that RB01 had telnet enabled.

I've been combing through the files looking for obvious exploits, but I think I'll hop back over to some chinese forums to see what I can find.

I have a flasher so could reflash it, but I guess I'm in the mood for doing it the hard way. :expressionless:

Great work! Managed to flash without issues.
So far so good!

a quick, stupid question. did anyone check pppd for [CVE-2020-8597] exploit? would it be possible to attack the router this way and get a shell? version 2.4.7 is probably buggy?

It looks like that was fixed a couple of years ago in OpenWRT, and since Xiaomi uses a customized version of OpenWRT... It's been fixed.

Fixed long before even the first firmware. I don't think it would work regardless, one of the models had ASLR on. I did have fun writing it up last year though. :slight_smile:

If you're building off master, don't forget to add the switch irq.

As far as I can tell from the stock dts, it should be exactly the same.

silly questionm
I wanted to install sqm but I can see


The installed version of package kernel is not compatible, require 5.10.96-1-a8d91634… while 5.10.96-1-6170da09… is installed.

does it mean I need to build myself everything to be able to install other packages from official repo?