Xiaomi WiFi Router 3G

I have this problem too, how I can compile with 4.4 kernel?
Thanks

it's simple as it is...

I'm using 4.4 with trunk. Just copy patches-4.4 and config-4.4 from 17.01 and change the Makefile to use 4.4.
by @neheb

makefile is under ./target/linux/ramips/makefile
you have to change the 4.9 to 4.4

and copy the patches-4.4 dir to ./target/linux/ramips and config-4.4 file to ./target/linux/ramips/mt7621

1 Like

Hi All,

Big Thanks to @Rising_Sun for help just unbricked my router :slight_smile: and put clean LEDE but need to use my company VPN which is using probably ppptp so when trying to connect got in sys and kern.log such error:

conntrack: generic helper won't handle protocol 47. Please consider loading the specific helper module.

found that should help some kmod to kernel: kmod-nf-nathelper-extra but when trying to install got this:

root@OpenWrt:~# opkg install kmod-nf-nathelper-extra
Installing kmod-nf-nathelper-extra (4.9.77-1) to root...
Downloading http://downloads.lede-project.org/snapshots/targets/ramips/mt7621/packages/kmod-nf-nathelper-extra_4.9.77-1_mipsel_24kc.ipk
Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-nathelper-extra:
  • kernel (= 4.9.77-1-142b0329a5336dabe3c3008687b40e7e) * kernel (= 4.9.77-1-142b0329a5336dabe3c3008687b40e7e) *
  • opkg_install_cmd: Cannot install package kmod-nf-nathelper-extra.
    root@OpenWrt:~# uname -a
    Linux OpenWrt 4.9.77 #0 SMP Sat Jan 20 22:36:05 2018 mips GNU/Linux

any thoughts on this one?

Thanks Luis

Add --force-depends or recompile

1 Like

Thanks @neheb !!! seems we do have some progress :slight_smile: i mean still do have an error but different :slight_smile:

nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead.

i think its connected with some rule rebuild:( but i do not have an exp. here.. anyone?

found that need to initiate it for any rule but still hard to trace that :slight_smile:

Thanks @HeadLess and @neheb with 4.4.112 kernel I don't have corruption bug.

Hello everyone,
First, I would like to thank everybody who works on this project !
I managed to install LEDE on my Mi R3G, with Luci
Actually to test this router, it's configured as a wifi client with 5Ghz on my home router, and I'm connected to the R3G in 2,4Ghz.
But I have a problem : after a few minutes running without problem, the luci interface is inaccessible, and connecting with putty in SSH is nearly impossible. The only solution is to reboot the router.
I don't think this is linked to the "2,4Ghz bug" because I'm not disconnected. Does someone knows what is the problem ? How can I help, by providing logs ?
Thanks

Sounds like the wifi bug. Happens to me in 2.4ghz and 5Ghz when I get a little bit "away" from my router, like getting one wall between me and the router. I stay connected but no data is transferred anymore and getting back in front of my rotuer does not fix this. Have to wait for like 2minutes or reconnect myself to fix this.

What version of mt76 do you have?

@craz I download the updates for MT7621, I don't know if this is what you wanted to know ? I'm using OpenWrt SNAPSHOT r5996-256477f / LuCI Master (git-18.033.58918-eae2f37)

@Rising_Sun as you said it must be a Wireless problem : I managed to connect via ethernet, and the interface is still accessible after 1 hour of runing. When I'm connected via wifi and the interface is inaccessible, if I disconnect and reconnect to the wifi, it brings back the connexion.
I applied option disassoc_low_ack β€˜0’ and option legacy_rates β€˜0’ for both 2,4 and 5Ghz, but the problem is still here

Hi, I installed this custom rom, the boot was fine and I can access the IP in browser, but I have no idea what is the default user/password to login in LUCI, can you please help me?

user: root
no password

you have to access over ssh, web is not activated normaly
you have to install with
opkg update
opkg install luci

I managed to build LEDE 17.01.4 to this device, with latest version of mt76 driver, I put it here:

However even updated mt76 driver does not play well with that LEDE version.
There are speed regressions, and I had disconnections on 2GHz WiFi.

Maybe newer compat wireless would help.

This image is binary compatible with official release - you can install kernel modules, packages etc.

Is the sysupgrade feature works? Because when i built an image from 17.01 tree then this function didn't work...

Hi Luis,

Can you explain how you unbricked your router please ?
I have USB UART.

Thank's !

Hi Sim7b

here Raising_Sun very well described:

Thanks
Michal

Thank's for the answer but do you have an explanation more detailed ?

Hello everyone,

Somehow I got stuck using the above instructions. When I'm opening https://d.miwifi.com/rom/ssh after flashing the developer firmware & loggin in with the same account using the Mi Wifi app the page just is 'stuck' loading and eventually displays an error loading the page. Both on Firefox and Edge. I thus am unable to obtain SSH and root access.

I hope someone can help me!

EDIT: Apparently both browsers connected through http instead of https, changing this solved the issue.

Has anyone tested this commit: mt76: update to the latest version?