OpenWRT mini miwifi Router

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.
 
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).  
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
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
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
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.
 
 
 

 
 
 
 

Subscribe to receive free email updates:

0 Response to "OpenWRT mini miwifi Router"

Post a Comment