Xiaomi Mi Router 4A Gigabit Edition (R4AG/R4A Gigabit) -- fully supported and flashable with OpenWRTInvasion

It's better to try it with 20.04 from scratch then. I hope it'll help.

Thank you.

Edit: I successfully managed to get it done with Ubuntu 20.04.

Hi There,

I just got hold of the 3Gv2 and I managed to flash OpenWRT. However I can't seem to access the 192.168.1.1 GUI and I can only manage to connect so SSH but I cannot install luci using SSH.

Can anyone please help me on having this device working again.

Thank you and stay safe.

Please read the basics at https://openwrt.org/docs/guide-user/luci/luci.essentials first and don't use this device-specific topic.

1 Like

I tried yesterday's snapshot (OpenWrt SNAPSHOT r13419-8d2c031f21 / LuCI Master git-20.152.29936-4e20247) from the snapshots-repository running kernel 5.4.42 and am very disappointed with it.
The switching seems to be broken and clients connecting to wifi sometimes do not get an IP address at all.
I'm using my R4AG as dumb AP only, connecting my existing route&lan to the lan-port.

When setting a static ip on the wifi client it can connect to router R4AG, but it can only ping the router's ip and cannot reach the rest of the lan. It looks like the internal switch is somehow broken.
Right now this renders the device useless when using the snapshot-release. So far I must recommend 19.07.3, but this lacks luci-app-dawn which is really important to me.

Did anyone else experience this problem?

1 Like

I might be wrong but I don't think anyone has had any luck with kernel v5 yet.

hi zorro, how did you flash the global firmware? i tried to install R4AGE tool but didn't work.

1 Like

Hello, you need revert to chinese stock firmware then flash 2.28.132 with scripts...

Requirement files :
1)Tiny pxe with chinese firmware (R4AGE ):
https://anonfile.com/lep8Caybo9/TinyPXE_zip
2)Global firmware for R4AGE:
https://anonfiles.com/H7g5954fo0/EN.2.28.132.bin_zip
3)R3GV2 patches :
https://anonfile.com/X3B8e4xdo2/R3GV2_patches_21.04.2020_zip

video guide is here :

https://anonfiles.com/Fbi39c48o4/R4AGE_EU_Stock_Firmware_mp4

@Zorro Your patch use close source ? why you not release it on github or etc.

like https://github.com/Byte-bite/OpenWRT-19.07.3-Stable-MI4A-Gigabit

.
as i test @Zorro build wifi performance speed better than @Byte (Byte-bite) build

( 300Mbps vs 200Mbps DL )

2 Likes

When im trying to execute 0.start_main it says:

Traceback (most recent call last):
  File "main.py", line 10, in <module>
    line4 = subprocess.check_output(["cmd","/c","chcp","437","&","tracert","-d","-h","1","1.1.1.1"]).decode().split("\r\n")[4].strip().split(" ")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 1: invalid start byte
1 Like

Your patch use close source ? why you not release it on github or etc.

Good question. @Zorro, can you do that?

2 Likes

Maybe this can help you ...

1 Like

i flashed zorros firmware.everything so far ok.but i cannot log in with root and no password. can i reset it ? I flashed firmware again, but same problem.

openwrt installation guide for windows :

https://anonfiles.com/Pez3e63ao0/openwrt-19.07.3-ramips-mt7621-xiaomi_mir3g-v2-squashfs-sysupgrade_bin

1)pip3 install -r requirements.txt

2)python remote_command_execution_vulnerability.py

3)cd /tmp

4)./busybox sha256sum openwrt-19.07.3-ramips-mt7621-xiaomi_mir3g-v2-squashfs-sysupgrade.bin

5)mtd -e OS1 -r write openwrt-19.07.3-ramips-mt7621-xiaomi_mir3g-v2-squashfs-sysupgrade.bin OS1

https://anonfiles.com/R8yee651o9/windows_openwrt_installation_guide_mp4

1 Like

Hi guys and girls :slight_smile: Any idea why the router did not get stable support when OpenWrt 19.07.03 was released?

Also, I updated the readme of the OpenWRTInvasion repo with a new openWrt prebuilt image

7 Likes

Support for your device was merged to master at the end of october 2019

while openwrt-19.07 branched off master in the middle of may 2019, almost half a year before your device had been added.

openwrt-19.07 is a stable maintenance branch, it gets bugfixes, but not new features/ device additions, you'll have to wait until the release of 20.x.0 for that.

4 Likes

http://cdn.cnbj1.fds.api.mi-img.com

http://bigota.miwifi.com/xiaoqiang/rom/r4ac/miwifi_r4ac_firmware_e9eec_2.18.58.bin
new link to download :
http://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/r4ac/miwifi_r4ac_firmware_e9eec_2.18.58.bin

1 Like

Try pressing Ctrl+F5 or opening in a private browsing tab.

1 Like

Suddenly it worked. I tried several times to log in with root and no pwd. Now I'm logged in. Is it possible to switch to another luci theme? How I do it? Luci is with release 19.07.3 in my Opinion slower than the old theme.

1 Like

Here is the iperf test of Zoros Build (OpenWrt SNAPSHOT r12138-1e3bfbafd3 / LuCI Master git-20.064.26720-acef567).

iperf Server is Hosted on Router and tested with a 5Ghz NIC on Laptop

2 Likes

and here is the iperf test on a 2.4Ghz

2 Likes