WN-DX1167R stock -> OpenWrt(仮)

とりあえずmkimageの改造は無しで、手元で必要なuImageの改造を加えて投げ込んだのでメモ。
Z-Loaderのブート自体にはuImageのMagicは標準の 27051956 で、uImageのイメージ名は適当なもので問題ないが、メーカーファームのWebUIから投入する際はこの2つともチェックされるのか、どちらとも変更しなければイメージのチェックをパスできなかった。
uImage参考: https://mao.5ch.net/test/read.cgi/network/1520576652/672

なお、WebUIから投入した場合、ブート中のイメージとは別のもう一方のOSイメージ用パーティションに書き込まれ、ブートパーティションの指定をそちらに変更の上リブートされて書き込まれたパーティションからブートしていた。
このブートパーティションの指定は以下の様にして書き込める。書き込み先のパーティションは、/proc/mtdを参照して “persist” パーティションのmtdblockを確認しておくこと。echo内の数字は、1つ目のOSイメージを指定する場合 “01” または “1” を、2番目を指定する場合は “02” または “2” にする。

echo -ne "\x01" | dd of=/dev/mtdblock8 bs=1 count=1 seek=4 conv=notrunc

また、上記の通りファームウェアが書き込まれブートに使用されるパーティションが固定ではないためinitramfsイメージを使用したfactoryになる。投入した際に2番目のOSイメージパーティションに書き込まれそちらからブートした場合、非initramfsなファームをsysupgradeで書き込む前に1番目のOSイメージからブートするよう指定しておく必要がある。

[  942.544000] led=9, on=1, off=1, blinks,=1, reset=0, time=4000 low_trigger=0
Unlocking firmware_2 ...

Writing from /tmp/fw.bin to firmware_2 ...     
Header checksum OK.
Data checksum OK
Unlocking persist ...
### Switch to bank 2 on next boot! ###
procd: - shutdown -
[  948.224000] br-lan: port 4(ra0) entered disabled state
[  948.232000] br-lan: port 3(rai0) entered disabled state
[  948.244000] br-lan: port 2(eth1) entered disabled state
[  948.256000] br-lan: port 1(eth0) entered disabled state
[  948.264000] device eth0 left promiscuous mode
[  948.276000] br-lan: port 1(eth0) entered disabled state
[  948.284000] ra2880stop()...Done
[  948.292000] eth1: ===> VirtualIF_close
[  948.300000] Free TX/RX Ring Memory!
[  948.308000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  948.320000] device eth1 left promiscuous mode
[  948.332000] br-lan: port 2(eth1) entered disabled state
[  948.340000] eth1: ===> VirtualIF_close
[  948.348000] device ra0 left promiscuous mode
[  948.360000] br-lan: port 4(ra0) entered disabled state
[  948.368000] device rai0 left promiscuous mode
[  948.376000] br-lan: port 3(rai0) entered disabled state
[  949.700000] WifiSysClose(), wdev idx = 0
[  949.712000] WifiSysGetBssInfoState(): BssInfoIdx 0 not found!!!
[  949.724000] WifiSysUpdateBssInfoState(): BssInfoIdx 0 not found!!!
### ap ###
[  951.176000] Device Instance
[  951.184000]  WDEV 00:
                Name:rai0
[  951.188000]          Wdev(list) Idx:0
[  951.196000]           Idx:8
[  951.200000]  WDEV 01:
                Name:rai1
[  951.208000]          Wdev(list) Idx:1
[  951.212000]           Idx:9
[  951.216000]  WDEV 02:
                Name:rai2
[  951.224000]          Wdev(list) Idx:2
[  951.228000]           Idx:10
[  951.236000]  WDEV 03:
                Name:rai3
[  951.240000]          Wdev(list) Idx:3
[  951.248000]           Idx:11
[  951.252000]  WDEV 04:
                Name:ra0
[  951.260000]          Wdev(list) Idx:4
[  951.264000]           Idx:12
[  951.268000]  WDEV 05:
                Name:ra1
[  951.276000]          Wdev(list) Idx:5
[  951.284000]           Idx:13
[  951.288000]  WDEV 06:
                Name:ra2
[  951.292000]          Wdev(list) Idx:6
[  951.300000]           Idx:14
[  951.304000]  WDEV 07:
                Name:ra3
[  951.312000]          Wdev(list) Idx:7
[  951.316000]           Idx:15
[  951.320000]  WDEV 08:
                Name:apclii0
[  951.328000]          Wdev(list) Idx:8
[  951.336000]           Idx:16
[  951.340000]  WDEV 09:
                Name:apcli0
[  951.348000]          Wdev(list) Idx:9
[  951.352000]           Idx:17
[  951.356000]  WDEV 10:
[  951.360000]  WDEV 11:
[  951.368000]  WDEV 12:
[  951.372000]  WDEV 13:
[  951.376000]  WDEV 14:
[  951.380000]  WDEV 15:
[  951.384000]  WDEV 16:
[  951.388000]  WDEV 17:
[  951.396000] WifiSysClose(), wdev idx = 4
[  951.396000] WifiSysGetBssInfoState(): BssInfoIdx 1 not found!!!
[  951.396000] WifiSysUpdateBssInfoState(): BssInfoIdx 1 not found!!!
[  951.432000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[  951.444000] WifiSysClose(), wdev idx = 0
[  951.452000] WifiSysClose(), wdev idx = 1
[  951.460000] WifiSysClose(), wdev idx = 2
[  951.464000] WifiSysClose(), wdev idx = 3
[  951.500000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[  951.512000] WifiSysClose(), wdev idx = 4
[  951.520000] WifiSysClose(), wdev idx = 5
[  951.528000] WifiSysClose(), wdev idx = 6
[  951.536000] WifiSysClose(), wdev idx = 7
[  951.544000] kill LoopBackTxTask task failed!
[  951.560000] AndesRestartCheck: Current TOP_MISC2(0x7)
[  951.612000] CmdReStartDLRsp: Status Success!, Status(0)
[  951.624000] EventExtEventHandler: Unknown Ext Event(6f)
[  951.632000] AndesRestartCheck:  TOP_MISC2(1)
[  951.644000] RT28xxPciAsicRadioOff(): Not support for HIF_MT yet!
[  951.656000] RTMPDrvClose call RT28xxPciAsicRadioOff fail !!
[  951.664000] tx_kickout_fail_count = 0
[  951.672000] tx_timeout_fail_count = 0
[  951.680000] rx_receive_fail_count = 0
[  951.688000] alloc_cmd_msg = 3185
[  951.692000] free_cmd_msg = 3185
[  951.700000] cut_through_token_list_destroy(): 8632e888,8632e888
[  951.716000] cut_through_token_list_destroy(): 8632e898,8632e898
[  951.732000] FwOwn()::Set Fw Own
[  951.740000] RTMP_AllTimerListRelease: Size=0
[  951.748000] FwOwn()::Return since already in Fw Own...
[  951.760000] <---HwCtrlThread
procd: - reboot [  951.896000] Stopped WatchDog Timer.
-
[  951.908000] Restarting system.


U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87f98000

Config XHCI 40M PLL 
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 87fcb030
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 F1 80 1D 01]
Device found in MTK table, ID: 1f1, EXT_ID: 801d01
Support this Device in MTK table! 1f1 
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=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Aug  6 2018  Time:14:37:41
============================================ 
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 =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
.## Starting application at 0x81E00000 ...


Z-LOADER V1.28 | 08/06/2018 14:37:44


..Hit ESC key to stop autoboot: 1

Checking image 2...
   Image Name:   3.10(XIK.1)b7
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    5642895 Bytes =  5.4 MB
   Load Address: 80001000
   Entry Point:  80001000
.......................................................................................   Verifying Combo Checksum ... .......................................................................................## Booting image at bf700000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.111 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9824-b80243858e)) #0 SMP Wed Apr 17 15:36:46 2019
[    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 I-O DATA WN-DX1167R
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x4a4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81110000 s26192 r8192 d22960 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    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] Writing ErrCtl register=00001000
[    0.000000] Readback ErrCtl register=00001000
[    0.000000] Memory: 119764K/131072K available (4497K kernel code, 230K rwdata, 1000K rodata, 3860K init, 248K bss, 11308K 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] CPU Clock: 880MHz
[    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.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015488] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087817] pid_max: default: 32768 minimum: 301
[    0.097128] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110148] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125865] Hierarchical SRCU implementation.
[    0.135322] smp: Bringing up secondary CPUs ...
[    0.144860] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.144869] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.144880] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.145014] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204698] Synchronize counters for CPU 1: done.
[    0.268616] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.268624] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.268631] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.268708] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325524] Synchronize counters for CPU 2: done.
[    0.385686] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.385694] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.385702] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.385788] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445092] Synchronize counters for CPU 3: done.
[    0.504696] smp: Brought up 1 node, 4 CPUs
[    0.516465] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535934] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548360] pinctrl core: initialized pinctrl subsystem
[    0.559927] NET: Registered protocol family 16
[    0.577592] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.887578] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.897642] ***** Xtal 40MHz *****
[    0.904375] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.914578] Port 0 N_FTS = 1b102800
[    0.921480] Port 1 N_FTS = 1b105000
[    0.928405] Port 2 N_FTS = 1b102800
[    2.087057] PCIE0 no card, disable it(RST&CLK)
[    2.095745] PCIE2 no card, disable it(RST&CLK)
[    2.104548]  -> 20107f2
[    2.109398] PCIE1 enabled
[    2.114577] PCI host bridge /pcie@1e140000 ranges:
[    2.124105]  MEM 0x0000000060000000..0x000000006fffffff
[    2.134461]   IO 0x000000001e160000..0x000000001e16ffff
[    2.144829] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.167715] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.179008] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.190256] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.202750] PCI host bridge to bus 0000:00
[    2.210765] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.224420] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.236168] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.249643] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.266495] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.279517] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.293336] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.306817] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[    2.320308] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.334821] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.344646] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.359432] clocksource: Switched to clocksource GIC
[    2.370675] NET: Registered protocol family 2
[    2.379985] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.393721] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.406321] TCP: Hash tables configured (established 1024 bind 1024)
[    2.419053] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.430556] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.443200] NET: Registered protocol family 1
[    5.829397] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    5.840886] Crashlog allocated RAM at address 0x3f00000
[    5.851393] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    5.871370] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.882853] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.903955] random: fast init done
[    5.912889] io scheduler noop registered
[    5.920594] io scheduler deadline registered (default)
[    5.931775] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    5.945639] console [ttyS0] disabled
[    5.952691] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    5.970626] console [ttyS0] enabled
[    5.970626] console [ttyS0] enabled
[    5.984418] bootconsole [early0] disabled
[    5.984418] bootconsole [early0] disabled
[    6.000996] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    6.013896] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    6.027937] Enable NFI Clock
[    6.033683] # MTK NAND # : Use HW ECC
[    6.040994] Device found in MTK table, ID: 1f1, EXT_ID: 801d01
[    6.052607] Support this Device in MTK table! 1f1 
[    6.062329] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    6.075199] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    6.087848] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    6.097905] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    6.112993] Scanning device for bad blocks
[    6.402781] 11 fixed-partitions partitions found on MTD device MT7621-NAND
[    6.416469] Creating 11 MTD partitions on "MT7621-NAND":
[    6.427064] 0x000000000000-0x000000100000 : "Bootloader"
[    6.438719] 0x000000100000-0x000000200000 : "u-boot-env"
[    6.450391] 0x000000200000-0x000000300000 : "Factory"
[    6.461506] 0x000000300000-0x000000400000 : "SecondBoot"
[    6.473133] 0x000000400000-0x000003600000 : "firmware"
[    6.484786] 0x000003600000-0x000003700000 : "Config"
[    6.495732] 0x000003700000-0x000006900000 : "firmware_2"
[    6.507770] 0x000006900000-0x000006a00000 : "Config_2"
[    6.519064] 0x000006a00000-0x000006b00000 : "persist"
[    6.530220] 0x000006b00000-0x000006c00000 : "idmkey"
[    6.541165] 0x000006c00000-0x000007f80000 : "Backup"
[    6.552232] [mtk_nand] probe successfully!
[    6.561139] Signature matched and data read!
[    6.569641] load_fact_bbt success 1023
[    6.577863] libphy: Fixed MDIO Bus: probed
[    6.652008] libphy: mdio: probed
[    8.069445] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    8.082014] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    8.100784] NET: Registered protocol family 10
[    8.110937] Segment Routing with IPv6
[    8.118291] NET: Registered protocol family 17
[    8.127200] 8021q: 802.1Q VLAN Support v1.8
[    8.137882] hctosys: unable to open rtc device (rtc0)
[    8.162308] Freeing unused kernel memory: 3860K
[    8.171369] This architecture does not have kernel memory protection.
[    8.195375] init: Console is alive
[    8.202430] init: - watchdog -
[    8.220365] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.237385] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.259728] init: - preinit -
[    8.426327] mtk_soc_eth 1e100000.ethernet: PPE started
[    8.448840] random: procd: uninitialized urandom read (4 bytes read)
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
[    9.299905] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    9.668050] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[   11.563105] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.584512] procd: - early -
[   11.590391] procd: - watchdog -
[   12.219565] procd: - watchdog -
[   12.226120] procd: - ubus -
[   12.236341] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.289976] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.303033] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.316534] procd: - init -
Please press Enter to activate this console.
[   12.475962] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.494539] nat46: module (version 683fbd2b765506332a1af141545652bf58f03166) loaded.
[   12.514229] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.533949] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.556171] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.600620] Netfilter messages via NETLINK v0.30.
[   12.632397] xt_time: kernel timezone is -0000
[   12.648384] ctnetlink v0.93: registering with nfnetlink.
[   12.661713] PPP generic driver version 2.4.2
[   12.671586] NET: Registered protocol family 24
[   12.684076] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.773293] urandom_read: 5 callbacks suppressed
[   13.773305] random: jshn: uninitialized urandom read (4 bytes read)
[   52.550164] mtk_soc_eth 1e100000.ethernet: PPE started
[   52.569852] br-lan: port 1(eth0.1) entered blocking state
[   52.580768] br-lan: port 1(eth0.1) entered disabled state
[   52.592245] device eth0.1 entered promiscuous mode
[   52.601899] device eth0 entered promiscuous mode
[   52.615251] br-lan: port 1(eth0.1) entered blocking state
[   52.626114] br-lan: port 1(eth0.1) entered forwarding state
[   52.637820] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   53.045858] random: crng init done
[   53.550050] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+9891-163a8830b9
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# 
広告

WN-DX1167R ファームウェア書き込みメモ (Z-Loader)

Z-Loader経由でOpenWrtファームウェアを書き込んだメモ。5chユーザーのWN-AX2033GRにおける先行事例を参考にした。
ハイライトはキー入力個所

U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87f98000

Config XHCI 40M PLL 
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 87fcb030
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 F1 80 1D 01]
Device found in MTK table, ID: 1f1, EXT_ID: 801d01
Support this Device in MTK table! 1f1 
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=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Aug  6 2018  Time:14:37:41
============================================ 
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 =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
.## Starting application at 0x81E00000 ...


Z-LOADER V1.28 | 08/06/2018 14:37:44


..Hit ESC key to stop autoboot: 1
ZLB> 
ATGO              boot up the whole system
ATGU              go back to U-Boot command line
ATUR              upgrade ras image by console
ATUF              upgrade factory by console
ATNR    x,y       upgrade image by TFTP (x=type[1:ras, 2:bootloader, 3:config, 4:romd 6:factory], y=filename)
ATUX              upgrade bootloader
ATBT    x         block0 write enable (1=enable, 0=disable)
ATEN    x,(y)     set BootExtension Debug Flag (y=password)
ATSE    x         show the seed of password generator
ATWZ    a,(b,c,d) write MAC , Country code, EngDbgFlag, MAC Quantity to FLASH
ATSH              dump manufacturer related data in FLASH
ATBU              dump manufacturer related data in working buffer
ATCB              copy FLASH MRD to working buffer
ATSN    x         set serial number to flash
ATSB              save working buffer to FLASH
ATQY    x         set MAC Quantity to working buffer
ATFL    x         set EngDebugFlag to working buffer
ATCO    x         set country code to working buffer
ATSR              reset
ATRT    (x,y,z,u) RAM read/write test (x=level, y=start addr, z=end addr, u=interations)
ATRM              restore default MRD
ATBR              reset to default Romfile
ATER              erase ROM-D data
ATHV    x         set hardware version to flash
ATGP    x,y       led control
ZLB> ATNR 1,openwrt-ramips-mt7621-iodata_wn-dx1167r-squashfs-tftp-ras.bin

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!! 
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'openwrt-ramips-mt7621-iodata_wn-dx1167r-squashfs-tftp-ras.bin'.

 TIMEOUT_COUNT=10,Load address: 0x84000000
Loading: checksum bad
checksum bad
checksum bad
checksum bad
Got ARP REPLY, set server/gtwy eth addr (5c:9a:d8:e6:3f:b3)
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################Got ARP REQUEST, return our IP
#############################################
         #################################################################
         #################################################################
         #################################################################
         ##############################################
done
Bytes transferred = 6553600 (640000 hex)
LoadAddr=84000000 NetBootFileXferSize= 00640000
receive langth = 6553600

!!Upgrade File @84000000, length 6553600, type 1, offset 0x400000.  !!
ranand_erase: start:400000, len:20000 
..ranand_erase: start:420000, len:20000 
..ranand_erase: start:440000, len:20000 
..ranand_erase: start:460000, len:20000 
..ranand_erase: start:480000, len:20000 
..ranand_erase: start:4a0000, len:20000 
..ranand_erase: start:4c0000, len:20000 
..ranand_erase: start:4e0000, len:20000 
..ranand_erase: start:500000, len:20000 
..ranand_erase: start:520000, len:20000 
..ranand_erase: start:540000, len:20000 
..ranand_erase: start:560000, len:20000 
..ranand_erase: start:580000, len:20000 
..ranand_erase: start:5a0000, len:20000 
..ranand_erase: start:5c0000, len:20000 
..ranand_erase: start:5e0000, len:20000 
..ranand_erase: start:600000, len:20000 
..ranand_erase: start:620000, len:20000 
..ranand_erase: start:640000, len:20000 
..ranand_erase: start:660000, len:20000 
..ranand_erase: start:680000, len:20000 
..ranand_erase: start:6a0000, len:20000 
..ranand_erase: start:6c0000, len:20000 
..ranand_erase: start:6e0000, len:20000 
..ranand_erase: start:700000, len:20000 
..ranand_erase: start:720000, len:20000 
..ranand_erase: start:740000, len:20000 
..ranand_erase: start:760000, len:20000 
..ranand_erase: start:780000, len:20000 
..ranand_erase: start:7a0000, len:20000 
..ranand_erase: start:7c0000, len:20000 
..ranand_erase: start:7e0000, len:20000 
..ranand_erase: start:800000, len:20000 
..ranand_erase: start:820000, len:20000 
..ranand_erase: start:840000, len:20000 
..ranand_erase: start:860000, len:20000 
..ranand_erase: start:880000, len:20000 
..ranand_erase: start:8a0000, len:20000 
..ranand_erase: start:8c0000, len:20000 
..ranand_erase: start:8e0000, len:20000 
..ranand_erase: start:900000, len:20000 
..ranand_erase: start:920000, len:20000 
..ranand_erase: start:940000, len:20000 
..ranand_erase: start:960000, len:20000 
..ranand_erase: start:980000, len:20000 
..ranand_erase: start:9a0000, len:20000 
..ranand_erase: start:9c0000, len:20000 
..ranand_erase: start:9e0000, len:20000 
..ranand_erase: start:a00000, len:20000 
..ranand_erase: start:a20000, len:20000 
..Done!
ZLB> ATGO

Checking image 1...
   Image Name:   MIPS OpenWrt Linux-4.14.
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1904268 Bytes =  1.8 MB
   Load Address: 80001000
   Entry Point:  80001000
..............................   Verifying Checksum ... ## Booting image at bc400000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.111 (jenkins@tofu-z77hvub18_openwrt) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9824-b80243858e)) #0 SMP Wed Apr 10 22:14:24 2019
[    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 I-O DATA WN-DX1167R
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x4a4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81110000 s26192 r8192 d22960 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    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] Writing ErrCtl register=00041000
[    0.000000] Readback ErrCtl register=00041000
[    0.000000] Memory: 123412K/131072K available (4495K kernel code, 232K rwdata, 1000K rodata, 212K init, 248K bss, 7660K 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] CPU Clock: 880MHz
[    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.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015489] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087819] pid_max: default: 32768 minimum: 301
[    0.097130] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110152] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125872] Hierarchical SRCU implementation.
[    0.135333] smp: Bringing up secondary CPUs ...
[    0.157193] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.157203] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.157214] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.157346] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204708] Synchronize counters for CPU 1: done.
[    0.280962] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.280971] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.280978] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.281053] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325550] Synchronize counters for CPU 2: done.
[    0.398048] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.398057] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.398064] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.398161] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445120] Synchronize counters for CPU 3: done.
[    0.504727] smp: Brought up 1 node, 4 CPUs
[    0.516496] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535966] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548388] pinctrl core: initialized pinctrl subsystem
[    0.559959] NET: Registered protocol family 16
[    0.577853] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.887862] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.897927] ***** Xtal 40MHz *****
[    0.904660] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.914864] Port 0 N_FTS = 1b102800
[    0.921765] Port 1 N_FTS = 1b105000
[    0.928690] Port 2 N_FTS = 1b102800
[    2.087414] PCIE0 no card, disable it(RST&CLK)
[    2.096102] PCIE2 no card, disable it(RST&CLK)
[    2.104905]  -> 20107f2
[    2.109754] PCIE1 enabled
[    2.114934] PCI host bridge /pcie@1e140000 ranges:
[    2.124462]  MEM 0x0000000060000000..0x000000006fffffff
[    2.134818]   IO 0x000000001e160000..0x000000001e16ffff
[    2.145185] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.167904] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.179202] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.190476] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.203006] PCI host bridge to bus 0000:00
[    2.211026] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.224685] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.236430] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.249905] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.266775] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.279797] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.293616] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.307095] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[    2.320588] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.335105] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.344928] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.359781] clocksource: Switched to clocksource GIC
[    2.371091] NET: Registered protocol family 2
[    2.380381] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.394113] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.406716] TCP: Hash tables configured (established 1024 bind 1024)
[    2.419449] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.430952] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.443591] NET: Registered protocol family 1
[    2.689726] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.701085] Crashlog allocated RAM at address 0x3f00000
[    2.711776] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.731556] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.743066] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.763642] random: fast init done
[    2.772704] io scheduler noop registered
[    2.780396] io scheduler deadline registered (default)
[    2.791494] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.805397] console [ttyS0] disabled
[    2.812500] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.830396] console [ttyS0] enabled
[    2.830396] console [ttyS0] enabled
[    2.844183] bootconsole [early0] disabled
[    2.844183] bootconsole [early0] disabled
[    2.860765] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.873648] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.887677] Enable NFI Clock
[    2.893419] # MTK NAND # : Use HW ECC
[    2.900732] Device found in MTK table, ID: 1f1, EXT_ID: 801d01
[    2.912350] Support this Device in MTK table! 1f1 
[    2.922073] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.934943] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    2.947593] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    2.957650] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.972740] Scanning device for bad blocks
[    3.262508] 12 fixed-partitions partitions found on MTD device MT7621-NAND
[    3.276195] Creating 12 MTD partitions on "MT7621-NAND":
[    3.286781] 0x000000000000-0x000000100000 : "Bootloader"
[    3.298419] 0x000000100000-0x000000200000 : "u-boot-env"
[    3.310086] 0x000000200000-0x000000300000 : "Factory"
[    3.321209] 0x000000300000-0x000000400000 : "SecondBoot"
[    3.332822] 0x000000400000-0x000000800000 : "kernel"
[    3.343791] 0x000000800000-0x000003600000 : "ubi"
[    3.354558] 0x000003600000-0x000003700000 : "Config"
[    3.365513] 0x000003700000-0x000006900000 : "firmware_2"
[    3.377505] 0x000006900000-0x000006a00000 : "Config_2"
[    3.388796] 0x000006a00000-0x000006b00000 : "persist"
[    3.399956] 0x000006b00000-0x000006c00000 : "idmkey"
[    3.410900] 0x000006c00000-0x000007f80000 : "Backup"
[    3.421985] [mtk_nand] probe successfully!
[    3.430894] Signature matched and data read!
[    3.439376] load_fact_bbt success 1023
[    3.447583] libphy: Fixed MDIO Bus: probed
[    3.522344] libphy: mdio: probed
[    4.928371] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.940908] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    4.959966] NET: Registered protocol family 10
[    4.970170] Segment Routing with IPv6
[    4.977536] NET: Registered protocol family 17
[    4.986428] 8021q: 802.1Q VLAN Support v1.8
[    4.997556] UBI: auto-attach mtd5
[    5.004248] ubi0: attaching mtd5
[    5.025850] UBI: EOF marker found, PEBs from 13 will be erased
[    5.037929] ubi0: scanning is finished
[    5.084852] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 333 LEBs
[    5.098640] ubi0: attached mtd5 (name "ubi", size 46 MiB)
[    5.109444] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.123159] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.136677] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.150539] ubi0: good PEBs: 368, bad PEBs: 0, corrupted PEBs: 0
[    5.162500] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.176880] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 964880614
[    5.194896] ubi0: available PEBs: 0, total reserved PEBs: 368, PEBs reserved for bad PEB handling: 20
[    5.213277] ubi0: background thread "ubi_bgt0d" started, PID 369
[    5.215189] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.236218] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.250120] hctosys: unable to open rtc device (rtc0)
[    5.320902] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.335589] Freeing unused kernel memory: 212K
[    5.344455] This architecture does not have kernel memory protection.
[    6.357057] init: Console is alive
[    6.364108] init: - watchdog -
[    6.453838] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[    6.529355] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.619659] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.650049] init: - preinit -
[    7.337540] mtk_soc_eth 1e100000.ethernet: PPE started
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
[   10.548994] UBIFS (ubi0:1): default file-system created
[   10.561060] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 439
[   10.593041] random: procd: uninitialized urandom read (4 bytes read)
[   10.675612] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.691242] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.710990] UBIFS (ubi0:1): FS size: 41013248 bytes (39 MiB, 323 LEBs), journal size 2031616 bytes (1 MiB, 16 LEBs)
[   10.731760] UBIFS (ubi0:1): reserved for root: 1937156 bytes (1891 KiB)
[   10.744926] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID B81C08C4-63C6-4F2A-9209-8BD51995109A, small LPT model
[   10.770363] mount_root: overlay filesystem has not been fully initialized yet
[   10.784963] mount_root: switching to ubifs overlay
[   10.810343] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.897251] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   10.918904] procd: - early -
[   10.924772] procd: - watchdog -
[   11.549909] procd: - watchdog -
[   11.556472] procd: - ubus -
[   11.609170] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.622535] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.635596] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.649111] procd: - init -
Please press Enter to activate this console.
[   11.910565] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.927475] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.944856] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.961078] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.003913] xt_time: kernel timezone is -0000
[   12.018142] PPP generic driver version 2.4.2
[   12.027837] NET: Registered protocol family 24
[   12.038953] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.206587] urandom_read: 5 callbacks suppressed
[   13.206599] random: jshn: uninitialized urandom read (4 bytes read)
[   23.311257] mtk_soc_eth 1e100000.ethernet: PPE started
[   23.327072] br-lan: port 1(eth0.1) entered blocking state
[   23.337924] br-lan: port 1(eth0.1) entered disabled state
[   23.349363] device eth0.1 entered promiscuous mode
[   23.359238] device eth0 entered promiscuous mode
[   23.371147] br-lan: port 1(eth0.1) entered blocking state
[   23.381939] br-lan: port 1(eth0.1) entered forwarding state
[   23.393592] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   24.350325] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   24.725924] random: crng init done



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+9856-c5e6f6b6c2
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#

WN-DX1167R bootnumメモ

WN-DX1167Rのデュアルイメージ構成において、ブートするパーティションを切り替える bootnum フラグについてのメモ。

root@WN-DX1167R:/tmp/mtd# mstc_persist read bootnum
1
root@WN-DX1167R:/tmp/mtd# hexdump -n 128 -C /dev/mtd9
00000000  1b 05 ce 17 01 00 00 00  4a 4f 00 00 06 9e e4 d0  |........JO......|
00000010  4a 4f 00 00 06 9e e4 d0  00 00 00 00 00 00 00 00  |JO..............|
00000020  00 00 00 00 00 00 00 00  ff ff ff ff ff ff ff ff  |................|
00000030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000080
root@WN-DX1167R:/tmp/mtd# mstc_persist write bootnum 2
Unlocking persist ...
root@WN-DX1167R:/tmp/mtd# hexdump -n 128 -C /dev/mtd9
00000000  1b 05 ce 17 02 00 00 00  4a 4f 00 00 06 9e e4 d0  |........JO......|
00000010  4a 4f 00 00 06 9e e4 d0  00 00 00 00 00 00 00 00  |JO..............|
00000020  00 00 00 00 00 00 00 00  ff ff ff ff ff ff ff ff  |................|
00000030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000080

WN-DX1167R

再び某氏より提供頂いたもの。事前のファーム解析でMT7621を搭載していることが予想されていたものの、WAN側は1000Mbps対応ながらLAN側は100Mbpsまでとされており、内部的にどのような構造になっているのかが気になっていた。
弄っていくのでメモ。

Switch

zone WAN LAN
port
(WN-DX1167R)
インターネット (LAN番号刻印無し)
port
(MT7530)
port0 port1 port2 port3 port4

MAC

  • LAN: 34:76:C5:xx:xx:F4 (Ubootenv, ethaddr (text) / Factory, 0xE000 (hex))
  • WAN: 34:76:C5:xx:xx:F6 (Factory, 0xE006 (hex))
  • 2.4G: 34:76:C5:xx:xx:F4 (Factory, 0x4 (hex))
  • 5G: 34:76:C5:xx:xx:F5 (Factory, 0x8004 (hex))

U-Boot

ブートを止める方法が不明で入れず
→ 5chの情報を参考に強引にKernelへログインしたうえでブート時のmtdロックを回避、
sys debugflag 1
を設定してデバッグモードを有効化しZ-Loaderを停止できるように変更。再度ブート時にZ-Loaderに入り、
ATGU
でU-Bootへ移動する

log:

U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87f98000

Config XHCI 40M PLL 
Allocate 16 byte aligned buffer: 87fcb030
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 F1 80 1D 01]
Device found in MTK table, ID: 1f1, EXT_ID: 801d01
Support this Device in MTK table! 1f1 
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=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Aug  6 2018  Time:14:37:41
============================================ 
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 =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
.## Starting application at 0x81E00000 ...


Z-LOADER V1.28 | 08/06/2018 14:37:44


