Xiaomi Wifi Router 3G - 18.06.X / feedback and help

when i upgrade 18.06.4 Wifi auto disconnect

Systemlog:

Thu Jul 11 16:04:19 2019 kern.info kernel: [29335.249163] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
Thu Jul 11 16:04:19 2019 kern.info kernel: [29335.249183] mt76x2e 0000:02:00.0: Build: 1
Thu Jul 11 16:04:19 2019 kern.info kernel: [29335.249191] mt76x2e 0000:02:00.0: Build Time: 201507311614____
Thu Jul 11 16:04:19 2019 kern.info kernel: [29335.267592] mt76x2e 0000:02:00.0: Firmware running!
Thu Jul 11 16:04:19 2019 kern.info kernel: [29335.277584] ieee80211 phy1: Hardware restart was requested
root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='18.06.4'
DISTRIB_REVISION='r7808-ef686b7292'
DISTRIB_TARGET='ramips/mt7621'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='OpenWrt 18.06.4 r7808-ef686b7292'
DISTRIB_TAINTS=''
root@OpenWrt:~# cat /etc/openwrt_version
r7808-ef686b7292
root@OpenWrt:~# opkg list-installed|grep mt76
kmod-mt76-core - 4.14.131+2019-03-23-a5f5605f-1
kmod-mt7603 - 4.14.131+2019-03-23-a5f5605f-1
kmod-mt76x02-common - 4.14.131+2019-03-23-a5f5605f-1
kmod-mt76x2 - 4.14.131+2019-03-23-a5f5605f-1
kmod-mt76x2-common - 4.14.131+2019-03-23-a5f5605f-1

Hey guys. I am trying to install OpenWRT but when running following command:
mtd write openwrt-18.06.2-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1
I get error:
Couldn't open image file: openwrt-18.06.2-ramips-mt7621-mir3g-squashfs-kernel1.bin!
What may be a problem?

root@XiaoQiang:/extdisks/sda1# ls -la
drwxrwxrwx    1 root     root          4096 Jan  1  1970 .
drwxr-xr-x    3 root     root            60 Oct 29  2018 ..
drwxrwxrwx    1 root     root          4096 Oct 29  2018 .systemconfig
drwxrwxrwx    1 root     root          4096 Jul 12 23:28 System Volume Information
drwxrwxrwx    1 root     root          4096 Oct 29  2018 TDDOWNLOAD
drwxrwxrwx    1 root     root          4096 Jul 13 06:43 ThunderDB
-rwxrwxrwx    1 root     root          4464 Jul 12 23:21 miwifi_ssh.bin
-rwxrwxrwx    1 root     root       1838602 Jul 13 05:59 openwrt-18.06.4-ramips-mt7621-mir3g-squashfs-kernel1.bin
-rwxrwxrwx    1 root     root       3538944 Jul 13 06:00 openwrt-18.06.4-ramips-mt7621-mir3g-squashfs-rootfs0.bin
drwxrwxrwx    1 root     root          4096 Oct 29  2018 xiaomi_config
drwxrwxrwx    1 root     root          4096 Oct 29  2018 ??
drwxrwxrwx    1 root     root          4096 Oct 29  2018 ??
root@XiaoQiang:/extdisks/sda1# mtd write openwrt-18.06.2-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1
Couldn't open image file: openwrt-18.06.2-ramips-mt7621-mir3g-squashfs-kernel1.bin!

Welcome. Please try to avoid hijacking or reusing existing topics if they are not about the exact issue you have (or a strongly related one), particularly when it's a long topic that had too many posts already.

Anyway

You are using the wrong file name. Your file is 18.06.04 while your command looks for 18.06.02.

If your problem isn't solved, please start a new topic.

2 Likes

Does anyone tried WPA3 with Mi R3G? (Using 18.06.04)

Hello,

I received my Router Today, but the one I get have no USB Port.
Is this the Old Version?

I had a Problem with flashing the Developer Software, when I upload the firmware I get "Verification failed" and after a few trys sometimes the 100% Upload "stay there for 5 Minutes" and then I get a error "Upgrade Failed System Error or root partition full"

Anyone has an idea what I can do? I reset the router a few times but every time the same. The Softwareversion on the router is 2.28.8

Your version without USB is the V2 of R3G and is currently not supported by OpenWRT.
There is a patch on the mailing list, but flashing is much harder and requires a hw programmer as of actual state...

Checkout this thread:

That's a real PITA. I have an "old" 3G, which is not so simple to flash, either, but its worth because of all the great aspects of the 3G: Powerful, cool design, good price.
And now XIAOMI makes it even more difficult to flash the "new" 3G.
One could imagine, there is some type of "Trojan" in the org firmware, XIAOMI (?) has to keep alive ...

If you have a choice, I do not recommend XIAOMI products that are difficult to flash or more. There is for example the WR1200JS / WR330 which has the same performance and is no problem.

1 Like

WR1200JS: Discontinued; only 128MB RAM compared to 256MB of the "old" 3G.
And the design of the case no match to XIAOMI.

with the last source mt7621.mk is modified:

new version:

define Device/xiaomi_mir3g
  MTK_SOC := mt7621
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  KERNEL_SIZE := 4096k
  IMAGE_SIZE := 124416k
  UBINIZE_OPTS := -E 5
  IMAGES += kernel1.bin rootfs0.bin
  IMAGE/kernel1.bin := append-kernel
  IMAGE/rootfs0.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  DEVICE_VENDOR := Xiaomi
  DEVICE_MODEL := Mi Router 3G
  SUPPORTED_DEVICES += R3G
  SUPPORTED_DEVICES += mir3g
  DEVICE_PACKAGES := \
	kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic \
	uboot-envtools
endef
TARGET_DEVICES += xiaomi_mir3g
...

