User Tools

Site Tools


toh:xiaomi:mini

Xiaomi MiWiFi Mini

The Xiaomi MiWiFi Mini is a 802.11ac+bgn wireless router based on the MediaTek MT7620A SoC. It has three Ethernet ports and two radios (one SoC-based 2.4 GHz 802.11bgn and one MT7612E-based(?) 5GHz 802.11ac, both 2x2 MiMo).

 Xiaomi MiWiFi Mini router (left view)  Xiaomi MiWiFi Mini router (front view)  Xiaomi MiWiFi Mini router (board top view)

Hardware highlights

CPU Ram Flash Network USB Serial
MediaTek MT7620A 128 MiB 16 MiB 3 10/100 Ethernet + 802.11a/b/g/n + 802.11ac 1x 2.0 Host Yes

Supported versions

Version/Model Launch Date OpenWrt version supported
v1 2014 CC trunk since r44238

OpenWrt installation process is tricky but possible. It requires registering to Xiaomi's web site to install the development firmware provided by the vendor that enables root SSH access to the device. See below for details. Another option would be to directly burn the SPI flash chip via a clamp and a buspirate.

Hardware

Detailed hardware

Instruction set: MIPS
Vendor: MediaTek
Bootloader: U-Boot + Xiaomi U-Boot
System-On-Chip: Ralink MT7620A
CPU @Freq MIPS 24KEc V5.0 @580 MHz
Flash size: 16 MiB
Flash Chip: Makronix S25FL064K
RAM size: 128 MiB DDR2
RAM Chip: ?
Wireless No1: SoC-integrated: MT7620A 2x2 MIMO 802.11b/g/n (2.4 GHz)
Wireless No2: On-board chip: MT7612E(?) 2x2 MIMO 802.11a/n/ac (5 GHz)
Switch: MT7620 built-in 10/100 switch w/ vlan support
USB: 1x
Serial: Yes

Serial connection

The serial port of the Xiaomi MiWiFi Mini can be accessed using the TTL pins shown in the image below. A voltage level converter (such as a CP2102 TTL-USB dongle) is required. Writing to the console is disabled in the factory U-Boot. Writing to the console in the factory firmware is only possible during first boot; afterwards it is disabled by the firmware.

The following images shows the serial pins clearly marked on the board:

Xiaomi MiWiFi Mini TTL serial pins are clearly marked on the board

The communication settings are: TTL voltage, 115200 bps, 8N1.

OpenWrt support

The Xiaomi MiWiFi Mini can run OpenWrt. Use 15.05 or a recent snapshot, alternatively use this patch on OpenWrt trunk.

The MediaTek MT7612E(?) wireless driver package (mt76) supports the 802.11ac wireless card in AP/Client/Adhoc modes.

Attention!

Wifi is nowhere near stable even in stable releases up to Chaos Calmer, more information at https://forum.openwrt.org/viewtopic.php?id=54987

possible solution for the problem described below: https://forum.openwrt.org/viewtopic.php?pid=306678#p306678
Since many people complain about signal strength on this router it should be noted that according to information in https://forum.openwrt.org/viewtopic.php?id=61250 and https://github.com/openwrt/mt76/issues/19 looks like the original firmware uses different radio calibration procedure than usual EEPROM from flash partition!

Switch Ports

Defaults:

  • 0, 1: LAN
  • 4: WAN
  • 6: CPU

2,3,5 and 7 are disconnected. All ports are 100Mbps except the CPU port 6, which shows as 1Gbps using 'swconfig dev mt7620 show'

Quick OpenWrt installation

In case you want to skip all the Xiaomi download etc, here are some instructions to flash directly OpenWrt/PandoraBox on stock firmware via code injection bug.

NOTE

This method has been successfully tested on

  • → Xiaomi Mini - Stock firmware v2.6.17
  • → Xiaomi Mini - English firmware 2.8.91 (English in UI language settings)
  • → Xiaomi Mini - English firmware version 2.2.105
  • → Xiaomi Mini (Taiwan market) - model number R1CM, firmware version 0.7.21
  • → Xiaomi Lite aka "Youth" or "Nano" - Stock firmware v2.2.8

STEPS

  • Power on and setup the Xiaomi router until it reboots and gets IP address 192.168.31.1
  • Log-in into the router and grab the value of the stok URL parameter (for instance: "9c2428de4d17e2db7e5a6a337e6f57a3")
  • Replace the <STOK> placeholder and load this URL in your browser or curl, this will start telnetd on the router:
    • http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqnetwork/set_wifi_ap?ssid=whatever&encryption=NONE&enctype=NONE&channel=1%3B%2Fusr%2Fsbin%2Ftelnetd
    • It should spit out error code, for example: {"msg":"未能連線到指定Wi-Fi(Probe timeout)","code":1616} or English: {"msg":"Couldn't connect to this network(Probe timeout)","code":1616}
  • Replace the <STOK> placeholder, the current password and the desired root password and load this URL in your browser or curl, this will set the router root password
    • http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqsystem/set_name_password?oldPwd=<CURRENTPASS>&newPwd=<NEWPASS>
    • It should spit out: {"code":0}
  • Telnet to the router, enter user root and NEWPASS chosen above.
  • wget your favourite .bin file and flash with mtd -r write firmware.bin OS1
  • Router reboots.

