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


#84

Nope, on Channel 36 using OpenWrt 18.06.1 release (r7258)
Do they fixed DFS channel repeating on r8916? Test if you can.
Thanks.


#85

Lots of fixes for mt76 in master branch.
I personally don't use my MIR3G as a repeater but I can test it when I am back at home tomorrow


#87

hi guys today trying to remove breed i erased bootloader and right when i wash flashing the uboot backup , all lights were gone , and now i have a brick with no bootloader , is there any way to recover it or is it just junk, like spi flashing or something thanks a lot


#88

Hi there,

due to several problems with the recent versions of openwrt I would like to test a lede image instead for my Xiaomi 3g router. Any idea where I could get some lede image for our router?


#89

Lede/OpenWRT 17 does not support Xiaomi 3g.


#90

How can I get back to stock from Openwrt, I tried the usb-method but there is still OpenWrt on the device.

the infos here seem to be a bit outdated:

Failsafe only:

run: mount_root
run: sh /etc/uci-defaults/30_uboot-envtools
Then do the steps for 'All'
All:

run: fw_setenv flag_try_sys2_failed 1
run: reboot

when I try the above mentioned:

root@OpenWrt:~# mount_root
root@OpenWrt:~# sh /etc/uci-defaults/30_uboot-envtools
sh: can't open '/etc/uci-defaults/30_uboot-envtools': No such file or directory
root@OpenWrt:~# fw_setenv flag_try_sys2_failed 1
Cannot parse config file '/etc/fw_env.config': Invalid argument
Error: environment not initialized
root@OpenWrt:~# 

any ideas how I can get back to stock?

I also tried to flash the breed bootloader to have another way of getting stock back.

but I can't write to the bootloader partition ...

root@OpenWrt:/tmp# mtd write Bootloader breed-mt7621-xiaomi-r3g.bin Bootloader
Could not open mtd device: Bootloader
Can't open device for writing!

#91

I tried to install openwrt via serial console, but it seems something went wrong. I booted up the router and used the following sequence of the commands to flash the firmware:

Installation through telnet/ssh:

1. copy lede-ramips-mt7621-mir3g-squashfs-kernel1.bin and lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin to usb disk or wget it from LEDE download site to /tmp

2. switch to /extdisks/sda1/ (if copied to USB drive) or to /tmp if wgetted from LEDE download site

3. run: mtd write lede-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1

4. run: mtd write lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin rootfs0

5. run: nvram set flag_try_sys1_failed=1

6. run: nvram commit

7. run: reboot

I used this image http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7621/openwrt-18.06.1-ramips-mt7621-mir3g-squashfs-sysupgrade.tar

when I rebooted the router I got the following:

===================================================================
                MT7621   stage1 code done
                CPU=50000000 HZ BUS=12500000 HZ
===================================================================


U-Boot 1.1.3 (Apr 17 2018 - 02:09:51)

Board: Ralink APSoC DRAM:  256 MB
Power on memory test. Memory size= 256 MB...OK!
relocate_code Pointer at: 8ffac000

Config XHCI 40M PLL
Allocate 16 byte aligned buffer: 8ffe1090
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C8 D1 80 95 40]
Device not found, ID: c8d1
Not Support this Device!
chip_mode=00000001
Support this Device in MTK table! c8d1
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 1023
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
..============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=5 OCP Ratio=1/4
Flash component: NAND Flash
Date:Apr 17 2018  Time:02:09:51
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 880 MHZ ####
 estimate memory size =256 Mbytes
#Reset_MT7530
set LAN/WAN LWLLL

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.
 0
Booting System 2
..ranand_erase: start:80000, len:20000
..Done!
done

3: System Boot system code via Flash.
## Booting image at bc600000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.63
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1818093 Bytes =  1.7 MB
   Load Address: 80001000
   Entry Point:  80001000
............................   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
commandline uart_en=1 factory_mode=0 usb_u3=0
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