old version:

define Device/mir3g
 DTS := MIR3G
 BLOCKSIZE := 128k
 PAGESIZE := 2048
 KERNEL_SIZE := 4096k
 IMAGE_SIZE := 32768k
 UBINIZE_OPTS := -E 5
 IMAGES += kernel1.bin rootfs0.bin
 IMAGE/kernel1.bin := append-kernel
 IMAGE/rootfs0.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
 DEVICE_TITLE := Xiaomi Mi Router 3G
 SUPPORTED_DEVICES += R3G
 DEVICE_PACKAGES := \
   kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic \
   uboot-envtools
endef
TARGET_DEVICES += mir3g

When i compile old version i have sysupgrade good

With the last version i cannot sysupgrade error is :
**The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. Select 'Force upgrade' to flash the image even if the image format check fails. Use only if you are sure that the firmware is correct and meant for your device!**

solved with old version:

1 - save the config
2 - flash with rootfs0 file
3 - reboot ( default parameters 192.168.1.1 )
4 - import the old config
5 - update wifi

after you can flash new sysupgrade …

1 Like

Has anyone tried 19.07 RC1 yet? Any major issues?
Also, I saw that the sysupgrade is in a .bin format so I can't go from 18.06 to 19.07 directly... Luci doesn't accept that format... Do I need to flash like the first time? With mtd kernel1 and rootfs ?

This is also a tar file which contains the two bin files... They changed only the file ending.
You need to force the sysupgrade because they changed the compatible name.

This topic is for 18.06 only.
Please open new topics for any questions not related to 18.06.

Thanks.

Can someone explain me how to Configure SMBV3?
I do this, and dont know what to do more:
Capture
On software page i see this, should i install this:

Look for the package luci-app-samba and install it.

I install, but when i plug usb nothing happens, like i dont.
Advices? I try with EXFAT and NTFS and results is the same, like i dont put.

You'll probably need to install a few packages for auto disk mount and filesystem compatibility.

Can you help me how to do this?

ntfs … relayd, samba, minidlna + many others

opkg update
opkg install … ( my full list )

base-files blkid block-mount blockd busybox cgi-io chat comgt ddns-scripts dnsmasq dropbear e2fsprogs firewall fstools fwtool getrandom hd-idle hostapd-common igmpproxy ip6tables ip6tables-mod-nat iptables iptables-mod-tproxy iw iwinfo jshn jsonfilter kernel kmod-cfg80211 kmod-crypto-crc32c kmod-crypto-hash kmod-eeprom-93cx6 kmod-fs-autofs4 kmod-fs-ext4 kmod-fs-reiserfs kmod-fs-vfat kmod-fuse kmod-gpio-button-hotplug kmod-ip6tables kmod-ipt-conntrack kmod-ipt-core kmod-ipt-ipset kmod-ipt-nat kmod-ipt-nat6 kmod-ipt-offload kmod-ipt-tproxy kmod-leds-gpio kmod-lib-crc-ccitt kmod-lib-crc-itu-t kmod-lib-crc16 kmod-mac80211 kmod-mii kmod-mmc kmod-mt76 kmod-mt76-core kmod-mt7603 kmod-mt76x02-common kmod-mt76x2 kmod-mt76x2-common kmod-nf-conntrack kmod-nf-conntrack-netlink kmod-nf-conntrack6 kmod-nf-flow kmod-nf-ipt kmod-nf-ipt6 kmod-nf-nat kmod-nf-nat6 kmod-nf-reject kmod-nf-reject6 kmod-nfnetlink kmod-nls-base kmod-nls-cp437 kmod-nls-iso8859-1 kmod-nls-utf8 kmod-ppp kmod-pppoe kmod-pppox kmod-rt2800-lib kmod-rt2800-mmio kmod-rt2800-pci kmod-rt2x00-lib kmod-rt2x00-mmio kmod-rt2x00-pci kmod-scsi-core kmod-slhc kmod-usb-core kmod-usb-ohci kmod-usb-printer kmod-usb-storage kmod-usb-storage-extras kmod-usb-storage-uas kmod-usb-uhci kmod-usb3 libblkid1 libblobmsg-json libbz2-1.0 libc libcomerr0 libexif libext2fs2 libffmpeg-audio-dec libflac libgcc1 libid3tag libip4tc2 libip6tc2 libiwinfo-lua libiwinfo20181126 libjpeg libjson-c4 libjson-script liblua5.1.5 liblucihttp-lua liblucihttp0 libmount1 libnl-tiny libogg0 libpthread librt libsmartcols1 libsqlite3 libss2 libubox20170601 libubus-lua libubus20170705 libuci-lua libuci20130104 libuclient20160123 libuuid1 libvorbis libxtables12 logd lsblk lua luci luci-app-ddns luci-app-firewall luci-app-hd-idle luci-app-minidlna luci-app-opkg luci-app-p910nd luci-app-samba luci-app-travelmate luci-app-upnp luci-base luci-lib-ip luci-lib-ipkg luci-lib-jsonc luci-lib-nixio luci-mod-admin-full luci-mod-network luci-mod-status luci-mod-system luci-proto-3g luci-proto-ipv6 luci-proto-ppp luci-proto-relay luci-theme-bootstrap minidlna miniupnpd mtd netifd ntfs-3g odhcp6c odhcpd-ipv6only openwrt-keyring opkg p910nd ppp ppp-mod-pppoe procd relayd rpcd rpcd-mod-file rpcd-mod-iwinfo rpcd-mod-rrdns rt2800-pci-firmware samba36-server swconfig travelmate ubi-utils ubox ubus ubusd uci uclient-fetch uhttpd uhttpd-mod-ubus urandom-seed urngd usign wireless-regdb wireless-tools wpad zlib