OpenWrt installation

To install OpenWrt the first time you need an account on miwifi.com and register every single device using an iOS or Android device to get an cusomized SSH-patch.

  • Connect the device to Internet (WAN port), continue when LED is blue (device online)
  • Connect a Laptop/PC/Mobile to the LAN port or the devices wifi (eg. Xiaomi_FFFF)
  • Navigate to the web interface (http://192.168.31.1/), set the system and WiFi password
  • Upgrade the device with Xiaomi's development firmware via USB stick:
    • Download the file named miwifi_r1cm_firmware_047a3_2.x.x.bin
    • Copy the file to an empty, FAT32 formatted USB stick and rename the file to miwifi.bin
    • Turn on router while reset-button pressed and USB stick plugged in
    • Release Reset-button after the orange LED starts flashing
    • Wait a minute to complete flashing and device is online again (shown by blue LED)
  • Register the device on Xiaomi's web site (using Android or iPhone app)
  • Obtain root SSH password and the binary to enable SSH:
    • The patch applies only for a specific device. If you have more than 1 device check the last 4 digits on the devices default SSID.
    • Download the SSH-Patch for the registered device and save it to an empty FAT32 formatted USB stick, filename miwifi_ssh.bin
    • Turn on Router while reset-button pressed and USB stick plugged in
    • Release Reset-button after the orange LED starts flashing
    • Wait a minute to complete flashing and device is online again (shown by blue LED)
  • SSH to the device to flash OpenWrt
    • Open a SSH connection to root@192.168.31.1
    • Login using credentials provided by the SSH download website
  • Flash the latest firmware
  • After flashing is complete, the router will reboot. When finished you can login using telnet or web-interface on a LAN-connected client to host 192.168.1.1. User: root, no password.
  • SSH will be enabled after you set a password (using passwd or LuCI web interface), telnet will be disabled.

An unofficial english version of the Android app can be obtained here: http://xiaomi.eu/community/threads/xiaomi-router-app-translation.25386/page-3#post-262621

This web page provides step by step details: http://en.miui.com/thread-64391-1-1.html. For instructions for reverting to factory firmware, please see below.

Please note that the OpenWrt binary defaults to the red color of the led instead of the orange/blue during and after finishing the boot.

The OpenWrt firmware binary file (openwrt-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin) can be downloaded from the downloads page.

Reverting to stock firmware

You can revert to stock firmware by following these steps:

  • Rename downloaded file to miwifi.bin
  • Put miwifi.bin into a USB flash drive (must be FAT/FAT32)
  • Plug said USB drive to router's usb port
  • Unplug router's power
  • Press reset button and then re-plug the power
  • Keep pressing reset button until the orange status LED starts blinking
  • wait until the LED turns blue

Factory firmware

The factory firmware shipped with the Xiaomi MiWiFi is a highly modified OpenWrt 12.09 Attitude Adjustment (according to /etc/opkg.conf) with a completely different (i.e. non-LuCi) web interface and proprietary drivers like Tuxera NTFS.

Bootloader

The router comes with a standard U-boot bootloader, but it is not accessible (console write is disabled), and immediately boots another bootloader named "Ralink U-boot" (console write is as well disabled).

The "Ralink U-boot" allows flashing the [factory] firmware to the device using a USB stick when the reset button is pressed on power-up.

Once root SSH access is gained, factory U-boot can be overwritten with a fully-functional one (e.g. from a WRTNode).

mtd partitioning

Original boards

root@XiaoQiang:/tmp# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 01000000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 00c80000 00010000 "OS1"
mtd5: 00b26e43 00010000 "rootfs"
mtd6: 00200000 00010000 "OS2"
mtd7: 00100000 00010000 "overlay"
mtd8: 00010000 00010000 "crash"
mtd9: 00010000 00010000 "reserved"
mtd10: 00010000 00010000 "Bdata"
mtd11: 00fa0000 00010000 "firmware"

"newer" boards. (My box was labeled 2015.05)

root@XiaoQiang:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 01000000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 00c80000 00010000 "OS1"
mtd5: 00b19a3b 00010000 "rootfs"
mtd6: 00200000 00010000 "OS2"
mtd7: 00100000 00010000 "overlay"
mtd8: 00010000 00010000 "crash"
mtd9: 00010000 00010000 "reserved"
mtd10: 00010000 00010000 "Bdata"

On this "newer" device, you write the openwrt firmware to the "OS1" partition, not the "firmware" partition as the referenced guide says.

Bootlogs

U-Boot bootlog

This U-boot bootlog corresponds to the Xiaomi MiWifi Mini flashed with a U-boot from a WRTNode (console write enabled):

U-Boot 1.1.3 (Feb 15 2014 - 19:45:10) Board: Drogoo Wireless AP DRAM: 64 MB relocate_code Pointer at: 83fb4000 enable ephy clock...done. rf reg 29 = 5 SSC disabled. spi_wait_nsec: 29 spi device id: c2 20 18 c2 20 (2018c220) find flash: MX25L12805D raspi_read: from:30000 len:1000 raspi_read: from:30000 len:1000 ============================================ Drogoo UBoot Version: 4.1.2.0 -------------------------------------------- Drogoo Wireless ASIC (Port5<->None) DRAM component: 512 Mbits DDR, width 16 DRAM bus: 16 bit Total memory: 64 MBytes Flash component: SPI Flash Date:Feb 15 2014 Time:19:45:10 ============================================ icache: sets:512, ways:4, linesz:32 ,total:65536 dcache: sets:256, ways:4, linesz:32 ,total:32768 ##### The CPU freq = 580 MHZ #### estimate memory size =64 Mbytes 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 3: System Boot system code via Flash. ## Booting image at bc050000 ... raspi_read: from:50000 len:40 Image Name: MIPS OpenWrt Linux-3.14.28 Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1107728 Bytes = 1.1 MB Load Address: 80000000 Entry Point: 80000000 raspi_read: from:50040 len:10e710 Verifying Checksum ... OK Uncompressing Kernel Image ...


Xiaomi bootlog

Original firmware boot log (miwifi_r1cm_firmware_ae50f_2.9.9)

[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.36 (jenkins@JenkinsServer) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu Dec 31 17:23:59 CST 2015 [ 0.000000] [ 0.000000] The CPU feqenuce set to 580 MHz [ 0.000000] PCIE: bypass PCIe DLL. [ 0.000000] PCIE: Elastic buffer control: Addr:0x68 -> 0xB4 [ 0.000000] disable all power about PCIe [ 0.000000] CPU revision is: 00019650 (MIPS 24Kc) [ 0.000000] Software DMA cache coherency [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] User-defined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] Zone PFN ranges: [ 0.000000] Normal 0x00000000 -> 0x00008000 [ 0.000000] Movable zone start PFN for each node [ 0.000000] early_node_map[1] active PFN ranges [ 0.000000] 0: 0x00000000 -> 0x00008000 [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] free_area_init_node: node 0, pgdat 80418ad0, node_mem_map 81000000 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32512 pages, LIFO batch:7 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS1,115200n8 root=/dev/mtdblock5 uart_en=0 factory_mode=0 mem=128m [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Primary instruction cache 64kB, VIPT, , 4-waylinesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] Writing ErrCtl register=00077ec0 [ 0.000000] Readback ErrCtl register=00077ec0 [ 0.000000] allocated 655360 bytes of page_cgroup [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups [ 0.000000] Memory: 124640k/131072k available (3182k kernel code, 6432k reserved, 1017k data, 168k init, 0k highmem) [ 0.000000] SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:128 [ 0.000000] console [ttyS1] enabled [ 0.010000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216) [ 0.220000] pid_max: default: 32768 minimum: 301 [ 0.220000] Mount-cache hash table entries: 512 [ 0.220000] Initializing cgroup subsys cpuacct [ 0.230000] Initializing cgroup subsys memory [ 0.230000] Initializing cgroup subsys net_cls [ 0.240000] NET: Registered protocol family 16 [ 0.240000] RALINK_GPIOMODE = 1a131c [ 0.240000] RALINK_GPIOMODE = 18131c [ 0.440000] PPLL_CFG1=0xe5c000 [ 0.450000] MT7620 PPLL lock [ 0.450000] PPLL_DRV =0x80080504 [ 0.650000] Deassert the PCIE0 RESET. [ 0.650000] start PCIe register access [ 1.150000] RALINK_RSTCTRL = 2400000 [ 1.160000] RALINK_CLKCFG1 = 75afffc0 [ 1.160000] [ 1.160000] *************** MT7620 PCIe RC mode ************* [ 1.660000] PCIE0 enabled [ 1.670000] init_rt2880pci done [ 1.670000] bio: create slab <bio-0> at 0 [ 1.680000] SCSI subsystem initialized [ 1.680000] usbcore: registered new interface driver usbfs [ 1.680000] usbcore: registered new interface driver hub [ 1.690000] usbcore: registered new device driver usb [ 1.690000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x7fffffff] [ 1.690000] pci 0000:00:00.0: reg 14: [mem 0x20200000-0x2020ffff] [ 1.690000] pci 0000:00:00.0: supports D1 [ 1.690000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot [ 1.690000] pci 0000:00:00.0: PME# disabled [ 1.690000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x000fffff 64bit] [ 1.690000] pci 0000:01:00.0: reg 30: [mem 0x00000000-0x0000ffff pref] [ 1.690000] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold [ 1.690000] pci 0000:01:00.0: PME# disabled [ 1.690000] pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000) [ 1.700000] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff] [ 1.700000] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref] [ 1.710000] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff] [ 1.710000] pci 0000:00:00.0: BAR 1: set to [mem 0x20200000-0x2020ffff] (PCI address [0x20200000-0x2020ffff] [ 1.720000] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit] [ 1.720000] pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x200fffff 64bit] (PCI address [0x20000000-0x200fffff] [ 1.730000] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref] [ 1.730000] pci 0000:00:00.0: PCI bridge to [bus 01-01] [ 1.740000] pci 0000:00:00.0: bridge window [io disabled] [ 1.740000] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff] [ 1.750000] pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref] [ 1.750000] PCI: Setting latency timer of device 0000:00:00.0 to 64 [ 1.750000] BAR0 at slot 0 = 0 [ 1.760000] bus=0x0, slot = 0x0 [ 1.760000] res[0]->start = 0 [ 1.760000] res[0]->end = 0 [ 1.760000] res[1]->start = 20200000 [ 1.770000] res[1]->end = 2020ffff [ 1.770000] res[2]->start = 0 [ 1.770000] res[2]->end = 0 [ 1.770000] res[3]->start = 0 [ 1.780000] res[3]->end = 0 [ 1.780000] res[4]->start = 0 [ 1.780000] res[4]->end = 0 [ 1.780000] res[5]->start = 0 [ 1.790000] res[5]->end = 0 [ 1.790000] bus=0x1, slot = 0x0 [ 1.790000] res[0]->start = 20000000 [ 1.790000] res[0]->end = 200fffff [ 1.800000] res[1]->start = 0 [ 1.800000] res[1]->end = 0 [ 1.800000] res[2]->start = 0 [ 1.800000] res[2]->end = 0 [ 1.810000] res[3]->start = 0 [ 1.810000] res[3]->end = 0 [ 1.810000] res[4]->start = 0 [ 1.810000] res[4]->end = 0 [ 1.820000] res[5]->start = 0 [ 1.820000] res[5]->end = 0 [ 1.820000] Switching to clocksource MIPS [ 1.830000] NET: Registered protocol family 2 [ 1.830000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 1.840000] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 1.850000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 1.850000] TCP: Hash tables configured (established 4096 bind 4096) [ 1.860000] TCP reno registered [ 1.860000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 1.870000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 1.870000] NET: Registered protocol family 1 [ 1.880000] PCI: CLS 80 bytes, default 32 [ 1.880000] RT3xxx EHCI/OHCI init. [ 1.890000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.890000] JFFS2 version 2.2 (NAND) (SUMMARY) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 1.900000] msgmni has been set to 243 [ 1.910000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) [ 1.920000] io scheduler noop registered (default) [ 1.920000] RALINK_REG_PIO7140DATA b0000670 = fffe0 [ 2.030000] RALINK_REG_PIO7140DATA b0000670 = 20fffe0 [ 2.030000] Ralink gpio driver initialized [ 2.040000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 2.040000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A [ 2.050000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A [ 2.060000] init reset module! [ 2.070000] brd: module loaded [ 2.070000] deice id : ef 40 18 0 0 (40180000) [ 2.070000] W25Q128BV(ef 40180000) (16384 Kbytes) [ 2.080000] mtd .name = raspi, .size = 0x01000000 (0M) .erasesize = 0x00000010 (0K) .numeraseregions = 65536 [ 2.090000] Creating 10 MTD partitions on "raspi": [ 2.090000] 0x000000000000-0x000001000000 : "ALL" [ 2.100000] 0x000000000000-0x000000030000 : "Bootloader" [ 2.110000] 0x000000030000-0x000000040000 : "Config" [ 2.110000] 0x000000040000-0x000000050000 : "Factory" [ 2.120000] 0x000000050000-0x000000cd0000 : "OS1" [ 2.120000] mtd: try split OS1 partition [ 2.130000] mtd: split_firmware [ 2.130000] mtd: firmware_partition->size 0xc80000 [ 2.130000] mtd: firmware_partition->offset 0x50000 [ 2.140000] mtd: uimage_len 1499544 [ 2.140000] mtd: rootfs_partition->size 0xb11e68 [ 2.150000] mtd: rootfs_partition->offset 0x1c0000 [ 2.150000] mtd: partition "rootfs" created automatically, ofs=1C0000, len=B11E68 [ 2.160000] 0x0000001c0000-0x000000cd1e68 : "rootfs" [ 2.170000] mtd: rootfs_len 11272192 [ 2.170000] 0x000000cd0000-0x000000ed0000 : "OS2" [ 2.180000] 0x000000ed0000-0x000000fd0000 : "overlay" [ 2.180000] 0x000000fd0000-0x000000fe0000 : "crash" [ 2.190000] 0x000000fe0000-0x000000ff0000 : "reserved" [ 2.190000] 0x000000ff0000-0x000001000000 : "Bdata" [ 2.200000] rdm_major = 253 [ 2.200000] SMACCR1 -- : 0x00006409 [ 2.210000] SMACCR0 -- : 0x807223e9 [ 2.210000] Ralink APSoC Ethernet Driver Initilization. v3.0 256 rx/tx descriptors allocated, mtu = 1500! [ 2.220000] SMACCR1 -- : 0x00006409 [ 2.220000] SMACCR0 -- : 0x807223e9 [ 2.230000] PROC INIT OK! [ 2.230000] PPP generic driver version 2.4.2 [ 2.240000] PPP MPPE Compression module registered [ 2.240000] NET: Registered protocol family 24 [ 2.240000] PPTP driver version 0.8.5 [ 2.250000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.380000] rt3xxx-ehci rt3xxx-ehci: Ralink EHCI Host Controller [ 2.380000] rt3xxx-ehci rt3xxx-ehci: new USB bus registered, assigned bus number 1 [ 2.420000] rt3xxx-ehci rt3xxx-ehci: irq 18, io mem 0x101c0000 [ 2.440000] rt3xxx-ehci rt3xxx-ehci: USB 0.0 started, EHCI 1.00 [ 2.440000] hub 1-0:1.0: USB hub found [ 2.450000] hub 1-0:1.0: 1 port detected [ 2.450000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 2.480000] rt3xxx-ohci rt3xxx-ohci: RT3xxx OHCI Controller [ 2.480000] rt3xxx-ohci rt3xxx-ohci: new USB bus registered, assigned bus number 2 [ 2.490000] rt3xxx-ohci rt3xxx-ohci: irq 18, io mem 0x101c1000 [ 2.560000] hub 2-0:1.0: USB hub found [ 2.560000] hub 2-0:1.0: 1 port detected [ 2.570000] usbcore: registered new interface driver cdc_acm [ 2.570000] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters [ 2.580000] Initializing USB Mass Storage driver... [ 2.590000] usbcore: registered new interface driver usb-storage [ 2.590000] USB Mass Storage support registered. [ 2.600000] usbcore: registered new interface driver usbserial [ 2.600000] USB Serial support registered for generic [ 2.610000] usbcore: registered new interface driver usbserial_generic [ 2.620000] usbserial: USB Serial Driver core [ 2.620000] USB Serial support registered for pl2303 [ 2.630000] usbcore: registered new interface driver pl2303 [ 2.630000] pl2303: Prolific PL2303 USB to serial adaptor driver [ 2.640000] USB Serial support registered for TI USB 3410 1 port adapter [ 2.650000] USB Serial support registered for TI USB 5052 2 port adapter [ 2.650000] usbcore: registered new interface driver ti_usb_3410_5052 [ 2.660000] ti_usb_3410_5052: v0.10:TI USB 3410/5052 Serial Driver [ 2.670000] u32 classifier [ 2.670000] input device check on [ 2.670000] Actions configured [ 2.680000] Netfilter messages via NETLINK v0.30 with ipset netlink.patch. [ 2.680000] nf_conntrack version 0.5.0 (1947 buckets, 7788 max) [ 2.690000] xt_time: kernel timezone is -0000 [ 2.690000] GRE over IPv4 demultiplexor driver [ 2.700000] ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone [ 2.710000] TCP cubic registered [ 2.710000] NET: Registered protocol family 10 [ 2.720000] NET: Registered protocol family 17 [ 2.720000] L2TP core driver, V2.0 [ 2.720000] PPPoL2TP kernel driver, V2.0 [ 2.730000] L2TP netlink interface [ 2.730000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> [ 2.740000] All bugs added by David S. Miller <davem@redhat.com> [ 2.760000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5. [ 2.760000] Freeing unused kernel memory: 168k freed [ 4.490000] Raeth v3.0 (Tasklet,SkbRecycle) [ 4.490000] [ 4.490000] phy_tx_ring = 0x07f4e000, tx_ring = 0xa7f4e000 [ 4.490000] [ 4.490000] phy_rx_ring0 = 0x07fd8000, rx_ring0 = 0xa7fd8000 [ 4.490000] SMACCR1 -- : 0x00006409 [ 4.490000] SMACCR0 -- : 0x807223e9 [ 4.520000] CDMA_CSG_CFG = 81000000 [ 4.520000] GDMA1_FWD_CFG = 20710000 [ 4.870000] JFFS2 notice: (115) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 5.760000] ra2880stop()...Done [ 5.780000] Free TX/RX Ring Memory! [ 8.840000] tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel. [ 8.850000] Disabling lock debugging due to kernel taint [ 8.890000] Tuxera NTFS driver 3015.1.29 [Flags: R/W MODULE]. [ 9.070000] Tuxera exFAT driver version 3014.9.8 [Flags: R/W MODULE]. [ 9.240000] Tuxera FAT 12/16/32 driver version 3014.1.24 [Flags: R/W MODULE]. [ 9.380000] tun: Universal TUN/TAP device driver, 1.6 [ 9.390000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 9.410000] Mirror/redirect action on [ 9.730000] GRE over IPv4 tunneling driver [ 10.140000] ipt: xt_cgroup_MARK installed ok. [ 10.270000] ip_set: protocol 6 [ 10.680000] sstack_init [ 12.510000] <-- RTMPAllocTxRxRingMemory, Status=0 [ 12.520000] <-- RTMPAllocAdapterBlock, Status=0 [ 14.550000] PCI: Setting latency timer of device 0000:01:00.0 to 64 [ 14.560000] <-- RTMPAllocTxRxRingMemory, Status=0 [ 14.580000] <-- RTMPAllocAdapterBlock, Status=0 [ 14.580000] pAd->CSRBaseAddress =0xc0f00000, csr_addr=0xc0f00000! [ 14.590000] <dbg> MAC_CSR0=1986146304, RtmpChipOpsHook [ 14.590000] <dbg> dev idx = 1! [ 14.600000] <dbg> get_dev_config_idx pAd->MACVersion = 76623000, pAd->ChipID = 76120044 [ 18.080000] Raeth v3.0 (Tasklet,SkbRecycle) [ 18.090000] [ 18.090000] phy_tx_ring = 0x0746c000, tx_ring = 0xa746c000 [ 18.090000] [ 18.090000] phy_rx_ring0 = 0x07f5c000, rx_ring0 = 0xa7f5c000 [ 18.090000] SMACCR1 -- : 0x00006409 [ 18.090000] SMACCR0 -- : 0x807223e9 [ 18.110000] CDMA_CSG_CFG = 81000000 [ 18.110000] GDMA1_FWD_CFG = 20710000 [ 18.160000] device eth0.1 entered promiscuous mode [ 18.160000] device eth0 entered promiscuous mode [ 18.170000] br-lan: port 1(eth0.1) entering learning state [ 18.180000] br-lan: port 1(eth0.1) entering learning state [ 18.190000] ifb0 is opened now. [ 19.740000] <dbg> MAC_CSR0=1986146304, rtmp_asic_top_init [ 19.820000] Set_Bsd_Proc 7099 Bsd 0 [ 20.180000] br-lan: port 1(eth0.1) entering forwarding state [ 23.930000] <==== rt28xx_init, Status=0 [ 29.280000] device wl0 entered promiscuous mode [ 29.290000] br-lan: port 2(wl0) entering learning state [ 29.290000] br-lan: port 2(wl0) entering learning state [ 30.010000] Set_Bsd_Proc 6771 Bsd 0 [ 31.290000] br-lan: port 2(wl0) entering forwarding state [ 32.580000] <==== rt28xx_init, Status=0 [ 32.590000] 0x1300 = 00064320 [ 35.800000] device wl1 entered promiscuous mode [ 35.800000] br-lan: port 3(wl1) entering learning state [ 35.810000] br-lan: port 3(wl1) entering learning state [ 37.810000] br-lan: port 3(wl1) entering forwarding state [ 53.000000] proxy_device_init, get br-lan ifindex=8 [ 53.000000] tproxy_device_event, br-lan UP ifindex=8 [ 53.000000] tcpproxy_init, succeed! [ 55.810000] Enabling Ralink HW NAT Module ... [ 55.820000] Ralink HW NAT Module Enabled! [ 63.080000] xqfp: forward hooks init success! [ 63.080000] xqfp:pre hooks init success! [ 63.090000] xqfp:extend init success! [ 63.090000] xqfp_mt_init init ok! [ 63.090000] xqfp: module init success!


OpenWrt bootlog

This bootlog corresponds to OpenWrt is a log using OpenWrt CHAOS CALMER (Bleeding Edge, r44070):

Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80000000) ... ## Giving linux memsize in MB, 64 Starting kernel ... [ 0.000000] Linux version 3.14.28 (linorris@pepino) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44070) ) #1 Wed Jan 21 11:22:50 CET 2015 [ 0.000000] Board has DDR2 [ 0.000000] Analog PMU set to hw control [ 0.000000] Digital PMU set to hw control [ 0.000000] SoC Type: Ralink MT7620A ver:2 eco:6 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc) [ 0.000000] MIPS: machine is Xiaomi Mini [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x03ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x03ffffff] [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Writing ErrCtl register=0004600d [ 0.000000] Readback ErrCtl register=0004600d [ 0.000000] Memory: 61500K/65536K available (2404K kernel code, 126K rwdata, 488K rodata, 172K init, 184K bss, 4036K reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:256 [ 0.000000] CPU Clock: 580MHz [ 0.000000] systick: running - mult: 214748, shift: 32 [ 0.000000] genirq: Flags mismatch irq 7. 00014600 (timer) vs. 00014600 (systick) [ 0.000000] Calibrating delay loop... 766.77 BogoMIPS (lpj=3833856) [ 0.040000] pid_max: default: 32768 minimum: 301 [ 0.040000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.040000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.050000] pinctrl core: initialized pinctrl subsystem [ 0.050000] NET: Registered protocol family 16 [ 0.380000] PCI host bridge /pcie@10140000 ranges: [ 0.390000] MEM 0x0000000020000000..0x000000002fffffff [ 0.390000] IO 0x0000000010160000..0x000000001016ffff [ 0.390000] bio: create slab <bio-0> at 0 [ 0.400000] rt2880_gpio 10000600.gpio: registering 24 gpios [ 0.400000] rt2880_gpio 10000600.gpio: registering 24 irq handlers [ 0.400000] rt2880_gpio 10000660.gpio: registering 32 gpios [ 0.400000] rt2880_gpio 10000660.gpio: registering 32 irq handlers [ 0.410000] rt2880_gpio 10000688.gpio: registering 1 gpios [ 0.410000] rt2880_gpio 10000688.gpio: registering 1 irq handlers [ 0.410000] PCI host bridge to bus 0000:00 [ 0.410000] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff] [ 0.420000] pci_bus 0000:00: root bus resource [io 0x10160000-0x1016ffff] [ 0.420000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.420000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.430000] pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000) [ 0.430000] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff] [ 0.430000] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref] [ 0.440000] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff] [ 0.440000] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit] [ 0.440000] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref] [ 0.450000] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.450000] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff] [ 0.450000] pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref] [ 0.450000] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0 [ 0.450000] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4 [ 0.450000] Switched to clocksource systick [ 0.450000] NET: Registered protocol family 2 [ 0.450000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.450000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.450000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.450000] TCP: reno registered [ 0.450000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.450000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.450000] NET: Registered protocol family 1 [ 0.450000] rt-timer 10000100.timer: maximum frequency is 2441Hz [ 0.450000] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.450000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.450000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.450000] msgmni has been set to 120 [ 0.450000] io scheduler noop registered [ 0.450000] io scheduler deadline registered (default) [ 0.450000] gpio-export gpio_export.6: 1 gpio(s) exported [ 0.450000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.450000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A [ 0.450000] console [ttyS0] enabled [ 0.450000] console [ttyS0] enabled [ 0.450000] bootconsole [early0] disabled [ 0.450000] bootconsole [early0] disabled [ 0.450000] m25p80 spi32766.0: found mx25l12805d, expected w25q128 [ 0.450000] m25p80 spi32766.0: mx25l12805d (16384 Kbytes) [ 0.450000] 7 ofpart partitions found on MTD device spi32766.0 [ 0.450000] Creating 7 MTD partitions on "spi32766.0": [ 0.450000] 0x000000000000-0x000000030000 : "u-boot" [ 0.450000] 0x000000030000-0x000000040000 : "u-boot-env" [ 0.450000] 0x000000040000-0x000000050000 : "factory" [ 0.450000] 0x000000050000-0x000000fd0000 : "firmware" [ 0.450000] 2 uimage-fw partitions found on MTD device firmware [ 0.450000] 0x000000050000-0x00000015e750 : "kernel" [ 0.450000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.450000] 0x00000015e750-0x000000fd0000 : "rootfs" [ 0.450000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.750000] mtd: device 5 (rootfs) set to be root filesystem [ 0.750000] 1 squashfs-split partitions found on MTD device rootfs [ 0.750000] 0x000000500000-0x000000fd0000 : "rootfs_data" [ 0.770000] 0x000000fd0000-0x000000fe0000 : "crash" [ 0.770000] 0x000000fe0000-0x000000ff0000 : "reserved" [ 0.770000] 0x000000ff0000-0x000001000000 : "Bdata" [ 0.790000] gsw: setting port4 to ephy mode [ 0.790000] ralink_soc_eth 10100000.ethernet (unregistered net_device): port 0 link up (100Mbps/Full duplex) [ 0.810000] libphy: mdio: probed [ 0.810000] port: invalid port id 4 [ 0.810000] ralink_soc_eth 10100000.ethernet: connected port 5 to PHY at mdio-bus:05 [uid=0000ffff, driver=Generic PHY] [ 0.820000] ralink_soc_eth 10100000.ethernet: loaded mt7620 driver [ 0.830000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5 [ 0.840000] rt3xxx-usbphy usbphy.3: loaded [ 0.840000] rt2880_wdt 10000120.watchdog: Initialized [ 0.850000] TCP: cubic registered [ 0.850000] NET: Registered protocol family 17 [ 0.860000] 8021q: 802.1Q VLAN Support v1.8 [ 0.880000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5. [ 0.890000] Freeing unused kernel memory: 172K (802f5000 - 80320000) procd: Console is alive procd: - watchdog - [ 7.550000] usbcore: registered new interface driver usbfs [ 7.560000] usbcore: registered new interface driver hub [ 7.570000] usbcore: registered new device driver usb [ 7.610000] SCSI subsystem initialized [ 7.620000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 7.630000] ehci-platform: EHCI generic platform driver [ 8.030000] rt3xxx-usbphy usbphy.3: remote usb device wakeup disabled [ 8.040000] rt3xxx-usbphy usbphy.3: UTMI 16bit 30MHz [ 8.040000] ehci-platform 101c0000.ehci: EHCI Host Controller [ 8.050000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1 [ 8.060000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000 [ 8.080000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00 [ 8.090000] hub 1-0:1.0: USB hub found [ 8.090000] hub 1-0:1.0: 1 port detected [ 8.110000] MTK MSDC device init. [ 8.150000] mtk-sd: MediaTek MT6575 MSDC Driver [ 8.160000] sdhci: Secure Digital Host Controller Interface driver [ 8.160000] sdhci: Copyright(c) Pierre Ossman [ 8.170000] sdhci-pltfm: SDHCI platform and OF driver helper [ 8.180000] usbcore: registered new interface driver usb-storage [ 8.190000] msdc-1 -> set mclk to 0!!! <- msdc_set_mclk() : L<641> PID<kworker/u2:0><0x6> [ 8.200000] msdc-1 -> set mclk to 0!!! <- msdc_set_mclk() : L<641> PID<kworker/u2:0><0x6> [ 8.260000] msdc-1 -> set mclk to 0!!! <- msdc_set_mclk() : L<641> PID<kworker/u2:0><0x6> [ 8.280000] msdc-1 -> set mclk to 0!!! <- msdc_set_mclk() : L<641> PID<kworker/u2:0><0x6> procd: - preinit - [ 8.730000] msdc-1 -> set mclk to 0!!! <- msdc_set_mclk() : L<641> PID<kworker/u2:0><0x6> [ 9.460000] 8021q: adding VLAN 0 to HW filter on device eth0 [ 9.500000] random: mktemp urandom read with 95 bits of entropy available Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 11.240000] ralink_soc_eth 10100000.ethernet eth0: port 5 link up (10Mbps/Half duplex) [ 13.260000] random: nonblocking pool is initialized [ 14.450000] jffs2: notice: (361) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 9 of xref (0 dead, 0 orphan) found. block: extroot: no root or overlay mount defined jffs2 is ready No jffs2 marker was found [ 14.760000] jffs2: notice: (358) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 9 of xref (0 dead, 0 orphan) found. switching to overlay procd: - early - procd: - watchdog - [ 15.170000] ralink_soc_eth 10100000.ethernet eth0: port 5 link down procd: - ubus - Failed to connect to ubus procd: - init - Please press Enter to activate this console. [ 17.460000] NET: Registered protocol family 10 [ 17.460000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 17.460000] Loading modules backported from Linux version master-2014-11-04-0-gf3660a2 [ 17.460000] Backport generated by backports.git backports-20141023-2-g4ff890b [ 17.460000] cfg80211: Calling CRDA to update world regulatory domain [ 17.460000] cfg80211: World regulatory domain updated: [ 17.460000] cfg80211: DFS Master region: unset [ 17.460000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 17.460000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 17.460000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 17.460000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 17.460000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 17.460000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s) [ 17.460000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 17.460000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 17.790000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 17.830000] ASIC revision: 76120044 [ 17.830000] mt76pci 0000:01:00.0: Invalid MAC address, using random address e2:ea:08:a2:5d:0e [ 17.870000] ROM patch already applied [ 17.950000] Firmware Version: 0.0.00 [ 17.960000] Build: 1 [ 17.970000] Build Time: 201406241830____ [ 17.990000] Firmware running! [ 18.000000] pci device driver attached [ 18.060000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 18.080000] nf_conntrack version 0.5.0 (963 buckets, 3852 max) [ 18.130000] xt_time: kernel timezone is -0000 [ 18.150000] usbcore: registered new interface driver ath9k_htc [ 18.170000] PPP generic driver version 2.4.2 [ 18.190000] NET: Registered protocol family 24 [ 18.210000] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected [ 18.210000] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected [ 18.270000] usbcore: registered new interface driver rt2800usb [ 25.830000] 8021q: adding VLAN 0 to HW filter on device eth0 [ 25.870000] device eth0.1 entered promiscuous mode [ 25.870000] device eth0 entered promiscuous mode [ 25.880000] br-lan: port 1(eth0.1) entered forwarding state [ 25.890000] br-lan: port 1(eth0.1) entered forwarding state [ 26.980000] ralink_soc_eth 10100000.ethernet eth0: port 5 link up (10Mbps/Half duplex) [ 27.840000] cfg80211: Calling CRDA for country: US [ 27.860000] cfg80211: Regulatory domain changed to country: US [ 27.860000] cfg80211: DFS Master region: FCC [ 27.880000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 27.880000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A) [ 27.890000] br-lan: port 1(eth0.1) entered forwarding state [ 27.900000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 1700 mBm), (N/A) [ 27.910000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s) [ 27.920000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A) [ 27.920000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A) procd: - init complete - [ 30.540000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 30.560000] wlan0: Created IBSS using preconfigured BSSID 02:ca:ff:ee:ba:be [ 30.570000] wlan0: Creating new IBSS network, BSSID 02:ca:ff:ee:ba:be [ 31.030000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready BusyBox v1.22.1 (2015-01-21 11:19:58 CET) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- CHAOS CALMER (Bleeding Edge, r44070) ----------------------------------------------------- * 1 1/2 oz Gin Shake with a glassful * 1/4 oz Triple Sec of broken ice and pour * 3/4 oz Lime Juice unstrained into a goblet. * 1 1/2 oz Orange Juice * 1 tsp. Grenadine Syrup ----------------------------------------------------- root@OpenWrt:/#


Led colors

The Xiaomi MiWifi has a single led that can produce a number of different colors. Different colors are configured by using different GPIO pins, as defined in http://git.openwrt.org/?p=openwrt.git;a=blob_plain;f=target/linux/ramips/dts/MIWIFI-MINI.dts;hb=HEAD

gpio-leds {
                compatible = "gpio-leds";

                purple {
                        label = "miwifi-mini:purple:status";
                        gpios = <&gpio1 0 1>;
                };

                yellow {
                        label = "miwifi-mini:yellow:status";
                        gpios = <&gpio1 2 1>;
                };

                red {
                        label = "miwifi-mini:red:status";
                        gpios = <&gpio1 5 1>;
                };
        };

The above is an edited version of the file from trunk ( per 12/16/2015 ); the combination marked as the color "blue" is really more of a purple color. The led can produce a nice bright blue color ( as demonstrated by the stock firmware ), however the right combination of pins is yet to be found.

Tags

toh/xiaomi/mini.txt · Last modified: 2016/08/11 09:03 by davidacampbell