Xiaomi MIUI Official Forum

Senior Member

Rank: 2

Credits
85
Device
0
MIUI Version
0
Online time
6 Hours
Send PM

[Tips & Tutorials] OpenWRT on mini miwifi router

[ Promote]
102059 274 |
14:08, Nov-22-2014
| |
|
Go to reply no.
This post was edited by sirzur at 12:48, Dec-10-2014

Credits to all information from these forums and google translate
http://bbs.xiaomi.cn/

1.      First off before anything else, install Chrome and its translator plug-in for all 3 Chinese language.
2.      Plug in power and Ethernet cable to one of the Ethernet ports
3.      Direct browser to 192.168.31.1.  Unfortunately I could not get Chrome to translate, likely because translation requires internet access, which has not been set up yet.
4.      The first screen will appear.  Press blue button to get to next screen.

Start screen

Start screen

5.      The next screen sets up the wifi network name and password.  Note that the wifi password is also used later for access to the browser page (192.168.31.1).  

2b.jpg

6.      Once you have set this up, plug in WAN cable for access to internet.  Internet access also enables the Chrome translation and you can confirm that the router works properly before proceeding.
7.      The next few steps involve first loading the development version of the firmware, then loading a firmware version which provides SSH access with the last step being loading the OpenWRT firmware onto the router
8.      Apparently loading the development version ofthe firmware voids warranty, so beware. Development version can be obtained from http://www1.miwifi.com/miwifi_download.html.  Point to the mini router to get the correct firmware/software.  At the same time you can also download the PC Client (although I don't recommend this) and also one of either iOS or Android app.  You will NEED one of these to complete the steps. The development ROM that I downloaded was named miwifi_r1cm_all_ace8a_0.6.40.bin.  Apparently the development ROM that is used is important because some of the ROMs may not allow the next step of flashing the SSH firmware.  The older ROMs can be found here http://www.miui.com/thread-1776173-1-1.html.  Try to use the development ROM that has been proven to allow the next step of the process
3a.jpg


9.      The above downloads the Chinese versions of PCClient and iOS/Android apps.  To get the translated software follow these links. The iOS/Android are necessary because they are used to link the hardware to the miwifi account that you are about to set up.  Without the link, the SSH version of the ROM(and SSH password) will not be available
http://en.miui.com/forum.php?mod=viewthread&tid=55706(portable version – although I have not used)
10.  Create and activate a new account at Xiaomi  https://account.xiaomi.com/pass/register.  When you have setup the account and logged in, remember the User ID.  You will note that there is no device associated with the account.  The association has to be done via theiOS/Android app.  Unfortunately there does not seem to be a way to do that via the PC Client, which is why I do not recommend installing this.
11.  Using your iOS or Android device, open the app.  Login using the ID and password in the step above.  The account then recognises the Xiaomi mini router device. This is required for the SSH firmware.
12.  To get the SSH firmware proceed to http://www1.miwifi.com/miwifi_open.html.  Halfway down the page there is a SSH button
4.jpg
13.  Click on the button and sign into the Xiaomi account when requested.  After signing in you will be presented with a page to download the SSH firmware.  Also note the SSH password for root user in the middle of the page.  The SSH firmware will have the name miwifi_ssh.bin
5a.jpg
14.  Now that you have all the firmware, it is just a matter of flashing in the correct sequence. First off, get an empty USB drive and format to FAT or FAT32.  I tried unsuccessfully using drives less than 2GB.  In the end, I had to use a 2GBdrive, although the firmware(s) were a lot smaller in size.
15.  Copy the development firmware into the USBdrive.  (Did I tell you to delete all other content? – Please do).  Rename the development firmware to miwifi.bin.  This is important
16.  The development firmware and SSH firmware flash both follows the same procedure
a.      Pull the power from router, at the router
b.     Plug USB drive into router.  
c.      Press reset button (in the hole to the left ofthe USB drive)
d.     While holding down the reset button, plug in thepower.  The orange light in front of the router will remain steady for a short while before it starts flashing
e.     Once the orange light starts flashing, releasethe reset button and sit back until the light in front of the router turns blue.  Also if there are indicator lights on your USB drive, they will flash as the drive is being read.  If the orange light does not flash, try with another USB drive and confirm that the drive is formatted to FAT or FAT32.
17.  The router can be re-set up between each flash just to confirm that it is working, but I generally just flash the firmwares one after the other.  
18.  I also tend to delete all the contents from the USB drive between flash.  I don't know the impact of not deleting, but better safe than wrong.  
19.  The SSH firmware do not have to be renamed for the flash.  Just keep the name as miwifi_ssh.bin
20.  Once the SSH firmware has been successfully flashed, confirm SSH via putty and also Winscp. Port is 22, username “root” and password as noted from step 13.
21.  The OpenWRT firmware will need to be downloaded from http://downloads.openwrt.org.cn/PandoraBox/Xiaomi-Mini-R1CM/.  I used the latest version PandoraBox-ralink-xiaomi-mini-r583-20140827.bin.  Once downloaded, rename the file to 20140827.bin
22.  Open Winscp and connect to the router using 192.168.31.1, Port 22, username root and password as from step 13.  Transfer 20140827.bin to the /tmp directory.The tmp directory is in the root of the drive
23.  Open putty and connect to the router using 192.168.31.1, Port 22.  Enter root as username and password as above
24.  Change to the tmp directory - cd /tmp
25.  Confirm that you have the right directory by doing a directory listing (ls –l) and confirming that the 20140827.bin file is listed
26.  Finally flash the OpenWRT firmware using puttycommand
mtd -r write /tmp/20140703.bin firmware
27.  The router will reboot once it has beensuccessfully flashed.
28.  Access the OpenWRT router via 192.168.1.1 on your browser.  Unfortunately the default pages are in Chinese.  Default account usernamewill be “root” and password “admin”
29.  Once in, ignore the quick guide setup and navigate to the language page to change language to English.  On the left, third choice down, first subchoice and third tab page with the first settings.  Click on green button on bottom left to “Save and Apply”.   It may be necessary to reboot, but I did not have to.