..Hit ESC key to stop autoboot: 1
ZLB> help
ATGO              boot up the whole system
ATGU              go back to U-Boot command line
ATUR              upgrade ras image by console
ATUF              upgrade factory by console
ATNR    x,y       upgrade image by TFTP (x=type[1:ras, 2:bootloader, 3:config, 4:romd 6:factory], y=filename)
ATUX              upgrade bootloader
ATBT    x         block0 write enable (1=enable, 0=disable)
ATEN    x,(y)     set BootExtension Debug Flag (y=password)
ATSE    x         show the seed of password generator
ATWZ    a,(b,c,d) write MAC , Country code, EngDbgFlag, MAC Quantity to FLASH
ATSH              dump manufacturer related data in FLASH
ATBU              dump manufacturer related data in working buffer
ATCB              copy FLASH MRD to working buffer
ATSN    x         set serial number to flash
ATSB              save working buffer to FLASH
ATQY    x         set MAC Quantity to working buffer
ATFL    x         set EngDebugFlag to working buffer
ATCO    x         set country code to working buffer
ATSR              reset
ATRT    (x,y,z,u) RAM read/write test (x=level, y=start addr, z=end addr, u=interations)
ATRM              restore default MRD
ATBR              reset to default Romfile
ATER              erase ROM-D data
ATHV    x         set hardware version to flash
ATGP    x,y       led control
ZLB> ATGU


=>## Application terminated, rc = 0x0

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. 
default: 3

You choosed 4

                                                                                                                           0 

   
4: System Enter Boot Command Line Interface.

U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)
MSTC #

help
ヘルプコマンド潰されているのに “ヘルプ見ろ” と言われるのはネタっぽい

MSTC # help
Unknown command 'help' - try 'help'

version

MSTC # version
Unknown command 'version' - try 'help'

printenv

MSTC # printenv
bootcmd=tftp
ipaddr=10.10.10.123
serverip=10.10.10.3
serialnum=118H010878Z7
countrycode=EA
ethaddr=34:76:C5:**:**:F4
wifi2ssid1=IODATA-****f4-2G
wifi2ssid2=IO-Guest-****f4-2G
wifi1ssid1=IODATA-****f4-5G
wifiwpapsk=**********
wifiwpspin=********
wifi1ssid2=IO-Guest-****f4-5G
stdin=serial
stdout=serial
stderr=serial
ethact=Eth0 (10/100-M)
BootType=3

Environment size: 353/131068 bytes

tftp

MSTC # tftp

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 
Trying Eth0 (10/100-M)

 ETH_STATE_ACTIVE!! 
*** Warning: no boot file name; using 'test.bin'
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x84000000
Loading: T T 
Abort

Kernel

パスワードが設定されており、ログイン不可。
5chの情報を基に強引にログインし、情報を引き出し。

uname -a

root@WN-DX1167R:~# uname -a
Linux WN-DX1167R 3.10.14 #1 SMP Fri Oct 12 21:22:31 CST 2018 mips GNU/Linux

cat /proc/version

root@WN-DX1167R:~# cat /proc/version
Linux version 3.10.14 (*******@srv17) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 SMP Fri Oct 12 21:22:31 CST 2018

cat /proc/cpuinfo

root@WN-DX1167R:~# cat /proc/cpuinfo
system type             : MT7621
machine                 : Unknown
processor               : 0
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VPE                     : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 1
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VPE                     : 1
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 2
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 1
VPE                     : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 3
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 1
VPE                     : 1
VCED exceptions         : not available
VCEI exceptions         : not available

cat /proc/meminfo

root@WN-DX1167R:~# cat /proc/meminfo
MemTotal:         125220 kB
MemFree:           70108 kB
Buffers:            5648 kB
Cached:            18780 kB
SwapCached:            0 kB
Active:            10748 kB
Inactive:          16236 kB
Active(anon):       3788 kB
Inactive(anon):     1732 kB
Active(file):       6960 kB
Inactive(file):    14504 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          2592 kB
Mapped:             2844 kB
Shmem:              2964 kB
Slab:              11968 kB
SReclaimable:       1936 kB
SUnreclaim:        10032 kB
KernelStack:         528 kB
PageTables:          252 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       62608 kB
Committed_AS:       8816 kB
VmallocTotal:    1048372 kB
VmallocUsed:       11356 kB
VmallocChunk:     980924 kB

cat /proc/mtd

root@WN-DX1167R:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 07f80000 00020000 "ALL"
mtd1: 00100000 00020000 "Bootloader"
mtd2: 00100000 00020000 "Ubootenv"
mtd3: 00100000 00020000 "Factory"
mtd4: 03200000 00020000 "firmware"
mtd5: 03078a0e 00020000 "rootfs"
mtd6: 00100000 00020000 "Config"
mtd7: 03200000 00020000 "firmware_2"
mtd8: 00100000 00020000 "Config_2"
mtd9: 00100000 00020000 "persist"
mtd10: 00100000 00020000 "idmkey"
mtd11: 01380000 00020000 "Backup"
mtd12: 00100000 00020000 "SecondBoot"

ubus call system board

root@WN-DX1167R:~# ubus call system board
{
        "kernel": "3.10.14",
        "hostname": "WN-DX1167R",
        "system": "MT7621",
        "model": "MiCAP-3326C",
        "release": {
                "distribution": "OpenWrt",
                "version": "1.00.001",
                "revision": "unknown",
                "codename": "barrier_breaker",
                "target": "ramips\/generic",
                "description": "OpenWrt Barrier Breaker 1.00.001"
        }
}

fw_printenv

root@WN-DX1167R:~# fw_printenv
bootcmd=tftp
ipaddr=10.10.10.123
serverip=10.10.10.3
stdin=serial
stdout=serial
stderr=serial
serialnum=118H010878Z7
countrycode=EA
ethaddr=34:76:C5:**:**:F4
wifi2ssid1=IODATA-****f4-2G
wifi2ssid2=IO-Guest-****f4-2G
wifi1ssid1=IODATA-****f4-5G
wifiwpapsk=*************
wifiwpspin=********
wifi1ssid2=IO-Guest-****f4-5G

switch –help

root@WN-DX1167R:~# switch --help
Usage:
 switch acl etype add [ethtype] [portmap]              - drop etherytype packets
 switch acl dip add [dip] [portmap]                    - drop dip packets
 switch acl dip meter [dip] [portmap][meter:kbps]      - rate limit dip packets
 switch acl dip trtcm [dip] [portmap][CIR:kbps][CBS][PIR][PBS] - TrTCM dip packets
 switch acl port add [sport] [portmap]           - drop src port packets
 switch acl L4 add [2byes] [portmap]             - drop L4 packets with 2bytes payload
 switch add [mac] [portmap]                  - add an entry to switch table
 switch add [mac] [portmap] [vlan id]        - add an entry to switch table
 switch add [mac] [portmap] [vlan id] [age]  - add an entry to switch table
 switch clear                                - clear switch table
 switch del [mac]                            - delete an entry from switch table
 switch del [mac] [fid]                  - delete an entry from switch table
 switch dip add [dip] [portmap]                  - add a dip entry to switch table
 switch dip del [dip]                        - del a dip entry to switch table
 switch dip dump                                 - dump switch dip table
 switch dip clear                                - clear switch dip table
 switch dump            - dump switch table
 switch ingress-rate on [port] [Kbps]        - set ingress rate limit on port 0~4 
 switch egress-rate on [port] [Kbps]         - set egress rate limit on port 0~4 
 switch ingress-rate off [port]              - del ingress rate limit on port 0~4 
 switch egress-rate off [port]               - del egress rate limit on port 0~4
 switch filt [mac]                           - add a SA filtering entry (with portmap 1111111) to switch table
 switch filt [mac] [portmap]                 - add a SA filtering entry to switch table
 switch filt [mac] [portmap] [vlan id]       - add a SA filtering entry to switch table
 switch filt [mac] [portmap] [vlan id] [age] - add a SA filtering entry to switch table
 switch igmpsnoop on [Query Interval] [default router portmap] - turn on IGMP snoop and  router port learning (Query Interval 1~255)
 switch igmpsnoop off                                  - turn off IGMP snoop and router port learning
 switch igmpsnoop enable [port#]                       - enable IGMP HW leave/join/Squery/Gquery
 switch igmpsnoop disable [port#]                      - disable IGMP HW leave/join/Squery/Gquery
 switch mymac [mac] [portmap]                  - add a mymac entry to switch table
 switch mirror monitor [portnumber]            - enable port mirror and indicate monitor port number
 switch mirror target [portnumber] [0:off, 1:rx, 2:tx, 3:all]  - set port mirror target
 switch phy [phy_addr]                   - dump phy register of specific port
 switch phy mt7530                       - dump mt7530 phy registers
 switch phy                                      - dump all phy registers
 switch pvid [port] [pvid]                - set pvid on port 0~4 
 switch reg r [offset]                       - register read from offset
 switch reg w [offset] [value]               - register write value to offset
 switch reg d [offset]                       - register dump
 switch sip add [sip] [dip] [portmap]            - add a sip entry to switch table
 switch sip del [sip] [dip]                          - del a sip entry to switch table
 switch sip dump                                 - dump switch sip table
 switch sip clear                                - clear switch sip table
 switch tag on [port]                        - keep vlan tag for egress packet on prot 0~4
 switch tag off [port]                       - remove vlan tag for egress packet on port 0~4
 switch vlan dump                            - dump switch table
 switch vlan set [vlan idx (NULL)][vid] [portmap]  - set vlan id and associated member

switch vlan dump

root@WN-DX1167R:~# switch vlan dump
  vid  fid  portmap    s-tag
    1    0  -1111-11       0
    2    0  1----1--       0
    3    0  invalid
    4    0  invalid
    5    0  invalid
    6    0  invalid
    7    0  invalid
    8    0  invalid
    9    0  invalid
   10    0  invalid
   11    0  invalid
   12    0  invalid
   13    0  invalid
   14    0  invalid
   15    0  invalid
   16    0  invalid

sys –help

root@WN-DX1167R:~# sys --help
Usage:
         sys atsh 
         sys atwz  []
         sys atsn 
         sys athwver 
         sys debugflag 
         sys ledctl 
         sys loadrom 
         sys mrd [0:Check default MRD(default option) | 1:Reset default MRD]
         sys romreset 

sys atsh

root@WN-DX1167R:~# sys atsh
Firmware Version              : 3.10(XIK.0)b11                
Boot Version                  : 1.28.03 | 08/06/2018 14:37:44 
Product Model                 : WN-DX1167R                    
First MAC Address             : 34:76:C5:**:**:F4             
MAC Quantity                  : 4                             
Serial Number                 : 118H010878Z7                  
firmware Checksum             : 84535509                      
Kernel Checksum               : d775cdc8                      
RomFile Checksum              : c1d7f1c5                      
Country Code                  : EA                            
Boot Number                   : 1

bootlog

U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87f98000

Config XHCI 40M PLL 
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 87fcb030
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 F1 80 1D 01]
Device found in MTK table, ID: 1f1, EXT_ID: 801d01
Support this Device in MTK table! 1f1 
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=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Aug  6 2018  Time:14:37:41
============================================ 
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 =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
.## Starting application at 0x81E00000 ...


Z-LOADER V1.28 | 08/06/2018 14:37:44


..
Checking image 1...
   Image Name:   3.10(XIK.0)b11
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1602994 Bytes =  1.5 MB
   Load Address: 80001000
   Entry Point:  80001000
.........................   Verifying Combo Checksum ... .................................................................................................................................................## Booting image at bc400000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128

Starting kernel ...


LINUX started...

 THIS IS ASIC

SDK 5.0.S.0
[    0.000000] Linux version 3.10.14 (*******@srv17) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 SMP Fri Oct 12 21:22:31 CST 2018
[    0.000000] 
[    0.000000]  The CPU feqenuce set to 880 MHz
[    0.000000] GCMP present
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] Software DMA cache coherency
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Detected 3 available secondary CPU(s)
[    0.000000] Primary instruction cache 32kB, 4-way, VIPT, 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] PERCPU: Embedded 7 pages/cpu @81103000 s6464 r8192 d14016 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS1,57600n8 BootImage=1 root=/dev/mtdblock5 rootfstype=squashfs,jffs2
[    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] Writing ErrCtl register=00041000
[    0.000000] Readback ErrCtl register=00041000
[    0.000000] Memory: 125008k/131072k available (3536k kernel code, 6064k reserved, 852k data, 212k init, 0k highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:128
[    0.000000] console [ttyS1] enabled
[    0.116000] Calibrating delay loop... 562.17 BogoMIPS (lpj=1124352)
[    0.148000] pid_max: default: 32768 minimum: 301
[    0.152000] Mount-cache hash table entries: 512
[    0.156000] launch: starting cpu1
[    0.160000] launch: cpu1 gone!
[    0.160000] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.160000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
[    0.160000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.160000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.192000] Synchronize counters for CPU 1: done.
[    0.200000] launch: starting cpu2
[    0.204000] launch: cpu2 gone!
[    0.204000] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.204000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
[    0.204000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.204000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.232000] Synchronize counters for CPU 2: done.
[    0.240000] launch: starting cpu3
[    0.244000] launch: cpu3 gone!
[    0.244000] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.244000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
[    0.244000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.244000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.272000] Synchronize counters for CPU 3: done.
[    0.280000] Brought up 4 CPUs
[    0.284000] NET: Registered protocol family 16
[    0.576000] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.580000] PCIE PHY initialize
[    0.584000] ***** Xtal 40MHz *****
[    0.588000] start MT7621 PCIe register access
[    1.164000] RALINK_RSTCTRL = 7000000
[    1.168000] RALINK_CLKCFG1 = 77ffeff8
[    1.172000] 
[    1.172000] *************** MT7621 PCIe RC mode *************
[    1.652000] PCIE0 no card, disable it(RST&CLK)
[    1.656000] PCIE2 no card, disable it(RST&CLK)
[    1.660000] pcie_link status = 0x2
[    1.664000] RALINK_RSTCTRL= 2000000
[    1.668000] *** Configure Device number setting of Virtual PCI-PCI bridge ***
[    1.672000] RALINK_PCI_PCICFG_ADDR = 21007f2 -> 20107f2
[    1.676000] PCIE1 enabled
[    1.680000] interrupt enable status: 200000
[    1.684000] Port 0 N_FTS = 1b105000
[    1.688000] config reg done
[    1.692000] init_rt2880pci done
[    1.712000] bio: create slab  at 0
[    1.716000] SCSI subsystem initialized
[    1.720000] usbcore: registered new interface driver usbfs
[    1.724000] usbcore: registered new interface driver hub
[    1.728000] usbcore: registered new device driver usb
[    1.732000] PCI host bridge to bus 0000:00
[    1.736000] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.740000] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.744000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.748000] pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
[    1.752000] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.756000] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[    1.760000] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    1.764000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.768000] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.772000] BAR0 at slot 0 = 0
[    1.776000] bus=0x0, slot = 0x0
[    1.780000] res[0]->start = 0
[    1.784000] res[0]->end = 0
[    1.788000] res[1]->start = 60100000
[    1.792000] res[1]->end = 6010ffff
[    1.796000] res[2]->start = 0
[    1.800000] res[2]->end = 0
[    1.804000] res[3]->start = 0
[    1.808000] res[3]->end = 0
[    1.812000] res[4]->start = 0
[    1.816000] res[4]->end = 0
[    1.820000] res[5]->start = 0
[    1.824000] res[5]->end = 0
[    1.828000] bus=0x1, slot = 0x0, irq=0x18
[    1.832000] res[0]->start = 60000000
[    1.836000] res[0]->end = 600fffff
[    1.840000] res[1]->start = 0
[    1.844000] res[1]->end = 0
[    1.848000] res[2]->start = 0
[    1.852000] res[2]->end = 0
[    1.856000] res[3]->start = 0
[    1.860000] res[3]->end = 0
[    1.864000] res[4]->start = 0
[    1.868000] res[4]->end = 0
[    1.872000] res[5]->start = 0
[    1.876000] res[5]->end = 0
[    1.880000] Switching to clocksource MIPS
[    1.884000] NET: Registered protocol family 2
[    1.892000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    1.908000] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    1.920000] TCP: Hash tables configured (established 1024 bind 1024)
[    1.932000] TCP: reno registered
[    1.940000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.952000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.964000] NET: Registered protocol family 1
[    2.060000] 4 CPUs re-calibrate udelay(lpj = 1167360)
[    2.072000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.084000] jffs2: version 2.2. (NAND) (SUMMARY)  (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.108000] io scheduler noop registered (default)
[    2.116000] reg_int_mask=0, INT_MASK= 0 
[    2.124000] HSDMA_init
[    2.128000] 
[    2.128000]  hsdma_phy_tx_ring0 = 0x0fe38000, hsdma_tx_ring0 = 0xafe38000
[    2.144000] 
[    2.144000]  hsdma_phy_rx_ring0 = 0x0fe34000, hsdma_rx_ring0 = 0xafe34000
[    2.164000] TX_CTX_IDX0 = 0
[    2.168000] TX_DTX_IDX0 = 0
[    2.172000] RX_CRX_IDX0 = 3ff
[    2.180000] RX_DRX_IDX0 = 0
[    2.184000] set_fe_HSDMA_glo_cfg
[    2.192000] HSDMA_GLO_CFG = 465
[    2.204000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    2.216000] serial8250: ttyS0 at MMIO 0x1e000d00 (irq = 27) is a 16550A
[    2.228000] serial8250: ttyS1 at MMIO 0x1e000c00 (irq = 26) is a 16550A
[    2.244000] Ralink gpio driver initialized
[    2.252000] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.264000] Allocate 16 byte aligned buffer: 80491c20
[    2.276000] Enable NFI Clock
[    2.280000] # MTK NAND # : Use HW ECC
[    2.288000] NAND ID [01 F1 80 1D 01, 00801d01]
[    2.296000] Device found in MTK table, ID: 1f1, EXT_ID: 801d01
[    2.308000] Support this Device in MTK table! 1f1 
[    2.320000] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD/Spansion NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[    2.344000] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.356000] Scanning device for bad blocks
[    2.648000] Signature matched and data read!
[    2.656000] load_fact_bbt success 1023
[    2.664000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.684000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.704000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.724000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.744000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.760000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.780000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.800000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.820000] Creating 12 MTD partitions on "MT7621-NAND":
[    2.832000] 0x000000000000-0x000007f80000 : "ALL"
[    2.840000] 0x000000000000-0x000000100000 : "Bootloader"
[    2.852000] 0x000000100000-0x000000200000 : "Ubootenv"
[    2.864000] 0x000000200000-0x000000300000 : "Factory"
[    2.876000] 0x000000400000-0x000003600000 : "firmware"
[    2.888000] 0x0000005875f2-0x000003600000 : "rootfs"
[    2.900000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    2.936000] 0x000003600000-0x000003700000 : "Config"
[    2.944000] 0x000003700000-0x000006900000 : "firmware_2"
[    2.956000] 0x000006900000-0x000006a00000 : "Config_2"
[    2.968000] 0x000006a00000-0x000006b00000 : "persist"
[    2.980000] 0x000006b00000-0x000006c00000 : "idmkey"
[    2.988000] 0x000006c00000-0x000007f80000 : "Backup"
[    3.000000] 0x000000300000-0x000000400000 : "SecondBoot"
[    3.012000] [mtk_nand] probe successfully!
[    3.020000] rootfs = 5875f2 to d20000
[    3.028000] PPP generic driver version 2.4.2
[    3.036000] NET: Registered protocol family 24
[    3.044000] PPTP driver version 0.8.5
[    3.052000] rdm_major = 253
[    3.060000] GMAC1_MAC_ADRH -- : 0x00003476
[    3.068000] GMAC1_MAC_ADRL -- : 0xc5cca9f4
[    3.076000] Ralink APSoC Ethernet Driver Initilization. v3.1  1024 rx/tx descriptors allocated, mtu = 1500!
[    3.096000] GMAC1_MAC_ADRH -- : 0x00003476
[    3.104000] GMAC1_MAC_ADRL -- : 0xc5cca9f4
[    3.112000] register mt7530
[    3.116000] PROC INIT OK!
[    3.124000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.136000] ehci-pci: EHCI PCI platform driver
[    3.144000] *****run project phy.
[    3.164000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.184000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.204000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.224000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.244000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.264000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.284000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.304000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.324000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.344000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.388000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.408000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.428000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.448000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.468000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.488000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.508000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.528000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.548000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.568000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.708000] xhci-hcd xhci-hcd: xHCI Host Controller
[    3.716000] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
[    3.732000] xhci-hcd xhci-hcd: irq 22, io mem 0x1e1c0000
[    3.744000] hub 1-0:1.0: USB hub found
[    3.752000] hub 1-0:1.0: 2 ports detected
[    3.760000] xhci-hcd xhci-hcd: xHCI Host Controller
[    3.768000] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
[    3.784000] hub 2-0:1.0: USB hub found
[    3.792000] hub 2-0:1.0: 1 port detected
[    3.800000] usbcore: registered new interface driver usb-storage
[    3.812000] gre: GRE over IPv4 demultiplexor driver
[    3.820000] TCP: cubic registered
[    3.828000] NET: Registered protocol family 10
[    3.836000] NET: Registered protocol family 17
[    3.848000] Bridge firewalling registered
[    3.856000] 8021q: 802.1Q VLAN Support v1.8
[    3.872000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    3.884000] Freeing unused kernel memory: 212K (8044b000 - 80480000)
procd: Console is alive
procd: - preinit -
[    5.196000] 34:76:FFFFFFC5:FFFFFFCC:FFFFFFA9:FFFFFFF4
[    5.208000] Raeth v3.1 (Tasklet)
[    5.216000] set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
[    5.232000] phy_free_head is 0xf75a000!!!
[    5.240000] phy_free_tail_phy is 0xf75bff0!!!
[    5.248000] txd_pool=af760000 phy_txd_pool=0F760000
[    5.256000] ei_local->skb_free start address is 0x87ed26dc.
[    5.268000] free_txd: 0f760010, ei_local->cpu_ptr: 0F760000
[    5.280000]  POOL  HEAD_PTR | DMA_PTR | CPU_PTR 
[    5.288000] ----------------+---------+--------
[    5.296000]      0xaf760000 0x0F760000 0x0F760000
[    5.308000] 
[    5.308000] phy_qrx_ring = 0x0f714000, qrx_ring = 0xaf714000
[    5.324000] 
[    5.324000] phy_rx_ring0 = 0x0f75c000, rx_ring0 = 0xaf75c000
[    5.356000] MT7530 Reset Completed!!
[    5.372000] change HW-TRAP to 0x117c8f
[    5.380000] set LAN/WAN WLLLL
[    5.392000] GMAC1_MAC_ADRH -- : 0x00003476
[    5.400000] GMAC1_MAC_ADRL -- : 0xc5cca9f4
[    5.408000] GDMA2_MAC_ADRH -- : 0x00003476
[    5.416000] GDMA2_MAC_ADRL -- : 0xc5cca9f6
[    5.424000] eth1: ===> VirtualIF_open
[    5.432000] MT7621 GE2 link rate to 1G
[    5.432000] CDMA_CSG_CFG = 81000000
[    5.432000] GDMA1_FWD_CFG = 20710000
[    5.432000] GDMA2_FWD_CFG = 20710000
[    5.556000] led=9, on=1, off=1, blinks,=1, reset=1, time=4000 low_trigger=1
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
[    7.004000] ESW: Link Status Changed - Port2 Link UP
[    8.668000] led=9, on=1, off=1, blinks,=1, reset=1, time=4000 low_trigger=1
Could not open mtd device: /dev/mtd5
reading ro[    8.784000] ra2880stop()...otfs failed
mouDone
[    8.792000] eth1: ===> VirtualIF_close

