Xiaomi WiFi Router 3G

Hi all
I bricked my router and I would like to unblocked it but i.m newbie. I ordered a USB to uart adapter but o would need a newbie tutorial for connecting to the motherboard and the steps to follow for unblocking. Could anybody indicate me a newbie tutorial please? Thanks.

How can I flash the newer build? I was going to follow the same steps as the first time but I'm unable to find out how to mount the usb-drive.
The only message I see with dmesg when plugging in the USB-drive is the following:

[ 136.550824] usb 1-1: new high-speed USB device number 2 using xhci-mtk

Just wget it and sysupgrade

Download it on pc, connect to the device with winscp, copy the image to /tmp/ folder and sysupgrade.

@eben

After LEDE is flashed to the router just download the latest image from the ramips/mt7621 target (lede-ramips-mt7621-mir3g-squashfs-sysupgrade.tar) and use Luci to flash the image.

You can use a wired or a powerline connection from your PC.

Luci is not enabled / installed by default - so open a SSH connection via Putty / Terminal | I used following commands:

opkg update
opkg install luci-ssl
opkg install luci-app-sqm
opkg install luci-app-nlbwmon
opkg install iperf3

/etc/init.d/uhttpd start
/etc/init.d/uhttpd enable

keep settings

I don´t used to keep old settings (to avoid problems with newer builds) :slight_smile:

With some practice a router is flashed and programmed with basic settings in less than three minutes....

After several times of trying,I'v made it! So here is my feedback . thanks to @dissent1 @r43k3n
If you think it is bothering to register from miwifi.com and do the following steps,then this way may fit you:

    1. Disassemble router and solder 3 wires on UART connector,there are lable on the board and you just need solder the GND,RX,TX pads.
    1. Connect the 3 wires with your usb-ttl cable.(GND-GND RX-TX TX-RX)
    1. Power on the router and then plug your usb-ttl cable on you pc's usb port AS SOON AS POSSIBLE.
    1. On your pc,connect your corresponding serial port,and when it display the prompt like:
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.

push 4, you should do it AS SOON AS POSSIBLE again.

  • 5: If everything is ok,now you can enter the router's u-boot CLI, and then:
setenv ssh_en 1
setenv uart_en 1
saveenv
reset  #reboot the router

after that,you can login to router's shell ,but you still can not login with ssh,because you don't know the root's password,so you just need do it from your serial screen:

root@XiaoQiang:/root#cd /etc
root@XiaoQiang:/etc# cp shadow shadow.org  #just backup the origin password if need
root@XiaoQiang:/etc# passwd                          #change your own password for root
  • 6:You can login with ssh now! you can do the next things which provided in "Installation instructions provided by @dissent1:"

14: In SSH console
cd /extdisks/sda1 (can be different if you remove and reinsert the usb stick)
mtd write lede-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1
mtd write lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin rootfs0
nvram set flag_try_sys1_failed=1
nvram commit
reboot

15: LEDE should be installed and available at 192.168.1.1 (with WiFi disabled I assume)
Upgrading to a newer snapshot can be done using the regular methods (from the command-line using sysupgrade or through LuCI) using lede-ramips-mt7621-mir3g-squashfs-sysupgrade.tar

3 Likes

40MHz in 2.4GHz fixed in last commit on mt76

1 Like

Hi!,

Do any of you guys have a special ISP vlan config (mine is 832)?. I tried to configure it but to no success.

Some time ago i found this.

but not sure if in the latest commits this problem has been addressed

Best!

Unfortunately it doesn't seem to be fixed, I have no idea how you are going to reach 832 :wink:

But you can try making a couple of fake vlans and then the one that you are aiming to. If my mind doesn't betray me I think it worked for me a while ago

you will need to setup this vlan and their setup towards ports directly in config file /etc/config/network

Yep, creating a driver-level vlan (using the vid) but i does not work. i've checked if the switch is tagging via swconfig dev switch0 show and the vlan 832 is not live.

@dissent yeah i'm afraid i have to keep on trying the driver level approach.

Thanks anyway :smiley:

is there any way to change the orange led light to blue led light?
at the moment i have the orange led light as normal status of router.

Sure, I'm using blue light and orange flashing when there is wan activity.
Add these options

2 Likes

amazing..!!
taking into account your setup, do you know i can i do to put light in red when the interface pppoe goes down..?

And upload at 5 ghz has been reduced from 90 mbps to 30 mbps according to speedtest net :wink: ... Switched back to Dec 7 snapshot, and it's back to 90 mbps.

What's that song? 99 little bugs in the code, 99 little bugs. Take one down, patch it around... 127 little bugs in the code.

I don't see any obvious 5GHz speed issues after the latest MT76 commit (https://git.lede-project.org/?p=source.git;a=commit;h=a428d9229eab8d3ab2421fdf79042e8f6b634b58). Not saying that what you experience is not real - just commenting to let others know that it's not a bad update for everyone :slight_smile:
The router runs just as nice as before (and probably HT40 on 2.4Ghz also works, but I don't use that feature)

Not yet... RX width stay always locked at 20 MHz (OpenWrt SNAPSHOT r5521-9f8d282)

5GHz for me is perfect and always fast.

9f8d282 is before HT40 was fixed

Have you tested?
I do and after many tests I can say that it is not solved

I bricked my device by flashing latest nightly (kernel panic)
[ 5.572120] ubi0: background thread "ubi_bgt0d" started, PID 375
[ 5.572142] hctosys: unable to open rtc device (rtc0)
[ 5.583645] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 5.591121] Please append a correct "root=" boot option; here are the available partitions:
[ 5.599461] 1f00 512 mtdblock0 [ 5.603448] (driver?)
[ 5.605821] 1f01 256 mtdblock1 [ 5.609805] (driver?)
[ 5.612154] 1f02 256 mtdblock2 [ 5.616153] (driver?)
[ 5.618505] 1f03 256 mtdblock3 [ 5.622486] (driver?)
[ 5.624834] 1f04 256 mtdblock4 [ 5.628835] (driver?)
[ 5.631187] 1f05 256 mtdblock5 [ 5.635169] (driver?)
[ 5.637537] 1f06 256 mtdblock6 [ 5.641521] (driver?)
[ 5.643869] 1f07 4096 mtdblock7 [ 5.647869] (driver?)
[ 5.650221] 1f08 4096 mtdblock8 [ 5.654202] (driver?)
[ 5.656574] 1f09 120320 mtdblock9 [ 5.660557] (driver?)
[ 5.662907] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 5.673411] Rebooting in 1 seconds..

i have serial console access. how do i flash a previous version??