This is a mirror of discontinued 'WikiDevi'. Enjoy!

Xiaomi Mi Router 4C (R4CM)

From DeviWiki (ex WikiDevi)
Jump to navigation Jump to search

Xiaomi Mi Router 4C 1.3
Availability: 2020

EAN: 6970244525529 (UPC DB, On eBay)
Country of manuf.: China
Serial Num Prefix: 25091/XXXXXXXXX

Amazon image

ASIN
B085FVKSMC (13px, On Amazon, On CCC)

Type: wireless router

FCC ID: 2AFZZR4CM

Power: 5 VDC, 1 A
Connector type: barrel

CPU1: Mediatek MT7628DAN (575 MHz)
FLA1: 16 MiB16,777,216 B <br />131,072 Kib <br />16,384 KiB <br />128 Mib <br />0.0156 GiB <br /> (GigaDevice GD25Q127CSIG)
RAM1: 64 MiB67,108,864 B <br />524,288 Kib <br />65,536 KiB <br />512 Mib <br />0.0625 GiB <br /> (MediaTek MT7628DAN)

Expansion IFs: none specified
Serial: 4-pad header (115200,8,N,1)

WI1 chip1: Mediatek MT7628DAN
WI1 802dot11 protocols: bgn
WI1 MIMO config: 2x2:?
WI1 antenna connector: soldered

ETH chip1: Mediatek MT7628DAN
Switch: Mediatek MT7628DAN
LAN speed: 100M
LAN ports: 2
WAN speed: 100M
WAN ports: 1

bgn

Stock bootloader: U-Boot:1.1.3 Ralink UBoot 4.3.0.0

Stock FW OS: Linux 3.10.14 OpenWrt-deriv

Third party firmware supported: OpenWrt

Default SSID: Xiaomi_XXXX (14 addl. devices)
Default IP address: 192.168.31.1
the IP 192.168.31.1 is used by 15 additional devices
of which 14 are Xiaomi devices

802dot11 OUI: 28:D1:27
Ethernet OUI: 28:D1:27

For a list of all currently documented MediaTek chipsets with specifications, see MediaTek.


SKU: DVB4231GL
PCB: MTO-WR300N-X-V1.3

Images


OEM Boot log (firmware version 3.0.16)

[04010D09][04010D08][88890000][24254849][00242548]

DU Setting Cal Done



U-Boot 1.1.3 (Feb 18 2020 - 07:05:15)


Board: Ralink APSoC DRAM:  64 MB

Power on memory test. Memory size= 64 MB...OK!

relocate_code Pointer at: 83fb0000

RT2880_RSTSTAT_REG 0xc0030000

***************************

Board power on Occurred

***************************

flash manufacture id: c8, device id 40 18

find flash: GD25Q128C

env is right!

============================================ 

Ralink UBoot Version: 4.3.0.0

-------------------------------------------- 

ASIC 7628_MP (Port5<->None)

DRAM component: 512 Mbits DDR, width 16

DRAM bus: 16 bit

Total memory: 64 MBytes

Flash component: SPI Flash

Date:Feb 18 2020  Time:07:05:15

============================================ 

icache: sets:512, ways:4, linesz:32 ,total:65536

dcache: sets:256, ways:4, linesz:32 ,total:32768 


 ##### The CPU freq = 575 MHZ #### 

 estimate memory size =64 Mbytes

RESET MT7628 PHY!!!!!!

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.

   9: Load Boot Loader code then write to Flash via TFTP. 


   n3: System Boot system code via Flash.

Booting System 1

Erasing SPI Flash...

raspi_erase: offs:20000 len:10000

.

Writing to SPI Flash...

.

done

## Booting image at bc160000 ...

   Image Name:   MIPS OpenWrt Linux-3.10.14

   Image Type:   MIPS Linux Kernel Image (lzma compressed)

   Data Size:    1454427 Bytes =  1.4 MB

   Load Address: 80000000

   Entry Point:  80000000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Erasing SPI Flash...

raspi_erase: offs:20000 len:10000

.

Writing to SPI Flash...

.

done

commandline uart_en=0 factory_mode=0 mem=64m root=/dev/mtdblock8

No initrd