[    8.804000] Free TX/RX Ring Memory!
procd: - early -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   10.748000] jffs2: notice: (762) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   10.872000] jffs2: notice: (765) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
##### Skip Checking Config. #####
Mode Switch: Router/AP
[   11.336000] Initializing XFRM netlink socket
[   11.344000] NET: Registered protocol family 15
[   11.356000] sbdev driver(major: 254) installed.
[   11.364000] wpdev driver(major: 250) installed.
[   11.392000] l2tp_core: L2TP core driver, V2.0
[   11.400000] l2tp_netlink: L2TP netlink interface
[   11.412000] ip_gre: GRE over IPv4 tunneling driver
[   11.428000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.440000] Type=Restricted Cone
[   11.452000] nf_conntrack version 0.5.0 (1956 buckets, 7824 max)
[   11.468000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.496000] ebt_time: kernel timezone is -0000
[   11.508000] Ebtables v2.0 registered
[   11.524000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   11.652000] Netfilter messages via NETLINK v0.30.
[   11.664000] PPP MPPE Compression module registered
[   11.676000] Ralink APSoC Hardware Watchdog Timer
[   11.712000] xt_time: kernel timezone is -0000
[   11.732000] ctnetlink v0.93: registering with nfnetlink.
[   14.640000] mtd: ALL locked
[   14.648000] mtd: Bootloader locked
[   14.652000] mtd: Ubootenv locked
[   14.660000] mtd: Factory locked
[   14.664000] mtd_locked init
[   16.436000] 34:76:FFFFFFC5:FFFFFFCC:FFFFFFA9:FFFFFFF4
[   16.448000] Raeth v3.1 (Tasklet)
[   16.456000] set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
[   16.472000] phy_free_head is 0xef42000!!!
[   16.480000] phy_free_tail_phy is 0xef43ff0!!!
[   16.488000] txd_pool=aef48000 phy_txd_pool=0EF48000
[   16.496000] ei_local->skb_free start address is 0x87ed26dc.
[   16.508000] free_txd: 0ef48010, ei_local->cpu_ptr: 0EF48000
[   16.520000]  POOL  HEAD_PTR | DMA_PTR | CPU_PTR 
[   16.528000] ----------------+---------+--------
[   16.536000]      0xaef48000 0x0EF48000 0x0EF48000
[   16.548000] 
[   16.548000] phy_qrx_ring = 0x0ef01000, qrx_ring = 0xaef01000
[   16.564000] 
[   16.564000] phy_rx_ring0 = 0x0ef54000, rx_ring0 = 0xaef54000
[   16.604000] MT7530 Reset Completed!!
[   16.620000] change HW-TRAP to 0x117c8f
[   16.628000] set LAN/WAN WLLLL
[   16.640000] GMAC1_MAC_ADRH -- : 0x00003476
[   16.648000] GMAC1_MAC_ADRL -- : 0xc5cca9f4
[   16.656000] eth1: ===> VirtualIF_open
[   16.664000] MT7621 GE2 link rate to 1G
[   16.664000] CDMA_CSG_CFG = 81000000
[   16.664000] GDMA1_FWD_CFG = 20710000
[   16.664000] GDMA2_FWD_CFG = 20710000
[   16.664000] device eth0 entered promiscuous mode
[   16.664000] br-lan: port 1(eth0) entered forwarding state
[   16.664000] br-lan: port 1(eth0) entered forwarding state
[   16.728000] eth1: ===> VirtualIF_open
[   18.268000] ESW: Link Status Changed - Port2 Link UP
[   18.668000] br-lan: port 1(eth0) entered forwarding state
[   22.420000] register mt_drv
[   22.440000] 
[   22.440000] 
[   22.440000] === pAd = c1f81000, size = 3627760 ===
[   22.440000] 
[   22.460000] PciHif.CSRBaseAddress =0xc1e80000, csr_addr=0xc1e80000!
[   22.488000] get_wdev_by_idx: invalid idx(0)
[   22.500000] RTMPInitPCIeDevice():device_id=0x7615
[   22.508000] DriverOwn()::Try to Clear FW Own...
[   22.844000] DriverOwn()::Success to clear FW Own
[   22.852000] mt_pci_chip_cfg(): HWVer=0x8a10, FWVer=0x8a10, pAd->ChipID=0x7615
[   22.864000] mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
[   22.876000] RtmpChipOpsHook(493): Not support for HIF_MT yet! MACVersion=0x0
[   22.888000] mt7615_init()-->
[   22.896000] Use the default ePAeLNA bin image!
[   22.904000] Use the default /etc_ro/wlan/MT7615E_EEPROM1.bin bin image!
[   22.916000] rxq = c22f26f4
[   24.444000] ctl->ackq = c22f2700
[   24.448000] ctl->kickq = c22f270c
[   24.456000] ctl->tx_doneq = c22f2718
[   24.464000] ctl->rx_doneq = c22f2724
[   24.472000] mt7615_fw_prepare():FW(8a10), HW(8a10), CHIPID(7615))
[   24.484000] mt7615_fw_prepare(2701): MT7615_E3, USE E3 patch and ram code binary image
[   24.500000] AndesMTLoadRomMethodFwDlRing(1036), cap->rom_patch_len(10206)
[   24.512000] AndesRestartCheck: Current TOP_MISC2(0x1)
[   24.524000] AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
[   24.536000] 20161013140927a
[   24.540000] 
[   24.544000] platform = 
[   24.548000] ALPS
[   24.552000] hw/sw version = 
[   24.560000] 8a108a10
[   24.564000] patch version = 
[   24.568000] 00000010
[   24.572000] Patch SEM Status=2
[   24.580000] MtCmdPatchSemGet:(ret = 0)
[   24.588000] 
[   24.588000] Patch is not ready && get semaphore success, SemStatus(2)
[   24.604000] EventGenericEventHandler: CMD Success
[   24.612000] MtCmdAddressLenReq:(ret = 0)
[   24.620000] MtCmdPatchFinishReq
[   24.640000] EventGenericEventHandler: CMD Success
[   24.648000] Send checksum req..
[   24.652000] Patch SEM Status=3
[   24.660000] MtCmdPatchSemGet:(ret = 0)
[   24.668000] 
[   24.668000] Release patch semaphore, SemStatus(3)
[   24.680000] AndesMTEraseRomPatch
[   24.688000] WfMcuHwInit: Before NICLoadFirmware, check IcapMode=0
[   24.700000] AndesMTLoadFwMethodFwDlRing(810), cap->fw_len(460360)
[   24.712000] Build Date:_201701111925
[   24.716000] Build Date:_201701111925
[   24.724000] AndesRestartCheck: Current TOP_MISC2(0x1)
[   24.736000] AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
[   24.748000] EventGenericEventHandler: CMD Success
[   24.760000] MtCmdAddressLenReq:(ret = 0)
[   24.772000] EventGenericEventHandler: CMD Success
[   24.780000] MtCmdAddressLenReq:(ret = 0)
[   24.788000] MtCmdFwStartReq: override = 1, address = 540672
[   24.800000] EventGenericEventHandler: CMD Success
[   24.808000] Build Date:_201612301011
[   24.816000] EventGenericEventHandler: CMD Success
[   24.824000] MtCmdAddressLenReq:(ret = 0)
[   24.832000] MtCmdFwStartReq: override = 4, address = 0
[   24.908000] EventGenericEventHandler: CMD Success
[   24.948000] WfMcuHwInit: NICLoadFirmware OK, Check IcapMode=0
[   24.960000] MCU Init Done!
[   24.968000]  MtCmdSetRlmPorCal: (ret = 0) 
[   24.976000] efuse_probe: efuse = 10000212
[   24.984000] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
[   24.996000] RtmpEepromGetDefault::e2p_dafault=1
[   25.004000] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
[   25.020000] NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
[   25.032000] NICReadEEPROMParameters():Calling eeinit
[   25.052000] NICReadEEPROMParameters: EEPROM 0x52 b317
[   25.068000] MtCmdSetTxLpfCal:(ret = 0)
[   25.076000] MtCmdSetTxIqCal:(ret = 0)
[   25.080000] MtCmdSetTxDcCal:(ret = 0)
[   25.088000] MtCmdSetRxFiCal:(ret = 0)
[   25.096000] MtCmdSetRxFdCal:(ret = 0)
[   25.104000] MtCmdSetRxFdCal:(ret = 0)
[   25.112000] MtCmdSetRxFdCal:(ret = 0)
[   25.120000] MtCmdSetRxFdCal:(ret = 0)
[   25.124000] MtCmdSetRxFdCal:(ret = 0)
[   25.132000] MtCmdSetRxFdCal:(ret = 0)
[   25.140000] MtCmdSetRxFdCal:(ret = 0)
[   25.148000] MtCmdSetRxFdCal:(ret = 0)
[   25.156000] MtCmdSetRxFdCal:(ret = 0)
[   25.164000] NICReadEEPROMParameters: EEPROM 0x52 b317
[   25.728000] Country Region from e2p = 101
[   25.736000] mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
[   25.748000] mt7615_antenna_default_reset(): DBDC 2G TxPath = 2, 2G RxPath = 2
[   25.764000] mt7615_antenna_default_reset(): DBDC 5G TxPath = 2, 2G RxPath = 2
[   25.776000] rtmp_read_txpwr_from_eeprom(235): Don't Support this now!
[   25.788000] RTMPReadTxPwrPerRate(1382): Don't Support this now!
[   25.800000] RcRadioInit(): DbdcMode=1, ConcurrentBand=2
[   25.812000] RcRadioInit(): pRadioCtrl=85360444,Band=0,rfcap=1,channel=1,PhyMode=2
[   25.828000] RcRadioInit(): pRadioCtrl=85360530,Band=1,rfcap=2,channel=36,PhyMode=1
[   25.844000] MtCmdSetDbdcCtrl:(ret = 0)
[   25.852000] Band Rf: 1, Phy Mode: 2
[   25.856000] Band Rf: 2, Phy Mode: 1
[   25.864000] AntCfgInit(2700): Not support for HIF_MT yet!
[   25.876000] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
[   25.888000] MtBfBackOffLoadTable: RF_LOCKDOWN Feature OFF !!!
[   25.900000] EEPROM Init Done!
[   25.904000] mt_mac_init()-->
[   25.912000] mt_mac_pse_init(2716): Don't Support this now!
[   25.924000] mt7615_init_mac_cr()-->
[   25.928000] mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
[   25.940000] mt7615_init_mac_cr(): TMAC_TRCR1=0x82783c8c
[   25.948000] MtAsicSetMacMaxLen(1290): Not finish Yet!
[   25.960000] 
[   26.124000] MtCmdSetMacTxRx:(ret = 0)
[   26.132000] MtCmdSetMacTxRx:(ret = 0)
[   26.140000] [DfsSwitchCheck]: DFS ByPass TX calibration.
[   26.152000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   26.168000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   26.180000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   26.196000] MtCmdGetTXDPDCalResult:(ret = 0)
[   26.208000] MtCmdChannelSwitch: control_chl = 36,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   26.224000] BW = 2,TXStream = 2, RXStream = 2, scan(1)
[   26.460000] [DfsSwitchCheck]: DFS ByPass TX calibration.
[   26.468000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   26.488000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   26.496000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   26.516000] MtCmdGetTXDPDCalResult:(ret = 0)
[   26.524000] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   26.544000] BW = 2,TXStream = 2, RXStream = 2, scan(1)
[   26.776000] [DfsSwitchCheck]: DFS ByPass TX calibration.
[   26.784000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   26.804000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   26.812000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   26.832000] MtCmdGetTXDPDCalResult:(ret = 0)
[   26.840000] MtCmdChannelSwitch: control_chl = 44,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   26.860000] BW = 2,TXStream = 2, RXStream = 2, scan(1)
[   27.092000] [DfsSwitchCheck]: DFS ByPass TX calibration.
[   27.100000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   27.120000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   27.128000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   27.148000] MtCmdGetTXDPDCalResult:(ret = 0)
[   27.156000] MtCmdChannelSwitch: control_chl = 48,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   27.176000] BW = 2,TXStream = 2, RXStream = 2, scan(1)
[   27.408000] ====================================================================
[   27.420000] Channel  36 : Busy Time =  33401, Skip Channel = FALSE, BwCap = TRUE
[   27.436000] Channel  40 : Busy Time =  35610, Skip Channel = FALSE, BwCap = TRUE
[   27.452000] Channel  44 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
[   27.464000] Channel  48 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
[   27.480000] ====================================================================
[   27.496000] Rule 3 Channel Busy time value : Select Primary Channel 44 
[   27.508000] Rule 3 Channel Busy time value : Min Channel Busy = 35610
[   27.520000] Rule 3 Channel Busy time value : BW = 80
[   27.532000]  AutoChSelUpdateChannel(): Update channel for wdev0 for this band PhyMode = 49,Channel = 44  
[   27.552000]  AutoChSelUpdateChannel(): Update channel for wdev1 for this band PhyMode = 49,Channel = 44  
[   27.572000]  AutoChSelUpdateChannel(): Update channel for wdev2 for this band PhyMode = 49,Channel = 44  
[   27.592000]  AutoChSelUpdateChannel(): Update channel for wdev3 for this band PhyMode = 49,Channel = 44  
[   27.612000]  AutoChSelUpdateChannel(): Update channel for wdev4 for this band PhyMode = 14,Channel = 0  
[   27.632000]  AutoChSelUpdateChannel(): Update channel for wdev5 for this band PhyMode = 14,Channel = 0  
[   27.652000]  AutoChSelUpdateChannel(): Update channel for wdev6 for this band PhyMode = 14,Channel = 0  
[   27.672000]  AutoChSelUpdateChannel(): Update channel for wdev7 for this band PhyMode = 14,Channel = 0  
[   27.692000] mt7615_apply_dcoc() : reload Central CH [1] BW [0] from cetral freq [2417]  offset [2200] 
[   27.712000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   27.720000] mt7615_apply_dpd() : reload Central CH [1] BW [0] from cetral freq [2422] i[44] offset [4b20] 
[   27.740000] MtCmdGetTXDPDCalResult:(ret = 0)
[   27.748000] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0 
[   27.768000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   28.020000] mt7615_apply_dcoc() : reload Central CH [2] BW [0] from cetral freq [2417]  offset [2200] 
[   28.036000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   28.044000] mt7615_apply_dpd() : reload Central CH [2] BW [0] from cetral freq [2422] i[44] offset [4b20] 
[   28.064000] MtCmdGetTXDPDCalResult:(ret = 0)
[   28.072000] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0 
[   28.092000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   28.328000] mt7615_apply_dcoc() : reload Central CH [3] BW [0] from cetral freq [2417]  offset [2200] 
[   28.344000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   28.352000] mt7615_apply_dpd() : reload Central CH [3] BW [0] from cetral freq [2422] i[44] offset [4b20] 
[   28.372000] MtCmdGetTXDPDCalResult:(ret = 0)
[   28.380000] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0 
[   28.400000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   28.636000] mt7615_apply_dcoc() : reload Central CH [4] BW [0] from cetral freq [2432]  offset [2300] 
[   28.652000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   28.660000] mt7615_apply_dpd() : reload Central CH [4] BW [0] from cetral freq [2422] i[44] offset [4b20] 
[   28.680000] MtCmdGetTXDPDCalResult:(ret = 0)
[   28.688000] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0 
[   28.708000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.004000] mt7615_apply_dcoc() : reload Central CH [5] BW [0] from cetral freq [2432]  offset [2300] 
[   29.020000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   29.028000] mt7615_apply_dpd() : reload Central CH [5] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   29.048000] MtCmdGetTXDPDCalResult:(ret = 0)
[   29.056000] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0 
[   29.076000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.312000] mt7615_apply_dcoc() : reload Central CH [6] BW [0] from cetral freq [2432]  offset [2300] 
[   29.328000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   29.336000] mt7615_apply_dpd() : reload Central CH [6] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   29.356000] MtCmdGetTXDPDCalResult:(ret = 0)
[   29.364000] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0 
[   29.384000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.620000] mt7615_apply_dcoc() : reload Central CH [7] BW [0] from cetral freq [2447]  offset [2400] 
[   29.636000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   29.644000] mt7615_apply_dpd() : reload Central CH [7] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   29.664000] MtCmdGetTXDPDCalResult:(ret = 0)
[   29.672000] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0 
[   29.692000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.928000] mt7615_apply_dcoc() : reload Central CH [8] BW [0] from cetral freq [2447]  offset [2400] 
[   29.944000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   29.952000] mt7615_apply_dpd() : reload Central CH [8] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   29.972000] MtCmdGetTXDPDCalResult:(ret = 0)
[   29.980000] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0 
[   30.000000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.236000] mt7615_apply_dcoc() : reload Central CH [9] BW [0] from cetral freq [2447]  offset [2400] 
[   30.252000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   30.260000] mt7615_apply_dpd() : reload Central CH [9] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   30.280000] MtCmdGetTXDPDCalResult:(ret = 0)
[   30.288000] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0 
[   30.308000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.544000] mt7615_apply_dcoc() : reload Central CH [10] BW [0] from cetral freq [2467]  offset [2500] 
[   30.560000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   30.568000] mt7615_apply_dpd() : reload Central CH [10] BW [0] from cetral freq [2462] i[46] offset [4cd0] 
[   30.588000] MtCmdGetTXDPDCalResult:(ret = 0)
[   30.600000] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0 
[   30.616000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.868000] mt7615_apply_dcoc() : reload Central CH [11] BW [0] from cetral freq [2467]  offset [2500] 
[   30.884000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   30.892000] mt7615_apply_dpd() : reload Central CH [11] BW [0] from cetral freq [2462] i[46] offset [4cd0] 
[   30.912000] MtCmdGetTXDPDCalResult:(ret = 0)
[   30.920000] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0 
[   30.940000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   31.176000] ====================================================================
[   31.188000] Channel   1 : Busy Time =   3289, Skip Channel = FALSE, BwCap = TRUE
[   31.204000] Channel   2 : Busy Time =   3439, Skip Channel = FALSE, BwCap = TRUE
[   31.220000] Channel   3 : Busy Time =   2151, Skip Channel = FALSE, BwCap = TRUE
[   31.232000] Channel   4 : Busy Time =   2921, Skip Channel = FALSE, BwCap = TRUE
[   31.248000] Channel   5 : Busy Time =   1337, Skip Channel = FALSE, BwCap = TRUE
[   31.264000] Channel   6 : Busy Time =  25049, Skip Channel = FALSE, BwCap = TRUE
[   31.276000] Channel   7 : Busy Time =   2445, Skip Channel = FALSE, BwCap = TRUE
[   31.292000] Channel   8 : Busy Time =   1901, Skip Channel = FALSE, BwCap = TRUE
[   31.308000] Channel   9 : Busy Time =   2187, Skip Channel = FALSE, BwCap = TRUE
[   31.320000] Channel  10 : Busy Time =   2439, Skip Channel = FALSE, BwCap = TRUE
[   31.336000] Channel  11 : Busy Time =   2310, Skip Channel = FALSE, BwCap = TRUE
[   31.352000] ====================================================================
[   31.364000] Rule 3 Channel Busy time value : Select Primary Channel 5 
[   31.380000] Rule 3 Channel Busy time value : Min Channel Busy = 1337
[   31.392000] Rule 3 Channel Busy time value : BW = 20
[   31.400000]  AutoChSelUpdateChannel(): Update channel for wdev0 for this band PhyMode = 49,Channel = 44  
[   31.420000]  AutoChSelUpdateChannel(): Update channel for wdev1 for this band PhyMode = 49,Channel = 44  
[   31.444000]  AutoChSelUpdateChannel(): Update channel for wdev2 for this band PhyMode = 49,Channel = 44  
[   31.464000]  AutoChSelUpdateChannel(): Update channel for wdev3 for this band PhyMode = 49,Channel = 44  
[   31.484000]  AutoChSelUpdateChannel(): Update channel for wdev4 for this band PhyMode = 14,Channel = 5  
[   31.504000]  AutoChSelUpdateChannel(): Update channel for wdev5 for this band PhyMode = 14,Channel = 5  
[   31.524000]  AutoChSelUpdateChannel(): Update channel for wdev6 for this band PhyMode = 14,Channel = 5  
[   31.544000]  AutoChSelUpdateChannel(): Update channel for wdev7 for this band PhyMode = 14,Channel = 5  
[   31.564000] ApAutoChannelAtBootUp<-----------------
[   31.576000] WifiSysOpen(), wdev idx = 0
[   31.580000] wdev_attr_update(): wdevId0 = 34:76:c5:cc:a9:f5
[   31.592000] MtCmdSetDbdcCtrl:(ret = 0)
[   31.600000] Current Channel is 44. DfsZeroWaitSupport=0
[   31.612000] MtAsicSetChBusyStat(842): Not support for HIF_MT yet!
[   31.624000] MtAsicSetChBusyStat(842): Not support for HIF_MT yet!
[   31.636000] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[   31.648000] [PMF]WPAMakeRsnIeCap: RSNIE Capability MFPC=0, MFPR=0
[   31.660000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:49,Channel=44
[   31.676000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=14/49, support 32 channels
[   31.696000] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
[   31.696000]  LinkToOmacIdx = 0, LinkToWdevType = 1
[   31.724000] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 8192,                 CmdBssInfoBmcRate.u2McTransmit = 8192
[   31.756000] MtCmdSetDbdcCtrl:(ret = 0)
[   31.856000] [RadarStateCheck]Set into RD_NORMAL_MODE
[   31.864000] MtCmdTxPowerSKUCtrl: fgTxPowerSKUEn: 1, BandIdx: 1
[   31.876000] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 1
[   31.888000] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 1
[   31.900000] mt7615_bbp_adjust():rf_bw=2, ext_ch=1, PrimCh=44, HT-CentCh=46, VHT-CentCh=42
[   31.916000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   31.936000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   31.944000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   31.964000] MtCmdGetTXDPDCalResult:(ret = 0)
[   31.972000] MtCmdChannelSwitch: control_chl = 44,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   31.992000] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   32.048000] ap_phy_rrm_init_byRf(): AP Set CentralFreq at 42(Prim=44, HT-CentCh=46, VHT-CentCh=42, BBP_BW=2)
[   32.080000] [WrapDfsRadarDetectStart]: Band0Ch is 44[WrapDfsRadarDetectStart]: Band1Ch is 0LeadTimeForBcn, OmacIdx = 0, WDEV_WITH_BCN_ABILITY
[   32.108000] MtAsicSetRalinkBurstMode(2595): Not support for HIF_MT yet!
[   32.120000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[   32.132000] MtAsicSetTxPreamble(2574): Not support for HIF_MT yet!
[   32.144000] Main bssid = 34:76:c5:cc:a9:f5
[   32.164000] AsicRadioOnOffCtrl(): DbdcIdx=1 RadioOn
[   32.176000] MtCmdSetMacTxRx:(ret = 0)
[   32.180000] MtCmdSetMacTxRx:(ret = 0)
[   32.188000] fdb_enable()
[   32.492000] MCS Set = ff ff 00 00 01
[   32.500000]  VirtualIF_close
[   41.844000] led=9, on=4000, off=0, blinks,=0, reset=0, time=1 low_trigger=0
[   43.308000] ESW: Link Status Changed - Port2 Link UP

WR8175N

ふらっと花小金井のハードオフに行った際に見つけ、5chの情報からAR9341ということを把握しており確保したもの。有線はFEながらUSBポートを搭載しており、また2.4GHz帯のみのためWR8750N等の様な複雑さは無いと思われる。
弄っていくのでメモ。

Switch

未確認。

MAC

  • LAN: 1C:B1:7F:xx:xx:54 (config, 0x6 (hex))
  • WAN: 1C:B1:7F:xx:xx:55 (config, 0xc (hex))
  • 2.4G: 1C:B1:7F:xx:xx:56 (config, 0x0 (hex) / art, 0x1002 (hex))

Bootloader

chiron

  • help
    boot> help
    support commands ...
    load             load module
    boot             boot loaded module
    tftpd            start tftpd [tftpd [IP] [bfn]]
    dlmode           set tftpd download mode [bfn]
    reboot           reboot system
    help             help command
    macaddr          macaddr read/write
    configid         configid read/write
    randomkey        randomkey read/write
    serial           serial number read/write
    pkg_info         show package information
    presetid         preset id read/write
    version          show boot version
    mhx              mhx utility
    tp               test program
    errorlog         errorlog command
    additional       additional command
    rf-serial        rf-serial command
    time             Time command
    debug            debug command
    ?                help command
    

  • version
    boot> version
    boot version: 1.0.0
    system version: 2.54.5
    TP Version = 1.0.0
    

  • pkg_info
    boot> pkg_info
      PKG NAME : SkyU-HP
      CPU   : Atheros/AR9341
      RAM   : 64Mbyte
      Flash : 4Mbyte
        Device         : MX25L3205DMI(Macronix)
        Top Address    : 0xbfc00000
        Config Address : 0xbfc20000
        System Address : 0xbfc40000
      Ether PHY : Atheros/AR934x(SW)
      DIPSW : 0x1
    

  • debug ?
    boot> debug ?
    support commands ...
    memory           memory read/write
    flash            flash driver r/w
    fs               file system r/w
    load             load test (calc chksum)
    exception        exception
    register         display register
    watchdog         do watchdog reset
    tlb              tlb register
    cache            cache control
    mii              mii control
    l2sw             l2sw control
    ether            ether control
    btimer_start     test btimer
    btimer_stop      test btimer
    

  • debug fs ls
    boot> debug fs ls
    Firmware            3406168 bytes
    config.har             1052 bytes
    total 3932160, avail 392832 bytes
    

  • debug memory read 0xb8040000 70
    boot> debug memory read 0xb8040000 70
    b8040000:00030b01 0063ee3f 0064e01e 00000000 .....c.?.d......
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 000f8000 2a2b2c00 ............*+,.
    b8040030:0b0a0929 00180000 00000000 2f2e0000 ...)......../...
    b8040040:002d0000 00000908 00000000 00000000 .-..............
    b8040050:00000c0b 00000000 00000000 00000000 ................
    b8040060:00000000 0d0f110e 00000000 00000002 ................
    boot> tftpd
    phy1.0: "Atheros/AR934x(SW)"
    phy1.4: "Atheros/AR934x(phy)"
    active ch:1
    tftpd start 192.168.0.1
    boot> debug memory read 0xb8040000 70
    b8040000:00030b01 0063ee37 0064e01e 00000000 .....c.7.d......
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 00068000 2a2b2c00 ............*+,.
    b8040030:0b0a0929 00180000 00000000 2f2e0000 ...)......../...
    b8040040:002d0000 00000908 00000000 00000000 .-..............
    b8040050:00000c0b 00000000 00000000 00000000 ................
    b8040060:00000000 0d0f110e 00000000 00000002 ................
    

  • debug memory read 0xb8070000 4
    boot> debug memory read 0xb8070000 4 
    b8070000:00003000                            ..0.
    

  • debug memory read 0xb8060000 bc
    (before tp usb)

    boot> debug memory read 0xb8060000 bc
    b8060000:000207dc 00061a80 00000003 09896140 ..............a@
    b8060010:003fffdd 00000000 00000020 24044830 .?......... $.H0
    b8060020:00000000 00000000 00000000 00000000 ................
    b8060030:00000000 00000000 00000000 00000000 ................
    b8060040:00000000 00000000 00000000 00000000 ................
    b8060050:00000000 00000000 00000000 00000000 ................
    b8060060:00000000 00000000 00000000 00000000 ................
    b8060070:00000000 00000000 00000000 00000000 ................
    b8060080:00000000 00000000 00000000 00000000 ................
    b8060090:00000121 00000000 00000000 00000000 ...!............
    b80600a0:00000000 00000000 00000000 00000000 ................
    b80600b0:00bf0556 00000000 00000000          ...V........
    

    (aftertp usb)

    boot> debug memory read 0xb8060000 bc
    b8060000:00017cd8 00061a80 00000003 09896124 ..|...........a$
    b8060010:003fffdd 00000000 00000020 24044008 .?......... $.@.
    b8060020:00000000 00000000 00000000 00000000 ................
    b8060030:00000000 00000000 00000000 00000000 ................
    b8060040:00000000 00000000 00000000 00000000 ................
    b8060050:00000000 00000000 00000000 00000000 ................
    b8060060:00000000 00000000 00000000 00000000 ................
    b8060070:00000000 00000000 00000000 00000000 ................
    b8060080:00000000 00000000 00000000 00000000 ................
    b8060090:00000121 00000000 00000000 00000000 ...!............
    b80600a0:00000000 00000000 00000000 00000000 ................
    b80600b0:00bf0556 00000000 00000000          ...V........
    

Kernel (NetBSD)

  • Bootlog
    IPL:HARD-RESET
    memory test ... ok
    flinstall OK
    
    boot version: 1.0.0
    
    PKG "SkyU-HP"
    CPU "Atheros/AR9341"
    Revision 12.1 CLOCK 535.0 MHz
    HEAP MEMORY 262144 bytes
    Boot:InitFilesystem
    phy1.0: "Atheros/AR934x(SW)"
    phy1.4: "Atheros/AR934x(phy)"
    active ch:1
    post start
    DRAM Test ..... PASS
    Timer test .... PASS
    FLASH CHKSUM .. PASS
    LAN Test ..... 
    LoopBack count 0 .. 
    phy1.0: "Atheros/AR934x(SW)"
    phy1.4: "Atheros/AR934x(phy)"
    active ch:0
    active ch:1
    phy1.0: "Atheros/AR934x(SW)"
    phy1.4: "Atheros/AR934x(phy)"
    active ch:1
    PASS
    Package TYPE = 0x00
    post success
    now booting Firmware ...
    loaded Firmware
    config=0x80208483 status=0x00000000
    mips_pdcache_write_through=0
    mips_picache_line_size=32 mips_pdcache_line_size=32
      pagemask: 0x00000000
      status: 0x00000000
      config: 0x80208483
      cause: 0x00000000
    load memory 0x176d000, 0x2893000
    load memory 0x1000, 0x5f000
    Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
        The NetBSD Foundation, Inc.  All rights reserved.
    Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
    
    NetBSD 1.6.1 (SKYU.tmp) #0: 2012-03-13 17:00:31 JST
        ******@***-**-*****:/home/******/skyu/git/hituji/build/skyu/kernel-obj/SKYU.tmp
    
    total memory = 65536 KB
    avail memory = 36368 KB
    using 1024 buffers containing 4096 KB of memory
    mainbus0 (root)
    cpu0 at mainbus0: MIPS 74Kc (0x1974c) Rev. 76 with software emulated floating point
    cpu0: 64KB/32B 4-way set-associative L1 Instruction cache, 32 TLB entries
    cpu0: 32KB/32B 4-way set-associative write-back L1 Data cache
    arspi0 at mainbus0
    arflash0 at mainbus0 addr 0xbfc00000 size 4194304 bytes
    flash: id 0xc2 type 0x15 addr 0xbfc00000 size 4194304 bytes
    pfmg: carrier mode 0 pkgid 0x900 configid 0xff
    arrtc0 at mainbus0
    argiu0 at mainbus0
    arled0 at argiu0
    btnu0 at argiu0 port 0
    btnu1 at argiu0 port 16
    btnu2 at argiu0 port 17
    athq0 at mainbus0
    athq0: WLAN MAC ADDRESS (1c:b1:7f:4c:b1:56)
    Restoring Cal data from Flash
    dfs_attach: use DFS enhancements
    DFS min filter rssiThresh = 18
    DFS max pulse dur = 151 ticks
    ath_get_caps[5049] rx chainmask mismatch actual 3 sc_chainmak 0
    ath_get_caps[5024] tx chainmask mismatch actual 3 sc_chainmak 0
    athq0: LSDK-9.2.0_U8.834 mac 768.0 phy 534.0 radio 0.0
     chan  Freq     HT                       DFS
     1     2412nbg  HT20 HT40PLUS            N
     2     2417nbg  HT20 HT40PLUS            N
     3     2422nbg  HT20 HT40PLUS            N
     4     2427nbg  HT20 HT40PLUS            N
     5     2432nbg  HT20 HT40PLUS HT40MINUS  N
     6     2437nbg  HT20 HT40PLUS HT40MINUS  N
     7     2442nbg  HT20 HT40PLUS HT40MINUS  N
     8     2447nbg  HT20 HT40PLUS HT40MINUS  N
     9     2452nbg  HT20 HT40PLUS HT40MINUS  N
     10    2457nbg  HT20          HT40MINUS  N
     11    2462nbg  HT20          HT40MINUS  N
     12    2467nbg  HT20          HT40MINUS  N
     13    2472nbg  HT20          HT40MINUS  N
    athq0: Atheros 9340: memt=0x80364b00, memh=0xb8100000 
    com0 at mainbus0: ns16550a, working fifo
    com0: console
    ehci0 at mainbus0ehci0: EHCI version 1.0
    usb0 at ehci0: USB revision 2.0
    uhub0 at usb0
    uhub0: AR7100 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
    uhub0: 1 port with 1 removable, self powered
    ageth1 at mainbus0
    ath2swlphy0 at ageth1 phy 0: Atheros AR934x 10/100 L2SW, rev. 2
    ath2swlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, 100baseTX-FDX FLAG0, 100baseTX-FDX FLAG1
    ageth0 at mainbus0
    ath2swsphy0 at ageth0 phy 4: Atheros AR934x 10/100 L2SW, rev. 2
    ath2swsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    rtc: CLOCK INITIALIZED 
    kevt0: 
    logbuf: using 655360 bytes logging area
    md0: internal 19456 KB image area
    uhub1 at uhub0 port 1
    uhub1: vendor 0x0409 product 0x005a, class 9/0, rev 2.00/1.00, addr 2
    uhub1: single transaction translator
    uhub1: 4 ports with 4 removable, self powered
    boot device: 
    root on md0a dumps on md0b
    root file system type: ffs
    Sun Jan  1 00:00:02 JST 2012
    /usr/local/www/.htpasswd file not exists.(ignore)
    Setting tty flags.
    Building databases...
    wlan_vap_create : enter. devhandle=0x817456e0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x817456e0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    wlan_vap_create : enter. devhandle=0x817456e0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x817456e0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    Starting wificonfig
    encrypt key mode AES
    Starting evtmgr.
    Starting dlnamgr.
    Starting clid.
    Starting inetd.
    Starting procmon.
    Starting wzcm.
    Sun Jan  1 00:00:06 JST 2012
    
    NetBSD/messimips (Amnesiac) (console)
    
    login: 
    

WSR-2533DHPL

とある方より、誕生日プレゼントとして頂いたもの。WSR-2533DHPからのリネームとされているものの、DHPは確認していないので全く同一なのかは不明。
DHP2と一緒にまったり弄っていくのでメモ。

Switch

未確認

MAC

  • LAN: 18:C2:BF:xx:xx:E0 (board_data, mac (text))
  • WAN: 18:C2:BF:xx:xx:E0 (board_data, mac (text))
  • 2.4G: 18:C2:BF:xx:xx:E1 (Factory, 0x4 (hex))
  • 5G: 18:C2:BF:xx:xx:E4 (Factory, 0x8004 (text))

U-Boot

  • help
    MT7621 # help
    ?       - alias for 'help'
    bootm   - boot application image from memory
    cp      - memory copy
    erase   - erase SPI FLASH memory
    go      - start application at address 'addr'
    help    - print online help
    loadb   - load binary file over serial line (kermit mode)
    md      - memory display
    mdio   - Ralink PHY register R/W command !!
    mm      - memory modify (auto-incrementing)
    nm      - memory modify (constant address)
    printenv- print environment variables
    reset   - Perform RESET of the CPU
    rf      - read/write rf register
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    spi     - spi command
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version
    

  • version
    MT7621 # version
    
    U-Boot 1.1.3 (Aug  5 2016 - 17:01:25) 0.02
    

  • printenv
    MT7621 # printenv
    bootcmd=tftp
    bootdelay=5
    baudrate=57600
    ethaddr="00:AA:BB:CC:DD:10"
    ipaddr=192.168.11.1
    serverip=192.168.11.2
    bootfile="linux.trx-recovery"
    bootpartition=0
    bootversion=0.02
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 214/4092 bytes
    