6.jpg

Favorite27 Share

Rated by 18 people   Experience Prestige Reason  

ZaturdayA + 1 Thanks!
titousky + 1 Thanks!
MoMo2188 + 1 Thanks!
ixan + 1 Awesome!
miui4i + 1 Awesome!
Engraver + 5 Thanks!
Matty88 + 1 Thanks!
Ajinkyajin + 2 Awesome!
turbansasha + 1 Great!
cluster_edge + 1 Thanks!
satyajit_ghana + 5 Great!
Be6i4 + 2 Awesome!
cinuszek7 + 2 Awesome!
anonymous404 + 3 Great!
LuXororif + 1 Thanks! But there is a mistake in "
datagutt + 5 Fantastic!
Jaapp + 5 + 1 Excellent
meredithhan + 10 Awesome!

Experience +48  Prestige +1  View Rating Log

Senior Member

Rank: 2

Credits
72
Device
0
MIUI Version
0
Online time
21 Hours
Send PM
16:39, Jul-19-2016
|
Hello everybody!

FIX FOR BRING 5GHz WIFI RADIO UP AFTER REBOOT - PandoraBox 14.09 r1024

I want to share my findings. I am sure that i am not alone who is using PandoraBox R2 14.09 / LuCI Trunk (0.12+svn-r1024).
As many of you knows, there is problem bring 5Ghz Wifi Radio UP after reboot. I found how to fix it.

1) Edit this file on your router via ftp ----> etc/rc.local
  1. wifi up rai0
Copy the Code
2) That´s all! Just reboot your machine /router/ and look if 5G is UP. (It can take a while, 2 mins max...)

Hope many of you will enjoy this fix. Byee

btw: I am using PandoraBox more than 6 months and i can say, it is very stable and good FW with many working "modules".... Have a nice day

Senior Member

Rank: 2

Credits
108
Device
HTC EVO 3D
MIUI Version
4.11.7
Online time
19 Hours
Send PM
06:53, Jul-26-2015
|
Unfortunately also only 10/100 :/

Senior Member

Rank: 2

Credits
108
Device
HTC EVO 3D
MIUI Version
4.11.7
Online time
19 Hours
Send PM
07:02, Jul-22-2015
|
jDMJeRk replied at 2015-7-17 09:57
Greetings!!

I've been thinking about purchasing this device to use as an Access Point. Does it have ...

Can you describe more the usage?
Of course that it works as AP, it's the main function of it.
But if you want some "real" AP for more clients (like ISP) you should better use e.g. Mikrotik...

Diamond Member

Rank: 5Rank: 5

Credits
519
Device
Nexus 5
MIUI Version
4.10.17
Online time
32 Hours
Send PM

Mi KeyMi In-Ear HeadphonesI Love MIUIMIUI 6Awesome!Redmi NoteFan Of MIUI Ex-Yu Fan Of MIUI IndiaMIUI 4th AnniversaryDiwali MIUI Fan From SingaporeMIUI Fan from MalaysiaMIUI Fan from IndiaMIUI Fan From Indonesia300K Forum MembersMIUI Fan From PhilippinesI Love Mi BunnyAlpaca Mi Bunny MIUI FollowerMIUI Global Forum 2014MIUI FB FollowerPioneer of MIUI English Forum Die-hard MIUI FanUpdates LoverAndroid GuruMost Active MIUIerStar Of IconsHumor Master

18:59, Mar-04-2015
|
Benik3 replied at 2015-3-3 18:39
Uf, I successfully installed OpwnWRT on Xiaomi mini router.
I can confirm, that SSH patch flashing d ...

Nice to hear that!

