Welcome Guest ( Log In | Register )

5 Pages  1 2 3 > » Bottom

Outline · [ Standard ] · Linear+

 Xiaomi Router Mini with full Unifi support, turn into a beast with custom asus rom!

views
     
muncheno
post Oct 7 2016, 04:19 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
Hi, I would like to thanks the TS for the thread and sharing here.

On yesterday night I finally find the time and guts to flash my Mi Mini router with Pavadan following the instructions from here and pavadan firmware from <here>.

http://plol.eu/how-to-install-a-full-spec-...mi-router-mini/

I was setting the mini router as repeater (AP + WDS) on 5ghz wifi to my Xiaomi Router 3 (original firmware).
The router was spacing apart with 1 wall, distance around 7-8m apart and I checked the status from pavadan the STA are linking at around 4XX-5XX Mbps which better than my powerplugs.
Within 3m apart, it was link at 7XXMbps which extreme good for me. smile.gif

Overall I'm very happy with it, however problem seem getting from Xiaomi Router 3 which whenever I reboot Mi3 the wifi channel run even I have set it on fix channel. Thus is break the link to the repeater.

So now, I'm thinking to flash my Mi3 (router 3) with pavadan.

Being a newbie to this, I want to know if anyone have build the firmware for Mi3 for sharing here?
I'm not very good with linux and prometheus, worry that I screw up my Mi3.

This post has been edited by muncheno: Oct 7 2016, 04:21 PM
muncheno
post Oct 7 2016, 05:20 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(FameWolf @ Oct 7 2016, 04:28 PM)
I used the prometheus script to flash padavan to my mi-3.  You either have to jump through some hoops or downgrade the firmware on the mi-3 to a version that allows ssh.  The script can then interface to build and flash padavan.  Not sure what else I could tell you.  You can't just share a file.  Multiple partitions get flashed on the mi-3.  You HAVE to use the script and compile it then let the script do the flashing.
*
Thanks FameWolf for the reply.

If I understood correctly here, Mi-3 does not have BLEED bootloader. Thus can't flash any ready customs made (.trx) like Mi-mini.

To-date only way to flash Mi-3 to pavadan is using Prometheus script in Linux environment or VMware.
The Prometheus script is to ssh to router (after activated telnet/ssh from router) and build the pavadan into the Mi-3 partitions.

More or less correct here?

Thanks again..


muncheno
post Oct 11 2016, 01:22 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
Update here,

I found the Mi-3 pavadan firmware from <here>.

http://plol.eu/how-to-install-a-full-spec-...mi-router-mini/

Problem don't know how to flash it.
Whether we can use bleed bootloader for Xiaomi Mini onto Mi-3 or not.
Or just directly flash it using SSH.

Any advises? Wanted to listen to your opinion before I flash my MI-3 tonight or tmr9.
For me that I consider newbie, likely I will use the tested method - Promotheus script.

Thanks.
muncheno
post Oct 11 2016, 01:59 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(FameWolf @ Oct 11 2016, 01:47 PM)
I did alot of research on it before I flashed the MI-3 which I use right now as my primary router.  I was told it could NOT successfully be flashed to padavan via a .trx or whatever file...that it required the script because multiple partitions have to be flashed(and possibly resized)...it also installs the uboot firmware...no breed isn't available for it...but the script can take partition backups and makes it pretty bullet proof...you can also use virtualbox...you might check the prometheus.frieze.net side as I think they had a pre-setup vmware image that could be booted...I compiled mine directly on linux since that's what I use. ..the tutorial takes you through a complicated process that involves registering on the xiaomi website..getting a patched file etc...I recommend you skip all that and get your device flashed to the previous version which still allowed ssh to be enabled...once that's working the script is basically numbered...download source, build the toolchain, build the firmware, backup the partitions, write the firmware.
*
Agree with your points here.

Question here, when running prometheues scripts, is the your Mi-3 router still connecting to internet as primary while download source, build the toolchain, build the firmware, backup the partitions, write the firmware. ?

Thanks.
muncheno
post Oct 11 2016, 09:52 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
Update here,

I'm flashing my MI-3 to pavadan with Prometheus scripts with Linux Mint on my old netbook.