Kernel

  • uname -a
    root@localhost:/# uname -a
    Linux localhost 2.6.36 #1 SMP Fri Dec 7 12:26:30 CST 2018 mips GNU/Linux
    

  • cat /proc/version
    root@localhost:/# cat /proc/version
    Linux version 2.6.36 (*******_*****@***-build-01) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #1 SMP Fri Dec 7 12:26:30 CST 2018
    

  • cat /proc/cpuinfo
    root@localhost:/# cat /proc/cpuinfo
    system type             : MT7621
    processor               : 0
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 583.68
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0004, 0x0003, 0x0003]
    ASEs implemented        : mips16 dsp mt
    shadow register sets    : 1
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
    processor               : 1
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 583.68
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0003]
    ASEs implemented        : mips16 dsp mt
    shadow register sets    : 1
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
    processor               : 2
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 583.68
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented        : mips16 dsp mt
    shadow register sets    : 1
    core                    : 1
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
    processor               : 3
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 583.68
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0ffb, 0x0ffb]
    ASEs implemented        : mips16 dsp mt
    shadow register sets    : 1
    core                    : 1
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/meminfo
    root@localhost:/# cat /proc/meminfo 
    MemTotal:         122624 kB
    MemFree:           62796 kB
    Buffers:            3636 kB
    Cached:            11320 kB
    SwapCached:            0 kB
    Active:            12084 kB
    Inactive:           9920 kB
    Active(anon):       7268 kB
    Inactive(anon):      480 kB
    Active(file):       4816 kB
    Inactive(file):     9440 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:          7048 kB
    Mapped:             3816 kB
    Shmem:               700 kB
    Slab:              26816 kB
    SReclaimable:       2980 kB
    SUnreclaim:        23836 kB
    KernelStack:         896 kB
    PageTables:          732 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       61312 kB
    Committed_AS:      16496 kB
    VmallocTotal:    1048372 kB
    VmallocUsed:        9736 kB
    VmallocChunk:    1037932 kB
    

  • cat /proc/mtd
    root@localhost:/# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 01000000 00010000 "ALL"
    mtd1: 00030000 00010000 "Bootloader"
    mtd2: 00010000 00010000 "Config"
    mtd3: 00010000 00010000 "Factory"
    mtd4: 007c0000 00010000 "Kernel"
    mtd5: 0053b8f0 00010000 "RootFS"
    mtd6: 007c0000 00010000 "Kernel2"
    mtd7: 0053b8f0 00010000 "RootFS2"
    mtd8: 00010000 00010000 "glbcfg"
    mtd9: 00010000 00010000 "board_data"
    

  • switch –help
    swconfigコマンドは存在せず。

    root@localhost:/# switch --help
    Usage:
     switch acl etype add [ethtype] [portmap]              - drop etherytype packets
     switch acl dip add [dip] [portmap]                    - drop dip packets
     switch acl dip meter [dip] [portmap][meter:kbps]      - rate limit dip packets
     switch acl dip trtcm [dip] [portmap][CIR:kbps][CBS][PIR][PBS] - TrTCM dip packets
     switch acl port add [sport] [portmap]           - drop src port packets
     switch acl L4 add [2byes] [portmap]             - drop L4 packets with 2bytes payload
     switch add [mac] [portmap]                  - add an entry to switch table
     switch add [mac] [portmap] [vlan id]        - add an entry to switch table
     switch add [mac] [portmap] [vlan id] [age]  - add an entry to switch table
     switch clear                                - clear switch table
     switch del [mac]                            - delete an entry from switch table
     switch del [mac] [fid]                  - delete an entry from switch table
     switch dip add [dip] [portmap]                  - add a dip entry to switch table
     switch dip del [dip]                        - del a dip entry to switch table
     switch dip dump                                 - dump switch dip table
     switch dip clear                                - clear switch dip table
     switch dump            - dump switch table
     switch ingress-rate on [port] [Kbps]        - set ingress rate limit on port 0~4 
     switch egress-rate on [port] [Kbps]         - set egress rate limit on port 0~4 
     switch ingress-rate off [port]              - del ingress rate limit on port 0~4 
     switch egress-rate off [port]               - del egress rate limit on port 0~4
     switch filt [mac]                           - add a SA filtering entry (with portmap 1111111) to switch table
     switch filt [mac] [portmap]                 - add a SA filtering entry to switch table
     switch filt [mac] [portmap] [vlan id]       - add a SA filtering entry to switch table
     switch filt [mac] [portmap] [vlan id] [age] - add a SA filtering entry to switch table
     switch igmpsnoop on [Query Interval] [default router portmap] - turn on IGMP snoop and  router port learning (Query Interval 1~255)
     switch igmpsnoop off                                  - turn off IGMP snoop and router port learning
     switch igmpsnoop enable [port#]                       - enable IGMP HW leave/join/Squery/Gquery
     switch igmpsnoop disable [port#]                      - disable IGMP HW leave/join/Squery/Gquery
     switch mymac [mac] [portmap]                  - add a mymac entry to switch table
     switch mirror monitor [portnumber]            - enable port mirror and indicate monitor port number
     switch mirror target [portnumber] [0:off, 1:rx, 2:tx, 3:all]  - set port mirror target
     switch phy [phy_addr]                   - dump phy register of specific port
     switch phy mt7530                       - dump mt7530 phy registers
     switch phy                                      - dump all phy registers
     switch pvid [port] [pvid]                - set pvid on port 0~4 
     switch reg r [offset]                       - register read from offset
     switch reg w [offset] [value]               - register write value to offset
     switch reg d [offset]                       - register dump
     switch sip add [sip] [dip] [portmap]            - add a sip entry to switch table
     switch sip del [sip] [dip]                          - del a sip entry to switch table
     switch sip dump                                 - dump switch sip table
     switch sip clear                                - clear switch sip table
     switch tag on [port]                        - keep vlan tag for egress packet on prot 0~4
     switch tag off [port]                       - remove vlan tag for egress packet on port 0~4
     switch vlan dump                            - dump switch table
     switch vlan set [vlan idx (NULL)][vid] [portmap]  - set vlan id and associated member
    

  • switch vlan dump
    (router mode)

    root@localhost:/# switch vlan dump
      vid  fid  portmap    s-tag
        1    0  -1111-11       0
        2    0  1----1--       0
        3    0  invalid
        4    0  invalid
        5    0  invalid
        6    0  invalid
        7    0  invalid
        8    0  invalid
        9    0  invalid
       10    0  invalid
       11    0  invalid
       12    0  invalid
       13    0  invalid
       14    0  invalid
       15    0  invalid
       16    0  invalid
    

  • cat /etc/gpio/button_map.txt
    root@localhost:/# cat /etc/gpio/button_map.txt 
    #button should be define link this
    #name=gpio
    #active=[low/high]
    #spec=duration
    #the order of the keywords are critical
    
    #define the button "wps"
    wps_sgl=6
    active=low
    spec=1000
    
    #define the button "default"
    default_sgl=3
    active=low
    spec=3000
    
    #define the button power
    poweroff_sgl=18
    active=high
    spec=300
    
    #define the switch "auto mode"
    automode=7
    active=low
    spec=0
    
    #define 1st pin of swtich "ap mode"
    apmode_sw0=12
    cowork=10
    spec=0
    
    #define 2nd pin of switch "ap mode"
    apmode_sw1=10
    cowork=12
    spec=0
    
  • bootlog
    ===================================================================
                    MT7621   stage1 code 10:33:55 (ASIC)
                    CPU=500000000 HZ BUS=166666666 HZ
    ==================================================================
    Change MPLL source from XTAL to CR...
    do MEMPLL setting..
    MEMPLL Config : 0x11100000
    3PLL mode + External loopback
    === XTAL-40Mhz === DDR-1200Mhz ===
    PLL2 FB_DL: 0xc, 1/0 = 539/485 31000000
    PLL3 FB_DL: 0x16, 1/0 = 754/270 59000000
    PLL4 FB_DL: 0x17, 1/0 = 532/492 5D000000
    do DDR setting..[01F40000]
    Apply DDR3 Setting...(use customer AC)
              0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
          --------------------------------------------------------------------------------
    0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1
    000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
    000F:|    0    0    0    0    1    1    1    1    1    1    1    1    1    1    0    0
    0010:|    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0
    0011:|    1    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0
    0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    rank 0 coarse = 15
    rank 0 fine = 72
    B:|    0    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0
    opt_dle value:10
    DRAMC_R0DELDLY[018]=00001E1F
    ==================================================================
                    RX      DQS perbit delay software calibration 
    ==================================================================
    1.0-15 bit dq delay value
    ==================================================================
    bit|     0  1  2  3  4  5  6  7  8  9
    --------------------------------------
    0 |    13 13 15 15 11 12 13 11 9 10 
    10 |    12 11 13 13 11 12 
    --------------------------------------
    
    ==================================================================
    2.dqs window
    x=pass dqs delay value (min~max)center 
    y=0-7bit DQ of every group
    input delay:DQS0 =31 DQS1 = 30
    ==================================================================
    bit     DQS0     bit      DQS1
    0  (1~59)30  8  (1~56)28
    1  (1~57)29  9  (1~55)28
    2  (1~61)31  10  (1~60)30
    3  (1~61)31  11  (0~57)28
    4  (1~60)30  12  (1~60)30
    5  (1~59)30  13  (1~56)28
    6  (1~61)31  14  (1~60)30
    7  (1~60)30  15  (1~57)29
    ==================================================================
    3.dq delay value last
    ==================================================================
    bit|    0  1  2  3  4  5  6  7  8   9
    --------------------------------------
    0 |    14 15 15 15 12 13 13 12 11 12 
    10 |    12 13 13 15 11 13 
    ==================================================================
    ==================================================================
         TX  perbyte calibration 
    ==================================================================
    DQS loop = 15, cmp_err_1 = ffff0000 
    dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1 
    dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2 
    DQ loop=15, cmp_err_1 = ffff01ae
    DQ loop=14, cmp_err_1 = ffff0180
    DQ loop=13, cmp_err_1 = ffff0180
    DQ loop=12, cmp_err_1 = ffff0000
    dqs_perbyte_dly.last_dqdly_pass[0]=12,  finish count=1 
    dqs_perbyte_dly.last_dqdly_pass[1]=12,  finish count=2 
    byte:0, (DQS,DQ)=(9,8)
    byte:1, (DQS,DQ)=(9,8)
    20,data:99
    [EMI] DRAMC calibration passed
    
    ===================================================================
                    MT7621   stage1 code done 
                    CPU=500000000 HZ BUS=166666666 HZ
    ===================================================================
    
    
    U-Boot 1.1.3 (Aug  5 2016 - 17:01:25) 0.02
    
    Board: Ralink APSoC DRAM:  128 MB
    relocate_code Pointer at: 87fb8000
    
    Config XHCI 40M PLL 
    ******************************
    Software System Reset Occurred
    ******************************
    flash manufacture id: ef, device id 40 18
    find flash: W25Q128BV
    ============================================ 
    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=3 OCP Ratio=1/3
    Flash component: 16 MBytes NOR Flash
    Date:Aug  5 2016  Time:17:01:25
    ============================================ 
    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 =128 Mbytes
    #Reset_MT7530
    set LAN/WAN WLLLL
    
    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 Flash0.
    ## Booting image at bc050000 ...
    
    =================================================
    Check image validation:
    Image1 Trx Check --> 
    ## check_trx, crc=-1234505007, *crc_ret=-1234505007.
    OK
    Image1 Header Magic Number --> OK
    Image1 Header Checksum --> OK
    Image1 Data Checksum --> OK
    
    =================================================
    
    =================================================
    Check image validation:
    Image2 Trx Check --> 
    ## check_trx, crc=-1234505007, *crc_ret=-1234505007.
    OK
    Image2 Header Magic Number --> OK
    Image2 Header Checksum --> OK
    Image2 Data Checksum --> OK
    
    =================================================
    ## check Image1 return 0, check Image2 return 0, Image1 crc=-1234505007, Image2 crc=-1234505007.
    Image1 is ok!
    Image2 is ok and same as Image1!
       Image Name:   MIPS OpenWrt Linux-2.6.36
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    2639537 Bytes =  2.5 MB
       Load Address: 80001000
       Entry Point:  8000d1d0
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 8000d1d0) ...
    ## Giving linux memsize in MB, 128
    
    Starting kernel ...
    
    
    LINUX started...
    
     THIS IS ASIC
    
    SDK 5.0.S.0
    Linux version 2.6.36 (jingwei_liang@sw3-build-01) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #1 SMP Fri Dec 7 12:26:30 CST 2018
    
     The CPU feqenuce set to 880 MHz
    GCMP present
    CPU revision is: 0001992f (MIPS 1004Kc)
    Software DMA cache coherency
    Determined physical RAM map:
     memory: 08000000 @ 00000000 (usable)
    Zone PFN ranges:
      Normal   0x00000000 -> 0x00008000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
        0: 0x00000000 -> 0x00008000
    Detected 3 available secondary CPU(s)
    PERCPU: Embedded 7 pages/cpu @81103000 s6464 r8192 d14016 u65536
    pcpu-alloc: s6464 r8192 d14016 u65536 alloc=16*4096
    pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
    Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock5 init=/sbin/preinit rootfstype=squashfs,jffs2
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    Writing ErrCtl register=000492b1
    Readback ErrCtl register=000492b1
    Memory: 122440k/131072k available (3940k kernel code, 8632k reserved, 2433k data, 184k init, 0k highmem)
    Hierarchical RCU implementation.
            Verbose stalled-CPUs detection is disabled.
    NR_IRQS:128
    Trying to install interrupt handler for IRQ24
    Trying to install interrupt handler for IRQ25
    Trying to install interrupt handler for IRQ22
    Trying to install interrupt handler for IRQ9
    Trying to install interrupt handler for IRQ10
    Trying to install interrupt handler for IRQ11
    Trying to install interrupt handler for IRQ12
    Trying to install interrupt handler for IRQ13
    Trying to install interrupt handler for IRQ14
    Trying to install interrupt handler for IRQ16
    Trying to install interrupt handler for IRQ17
    Trying to install interrupt handler for IRQ18
    Trying to install interrupt handler for IRQ19
    Trying to install interrupt handler for IRQ20
    Trying to install interrupt handler for IRQ21
    Trying to install interrupt handler for IRQ23
    Trying to install interrupt handler for IRQ26
    Trying to install interrupt handler for IRQ27
    Trying to install interrupt handler for IRQ28
    Trying to install interrupt handler for IRQ15
    Trying to install interrupt handler for IRQ8
    Trying to install interrupt handler for IRQ29
    Trying to install interrupt handler for IRQ30
    Trying to install interrupt handler for IRQ31
    console [ttyS1] enabled
    Calibrating delay loop... 577.53 BogoMIPS (lpj=1155072)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    launch: starting cpu1
    launch: cpu1 gone!
    CPU revision is: 0001992f (MIPS 1004Kc)
    Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    launch: starting cpu2
    launch: cpu2 gone!
    CPU revision is: 0001992f (MIPS 1004Kc)
    Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    launch: starting cpu3
    launch: cpu3 gone!
    CPU revision is: 0001992f (MIPS 1004Kc)
    Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    Brought up 4 CPUs
    Synchronize counters across 4 CPUs: done.
    NET: Registered protocol family 16
    release PCIe RST: RALINK_RSTCTRL = 7000000
    PCIE PHY initialize
    ***** Xtal 40MHz *****
    start MT7621 PCIe register access
    RALINK_RSTCTRL = 7000000
    RALINK_CLKCFG1 = 77ffeff8
    
    *************** MT7621 PCIe RC mode *************
    PCIE2 no card, disable it(RST&CLK)
    pcie_link status = 0x3
    RALINK_RSTCTRL= 3000000
    *** Configure Device number setting of Virtual PCI-PCI bridge ***
    RALINK_PCI_PCICFG_ADDR = 21007f2 -> 21007f2
    PCIE0 enabled
    PCIE1 enabled
    interrupt enable status: 300000
    Port 1 N_FTS = 1b105000
    Port 0 N_FTS = 1b105000
    config reg done
    init_rt2880pci done
    bio: create slab  at 0
    SCSI subsystem initialized
    pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
    pci 0000:00:01.0: BAR 0: can't assign mem (size 0x80000000)
    pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
    pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
    pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
    pci 0000:00:00.0: BAR 1: set to [mem 0x60200000-0x6020ffff] (PCI address [0x60200000-0x6020ffff]
    pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
    pci 0000:00:01.0: BAR 1: set to [mem 0x60210000-0x6021ffff] (PCI address [0x60210000-0x6021ffff]
    pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
    pci 0000:01:00.0: BAR 0: set to [mem 0x60000000-0x600fffff 64bit] (PCI address [0x60000000-0x600fffff]
    pci 0000:00:00.0: PCI bridge to [bus 01-01]
    pci 0000:00:00.0:   bridge window [io  disabled]
    pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
    pci 0000:00:00.0:   bridge window [mem pref disabled]
    pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
    pci 0000:02:00.0: BAR 0: set to [mem 0x60100000-0x601fffff 64bit] (PCI address [0x60100000-0x601fffff]
    pci 0000:00:01.0: PCI bridge to [bus 02-02]
    pci 0000:00:01.0:   bridge window [io  disabled]
    pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
    pci 0000:00:01.0:   bridge window [mem pref disabled]
    BAR0 at slot 0 = 0
    bus=0x0, slot = 0x0
    res[0]->start = 0
    res[0]->end = 0
    res[1]->start = 60200000
    res[1]->end = 6020ffff
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    BAR0 at slot 1 = 0
    bus=0x0, slot = 0x1
    res[0]->start = 0
    res[0]->end = 0
    res[1]->start = 60210000
    res[1]->end = 6021ffff
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    bus=0x1, slot = 0x0, irq=0x4
    res[0]->start = 60000000
    res[0]->end = 600fffff
    res[1]->start = 0
    res[1]->end = 0
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    bus=0x2, slot = 0x1, irq=0x18
    res[0]->start = 60100000
    res[0]->end = 601fffff
    res[1]->start = 0
    res[1]->end = 0
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    Switching to clocksource MIPS
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    UDP hash table entries: 128 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    4 CPUs re-calibrate udelay(lpj = 1167360)
    Load Kernel WDG Timer Module
    Load Ralink Timer0 Module
    Load Ralink Timer2 Module
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    fuse init (API version 7.15)
    msgmni has been set to 239
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
    io scheduler noop registered (default)
    Ralink gpio driver initialized
    @@@@@@#### buffalo_led_init initialized. 
    Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    serial8250: ttyS0 at MMIO 0x1e000d00 (irq = 27) is a 16550A
    serial8250: ttyS1 at MMIO 0x1e000c00 (irq = 26) is a 16550A
    brd: module loaded
    flash manufacture id: ef, device id 40 18
    W25Q128BV(ef 40180000) (16384 Kbytes)
    mtd .name = raspi, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
    in find_rootfs_mtd_partitions  off=0x00050000 end=0x00810000
    The  trx header  magic offset 0x00284710
    raspi: squash filesystem found at offset 0x002d4710
    Found image1 partition off 0x002d4710 size 0x0053b8f0
    in find_rootfs_mtd_partitions  off=0x00810000 end=0x00fd0000
    The  trx header  magic offset 0x00284710
    raspi: squash filesystem found at offset 0x00a94710
    Found image2 partition off 0x00a94710 size 0x0053b8f0
    Creating 10 MTD partitions on "raspi":
    0x000000000000-0x000001000000 : "ALL"
    0x000000000000-0x000000030000 : "Bootloader"
    0x000000030000-0x000000040000 : "Config"
    0x000000040000-0x000000050000 : "Factory"
    0x000000050000-0x000000810000 : "Kernel"
    0x0000002d4710-0x000000810000 : "RootFS"
    mtd: partition "RootFS" doesn't start on an erase block boundary -- force read-only
    0x000000810000-0x000000fd0000 : "Kernel2"
    0x000000a94710-0x000000fd0000 : "RootFS2"
    mtd: partition "RootFS2" doesn't start on an erase block boundary -- force read-only
    0x000000fd0000-0x000000fe0000 : "glbcfg"
    0x000000fe0000-0x000000ff0000 : "board_data"
    rdm_major = 253
    GMAC1_MAC_ADRH -- : 0x0000000c
    GMAC1_MAC_ADRL -- : 0x432880ed
    Ralink APSoC Ethernet Driver Initilization. v3.1  1024 rx/tx descriptors allocated, mtu = 1500!
    GMAC1_MAC_ADRH -- : 0x0000000c
    GMAC1_MAC_ADRL -- : 0x43288017
    PROC INIT OK!
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    PPP BSD Compression module registered
    PPP MPPE Compression module registered
    NET: Registered protocol family 24
    IMQ driver loaded successfully.
            Hooking IMQ after NAT on PREROUTING.
            Hooking IMQ before NAT on POSTROUTING.
    register mt_drv
    
    
    === pAd = c0182000, size = 3614952 ===
    
    PciHif.CSRBaseAddress =0xc0080000, csr_addr=0xc0080000!
    RTMPInitPCIeDevice():device_id=0x7615
    DriverOwn()::Try to Clear FW Own...
    DriverOwn()::Success to clear FW Own
    mt_pci_chip_cfg(): HWVer=0x8a10, FWVer=0x8a10, pAd->ChipID=0x7615
    mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
    RtmpChipOpsHook(492): Not support for HIF_MT yet! MACVersion=0x0
    mt7615_init()-->
    Use 1st iPAiLNA default bin.
    <--mt7615_init()
    ChipOpsMCUHook
    cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    cut_through_token_list_init(): 87e58308,87e58308
    cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    cut_through_token_list_init(): 87e58318,87e58318
    ChipID=0x7615
    mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
    RtmpChipOpsHook(492): Not support for HIF_MT yet! MACVersion=0x0
    mt7615_init()-->
    Use 2nd iPAiLNA default bin.
    <--mt7615_init()
    ChipOpsMCUHook
    cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    cut_through_token_list_init(): 873e4f88,873e4f88
    cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    cut_through_token_list_init(): 873e4f98,873e4f98
    skb_free start address is 0x87e6269c.
    free_txd: 06b88010, ei_local->cpu_ptr: 06B88000
     POOL  HEAD_PTR | DMA_PTR | CPU_PTR 
    ----------------+---------+--------
         0xa6b88000 0x06B88000 0x06B88000
    
    phy_qrx_ring = 0x06b81000, qrx_ring = 0xa6b81000
    
    phy_rx_ring0 = 0x06b84000, rx_ring0 = 0xa6b84000
    MT7530 Reset Completed!!
    change HW-TRAP to 0x117c8f
    set LAN/WAN WLLLL
    GMAC1_MAC_ADRH -- : 0x000018c2
    GMAC1_MAC_ADRL -- : 0xbf39c5e0
    GDMA2_MAC_ADRH -- : 0x0000000c
    GDMA2_MAC_ADRL -- : 0x43288016
    eth3: ===> VirtualIF_open
    MT7621 GE2 link rate to 1G
    CDMA_CSG_CFG = 81000000
    GDMA1_FWD_CFG = 20710000
    GDMA2_FWD_CFG = 20710000
    Disable flow control
    debug : Enter [BRCTL_ADD_IF] 
    add_if 00000000 ***************************
    device eth2 entered promiscuous mode
    br0: port 1(eth2) entering forwarding state
    br0: port 1(eth2) entering forwarding state
    GDMA2_MAC_ADRH -- : 0x000018c2
    GDMA2_MAC_ADRL -- : 0xbf39c5e0
    eth3: ===> VirtualIF_open
    DriverOwn()::Return since already in Driver Own...
    MacAddress1 = 00:00:00:00:00:00
    MacAddress2 = 00:00:00:00:00:00
    MacAddress3 = 00:00:00:00:00:00
    MacAddress4 = 00:00:00:00:00:00
    E2pAccessMode=2
    RTMPSetProfileParameters(): DBDC Mode=0
    cfg_mode=9
    cfg_mode=9
    wmode_band_equal(): Band Equal!
    APEdca0
    APEdca1
    APEdca2
    APEdca3
    APSDCapable[0]=0
    APSDCapable[1]=0
    APSDCapable[2]=0
    APSDCapable[3]=0
    APSDCapable[4]=0
    APSDCapable[5]=0
    APSDCapable[6]=0
    APSDCapable[7]=0
    APSDCapable[8]=0
    APSDCapable[9]=0
    APSDCapable[10]=0
    APSDCapable[11]=0
    APSDCapable[12]=0
    APSDCapable[13]=0
    APSDCapable[14]=0
    APSDCapable[15]=0
    default ApCliAPSDCapable[0]=0
    default ApCliAPSDCapable[1]=0
    [RTMPSetProfileParameters]Disable DFS/Zero wait=0/0
    AndesSendCmdMsg: Could not send in band command due to diablefRTMP_ADAPTER_MCU_SEND_IN_BAND_CMD
    HT: Ext Channel = ABOVE
    HT: greenap_cap = 0
    IcapMode = 0
    WtcSetMaxStaNum: MaxStaNum:87, BssidNum:5, WdsNum:0, ApcliNum:2, MaxNumChipRept:32, MinMcastWcid:121
    Top Init Done!
    Use dev_alloc_skb
    RX[0] DESC a779e000 size = 8192
    RX[1] DESC a77a0000 size = 8192
    Hif Init Done!
    ctl->txq = c04f2b18
    ctl->rxq = c04f2b24
    ctl->ackq = c04f2b30
    ctl->kickq = c04f2b3c
    ctl->tx_doneq = c04f2b48
    ctl->rx_doneq = c04f2b54
    mt7615_fw_prepare():FW(8a10), HW(8a10), CHIPID(7615))
    mt7615_fw_prepare(2356): MT7615_E3, USE E3 patch and ram code binary image
    AndesMTLoadRomMethodFwDlRing(1035), cap->rom_patch_len(3150)
    AndesRestartCheck: Current TOP_MISC2(0x1)
    AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
    20160419154809a
    
    platform = 
    ALPS
    hw/sw version = 
    8a108a10
    patch version = 
    00000010
    Patch SEM Status=2
    MtCmdPatchSemGet:(ret = 0)
    
    Patch is not ready && get semaphore success, SemStatus(2)
    EventGenericEventHandler: CMD Success
    MtCmdAddressLenReq:(ret = 0)
    MtCmdPatchFinishReq
    EventGenericEventHandler: CMD Success
    Send checksum req..
    Patch SEM Status=3
    MtCmdPatchSemGet:(ret = 0)
    
    Release patch semaphore, SemStatus(3)
    AndesMTEraseRomPatch
    WfMcuHwInit: Before NICLoadFirmware, check IcapMode=0
    AndesMTLoadFwMethodFwDlRing(809), cap->fw_len(452104)
    Build Date:_201803301729
    Build Date:_201803301729
    AndesRestartCheck: Current TOP_MISC2(0x1)
    AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
    EventGenericEventHandler: CMD Success
    MtCmdAddressLenReq:(ret = 0)
    EventGenericEventHandler: CMD Success
    MtCmdAddressLenReq:(ret = 0)
    MtCmdFwStartReq: override = 1, address = 540672
    EventGenericEventHandler: CMD Success
    Build Date:_201607011611
    EventGenericEventHandler: CMD Success
    MtCmdAddressLenReq:(ret = 0)
    MtCmdFwStartReq: override = 4, address = 0
    EventGenericEventHandler: CMD Success
    WfMcuHwInit: NICLoadFirmware OK, Check IcapMode=0
    MCU Init Done!
    efuse_probe: efuse = 10000212
    RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
    RtmpEepromGetDefault::e2p_dafault=1
    RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
    NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
    ESW: Link Status Changed - Port0 Link UP
    ESW: Link Status Changed - Port3 Link UP
    Country Region from e2p = 101
    mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
    rtmp_read_txpwr_from_eeprom(224): Don't Support this now!
    RTMPReadTxPwrPerRate(1381): Don't Support this now!
    RcRadioInit(): DbdcMode=0, ConcurrentBand=1
    RcRadioInit(): pRadioCtrl=87640444,Band=0,rfcap=3,channel=1,PhyMode=2
    MtCmdSetDbdcCtrl:(ret = 0)
    Band Rf: 1, Phy Mode: 2
    AntCfgInit(2615): Not support for HIF_MT yet!
    MtSingleSkuLoadParam: RF_LOCKDOWN Feature ON !!!
    MtSingleSkuLoadParam: SKU Table index = 0 
    MtBfBackOffLoadTable: RF_LOCKDOWN Feature ON !!!
    MtBfBackOffLoadTable: BFBackoff Table index = 0 
    EEPROM Init Done!
    mt_mac_init()-->
    mt_mac_pse_init(2715): Don't Support this now!
    mt7615_init_mac_cr()-->
    mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
    mt7615_init_mac_cr(): TMAC_TRCR1=0x82783c8c
    MtAsicSetMacMaxLen(1288): Not finish Yet!
    
    MtCmdSetMacTxRx:(ret = 0)
    mt7615_apply_dcoc() : reload Central CH [1] BW [0] from cetral freq [2417]  offset [2200] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [1] BW [0] from cetral freq [2422] i[44] offset [4b20] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [2] BW [0] from cetral freq [2417]  offset [2200] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [2] BW [0] from cetral freq [2422] i[44] offset [4b20] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [3] BW [0] from cetral freq [2417]  offset [2200] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [3] BW [0] from cetral freq [2422] i[44] offset [4b20] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [4] BW [0] from cetral freq [2432]  offset [2300] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [4] BW [0] from cetral freq [2422] i[44] offset [4b20] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    :MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
    mt7615_apply_dcoc() : reload Central CH [5] BW [0] from cetral freq [2432]  offset [2300] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [5] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [6] BW [0] from cetral freq [2432]  offset [2300] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [6] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [7] BW [0] from cetral freq [2447]  offset [2400] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [7] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [8] BW [0] from cetral freq [2447]  offset [2400] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [8] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [9] BW [0] from cetral freq [2447]  offset [2400] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [9] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [10] BW [0] from cetral freq [2467]  offset [2500] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [10] BW [0] from cetral freq [2462] i[46] offset [4cd0] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [11] BW [0] from cetral freq [2467]  offset [2500] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [11] BW [0] from cetral freq [2462] i[46] offset [4cd0] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0 
    BW = 0,TXStream = 4, RXStream = 4, scan(1)
    ====================================================================
    Channel   1 : Busy Time =   2021, Skip Channel = FALSE, BwCap = TRUE
    Channel   2 : Busy Time =   2492, Skip Channel = FALSE, BwCap = TRUE
    Channel   3 : Busy Time =   2300, Skip Channel = FALSE, BwCap = TRUE
    Channel   4 : Busy Time =   1833, Skip Channel = FALSE, BwCap = TRUE
    Channel   5 : Busy Time =   1394, Skip Channel = FALSE, BwCap = TRUE
    Channel   6 : Busy Time =  10251, Skip Channel = FALSE, BwCap = TRUE
    Channel   7 : Busy Time =  12595, Skip Channel = FALSE, BwCap = TRUE
    Channel   8 : Busy Time =  10846, Skip Channel = FALSE, BwCap = TRUE
    Channel   9 : Busy Time =   9892, Skip Channel = FALSE, BwCap = TRUE
    Channel  10 : Busy Time =  10472, Skip Channel = FALSE, BwCap = TRUE
    Channel  11 : Busy Time =   2445, Skip Channel = FALSE, BwCap = TRUE
    ====================================================================
    Rule 3 Channel Busy time value : Select Primary Channel 5 
    Rule 3 Channel Busy time value : Min Channel Busy = 1394
    Rule 3 Channel Busy time value : BW = 20
    ApAutoChannelAtBootUprxq = c0972b24
    ctl->ackq = c0972b30
    ctl->kickq = c0972b3c
    ctl->tx_doneq = c0972b48
    ctl->rx_doneq = c0972b54
    mt7615_fw_prepare():FW(8a10), HW(8a10), CHIPID(7615))
    mt7615_fw_prepare(2356): MT7615_E3, USE E3 patch and ram code binary image
    AndesMTLoadRomMethodFwDlRing(1035), cap->rom_patch_len(3150)
    AndesRestartCheck: Current TOP_MISC2(0x1)
    AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
    20160419154809a
    
    platform = 
    ALPS
    hw/sw version = 
    8a108a10
    patch version = 
    00000010
    Patch SEM Status=2
    MtCmdPatchSemGet:(ret = 0)
    
    Patch is not ready && get semaphore success, SemStatus(2)
    EventGenericEventHandler: CMD Success
    MtCmdAddressLenReq:(ret = 0)
    MtCmdPatchFinishReq
    EventGenericEventHandler: CMD Success
    Send checksum req..
    Patch SEM Status=3
    MtCmdPatchSemGet:(ret = 0)
    
    Release patch semaphore, SemStatus(3)
    AndesMTEraseRomPatch
    WfMcuHwInit: Before NICLoadFirmware, check IcapMode=0
    AndesMTLoadFwMethodFwDlRing(809), cap->fw_len(452104)
    Build Date:_201803301729
    Build Date:_201803301729
    AndesRestartCheck: Current TOP_MISC2(0x1)
    AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
    EventGenericEventHandler: CMD Success
    MtCmdAddressLenReq:(ret = 0)
    EventGenericEventHandler: CMD Success
    MtCmdAddressLenReq:(ret = 0)
    MtCmdFwStartReq: override = 1, address = 540672
    EventGenericEventHandler: CMD Success
    Build Date:_201607011611
    EventGenericEventHandler: CMD Success
    MtCmdAddressLenReq:(ret = 0)
    MtCmdFwStartReq: override = 4, address = 0
    EventGenericEventHandler: CMD Success
    WfMcuHwInit: NICLoadFirmware OK, Check IcapMode=0
    MCU Init Done!
    efuse_probe: efuse = 10000212
    RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
    RtmpEepromGetDefault::e2p_dafault=1
    RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
    NVM is FLASH mode. dev_idx [1] FLASH OFFSET [0x8000]
    Country Region from e2p = 101
    mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
    rtmp_read_txpwr_from_eeprom(224): Don't Support this now!
    RTMPReadTxPwrPerRate(1381): Don't Support this now!
    RcRadioInit(): DbdcMode=0, ConcurrentBand=1
    RcRadioInit(): pRadioCtrl=873e1444,Band=0,rfcap=3,channel=1,PhyMode=2
    MtCmdSetDbdcCtrl:(ret = 0)
    Band Rf: 1, Phy Mode: 2
    AntCfgInit(2615): Not support for HIF_MT yet!
    MtSingleSkuLoadParam: RF_LOCKDOWN Feature ON !!!
    MtSingleSkuLoadParam: SKU Table index = 0 
    MtBfBackOffLoadTable: RF_LOCKDOWN Feature ON !!!
    MtBfBackOffLoadTable: BFBackoff Table index = 0 
    EEPROM Init Done!
    mt_mac_init()-->
    mt_mac_pse_init(2715): Don't Support this now!
    mt7615_init_mac_cr()-->
    mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
    mt7615_init_mac_cr(): TMAC_TRCR1=0x82783c8c
    MtAsicSetMacMaxLen(1288): Not finish Yet!
    
    MtCmdSetMacTxRx:(ret = 0)
    mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 36,control_ch2=0, central_chl = 42 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 44,control_ch2=0, central_chl = 42 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 48,control_ch2=0, central_chl = 42 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    :MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
    mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 52,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 56,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 60,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 64,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [106] BW [2] from cetral freq [5530]  offset [1d00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [106] BW [2] from cetral freq [5540] i[25] offset [3b18] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 100,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [106] BW [2] from cetral freq [5530]  offset [1d00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [106] BW [2] from cetral freq [5540] i[25] offset [3b18] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 104,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [106] BW [2] from cetral freq [5530]  offset [1d00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [106] BW [2] from cetral freq [5540] i[25] offset [3b18] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 108,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [106] BW [2] from cetral freq [5530]  offset [1d00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [106] BW [2] from cetral freq [5540] i[25] offset [3b18] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 112,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [122] BW [2] from cetral freq [5610]  offset [1e00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [122] BW [2] from cetral freq [5620] i[29] offset [3e78] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 116,control_ch2=0, central_chl = 122 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [122] BW [2] from cetral freq [5610]  offset [1e00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [122] BW [2] from cetral freq [5620] i[29] offset [3e78] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 120,control_ch2=0, central_chl = 122 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [122] BW [2] from cetral freq [5610]  offset [1e00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [122] BW [2] from cetral freq [5620] i[29] offset [3e78] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 124,control_ch2=0, central_chl = 122 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    mt7615_apply_dcoc() : reload Central CH [122] BW [2] from cetral freq [5610]  offset [1e00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [122] BW [2] from cetral freq [5620] i[29] offset [3e78] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 128,control_ch2=0, central_chl = 122 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(1)
    ====================================================================
    Channel  36 : Busy Time =   1087, Skip Channel = FALSE, BwCap = TRUE
    Channel  40 : Busy Time =   2110, Skip Channel = FALSE, BwCap = TRUE
    Channel  44 : Busy Time =    599, Skip Channel = FALSE, BwCap = TRUE
    Channel  48 : Busy Time =   1352, Skip Channel = FALSE, BwCap = TRUE
    Channel  52 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    Channel  56 : Busy Time =    187, Skip Channel = FALSE, BwCap = TRUE
    Channel  60 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    Channel  64 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    Channel 100 : Busy Time =    219, Skip Channel = FALSE, BwCap = TRUE
    Channel 104 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    Channel 108 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    Channel 112 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    Channel 116 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    Channel 120 : Busy Time =    484, Skip Channel = FALSE, BwCap = TRUE
    Channel 124 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    Channel 128 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    ====================================================================
    Rule 3 Channel Busy time value : Select Primary Channel 52 
    Rule 3 Channel Busy time value : Min Channel Busy = 187
    Rule 3 Channel Busy time value : BW = 80
    ApAutoChannelAtBootUp<-----------------
    MtAsicSetChBusyStat(840): Not support for HIF_MT yet!
    HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:49,Channel=52
    CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=49/49, support 19 channels
    wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
     LinkToOmacIdx = 0, LinkToWdevType = 1
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 8196,                 CmdBssInfoBmcRate.u2McTransmit = 8196
    LeadTimeForBcn, OmacIdx = 0, WDEV_WITH_BCN_ABILITY
    [RadarStateCheck]Set into RD_SILENCE_MODE! 
    MtCmdTxPowerSKUCtrl: fgTxPowerSKUEn = 0
    MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn = 0
    MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn = 0
    mt7615_bbp_adjust():rf_bw=2, ext_ch=1, PrimCh=52, HT-CentCh=54, VHT-CentCh=58
    mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00] 
    MtCmdGetRXDCOCCalResult:(ret = 0)
    mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8] 
    MtCmdGetTXDPDCalResult:(ret = 0)
    MtCmdChannelSwitch: control_chl = 52,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0 
    BW = 2,TXStream = 4, RXStream = 4, scan(0)
    ap_phy_rrm_init_byRf(): AP Set CentralFreq at 58(Prim=52, HT-CentCh=54, VHT-CentCh=58, BBP_BW=2)
    [WrapDfsRadarDetectStart]: Band0Ch is 52[WrapDfsRadarDetectStart]: Band1Ch is 0MtAsicSetRalinkBurstMode(2594): Not support for HIF_MT yet!
    MtAsicSetPiggyBack(777): Not support for HIF_MT yet!
    MtAsicSetTxPreamble(2573): Not support for HIF_MT yet!
    Main bssid = 18:c2:bf:39:c5:e4
    AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
    MtCmdSetMacTxRx:(ret = 0)
    MCS Set = ff ff ff ff 01
    MtCmdSetMacTxRx:(ret = 0)
    <==== mt_wifi_init, Status=0
    MtCmdEDCCACtrl: BandIdx: 0, EDCCACtrl: 1 
    MtCmdEDCCACtrl: BandIdx: 1, EDCCACtrl: 1 
    WtcSetMaxStaNum: MaxStaNum:87, BssidNum:5, WdsNum:0, ApcliNum:2, MaxNumChipRept:32, MinMcastWcid:121
    red_is_enabled: set CR4/N9 RED Enable to 1.
    cp_support_is_enabled: set CR4 CP_SUPPORT to Mode 2.
    Generate UUID for apidx(0)
    UUID: c063412c, len = 16
    0x0000 : bc 32 9e 00 1d d8 11 b2 86 01 18 c2 bf 39 c5 e1 
    
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000100 ***************************
    device rai0 entered promiscuous mode
    br0: port 3(rai0) entering forwarding state
    br0: port 3(rai0) entering forwarding state
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 8196,                 CmdBssInfoBmcRate.u2McTransmit = 8196
    bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 8192,                 CmdBssInfoBmcRate.u2McTransmit = 8192
    Jan  1 00:00:31 miniupnpd[488]: WPS listening on port 53210
    mcsnoop: module license 'BUFFALO Inc. PROPRIETARY' taints kernel.
    Disabling lock debugging due to kernel taint
    mcsnoop: flush all snoop entry
    mcsnoop: Bridge Multicast Snooping module Ver0.1/20070912
    mcsnoop_br_ioctl_device:275: mcast_maxage 75000 / 250
    device eth2 left promiscuous mode
    br0: port 1(eth2) entering forwarding state
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000600 ***************************
    device eth2 entered promiscuous mode
    br0: port 1(eth2) entering forwarding state
    br0: port 1(eth2) entering forwarding state
    netwatchd uses obsolete (PF_INET,SOCK_PACKET)
    Jan  1 00:00:32 crond[555]: crond: crond (busybox 1.18.5) started, log level 8
    [WrapDfsRddReportHandle]:  Radar detected !!!!!!!!!!!!!!!!!
    MtAsicSetPiggyBack(777): Not support for HIF_MT yet!
    ExtEventBeaconLostHandler::FW LOG, Beacon lost (18:c2:bf:39:c5:e4), Reason 0x10
      Beacon lost - AP disabled!!!
    WifiSysGetBssInfoState(): BssInfoIdx 0 not found!!!
    WifiSysUpdateBssInfoState(): BssInfoIdx 0 not found!!!
    MtAsicSetRalinkBurstMode(2594): Not support for HIF_MT yet!
    MtAsicSetPiggyBack(777): Not support for HIF_MT yet!
    ntp.jst.mfeed.adMtAsicSetTxPreamble(2573): Not support for HIF_MT yet!
    .jp: Unknown hoswdev_attr_update(): wdevId0 = 18:c2:bf:39:c5:e4
    t
    MtCmdSetDbdcCtrl:(ret = 0)
    HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:49,Channel=104
    Link Status Changed - WAN Port Link UP
    

WSR-2533DHP2 pinctrlメモ(stock dts)

メーカーファームをバラしたら出てきたDeviceTreeからのpinctrl周りのメモ。

audiodefault
“pins_cmd_dat”

  • pinmux: 0x300 0x400 0x500 0x200 0x100
  • (pin num: 3, 4, 5, 2, 1)
  • drive-strength: 0xc
  • bias-pull-down
i2c0@0
“pins_bus”

  • pinmux: 0xe00 0xf00
  • (pin num: 14, 15)
  • bias-disable
mmc0default
“pins_cmd_dat”

  • pinmux: 0x2f02 0x3002 0x3102 0x3202 0x2802 0x2902 0x2a02 0x2b02 0x2c02
  • (pin num: 47, 48, 49, 50, 40, 41, 42, 43, 44)
  • input-enable
  • bias-pull-up

“pins_clk”

  • pinmux: 0x2d02
  • (pin num: 45)
  • bias-pull-down
mmc0@0
“pins_cmd_dat”

  • pinmux: 0x2f02 0x3002 0x3102 0x3202 0x2802 0x2902 0x2a02 0x2b02 0x2c02
  • (pin num: 47, 48, 49, 50, 40, 41, 42, 43, 44)
  • input-enable
  • drive-strength: 0x4
  • bias-pull-up

“pins_clk”

  • pinmux: 0x2d02
  • (pin num: 45)
  • drive-strength: 0x4
  • bias-pull-down: 0x66
mmc1default
“pins_cmd_dat”

  • pinmux: 0x1302 0x1202 0x1102 0x1002 0x1502
  • (pin num: 19, 18, 17, 16, 21)
  • input-enable
  • drive-strength: 0x8
  • bias-pull-up: 0x65

“pins_clk”

  • pinmux: 0x1402
  • (pin num: 20)
  • drive-strength: 0xc
  • bias-pull-down: 0x66

“pins_insert”

  • pinmux: 0x5101
  • (pin num: 81)
  • bias-pull-up
mmc1@0
“pins_cmd_dat”

  • pinmux: 0x1302 0x1202 0x1102 0x1002 0x1502
  • (pin num: 19, 18, 17, 16, 21)
  • input-enable
  • bias-pull-up: 0x65

“pins_clk”

  • pinmux: 0x1402
  • (pin num: 20)
  • bias-pull-down: 0x66
nanddefault
“pins_cmd_dat”

  • pinmux: 0x2500 0x2600 0x2700 0x2800 0x2900 0x2a00 0x2b00 0x2c00 0x2d00 0x2e00 0x2f00 0x3000 0x3100 0x3200
  • (pin num: 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50)
  • input-enable
  • drive-strength: 0x8
  • bias-pull-up
snand@0
“pins_cmd_dat”

  • pinmux: 0x802 0x902 0xb02 0xc02 0xd02
  • (pin num: 8, 9, 11, 12, 13)
  • input-enable
  • drive-strength: 0x10
  • bias-pull-up: 0x65

“pins_clk”

  • pinmux: 0xa02
  • (pin num: 10)
  • drive-strength: 0x10
  • bias-pull-down: 0x66
wbsysdefault
“pins_cmd_dat”

  • pinmux: 0x1301 0x1401
  • (pin num: 19, 20)
  • drive-strength: 0x10
wbsysepa
“pins_cmd_dat”

  • pinmux: 0x5b05 0x5c05 0x5d05 0x5e05 0x5f05 0x6005 0x6105 0x6205 0x6305 0x6405 0x4905 0x4a05 0x4b05 0x4c05 0x4d05 0x1605
  • (pin num: 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 73, 74, 75, 76, 77, 22)

OpenWrtのgpio-export関連メモ

最近投げたPRでツッコミがあったり、GPIOのexport関連がちょっと込み入った状況なので自分用にメモ。
OpenWrtプロジェクトの中でもexportの用途(RESET等)によってはどれを使うかが明確に決まっていない状況なので、どれを使うべきというのは断言できない。
本来RESETを制御するGPIOは “reset-gpios” が使用されるべきながら、OpenWrtのRTL836xドライバ等ではreset-gpiosの実装が無い(?)などのため、代替としてGPIOをexportすることで対処。

gpio-export

固定でGPIOのexportが必要な場合、OpenWrtで従来から使用されていた方法。
ただしmainline (Linux Kernel)ではrejectされており、あくまでOpenWrt独自の実装方法。

コード例

/ {
...
	gpio-export {
		compatible = "gpio-export";
		#size-cells = <0>;

		gpio_switch_reset {
			gpio-export,name = "buffalo:usb-power";
			gpio-export,output = <1>;
			gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
		};
	};
};

  

fixed-regulator

電圧固定のレギュレータ。USB Vbus用にGPIOをexportする場合はもちろんのこと、SwitchチップのRESETラインも実態としては同じように特定の電圧を流すかどうかなので、fixed-regulatorを使用してRESETライン用のexportを定義したコードもある。
しかしながら、RESETラインの場合regulatorの本来の用途とは異なるので、今はあまり推奨されない(?)
USB VBusの場合はこれを使用。

コード例

/ {
...
	reg_usb_vbus: reg_usb_vbus {
		compatible = "regulator-fixed";
		regulator-name = "usb_vbus";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
		enable-active-high;
	};
};
  

gpio-hog

OpenWrtのgpio-exportに似た実装で、mainlineに既に存在するもの。
Linux source code: Documentation/devicetree/bindings/gpio/gpio.txt (v4.14.106) – Bootlin
最近投げたPRで、前述の状況からOpenWrtでの実装が定まっていないため、DTS内で記述する方法としてこちらを提案された。

コード例

&gpio {
	rtl8367rb_reset {
		gpio-hog;
		gpios = <0 GPIO_ACTIVE_HIGH>;
		output-high;
		line-name = "rtl8367rb-reset";
	};
};
  

ath9kノード内の場合

&pcie {
	status = "okay";

	ath9k: wifi@0,0 {
		compatible = "pci168c,0030";
		reg = <0x0000 0 0 0 0>;
		qca,no-eeprom;
		#gpio-cells = <2>;
		gpio-controller;

		usb-hub-reset {
			gpio-hog;
			gpios = <10 GPIO_ACTIVE_HIGH>;
			output-high;
		};
	};
};
  

gpio-hog関連ログ(WN-AC733GR3の例)

[    0.489851] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.500886] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.513143] GPIO line 0 (rtl8367rb-reset) hogged as output/high
  

ユーザースペースでの実装

これまで書いたDeviceTree方面の実装とは別に、ブート時に実行されるスクリプトでGPIOのexportを設定するもの。正直なところ、この方法はあまり正確に把握していないので詳細は割愛。
target/linux/ramips/base-files/etc/board.d/03_gpio_switches
などが例らしい(?)。

WSR-2533DHP2

WG1200CRと同じく、縁があってサポート作業のためお借りできたもの。初となるMT7622機。このtargetのノウハウは無く、ゆっくり弄っていくのでメモ。

Switch

未確認
RTL8367S、OpenWrt / Linux Kernelにドライバ無し

MAC

  • LAN: 18:C2:BF:xx:xx:88 (board_data, mac (text))
  • WAN: 18:C2:BF:xx:xx:88 (board_data, mac (text))
  • 2.4G: 18:C2:BF:xx:xx:89 (Factory, 0x4 (hex))
  • 5G: 18:C2:BF:xx:xx:8C (Factory, 0x5004 (text))

U-Boot

カウントダウン中にスペースキーを押下するとautobootが停止

  • help
    MT7622> help
    ?       - alias for 'help'
    backup_message- print backup message.
    base    - print or set address offset
    bdinfo  - print Board Info structure
    boot    - boot default, i.e., run 'bootcmd'
    boot_to_ctp- boot to ctp
    bootd   - boot default, i.e., run 'bootcmd'
    bootm   - boot application image from memory
    bootmenu- ANSI terminal bootmenu
    bootp   - boot image via network using BOOTP/TFTP protocol
    chpart  - change active partition
    cmp     - memory compare
    coninfo - print console devices and information
    cp      - memory copy
    crc32   - checksum calculation
    ctp_check- check if ctp in load_addr is normal.
    download_setting- set download image file name , and device IP , server IP before upgrade
    dual_image_check- check if image broken and do recovery .
    echo    - echo args to console
    editenv - edit environment variable
    env     - environment handling commands
    esw_read- esw_read   - Dump external switch/GMAC status !!
    
    exit    - exit script
    false   - do nothing, unsuccessfully
    fdt     - flattened device tree utility commands
    filesize_check- check if filesize of the image that you want to upgrade is normal.
    go      - start application at address 'addr'
    help    - print command description/usage
    image_blks- read image size from img_size or image header if no specifying img_size, and divided by blk_size and save image blocks in image_blks variable.
    image_check- check if image in load_addr is normal.
    iminfo  - print header information for application image
    imxtract- extract a part of a multi-image
    invaild_env- need to invaild env.
    itest   - return true/false on integer compare
    loadb   - load binary file over serial line (kermit mode)
    loads   - load S-Record file over serial line
    loadx   - load binary file over serial line (xmodem mode)
    loady   - load binary file over serial line (ymodem mode)
    loop    - infinite loop on address range
    md      - memory display
    mdio    - mdio   - Ralink PHY register R/W command !!
    
    mm      - memory modify (auto-incrementing address)
    mtdparts- define flash/nand partitions
    mtk_image_blks- read image size from image header (MTK format) located at load_addr, divided by blk_size and save image blocks in image_blks variable.
    mw      - memory write (fill)
    nand    - NAND sub-system
    nboot   - boot from NAND device
    nm      - memory modify (constant address)
    nor     - nor   - nor flash command
    
    ping    - send ICMP ECHO_REQUEST to network host
    printenv- print environment variables
    reco_message- print recovery message.
    reg     - reg   - Ralink PHY register R/W command !!
    
    reset   - Perform RESET of the CPU
    run     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    serious_image_check- seriously check if image in load_addr is normal.
    setenv  - set environment variables
    showvar - print local hushshell variables
    sleep   - delay execution for some time
    snor    - snor   - spi-nor flash command
    
    source  - run script from memory
    test    - minimal test like /bin/sh
    tftpboot- boot image via network using TFTP protocol
    true    - do nothing, successfully
    uboot_check- check if uboot in load_addr is normal.
    version - print monitor, compiler and linker version
    

  • version
    MT7622> version
    
    U-Boot 2014.04-rc1 (Apr 18 2018 - 19:44:31) 0.05
    arm-linux-gcc (Buildroot 2014.11) 4.9.2
    GNU ld (GNU Binutils) 2.24
    

  • printenv
    MT7622> printenv
    arch=arm
    atf_filename=trustzone.bin
    baudrate=115200
    board=mt7622_evb
    board_name=mt7622_evb
    boot0=download_setting kernel;tftpboot ${loadaddr} ${kernel_filename}; bootm
    boot1=download_setting kernel;tftpboot ${loadaddr} ${kernel_filename};run boot_wr_img;run boot_rd_img;bootm
    boot10=download_setting flashimage;tftpboot ${loadaddr} ${flashimage_filename};run wr_flashimage;invaild_env
    boot2=dual_image_check;if test ${dual_image} = good; then run boot_rd_img;bootm;fi
    boot3=download_setting uboot;tftpboot ${loadaddr} ${uboot_filename};run wr_uboot;invaild_env
    boot4=loadb;run wr_uboot;invaild_env
    boot5=download_setting atf;tftpboot ${loadaddr} ${atf_filename};run wr_atf
    boot6=download_setting preloader;tftpboot ${loadaddr} ${preloader_filename};run wr_pl
    boot7=download_setting hdr;tftpboot ${loadaddr} ${hdr_filename};run wr_rom_hdr
    boot8=download_setting ctp;tftpboot ${loadaddr} ${ctp_filename};run wr_ctp
    boot9=run boot_rd_ctp;boot_to_ctp
    boot_rd_ctp=nand read 0x40000000 0x1400000 3000000
    boot_rd_img=nand read ${loadaddr} 0x200000 2000;image_blks 2048;nand read ${loadaddr} 0x200000 ${img_align_size}
    boot_wr_img=filesize_check 0x2000000;if test ${filesize_result} = good; then image_blks 131072;nand erase.spread 0x200000  ${filesize};image_blks 2048;nand write ${loadaddr} 0x200000 ${filesize};fi
    bootcmd=No
    bootdelay=1
    bootfile=linux.trx-recovery
    bootmenu_0=1. System Load Linux to SDRAM via TFTP.=run boot0
    bootmenu_1=2. System Load Linux Kernel then write to Flash via TFTP.=run boot1
    bootmenu_2=3. Boot system code via Flash.=run boot2
    bootmenu_3=4. System Load U-Boot then write to Flash via TFTP.=run boot3
    bootmenu_delay=30
    bootversion=0.05
    cpu=armv7
    ctp_filename=ctp.bin
    ethact=mtk_eth
    ethaddr=00:0C:E7:11:22:33
    fdt_high=0x6c000000
    flashimage_filename=flashimage.bin
    gpt_filename=GPT_EMMC
    hdr_filename=hdr.binary
    invaild_env=no
    ipaddr=192.168.11.1
    kernel_filename=openwrt-mtkarm-squashfs-trx.bin
    loadaddr=0x4007FF28
    preloader_filename=preloader_fpga7622_64_ldvt.bin
    serverip=192.168.11.2
    soc=mt7622
    stderr=serial
    stdin=serial
    stdout=serial
    uboot_filename=u-boot-mtk.bin
    vendor=mediatek
    wr_atf=filesize_check 0x20000;if test ${filesize_result} = good; then mtk_image_blks 131072;nand erase.spread 0x80000   ${filesize} ;mtk_image_blks 2048;nand write ${loadaddr} 0x80000 ${filesize};fi
    wr_ctp=filesize_check 0xF20000;if test ${filesize_result} = good; then nand erase.spread 0x1400000 3000000 ;nand write ${loadaddr} 0x1400000 3000000;fi
    wr_flashimage=filesize_check 0x8000000;if test ${filesize_result} = good; then nand erase.chip ;nand write ${loadaddr} 0x0 8000000;fi
    wr_pl=filesize_check 0x40000;if test ${filesize_result} = good; then nand erase.spread 0x00000 40000 ;nand write ${loadaddr} 0x00000 40000;fi
    wr_rom_hdr=filesize_check 0x40000;if test ${filesize_result} = good; then nand erase.spread 0x00000 20000 ;nand write ${loadaddr} 0x00000 20000;fi
    wr_uboot=filesize_check 0x60000;if test ${filesize_result} = good; then mtk_image_blks 131072;nand erase.spread 0xC0000  ${filesize} ;mtk_image_blks 2048;nand write ${loadaddr} 0xC0000 ${filesize};fi
    
    Environment size: 3187/4092 bytes
    

  • nand info
    MT7622> nand info
    
    Device 0: nand0, sector size 128 KiB
      Page size      2048 b
      OOB size         64 b
      Erase size   131072 b
    

Kernel

  • uname -a
    root@localhost:/# uname -a
    Linux localhost 4.4.92 #0 SMP PREEMPT Thu Oct 11 08:29:22 UTC 2018 aarch64 GNU/Linux
    

  • cat /proc/version
    root@localhost:/# cat /proc/version
    Linux version 4.4.92 (*******_*****@***-build-02) (gcc version 5.4.0 (LEDE GCC 5.4.0 r0-d60d72c) ) #0 SMP PREEMPT Thu Oct 11 08:29:22 UTC 2018
    

  • cat /proc/cpuinfo
    root@localhost:/# cat /proc/cpuinfo
    processor       : 0
    BogoMIPS        : 25.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    
    processor       : 1
    BogoMIPS        : 25.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    

  • cat /proc/meminfo
    root@localhost:/# cat /proc/meminfo
    MemTotal:         236876 kB
    MemFree:          132444 kB
    MemAvailable:     152988 kB
    Buffers:            5752 kB
    Cached:            17168 kB
    SwapCached:            0 kB
    Active:            22528 kB
    Inactive:          12120 kB
    Active(anon):      12072 kB
    Inactive(anon):      480 kB
    Active(file):      10456 kB
    Inactive(file):    11640 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:         11764 kB
    Mapped:             6008 kB
    Shmem:               824 kB
    Slab:              19436 kB
    SReclaimable:       5624 kB
    SUnreclaim:        13812 kB
    KernelStack:        2160 kB
    PageTables:         1112 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:      118436 kB
    Committed_AS:     175044 kB
    VmallocTotal:   258867136 kB
    VmallocUsed:           0 kB
    VmallocChunk:          0 kB
    

  • cat /proc/mtd
    root@localhost:/# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00080000 00020000 "Preloader"
    mtd1: 00040000 00020000 "ATF"
    mtd2: 00080000 00020000 "Bootloader"
    mtd3: 00080000 00020000 "Config"
    mtd4: 00040000 00020000 "Factory"
    mtd5: 03a00000 00020000 "Kernel"
    mtd6: 0023ffe4 00020000 "kernel"
    mtd7: 037c0000 00020000 "rootfs"
    mtd8: 02fe0000 00020000 "rootfs_data"
    mtd9: 03a00000 00020000 "Kernel2"
    mtd10: 00200000 00020000 "glbcfg"
    mtd11: 00200000 00020000 "board_data"
    

  • ls -al /sys/class/gpio/
    root@localhost:/# ls -al /sys/class/gpio/
    drwxr-xr-x    2 root     root             0 Jan  1  1970 .
    drwxr-xr-x   34 root     root             0 Jan  1  1970 ..
    --w-------    1 root     root          4096 Jan  1  1970 export
    lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpio409 -> ../../devices/platform/10005000.pinctrl/gpio/gpio409
    lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpio410 -> ../../devices/platform/10005000.pinctrl/gpio/gpio410
    lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpio425 -> ../../devices/platform/10005000.pinctrl/gpio/gpio425
    lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpio427 -> ../../devices/platform/10005000.pinctrl/gpio/gpio427
    lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpio511 -> ../../devices/platform/10005000.pinctrl/gpio/gpio511
    lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpiochip409 -> ../../devices/platform/10005000.pinctrl/gpio/gpiochip409
    --w-------    1 root     root          4096 Jan  1  1970 unexport
    

  • switch –help
    swconfig コマンドは存在していなかった。

    root@localhost:/# switch --help
    Usage:
     switch mib                                   - dump mib counter
     switch ingress-rate on [port] [Kbps]        - set ingress rate limit on port 0~4 
     switch egress-rate on [port] [Kbps]         - set egress rate limit on port 0~4 
     switch ingress-rate off [port]              - del ingress rate limit on port 0~4 
     switch egress-rate off [port]               - del egress rate limit on port 0~4
     switch igmpsnoop on                                   - enable hw igmp snoop
     switch igmpsnoop off                                  - disable hw igmp snoop
     switch mirror [monitor_port] [target_rx_portmask] [target_tx_portmask]    - set port mirror
     switch phy [phy_addr]                   - get phy link status
     switch regs r [offset]                       - register read from offset
     switch regs w [offset] [value]               - register write value to offset
     switch tag off [port]                       - remove vlan tag for egress packet on port 0~4
     switch vlan dump                            - dump switch table
     switch vlan set [vlan idx] [vid] [portmap]  - set vlan id and associated member
     switch tag on [port] [vid]                   - keep vlan tag for egress packet on prot 0~4
     switch tag off [port] [vid]                  - remove vlan tag for egress packet on port 0~4
     switch test_mode [port] [mode]               - set phy test mode. port: 0~4; mode: 1 or 4
     ================   Switch QoS   ================
     table: 0, 1
     type: port =0; 1q = 1; acl = 2; dscp = 3; cvlan = 4; svlan = 5; dmac = 6; smac = 7
     port: LAN/WAN ports: 0 ~ 4; CPU ports: 16, 17
     dscp: 0 ~ 63
     pri: 0 ~ 7
     queue: 0 ~ 7
     weight: 0 for SPQ; 1 ~ 127 for WFQ
     switch qos on                                 - enable switch qos
     switch qos off                                - disable switch qos
     switch qos set_table2type [table] [type]      - set table qos type
     switch qos get_table2type [table]             - get table qos type
     switch qos set_port2table [port] [table]      - set port to table mapping
     switch qos get_port2table [port]              - get port to table mapping
     switch qos set_port2pri [port] [pri]          - set port to priority mapping
     switch qos get_port2pri [port]                - get port to priority mapping
     switch qos set_dscp2pri [dscp] [pri]          - set dscp to priority mapping
     switch qos get_dscp2pri [dscp]                - get dscp to priority mapping
     switch qos set_pri2queue [pri] [queue]        - set priority to queue mapping
     switch qos get_pri2queue                      - get priority to queue mapping
     switch qos set_weight [port] [queue] [weight] - set weight
     switch qos get_weight [port]                  - get weights of queues
    

  • switch vlan dump
    root@localhost:/# switch vlan dump
    [  906.674754] vid    portmap
    [  906.678483]   0    -------
    [  906.682234]   1    1111-1-
    [  906.685980]   2    ----1-1
    [  906.689729]   3    -------
    [  906.693479]   4    -------
    [  906.697228]   5    -------
    [  906.700979]   6    -------
    [  906.704728]   7    -------
    [  906.708477]   8    -------
    [  906.712220]   9    -------
    [  906.715969]  10    -------
    [  906.719714]  11    -------
    [  906.723462]  12    -------
    [  906.727209]  13    -------
    [  906.730958]  14    -------
    [  906.734706]  15    -------
    

  • ls -alh /sys/devices/platform/
    root@localhost:/# ls -alh /sys/devices/platform/
    drwxr-xr-x   77 root     root           0 Jan  1  1970 .
    drwxr-xr-x    5 root     root           0 Jan  1  1970 ..
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10000000.infracfg
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10000400.pcie_mirror
    drwxr-xr-x    5 root     root           0 Jan  1  1970 10001000.pwrap
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10002000.pericfg
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10004000.timer
    drwxr-xr-x    4 root     root           0 Jan  1  1970 10005000.pinctrl
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10006000.scpsys
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10200620.interrupt-controller
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10203000.emi
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10204000.sys_cirq
    drwxr-xr-x    4 root     root           0 Jan  1 00:22 10206000.efuse
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10209000.apmixedsys
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1020a000.wed
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1020a000.wed2
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1020e000.dramc_nao
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1020f000.rng
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10210000.topckgen
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10211000.syscfg_pctl_a
    drwxr-xr-x    5 root     root           0 Jan  1  1970 10212000.watchdog
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10214000.dramc
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10310000.interrupt-controller
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 10390000.cci
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 11000780.btif_tx
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 11000800.btif_rx
    drwxr-xr-x    4 root     root           0 Jan  1 00:22 11001000.adc
    drwxr-xr-x    4 root     root           0 Jan  1  1970 11002000.serial
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 11006000.pwm
    drwxr-xr-x    4 root     root           0 Jan  1  1970 11008000.i2c
    drwxr-xr-x    4 root     root           0 Jan  1  1970 11009000.i2c
    drwxr-xr-x    3 root     root           0 Jan  1  1970 1100b000.svs
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1100b000.thermal
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1100c000.btif
    drwxr-xr-x    4 root     root           0 Jan  1  1970 1100d000.nfi
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1100e000.ecc
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 11014000.spi
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 11220000.audio-controller
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 11220000.audiosys
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 11230000.mmc
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 11240000.mmc
    drwxr-xr-x    4 root     root           0 Jan  1  1970 18000000.wbsys
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1a000000.ssusbsys
    drwxr-xr-x    5 root     root           0 Jan  1  1970 1a0c0000.usb
    drwxr-xr-x    4 root     root           0 Jan  1  1970 1a0c4000.usb-phy
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1a100800.pciesys
    drwxr-xr-x    4 root     root           0 Jan  1  1970 1a140000.pcie
    drwxr-xr-x    4 root     root           0 Jan  1  1970 1a200000.sata
    drwxr-xr-x    4 root     root           0 Jan  1  1970 1a242000.sata-phy
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1af00000.syscon
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1b000000.syscon
    drwxr-xr-x    4 root     root           0 Jan  1  1970 1b100000.ethernet
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1b102800.wdma
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 1b128000.sgmiisys
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 8000000.chipid
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 alarmtimer
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 dummy133m
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 dummy13m
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 dummy32k
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 dummy40m
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 dummy48m
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 dummy98m
    drwxr-xr-x    4 root     root           0 Jan  1  1970 fixedregulator@0
    drwxr-xr-x    4 root     root           0 Jan  1  1970 fixedregulator@1
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 gswsys@1b100000
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 ice_debug
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 ioc
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 mt7622-cpufreq
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 mtcpufreq
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 opp_table0
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 oscillator@0
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 oscillator@1
    drwxr-xr-x    2 root     root           0 Jan  1 00:22 power
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 psci
    drwxr-xr-x    4 root     root           0 Jan  1  1970 reg-dummy
    drwxr-xr-x    4 root     root           0 Jan  1  1970 serial8250
    drwxr-xr-x    3 root     root           0 Jan  1 00:22 timer
    -rw-r--r--    1 root     root        4.0K Jan  1 00:22 uevent
    

  • bootlog
    
    F0: 102B 0000
    F2: 0000 0000
    V0: 0000 0000 [0001]
    00: 0000 0000
    BP: 0000 0041 [0000]
    G0: 0190 0000
    T0: 0000 0364 [000F]
    Jump to BL
    
    UNIVPLL_CON0 = 0xFE000000!!!
    mt_pll_init: Set pll frequency for 25M crystal
    [PMIC_WRAP]wrap_init pass,the return value=0.
    [pmic_init] Preloader Start..................
    [pmic_init] MT6380 CHIP Code, reg_val = 0, 1:E2  0:E3
    [pmic_init] Done...................
    Chip part number:7622B
    MT7622 Version: 1.2.6, (iPA) 
    SSC OFF
    mt_pll_post_init: mt_get_cpu_freq = 1350000Khz
    mt_pll_post_init: mt_get_mem_freq = 1600000Khz
    mt_pll_post_init: mt_get_bus_freq = 1119920Khz
    [PLFM] Init I2C: OK(0)
    
    [BLDR] Build Time: 20171227-144821
    ==== Dump RGU Reg ========
    RGU MODE:     4D
    RGU LENGTH:   FFE0
    RGU STA:      0
    RGU INTERVAL: FFF
    RGU SWSYSRST: 8000
    ==== Dump RGU Reg End ====
    RGU: g_rgu_satus:0
     mtk_wdt_mode_config  mode value=10, tmp:22000010
    PL P ON
    WDT does not trigger reboot
    WDT NONRST=0x20000000
    WDT IRQ_EN=0x340003
    RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
    [EMI] MDL number = 2
    [EMI] DRAMC calibration start
    
    [EMI] DRAMC calibration end
    
    [EMI]rank size auto detect
    [EMI]rank0 size: 0x10000000
    [MEM] complex R/W mem test pass
    RAM_CONSOLE wdt status (0x0)=0x0
    [PLFM] Init Boot Device: OK(0)
    
    [PART] blksz: 2048B
    [PART] [0x0000000000000000-0x000000000007FFFF] "PRELOADER" (256 blocks) 
    [PART] [0x0000000000080000-0x00000000000BFFFF] "tee1" (128 blocks) 
    [PART] [0x00000000000C0000-0x000000000013FFFF] "lk" (256 blocks) 
    
    Device APC domain init setup:
    
    Domain Setup (0x0)
    Domain Setup (0x0)
    Device APC domain after setup:
    Domain Setup (0x0)
    Domain Setup (0x0)
    Bad_Block_Table init, sizeof(Bad_Block_Table)= 8192 
    
    =================================================
    Checking Image1
    --> nand read 4007ff28 200000 1c
    
    NAND read: device 0 offset 0x200000, size 0x1c
     28 bytes read: OK
    ---------------------
    TRX MAGIC    32504844
    Image len    a19000
    header crc32 5028d247
    ---------------------
     trx magic OK!
    --> nand read 4007ff28 200000 a19000
    
    NAND read: device 0 offset 0x200000, size 0xa19000
     10588160 bytes read: OK
    ---------------------
    Image1 crc32 5028d247
    ---------------------
     crc32 OK!
    =================================================
    
    =================================================
    Checking Image2
    --> nand read 4007ff28 3c00000 1c
    
    NAND read: device 0 offset 0x3c00000, size 0x1c
     28 bytes read: OK
    ---------------------
    TRX MAGIC    32504844
    Image len    a19000
    header crc32 5028d247
    ---------------------
     trx magic OK!
    --> nand read 4007ff28 3c00000 a19000
    
    NAND read: device 0 offset 0x3c00000, size 0xa19000
     10588160 bytes read: OK
    ---------------------
    Image2 crc32 5028d247
    ---------------------
     crc32 OK!
    =================================================
    ## check Image1 return 0, check Image2 return 0, Image1 crc32=5028d247, Image2 crc32=5028d247.
    Image1 is ok!
    Image2 is ok and same as Image1!
    
    NAND read: device 0 offset 0x200000, size 0x2000
     8192 bytes read: OK
    [do_read_image_blks]This is a FIT image,img_size = 0x238934
    [do_read_image_blks]img_blks = 0x472
    [do_read_image_blks]img_align_size = 0x239000
    
    NAND read: device 0 offset 0x200000, size 0x239000
     2330624 bytes read: OK
    bootm flag=0, states=70f
    Original load address = 0x4007ff28
    After skip trx_header, load address = 0x4007ff44
    
    ## Loading kernel from FIT Image at 4007ff44 ...
       Using 'config@1' configuration
       Trying 'kernel@1' kernel subimage
         Description:  ARM64 OpenWrt Linux-4.4.92
         Type:         Kernel Image
         Compression:  lzma compressed
         Data Start:   0x4008002c
         Data Size:    2299389 Bytes = 2.2 MiB
         Architecture: AArch64
         OS:           Linux
         Load Address: 0x41080000
         Entry Point:  0x41080000
         Hash algo:    crc32
         Hash value:   bc753b2a
         Hash algo:    sha1
         Hash value:   fe3965e724974b579d5c32ee47b682cdf64057fa
       Verifying Hash Integrity ... crc32+ sha1+ OK
    ## Loading fdt from FIT Image at 4007ff44 ...
       Using 'config@1' configuration
       Trying 'fdt@1' fdt subimage
         Description:  ARM64 OpenWrt MTK-AC2600-RFB1 device tree blob
         Type:         Flat Device Tree
         Compression:  uncompressed
         Data Start:   0x402b176c
         Data Size:    28131 Bytes = 27.5 KiB
         Architecture: AArch64
         Hash algo:    crc32
         Hash value:   fa01d5c1
         Hash algo:    sha1
         Hash value:   ee9f542d7a0ff19ffddcefbe33f63e76a5a7528f
       Verifying Hash Integrity ... crc32+ sha1+ OK
       Booting using the fdt blob at 0x402b176c
       Uncompressing Kernel Image ... OK
       Loading Device Tree to 4cf43000, end 4cf4cde2 ... OK
    
    Starting kernel ...
    
    [ATF][     6.504087]save kernel info
    [ATF][     6.507118]Kernel_EL2
    [ATF][     6.509874]Kernel is 64Bit
    [ATF][     6.513062]pc=0x41080000, r0=0x4cf43000, r1=0x0
    INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
    INFO:    BL3-1: Next image address = 0x41080000
    INFO:    BL3-1: Next image spsr = 0x3c9
    [ATF][     6.531331]el3_exit
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.4.92 (*******_*****@***-build-02) (gcc version 5.4.0 (LEDE GCC 5.4.0 r0-d60d72c) ) #0 SMP PREEMPT Thu Oct 11 08:29:22 UTC 2018
    [    0.000000] Boot CPU: AArch64 Processor [410fd034]
    [    0.000000] On node 0 totalpages: 65488
    [    0.000000]   DMA zone: 1024 pages used for memmap
    [    0.000000]   DMA zone: 0 pages reserved
    [    0.000000]   DMA zone: 65488 pages, LIFO batch:15
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv0.2 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] PERCPU: Embedded 19 pages/cpu @ffffffc00ffa9000 s39424 r8192 d30208 u77824
    [    0.000000] pcpu-alloc: s39424 r8192 d30208 u77824 alloc=19*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: enabling workaround for ARM erratum 845719
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64464
    [    0.000000] Kernel command line: console=ttyS0,115200n1 init=/sbin/preinit root=/dev/mtdblock7                       initrd=0x44000000,0x615E36 loglevel=8 androidboot.hardware=mt7622 swiotlb=512 rootfstype=squashfs
    [    0.000000] PID hash table entries: 1024 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.000000] software IO TLB [mem 0x4fe49000-0x4ff49000] (1MB) mapped at [ffffffc00fe49000-ffffffc00ff48fff]
    [    0.000000] Memory: 230324K/261952K available (4432K kernel code, 336K rwdata, 1668K rodata, 324K init, 387K bss, 31628K reserved, 0K cma-reserved)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
    [    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000   (   246 GB)
    [    0.000000]       .init : 0xffffff8008679000 - 0xffffff80086ca000   (   324 KB)
    [    0.000000]       .text : 0xffffff8008080000 - 0xffffff80084d5000   (  4436 KB)
    [    0.000000]     .rodata : 0xffffff80084d5000 - 0xffffff8008679000   (  1680 KB)
    [    0.000000]       .data : 0xffffff80086ca000 - 0xffffff800871e1e0   (   337 KB)
    [    0.000000]     vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000   (     8 GB maximum)
    [    0.000000]               0xffffffbdc0000000 - 0xffffffbdc0400000   (     4 MB actual)
    [    0.000000]     fixed   : 0xffffffbffe7fd000 - 0xffffffbffec00000   (  4108 KB)
    [    0.000000]     PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
    [    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc010000000   (   256 MB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 64.
    [    0.000000] NR_IRQS:64 nr_irqs:64 0
    [    0.000000] Architected cp15 timer(s) running at 12.50MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
    [    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
    [    0.000056] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126102035 ns
    [    0.000228] Console: colour dummy device 80x25
    [    0.000244] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
    [    0.000250] pid_max: default: 32768 minimum: 301
    [    0.000304] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    [    0.000309] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
    [    0.000765] sched-energy: CPU device node has no sched-energy-costs
    [    0.000771] Invalid sched_group_energy for CPU0
    [    0.000775] CPU0: update cpu_capacity 1024
    [    0.000809] ASID allocator initialised with 65536 entries
    [    0.032091] Detected VIPT I-cache on CPU1
    [    0.032119] Invalid sched_group_energy for CPU1
    [    0.032121] CPU1: update cpu_capacity 1024
    [    0.032122] CPU1: Booted secondary processor [410fd034]
    [    0.032156] Brought up 2 CPUs
    [    0.032168] SMP: Total of 2 processors activated.
    [    0.032175] CPU: All CPU(s) started at EL2
    [    0.032186] alternatives: patching kernel code
    [    0.032270] Invalid sched_group_energy for CPU1
    [    0.032276] Invalid sched_group_energy for Cluster1
    [    0.032279] Invalid sched_group_energy for CPU0
    [    0.032282] Invalid sched_group_energy for Cluster0
    [    0.036310] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.036328] futex hash table entries: 512 (order: 4, 65536 bytes)
    [    0.036438] pinctrl core: initialized pinctrl subsystem
    [    0.036950] NET: Registered protocol family 16
    [    0.037377] [SPM] spm_base = ffffff8008024000
    [    0.037381] [SPM] spm_irq_0 = 6, spm_irq_1 = 7
    [    0.037385] [SPM] spm_irq_2 = 8, spm_irq_3 = 9
    [    0.037388] [SPM] set spm as wakeup devcie.
    [    0.037393] [SPM] spm_rtc cnt: 24414.
    [    0.052060] cpuidle: using governor menu
    [    0.052129] vdso: 2 pages (1 code @ ffffff80084db000, 1 data @ ffffff80086d0000)
    [    0.052271] DMA: preallocated 256 KiB pool for atomic allocations
    [    0.052353] Serial: AMBA PL011 UART driver
    [    0.052404] [SPM] PWAKE_EN:1, PCMWDT_EN:0, BYPASS_SYSPWREQ:0, I2C_CHANNEL:2
    [    0.052409] [SLP] SLEEP_DPIDLE_EN:1, REPLACE_DEF_WAKESRC:0, SUSPEND_LOG_EN:1
    [    0.055726] genirq: Setting trigger mode 2 for irq 227 failed (mtk_sysirq_set_type+0x0/0xc8)
    [    0.077398] vgaarb: loaded
    [    0.077558] SCSI subsystem initialized
    [    0.078924] rbus 18000000.wbsys: PCI host bridge to bus 0000:00
    [    0.078937] pci_bus 0000:00: root bus resource [mem 0x18000000-0x180fffff]
    [    0.078944] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    0.078963] pci 0000:00:00.0: [14c3:7622] type 00 class 0x000280
    [    0.078977] pci 0000:00:00.0: reg 0x10: [mem 0x18000000-0x1800000f 64bit]
    [    0.078984] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0000000f]
    [    0.078990] pci 0000:00:00.0: reg 0x1c: [mem 0x00000000-0x0000000f]
    [    0.078997] pci 0000:00:00.0: reg 0x20: [mem 0x00000000-0x0000000f]
    [    0.079004] pci 0000:00:00.0: reg 0x24: [mem 0x00000000-0x0000000f]
    [    0.079033] pci 0000:00:00.0: of_irq_parse_pci() failed with rc=-22
    [    0.079335] clocksource: Switched to clocksource arch_sys_counter
    [    0.083797] NET: Registered protocol family 2
    [    0.084182] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.084207] TCP bind hash table entries: 2048 (order: 3, 32768 bytes)
    [    0.084239] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.084280] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.084294] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.084404] NET: Registered protocol family 1
    [    0.084437] PCI: CLS 0 bytes, default 128
    [    0.084559] Unpacking initramfs...
    [    0.084567] Initramfs unpacking failed: junk in compressed archive
    [    0.087109] Freeing initrd memory: 6228K
    [    0.094250] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.094428] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.094868] fuse init (API version 7.23)
    [    0.095477] io scheduler noop registered
    [    0.095653] io scheduler cfq registered (default)
    [    0.113881] mtk-pcie 1a140000.pcie: pcie rc 0 linkup success
    [    0.213910] mtk-pcie 1a140000.pcie: Port1 link down
    [    0.214075] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0001:00
    [    0.214084] pci_bus 0001:00: root bus resource [??? 0x00000000 flags 0x0]
    [    0.214091] pci_bus 0001:00: root bus resource [mem 0x20000000-0x2fffffff]
    [    0.214098] pci_bus 0001:00: root bus resource [bus 00-ff]
    [    0.214133] pci 0001:00:00.0: [14c3:5396] type 01 class 0x060400
    [    0.214185] pci 0001:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
    [    0.214308] pci 0001:00:00.0: of_irq_parse_pci() failed with rc=-22
    [    0.214429] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.214671] pci 0001:01:00.0: [14c3:7615] type 00 class 0x000280
    [    0.214964] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
    [    0.223397] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
    [    0.223434] pci 0001:00:00.0: BAR 0: no space for [mem size 0x100000000 64bit pref]
    [    0.223441] pci 0001:00:00.0: BAR 0: failed to assign [mem size 0x100000000 64bit pref]
    [    0.223448] pci 0001:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    [    0.223457] pci 0001:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
    [    0.223548] pci 0001:00:00.0: PCI bridge to [bus 01]
    [    0.223559] pci 0001:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    [    0.223616] pcieport 0001:00:00.0: of_irq_parse_pci() failed with rc=-22
    [    0.223631] pcieport 0001:00:00.0: enabling device (0000 -> 0002)
    [    0.223790] pcieport 0001:00:00.0: Signaling PME through PCIe PME interrupt
    [    0.223796] pci 0001:01:00.0: Signaling PME through PCIe PME interrupt
    [    0.223805] pcie_pme 0001:00:00.0:pcie01: service driver pcie_pme loaded
    [    0.227777] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [    0.228781] console [ttyS0] disabled
    [    0.248950] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 230, base_baud = 1562500) is a ST16650V2
    [    1.105143] console [ttyS0] enabled
    [    1.109416] init_led_status(): Reguest GPIO  4 success!
    [    1.114822] init_led_status(): Reguest GPIO  3 success!
    [    1.120222] init_led_status(): Reguest GPIO 15 success!
    [    1.125617] init_led_status(): Reguest GPIO  2 success!
    [    1.131014] init_led_status(): Reguest GPIO 19 success!
    [    1.136412] init_led_status(): Reguest GPIO 20 success!
    [    1.141828] @@@@@@#### buffalo_led_init initialized. 
    [    1.147100] Unable to detect cache hierarchy from DT for CPU 0
    [    1.155997] loop: module loaded
    [    1.159708] dump_power_table[0] = { .cpufreq_khz = 1350000,  .cpufreq_ncpu = 2,      .cpufreq_power = 995 }
    [    1.169223] dump_power_table[1] = { .cpufreq_khz = 1262500,  .cpufreq_ncpu = 2,      .cpufreq_power = 811 }
    [    1.178737] dump_power_table[2] = { .cpufreq_khz = 1137500,  .cpufreq_ncpu = 2,      .cpufreq_power = 736 }
    [    1.188251] dump_power_table[3] = { .cpufreq_khz = 1025000,  .cpufreq_ncpu = 2,      .cpufreq_power = 624 }
    [    1.197765] dump_power_table[4] = { .cpufreq_khz = 1350000,  .cpufreq_ncpu = 1,      .cpufreq_power = 517 }
    [    1.207276] dump_power_table[5] = { .cpufreq_khz = 812500,   .cpufreq_ncpu = 2,      .cpufreq_power = 492 }
    [    1.216698] dump_power_table[6] = { .cpufreq_khz = 1262500,  .cpufreq_ncpu = 1,      .cpufreq_power = 377 }
    [    1.226208] dump_power_table[7] = { .cpufreq_khz = 600000,   .cpufreq_ncpu = 2,      .cpufreq_power = 376 }
    [    1.235631] dump_power_table[8] = { .cpufreq_khz = 1137500,  .cpufreq_ncpu = 1,      .cpufreq_power = 333 }
    [    1.245143] dump_power_table[9] = { .cpufreq_khz = 437500,   .cpufreq_ncpu = 2,      .cpufreq_power = 295 }
    [    1.254567] dump_power_table[10] = { .cpufreq_khz = 1025000, .cpufreq_ncpu = 1,      .cpufreq_power = 258 }
    [    1.264170] dump_power_table[11] = { .cpufreq_khz = 300000,  .cpufreq_ncpu = 2,      .cpufreq_power = 225 }
    [    1.273681] dump_power_table[12] = { .cpufreq_khz = 812500,  .cpufreq_ncpu = 1,      .cpufreq_power = 204 }
    [    1.283191] dump_power_table[13] = { .cpufreq_khz = 600000,  .cpufreq_ncpu = 1,      .cpufreq_power = 166 }
    [    1.292702] dump_power_table[14] = { .cpufreq_khz = 437500,  .cpufreq_ncpu = 1,      .cpufreq_power = 140 }
    [    1.302212] dump_power_table[15] = { .cpufreq_khz = 300000,  .cpufreq_ncpu = 1,      .cpufreq_power = 119 }
    [    1.312849] [cal] calefuse1  = 0x842b1bc0
    [    1.316902] [cal] calefuse2  = 0x530010
    [    1.320772] [cal] g_adc_ge_t = 0x2b1
    [    1.324457] [cal] g_adc_oe_t = 0x210
    [    1.328146] [cal] g_degc_cali        = 0x2f
    [    1.331831] [cal] g_adc_cali_en_t    = 0x1
    [    1.335788] [cal] g_o_slope  = 0x0
    [    1.339197] [cal] g_o_slope_sign     = 0x0
    [    1.343062] [cal] g_id               = 0x0
    [    1.346123] [cal] g_o_vtsmcu1        = 0x0
    [    1.349719] [cal] g_o_vtsmcu2        = 0x14c
    [    1.353493] [cal] g_o_vtsmcu3        = 0x0
    [    1.357088] [cal] g_o_vtsmcu4        = 0x0
    [    1.360684] [cal] g_ge               = 0x1b0
    [    1.363920] [cal] g_gain             = 0x28c0
    [    1.367426] [cal] g_x_roomt1 = 0x1f46
    [    1.373944] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=ffffffc00e7ff900
    [    1.382222] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=ffffffc00e7ffa00
    [    1.392377] mtk-ecc 1100e000.ecc: probed
    [    1.396786] mtk-nor 11014000.spi: unrecognized JEDEC id bytes: 00, 00, 00
    [    1.403806] mtk-nor: probe of 11014000.spi failed with error -2
    [    1.410351] [rather_probe]ei_local->features = 0xf209db33
    [    1.415921] [rather_probe]ei_local->architecture_config = 533003
    [    1.422154] ethdma_sysctl_base = 0xffffff80087e6000
    [    1.427193] ethdma_frame_engine_base = 0xffffff8008800000
    [    1.433034] ei_local->irq0 = 249
    [    1.436362] ei_local->irq1 = 250
    [    1.439691] ei_local->irq2 = 251
    [    1.443083] [rather_probe]ei_local->chip_name = 7622
    [    1.448203] [Raether] HW IO coherent is enabled !
    [    1.453081] generated random MAC address 06:ab:79:6f:3a:6d
    [    1.458739] Mediatek APSoC Ethernet Driver Initialization.
    [    1.464221] STD_v0.1  2048 rx/3072 tx descriptors allocated, mtu = 1500!
    [    1.471314] NAPI enable, Tx Ring = 3072, Rx Ring = 2048
    [    1.477101] generated random MAC address ae:cb:ee:66:74:82
    [    1.482764] GDMA2_MAC_ADRH -- : 0x0000aecb
    [    1.486991] GDMA2_MAC_ADRL -- : 0xee667482
    [    1.491474] eth1: ===> virtualif_open
    [    1.496326] MTK_WDT_NONRST_REG(20000000)
    [    1.500552] mtk-wdt 10212000.watchdog: register restart_handler on reboot_notifier_list for psci reset
    [    1.510159] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
    [    1.518319] register cpuidle driver!!!!!!!!!!!!!!!!!
    [    1.525268] Netfilter messages via NETLINK v0.30.
    [    1.530140] nf_conntrack version 0.5.0 (1848 buckets, 7392 max)
    [    1.536488] Bytecounter: allocated 64 tables
    [    1.541583] NET: Registered protocol family 10
    [    1.546891] sit: IPv6 over IPv4 tunneling driver
    [    1.552041] NET: Registered protocol family 17
    [    1.556651] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
    [    1.569664] 8021q: 802.1Q VLAN Support v1.8
    [    1.574353] registered taskstats version 1
    [    1.579742] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xa1
    [    1.586306] nand: Winbond W29N01HZ
    [    1.589836] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.597658] mtk-nand 1100d000.nfi: eccsize 512 eccstrength 4
    [    1.603507] Scanning device for bad blocks
    [    1.857814] 9 ofpart partitions found on MTD device mtk-nand
    [    1.863653] Creating 9 MTD partitions on "mtk-nand":
    [    1.868777] 0x000000000000-0x000000080000 : "Preloader"
    [    1.874720] 0x000000080000-0x0000000c0000 : "ATF"
    [    1.884047] 0x0000000c0000-0x000000140000 : "Bootloader"
    [    1.890008] 0x000000140000-0x0000001c0000 : "Config"
    [    1.899643] 0x0000001c0000-0x000000200000 : "Factory"
    [    1.905309] 0x000000200000-0x000003c00000 : "Kernel"
    [    1.911502] 2 trx-fw partitions found on MTD device Kernel
    [    1.917169] 0x00000020001c-0x000000440000 : "kernel"
    [    1.922771] 0x000000440000-0x000003c00000 : "rootfs"
    [    1.928610] mtd: device 7 (rootfs) set to be root filesystem
    [    1.934672] 1 squashfs-split partitions found on MTD device rootfs
    [    1.941049] 0x000000c20000-0x000003c00000 : "rootfs_data"
    [    1.947309] 0x000003c00000-0x000007600000 : "Kernel2"
    [    1.953245] 0x000007600000-0x000007800000 : "glbcfg"
    [    1.958837] 0x000007800000-0x000007a00000 : "board_data"
    [    1.965063] [SPM] pwrap node has not register regmap
    [    1.970649] regulator regulator.3: info->modeset_reg 0xc = 0x181c32a2
    [    1.978310] regulator regulator.3: info->modeset_reg 0xc = 0x101c32a2
    [    1.995152] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
    [    2.002630] Freeing unused kernel memory: 324K
    [    2.007231] This architecture does not have kernel memory protection.
    [    3.353336] random: dbus-uuidgen: uninitialized urandom read (12 bytes read, 115 bits of entropy available)
    [    3.363499] random: dbus-uuidgen: uninitialized urandom read (8 bytes read, 115 bits of entropy available)
    [    3.494486] random: dbus-daemon: uninitialized urandom read (12 bytes read, 124 bits of entropy available)
    [    3.507469] random: dbus-daemon: uninitialized urandom read (12 bytes read, 124 bits of entropy available)
    [    3.579361] random: nonblocking pool is initialized
    arca.dbus.mng: is ready
    agent_handler(244):arca.dbus.misc: is ready
    
    Please press Enter to activate this console. [    4.461490] usbcore: registered new interface driver usbfs
    [    4.467257] usbcore: registered new interface driver hub
    [    4.472877] usbcore: registered new device driver usb
    [    4.527510] libata version 3.00 loaded.
    [    4.564529] ahci 1a200000.sata: forcing port_map 0x0 -> 0x1
    [    4.570391] ahci 1a200000.sata: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
    [    4.579205] ahci 1a200000.sata: flags: ncq sntf pm clo only pmp pio slum part ccc apst 
    [    4.591757] scsi host0: ahci
    [    4.594999] ata1: SATA max UDMA/133 mmio [mem 0x1a200000-0x1a2010ff] port 0x100 irq 248
    [    4.923357] ata1: SATA link down (SStatus 0 SControl 300)
    [    4.948913] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    4.957909] ehci-platform: EHCI generic platform driver
    [    4.986987] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    4.995624] ohci-platform: OHCI generic platform driver
    [    5.063978] 1a0c0000.usb supply vbus not found, using dummy regulator
    [    5.070696] 1a0c0000.usb supply vusb33 not found, using dummy regulator
    [    5.077945] xhci-mtk 1a0c0000.usb: xHCI Host Controller
    [    5.083396] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
    [    5.091143] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x00210010
    [    5.099799] xhci-mtk 1a0c0000.usb: irq 245, io mem 0x1a0c0000
    [    5.106142] hub 1-0:1.0: USB hub found
    [    5.110090] hub 1-0:1.0: 2 ports detected
    [    5.114549] xhci-mtk 1a0c0000.usb: xHCI Host Controller
    [    5.119955] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
    [    5.127633] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    5.136343] hub 2-0:1.0: USB hub found
    [    5.140258] hub 2-0:1.0: 1 port detected
    [    5.155937] usbcore: registered new interface driver usb-storage
    [    5.261778] l2tp_core: L2TP core driver, V2.0
    [    5.268496] l2tp_netlink: L2TP netlink interface
    [    5.281497] gre: GRE over IPv4 demultiplexor driver
    [    5.288900] ip_gre: GRE over IPv4 tunneling driver
    [    5.299964] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [    5.378503] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    6.363420] register mt_drv
    [    6.368974] 
    [    6.368974] == pAd = ffffff8009101000, size = 4263680, Status=0 ==
    [    6.376894] AP Driver version-5.0.1.1
    [    6.380680] Use 1st iPAeLNA default bin.
    [    6.384727] Use 1st /etc_ro/wlan/MT7622_EEPROM.bin default bin.
    [    6.390843] PciHif.CSRBaseAddress =0xffffff8009600000, csr_addr=0xffffff8009600000!
    [    6.458565] get_wdev_by_idx: invalid idx(0)
    [    6.462900] RTMPInitPCIeDevice():device_id=0x7615
    [    6.467763] mt_pci_chip_cfg(): HWVer=0x8a10, FWVer=0x8a10, pAd->ChipID=0x7615
    [    6.475132] mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
    [    6.480347] AP Driver version-5.0.1.1
    [    6.484126] RtmpChipOpsHook(223): Not support for HIF_MT yet! MACVersion=0x0
    [    6.491397] mt7615_init()-->
    [    6.494365] Use 2nd iPAeLNA default bin.
    [    6.498410] Use the default /etc_ro/wlan/MT7615E_EEPROM1.bin bin image!
    [    6.505239] rx_mask = 40000000
    [    8.475281] !!!! init ei_local->tx_mask = 10000000
    [    8.480226] GMAC1_MAC_ADRH -- : 0x000018c2
    [    8.484450] GMAC1_MAC_ADRL -- : 0xbf8ef588
    [    8.497451] Set: phy[0].reg[13] = 0x0007
    [    8.503194] Set: phy[0].reg[14] = 0x003c
    [    8.508901] Set: phy[0].reg[13] = 0x4007
    [    8.514583] Set: phy[0].reg[14] = 0x0000
    [    8.520310] Set: phy[1].reg[13] = 0x0007
    [    8.525978] Set: phy[1].reg[14] = 0x003c
    [    8.531743] Set: phy[1].reg[13] = 0x4007
    [    8.537409] Set: phy[1].reg[14] = 0x0000
    [    8.543075] Set: phy[2].reg[13] = 0x0007
    [    8.548842] Set: phy[2].reg[14] = 0x003c
    [    8.554506] Set: phy[2].reg[13] = 0x4007
    [    8.560246] Set: phy[2].reg[14] = 0x0000
    [    8.565921] Set: phy[3].reg[13] = 0x0007
    [    8.571639] Set: phy[3].reg[14] = 0x003c
    [    8.577322] Set: phy[3].reg[13] = 0x4007
    [    8.583161] Set: phy[3].reg[14] = 0x0000
    [    8.588958] Set: phy[4].reg[13] = 0x0007
    [    8.594649] Set: phy[4].reg[14] = 0x003c
    [    8.600438] Set: phy[4].reg[13] = 0x4007
    [    8.606094] Set: phy[4].reg[14] = 0x0000
    Disable flow control
    [    8.611967] Get: phy[0].reg[4] = 0x05e1
    [    8.617977] Set: phy[0].reg[4] = 0x01e1
    [    8.623575] Set: phy[1].reg[4] = 0x01e1
    [    8.629168] Set: phy[2].reg[4] = 0x01e1
    [    8.634775] Set: phy[3].reg[4] = 0x01e1
    [    8.640374] Set: phy[4].reg[4] = 0x01e1
    [    8.663526] debug : Enter [BRCTL_ADD_IF] 
    [    8.667720] add_if 00000000 ***************************
    [    8.673302] device eth0 entered promiscuous mode
    [    8.711667] br0: port 1(eth0) entered forwarding state
    [    8.716994] br0: port 1(eth0) entered forwarding state
    [    8.807751] GDMA2_MAC_ADRH -- : 0x000018c2
    [    8.812020] GDMA2_MAC_ADRL -- : 0xbf8ef588
    [    8.817982] eth1: ===> virtualif_open
    [    8.957186] ra0: ===> main_virtual_if_open
    [    8.961561] get_wdev_by_idx: invalid idx(0)
    [    8.965890] get_wdev_by_idx: invalid idx(0)
    [    8.970212] get_wdev_by_idx: invalid idx(0)
    [    8.974533] get_wdev_by_idx: invalid idx(0)
    [    8.979155] WHNAT=0
    [    8.981331] whnat_driver_init(): chip not support wifi hardware nat feature
    [    8.988520] get_wdev_by_idx: invalid idx(0)
    [    8.992876] get_wdev_by_idx: invalid idx(0)
    [    9.298279] APWdsInitialize():WdsEntry Number=4
    [    9.303338] [wifi_fwd_set_cb_num] band_cb_offset=36, recv_from_cb_offset=37
    [    9.311157] MacAddress1 = 00:00:00:00:00:00
    [    9.315611] MacAddress2 = 00:00:00:00:00:00
    [    9.320067] MacAddress3 = 00:00:00:00:00:00
    [    9.324523] MacAddress4 = 00:00:00:00:00:00
    [    9.328961] E2pAccessMode=2
    [    9.332617] DBDC Mode=0
    [    9.335367] BSS0 PhyMode=14
    [    9.338246] wmode_band_equal(): Band Equal!
    [    9.342638] TriBandChGrp=0/0/0/0
    [    9.346517] BandSteering=0
    [    9.349347] BndStrgBssIdx=
    [    9.352242] [TxPower] BAND0: 100 
    [    9.355879] Power Boost (CCK, OFDM): RTMPSetProfileParameters[PowerUpCckOfdm] BAND1: (0)-(0)-(0)-(0)-(0)-(0)-(0)
    [    9.366471] Power Boost (HT20): RTMPSetProfileParametersPower Boost (HT40): RTMPSetProfileParametersPower Boost (VHT20): RTMPSetProfileParametersPower Boost (VHT40): RTMPSetProfileParametersPower Boost (VHT80): RTMPSetProfileParametersPower Boost (VHT160): RTMPSetProfileParameters[PERCENTAGEenable] BAND0: 1 
    [    9.395409] [BFBACKOFFenable] BAND0: 0 
    [    9.399403] CalCacheApply = 0 
    [    9.403007] FragThreshold[0]=2346
    [    9.410563] DfsZeroWait Support=0/0
    [    9.414555] DfsZeroWaitCacTime=255/255
    [    9.431525] If/wds0 - PeerPhyOpMode=255
    [    9.436008] APWdsInitialize():WdsEntry Number=4
    [    9.440681] WDS-Enable mode=0
    [    9.445257] HT: WDEV[0] Ext Channel = ABOVE
    [    9.449677] HT: greenap_cap = 1
    [    9.452995] ChipI=7622, Value=0, pcie_aspm in profile=0
    [    9.480028] ICapMode = 0
    [    9.486099] WtcSetMaxStaNum: BssidNum:5, MaxStaNum:121 (WdsNum:4, ApcliNum:1, MaxNumChipRept:32), MinMcastWcid:122
    [    9.496943] Fair Queueing Scheduler Initializatio...
    [    9.502185] set_fq_enable: set Host FQ Enable to 29.(factor to 2)
    [    9.508472] Top Init Done!
    [    9.511263] Use dev_alloc_skb
    [    9.514676] RX[0] DESC ffffffc00c428000 size = 8192
    [    9.519861] RX[1] DESC ffffffc00c42a000 size = 8192
    [    9.524991] cut_through_init(): ct sw token number = 4095
    [    9.530675] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    [    9.538664] cut_through_token_list_init(): ffffffc00dc37f90,ffffffc00dc37f90
    [    9.546046] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    [    9.554034] cut_through_token_list_init(): ffffffc00dc37fb0,ffffffc00dc37fb0
    [    9.561391] whnat_ring_init(): cookie=ffffff8009101000
    [    9.566692] whnat_ring_init(): whnat can't find for cookie:ffffff8009101000
    [    9.573875] Hif Init Done!
    [    9.576671] ctl->txq = ffffff800950b410
    [    9.580627] ctl->rxq = ffffff800950b428
    [    9.584582] ctl->ackq = ffffff800950b440
    [    9.588628] ctl->kickq = ffffff800950b458
    [    9.592769] ctl->tx_doneq = ffffff800950b470
    [    9.597174] ctl->rx_doneq = ffffff800950b488
    [    9.601695] mt_rbus 0000:00:00.0: Direct firmware load for mt7622_patch_e2_hdr.bin failed with error -2
    [    9.611395] Parsing patch header
    [    9.614720]  Built date: 20180417160025a
    [    9.618847] 
    [    9.620386]  Platform: ALPS
    [    9.623288]  HW/SW version: 0x8a108a10
    [    9.627187]  Patch version: 0x00000010
    [    9.631082]  Target address: 0x9c000, length: 76400
    [    9.636178] patch is not ready && get semaphore success
    [    9.641606] EventGenericEventHandler: CMD Success
    [    9.646910] MtCmdPatchFinishReq
    [    9.661400] EventGenericEventHandler: CMD Success
    [    9.666303] release patch semaphore
    [    9.669907] WfMcuHwInit: Before NICLoadFirmware, check ICapMode = 0
    [    9.676394] Parsing CPU 0 fw tailer
    [    9.679991]  Chip ID: 0x06
    [    9.682790]  Eco version: 0x00
    [    9.685954]  Region number: 0x00
    [    9.689294]  Format version: 0x00
    [    9.692722]  Ram version: _reserved_
    [    9.696462]  Built date: 20180417160417
    [    9.700584]  Common crc: 0x0
    [    9.703554] Parsing tailer region 0
    [    9.707146]  Feature set: 0x01
    [    9.710308]  Target address: 0xb7000, Download size: 249856
    [    9.716055] Parsing tailer region 1
    [    9.719651]  Feature set: 0x01
    [    9.722809]  Target address: 0x203dc00, Download size: 46096
    [    9.728682] EventGenericEventHandler: CMD Success
    [    9.737486] EventGenericEventHandler: CMD Success
    [    9.742680] MtCmdFwStartReq: override = 0x0, address = 0x0
    [    9.789602] EventGenericEventHandler: CMD Success
    [    9.794491] MCU Init Done!
    [    9.797290] efuse_probe: efuse = 2
    [    9.800800] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=4
    [    9.806396] RtmpEepromGetDefault::e2p_dafault=2
    [    9.811072] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 2
    [    9.818886] NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
    [    9.825151] NICReadEEPROMParameters: EEPROM 0x52 bb08
    [    9.831178] MtCmdSetTxLpfCal_7622:(ret = 0)
    [    9.835520] MtCmdSetTxDcIqCal_7622:(ret = 0)
    [    9.839958] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.844304] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.848647] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.852990] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.857333] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.861676] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.866020] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.870358] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.874695] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.879033] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.883369] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.887706] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.892043] MtCmdSetTxDpdCal_7622:(ret = 0)
    [    9.896359] NICReadEEPROMParameters: EEPROM 0x52 bb08
    [    9.902294] mt7622_pa_lna_set(): wifi_cfg=24, mode=1
    [    9.907716] mt7622_tssi_set(): nic_cfg1=20, mode=1
    [   10.871816] Country Region from e2p = 0
    [   10.875788] RcRadioInit(): DbdcMode=0, ConcurrentBand=1
    [   10.881183] RcRadioInit(): pRadioCtrl=ffffffc00e666768,Band=0,rfcap=1,channel=1,PhyMode=2 extCha=0xf
    [   10.890614] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
    [   10.897019] MtBfBackOffLoadParam: RF_LOCKDOWN Feature OFF !!!
    [   10.903073] EEPROM Init Done!
    [   10.906138] mt_mac_init()-->
    [   10.909125] mt7622_init_mac_cr(): TMAC_TRCR0=0x82783c8c
    [   10.914536]  Initialize FT KDP Module...
    [   11.014892] Main bssid = 00:00:00:00:00:00
    [   11.019306] MtCmdSetMacTxRx:(ret = 0)
    [   11.026728] MtCmdSetMacTxRx:(ret = 0)
    [   11.030510]  CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
    [   11.141613] wifi_sys_open(), wdev idx = 0
    [   11.145764] wdev_attr_update(): wdevId0 = 18:c2:bf:8e:f5:89
    [   11.151529]  [RadarStateCheck] RD_NORMAL_MODE  
    [   11.157099] phy_freq_adjust : no prim_ch value for adjust!
    [   11.162919] Caller: wlan_operate_init+0xe0/0x110 [mt_wifi]
    [   11.168579] phy_mode=14, ch=0, wdev_type=1
    [   11.172805] ht_cap->HtCapInfo: ldpc=1,ch_width=0,gf=0,sgi20=1,sgi40=0,tx_stbc=1,rx_stbc=1,amsdu_size=0
    [   11.182405] ht_cap->HtCapParm: mdpu_density=5, ampdu_factor=3
    [   11.191061] AP inf up for ra_0(func_idx) OmacIdx=0
    [   11.198343] mtd_isr::DriverOwn = TRUE
    [   11.202838] RcGetHdevByChannel():Err! Update PhyMode failed, no phyctrl support this channel=0!
    [   11.211812] HcGetBandByChannel(): no hdev parking on channel:0!
    [   11.217929] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
    [   11.229507] RcGetHdevByChannel():Err! Update PhyMode failed, no phyctrl support this channel=0!
    [   11.238488] HcSetRadioCurStatByChannel(): no hdev parking on channel:0 !!!
    [   11.245581] ApAutoChannelAtBootUp----------------->
    [   11.250613] ApAutoChannelAtBootUp: AutoChannelBootup = 1, AutoChannelFlag = 1
    [   11.258144] MtCmdSetMacTxRx:(ret = 0)
    [   11.261953] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0
    [   11.271197] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   11.503349] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0
    [   11.512597] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   11.735346] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0
    [   11.744594] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   11.967350] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0
    [   11.976602] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   12.199348] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
    [   12.208598] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   12.431347] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0
    [   12.440597] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   12.663347] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0
    [   12.672594] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   12.895361] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
    [   12.904613] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   13.127350] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
    [   13.136624] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   13.343347] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0
    [   13.352835] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   13.559347] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0
    [   13.568774] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   13.775345] ====================================================================
    [   13.783011] Channel   1 : Busy Time =      5, Skip Channel = FALSE, BwCap = TRUE
    [   13.790643] Channel   2 : Busy Time =     66, Skip Channel = FALSE, BwCap = TRUE
    [   13.798295] Channel   3 : Busy Time =    100, Skip Channel = FALSE, BwCap = TRUE
    [   13.805927] Channel   4 : Busy Time =    132, Skip Channel = FALSE, BwCap = TRUE
    [   13.813565] Channel   5 : Busy Time =    537, Skip Channel = FALSE, BwCap = TRUE
    [   13.821245] Channel   6 : Busy Time =    110, Skip Channel = FALSE, BwCap = TRUE
    [   13.828885] Channel   7 : Busy Time =    138, Skip Channel = FALSE, BwCap = TRUE
    [   13.836525] Channel   8 : Busy Time =   3132, Skip Channel = FALSE, BwCap = TRUE
    [   13.844156] Channel   9 : Busy Time =   1213, Skip Channel = FALSE, BwCap = TRUE
    [   13.851787] Channel  10 : Busy Time =   1066, Skip Channel = FALSE, BwCap = TRUE
    [   13.859420] Channel  11 : Busy Time =    278, Skip Channel = FALSE, BwCap = TRUE
    [   13.867050] ====================================================================
    [   13.874691] Rule 3 Channel Busy time value : Select Primary Channel 1
    [   13.881354] Rule 3 Channel Busy time value : Min Channel Busy = 5
    [   13.887662] Rule 3 Channel Busy time value : BW = 20
    [   13.892790]  AutoChSelUpdateChannel(): Update channel for wdev0 for this band PhyMode = 14,Channel = 1 
    [   13.903200]  AutoChSelUpdateChannel(): Update channel for wdev1 for this band PhyMode = 14,Channel = 1 
    [   13.913613]  AutoChSelUpdateChannel(): Update channel for wdev2 for this band PhyMode = 14,Channel = 1 
    [   13.924025]  AutoChSelUpdateChannel(): Update channel for wdev3 for this band PhyMode = 14,Channel = 1 
    [   13.934438]  AutoChSelUpdateChannel(): Update channel for wdev4 for this band PhyMode = 14,Channel = 1 
    [   13.944862] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0
    [   13.954109] BW = 0,TXStream = 4, RXStream = 4, scan(0)
    [   13.978360] [DfsCacNormalStart] Normal start. Enable MAC TX
    [   14.055160] ApAutoChannelAtBootUp main_virtual_if_open
    [   14.457346] get_wdev_by_idx: invalid idx(0)
    [   14.461686] get_wdev_by_idx: invalid idx(0)
    [   14.466007] get_wdev_by_idx: invalid idx(0)
    [   14.470332] get_wdev_by_idx: invalid idx(0)
    [   14.475074] WHNAT=1
    [   14.477246] whnat_cap_support(): chip_id=7615 is in WHNAT support list
    [   14.483987] wifi_slot_get(): bus name=PCI Bus 0001:01, funid=0, get slot id=0
    [   14.491351] whnat_entry_acquire(): PCIE SLOT:0, hook to WHNAT,entry id=0
    [   14.498461] wed_init(0): irq=11,base_addr=0xffffff80095de000
    [   14.504767] wed_ring_init(): wed ring init result = 0
    [   14.514697] create wed ok!!!
    [   14.517857] wdma_init(): wdma(0) base addr=ffffff80095f8800
    [   14.523630] wdma_init(): wdma(0) irq[0]=253
    [   14.527950] wdma_init(): wdma(0) irq[1]=254
    [   14.532269] wdma_init(): wdma(0) irq[2]=255
    [   14.536832] wifi_chip_probe(): Chang CHIP IRQ: 259 to WHNAT IRQ: 11
    [   14.543382] wifi_slot_get(): bus name=PCI Bus 0001:01, funid=0, get slot id=0
    [   14.550805] whnat_probe(): probe fail since whnat is full!
    [   14.556473] whnat_dev0: probe of 1020a000.wed2 failed with error -1
    [   14.563082] get_wdev_by_idx: invalid idx(0)
    [   14.567454] get_wdev_by_idx: invalid idx(0)
    [   14.571786] driver_own()::Try to Clear FW Own...
    [   14.876670] driver_own()::Success to clear FW Own
    [   14.883830] APWdsInitialize():WdsEntry Number=4
    [   14.888883] [wifi_fwd_set_cb_num] band_cb_offset=36, recv_from_cb_offset=37
    [   14.896720] MacAddress1 = 00:00:00:00:00:00
    [   14.901174] MacAddress2 = 00:00:00:00:00:00
    [   14.905627] MacAddress3 = 00:00:00:00:00:00
    [   14.910082] MacAddress4 = 00:00:00:00:00:00
    [   14.914522] E2pAccessMode=2
    [   14.918186] DBDC Mode=0
    [   14.920930] BSS0 PhyMode=49
    [   14.923818] wmode_band_equal(): Band Equal!
    [   14.928211] TriBandChGrp=0/0/0/0
    [   14.932045] BandSteering=0
    [   14.934865] BndStrgBssIdx=
    [   14.937759] [TxPower] BAND0: 100 
    [   14.941395] Power Boost (CCK, OFDM): RTMPSetProfileParameters[PowerUpCckOfdm] BAND1: (0)-(0)-(0)-(0)-(0)-(0)-(0)
    [   14.951991] Power Boost (HT20): RTMPSetProfileParametersPower Boost (HT40): RTMPSetProfileParametersPower Boost (VHT20): RTMPSetProfileParametersPower Boost (VHT40): RTMPSetProfileParametersPower Boost (VHT80): RTMPSetProfileParametersPower Boost (VHT160): RTMPSetProfileParameters[PERCENTAGEenable] BAND0: 1 
    [   14.980850] [BFBACKOFFenable] BAND0: 0 
    [   14.984844] CalCacheApply = 0 
    [   14.988456] FragThreshold[0]=2346
    [   14.996041] DfsZeroWait Support=0/0
    [   15.000035] DfsZeroWaitCacTime=255/255
    [   15.017099] If/wds0 - PeerPhyOpMode=255
    [   15.021589] APWdsInitialize():WdsEntry Number=4
    [   15.026262] WDS-Enable mode=0
    [   15.030844] HT: WDEV[0] Ext Channel = BELOW
    [   15.035261] HT: greenap_cap = 1
    [   15.038579] ChipI=7615, Value=0, pcie_aspm in profile=0
    [   15.065809] ICapMode = 0
    [   15.071918] WtcSetMaxStaNum: BssidNum:5, MaxStaNum:121 (WdsNum:4, ApcliNum:1, MaxNumChipRept:32), MinMcastWcid:122
    [   15.082724] Top Init Done!
    [   15.085535] Use dev_alloc_skb
    [   15.089137] RX[0] DESC ffffff8008f3e000 size = 16384
    [   15.094969] RX[1] DESC ffffff8008f43000 size = 8192
    [   15.100328] cut_through_init(): ct sw token number = 1023
    [   15.105928] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/1024
    [   15.113918] cut_through_token_list_init(): ffffffc00a6d3290,ffffffc00a6d3290
    [   15.121225] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/1024
    [   15.129216] cut_through_token_list_init(): ffffffc00a6d32b0,ffffffc00a6d32b0
    [   15.136528] whnat_ring_init(): cookie=ffffff8009701000
    [   15.141832] wdma_dma_ctrl(): WDMA_GLO_CFG=40000450
    [   15.146815] Hif Init Done!
    [   15.149609] ctl->txq = ffffff8009b0b410
    [   15.153564] ctl->rxq = ffffff8009b0b428
    [   15.157520] ctl->ackq = ffffff8009b0b440
    [   15.161565] ctl->kickq = ffffff8009b0b458
    [   15.165700] ctl->tx_doneq = ffffff8009b0b470
    [   15.170101] ctl->rx_doneq = ffffff8009b0b488
    [   15.174581] Parsing patch header
    [   15.177909]  Built date: 20180417160317a
    [   15.182031] 
    [   15.183566]  Platform: ALPS
    [   15.186465]  HW/SW version: 0x8a108a10
    [   15.190357]  Patch version: 0x00000010
    [   15.194248]  Target address: 0x80000, length: 11072
    [   15.199350] patch is not ready && get semaphore success
    [   15.204790] EventGenericEventHandler: CMD Success
    [   15.209726] MtCmdPatchFinishReq
    [   15.224224] EventGenericEventHandler: CMD Success
    [   15.229140] release patch semaphore
    [   15.232762] WfMcuHwInit: Before NICLoadFirmware, check ICapMode = 0
    [   15.239236] Parsing CPU 0 fw tailer
    [   15.242856]  Chip ID: 0x04
    [   15.245662]  Eco version: 0x00
    [   15.248822]  Region number: 0x00
    [   15.252165]  Format version: 0x00
    [   15.255592]  Ram version: _reserved_
    [   15.259331]  Built date: 20180517150808
    [   15.263452]  Common crc: 0x0
    [   15.266417] Parsing tailer region 0
    [   15.270012]  Feature set: 0x01
    [   15.273238]  Target address: 0x84000, Download size: 409600
    [   15.278987] Parsing tailer region 1
    [   15.282584]  Feature set: 0x01
    [   15.285745]  Target address: 0x209c400, Download size: 52928
    [   15.291640] EventGenericEventHandler: CMD Success
    [   15.300521] EventGenericEventHandler: CMD Success
    [   15.305683] MtCmdFwStartReq: override = 0x1, address = 0x84000
    [   15.311769] EventGenericEventHandler: CMD Success
    [   15.316630] Parsing CPU 1 fw tailer
    [   15.320249]  Chip ID: 0x04
    [   15.323051]  Eco version: 0x00
    [   15.326213]  Region number: 0x00
    [   15.329556]  Format version: 0x00
    [   15.332984]  Ram version: _reserved_
    [   15.336724]  Built date: 20171109171430
    [   15.340858]  Common crc: 0x0
    [   15.343834] Parsing tailer region 0
    [   15.347433]  Feature set: 0x01
    [   15.350589]  Target address: 0x90000000, Download size: 118480
    [   15.356654] EventGenericEventHandler: CMD Success
    [   15.361971] MtCmdFwStartReq: override = 0x4, address = 0x0
    [   15.419267] EventGenericEventHandler: CMD Success
    [   15.472368] MCU Init Done!
    [   15.475226] efuse_probe: efuse = 10000212
    [   15.479365] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
    [   15.484934] RtmpEepromGetDefault::e2p_dafault=1
    [   15.489608] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
    [   15.497420] NVM is FLASH mode. dev_idx [1] FLASH OFFSET [0x5000]
    [   15.503936] NICReadEEPROMParameters: EEPROM 0x52 b31f
    [   15.510107] MtCmdSetTxLpfCal:(ret = 0)
    [   15.514000] MtCmdSetTxIqCal:(ret = 0)
    [   15.517820] MtCmdSetTxDcCal:(ret = 0)
    [   15.521632] MtCmdSetRxFiCal:(ret = 0)
    [   15.525470] MtCmdSetRxFdCal:(ret = 0)
    [   15.529278] MtCmdSetRxFdCal:(ret = 0)
    [   15.533086] MtCmdSetRxFdCal:(ret = 0)
    [   15.536890] MtCmdSetRxFdCal:(ret = 0)
    [   15.540715] MtCmdSetRxFdCal:(ret = 0)
    [   15.544519] MtCmdSetRxFdCal:(ret = 0)
    [   15.548322] MtCmdSetRxFdCal:(ret = 0)
    [   15.552128] MtCmdSetRxFdCal:(ret = 0)
    [   15.555932] MtCmdSetRxFdCal:(ret = 0)
    [   15.559726] NICReadEEPROMParameters: EEPROM 0x52 b31f
    [   15.565657] MtCmdPATrimReStoreProc: WF0 = 0x00000000 
    [   15.571584] MtCmdPATrimReStoreProc: WF1 = 0x00000000 
    [   15.577592] MtCmdPATrimReStoreProc: WF2 = 0x00000000 
    [   15.583521] MtCmdPATrimReStoreProc: WF3 = 0x00dd0000 
    [   15.589528] MtCmdPATrimReStoreProc:(Status = 0)
    [   16.126349] Country Region from e2p = 101
    [   16.130504] mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
    [   16.136883] mt7615_antenna_default_reset(): DBDC BAND0 TxPath = 2, RxPath = 2
    [   16.144248] mt7615_antenna_default_reset(): DBDC BAND1 TxPath = 2, RxPath = 2
    [   16.151614] RcRadioInit(): DbdcMode=0, ConcurrentBand=1
    [   16.157005] RcRadioInit(): pRadioCtrl=ffffffc00b850768,Band=0,rfcap=3,channel=1,PhyMode=2 extCha=0xf
    [   16.166510] MtCmdSetDbdcCtrl:(ret = 0)
    [   16.170387] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
    [   16.176794] MtBfBackOffLoadParam: RF_LOCKDOWN Feature OFF !!!
    [   16.182917] EEPROM Init Done!
    [   16.185986] mt_mac_init()-->
    [   16.188957] mt7615_init_mac_cr()-->
    [   16.192569] mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
    [   16.197960] mt7615_init_mac_cr(): TMAC_TRCR1=0x82783c8c
    [   16.203371]  Initialize FT KDP Module...
    [   16.283296] Main bssid = 00:00:00:00:00:00
    [   16.290713] MtCmdSetMacTxRx:(ret = 0)
    [   16.294640] MtCmdSetMacTxRx:(ret = 0)
    [   16.298423]  CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
    [   16.415821] wifi_sys_open(), wdev idx = 0
    [   16.419990] wdev_attr_update(): wdevId0 = 18:c2:bf:8e:f5:8c
    [   16.425826] MtCmdSetDbdcCtrl:(ret = 0)
    [   16.429741]  [RadarStateCheck] RD_NORMAL_MODE  
    [   16.435312] phy_freq_adjust : no prim_ch value for adjust!
    [   16.441131] Caller: wlan_operate_init+0xe0/0x110 [mt_wifi]
    [   16.446814] phy_mode=49, ch=0, wdev_type=1
    [   16.451041] ht_cap->HtCapInfo: ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
    [   16.460643] ht_cap->HtCapParm: mdpu_density=5, ampdu_factor=3
    [   16.466696] AP inf up for ra_0(func_idx) OmacIdx=0
    [   16.471644] RcGetHdevByChannel():Err! Update PhyMode failed, no phyctrl support this channel=0!
    [   16.480618] HcGetBandByChannel(): no hdev parking on channel:0!
    [   16.486808] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
    [   16.491927] RcGetHdevByChannel():Err! Update PhyMode failed, no phyctrl support this channel=0!
    [   16.500905] HcSetRadioCurStatByChannel(): no hdev parking on channel:0 !!!
    [   16.507999] ApAutoChannelAtBootUp----------------->
    [   16.513031] ApAutoChannelAtBootUp: AutoChannelBootup = 1, AutoChannelFlag = 1
    [   16.520532] MtCmdSetMacTxRx:(ret = 0)
    [   16.524364] mt7615_apply_dcoc() : reload Central CH [36] BW [0] from cetral freq [5190]  offset [700]
    [   16.534002] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   16.538503] mt7615_apply_dpd() : reload Central CH [36] BW [0] from cetral freq [5180] i[7] offset [2be8]
    [   16.548496] MtCmdGetTXDPDCalResult:(ret = 0)
    [   16.552905] MtCmdChannelSwitch: control_chl = 36,control_ch2=0, central_chl = 36 DBDCIdx= 0, Band= 0
    [   16.562331] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   16.947371] mt7615_apply_dcoc() : reload Central CH [40] BW [0] from cetral freq [5190]  offset [700]
    [   16.957005] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   16.961512] mt7615_apply_dpd() : reload Central CH [40] BW [0] from cetral freq [5200] i[8] offset [2cc0]
    [   16.971524] MtCmdGetTXDPDCalResult:(ret = 0)
    [   16.975932] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 40 DBDCIdx= 0, Band= 0
    [   16.985356] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   17.371429] :MtCmdCr4Set: arg0(13) arg1(255) arg2(4)
    [   17.376660] mt7615_apply_dcoc() : reload Central CH [44] BW [0] from cetral freq [5230]  offset [800]
    [   17.386224] :MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
    [   17.386316] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   17.386322] mt7615_apply_dpd() : reload Central CH [44] BW [0] from cetral freq [5220] i[9] offset [2d98]
    [   17.386435] MtCmdGetTXDPDCalResult:(ret = 0)
    [   17.386439] MtCmdChannelSwitch: control_chl = 44,control_ch2=0, central_chl = 44 DBDCIdx= 0, Band= 0
    [   17.386441] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   17.767355] mt7615_apply_dcoc() : reload Central CH [48] BW [0] from cetral freq [5230]  offset [800]
    [   17.776997] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   17.781501] mt7615_apply_dpd() : reload Central CH [48] BW [0] from cetral freq [5240] i[10] offset [2e70]
    [   17.791586] MtCmdGetTXDPDCalResult:(ret = 0)
    [   17.795995] MtCmdChannelSwitch: control_chl = 48,control_ch2=0, central_chl = 48 DBDCIdx= 0, Band= 0
    [   17.805486] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   18.191357] mt7615_apply_dcoc() : reload Central CH [52] BW [0] from cetral freq [5270]  offset [900]
    [   18.200984] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   18.205486] mt7615_apply_dpd() : reload Central CH [52] BW [0] from cetral freq [5260] i[11] offset [2f48]
    [   18.215631] MtCmdGetTXDPDCalResult:(ret = 0)
    [   18.220040] MtCmdChannelSwitch: control_chl = 52,control_ch2=0, central_chl = 52 DBDCIdx= 0, Band= 0
    [   18.229463] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   18.615356] mt7615_apply_dcoc() : reload Central CH [56] BW [0] from cetral freq [5270]  offset [900]
    [   18.625025] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   18.629533] mt7615_apply_dpd() : reload Central CH [56] BW [0] from cetral freq [5280] i[12] offset [3020]
    [   18.639652] MtCmdGetTXDPDCalResult:(ret = 0)
    [   18.644060] MtCmdChannelSwitch: control_chl = 56,control_ch2=0, central_chl = 56 DBDCIdx= 0, Band= 0
    [   18.653493] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   19.039370] mt7615_apply_dcoc() : reload Central CH [60] BW [0] from cetral freq [5310]  offset [a00]
    [   19.048995] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   19.053503] mt7615_apply_dpd() : reload Central CH [60] BW [0] from cetral freq [5300] i[13] offset [30f8]
    [   19.063578] MtCmdGetTXDPDCalResult:(ret = 0)
    [   19.067987] MtCmdChannelSwitch: control_chl = 60,control_ch2=0, central_chl = 60 DBDCIdx= 0, Band= 0
    [   19.077424] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   19.463355] mt7615_apply_dcoc() : reload Central CH [64] BW [0] from cetral freq [5310]  offset [a00]
    [   19.472974] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   19.477495] mt7615_apply_dpd() : reload Central CH [64] BW [0] from cetral freq [5320] i[14] offset [31d0]
    [   19.487571] MtCmdGetTXDPDCalResult:(ret = 0)
    [   19.491979] MtCmdChannelSwitch: control_chl = 64,control_ch2=0, central_chl = 64 DBDCIdx= 0, Band= 0
    [   19.501401] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   19.887359] mt7615_apply_dcoc() : reload Central CH [100] BW [0] from cetral freq [5510]  offset [f00]
    [   19.897077] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   19.901585] mt7615_apply_dpd() : reload Central CH [100] BW [0] from cetral freq [5500] i[23] offset [3968]
    [   19.911750] MtCmdGetTXDPDCalResult:(ret = 0)
    [   19.916158] MtCmdChannelSwitch: control_chl = 100,control_ch2=0, central_chl = 100 DBDCIdx= 0, Band= 0
    [   19.925767] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   20.311356] mt7615_apply_dcoc() : reload Central CH [104] BW [0] from cetral freq [5510]  offset [f00]
    [   20.321073] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   20.325574] mt7615_apply_dpd() : reload Central CH [104] BW [0] from cetral freq [5520] i[24] offset [3a40]
    [   20.335736] MtCmdGetTXDPDCalResult:(ret = 0)
    [   20.340219] MtCmdChannelSwitch: control_chl = 104,control_ch2=0, central_chl = 104 DBDCIdx= 0, Band= 0
    [   20.349822] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   20.735353] mt7615_apply_dcoc() : reload Central CH [108] BW [0] from cetral freq [5550]  offset [1000]
    [   20.745229] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   20.749730] mt7615_apply_dpd() : reload Central CH [108] BW [0] from cetral freq [5540] i[25] offset [3b18]
    [   20.759903] MtCmdGetTXDPDCalResult:(ret = 0)
    [   20.764312] MtCmdChannelSwitch: control_chl = 108,control_ch2=0, central_chl = 108 DBDCIdx= 0, Band= 0
    [   20.773918] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   21.159359] mt7615_apply_dcoc() : reload Central CH [112] BW [0] from cetral freq [5550]  offset [1000]
    [   21.169168] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   21.173671] mt7615_apply_dpd() : reload Central CH [112] BW [0] from cetral freq [5560] i[26] offset [3bf0]
    [   21.183855] MtCmdGetTXDPDCalResult:(ret = 0)
    [   21.188263] MtCmdChannelSwitch: control_chl = 112,control_ch2=0, central_chl = 112 DBDCIdx= 0, Band= 0
    [   21.197866] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   21.583357] mt7615_apply_dcoc() : reload Central CH [116] BW [0] from cetral freq [5590]  offset [1100]
    [   21.593155] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   21.597656] mt7615_apply_dpd() : reload Central CH [116] BW [0] from cetral freq [5580] i[27] offset [3cc8]
    [   21.607821] MtCmdGetTXDPDCalResult:(ret = 0)
    [   21.612229] MtCmdChannelSwitch: control_chl = 116,control_ch2=0, central_chl = 116 DBDCIdx= 0, Band= 0
    [   21.621829] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   22.007362] mt7615_apply_dcoc() : reload Central CH [120] BW [0] from cetral freq [5590]  offset [1100]
    [   22.017170] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   22.021674] mt7615_apply_dpd() : reload Central CH [120] BW [0] from cetral freq [5600] i[28] offset [3da0]
    [   22.031839] MtCmdGetTXDPDCalResult:(ret = 0)
    [   22.036248] MtCmdChannelSwitch: control_chl = 120,control_ch2=0, central_chl = 120 DBDCIdx= 0, Band= 0
    [   22.045865] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   22.431353] mt7615_apply_dcoc() : reload Central CH [124] BW [0] from cetral freq [5630]  offset [1200]
    [   22.441157] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   22.445678] mt7615_apply_dpd() : reload Central CH [124] BW [0] from cetral freq [5620] i[29] offset [3e78]
    [   22.455843] MtCmdGetTXDPDCalResult:(ret = 0)
    [   22.460263] MtCmdChannelSwitch: control_chl = 124,control_ch2=0, central_chl = 124 DBDCIdx= 0, Band= 0
    [   22.469934] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   22.855355] mt7615_apply_dcoc() : reload Central CH [128] BW [0] from cetral freq [5630]  offset [1200]
    [   22.865169] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   22.869670] mt7615_apply_dpd() : reload Central CH [128] BW [0] from cetral freq [5640] i[30] offset [3f50]
    [   22.879898] MtCmdGetTXDPDCalResult:(ret = 0)
    [   22.884344] MtCmdChannelSwitch: control_chl = 128,control_ch2=0, central_chl = 128 DBDCIdx= 0, Band= 0
    [   22.893950] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   23.279351] ====================================================================
    [   23.286992] Channel  36 : Busy Time =    491, Skip Channel = FALSE, BwCap = TRUE
    [   23.294624] Channel  40 : Busy Time =    223, Skip Channel = FALSE, BwCap = TRUE
    [   23.302255] Channel  44 : Busy Time =    169, Skip Channel = FALSE, BwCap = TRUE
    [   23.309886] Channel  48 : Busy Time =    794, Skip Channel = FALSE, BwCap = TRUE
    [   23.317516] Channel  52 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.325146] Channel  56 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.332777] Channel  60 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.340407] Channel  64 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.348037] Channel 100 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.355667] Channel 104 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.363297] Channel 108 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.370927] Channel 112 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.378558] Channel 116 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.386194] Channel 120 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.393834] Channel 124 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.401471] Channel 128 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   23.409104] ====================================================================
    [   23.416742] Rule 3 Channel Busy time value : Select Primary Channel 52
    [   23.423479] Rule 3 Channel Busy time value : Min Channel Busy = 0
    [   23.429764] Rule 3 Channel Busy time value : BW = 80
    [   23.434888]  AutoChSelUpdateChannel(): Update channel for wdev0 for this band PhyMode = 49,Channel = 52 
    [   23.445412]  AutoChSelUpdateChannel(): Update channel for wdev1 for this band PhyMode = 49,Channel = 52 
    [   23.455910]  AutoChSelUpdateChannel(): Update channel for wdev2 for this band PhyMode = 49,Channel = 52 
    [   23.466407]  AutoChSelUpdateChannel(): Update channel for wdev3 for this band PhyMode = 49,Channel = 52 
    [   23.476906]  AutoChSelUpdateChannel(): Update channel for wdev4 for this band PhyMode = 49,Channel = 52 
    [   23.487406]  [RadarStateCheck] RD_SILENCE_MODE  
    [   23.493077] [DfsCacNormalStart] CAC 65 seconds start . Disable MAC TX
    [   23.513383] [DfsSwitchCheck]: DFS ByPass TX calibration.
    [   23.518871] mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00]
    [   23.528567] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   23.533068] mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8]
    [   23.543141] MtCmdGetTXDPDCalResult:(ret = 0)
    [   23.547549] MtCmdChannelSwitch: control_chl = 52,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0
    [   23.556972] BW = 2,TXStream = 4, RXStream = 4, scan(0)
    [   23.939539] [WrapDfsRadarDetectStart]: DfsChBand[0]: 1, DfsChBand[1]: 0
    [   23.958989] ApAutoChannelAtBootUp<-----------------
    [   23.964023] Current Channel is 52. DfsZeroWaitSupport=0
    [   23.969418] [PMF]APPMFInit:: apidx=0, MFPC=1, MFPR=0, SHA256=0
    [   23.975441] [PMF]PMF_MakeRsnIeGMgmtCipher: Insert BIP to the group management cipher of RSNIE
    [   23.984270] wifi_sys_linkup(), wdev idx = 0
    [   23.988592] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
    [   23.988592]  LinkToOmacIdx = 0, LinkToWdevType = 1
    [   24.053998] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8196
    [   24.081459] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 0
    [   25.544260] apidx 0 for WscUUIDInit
    [   25.547872] Generate UUID for apidx(0)
    [25.54][1214][set_confs_after_in[   25.555637] RTMPIoctlMAC():after trim space, ptr len=87, pointer(ffffffc00ac73000)=82078024=0,82078028=0,8207802C=0,82078030=0,82078034=0,82078038=0,82078040=0,82078044=0!
    terface_up:440]: cmd iwpriv rai0 mac 82078024=0,[   25.574948] set_thermal_protection_admin_ctrl_duty_proc: u4Lv0Duty: 100, u4Lv1Duty: 75, u4Lv2Duty: 60, u4Lv3Duty: 20
    82078028=0,8207802C=0,82078030=0,82078034=0,82078038=0,82078040=0,82078044=0
    [25.56][1214][set_confs_after_interface_up:458]: cmd iwpriv rai0 set tpc_duty=100:[   25.600889] set_thermal_protection_criteria_proc: fgHighEn: 1, fgLowEn: 1, fgRFOffEn: 1, cHighTempTh: 122, cLowTempTh: 116, cRFOffTh: 125
    075:060:020
    [25[   25.613955] set_thermal_protection_criteria_proc: u4RechkTimer: 30, ucType: Duty Cycle
    .59][1214][set_c[   25.623404] MtCmdThermalProtect: HighEn: 1, HighTempTh: 122, LowEn: 1, LowTempTh: 116, RechkTimer: 30
    onfs_after_inter[   25.634338] MtCmdThermalProtect: RFOffEn: 1, RFOffTh: 125, ucType: 1
    face_up:463]: cmd iwpriv rai0 set tpc=1:1:1:122:116:125:0030:1
    [   25.654036] debug : Enter [BRCTL_ADD_RULE_IF] 
    [   25.658669] add_if 00000100 ***************************
    [   25.664238] device rai0 entered promiscuous mode
    [   25.669042] br0: port 3(rai0) entered forwarding state
    [   25.674355] br0: port 3(rai0) entered forwarding state
    [   25.701136] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.715814] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.730488] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.745126] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.759761] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.777646] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.792360] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.807016] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.821763] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.836406] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   25.860927] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8196, CmdBssInfoBmcRate.u2McTransmit = 8196
    [   25.873602] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8196, CmdBssInfoBmcRate.u2McTransmit = 8196
    [   25.886155] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8196, CmdBssInfoBmcRate.u2McTransmit = 8196
    [   25.898740] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8196, CmdBssInfoBmcRate.u2McTransmit = 8196
    [   25.911292] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8196, CmdBssInfoBmcRate.u2McTransmit = 8196
    [   25.927081] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8192
    [   25.939736] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8192
    [   25.952400] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8192
    [   25.964956] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8192
    [   25.977526] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8192
    miniupnpd[1419]: WPS listening on port 56383
    [   26.185030] mcsnoop: flush all snoop entry
    [   26.189373] mcsnoop: Bridge Multicast Snooping module Ver0.1/20070912
    [   26.204662] mcsnoop_br_ioctl_device:275: mcast_maxage 75000 / 250
    [   26.212850] device eth0 left promiscuous mode
    [   26.217586] br0: port 1(eth0) entered disabled state
    [   26.224782] debug : Enter [BRCTL_ADD_RULE_IF] 
    [   26.229415] add_if 00000600 ***************************
    [   26.234996] device eth0 entered promiscuous mode
    [   26.239812] br0: port 1(eth0) entered forwarding state
    [   26.245126] br0: port 1(eth0) entered forwarding state
    Link Status Changed - LAN Port Link Down
    [   26.313684] netwatchd uses obsolete (PF_INET,SOCK_PACKET)
    crond[1483]: crond: crond (busybox 1.18.5) started, log level 8
    [   26.912299] EventThermalProtect: HLType = 1, CurrentTemp = 22, Reason = 1
    start miniupnpd
    miniupnpd[1513]: HTTP listening on port 34416
    miniupnpd[1513]: Listening for NAT-PMP/PCP traffic on port 5351
    ntp.jst.mfeed.ad.jp: Unknown host
    Link Status Changed - WAN Port Link UP
    killall: dnrd_guest: no process killed
    killall: dnrd_unnum: no process killed
    Time out! You may increase DEFAULT_TIMEOUT_COUNT[10]!
    Time out! You may increase DEFAULT_TIMEOUT_COUNT[10]!
    Time out! You may increase DEFAULT_TIMEOUT_COUNT[10]!
    Time out! You may increase DEFAULT_TIMEOUT_COUNT[10]!
    Time out! You may increase DEFAULT_TIMEOUT_COUNT[10]!
    Time out! You may increase DEFAULT_TIMEOUT_COUNT[10]!
    killall: dnrd_guest: no process killed
    killall: dnrd_unnum: no process killed
    killall: dnrd_guest: no process killed
    killall: dnrd_unnum: no process killed
    killall: dnrd_guest: no process killed
    killall: dnrd_unnum: no process killed
    
    