## Transferring control to Linux (at address 80000000) ...

## Giving linux memsize in MB, 64


Starting kernel ...



LINUX started...

 THIS IS ASIC
[    0.000000] Linux version 3.10.14 (jenkins@dea0b852e3d6) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 MiWiFi-R4CM-3.0.16 Tue Feb 18 07:13:14 UTC 2020
[    0.000000] 
[    0.000000]  The CPU feqenuce set to 575 MHz
[    0.000000] 
[    0.000000]  MIPS CPU sleep mode enabled.
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    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: 04000000 @ 00000000 (usable)
[    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, 4-way, VIPT, 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=ttyS1,115200n8 uart_en=0 factory_mode=0 mem=64m root=/dev/mtdblock8
[    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=00068fb3
[    0.000000] Readback ErrCtl register=00068fb3
[    0.000000] allocated 131072 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 60424k/65536k available (3020k kernel code, 5112k reserved, 918k data, 220k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:128
[    0.000000] console [ttyS1] enabled
[    0.120000] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[    0.180000] pid_max: default: 32768 minimum: 301
[    0.180000] Mount-cache hash table entries: 512
[    0.190000] Initializing cgroup subsys memory
[    0.190000] Initializing cgroup subsys net_cls
[    0.200000] NET: Registered protocol family 16
[    0.200000] RALINK_GPIOMODE = 54054404 
[    0.210000] RALINK_GPIOMODE = 54044404 
[    0.310000] ***** Xtal 25MHz *****
[    0.310000] start PCIe register access
[    0.810000] RALINK_RSTCTRL = 2400000
[    0.820000] RALINK_CLKCFG1 = fdbfffc0
[    0.820000] 
[    0.820000] *************** MT7628 PCIe RC mode *************
[    1.320000] PCIE0 no card, disable it(RST&CLK)
[    1.350000] bio: create slab <bio-0> at 0
[    1.350000] cfg80211: Calling CRDA to update world regulatory domain
[    1.360000] Switching to clocksource Ralink Systick timer
[    1.360000] NET: Registered protocol family 2
[    1.370000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    1.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    1.380000] TCP: Hash tables configured (established 512 bind 512)
[    1.380000] TCP: reno registered
[    1.390000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.400000] NET: Registered protocol family 1
[    1.400000] Load Kernel WDG Timer Module
[    1.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.430000] jffs2: version 2.2. (ZLIB) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.440000] msgmni has been set to 118
[    1.440000] io scheduler noop registered
[    1.440000] io scheduler deadline registered (default)
[    1.450000] MIWIFI panic notifier registered
[    1.460000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.470000] serial8250: ttyS0 at MMIO 0x10000d00 (irq = 21) is a 16550A
[    1.470000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[    1.480000] led=44, on=4000, off=1, blinks,=1, reset=1, time=4000
[    1.490000] Ralink gpio driver initialized
[    1.490000] flash manufacture id: c8, device id 40 18
[    1.500000] GD25Q128C(c8 40180000) (16384 Kbytes)
[    1.500000] mtd .name = raspi, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
[    1.510000] Creating 9 MTD partitions on "raspi":
[    1.520000] 0x000000000000-0x000001000000 : "ALL"
[    1.520000] 0x000000000000-0x000000020000 : "Bootloader"
[    1.530000] 0x000000020000-0x000000030000 : "Config"
[    1.540000] 0x000000030000-0x000000040000 : "Factory"
[    1.540000] 0x000000040000-0x000000050000 : "crash"
[    1.550000] 0x000000050000-0x000000060000 : "cfg_bak"
[    1.560000] 0x000000060000-0x000000160000 : "overlay"
[    1.560000] 0x000000160000-0x000000dc0000 : "OS1"
[    1.570000] mtd: try split OS1 partition
[    1.570000] mtd: split_firmware
[    1.580000] mtd: firmware_partition->size   0xc60000
[    1.580000] mtd: firmware_partition->offset 0x160000
[    1.590000] mtd: uimage_len 1454491
[    1.590000] mtd: uimage_len 1507328
[    1.590000] mtd: rootfs_partition->size   0xaf0000
[    1.600000] mtd: rootfs_partition->offset 0x2d0000
[    1.600000] mtd: partition "rootfs" created automatically, ofs=2D0000, len=AF0000 
[    1.610000] 0x0000002d0000-0x000000dc0000 : "rootfs"
[    1.620000] 0x000000dc0000-0x000000fc0000 : "disk"
[    1.620000] PPP generic driver version 2.4.2
[    1.630000] PPP MPPE Compression module registered
[    1.630000] NET: Registered protocol family 24
[    1.640000] PPTP driver version 0.8.5
[    1.640000] rdm_major = 253
[    1.650000] GMAC1_MAC_ADRH -- : 0x000028d1
[    1.650000] GMAC1_MAC_ADRL -- : 0x27XXXXXX
[    1.650000] Ralink APSoC Ethernet Driver Initilization. v3.1  256 rx/tx descriptors allocated, mtu = 1500!
[    1.660000] GMAC1_MAC_ADRH -- : 0x000028d1
[    1.670000] GMAC1_MAC_ADRL -- : 0x27XXXXXX
[    1.670000] PROC INIT OK!
[    1.680000] zram: Created 1 device(s) ...
[    1.680000] Mirror/redirect action on
[    1.680000] u32 classifier
[    1.690000]     input device check on
[    1.690000]     Actions configured
[    1.690000] Netfilter messages via NETLINK v0.30.
[    1.700000] nfnl_acct: registering with nfnetlink.
[    1.700000] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
[    1.710000] ipip: IPv4 over IPv4 tunneling driver
[    1.720000] gre: GRE over IPv4 demultiplexor driver
[    1.720000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.730000] Type=Restricted Cone
[    1.730000] TCP: cubic registered
[    1.740000] NET: Registered protocol family 10
[    1.740000] NET: Registered protocol family 17
[    1.750000] l2tp_core: L2TP core driver, V2.0
[    1.750000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[    1.760000] l2tp_netlink: L2TP netlink interface
[    1.760000] 8021q: 802.1Q VLAN Support v1.8
[    1.780000] Failed to lock mtd Bdata
[    1.780000] Failed to lock mtd reserved0
[    1.790000] VFS: Mounted root (squashfs filesystem) readonly on device 31:8.
[    1.800000] Freeing unused kernel memory: 220K (803d9000 - 80410000)
config core 'version'
	# ROM ver
	option ROM '3.0.16'
	# channel
	option CHANNEL 'release'
	# hardware platform R1AC or R1N etc.
	option HARDWARE 'R4CM'
	# CFE ver
	option UBOOT '1.0.0'
	# Linux Kernel ver
	option LINUX '0.0.1'
	# RAMFS ver
	option RAMFS '0.0.1'
	# SQUASHFS ver
	option SQAFS '0.0.1'
	# ROOTFS ver
	option ROOTFS '0.0.1'
	#build time
	option BUILDTIME 'Tue, 18 Feb 2020 07:04:21 +0000'
	#build timestamp
	option BUILDTS '1582009461'
	#build git tag
	option GTAG 'commit 79705589f5bb81ef001f97c84ff224f9ec31d347'
Setting up swapspace version 1, size = 8384512 bytes
[    3.720000] Adding 8188k swap on /dev/zram0.  Priority:-1 extents:1 across:8188k SS
[    3.810000] Raeth v3.1 (Tasklet,SkbRecycle)
[    3.810000] 
[    3.810000] phy_tx_ring = 0x0340c000, tx_ring = 0xa340c000
[    3.820000] 
[    3.820000] phy_rx_ring0 = 0x0340d000, rx_ring0 = 0xa340d000
[    3.840000] config 7628 esw as LWLL
[    3.920000] GMAC1_MAC_ADRH -- : 0x000028d1
[    3.920000] GMAC1_MAC_ADRL -- : 0x27XXXXXX
[    3.920000] RT305x_ESW: Link Status Changed
- preinit -
Tue Feb 18 07:13:14 UTC 2020
- regular preinit -
/lib/preinit.sh: line 1: pi_indicate_led: not found
jffs2 not ready yet; using ramdisk
- init -
[    5.680000] ra2880stop()...Done
[    5.680000] Free TX/RX Ring Memory!

init started: BusyBox v1.19.4 (2020-02-18 07:02:37 UTC)

Please press Enter to activate this console. rcS S boot: INFO: rc script run time limit to 65 seconds.
[    7.510000] ip_gre: GRE over IPv4 tunneling driver
[    7.610000] xt_time: kernel timezone is +0800
[    7.670000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.980000] nf_nat_amanda: Unknown symbol nf_nat_amanda_hook (err 0)
[    8.060000] ipt: xt_cgroup_MARK installed ok.
[    8.180000] ip_set: protocol 6
[    8.290000] ipaccount: ifname [lo] event[5]
[    8.290000] ipaccount: ifname [ifb0] event[5]
[    8.300000] ipaccount: ifname [eth0] event[5]
[    8.300000] ipaccount: ifname [tunl0] event[5]
[    8.310000] ipaccount: ifname [gre0] event[5]
[    8.310000] ipaccount: ifname [gretap0] event[5]
[    8.390000] dev_redirect load success. 
[    9.530000] 
[    9.530000] 
[    9.530000] === pAd = c06bf000, size = 1759160 ===
[    9.530000] 
[    9.540000] <-- RTMPAllocTxRxRingMemory, Status=0, ErrorValue=0x
[    9.540000] <-- RTMPAllocAdapterBlock, Status=0
[    9.550000] RtmpChipOpsHook(492): Not support for HIF_MT yet!
[    9.550000] mt7628_init()-->
[    9.560000] mt7628_init(FW(8a00), HW(8a01), CHIPID(7628))
[    9.560000] e2.bin mt7628_init(1120)::(2), pChipCap->fw_len(63984)
[    9.570000] mt_bcn_buf_init(218): Not support for HIF_MT yet!
[    9.570000] <--mt7628_init()
[    9.580000] ipaccount: ifname [wl1] event[16]
[    9.580000] ipaccount: ifname [wl1] event[5]
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: INFO: loading exist /etc/config/network.
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: config interface 'loopback'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option ifname 'lo'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option proto 'static'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option ipaddr '127.0.0.1'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option netmask '255.0.0.0'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: config interface 'lan'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option ifname 'eth0.1'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option type 'bridge'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option proto 'static'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option ipaddr '192.168.31.1'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option netmask '255.255.255.0'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option ip6assign '64'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: list ip6class 'ifb'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: config interface 'wan'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option ifname 'eth0.2'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option proto 'dhcp'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: config interface 'ifb'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option ifname 'ifb0'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: config interface 'ready'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option proto 'static'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option ipaddr '169.254.29.1'
Tue Feb 18 08:13:20 CET 2020 netconfig[719]: option netmask '255.255.255.0'
[   13.470000] ipaccount: ifname [br-lan] event[16]
[   13.480000] ipaccount: ifname [br-lan] event[5]
[   13.490000] ipaccount: ifname [eth0] event[13]
[   13.490000] Raeth v3.1 (Tasklet,SkbRecycle)
[   13.500000] 
[   13.500000] phy_tx_ring = 0x036d0000, tx_ring = 0xa36d0000
[   13.500000] 
[   13.500000] phy_rx_ring0 = 0x03fbf000, rx_ring0 = 0xa3fbf000
[   13.520000] config 7628 esw as LWLL
[   13.600000] GMAC1_MAC_ADRH -- : 0x000028d1
[   13.600000] GMAC1_MAC_ADRL -- : 0x27XXXXXX
[   13.610000] RT305x_ESW: Link Status Changed
[   13.610000] ipaccount: ifname [eth0] event[1]
[   13.630000] ipaccount: ifname [eth0.1] event[16]
[   13.630000] ipaccount: ifname [eth0.1] event[5]
[   13.650000] ipaccount: ifname [eth0.1] event[13]
[   13.650000] ipaccount: ifname [eth0.1] event[1]
[   13.670000] ipaccount: ifname [eth0.1] event[20]
[   13.670000] device eth0.1 entered promiscuous mode
[   13.680000] device eth0 entered promiscuous mode
[   13.680000] ipaccount: ifname [br-lan] event[11]
[   13.680000] ipaccount: ifname [br-lan] event[8]
[   13.700000] ipaccount: ifname [br-lan] event[8]
[   13.700000] ipaccount: ifname [br-lan] event[13]
[   13.700000] br-lan: port 1(eth0.1) entered forwarding state
[   13.710000] br-lan: port 1(eth0.1) entered forwarding state
[   13.720000] ipaccount: ifname [br-lan] event[1]
[   13.730000] ipaccount: ifname [ifb0] event[13]
[   13.740000] ipaccount: ifname [ifb0] event[1]
[   13.760000] ipaccount: ifname [lo] event[13]
[   13.760000] ipaccount: ifname [lo] event[1]
[   13.770000] ipaccount: ifname [eth0.2] event[16]
[   13.770000] ipaccount: ifname [eth0.2] event[5]
[   13.800000] ipaccount: ifname [eth0.2] event[13]
[   13.800000] ipaccount: ifname [eth0.2] event[1]
[   14.490000] ipaccount: ifname [eth0.1] event[4]
[   14.490000] ipaccount: ifname [br-lan] event[4]
[   14.490000] ipaccount: ifname [eth0.2] event[4]
[   15.710000] br-lan: port 1(eth0.1) entered forwarding state
[   16.450000] ipaccount: ifname [wl1] event[13]
[   16.450000] TX_BCN DESC a3674000 size = 320
[   16.450000] RX[0] DESC a3676000 size = 2048
[   16.460000] RX[1] DESC a3677000 size = 1024
[   16.480000] E2pAccessMode=2
[   16.490000] cfg_mode=9
[   16.490000] cfg_mode=9
[   16.490000] wmode_band_equal(): Band Equal!
[   16.580000] load fw image from fw_header_image
[   16.580000] AndesMTLoadFwMethod1(2181)::pChipCap->fw_len(63984)
[   16.590000] CmdAddressLenReq:(ret = 0)
[   16.590000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.600000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.600000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.610000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.610000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.620000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.620000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.630000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.630000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.640000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.640000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.650000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.660000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.660000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.670000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.670000] AndesInitCmdMsg:cmd_type:238,ExtCmdType:0
[   16.680000] CmdFwStartReq: override = 1, address = 1048576
[   16.680000] CmdStartDLRsp: WiFI FW Download Success
[   16.810000] MtAsicDMASchedulerInit(): DMA Scheduler Mode=0(LMAC)
[   16.810000] efuse_probe: efuse = 10000002
[   16.820000] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=4
[   16.820000] RtmpEepromGetDefault::e2p_dafault=2
[   16.830000] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 2
[   16.840000] NVM is FLASH mode
[   16.840000] 1. Phy Mode = 14
[   17.010000] Country Region from e2p = ffff
[   17.010000] tssi_1_target_pwr_g_band = 22
[   17.020000] 2. Phy Mode = 14
[   17.020000] 3. Phy Mode = 14
[   17.020000] NICInitPwrPinCfg(11): Not support for HIF_MT yet!
[   17.030000] NICInitializeAsic(652): Not support rtmp_mac_sys_reset () for HIF_MT yet!
[   17.040000] mt_mac_init()-->
[   17.040000] MtAsicInitMac()-->
[   17.110000] mt7628_init_mac_cr()-->
[   17.110000] MtAsicSetMacMaxLen(1279): Set the Max RxPktLen=1024!
[   17.120000] <--mt_mac_init()
[   17.120000] 	WTBL Segment 1 info:
[   17.130000] 		MemBaseAddr/FID:0x28000/0
[   17.130000] 		EntrySize/Cnt:32/128
[   17.130000] 	WTBL Segment 2 info:
[   17.140000] 		MemBaseAddr/FID:0x40000/0
[   17.140000] 		EntrySize/Cnt:64/128
[   17.140000] 	WTBL Segment 3 info:
[   17.150000] 		MemBaseAddr/FID:0x42000/64
[   17.150000] 		EntrySize/Cnt:64/128
[   17.150000] 	WTBL Segment 4 info:
[   17.160000] 		MemBaseAddr/FID:0x44000/128
[   17.160000] 		EntrySize/Cnt:32/128
[   17.160000] AntCfgInit(2925): Not support for HIF_MT yet!
[   17.170000] MCS Set = ff ff 00 00 00
[   17.170000] MtAsicSetChBusyStat(846): Not support for HIF_MT yet!
[   21.090000] MtAsicSetRalinkBurstMode(2971): Not support for HIF_MT yet!
[   21.090000] MtAsicSetPiggyBack(783): Not support for HIF_MT yet!
[   21.120000] MtAsicSetTxPreamble(2950): Not support for HIF_MT yet!
[   21.120000] MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0xf0
[   21.130000] Main bssid = 28:d1:27:XX:XX:XX
[   21.140000] <==== rt28xx_init, Status=0
[   21.140000] ipaccount: ifname [wl2] event[16]
[   21.140000] ipaccount: ifname [wl2] event[5]
[   21.150000] ipaccount: ifname [wl3] event[16]
[   21.150000] ipaccount: ifname [wl3] event[5]
[   21.160000] ipaccount: ifname [apcli0] event[16]
[   21.160000] ipaccount: ifname [apcli0] event[5]
[   21.170000] ipaccount: ifname [apcli1] event[16]
[   21.170000] ipaccount: ifname [apcli1] event[5]
[   21.180000] !!!mt7628_xq_board=R4CM!!!
[   21.180000] ipaccount: ifname [wl1] event[1]
[   21.200000] CmdSlotTimeSet start
[   21.200000] CmdSlotTimeSet end
[   22.490000] ipaccount: ifname [wl1] event[20]
[   22.490000] device wl1 entered promiscuous mode
[   22.500000] br-lan: port 2(wl1) entered forwarding state
[   22.500000] br-lan: port 2(wl1) entered forwarding state
[   22.540000] ipaccount: ifname [wl2] event[13]
[   22.550000] ##### mbss_cr_enable, BssId = 1
[   22.550000] ipaccount: ifname [wl2] event[1]
[   24.500000] br-lan: port 2(wl1) entered forwarding state
[   28.110000] dev_redirect: add(+) dev redirect mapping: src:eth0.2->dst:ifb0
Tue Feb 18 08:13:46 CET 2020 boot_check[2740]: INFO: Wireless OK
[   37.810000] ipaccount: refresh dev ifname to [eth0 wl0 wl1 wl3] 
[   37.820000] ipaccount: landev_init_all() add dev [eth0] is_wireless: 0.
[   37.830000] ipaccount: landev_init_all() get dev [wl0] not found.
[   37.830000] ipaccount: landev_init_all() add dev [wl1] is_wireless: 1.
[   37.840000] ipaccount: landev_init_all() add dev [wl3] is_wireless: 1.
[   38.740000] dev_redirect: add(+) dev redirect mapping: src:eth0.2->dst:ifb0
[   43.600000] xqfp: forward hooks init success!
[   43.600000] xqfp:extend init success!
[   43.610000] xqfp: register_netdevice_notifier!
[   43.610000] xqfp: module V2 init success!
[   44.870000] ipaccount: landev_init_all() add dev [eth0] is_wireless: 0.
[   44.870000] ipaccount: landev_init_all() get dev [wl0] not found.
[   44.880000] ipaccount: landev_init_all() add dev [wl1] is_wireless: 1.
[   44.890000] ipaccount: landev_init_all() add dev [wl3] is_wireless: 1.
rcS S boot: INFO: rcS S boot timing 38 seconds.
Tue Feb 18 08:13:57 CET 2020 INFO: rcS S boot timing 38 seconds.
rcS S boot: system type(R4CM/2): SQUASH/3
Tue Feb 18 08:13:57 CET 2020 system type(R4CM/2): SQUASH/3
rcS S boot: ROOTFS: /dev/root on / type squashfs (ro,relatime)
Tue Feb 18 08:13:57 CET 2020 ROOTFS: /dev/root on / type squashfs (ro,relatime)
[   48.250000] led=44, on=1, off=4000, blinks,=1, reset=1, time=4000
[   48.250000] led=11, on=1, off=4000, blinks,=1, reset=1, time=4000
[   48.290000] led=44, on=1, off=4000, blinks,=1, reset=1, time=4000
[   48.330000] led=11, on=4000, off=1, blinks,=1, reset=1, time=4000
uci: Entry not found
Tue Feb 18 08:14:00 CET 2020 boot_check[4081]: Booting up finished.

OpenWrt Boot log
[04010D08][04010C0F][88880000][24244747][00242447]

DU Setting Cal Done



U-Boot 1.1.3 (Feb 18 2020 - 07:05:15)


Board: Ralink APSoC DRAM:  64 MB

Power on memory test. Memory size= 64 MB...OK!

relocate_code Pointer at: 83fb0000

RT2880_RSTSTAT_REG 0xc0030000

***************************

Board power on Occurred

***************************

flash manufacture id: c8, device id 40 18

find flash: GD25Q128C

env is right!

============================================ 

Ralink UBoot Version: 4.3.0.0

-------------------------------------------- 

ASIC 7628_MP (Port5<->None)

DRAM component: 512 Mbits DDR, width 16

DRAM bus: 16 bit

Total memory: 64 MBytes

Flash component: SPI Flash

Date:Feb 18 2020  Time:07:05:15

============================================ 

icache: sets:512, ways:4, linesz:32 ,total:65536

dcache: sets:256, ways:4, linesz:32 ,total:32768 


 ##### The CPU freq = 575 MHZ #### 

 estimate memory size =64 Mbytes

RESET MT7628 PHY!!!!!!

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.

   9: Load Boot Loader code then write to Flash via TFTP. 


   n3: System Boot system code via Flash.

Booting System 1

Erasing SPI Flash...

raspi_erase: offs:20000 len:10000

.

Writing to SPI Flash...

.

done

## Booting image at bc160000 ...

   Image Name:   MIPS OpenWrt Linux-5.4.83

   Image Type:   MIPS Linux Kernel Image (lzma compressed)

   Data Size:    2091169 Bytes =  2 MB

   Load Address: 80000000

   Entry Point:  80000000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Erasing SPI Flash...

raspi_erase: offs:20000 len:10000

.

Writing to SPI Flash...

.

done

commandline uart_en=0 factory_mode=0 mem=64m root=/dev/mtdblock8

No initrd

## Transferring control to Linux (at address 80000000) ...

## Giving linux memsize in MB, 64


Starting kernel ...


[    0.000000] Linux version 5.4.83 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15250-0cf3c5dd72)) #0 Sun Dec 20 09:36:51 2020
[    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: MediaTek MT7628AN ver:1 eco:2
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 4C
[    0.000000] Initrd not found or empty - disabling initrd
[    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] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=0006afb0
[    0.000000] Readback ErrCtl register=0006afb0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 57124K/65536K available (4979K kernel code, 205K rwdata, 1104K rodata, 1192K init, 205K bss, 8412K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] random: get_random_bytes called from start_kernel+0x32c/0x520 with crng_init=0
[    0.000000] CPU Clock: 575MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6647862422 ns
[    0.000009] sched_clock: 32 bits at 287MHz, resolution 3ns, wraps every 7469508094ns
[    0.007564] Calibrating delay loop... 382.46 BogoMIPS (lpj=764928)
[    0.041415] pid_max: default: 32768 minimum: 301
[    0.046054] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.053068] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.066074] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.075497] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.082153] pinctrl core: initialized pinctrl subsystem
[    0.090103] NET: Registered protocol family 16
[    0.125079] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.138274] clocksource: Switched to clocksource MIPS
[    0.144444] NET: Registered protocol family 2
[    0.149668] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.157789] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.165156] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.171956] TCP: Hash tables configured (established 1024 bind 1024)
[    0.178234] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.184557] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.191558] NET: Registered protocol family 1
[    0.195778] PCI: CLS 0 bytes, default 32
[    0.204169] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.218434] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.224028] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.248673] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.259022] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.264712] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.270406] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.276044] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.285007] printk: console [ttyS0] disabled
[    0.289203] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.297929] printk: console [ttyS0] enabled
[    0.297929] printk: console [ttyS0] enabled
[    0.306341] printk: bootconsole [early0] disabled
[    0.306341] printk: bootconsole [early0] disabled
[    0.317195] spi-mt7621 10000b00.spi: sys_freq: 191666666
[    0.333641] spi-nor spi0.0: gd25q128 (16384 Kbytes)
[    0.338728] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.345186] Creating 7 MTD partitions on "spi0.0":
[    0.350061] 0x000000000000-0x000000020000 : "bootloader"
[    0.356579] 0x000000020000-0x000000030000 : "config"
[    0.362862] 0x000000030000-0x000000040000 : "factory"
[    0.369125] 0x000000040000-0x000000050000 : "crash"
[    0.375222] 0x000000050000-0x000000060000 : "cfg_bak"
[    0.381469] 0x000000060000-0x000000160000 : "overlay"
[    0.387757] 0x000000160000-0x000001000000 : "firmware"
[    0.400696] 2 uimage-fw partitions found on MTD device firmware
[    0.406777] Creating 2 MTD partitions on "firmware":
[    0.411837] 0x000000000000-0x0000001fe8e1 : "kernel"
[    0.417977] 0x0000001fe8e1-0x000000ea0000 : "rootfs"
[    0.424091] mtd: device 8 (rootfs) set to be root filesystem
[    0.431975] 1 squashfs-split partitions found on MTD device rootfs
[    0.438337] 0x000000480000-0x000000ea0000 : "rootfs_data"
[    0.445687] libphy: Fixed MDIO Bus: probed
[    0.461753] rt3050-esw 10110000.esw: link changed 0x00
[    0.468915] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.479423] NET: Registered protocol family 10
[    0.488695] Segment Routing with IPv6
[    0.492607] NET: Registered protocol family 17
[    0.497205] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.510360] 8021q: 802.1Q VLAN Support v1.8
[    0.520604] VFS: Mounted root (squashfs filesystem) readonly on device 31:8.
[    0.534649] Freeing unused kernel memory: 1192K
[    0.539274] This architecture does not have kernel memory protection.
[    0.545807] Run /sbin/init as init process
[    1.142283] random: fast init done
[    1.232772] init: Console is alive
[    1.236643] init: - watchdog -
[    2.003693] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.115271] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.133205] init: - preinit -
[    3.199798] random: jshn: uninitialized urandom read (4 bytes read)
[    3.287637] random: jshn: uninitialized urandom read (4 bytes read)
[    3.481729] random: jshn: uninitialized urandom read (4 bytes read)
[    3.913424] rt3050-esw 10110000.esw: link changed 0x00
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
[    8.382903] jffs2: notice: (454) jffs2_build_xattr_subsystem: complete building xattr subsystem, 6 of xdatum (0 unchecked, 1 orphan) and 7 of xref (1 dead, 0 orphan) found.
[    8.400084] mount_root: switching to jffs2 overlay
[    8.408882] overlayfs: upper fs does not support tmpfile.
[    8.419573] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.542976] procd: - early -
[    8.546021] procd: - watchdog -
[    9.223292] procd: - watchdog -
[    9.227735] procd: - ubus -
[    9.262478] urandom_read: 3 callbacks suppressed
[    9.262488] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.281986] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.289115] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.296870] procd: - init -
Please press Enter to activate this console.
[   10.211789] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.258552] Loading modules backported from Linux version v5.8.18-0-gab435ce49bd1
[   10.266194] Backport generated by backports.git v5.8.18-1-0-ga630fd46
[   10.334515] xt_time: kernel timezone is -0000
[   10.458408] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   10.634112] urngd: v1.0.2 started.
[   10.837643] random: crng init done
[   10.841128] random: 1 urandom warning(s) missed due to ratelimiting
[   11.492462] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   11.498555] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   11.538283] mt76_wmac 10300000.wmac: firmware init done
[   11.838289] PPP generic driver version 2.4.2
[   11.851916] NET: Registered protocol family 24
[   11.890772] kmodloader: done loading kernel modules from /etc/modules.d/*
[   22.783656] br-lan: port 1(eth0.1) entered blocking state
[   22.789218] br-lan: port 1(eth0.1) entered disabled state
[   22.795131] device eth0.1 entered promiscuous mode
[   22.800055] device eth0 entered promiscuous mode
[   22.831854] br-lan: port 1(eth0.1) entered blocking state
[   22.837406] br-lan: port 1(eth0.1) entered forwarding state
[   23.806799] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.31.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r15250-0cf3c5dd72
 -----------------------------------------------------
root@OpenWrt:/# 

See also