OpenWRT officially released -> http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/openwrt-ramips-mt7620-xiaomi-miwifi-mini-squashfs-sysupgrade.bin (it's trunk, so no Luci)

Senior Member

Rank: 2

Credits
61
Device
0
MIUI Version
0
Online time
13 Hours
Send PM

I Love Mi Bunny

01:14, Jan-16-2015
|
Benik3 replied at 2015-1-14 17:19
Hello.
I'm really thinking about this router, but I have few questions.

1) yes it has only 100M ethernet ports
2) I have personally installed pandorabox openwrt and have installed transmission aria2 ddns packages
3) So far openwrt has worked flawlessly for me

PS. the brcm47xx packages are for the xiaomi router not the mini router. mini router has mt7620a supported by barrier breaker 14.07 ramips architecture..

Rated by 1 person   Experience Reason  

Benik3 + 1 Thanks!

Experience +1  View Rating Log

Senior Member

Rank: 2

Credits
34
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
05:17, Dec-09-2014
|
think ac is probably working - I was looking at the 2.4G radio settings, my mistake. The config seems to be there, just need to test. This is on PandoraBox-ralink-xiaomi-mini-r583-20140827.bin

Senior Member

Rank: 2

Credits
34
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
05:13, Dec-09-2014
|
the later firmware PandoraBox-R2-ralink-xiaomi-mini-r61-20140904-alpha.bin also flashes, having a look around. Note to anyone trying the same it's necessary to set language to auto, and timezone to Europe/London or wherever for the correct language (English for me) to be applied with this firmware. Had problems with this firmware - can't get the WAN port to work at all. I'd be very interested if anyone got this firmware to work.

Senior Member

Rank: 2

Credits
34
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
04:25, Dec-07-2014
|
Hi There,
I was following this guide, but am having problems, as follows:
I can flash the first dev firmware (in my case miwifi_r1cm_firmware_3c3b6_0.6.67.bin).
But when I go to download the ssh firmware, I get the ssh download page, but it doesn't ask for wifi network name and password, but presents me with a download page. I download a file called miwifi_ssh.bin that is only 5k in size. When I flash using the same usb key I flashed the dev firmware with (re-formatted so the only file is the ssh firmware), the light on the front goes red. I have to power cycle to get the device to boot again, with no ssh access.
Appreciate it if you have any ideas...

Senior Member

Rank: 2

Credits
85
Device
0
MIUI Version
0
Online time
6 Hours
Send PM
 Author| 14:18, Dec-07-2014
|
The SSH firmware is the correct one (only small size).  I assume that you did not rename from miwifi_ssh.bin (which you should not)

Is the USB drive formatted to FAT or FAT32?.  try downloading the SSH firmware again.

Lastly try to get the older development firmware that I used and flash with that one before trying the SSH firmware

Senior Member

Rank: 2

Credits
34
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
15:23, Dec-07-2014 Via mobile
|
This post was edited by durkimat at 16:12, Dec-07-2014

Hi. I did not rename (filename miwifi_ssh.bin), tried 3 different usb sticks all fat32. I downloaded about 5 times - same file size each time.  any idea where I could get hold of the older development firmware - that looks like my best bet at the moment - if you still have a copy could you post somewhere? I can repeat the firmware flash successfully many times over, so am confident I could load an older version. thanks!

Junior Member

Rank: 1

Credits
22
Device
0
MIUI Version
0
Online time
0 Hours
Send PM
16:58, Dec-07-2014
|
Hi guys , i want to know please if the router can push 1 gbs between WAN and LAN , because i have a 1 gbit connection at home .
And another question , if i put the openwrt the HW acceleration is lost ,or is working ??
Thank you .

Senior Member

Rank: 2

Credits
85
Device
0
MIUI Version
0
Online time
6 Hours
Send PM
 Author| 05:34, Dec-08-2014
|
Durikimat - This page seems to carry a history of the ROM.  Make sure you download the correct one

http://translate.google.com.au/translate?hl=en&sl=zh-CN&u=http://www.miui.com/thread-1776173-1-1.html&prev=search.  The file is only about 13 Mb

Spavian - I don't know the answer to your questions.  I guess you can only try.  The procedure seems easy to reverse

Senior Member

Rank: 2

Credits
34
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
05:50, Dec-08-2014 Via mobile
|
thanks - will try again when I get chance.

Senior Member

Rank: 2

Credits
34
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
05:51, Dec-08-2014 Via mobile
|
you won't get 1gbps as the ethernet ports are 100mbps only in think.

Senior Member

Rank: 2

Credits
34
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
04:18, Dec-09-2014
|
I can confirm that this DOES NOT work with the latest dev firmware, and that an older version (suggest miwifi_r1cm_all_ace8a_0.6.40.bin as known good) must be used for the ssh binary patch to apply.
From that point it's all plain sailing. I used a later openwrt, filename: PandoraBox-ralink-xiaomi-mini-r583-20140827.bin which loads fine.
Thanks sirzur for the links and help with this. It might be worth embedding the link to the older download into the guide.
One thing I noticed in PandoraBox - there's no 802.11ac in wireless mode. Any thoughts on that?

Credits Management

Quick Reply Top Return to the list