WG1200CR stock -> OpenWrt (ath79)

1つ前の記事で書いた通り、Cのプログラムをでっち上げたのでそれを利用してfactoryを生成。メーカーファームからの投入を試行したのでメモ。

log

[ephp.c read_operand_list 1234] PHP operator precedence issue at: /htdocs/webinc/js/tools_fw_rlt.php, operand_qty: 6, add_qty: 2, mul_qty: 3
SERVD: event [PREFWUPDATE/default]
[/etc/scripts/prefwupdate.sh] ....
SERVD: stop service [THERMAL]
Stop THERMAL service ..
SERVD: event [STATUS.CRITICAL] not found!
SERVD: stop service [WAN]
SERVD: stop service [WIFI]
SERVD: service [WIFI] is already stopped.
SERVD: stop service [LAN]
SERVD: stop service [INET.WAN-1]
[/var/servd/INET.WAN-1_stop.sh]: stopping WAN-1...
[/var/servd/WAN-1-udhcpc.sh]: deconfig eth0.2 ...
SERVD: event [WAN-1.DOWN/default]
[/var/servd/INET.WAN-1_stop.sh]: stopping WAN-1 done !!!
SERVD: stop service [INET.WAN-2]
SERVD: service [INET.WAN-2] is already stopped.
SERVD: stop service [INET.WAN-3]
SERVD: service [INET.WAN-3] is already stopped.
SERVD: stop service [INET.WAN-4]
SERVD: service [INET.WAN-4] is already stopped.
SERVD: stop service [INET.WAN-5]
SERVD: service [INET.WAN-5] is already stopped.
SERVD: stop service [IPT.WAN-1]
SERVD: stop service [IPT.WAN-2]
SERVD: stop service [IPT.WAN-3]
SERVD: stop service [IPT.WAN-4]
SERVD: stop service [IPT.WAN-5]
SERVD: service [IPT.WAN-5] is already stopped.
SERVD: stop service [IPTDMZ]
SERVD: stop service [IPTPORTT]
SERVD: stop service [IPTPFWD]
SERVD: stop service [IPTVSVR]
iptables: No chain/target/match by that name.
SERVD: stop service [IPTMASQ]
SERVD: stop service [INET.LAN-1]
[/var/servd/INET.LAN-1_stop.sh]: stopping LAN-1...
SERVD: event [LAN-1.DOWN/default]
/var/run/phpsh-14632.sh: line 6: can't create /proc/nf_accelerate_to_local: nonexistent directory
[/var/servd/INET.LAN-1_stop.sh]: stopping LAN-1 done !!!
SERVD: stop service [INET.LAN-2]
SERVD: service [INET.LAN-2] is already stopped.
SERVD: stop service [INET.LAN-4]
SERVD: service [INET.LAN-4] is already stopped.
SERVD: stop service [INET.LAN-5]
SERVD: service [INET.LAN-5] is already stopped.
SERVD: stop service [INET.LAN-6]
SERVD: service [INET.LAN-6] is already stopped.
SERVD: stop service [IPT.LAN-1]
SERVD: stop service [IPT.LAN-2]
SERVD: stop service [IPT.LAN-3]
SERVD: service [IPT.LAN-3] is already stopped.
SERVD: stop service [IPT.LAN-4]
SERVD: service [IPT.LAN-4] is already stopped.
SERVD: stop service [IPT.LAN-5]
SERVD: service [IPT.LAN-5] is already stopped.
SERVD: stop service [IPT.LAN-6]
SERVD: service [IPT.LAN-6] is already stopped.
SERVD: stop service [ACCESSCTRL]
SERVD: stop service [INFSVCS.WAN-1]
SERVD: event [INFSVCS.WAN-1.DOWN] not found!
SERVD: event [UPNP.IGD.NOTIFY.WANIPCONN1/default]
SERVD: event [UPDATERESOLV/default]
SERVD: event [WAN-1.DISCONNECTED/default]
SERVD: stop service [HTTP]
SERVD: event [HTTP.DOWN/default]
SERVD: stop service [INFSVCS.LAN-1]
[/etc/events/FWUPDATER.sh] ...
kill servd, xmldb, watchdog, and load.sh
copy upgrade needed file to ramfs
remout /www /htdocs /etc /usr /bin /sbin to empty ramfs avoid someone access rootfs
FWUPDATER: about to write 4259844 bytes data to /dev/mtdblock/6
[  539.180000] ATT:001[SYN-ACK]:IN=br0 OUT= MAC=98:f1:99:f2:1d:24:5c:9a:d8:e6:3f:b3:08:00 SRC=192.168.10.101 DST=88.99.186.153 LEN=263 TOS=0x00 PREC=0x00 TTL=129 ID=23596 PROTO=TCP SPT=49877 DPT=443 WINDOW=65535 RES=0x00 ACK PSH URGP=0 
[  539.410000] ATT:001[SYN-ACK]:IN=br0 OUT= MAC=98:f1:99:f2:1d:24:5c:9a:d8:e6:3f:b3:08:00 SRC=192.168.10.101 DST=88.99.186.153 LEN=263 TOS=0x00 PREC=0x00 TTL=129 ID=23597 PROTO=TCP SPT=49876 DPT=443 WINDOW=65535 RES=0x00 ACK PSH URGP=0 
[  554.070000] ATT:001[SYN-ACK]:IN=br0 OUT= MAC=98:f1:99:f2:1d:24:5c:9a:d8:e6:3f:b3:08:00 SRC=192.168.10.101 DST=88.99.186.153 LEN=263 TOS=0x00 PREC=0x00 TTL=129 ID=23598 DF PROTO=TCP SPT=49877 DPT=443 WINDOW=65535 RES=0x00 ACK PSH URGP=0 
[  554.380000] ATT:001[SYN-ACK]:IN=br0 OUT= MAC=98:f1:99:f2:1d:24:5c:9a:d8:e6:3f:b3:08:00 SRC=192.168.10.101 DST=88.99.186.153 LEN=263 TOS=0x00 PREC=0x00 TTL=129 ID=23599 DF PROTO=TCP SPT=49876 DPT=443 WINDOW=65535 RES=0x00 ACK PSH URGP=0 
[  556.070000] ATT:001[SYN-ACK]:IN=eth0.2 OUT= MAC=98:f1:99:f2:1d:25:00:25:36:14:e9:8c:08:00:45:00:00:47 SRC=178.63.70.146 DST=192.168.1.65 LEN=71 TOS=0x00 PREC=0x00 TTL=51 ID=33765 DF PROTO=TCP SPT=443 DPT=49879 WINDOW=26800 RES=0x00 ACK PSH URGP=0 
FWUPDATER: cost 32.573702 seconds
fwupdate: unable to read SEAMA header!
/etc/events/FWUPDATER.sh: line 44: ca[  571.750000] ath_vap_stopping=1
n't create /proc/driver/system_reset: nonexistent directory
/etc/events/FWUPDATER.sh: line 45: can't create /proc/system_reset: nonexistent directory
The system is going down NOW!
Sent SIGTERM to all processes
[  571.790000] mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
[  571.830000] __ieee80211_smart_ant_init: Smart Antenna is not supported 
[  571.840000] ol_ath_vap_stopping=1
[  571.840000] STOPPED EVENT for vap 0 (8788c000)
[  571.850000] send_vdev_down_cmd_non_tlv for vap 0
[  571.880000] OL vap_start +
[  571.880000] VDEV START
[  571.880000] OL vap_start -
[  571.880000] ol_vdev_start_resp_ev for vap 0 (8788c000)
[  571.890000] su bfee 1 mu bfee 0 su bfer 1 mu bfer 1 impl bf 0 sounding dim 1
[  571.900000] send_vdev_up_cmd_non_tlv for vap 0
[  571.900000] ol_ath_vap_up=1
[  571.900000] __ieee80211_smart_ant_init: Smart Antenna is not supported 
[  571.910000] ol_ath_vap_set_param: Now supported MGMT RATE is 6000(kbps) and rate code: 0x3
[  571.920000] ol_ath_vap_set_param: Now supported MCAST RATE is 6000(kbps) and rate code: 0x3
[  572.630000] [wifi1] FWLOG: [593155] WAL_DBGID_SECURITY_MCAST_KEY_SET ( 0x1 )
[  572.640000] [wifi1] FWLOG: [593171] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
[  572.640000] [wifi1] FWLOG: [593171] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
[  572.650000] [wifi1] FWLOG: [593200] vap-0 VDEV_MGR_VDEV_START ( 0x1450, 0x2, 0x0, 0x0 )
[  572.660000] [wifi1] FWLOG: [593200] UNKNOWN 14:20 ( 0x0 )
[  572.660000] [wifi1] FWLOG: [593221] VDEV_MGR_HP_START_TIME ( 0x0, 0x1450, 0x21534000 )
[  572.670000] [wifi1] FWLOG: [593221] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x1 )
[  572.680000] [wifi1] FWLOG: [593221] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
[  572.690000] [wifi1] FWLOG: [593221] VDEV_MGR_AP_TBTT_CONFIG ( 0x0, 0x1450, 0x0, 0x0 )
Sent SIGKILL to all processes
Requesting system reboot
[  573.770000] Restarting system.