What I did is follow the instructions given to ssh to MI-3 router.
This is referring to flashing developer firmware 2.11.20 then;
flashing miwifi_ssh.bin with reset button;
and I was using putty.exe to telnet instead ssh, somehow it is mistake here.

Not knowing at the time, I did using these method below as well
QUOTE
http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqnetwork/set_wifi_ap?ssid=Xiaomi&encryption=NONE&enctype=NONE&channel=1%3Bnvram%20set%20ssh%5Fen%3D1%3B%20nvram%20commit

http://192.168.31.1/cgi-bin/luci/;stok=<...it.d%2Fdropbear

http://192.168.31.1/cgi-bin/luci/;stok=<...ropbear%20start

http://192.168.31.1/cgi-bin/luci/;stok=<...<NEWPASS>
Then I recall must use ssh, and from there I manage to access to the router via ssh at 192.168.31.1.

From here onward, I switch to running on linux mint and follow the code:-
Linux system:
1. Open a terminal;
2. Download the script by typing: the wget -O start.sh http://prometheus.freize.net/script/ start-99.sh
3. Enter: the chmod + x start.sh
4. Run the script and follow the instructions in the terminal: ./start.sh

Once the scripts started, it download a bunch of files from the net. I have saw an error half way, it mentions my internet was too slow (something like that) then I could only see header of Prometheus.

So I start again with ./start.sh.

It run again but this time go further and I'm at the Prometheus menu.
Following the nos, I key in (1) to check ssh access to MI-3 router
Then (2) and (3)......

I been waiting more approx 2 hrs for it to build the toolchain now......still building with command from scripts keep flashing on the screen..................... not sure I should start worry. (note: internet still running on Mi-3 router)

edit: After 2hrs+ only manage to reach build firmware to configure options and skins. Now build firmware.....

This post has been edited by muncheno: Oct 11 2016, 10:17 PM
muncheno
post Oct 12 2016, 08:58 AM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
My summary for the steps for flashing Mi Router 3 (Mi-3) to padavan.

1) Change MI-3 to developer firmware by login into your router webpage (192.168.1.1 or 192.168.31.1 or others)
The new developer firmware may not work, I was using ver. 2.11.20 (miwifi_r3_all_55ac7_2.11.20.bin)
You can try google for it or try your luck with the newer version from http://www1.miwifi.com/miwifi_download.html

2) Once you are on the developer firmware, next is to enable ssh service from the developer firmware. 2 approaches, can try both.
QUOTE(Option 1)
     Option 1) Official way is goto http://d.miwifi.com/rom/ssh and copy down the ssh username and password.
                    Then download the miwifi_ssh.bin to a usb drive (fat32). Plug the usb drive into your router usb port.
                    Off the router and turn on Router while reset-button pressed and USB stick plugged in.
                    Release Reset-button after the orange LED starts flashing (blink few times before release)
                    Wait a minute to complete flashing and device is online again (shown by blue LED)
QUOTE(Option 2)
     Option 2) Login to router with a browser
                    After login observe and address. It should generate code like below:-
                    hXXp://192.168.31.1/cgi-bin/luci/;stok=2ca162de9aa42e55e30c8f9fe35031c4/web/home#router

                    Copy the code after stok= ......... example:- 0b5ff8b6fb80c457759ad92f468003d5
                    This is like a temporary pass for access your bootloader.

                    Then the 4 url’s below is used to set password for ssh and activate the ssh service.
                    Change the key word <stok> with your string that just copy.
                    Example hXXp://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqsystem/set_name_password?oldPwd=<OLDPASS>&newPwd=<NEWPASS> to hXXp://192.168.31.1/cgi-bin/luci/;stok=0b5ff8b6fb80c457759ad92f468003d5/api/xqsystem/set_name_password?oldPwd=<OLDPASS>&newPwd=<NEWPASS>
                     Here are the 4 url's:-

http://192.168.31.1/cgi-bin/luci/;stok=<...0nvram%20commit

http://192.168.31.1/cgi-bin/luci/;stok=<...it.d%2Fdropbear

http://192.168.31.1/cgi-bin/luci/;stok=<...ropbear%20start

