Xiaomi WiFi Router 3G

With the dual partition layout you will also able to dual boot...
But openwrt on mir3g does squash the two rootfs partitions into one... But should be easily possible to revert this behavior in dts...

The real advantage that i see, is a complete independent flash for testing or development purposes...

Cant't ssh ?
Executed the following command:

nvram set flag_last_success=1
nvram set boot_wait=on
nvram set uart_en=1
nvram commit

mtd write openwrt-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1
mtd write openwrt-ramips-mt7621-mir3g-squashfs-rootfs0.bin rootfs0

reboot

Blue light is normal

Can get 192.168.1.0/24 network address, but can not ssh login~~

Can anyone tell me how to ssh or how to restore the official firmware?

What is on your other kernel partition? Stock kernel?

If you set nvram set flag_last_success=1 you will boot into kernel partition that is not used by lede/openwrt.

You can recover with stock kernel and usb or over serial console with usb or tftp.
https://openwrt.org/toh/xiaomi/mir3g#debricking

Do need to open the router to use the serial port?

Yes and you have to solder an pin header...

Here is a good post Xiaomi WiFi Router 3G

Am I blind or OC options for r3g is missing from Breed? :thinking:

I didn't find it either...

My router persists in randomly reboot. I'm in snapshot 7050. Crontab is empty.

Isn't there a way to find this problem?

Serial boot log?

2 Likes

Do I need to modify router's hardware?
I'm at this moment with 10 hours uptime (snapshot 7093).

it look like the dropbear config file is empty that's why you can't ssh, no need to solder nothing just connect the router using failsafe mode and fill it:

config dropbear
	option PasswordAuth 'on'
	option RootPasswordAuth 'on'
	option Port '22'
	option BannerFile '/etc/banner'

I hope this helps

1 Like

Thanks,
I used imagebuilder for the first time a couple of days ago, and lost SSH and Luci network connection. Reverted to serial cable and abandonned it until this post. This was for a 18.06 snapshot.

what is needed for LEDE on my 2.4 Ghz wifi to work on 150mb, currently only appears on 72mb in devices

In /etc/config/wireless replace HT20 from radio0 to HT40. You might also need noscan '1' depending on how many wlans nearby.

How do i configure to wake on Lan my pc Work from Internet?

Dyndns is already working. I tried fix PC IP in ARP table in startup and setup port forward...

But wake on Lan is working only from inside Lan, not for Internet.

Can anyone help?

I'm facing the exact same issue, setting legacy rates kinda helps but every 10 minutes or so it fails. Same client device as well. Besides that it is very stable.

@w2w @gr1m
Same problem!
More info here.

please help me
openwrt can't load usb 3.0 but can load usb 2.0 ?
If I restart it can load USB3.0.
But re-plug usb3.0 still does not recognize.
At the same time there is no mount menu luci.
ls -l /dev | grep sda is nothing.

[ 9570.900501] usb 1-1: new high-speed USB device number 7 using xhci-mtk
[ 9592.050447] usb 1-1: new high-speed USB device number 8 using xhci-mtk
[ 9604.160392] usb 1-1: new high-speed USB device number 9 using xhci-mtk

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Dont understand this? What do you mean with load?
What´s the output of "opkg list-installed"?

Probably you need some additional packages... For example...:

block-mount
kmod-fs-XXX
kmod-usb-storage
base-files - 190-r7068-2087df1
bind-libs - 9.11.2-P1-1
bind-server - 9.11.2-P1-1
bind-tools - 9.11.2-P1-1
blkid - 2.32-2
busybox - 1.28.3-2
ca-bundle - 20180409
ca-certificates - 20180409
curl - 7.60.0-3
ddns-scripts - 2.7.7-6
dnsmasq - 2.80test2-1
dropbear - 2017.75-5
e2fsprogs - 1.44.1-1
fdisk - 2.32-2
firewall - 2018-05-19-30463d08-1
fstools - 2018-05-23-dd02dad3-1
fwtool - 1
hostapd-common - 2018-05-21-62566bc2-3
ip-tiny - 4.16.0-3
ip6tables - 1.6.2-1
iptables - 1.6.2-1
iptables-mod-ipsec - 1.6.2-1
iw - 4.14-1
jshn - 2018-04-12-6eff829d-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.14.44-1-cfa316e572ea7fa890feb6abb050c445
kmod-cfg80211 - 4.14.44+2017-11-01-9
kmod-crypto-acompress - 4.14.44-1
kmod-crypto-aead - 4.14.44-1
kmod-crypto-authenc - 4.14.44-1
kmod-crypto-cbc - 4.14.44-1
kmod-crypto-crc32c - 4.14.44-1
kmod-crypto-deflate - 4.14.44-1
kmod-crypto-des - 4.14.44-1
kmod-crypto-echainiv - 4.14.44-1
kmod-crypto-hash - 4.14.44-1
kmod-crypto-hmac - 4.14.44-1
kmod-crypto-iv - 4.14.44-1
kmod-crypto-manager - 4.14.44-1
kmod-crypto-md5 - 4.14.44-1
kmod-crypto-null - 4.14.44-1
kmod-crypto-pcompress - 4.14.44-1
kmod-crypto-rng - 4.14.44-1
kmod-crypto-sha1 - 4.14.44-1
kmod-crypto-sha256 - 4.14.44-1
kmod-crypto-user - 4.14.44-1
kmod-crypto-wq - 4.14.44-1
kmod-fs-ext4 - 4.14.44-1
kmod-fs-ntfs - 4.14.44-1
kmod-fs-vfat - 4.14.44-1
kmod-fuse - 4.14.44-1
kmod-gpio-button-hotplug - 4.14.44-2
kmod-ip6tables - 4.14.44-1
kmod-ipsec - 4.14.44-1
kmod-ipsec4 - 4.14.44-1
kmod-ipsec6 - 4.14.44-1
kmod-ipt-conntrack - 4.14.44-1
kmod-ipt-conntrack-extra - 4.14.44-1
kmod-ipt-core - 4.14.44-1
kmod-ipt-ipsec - 4.14.44-1
kmod-ipt-nat - 4.14.44-1
kmod-ipt-offload - 4.14.44-1
kmod-iptunnel4 - 4.14.44-1
kmod-iptunnel6 - 4.14.44-1
kmod-leds-gpio - 4.14.44-1
kmod-lib-crc-ccitt - 4.14.44-1
kmod-lib-crc16 - 4.14.44-1
kmod-lib-zlib-deflate - 4.14.44-1
kmod-lib-zlib-inflate - 4.14.44-1
kmod-mac80211 - 4.14.44+2017-11-01-9
kmod-mt76-core - 4.14.44+2018-05-18-0b8d1dde-1
kmod-mt7603 - 4.14.44+2018-05-18-0b8d1dde-1
kmod-mt76x2 - 4.14.44+2018-05-18-0b8d1dde-1
kmod-nf-conntrack - 4.14.44-1
kmod-nf-conntrack6 - 4.14.44-1
kmod-nf-flow - 4.14.44-1
kmod-nf-ipt - 4.14.44-1
kmod-nf-ipt6 - 4.14.44-1
kmod-nf-nat - 4.14.44-1
kmod-nf-reject - 4.14.44-1
kmod-nf-reject6 - 4.14.44-1
kmod-nls-base - 4.14.44-1
kmod-nls-cp437 - 4.14.44-1
kmod-nls-iso8859-1 - 4.14.44-1
kmod-nls-utf8 - 4.14.44-1
kmod-ppp - 4.14.44-1
kmod-pppoe - 4.14.44-1
kmod-pppox - 4.14.44-1
kmod-scsi-core - 4.14.44-1
kmod-scsi-generic - 4.14.44-1
kmod-slhc - 4.14.44-1
kmod-usb-core - 4.14.44-1
kmod-usb-ehci - 4.14.44-1
kmod-usb-ohci - 4.14.44-1
kmod-usb-ohci-pci - 4.14.44-1
kmod-usb-storage - 4.14.44-1
kmod-usb-storage-extras - 4.14.44-1
kmod-usb-uhci - 4.14.44-1
kmod-usb2 - 4.14.44-1
kmod-usb2-pci - 4.14.44-1
kmod-usb3 - 4.14.44-1
libatomic - 7.3.0-1
libblkid - 2.32-2
libblobmsg-json - 2018-04-12-6eff829d-1
libc - 1.1.19-1
libcomerr - 1.44.1-1
libcurl - 7.60.0-3
libext2fs - 1.44.1-1
libfdisk - 2.32-2
libgcc - 7.3.0-1
libgcrypt - 1.6.6-2
libgmp - 6.1.2-1
libgpg-error - 1.12-1
libip4tc - 1.6.2-1
libip6tc - 1.6.2-1
libiwinfo - 2018-05-18-e59f9253-1
libiwinfo-lua - 2018-05-18-e59f9253-1
libjson-c - 0.12.1-1
libjson-script - 2018-04-12-6eff829d-1
liblua - 5.1.5-1
liblucihttp - 2018-05-18-cb119ded-1
liblucihttp-lua - 2018-05-18-cb119ded-1
libmariadbclient - 10.1.33-1
libmbedtls - 2.9.0-1
libmnl - 1.0.4-1
libmount - 2.32-2
libncurses - 6.1-1
libnl-tiny - 0.1-5
libopenldap - 2.4.45-2
libopenssl - 1.0.2o-1
libpthread - 1.1.19-1
librt - 1.1.19-1
libsasl2 - 2.1.27-rc7-1
libsmartcols - 2.32-2
libsqlite3 - 3230100-1
libss - 1.44.1-1
libstdcpp - 7.3.0-1
libubox - 2018-04-12-6eff829d-1
libubus - 2018-01-16-5bae22eb-1
libubus-lua - 2018-01-16-5bae22eb-1
libuci - 2018-03-24-5d2bf09e-1
libuclient - 2017-11-02-4b87d831-1
libusb-1.0 - 1.0.22-1
libustream-openssl - 2018-05-24-189cd38b-1
libuuid - 2.32-2
libxml2 - 2.9.8-1
libxtables - 1.6.2-1
logd - 2018-02-14-128bc35f-1
lua - 5.1.5-1
luci - git-18.151.61791-fed315a-1
luci-app-ddns - 2.4.9-3
luci-app-firewall - git-18.151.61791-fed315a-1
luci-app-samba - git-18.153.65511-660e4f5-1
luci-base - git-18.151.61791-fed315a-1
luci-lib-ip - git-18.151.61791-fed315a-1
luci-lib-jsonc - git-18.151.61791-fed315a-1
luci-lib-nixio - git-18.151.61791-fed315a-1
luci-mod-admin-full - git-18.151.61791-fed315a-1
luci-proto-ipv6 - git-18.151.61791-fed315a-1
luci-proto-ppp - git-18.151.61791-fed315a-1
luci-theme-bootstrap - git-18.151.61791-fed315a-1
mount-utils - 2.32-2
mtd - 21
netifd - 2018-04-26-56cecedb-1
ntfs-3g - 2017.3.23-1-fuseint
ntfs-3g-utils - 2017.3.23-1-fuseint
odhcp6c - 2018-04-29-5316d7f8-11
odhcpd-ipv6only - 1.7-1
openssl-util - 1.0.2o-1
openwrt-keyring - 2018-05-18-103a32e9-1
opkg - 2017-12-07-3b417b9f-2
ppp - 2.4.7-12
ppp-mod-pppoe - 2.4.7-12
procd - 2018-03-28-dfb68f85-1
rpcd - 2018-05-13-82062195-1
rpcd-mod-rrdns - 20170710
samba36-server - 3.6.25-10
strongswan - 5.6.3-1
strongswan-charon - 5.6.3-1
strongswan-charon-cmd - 5.6.3-1
strongswan-default - 5.6.3-1
strongswan-full - 5.6.3-1
strongswan-ipsec - 5.6.3-1
strongswan-libtls - 5.6.3-1
strongswan-minimal - 5.6.3-1
strongswan-mod-addrblock - 5.6.3-1
strongswan-mod-aes - 5.6.3-1
strongswan-mod-af-alg - 5.6.3-1
strongswan-mod-agent - 5.6.3-1
strongswan-mod-attr - 5.6.3-1
strongswan-mod-attr-sql - 5.6.3-1
strongswan-mod-blowfish - 5.6.3-1
strongswan-mod-ccm - 5.6.3-1
strongswan-mod-cmac - 5.6.3-1
strongswan-mod-connmark - 5.6.3-1
strongswan-mod-constraints - 5.6.3-1
strongswan-mod-coupling - 5.6.3-1
strongswan-mod-ctr - 5.6.3-1
strongswan-mod-curl - 5.6.3-1
strongswan-mod-curve25519 - 5.6.3-1
strongswan-mod-des - 5.6.3-1
strongswan-mod-dhcp - 5.6.3-1
strongswan-mod-dnskey - 5.6.3-1
strongswan-mod-duplicheck - 5.6.3-1
strongswan-mod-eap-identity - 5.6.3-1
strongswan-mod-eap-md5 - 5.6.3-1
strongswan-mod-eap-mschapv2 - 5.6.3-1
strongswan-mod-eap-radius - 5.6.3-1
strongswan-mod-eap-tls - 5.6.3-1
strongswan-mod-farp - 5.6.3-1
strongswan-mod-fips-prf - 5.6.3-1
strongswan-mod-forecast - 5.6.3-1
strongswan-mod-gcm - 5.6.3-1
strongswan-mod-gcrypt - 5.6.3-1
strongswan-mod-gmp - 5.6.3-1
strongswan-mod-ha - 5.6.3-1
strongswan-mod-hmac - 5.6.3-1
strongswan-mod-kernel-netlink - 5.6.3-1
strongswan-mod-ldap - 5.6.3-1
strongswan-mod-led - 5.6.3-1
strongswan-mod-load-tester - 5.6.3-1
strongswan-mod-md4 - 5.6.3-1
strongswan-mod-md5 - 5.6.3-1
strongswan-mod-mysql - 5.6.3-1
strongswan-mod-nonce - 5.6.3-1
strongswan-mod-openssl - 5.6.3-1
strongswan-mod-pem - 5.6.3-1
strongswan-mod-pgp - 5.6.3-1
strongswan-mod-pkcs1 - 5.6.3-1
strongswan-mod-pkcs11 - 5.6.3-1
strongswan-mod-pkcs12 - 5.6.3-1
strongswan-mod-pkcs7 - 5.6.3-1
strongswan-mod-pkcs8 - 5.6.3-1
strongswan-mod-pubkey - 5.6.3-1
strongswan-mod-random - 5.6.3-1
strongswan-mod-rc2 - 5.6.3-1
strongswan-mod-resolve - 5.6.3-1
strongswan-mod-revocation - 5.6.3-1
strongswan-mod-sha1 - 5.6.3-1
strongswan-mod-sha2 - 5.6.3-1
strongswan-mod-smp - 5.6.3-1
strongswan-mod-socket-default - 5.6.3-1
strongswan-mod-sql - 5.6.3-1
strongswan-mod-sqlite - 5.6.3-1
strongswan-mod-sshkey - 5.6.3-1
strongswan-mod-stroke - 5.6.3-1
strongswan-mod-test-vectors - 5.6.3-1
strongswan-mod-uci - 5.6.3-1
strongswan-mod-unity - 5.6.3-1
strongswan-mod-updown - 5.6.3-1
strongswan-mod-vici - 5.6.3-1
strongswan-mod-whitelist - 5.6.3-1
strongswan-mod-x509 - 5.6.3-1
strongswan-mod-xauth-eap - 5.6.3-1
strongswan-mod-xauth-generic - 5.6.3-1
strongswan-mod-xcbc - 5.6.3-1
strongswan-pki - 5.6.3-1
strongswan-scepclient - 5.6.3-1
strongswan-swanctl - 5.6.3-1
swconfig - 11
terminfo - 6.1-1
ubi-utils - 2.0.2-1
uboot-envtools - 2018.03-1
ubox - 2018-02-14-128bc35f-1
ubus - 2018-01-16-5bae22eb-1
ubusd - 2018-01-16-5bae22eb-1
uci - 2018-03-24-5d2bf09e-1
uclient-fetch - 2017-11-02-4b87d831-1
uhttpd - 2017-11-04-a235636a-1
uhttpd-mod-ubus - 2017-11-04-a235636a-1
usbutils - 007-7
usign - 2015-07-04-ef641914-1
wireless-regdb - 2017-10-20-4343d359
wpad-mini - 2018-05-21-62566bc2-3
zlib - 1.2.11-2

..

The ploblom is can’t load usb 3.0 but can load usb 2.0.

Where can I go wrong?