U-Boot 1.1.4 (Nov  1 2017 - 20:40:33)

SVN revision: 1501
ap152 - Dragonfly 1.0DRAM:  
sri
ath_ddr_initial_config(278): (ddr2 init)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Tap values = (0x10, 0x10, 0x10, 0x10)
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 304k for U-Boot at: 87fb0000
Reserving 160k for malloc() at: 87f88000
Reserving 44 Bytes for Board Info at: 87f87fd4
Reserving 36 Bytes for Global Data at: 87f87fb0
Reserving 128k for boot params() at: 87f67fb0
Stack Pointer at: 87f67f98
Now running in RAM - U-Boot at: 87fb0000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash:  8 MB
Power up PLL with outdiv = 0 then switch to 3
In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200 
athr_mgmt_init ::done
Dragonfly  ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x40802100
Trying eth0
eth0 link down
FAIL
Using eth0 device
listen from server 192.168.1.10; our IP address is 192.168.1.1
monitor_packet_result 0
Hit any key to stop autoboot:  0 
## Booting image at 9f080040 ...
   Image Name:   MIPS OpenWrt Linux-4.14.105
   Created:      2019-03-13  17:14:02 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1615472 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9f080080 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728

Starting kernel ...

[    0.000000] Linux version 4.14.105 (jenkins@tofu-z77hvub18_openwrt) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9537-e6d28b4fee)) #0 Wed Mar 13 17:14:02 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WG1200CR
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    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, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    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] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 123184K/131072K available (3779K kernel code, 149K rwdata, 912K rodata, 1232K init, 204K bss, 7888K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008215] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074760] pid_max: default: 32768 minimum: 301
[    0.079783] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086764] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097654] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108047] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.114544] pinctrl core: initialized pinctrl subsystem
[    0.120867] NET: Registered protocol family 16
[    0.131277] PCI host bridge /ahb/apb/pcie-controller@18250000 ranges:
[    0.138077]  MEM 0x0000000012000000..0x0000000013ffffff
[    0.143610]   IO 0x0000000000000000..0x0000000000000000
[    0.164196] PCI host bridge to bus 0000:00
[    0.168525] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.175802] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.181671] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.188827] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.197596] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.207577] clocksource: Switched to clocksource MIPS
[    0.213804] NET: Registered protocol family 2
[    0.219068] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.226424] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.233172] TCP: Hash tables configured (established 1024 bind 1024)
[    0.239999] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.246163] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.253036] NET: Registered protocol family 1
[    0.260391] Crashlog allocated RAM at address 0x3f00000
[    0.266999] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.277860] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.284004] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.302195] io scheduler noop registered
[    0.306326] io scheduler deadline registered (default)
[    0.313452] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    0.321751] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.329101] console [ttyS0] disabled
[    0.332902] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a 16550A
[    0.342032] console [ttyS0] enabled
[    0.342032] console [ttyS0] enabled
[    0.349582] bootconsole [early0] disabled
[    0.349582] bootconsole [early0] disabled
[    0.363588] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.368723] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.375279] Creating 7 MTD partitions on "spi0.0":
[    0.380249] 0x000000000000-0x000000040000 : "u-boot"
[    0.386055] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.392231] 0x000000050000-0x000000060000 : "devconf"
[    0.398130] 0x000000060000-0x000000070000 : "misc"
[    0.403683] 0x000000070000-0x000000080000 : "wifimngdata"
[    0.409954] 0x000000080000-0x0000007f0000 : "firmware"
[    0.416207] 2 seama-fw partitions found on MTD device firmware
[    0.422277] Creating 2 MTD partitions on "firmware":
[    0.427416] 0x000000000040-0x000000190000 : "kernel"
[    0.433161] 0x000000190000-0x000000770000 : "rootfs"
[    0.438924] mtd: device 7 (rootfs) set to be root filesystem
[    0.444806] 1 squashfs-split partitions found on MTD device rootfs
[    0.451235] 0x000000410000-0x000000770000 : "rootfs_data"
[    0.457428] 0x0000007f0000-0x000000800000 : "art"
[    0.463938] libphy: Fixed MDIO Bus: probed
[    0.807938] libphy: ag71xx_mdio: probed
[    0.814908] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    1.469348] ag71xx 19000000.eth: invalid MAC address, using random address
[    1.808736] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    1.820327] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[    1.828446] NET: Registered protocol family 10
[    1.836389] Segment Routing with IPv6
[    1.840310] NET: Registered protocol family 17
[    1.844943] 8021q: 802.1Q VLAN Support v1.8
[    1.854680] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.868869] Freeing unused kernel memory: 1232K
[    1.873551] This architecture does not have kernel memory protection.
[    2.520873] init: Console is alive
[    2.524572] init: - watchdog -
[    2.547589] random: fast init done
[    3.559875] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.672369] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.690250] init: - preinit -
[    4.342977] random: jshn: uninitialized urandom read (4 bytes read)
[    4.438282] random: jshn: uninitialized urandom read (4 bytes read)
[    4.731136] random: jshn: uninitialized urandom read (4 bytes read)
[    5.812413] urandom_read: 4 callbacks suppressed
[    5.812420] random: procd: uninitialized urandom read (4 bytes read)
[    5.828955] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.835036] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
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
[    6.908954] eth0: link up (1000Mbps/Full duplex)
[    6.913811] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.920616] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[    9.041438] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    9.069225] urandom-seed: Seed file not found (/etc/urandom.seed)
[    9.146253] eth0: link down
[    9.164727] procd: - early -
[    9.168571] procd: - watchdog -
[    9.772570] procd: - watchdog -
[    9.776058] procd: - ubus -
[    9.806263] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.829662] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.837391] procd: - init -
Please press Enter to activate this console.
[   10.109815] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.121855] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.135151] Loading modules backported from Linux version v4.19.23-0-g67d52fae61c1
[   10.143016] Backport generated by backports.git v4.19.23-1-0-g480a925a
[   10.152281] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.164807] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   10.220111] xt_time: kernel timezone is -0000
[   10.273835] PPP generic driver version 2.4.2
[   10.280431] NET: Registered protocol family 24
[   10.311894] ath10k 4.19 driver, optimized for CT firmware, probing pci device: 0x56.
[   10.321293] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   10.327446] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   10.519504] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:00:00.0.txt failed with error -2
[   10.530407] ath10k_pci 0000:00:00.0: Falling back to user helper
[   10.681152] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
[   10.690516] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   10.701599] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.007662] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/ct-firmware-5.bin failed with error -2
[   11.019002] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.151281] firmware ath10k!QCA9888!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[   11.161105] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/ct-firmware-2.bin failed with error -2
[   11.172457] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.346084] firmware ath10k!QCA9888!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[   11.355906] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-6.bin failed with error -2
[   11.366987] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.540529] firmware ath10k!QCA9888!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   12.133436] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[   12.142996] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   12.162949] ath10k_pci 0000:00:00.0: firmware ver 10.4b-ct-9888-fW-012-38a5514c api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT crc32 2a31e1c4
[   12.497483] ath10k_pci 0000:00:00.0: board_file api 2 bmi_id 0:18 crc32 d65c17b1
[   14.534673] ath10k_pci 0000:00:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   14.542446] ath10k_pci 0000:00:00.0: msdu-desc: 2500  skid: 32
[   14.572900] ath10k_pci 0000:00:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   14.584209] ath10k_pci 0000:00:00.0: wmi print 'free: 121744 iram: 25908 sram: 30092'
[   14.795616] ath10k_pci 0000:00:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   14.967346] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2
[   14.977998] ath9k 18100000.wmac: Falling back to user helper
[   15.638153] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
[   15.669357] kmodloader: done loading kernel modules from /etc/modules.d/*
[   23.345884] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   23.386281] jffs2_build_filesystem(): unlocking the mtd device... 
[   23.386289] done.
[   23.394701] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   27.811454] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.879284] device eth0 entered promiscuous mode
[   27.897902] br-lan: port 1(eth0.1) entered blocking state
[   27.903483] br-lan: port 1(eth0.1) entered disabled state
[   27.909370] device eth0.1 entered promiscuous mode
[   28.001388] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   28.078789] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   28.829239] eth0: link up (1000Mbps/Full duplex)
[   28.834089] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.918449] br-lan: port 1(eth0.1) entered blocking state
[   28.924038] br-lan: port 1(eth0.1) entered forwarding state
[   28.930093] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   29.077660] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   43.297671] done.
[   43.299695] jffs2: notice: (1248) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   43.749646] overlayfs: upper fs does not support tmpfile.
[  120.177615] random: crng init done



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+9611-6087c7b9da
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#