OpenWRT - Xiaomi Mi Router 4 OpenWRT Installation

preview_player
Показать описание
In this video, I will show you how to install OpenWRT on the Xiaomi Mi Router 4. This router is powered by the MediaTek MT7621 SoC with 3 gigabit Ethernet ports and dual band 802.11bgn+ac WiFi. It only comes with Chinese language and intended to be sold in China.
In order to install OpenWRT, we can use OpenWRTInvasion to get shell access to the router, and then use SSH or telnet to write the OpenWRT firmware with mtd command. The other way is using a chip programmer which required additional hardwares and knowledge in working with FLASH chip; therefore, I will skip it.
The ideal platform to run OpenWRTInvasion is Linux. In this video, I will ubuntu, but other Linux OS will work just fine. You can use Windows with docker, but this will be more complicated.

Video timeframe:

00:00 - Intro
00:53 - Get Shell Access with OpenWRTInvasion
02:17 - Install docker on ubuntu
04:36 - Install OpenWRTInvasion with docker
05:33 - Start Exploitation with OpenWRTInvasion
06:20 - Establish SSH Connection to Mi Router 4
08:28 - Download OpenWRT Images & Start HTTP Server on Ubuntu
09:38 - Download OpenWRT Firmwares to Mi Router 4 with curl
11:01 - Write OpenWRT images (kernel1 & rootfs0) with mtd
12:48 - Flash OpenWRT sysupgrade image with LuCI
20:54 - OpenSpeedTest without Offloading
22:50 - OpenSpeedTest with Software + Hardware Offloading

Resources:

Thanks for watching and see you in the next video!
Рекомендации по теме
Комментарии
Автор

I have just followed this video and successfully got the SSH/Telnet access and installed OpenWRT on Xiaomi 4A Gigabit version. Many thanks for the tutorial. Somehow Hoddys Guides and all other's tutorials didn't work for me, just couldn't get the telnet access to the router.

kriptop
Автор

Para os brasileiros aqui, fiz todo o procedimento e meu roteador ja esta rodando o OPENWRT, obrigado!

sombrak
Автор

Would it be my router compatible? model is Mi router 4 A - R4AC.

PescaitoFrito
Автор

Hi, I manage to get OpenWRT installed in my Xiaomi Router 4. thanks to your guide.
but I'm wondering how do you manage to have the used memory at only 40Mb because mine runs at 60+ Mb?

Sn-uhje
Автор

O.K. I have Xiaomi router 4 (r4) chinesse version - can i install openwrt?I like to add into router openwrt + adblock for blocking ads...Question - all functions is working?Like bridge mode - there is three mode to set...Wifi 5g or 2.4g + signall strenght - i like max. set - wall penetration?

Milan
Автор

can u show how to install openwrt on
Mi router 4a 100M

mrscorgaming
Автор

I've own Mi4A Gigabit Ed. and install Openwrt but in the other method, It is working fine, playing around software to install, do you have any ideas which software is the best to install.

narcomerk
Автор

how can i back to xiaomi os now ? is any way ?

Usertest-gsfq
Автор

I treid and it work but my 5ghz wifi ap not show up, how to fix it

alfaa
Автор

Hi good vid, i have a problem cant open the router on the ssh "no matching cipher found. Their offer: aes128-ctr, aes256-ctr" but idk solution

MelMe
Автор

Hey thx for the video, but i have a question can I follow this tutorial if I have ubuntu on a flashdrive? is that works if I'm useing a just ubuntu on a flashdrive plugged to my laptop ?? (my laptop runs windows10) Or can I instal this useing windows?? somehow??

TechnoMusicFreaks
Автор

i have this router, without offloading throughput result up to 300 Mbps and sometimes go blank

ihwanell
Автор

pls make tutorial for tp link archer c20 v5

NileshRemo
Автор

Can you test it with openvpn vs wireguard speed performance?

satriagunawan
Автор

Can you help, I seem to only have 10mb space to install applications on the router?

TyFrost
Автор

Friend, how do I configure pppoe with VLAN on Router 4 in OPENWRT?

sombrak
Автор

Thank you for your tutorial. Can I have a request can you also do for Redmi AX6000? Please. Thank you

markpelayo
Автор

Bro, for the ready-made firmware, which just needs to be uploaded, the firmware load balance

modemhp
Автор

Can u help? Wifi ac is not working... Keeps saying wifi not associated and it just won't start it at all

What I did wrong during flashing is I selected kernel1/rootfs from v21.02.0, then later flashed sysupgrade v21.02.1

Is that why it's not working idk... is wifi ac working for you?

How can I fix this from here? restore back to stock somehow then try flashing correct version of kernel1/rootfs? Idk how to restore tho xd

rstment
Автор

Make a Netgear xr1000 openwrt or any xr router

warriorone