http://192.168.31.1/cgi-bin/luci/;stok=<...<NEWPASS>
3) SSH to the device to flash OpenWrt, I was using putty.exe (google for it if you don't have it ready)
Open a SSH connection to root@192.168.31.1 or maybe 192.168.1.1
Login using credentials provided by the SSH download website in step 2-option 1,
OR with the username 'root' and 'password' create in step 2 - option 2.

4) Confirm login in to ssh is sucessful. (I guess you should not reboot your router from here, else I think you need repeat step 2 &3.

5) 2 approaches here again, Linux or Windows. Goto hXXp://prometheus.freize.net to download and read the steps.
QUOTE(Option 1 - Linux @ I was using this approach)

     Using Linux (either your dual os or separate PC running Linux) and open terminal.exe.
     Download the script by typing: the wget -O start.sh http://prometheus.freize.net/script/ start-99.sh
     Enter: the chmod + x start.sh
     Run the script and follow the instructions in the terminal: ./start.sh

5. Prometheus to pull source from padavan
6. Build toolchain (only needed once, unless there's any update on toolchain source code)
7. Configure and build firmware
QUOTE(Option 2 - Windows)

1. Setup VM for linux (if you already have linux machine, then use that instead. and doesn't have to be vmware
2. workstation, can use others instead like virtualbox)
3. Download and run prometheus
4. Gain ssh access on router (if this doesn't work, use the steps i gave previously)
5. Prometheus to pull source from padavan
6. Build toolchain (only needed once, unless there's any update on toolchain source code)
7. Configure and build firmware
8. Flash firmware
This post has been edited by muncheno: Oct 13 2016, 05:07 PM
muncheno
post Oct 16 2016, 07:26 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(Nando's @ Oct 15 2016, 05:01 PM)
I'm getting this error, while install custom loader,
cd /extdisks/sda1/, permission denied
*
Nando, you are having Mi Mini or Mi-3 router?
Custom bootloader, is only tested for Mi Mini, I have not seen anyone test it Mi-3 yet.

From my understanding, it might work but I wasn't dare to test it.


muncheno
post Oct 16 2016, 07:36 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(infrasonic @ Oct 16 2016, 03:42 PM)
But how can the router access to internet if I'm using unifi and the router doesn't have vlan tagging?  sweat.gif

Did you follow the steps on prometheus.freize.net for the vmware part?
*
Hi infrasonic, first disclaimer here - I not expect here and it is own your own risk.

It doesn't necessary to have the Mi-3 or Mi Mini router as default router to connect to internet.
In your case if you can't have vlan tagging, it is possible configure your mi router as 2nd router by having lan cable bridging it (and disable DHCP & having a static ip).

If you were following the instructions within this thread or from prometheus, VM or linux approached only using internet to updates is source and files.

muncheno
post Oct 16 2016, 08:46 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(Nando's @ Oct 16 2016, 08:01 PM)
I'm using Mi Mini
*
For Mi Mini, you should follows instructions in first post.
You do not need connect Mi Mini to internet, but you must be in correct developer firmware to ensure able to get access with SSH.
Then only flash the breed bootloader.

I pressume you stuck at step 7. I also pressume you have your usb drive with FAT or FAT32.
if you can't access to "cd /extdisks/sda1/" can try "cd /mnt/sda1/" .
If still fails, try look for it by learning linux command like "ls -al /mnt"


Installing the custom bootloader - Breed
1. Now i assuming you have access to your router console/telnet/ssh.
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 3. physically wire the TTL connection to rewrite the bootloader.
4. Download Breed for Xiaomi router mini ( http://breed.hackpascal.net/r802%20%5b2015...iaomi-mini.bin) .
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. at the console, type
CODE
cd /extdisks/sda1/
follow by
CODE
ls -l
you should be able to see the breed-mt7620-xiaomi-mini.bin
8. type
CODE
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 following command
CODE
dd if=/dev/mtd1 of=/extdisks/sda1/Bootloader.bin

11. you should also create a backup for all other partitions listed with
CODE
cat /proc/mtd
as well, just name them accordingly.
12. now you’re ready to install the custom bootloader, type
CODE
mtd -r write breed-mt7620-xiaomi-mini.bin Bootloader

13. it should shows rebooting when the installation is complete.

muncheno
post Oct 18 2016, 10:49 AM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
Just to quick check here.
Anyone here configure their router as VPN server?

I have try configure as VPN server and DDNS using no-ip.com and I'm using Time Dot Com for my router and phone using celcom.

On the router setup, enable VPN server - PPTP, MS-CHAP-V2, MPPE-128, No - broadcast traffic. Then user setup to local ip to 192.168.1.245-192.168.1.254

Some how I can't connect from the client, from my android phone to my router via. celcom -> Mi-Mini Router (no-ip.com ddns).
I also have try with direct ip addresss.

I managed to configure my main router Mi-Mini to allow ftp, sftp, ssh, smb and also port forwarding to another Mi-3 router and android box with both running ftp, sftp, ssh and smb too.

No problem accessing them from internet (from phone or office wifi) including web gui from my Mi-3 router.

Dunno why it fail for VPN server. Any expert here can help?

This post has been edited by muncheno: Oct 18 2016, 10:50 AM
muncheno
post Oct 18 2016, 05:43 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(FameWolf @ Oct 18 2016, 12:24 PM)
Are you monitoring the commits here?   https://bitbucket.org/padavan/rt-n56u/commits/all
There were a bunch of them...I ended up recompiling today...some may address your issue.  Previously 09/24 was last commits showing so 10/16 onward were new and pushed in last couple of days.  You can also monitor the open issues to see if your issue has been reported or open a new one.  Keep in mind he provides ZERO support for the xiaomi version however if it's a general padavan issue he'd probably still address it.   The padavan author is NOT the same person who wrote the prometheus script however the prometheus author DID have permission from the padavan author to do so.
*
Thanks for replying.

I didn't follow the commits because earlier I have read some of the commits before and he have mentions many times, if others than the designated devices he is not supporting.

You are compiling the router firmware on your own?
Are you following strictly to these instructions? https://bitbucket.org/padavan/rt-n56u/wiki/...wToMakeFirmware

Cheers.


Edit: Got the answer, you recompiling it with Prometheus scripts.
Once your Mi-3 is already with Padavan, it is okay to flash .trx compiled for Mi-3. I have tested the Mi-3 padavan firmware from http://plol.eu/how-to-install-a-full-spec-...mi-router-mini/ with build version aef4269.

This post has been edited by muncheno: Oct 18 2016, 05:48 PM
muncheno
post Oct 19 2016, 09:19 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(FameWolf @ Oct 19 2016, 12:34 AM)
Not recommended and may not work....again it flashes multiple partitions and you have no way of knowing if one of the other partitions needs an update for the new version you are flashing which the trx would not provide...I just let prometheus handle the flashing.  Currently on  3.4.3.9-099_6f8655c
*
I have just compiled 3.4.3.9-099_6f8655c

Do you have any idea how to compile own padavan firmware for xiaomi mini?
muncheno
post Oct 20 2016, 12:06 AM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(FameWolf @ Oct 19 2016, 10:36 PM)
Pretty sure the mini is one of the supported devices for the prometheus script...you have to use the option to delete your prometheus config then select the new device...build it's toolchain, firmware etc....You can always extract prometheus to a 2nd dir and select the mini for that one and keep them separate.
*
Thanks again for the clue.
It is easy enough with the Prometheus scripts.
Just delete the config and choose mi mini.
Then start build firmware again.
muncheno
post Oct 21 2016, 08:27 AM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(FameWolf @ Oct 19 2016, 12:34 AM)
Not recommended and may not work....again it flashes multiple partitions and you have no way of knowing if one of the other partitions needs an update for the new version you are flashing which the trx would not provide...I just let prometheus handle the flashing.  Currently on  3.4.3.9-099_6f8655c
*
Just for sharing, after I got my mini and mi-3 in padavan.
I being using firmware update from padavan to upgrade to latest firmware in .trx format.

So far so good didn't see much problem except VPN server.
For quick test which I could connect if my laptop or phone is connecting the router.
However when I connect thru broadband or office wifi, if fail to connect due unknown reason. It did passthru the phase to check username and password.
muncheno
post Oct 25 2016, 08:27 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(muncheno @ Oct 18 2016, 10:49 AM)
Just to quick check here.
Anyone here configure their router as VPN server?

I have try configure as VPN server and DDNS using no-ip.com and I'm using Time Dot Com for my router and phone using celcom.

On the router setup, enable VPN server - PPTP, MS-CHAP-V2, MPPE-128, No - broadcast traffic. Then user setup to local ip to 192.168.1.245-192.168.1.254

Some how I can't connect from the client, from my android phone to my router via. celcom -> Mi-Mini Router (no-ip.com ddns).
I also have try with direct ip addresss.

I managed to configure my main router Mi-Mini to allow ftp, sftp, ssh, smb and also port forwarding to another Mi-3 router and android box with both running ftp, sftp, ssh and smb too.

No problem accessing them from internet (from phone or office wifi) including web gui from my Mi-3 router.

Dunno why it fail for VPN server. Any expert here can help?
*
I have resolved the VPN server problem.
It happen to be my office and my celcom - is blocking the access to my home VPN.

Today I tried connected from other Time dot com line and it work perfectly. Thus my setup is okay, question is which isp is blocking the VPN, hopefully no problem with unifi <-> time.

Next experiment is to link with my parents home network.

This post has been edited by muncheno: Oct 26 2016, 12:58 PM
muncheno
post Nov 10 2016, 09:06 AM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
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.

USE IT AT YOUR OWN RISKS.

MI-3_3.4.3.9-099_9cdd85a.trx
https://mega.nz/#!txASgabD!ZhbpocG6...n4B6_izbKQZZLPM

MI-MINI_3.4.3.9-099_9cdd85a.trx
https://mega.nz/#!01pmVCQA!tFEooJux...DEO0ckn5QTnlf1k

Cheers.
Attached Image

This post has been edited by muncheno: Nov 10 2016, 08:16 PM
muncheno
post Nov 11 2016, 04:24 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(irwan6179 @ Nov 11 2016, 04:13 PM)
Thanks for the files.
*
Forgotten to inform here, I have disabled the Firefly Itunes function.
I don't use it.

QUOTE(eugene88 @ Nov 11 2016, 04:16 PM)
Do I have to flash to Openwrt before using Prometheus to flash?
*
Not necessary, all you need is to able to access to SSH.
If you flash using Prometheus scripts, it should able to handle the rest.

For Mi-Mini, you have an option to flash Breed bootloader following instructions in the 1st post.
With Breed, then you can flash .trx directly.

This post has been edited by muncheno: Nov 11 2016, 04:25 PM
muncheno
post Nov 11 2016, 04:47 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(eugene88 @ Nov 11 2016, 04:41 PM)
I'm using Mi Router 3 on dev firmware 2.11.20

Now I'm stuck at this step

user posted image

I tried resetting the router, reflashing the dev firmware but nothing works.
*
Not sure I got any good advice for you.
If I recalled correctly for my MI-3, I have similar failure for backup.

Since I didn't change to Breed bootloader, I figure out if I need rescue, I could always restore to Xiaomi firmware using the UBOOT.

I went to update the source, configure the packages/addon and flash the firmware via Prometheus Scripts.


muncheno
post Nov 11 2016, 05:12 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(eugene88 @ Nov 11 2016, 05:01 PM)
I updated the source, how I can configure the packages/addon?

Can I flash the firmware without performing partition backups?
*
Yes - You can flash without backup the partition. Of coz on your own risk to do so.

As for the configuration, answering direct from my memory here, you should follow the steps:-

Option(0) to check if the script can ssh to your router
Option (1) to update the script
Option (2) to update the source
Option (3) to build toolchain (this will take ages - many hours)


Then
Option (4) related to firmware.
Once you are in, the sub-menu options available to:-
-configure - simple mode or by editing (notepad styles - disable and enable option with '#')
-select skin
-update source again (no need if you already done so)

Then the same sub-menu would allow you to:-
- build the firmware (this will take ages - many hours)
- and lastly flash the firmware.

Hope this help.



muncheno
post Nov 11 2016, 07:54 PM

Enthusiast
*****
Senior Member
736 posts

Joined: Jun 2006
From: Ipoh
QUOTE(bran-d @ Nov 11 2016, 07:38 PM)
is the breed bootloader link dead?
*
http://breed.hackpascal.net/

5 Pages  1 2 3 > » Top
 

Change to:
| Lo-Fi Version
0.0404sec    0.62    7 queries    GZIP Disabled
Time is now: 21st December 2025 - 07:13 AM