[    0.000000] Linux version 4.14.63 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Thu Aug 16 07:51:15 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 3G
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] random: get_random_bytes called from 0x80549740 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81210000 s26256 r8192 d22896 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00002100
[    0.000000] Readback ErrCtl register=00002100
[    0.000000] Memory: 253664K/262144K available (4596K kernel code, 239K rwdata, 564K rodata, 220K init, 270K bss, 8480K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007812] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073974] pid_max: default: 32768 minimum: 301
[    0.078742] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085250] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094034] Hierarchical SRCU implementation.
[    0.099168] smp: Bringing up secondary CPUs ...
[    0.111267] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.111277] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.111289] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.111425] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163914] Synchronize counters for CPU 1: done.
[    0.205384] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.205393] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.205402] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.205472] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.255030] Synchronize counters for CPU 2: done.
[    0.292398] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.292407] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.292414] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.292494] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.340212] Synchronize counters for CPU 3: done.
[    0.370076] smp: Brought up 1 node, 4 CPUs
[    0.377817] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.387601] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.393893] pinctrl core: initialized pinctrl subsystem
[    0.399709] NET: Registered protocol family 16
[    0.409921] Can't analyze schedule() prologue at 80478bc4
[    0.415990] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.721237] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.726270] ***** Xtal 40MHz *****
[    0.729644] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.734750] Port 0 N_FTS = 1b102800
[    0.738193] Port 1 N_FTS = 1b102800
[    0.741652] Port 2 N_FTS = 1b102800
[    1.896968] PCIE2 no card, disable it(RST&CLK)
[    1.901315]  -> 21007f2
[    1.903731] PCIE0 enabled
[    1.906339] PCIE1 enabled
[    1.908923] PCI host bridge /pcie@1e140000 ranges:
[    1.913686]  MEM 0x0000000060000000..0x000000006fffffff
[    1.918871]   IO 0x000000001e160000..0x000000001e16ffff
[    1.924043] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.940048] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.945914] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.951691] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.958823] PCI host bridge to bus 0000:00
[    1.962849] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.969705] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.975537] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.982293] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.990863] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.998797] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.008012] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.014559] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.021436] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.028026] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.034920] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.041678] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.048396] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[    2.055582] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.062305] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.069074] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    2.075788] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.080730] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.087455] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.094731] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[    2.101871] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.106817] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.113541] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref]
[    2.122087] clocksource: Switched to clocksource GIC
[    2.128507] NET: Registered protocol family 2
[    2.133643] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.140527] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.146973] TCP: Hash tables configured (established 2048 bind 2048)
[    2.153393] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.159157] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.165642] NET: Registered protocol family 1
[    2.402040] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.408451] Crashlog allocated RAM at address 0x3f00000
[    2.413784] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.427713] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.433487] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.444879] random: fast init done
[    2.450032] io scheduler noop registered
[    2.453909] io scheduler deadline registered (default)
[    2.459606] gpio-export gpio_export: 1 gpio(s) exported
[    2.465619] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.475467] console [ttyS0] disabled
[    2.479015] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.488068] console [ttyS0] enabled
[    2.488068] console [ttyS0] enabled
[    2.494947] bootconsole [early0] disabled
[    2.494947] bootconsole [early0] disabled
[    2.503894] cacheinfo: Failed to find cpu0 device node
[    2.509016] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.515940] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.523053] Enable NFI Clock
[    2.525924] # MTK NAND # : Use HW ECC
[    2.529584] Device found in MTK table, ID: c8d1, EXT_ID: 809540
[    2.535518] Support this Device in MTK table! c8d1
[    2.540466] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.546938] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    2.553272] nand: ESMT NAND 128MiB 3,3V 8-bit
[    2.557609] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.565172] Scanning device for bad blocks
[    2.713099] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[    2.719939] Creating 10 MTD partitions on "MT7621-NAND":
[    2.725246] 0x000000000000-0x000000080000 : "Bootloader"
[    2.731514] 0x000000080000-0x0000000c0000 : "Config"
[    2.737352] 0x0000000c0000-0x000000100000 : "Bdata"
[    2.743126] 0x000000100000-0x000000140000 : "Factory"
[    2.748994] 0x000000140000-0x000000180000 : "crash"
[    2.754758] 0x000000180000-0x0000001c0000 : "crash_syslog"
[    2.761078] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.767238] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.773642] 0x000000600000-0x000000a00000 : "kernel"
[    2.779486] 0x000000a00000-0x000007f80000 : "ubi"
[    2.786079] [mtk_nand] probe successfully!
[    2.790887] Signature matched and data read!
[    2.795152] load_fact_bbt success 1023
[    2.799494] libphy: Fixed MDIO Bus: probed
[    2.874639] libphy: mdio: probed
[    4.278188] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.284789] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.295348] NET: Registered protocol family 10
[    4.301332] Segment Routing with IPv6
[    4.305140] NET: Registered protocol family 17
[    4.309632] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.322544] 8021q: 802.1Q VLAN Support v1.8
[    4.329680] UBI error: no valid UBI magic found inside mtd9
[    4.335319] hctosys: unable to open rtc device (rtc0)
[    4.341114] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    4.348581] Please append a correct "root=" boot option; here are the available partitions:
[    4.356916] 1f00             512 mtdblock0
[    4.356923]  (driver?)
[    4.363445] 1f01             256 mtdblock1
[    4.363450]  (driver?)
[    4.369950] 1f02             256 mtdblock2
[    4.369954]  (driver?)
[    4.376470] 1f03             256 mtdblock3
[    4.376475]  (driver?)
[    4.382988] 1f04             256 mtdblock4
[    4.382993]  (driver?)
[    4.389494] 1f05             256 mtdblock5
[    4.389497]  (driver?)
[    4.396013] 1f06             256 mtdblock6
[    4.396018]  (driver?)
[    4.402533] 1f07            4096 mtdblock7
[    4.402538]  (driver?)
[    4.409038] 1f08            4096 mtdblock8
[    4.409042]  (driver?)
[    4.415557] 1f09          120320 mtdblock9
[    4.415562]  (driver?)
[    4.422078] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    4.432225] Rebooting in 1 seconds..

it seems the kernel can't find the root. What went wrong? how to recover and install openwrt?


#92

How and what do I have to flash via tftp to get back to stock?
I am struggling a bit :grimacing:
1.) which kernel do I have to use?
2.) which IP address do I have to push the kernel to, I guess 192.168.31.1, right?
3.) which option in the boot menu do I have to use?
Is there somewhere a step-by-step howto?