So you’ve bought a new little Xiaomi toy but the firmware is not up to your needs? You’ve come to the right place, here you can get a firmware that will squeeze the real power out of it.
This Firmware has been compiled by me with Prometheus, a tool released by Freize.net, and is based on the Padavan & N56U project. All credits go to their respective team and their wonderful job.
Here are the main features included in the firmware:
- Customizable User Interface with multiple themes built-in;
- hardware offload support (WAN/LAN);
- VPN server/client;
- 2.4 and 5Ghz Wifi support;
- USB applications: FTP server, Torrent client (Transmission), SMB Server, UPnP/DLNAMedia Server, iTunes Media Server (Firefly);
- support for Entware or Optware Packages;
- support for USB 3G/4G modems;
- ssh/telnet access;
- dynamic DNS support (a lot of services);
- detailed network traffic graph;
- AiDisk (share your files over the internet), etc.
- SAMBA/FTP/Printer Share (via USB port)
I DO NOT OFFER ANY SUPPORT, I’m just sharing binaries compiled by me!
Mi Router Mini
LAST BUILD: aef4269 — October 1st 2016 (changelog)
Download here (firmware always tested before uploading)
Warning/Disclaimer: there is a risk of damaging your device internal configuration if something goes wrong during the process. Proceed with absolute care if you don’t know what you’re doing. I deny any responsibility for any kind of damage caused to your router or to you.
Mi Router 3
LAST BUILD: aef4269 — October 8th 2016 (changelog)
Download here (EXPERIMENTAL) (I can’t test this version because I don’t own the Mi Router 3, and I don’t know if the instructions below are suitable for it)
Warning/Disclaimer: there is a risk of damaging your device internal configuration if something goes wrong during the process. Proceed with absolute care if you don’t know what you’re doing. I deny any responsibility for any kind of damage caused to your router or to you.
Instructions to install the firmware
(credits for this guide go to user I<3LIN @ lowyat forum, thanks a lot!):
Part 1 — Gain access to the router console (either telnet, ssh or web based console)
There are various ways to gain access to the console ( https://wiki.openwrt.org/toh/xiaomi/mini ), this is the easiest.
1. Connect to your PC to your router with the ethernet cable;
2. power on and setup the Xiaomi router until it reboots and gets IP address 192.168.31.1;
3. log-in into the router and grab the value of the stok URL parameter (for instance: “9c2428de4d17e2db7e5a6a337e6f57a3”);
4. replace the <STOK> placeholder and load this URL in your browser or curl, this will start telnetd on the router:
http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqnetwork/set_wifi_ap?ssid=whatever&encryption=NONE&enctype=NONE&channel=1%3B%2Fusr%2Fsbin%2Ftelnetd
5. it should spit out some wifi error code, that is ok, don’t worry;
6. replace the <STOK> placeholder, the current password and the desired root password and load this URL in your browser or curl, this will set the router root password
http://192.168.31.1/cgi-bin/luci/;stok=/api/xqsystem/set_name_password?oldPwd=OLDPASSWORD&newPwd=NEWPASSWORD
it should spit out: {“code”:0} ;
Part 2 — Installing the custom bootloader — Breed
1. Now I assume that you have access to your router console/telnet/ssh, so log in to the router firing up your linux console (or putty on windows)
ssh root@192.168.31.1 OR telnet 192.168.31.1
2. this is the risky part, proceed with extreme caution as a broken bootloader could brick your router, the only way for you to revive the router would be to physically wire a serial cable to rewrite the bootloader;
4. download Breed for Xiaomi router mini here;
5. copy it to the root directory of a usb thumb drive (1GB free space is more than enough) with FAT/FAT32 partition;
6. plug the thumb drive into the router;
7. on the console connected via SSH to the router, type
cd /extdisks/sda1/
followed by
ls -l
you should be able to see the breed-mt7620-xiaomi-mini.bin file;
8. type
cat /proc/mtd
it will list out the partitions on the router flash chip;
9. look for “Bootloader”, it should be listed as mtd1: 00030000 00010000 “Bootloader”;
10. now dump a backup of the partition to your usb drive with the following command
dd if=/dev/mtd1 of=/extdisks/sda1/Bootloader.bin
11. you should also create a backup for all the other partitions listed by
cat /proc/mtd
you will see a list of blocks with a block index (e.g. mtd1) and the block’s name (e.g. Bootloader). Adjust the command above replacing the highlighted parts with their respective block index and name.
dd if=/dev/mtd1 of=/extdisks/sda1/Bootloader.bin
All of the backup files will be in the usb drive;
12. now you’re ready to install the custom bootloader, type
mtd -r write breed-mt7620-xiaomi-mini.bin Bootloader
13. it should show rebooting when the installation is complete.
Part 3 — Boot into Breed, install the Padavan firmware
1. download the firmware I compiled from here;
2. power off your router, look for a pinhole on the back, power on your router while pressing and holding the button inside the pinhole;
3. release the pinhole button when you see the orange/yellow light blinking;
4. open your browser (preferably Chrome) and type 192.168.1.1 into the address bar;
7. you should be able to access the Breed web interface (in chinese but I will guide you!);
8. now select the second button on the menu;
9. now you should be located at http://192.168.1.1/upgrade.html, select the custom Padavan firmware file on the second row of the form. Then press the last button on the bottom of the form. It should look like this https://i.imgur.com/28pq86W.png;
10. wait for the progress bar to complete, it should reboot automatically;
11. you might need to boot into Breed for the second time to reset the default settings for the Padavan firmware. To reset the settings, click the 5th button on the menu, then select Config (it should look like this https://i.imgur.com/oFjNtBm.png) and click the submit button to reset the settings.
Hi friend.
Thanks for this tutorial. Work nice for me, but you forget the admin first login and password (admin/admin)
Best Regards
Marcelo Gomes (Brazil)
Thank you I will add that detail
Thank you sir,
Can you please buildup 1 Firmware for Xiaomi router gen 3 (AC) ?
There’re a lot my friends use this router model.
Best regards
Hello,
I can’t build firmware for Xiaomi Router 3 because it is still not supported
It is supported, as far as I know 🙂
I have Xiaomi Router 3 with Padavan firmware 🙂
You’re right, I just saw it in the device tree. Although I can compile for it but I can’t test it!
Great work! Thank you! If you could compile one for the gen 3 router it would be awesome.
I can compile it but I can’t test it. If you are ok with it I can send you the compiled firmware for gen3 in private for you to test it.
Yes, please send it to me in private and I will test it. Thank you!
Did anybody try it on the MI-3?
This firmware is NOT built for MI-3!
after I followed your instruction, there appears to be two ssid ASUS and ASUS_5G but needs password, could you tell me the password, or how to reset it, pls!
Default login is admin:admin
Default WiFi password is 1234567890
BTW, Is there any updates now? cuz, I wanna have a firmware with shadowsocks
One question.
How change smb configuration.
Thanks
Marcelo Gomes
I’m sorry, I don’t know how to change SMB configuration from the web interface..
Hi, the MI-MINI_3.4.3.9-099 firmware shows asus icon and not the miwifi router icon as depicted. – is this expected?
ignore my last post. I can see it’s customizable
the firmware is superb. many thanks.
the guide is fine, although there is a slight error in step 6.
http://192.168.31.1/cgi-bin/luci/;stok=/api/xqsystem/set_name_password?oldPwd=OLDPASSWORD&newPwd=NEWPASSWORD
needs to be:
http://192.168.31.1/cgi-bin/luci/;stok=/api/xqsystem/set_name_password?oldPwd=OLDPASSWORD&newPwd=NEWPASSWORD
also step 11 needs a little elaboration
Thanks for your feedback, I will adjust the guide and make it more clear.
Thanks very handy. Will share site with my pals
Thanks a lot i have this installed on my router. Btw is there any update to this firmware?
I will update it when holidays are over 😉
Hello, this firmware have the option “auto channel ” on wifi repeater mode ? Thanks.
You have to select the channel manually
It has such ability 🙂
how much free memory do you have when running this? I have about 12MB – i see from the screenshot that you have 81MB free – is this correct?
I have 97mb free ram and 0-1% cpu load
It depends on the applications you are running on the router, for example Transmission or Aria use a lot of ram while downloading.
I don’t have transmission running. Straight out the box xonfig I only have 12mb free
That’s not normal, for me:
Memory Free: 81.40 MB / 123.67 MB
Uptime: 6d 19h 44m
Thanks for share your work.
Is there any update?
thanks for the update. Do you have a changelog?
I report an issues with transmission. i have a error when i try download a torrent.
“Desc. error: Unable to save resume file: File exists (3)”
I can’t any change in settings.json using winscp.
Any idea what happens?
thanks in advance
You can find the change log on the code repository https://bitbucket.org/padavan/rt-n56u/commits/all up to the commit version in my build.
Transmission has always been pretty buggy, I suspect it needs more ram/cpu than our Xiaomi Mini has.
A pointer to the tools to build the firmware will be greatly appreciated
tools to build the asus padavan for xiaomi mini
http://prometheus.freize.net/
Hi, I would like to try your firmware cause I want to use xiaomi mini router as repeatre mode on 5ghz and repeat on that band as well. It’s possible? Because on xiaomi’s firmware it’s only possible to receive from 2.4ghz and than re-transmit on 2.4 and 5ghz…
I don’t know that..
Yes, that is the advantage of Padavan! On Xiaomi you can only AP Wireless with 2.4ghz… On Padavan you can choose por 2.4 or 5ghz!
Hi, how I revert to xiaomi firmware original?
Thanks
I never tried to go back to stock, so I can’t help you. But I assume you can just flash the stock firmware from the router configuration page (clicking on “firmware” link, top right of the page).
Probably we will brick the router doing that 🙁
Btw how can we change the Asus Ãcone and replace it for Mi logo?
I don’t think you can brick it so easily, if you flashed breed bootloader then you can just boot in breed safe mode and reflash padavan. As for the Mi logo I’m building a new firmware that has it (on the september build it got deleted I guess).
That will be great with Mi logo 😉
When you make it available, how is the proceadure to upgrade and keep my options?
You can just flash the new Padavan fw over the old, the previous settings will be retained.
Follow the instructions at http://en.miui.com/thread-137281-1-1.html
Where we can download the file that you have mention as last build 1 October?
From the link “Download here”, it has the same filename.
Thanks for the update. Do you have a changelog?
Thanks in advance
Changelog is usually not clear and doesn’t necessarily fix Xiaomi Router Mini related issues (just other devices’ bugs) because the firmware is already stable enough for the mini.
https://bitbucket.org/padavan/rt-n56u/commits/all
Can anyone describe how to revert to stock original firmware of Xiaomi? Cause I have problem with wireless signal and I need to take it back to shop with original…
I posted a link in the reply to your first request for this
Thanks in advance for your help. However, I can’t find how to do it on that MIUI forum. What I have done so far. With a formatted usb fat32, download the developer firmware and rename to miwifi.bin and stick on router with reset pressed power router and when blinking lights release the reset… Don’t did nothing! As well to use the web interface on upgrade file… Nothing… Please help 🙁
Hi All,
If smb managed to configure two devices with Padavan firmware as main wifi point and WDS repeater?
Unfortunately I’m not able to run such functionality
Those instructions are for the default bootloader; the instructions for the Breed bootloader are at the top of this page.
Try the stable version of the firmware at http://en.miui.com/forum.php?mod=attachment&aid=MzkxNjk0fDQ1Y2YzNzk1fDE0NzU1MDU5MjB8MHwxMzcyODE%3D¬humb=yes
You mean this step?
12. now you’re ready to install the custom bootloader, type
mtd -r write breed-mt7620-xiaomi-mini.bin Bootloader
But instead that breed, replace that file on usb from the developer bin from Xiaomi?
mtd -r write miwifi.bin Bootloader
I meant Part 3 but use miwifi.bin instead of the Padavan firmware once yu’re on the web page at 192.168.1.1
Can I have a link for the compiled firmware for the router 3 please?
2 more questions sorry
1: Do I use the breed bootloader from your instructions or do I need another version?
2: Does this Padavan firemware add VLAN capabilities?
Thanks.
I have no idea how to flash Mi Router 3 sorry… I just have the router Mini.
I added Mi Router 3 Firmware for anyone who wants to test
I have tested the firmware on my Mi-3 router, this is only to update my existing firmware to the latest version aef4269.
The firmware is working fine like the Xiaomi Mini pavadan.
Just to clarify further, I did not flash the firmware direct to my Mi-3. prior to it, I have using Prometheus scripts to flash my Mi-3 to pavadan and I just update to your firmware to test if it is okay.
I been told by other forum member from lowyat, you can’t direct flash to Mi-3 for reasons:-
1) There is no bleed bootloader for Mi-3, currently only available for Xiaomi Mini which no one test it on Mi-3 yet.
2) With Prometheus scripts, it will flash the Pavadan firmware into multiple partitions and what is believe here, there maybe some partitioning task performed in order to put the new firmware.
Thanks again for your firmware. Appreciated for your hard works.
Where to find firmware for Xiaomi mini ? i see all builds from url: https://bitbucket.org/padavan/rt-n56u/downloads and dont see build for Mi-Mini into list. Do you can tell me how to find newest build for Mini ? Thanks
Last build is from the link download now. That website has only the source code!
the only way to flash Mi Router 3 tru prometheus tools, since there’s no unlocked bootloader except using prometheus tools backdoor.
Are there any english instructions for this? I can only only find russian. This will be my first time flashing a router.
Hi,
I’m really glad to use this firmware on my MINI router 😉
However, I would like to customise in order to reboot every week or once every 15 days. How can I do this? Can you help me?
I see under Administration – Cron Daemon (Scheduler) I can active) open Scheduler tasks (Crontab), and than how can I set to reboot safely, not the hard one…
00 01 1/15 * * root reboot
will reboot every day 1 and 15 at 01:00. Any advise?
it’s great fw, have a lot of features and the wifi signal as strong as the stock firmware
but I want to use it to record the stream from my ip cameras, the interface is LAN & wifi
is it possible to do it with padavan?
In padavan, each time I change the theme settings and logo the changes only appears in the browsers and pc that the changes were made. When I try opening in different browsers or pc / notebook the theme went back to default is it normal?
also trying to log out, close the browser tab and opening the admin page in new tab shows that I’m still logged in, is this also normal behaviour on padavan firmware? thanks.
Try to refresh the page by pressing F5
Do you have MI3 mini or MI3? i have MI3 and same thing happend to me
I have it installed on my router, but forgot to install breed bootloader
I use pandorabox before, then I flash your firmware in the update menu on pandorabox web ui
can you tell how to get breed on my router with my current situation?
@spy
I assume you use mi mini with padavan firmware now and with original bootloader
the only way, you should revert back to xiaomi mi mini factory firmware (check how to flash original xiaomi mini firmware).
from that point, you can follow above tutorial as describe by admin
yeah I did it a few days ago
thanks by the way
Excellent guide. Thank you. However, in part 3, step 3 I’m only on flashing Blue light – don’t get orange/yellow. Have been holding the pin in for a while. Any other thoughts?
I’ve followed Parts 1 & 2 and all looks good. In Part 3, Step 3, I’m not seeing the flashing orange/yellow. It’s just flashing blue when I start it with the pin inserted and kept pushed in. Any ideas? if I let the router boot I see the Xiamo screen but everything is a 512 Bad Gateway after that. Am I hosed?
I have same situation before
don’t worry, it’s not problem at all
just connect one of your router’s LAN ports to a computer
open your browser and go to url: 192.168.1.1
That worked perfectly. I used a cable over LAN (on my Mac) and was able to get in and have it configured for a AP bridge mode over the 5GHz channel so my 5G signal from downstairs is now available upstairs! All great and thanks a ton again.
Do you have a guide for the Xiaomi Nano?
Xiaomi Nano is pretty similar though I don’t remember what the Bootloader partition is called.
The bootloader file is http://breed.hackpascal.net/breed-mt7628-hiwifi-hc5661a.bin and a version of Padavan is at https://routerclub.ru/upload/padavan/nightly/20160220/mi_nano/MI-NANO_3.4.3.9-099.trx
Our admin may be willing to build and post a newer version of Padavan.
i built today a fresh version with prometheus for nano (commit: 5aa2a75)
without modifications, stock asus skin
https://mega.nz/#!DJ9BiTBS!Z0Qh_QY6QxYnMyD96y9J5MJ45AnXylESkO1y2rGCZZw
fresh build from dec. 17 for Mi NANO, built and tested by me: https://mega.nz/#!DJ9BiTBS!Z0Qh_QY6QxYnMyD96y9J5MJ45AnXylESkO1y2rGCZZw
without any modifications, asus logo
Hi,
did flash my miwifi3 with Prometheus tool.
As I bought my router few weeks ago, there were no more ssh access easily available so I had to downgrade to the version miwifi_r3_all_55ac7_2.11.20.bin (dev version) found on the 4pda forum (all in russian), through the official webUI of the router.
Then following the Prometheus.freize.net website I just run VirtualBox with their custom image. Set the SSH access (option 0) then went to firmware (4), created one (3) then flash (4).
The option 0 for SSH basically does some trick like you describe here but for me, it did set up a random ssh password that didn’t work. I had to tell prometheus that the password was the webui one even for ssh (did try with my iterm on the side before).
Anyway after 15min of firmware building and a quick flashing, it worked. I just don’t have a proper skin but that is not really important. Had to reboot it properly with broadband box. Admin/PW of the padavan is admin/admin and IP 192.168.1.1
It took me some time to go through (especially with the translation from the forums) so I post here in case someone needs info.
Man,
You are a hero, by any chance to you have the breakdown of this activities as am really lost with the translations.
Regards,
hi
thanks for build its realy fast !
only one problem – i want to use usb as network share
i and it work fine as FTP
but i canot use it as smb share – why ?
anyone tested ?
when i try \\192.168.1.1 it says that network share is not longer availible
i did checked on 2pc so not pc issue / 2h ago on pandorabox smb was working fine 😉
thanks and regards !
hi
i would like to change samba configuration
like here:
https://bitbucket.org/padavan/rt-n56u/wiki/EN/CommonTips#!advanced-configure-for-samba-server
but i do not see any init.d foder here ? how is it possible ?
regards
Can you add QoS?
Can you add more than one Vpn client?
Can you add red / orange LED to indentity no internet connection?
How to add new software/packet like openwrt?
Thanks
new update? i know update maybe wont change anything for xiaomi mini, im just update addict, i wanna have my device with latest update :p
For those who lazy to build their own firmware.
Links below is only for those already running Padavan and interested to update to latest commits.
I have disable Firefly iTunes as I don’t need it.
USE IT AT YOUR OWN RISKS.
MI-3_3.4.3.9-099_9cdd85a.trx
https://mega.nz/#!txASgabD!ZhbpocG6VkEEdIEfa_Drwj6uyvFMn4B6_izbKQZZLPM
MI-MINI_3.4.3.9-099_9cdd85a.trx
https://mega.nz/#!01pmVCQA!tFEooJuxlmNND6UEGdIFsNncsCpRDEO0ckn5QTnlf1k
Cheers.
Whoaa.. I thank you very much for this. Very stable with (new?) theme/interface, love it!
Hi I would like to see this firmware have QOS any reason why it is not implemented? When should we expect to see it come out for this firmware?
My MI3 has no usb? still possible to install?
just so ppl know mini on firmware 3.4.3.9-099_aef4269 ‘Blocked Client List’ not working, after pressing the X button to block clients, clients are added to blocked list but it does nothing.
how to setup the DDNS for FTP?
aidisk is not working ” Unauthorized registration request! “
xiaomi miwifi 3 bricked after flashing breed boot loader how to revive router with serial cable ???
Hi, i succeeded till the end stage, but once i get into Breed Menu, sometimes it displays main menu sometimes and sometimes not. When i click on 2nd option to flash the Padavan, it circles and circles infinitely and finally it gives up. i dont know what i am doing wrong. till the final step i had no error in flashing files.
Any idea pls.. thanks
breed bootloader only for Xiaomi mi mini, if you try it to use with xiaomi mi 3 you know tthe resullt must be bricked
Thanks for your great tutorial! I am thrilled with the results on my Mini. Best wishes from Australia.
genial !! gracias por el tutorial. pierde potencia la señal wifi en comparacion al firmware de origen?
Please, I need to revert to Xiaomi firmware, can anyone help?
I have followed the part 3 (boot into breed) however don’t let me upload Xiaomi.bin
Help…
Can we use aicloud feature on this firmware?
Please, I need help in order to revert from this firmware to the original Xiaomi… I have tried several several times and nothing. Beside this firmware is brilliant, I think you could support the people that needs for any reason go back to the original..
The only reason I do not offer support is that I don’t know how to revert to the original firmware and I don’t have time to do research. Besides I currently do not own the router any more.
I understand, but in my humble opinion, you should say that on the beggining with bold letters… Cause right know i’m fu**ed by my self
is it possible to add ffmpeg function to this firmware?
I need it to record video & audio stream from ip cameras
Hello,
This is the last official Padavan firmware or is a test build ? http://routerclub.ru/upload/padavan/nightly/20160630/xrm_base/
What site do you use to download (last) official versions ?
Thanks.
João
How did you guys customise it for Xiaomi? I tried to build one for Xiaomi Nano but it is referred to as “Asus” and the logo is Asus as well. Did you just replace the image file before building and may be change the strings in the source code?
Where download the last padavan firmware ? https://routerclub.ru/upload/padavan/nightly/20160630/xrm_base/ ???
Hello I have flashed breed bootloader on xiomi mi 3 router and now led doesn’t work. It’s bricked. Any help please? Thanks a lot
i want to install this but i am in openwrt now. what should i do?
im in openwrt now. i want to install padavan. what should i do?
For newer FW for Mini Mi which version do I need to download? https://bitbucket.org/padavan/rt-n56u/downloads/
Be carefull
Don’t use Breed as a bootloader for Xiaomi Router 3. I just bricked it! :'(
Anything else I can recover it?
thank you I will try as soon as my unit arrived. 4g and transmission is what I intent to do with the mini.will report in 4-5 days
confirmed working 4g modem (ZTE MF831) along with transmission…great share..additional info : my led has only blue color, no orange no yellow (blinkging blue also on safeboot)..thanks
Hello , it appears i’m stuck after giving the command to start telnet on the mi mini router, i have used the correct “Stok” and have flash the router to to a dev version before starting the process. i keep gettin the error about telnet connection being refused on port 23. i have tried quite a few things but just cant get past this telnet opening menace.. any help would be greatly appreciated.
thanks in advance.
Any chance that you can compile Padawan firmware for the Xiaomi Mi Router 3G?