Switch-M8eG PN28080K

既に記事を書いたSwitch-M24eG PN28240KがRealtek SoCを搭載していることを知った際、シリーズ内を調べて同様にRealtek SoC搭載機であることを確認していた機種。
既にM24eGがあるわけなのでこちらは躊躇していたが、M24eGのSFPポートを検証するにあたって対向デバイスがどうしても必要であるため、エイヤで購入に至った。今回はM24eGよりも落札価格が2k近く上。ちなみにその後M8eGが今度M24eG落札価格の半分以下で出たりしていた。しゃーない。
おおよそはM24eGからポート数分削り落とした構成と思われるが、SFP周りのぶら下がり方は異なっていた。
弄っていくのでメモ。

U-Boot

help

RTL838x# # help
?         - alias for 'help'
alphachk  - check image header and verify imgae in RAM [srcaddr] [imagetype]
base      - print or set address offset
boardid   - boardid  - Get/Set board model id

boota     - boota  - boot application image from one of dual images partition automatically

bootelf   - Boot from an ELF image in memory
bootm     - boot application image from memory
bootp     - boot image via network using BOOTP/TFTP protocol
bootvx    - Boot vxWorks from an ELF image
cmp       - memory compare
cp        - memory copy
crc32     - checksum calculation
env       - environment handling commands
erase     - erase FLASH memory
ffsfmt    - ffs format
ffsls     - ffs ls
ffsmount  - mount ffs
ffsrdm    - read file to memory from ffs
ffsrm     - FFS rm
ffsumount - unmount ffs
ffswrm    - write file from memory to ffs
flinfo    - print FLASH memory information
go        - start application at address 'addr'
help      - print command description/usage
iminfo    - print header information for application image
loadb     - load binary file over serial line (kermit mode)
loady     - load binary file over serial line (ymodem mode)
loop      - infinite loop on address range
md        - memory display
mm        - memory modify (auto-incrementing address)
mtest     - simple RAM read/write test
mw        - memory write (fill)
nm        - memory modify (constant address)
ping      - send ICMP ECHO_REQUEST to network host
printenv  - print environment variables
printsys  - printsys - print system information variables

protect   - enable or disable FLASH write protection
reset     - Perform RESET of the CPU
rtk       - rtk     - Realtek commands

run       - run commands in an environment variable
saveenv   - save environment variables to persistent storage
savesys   - savesys - save system information variables to persistent storage

setenv    - set environment variables
setsys    - setsys  - set system information variables

sf        - SPI flash sub-system
showsub   - show u-boot sub version
sleep     - delay execution for some time
tftpboot  - boot image via network using TFTP protocol
updatert  - update runtime firmware
updateub  - update u-boot firmware
version   - print monitor, compiler and linker version

version

RTL838x# # version

U-Boot 2011.12.pre45842-1.00.22-svn5720 (Mar 12 2015 - 19:04:09)
mips-linux-uclibc-gcc (GCC) 3.4.4 mipssde-6.03.00-20051020
GNU ld version 2.15.94 mipssde-6.03.00-20051020

printenv

少々厄介なことに、printenvでのethaddrはFlash内にバイナリとして埋め込まれたMACアドレスが常に表示される。その上、何も触れていない完全な初期状態では、U-Bootの環境変数領域にはSDKデフォルトで個体固有ではないと思われるMACアドレスが格納されている。また、setenvでethaddrを設定した場合、U-Bootの環境変数領域のethaddrに加え、Flash内に埋め込まれているアドレスにも適用され変更される。
Flash内に埋め込まれたアドレスとU-Boot環境変数内のアドレスが異なる状態でethaddrのsetenvをせずにsaveenvした場合、埋め込まれたアドレスがU-Bootの環境変数におけるethaddrにも書き込まれる。

RTL838x# # printenv
baudrate=9600
boardmodel=RTL8380M_INTPHY_2FIB_1G_DEMO
bootcmd=bootm 0x81000000
bootdelay=3
diagmode=4
ethact=rtl8380#0
ethaddr=00:50:40:**:**:0e
file_linux=vmlinux.bix
file_linux2=vmlinux.bix
file_uboot=u-boot.bin
fileaddr=81000000
filesize=2C1914
flashoffset_env=0x80000
flashoffset_linux=0x5a0000
flashoffset_linux2=0xc50000
flashoffset_uboot=0x0
freemem=0x81000000
ipaddr=192.168.1.1
load_addr=0xb4100000
nuke_env=sf probe 0; sf erase $(flashoffset_env) +$(ssize_env)
rtkon=rtk network on;ping $(serverip)
serverip=192.168.1.111
ssize_env=0x10000
ssize_linux=0x6b0000
ssize_linux2=0x6b0000
ssize_uboot=0x80000
stderr=serial
stdin=serial
stdout=serial
up_linux=sf probe 0;sf read $(freemem) $(flashoffset_linux) $(ssize_linux);bootm $(freemem)
update_linux=tftp $(freemem) $(file_linux);sf probe 0;sf erase $(flashoffset_linux) $(ssize_linux);sf write $(fileaddr) $(flashoffset_linux) $(ssize_linux)
update_linux2=tftp $(freemem) $(file_linux2);sf probe 0;sf erase $(flashoffset_linux2) $(ssize_linux2);sf write $(fileaddr) $(flashoffset_linux2) $(ssize_linux2)
update_uboot=tftp $(freemem) $(file_uboot);sf probe 0;sf erase $(flashoffset_uboot) $(ssize_uboot);sf write $(fileaddr) $(flashoffset_uboot) $(ssize_uboot)

Environment size: 1287/65532 bytes

printsys

stockではbootaを利用していないので、関連する “sys” 領域もたぶん利用されていない

RTL838x# # printsys
Invalid system information

help rtk

rtk - rtk     - Realtek commands

Usage:
rtk object action
- SOC commands.
rtk network on
- Enable the networking function
rtk netowkr off
- Disable the networking function
rtk testmode [mode] [port]
- Set default value for specific testing
rtk ext-pinGet [pinNum]
- get external 8231 GPIO pin status
rtk ext-pinSet [pinNum] [status]
- set external 8231 GPIO pin status
rtk smi list
- list all smi group
rtk smi init [group_id] [sck_pin] [sda_pin] [8/16/8_0R/16_1R/16_0R access type] [chipid] [delay] [name]
- create a smi group and init
rtk smi read [group_id] [reg]
rtk smi write [group_id] [reg] [data]
rtk pinGet [pinNum]
- get internal GPIO pin status
rtk pinSet [pinNum] [status]
- set internal GPIO pin status
rtk poe probe
- probe poe device
rtk ledtest [port] [led_index]
- led test
rtk loopback ext [port-start] [port-end] [round]
- port traffic external loopback test
rtk loopback int [port-start] [port-end] [round]
- port traffic internal loopback test

rtk smi list

RTL838x# # rtk smi list

Index SCK_DEV SCK_PIN SDA_DEV SDA_PIN  TYPE     ID   Delay     Name
===========================================================================
00      00      00      00      01  16_1R    75   04000  PCA9539
01      00      12      00      13   8_0R    70   04000  PCA9545
02      00      00      00      01  16_1R    20   04000  PCA9555
03      00      12      00      13   8_0R    50   04000  GBIC-A0H
04      00      12      00      13   8_0R    51   04000  GBIC-A2H

rtk pinGet 0-32

RTL838x# # rtk pinGet 0
pin0:   1

RTL838x# # rtk pinGet 1
pin1:   1

RTL838x# # rtk pinGet 2
pin2:   1

RTL838x# # rtk pinGet 3
pin3:   1

RTL838x# # rtk pinGet 4
pin4:   0

RTL838x# # rtk pinGet 5
pin5:   0

RTL838x# # rtk pinGet 6
pin6:   0

RTL838x# # rtk pinGet 7
pin7:   0

RTL838x# # rtk pinGet 8
pin8:   0

RTL838x# # rtk pinGet 9
pin9:   0

RTL838x# # rtk pinGet 10
pin10:  0

RTL838x# # rtk pinGet 11
pin11:  1

RTL838x# # rtk pinGet 12
pin12:  1

RTL838x# # rtk pinGet 13
pin13:  1

RTL838x# # rtk pinGet 14
pin14:  0

RTL838x# # rtk pinGet 15
pin15:  0

RTL838x# # rtk pinGet 16
pin16:  0

RTL838x# # rtk pinGet 17
pin17:  0

RTL838x# # rtk pinGet 18
pin18:  0

RTL838x# # rtk pinGet 19
pin19:  0

RTL838x# # rtk pinGet 20
pin20:  0

RTL838x# # rtk pinGet 21
pin21:  0

RTL838x# # rtk pinGet 22
pin22:  0

RTL838x# # rtk pinGet 23
pin23:  0

RTL838x# # rtk pinGet 24
pin24:  0

RTL838x# # rtk pinGet 25
pin25:  0

RTL838x# # rtk pinGet 26
pin26:  0

RTL838x# # rtk pinGet 27
pin27:  0

RTL838x# # rtk pinGet 28
pin28:  0

RTL838x# # rtk pinGet 29
pin29:  0

RTL838x# # rtk pinGet 30
pin30:  0

RTL838x# # rtk pinGet 31
pin31:  0

RTL838x# # rtk pinGet 32
pin32:  0

rtk ext-pinGet 0

RTL838x# # rtk ext-pinGet 0
ext-gpio time out
ext-gpio time out
ext-gpio time out
ext-gpio time out
ext-gpio time out
pin0:   0

tftpboot

RTL838x# # tftpboot
*** Warning: no boot file name; using '0101A8C0.img'
Using rtl8380#0 device
TFTP from server 192.168.1.111; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0xb4100000
Loading: *

ffsmount, ffsls

RTL838x# # ffsmount c:/
File system initialization done
RTL838x# # ffsls c:/
-rw- 2890004  runtime_2.had
-rw- 2        runtime_2_checksum
-rw- 839      config.cfg
-rw- 2        config.cks
-rw- 839      config_2.cfg
-rw- 2        config_2.cks
-rw- 2890004  runtime.had
-rw- 2        runtime_checksum

Kernel

KernelはLinuxではなくVxWorks。Flash内にファイルシステムが形成されており、その中にKernelイメージが配置されている。

bootlog


U-Boot 2011.12.pre45842-1.00.22-svn5720 (Mar 12 2015 - 19:04:09)

Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHz
DRAM:  128 MB
SPI-F: 1x32 MB
Loading 65536B env. variables from offset 0x80000
#### Periphery Devices Init Successfully ####
Switch Model: RTL8380M_INTPHY_2FIB_1G (Port Count: 9)
Switch Chip: RTL8380M
**************************************************
#### RTL8218B config - MAC ID = 8 ####
Now Internal PHY

File system initialization done
Start to check runtime code(1)

## Booting kernel from Legacy Image
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Starting program

UART init . ................................................  100 %
Starting runtime image ....................................      |100 %

Configuration init ........................................      |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-100 %

[2J[0m[2J[1;1H ==============================================================================
PN28080K Local Management System Version 2.0.0.01
MAC Address: 00:50:40:**:**:0E

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

Login Menu

Login:

realtek target Kernel 5.10移植メモ

一旦色々飛ばしてブートだけするようにした状態

コンパイルエラーになるもの

  • Ethernetドライバ
  • PHYドライバ
  • DSAドライバ

backport試行予定

  • GPIOドライバ (RTL83xx/RTL93xx): linux-next (5.13)
  • SPIドライバ (RTL83xx/RTL93xx): 5.12

現状のbootlog

一旦AML2-17GPにD-Link DGS-1210-16用initramfs-kernelイメージを使用

U-Boot 2011.12.46351 (Mar 14 2014 - 16:33:56)

Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHz
DRAM:  128 MB
SPI-F: 1x32 MB
Loading 65536B env. variables from offset 0x80000
Switch Model: RTL8382M_INTPHY_8218B_8214FC_DEMO (Port Count: 17)
Switch Chip: RTL8382M
0. [0xbb00a000] 0. val = 0x2f39eb3f
0. [0xbb00a000] 1. val = 0x2f396b3f
0. val = 0x00ffff00
**************************************************
### Error chip ID = 0x0000ffff ###
**************************************************
#### RTL8218B config - MAC ID = 8 ####
Now Internal PHY
**************************************************
#### RTL8218B config - MAC ID = 16 ####
Now External 8218B
**************************************************
**** RTL8214FC config - MAC ID = 24 ****
Now External 8214FC
Net:   Net Initialization Skipped
rtl8380#0
Hit any key to stop autoboot:  0
RTL838x# # rtk network on
Enable network
Force port28 link up 1G
Please wait for PHY init-time ...

RTL838x# # tftp 0x81000000
*** Warning: no boot file name; using '0101A8C0.img'
Using rtl8380#0 device
TFTP from server 192.168.1.111; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0x81000000
Loading: T T T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################################################
done
Bytes transferred = 5660796 (56607c hex)
RTL838x# # bootm
## Booting kernel from Legacy Image at 81000000 ...
Image Name:   MIPS OpenWrt Linux-5.10.33
Created:      2021-05-05   7:21:40 UTC
Image Type:   MIPS Linux Kernel Image (gzip compressed)
Data Size:    5660732 Bytes = 5.4 MB
Load Address: 80000000
Entry Point:  80000400
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 5.10.33 (tofu@Tofu-B450HVUS20-Jenkins-Slave) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 8.4.0 r16639-b656199f91) 8.4.0, GNU ld (GNU Binutils) 2.34) #0 Wed May 5 07:21:40 2021
[    0.000000] RTL838X model is 83826800
[    0.000000] SoC Type: RTL8382
[    0.000000] Kernel command line:
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019070 (MIPS 4KEc)
[    0.000000] MIPS: machine is D-Link DGS-1210-16
[    0.000000] Registering _machine_restart
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using appended Device Tree.
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 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] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 115528K/131072K available (5168K kernel code, 564K rwdata, 1136K rodata, 7140K init, 203K bss, 15544K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 32
[    0.000000] random: get_random_bytes called from start_kernel+0x3c4/0x5b4 with crng_init=0
[    0.000000] timer_probe: no matching timers found
[    0.000000] CPU frequency from device tree: 500MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns
[    0.000022] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns
[    0.008674] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[    0.075575] pid_max: default: 32768 minimum: 301
[    0.081073] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.089130] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.103385] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.117100] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.128019] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.135698] pinctrl core: initialized pinctrl subsystem
[    0.142917] NET: Registered protocol family 16
[    0.276586] clocksource: Switched to clocksource MIPS
[    0.285070] NET: Registered protocol family 2
[    0.291394] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.300837] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.309398] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.317251] TCP: Hash tables configured (established 1024 bind 1024)
[    0.324787] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.332135] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.340473] NET: Registered protocol family 1
[    0.723511] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.739398] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.745781] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.761661] pinctrl-single bb001000.pinmux: 32 pins, size 4
[    0.870084] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.879284] printk: console [ttyS0] disabled
[    0.884091] b8002000.uart: ttyS0 at MMIO 0xb8002000 (irq = 31, base_baud = 12500000) is a 16550A
[    0.893902] printk: console [ttyS0] enabled
[    0.893902] printk: console [ttyS0] enabled
[    0.903237] printk: bootconsole [early0] disabled
[    0.903237] printk: bootconsole [early0] disabled
[    0.915510] b8002100.uart: ttyS1 at MMIO 0xb8002100 (irq = 30, base_baud = 12500000) is a 16550A
[    1.582336] brd: module loaded
[    1.588006] libphy: Fixed MDIO Bus: probed
[    1.598991] NET: Registered protocol family 10
[    1.650862] Segment Routing with IPv6
[    1.655195] NET: Registered protocol family 17
[    1.661106] 8021q: 802.1Q VLAN Support v1.8
[    1.748943] Freeing unused kernel memory: 7140K
[    1.754029] This architecture does not have kernel memory protection.
[    1.761346] Run /init as init process
[    1.765454]   with arguments:
[    1.768849]     /init
[    1.771403]   with environment:
[    1.774917]     HOME=/
[    1.777629]     TERM=linux
[    2.596641] random: fast init done
[    2.799162] init: Console is alive
[    2.828891] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.841632] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.867257] init: - preinit -
[    3.265727] random: jshn: uninitialized urandom read (4 bytes read)
[    3.388842] random: jshn: uninitialized urandom read (4 bytes read)
mtd_get_mac_ascii: partition u-boot-env not found!
[    3.592951] random: jshn: 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
[    7.073778] procd: - early -
[    9.430791] procd: - ubus -
[    9.452830] urandom_read: 2 callbacks suppressed
[    9.452849] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.487983] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.496168] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.512895] procd: - init -
Please press Enter to activate this console.
[   10.582497] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.738075] xt_time: kernel timezone is -0000
[   10.815593] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.866925] urngd: v1.0.2 started.
[   11.025112] random: crng init done
[   11.029082] random: 2 urandom warning(s) missed due to ratelimiting

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

_______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
|__| W I R E L E S S   F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r16644-7d10a4c7cb
-----------------------------------------------------
=== 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-DEAX1800GR

この機種もファームウェア公開直後辺りにMT7621搭載機であることを把握していたもの。WRC-X3200GST3に続き、某氏より提供頂きました。感謝。
サポートのため弄っていくのでメモ。

Switch

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

MAC

未確認

  • LAN: 50:41:B9:xx:xx:F4 (Config, ethaddr (text))
  • WAN: 50:41:B9:xx:xx:F6 (Config, wanaddr (text))
  • 2.4G: 50:41:B9:xx:xx:F4 (Config, rmac (text) / Factory, 0x4 (hex))
  • 5G: 50:41:B9:xx:xx:F5 (none)

U-Boot

*** U-Boot Boot Menu *** -> 5. Load image

*** Loading image ***

Input load address: 0x80a00000

Available load methods:
0 - TFTP client (Default)
1 - Xmodem
2 - Ymodem
3 - Kermit
4 - S-Record

Select (enter for default):

Input U-Boot's IP address: 192.168.1.1
Input TFTP server's IP address: 192.168.1.2
Input IP netmask: 255.255.255.0
Input file name:
Input file name: test.bin

Using eth@1e100000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'test.bin'.
Load address: 0x80a00000
Loading: *

help

=> help
?       - alias for 'help'
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
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
echo    - echo args to console
editenv - edit environment variable
env     - environment handling commands
fdt     - flattened device tree utility commands
go      - start application at address 'addr'
gpio    - query and control gpio pins
help    - print command description/usage
iminfo  - print header information for application image
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
mm      - memory modify (auto-incrementing address)
mtdparts- define flash/nand partitions
mtkautoboot- Display MediaTek bootmenu
mtkboardboot- Boot MT7621 firmware
mtkload - MTK image loading utility
mtkupgrade- MTK firmware/bootloader upgrading utility
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nm      - memory modify (constant address)
nmbm    - NMBM utility commands
printenv- print environment variables
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
setexpr - set environment variable as the result of eval expression
sleep   - delay execution for some time
source  - run script from memory
tftpboot- boot image via network using TFTP protocol
version - print monitor, compiler and linker version

version

=> version
U-Boot 2018.09v1.00.02 (Oct 22 2020 - 11:05:33 +0800)

mipsel-linux-gcc (Buildroot 2014.11) 4.9.2
GNU ld (GNU Binutils) 2.24

printenv

=> printenv
baudrate=115200
bootcmd=mtkautoboot
bootdelay=0
bootfile=test.bin
bootmenu_0=Startup system (Default)=mtkboardboot
bootmenu_1=Upgrade firmware=mtkupgrade fw
bootmenu_2=Upgrade bootloader=mtkupgrade bl
bootmenu_3=Upgrade bootloader (advanced mode)=mtkupgrade bladv
bootmenu_4=Load image=mtkload
ethact=eth@1e100000
fdtcontroladdr=8fff1780
ipaddr=192.168.1.1
loadaddr=0x80a00000
netmask=255.255.255.0
serverip=192.168.1.2
stderr=uartlite0@1e000c00
stdin=uartlite0@1e000c00
stdout=uartlite0@1e000c00

Environment size: 497/131068 bytes

bdinfo

=> bdinfo
boot_params = 0x8FE8B010
memstart    = 0x80000000
memsize     = 0x10000000
flashstart  = 0x00000000
flashsize   = 0x00000000
flashoffset = 0x00000000
ethaddr     = (not set)
IP addr     = 192.168.1.1
baudrate    = 115200 bps
relocaddr   = 0x8FFA0000
reloc off   = 0x0FDA0000

tftp

=> tftp
*** Warning: no boot file name; using 'C0A80101.img'
Using eth@1e100000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'C0A80101.img'.
Load address: 0x80010000
Loading: *

help gpio

=> help gpio
gpio - query and control gpio pins

Usage:
gpio <input|set|clear|toggle> <pin>
- input/set/clear/toggle the specified pin
gpio status [-a] [<bank> | <pin>]  - show [all/claimed] GPIOs

gpio status

=> gpio status
Bank mt7621-gpio:
mt7621-gpio3: output: 1 [x] gpio_led
mt7621-gpio14: output: 1 [x] gpio_led

nand info

=> nand info

Device 0: nand0, sector size 128 KiB
Page size       2048 b
OOB size          64 b
Erase size    131072 b
subpagesize      512 b
options     0x00010000
bbt options 0x00000000

help nmbm

=> help nmbm
nmbm - NMBM utility commands

Usage:
nmbm
nmbm list                                - List NMBM devices
nmbm <name> info                         - Display NMBM information
nmbm <name> state                        - Display block states
nmbm <name> bad                          - Display bad blocks
nmbm <name> boot <part | [loadaddr] offset>  - Boot from NMBM
nmbm <name> mapping [all]                - Display block mapping
nmbm <name> erase <offset> <size>        - Erase blocks
nmbm <name> read <addr> <offset> <size>  - Read data
nmbm <name> write <addr> <offset> <size> - Write data

nmbm list

=> nmbm list
Index   NMBM device         Lower device
========================================
0       nmbm0               nand0

nmbm nmbm0 info

=> nmbm nmbm0 info
nmbm0:
Total blocks:                  1024
Data blocks:                   960
Management start block:        960
Info table size:               0x2000
Main info table start block:   960
Backup info table start block: 963
Signature block:               1023
Mapping blocks top address:    1022
Mapping blocks limit address:  964

nmbm nmbm0 state

=> nmbm nmbm0 state
Physical blocks:

Legends:
-     Good data block
+     Good management block
B     Bad block
I     Main info table
i     Backup info table
M     Remapped spare block
S     Signature block

----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
I++i+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++S

Logical blocks:

Legends:
-     Good block
+     Initially remapped block
M     Remapped block
B     Bad/Unmapped block

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

Kernel

パスワードが設定されている

uname -a

/ # uname -a
sh: uname: not found

cat /proc/version

/ # cat /proc/version
Linux version 4.4.198 (root@***-DEV-****) (gcc version 5.4.0 (LEDE GCC 5.4.0 unknown) ) #0 SMP Mon Dec 7 06:29:41 CST 2020

cat /proc/cpuinfo

/ # cat /proc/cpuinfo
system type             : MediaTek MT7621 ver:1 eco:3
machine                 : MediaTek MT7621 RFB (802.11ax, NAND with NMBM)
processor               : 0
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 586.13
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
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available
VPE                     : 0

processor               : 1
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 586.13
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
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available
VPE                     : 1

processor               : 2
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 586.13
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
package                 : 0
core                    : 1
VCED exceptions         : not available
VCEI exceptions         : not available
VPE                     : 0

processor               : 3
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 586.13
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
package                 : 0
core                    : 1
VCED exceptions         : not available
VCEI exceptions         : not available
VPE                     : 1

cat /proc/meminfo

/ # cat /proc/meminfo
MemTotal:         245760 kB
MemFree:          156976 kB
MemAvailable:     177408 kB
Buffers:            3384 kB
Cached:            24472 kB
SwapCached:            0 kB
Active:            13628 kB
Inactive:          20672 kB
Active(anon):       6700 kB
Inactive(anon):     1712 kB
Active(file):       6928 kB
Inactive(file):    18960 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          6396 kB
Mapped:             6308 kB
Shmem:              1964 kB
Slab:              13628 kB
SReclaimable:       1400 kB
SUnreclaim:        12228 kB
KernelStack:         816 kB
PageTables:          472 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      122880 kB
Committed_AS:      13420 kB
VmallocTotal:    1048372 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB

cat /proc/mtd

/ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 08000000 00020000 "mtk-nand"
mtd1: 00080000 00020000 "Bootloader"
mtd2: 00080000 00020000 "Config"
mtd3: 00080000 00020000 "Factory"
mtd4: 02e00000 00020000 "firmware"
mtd5: 00620000 00020000 "kernel"
mtd6: 027e0000 00020000 "apps"
mtd7: 02e00000 00020000 "firmware2"
mtd8: 00620000 00020000 "kernel2"
mtd9: 027e0000 00020000 "apps2"
mtd10: 00600000 00020000 "storage"
mtd11: 00100000 00020000 "idmkey"
mtd12: 00080000 00020000 "working"

switch –help

/ # switch --help
==================Usage===============================================================================================================================
1) mt753x switch Basic operations=================================================================================================================>>>>
1.1) switch devs                                                       - list switch device id and model name
1.2) switch sysctl                                                     - show the ways to access kenerl driver: netlink or ioctl
1.3) switch reset                                                      - sw reset switch fsm and registers
1.4) switch reg r [offset]                                             - read the reg with default switch
1.5) switch reg w [offset] [value]                                     - write the reg with default switch
1.6) switch reg d [offset]                                             - dump the reg with default switch
1.7) switch dev [devid] reg r [addr]                           - read the reg with the switch devid
1.8) switch dev [devid] reg w [addr] [value]                   - write the regs with the switch devid
1.9) switch dev [devid] reg d [addr]                           - dump the regs with the switch devid

2) mt753x switch PHY operations===================================================================================================================>>>>
2.1) switch phy                                                        - dump all phy registers (clause 22)
2.2) switch phy [phy_addr]                                             - dump phy register of specific port (clause 22)
2.3) switch phy cl22 r [port_num] [phy_reg]                    - read specific phy register of specific port by clause 22
2.4) switch phy cl22 w [port_num] [phy_reg] [value]            - write specific phy register of specific port by clause 22
2.5) switch phy cl45 r [port_num] [dev_num] [phy_reg]          - read specific phy register of specific port by clause 45
2.6) switch phy cl45 w [port_num] [dev_num] [phy_reg] [value]  - write specific phy register of specific port by clause 45
2.7) switch phy fc [port_num] [enable 0|1]                             - set switch phy flow control, port is 0~4, enable is 1, disable is 0
2.8) switch phy an [port_num] [enable 0|1]                             - set switch phy auto-negotiation, port is 0~4, enable is 1, disable is 0
2.9) switch trreg r [port_num] [ch_addr] [node_addr] [data_addr]       - read phy token-ring of specific port
2.10) switch trreg w [port_num] [ch_addr] [node_addr] [data_addr]      - write phy token-ring of specific port
[high_value] [low_value]
2.11) switch crossover [port_num] [mode auto|mdi|mdix]         - switch auto or force mdi/mdix mode for crossover cable

3) mt753x switch MAC operations====================================================================================================================>>>>
3.1) switch dump                                                       - dump switch mac table
3.2) switch clear                                                      - clear switch mac table
3.3) switch add [mac] [portmap]                                        - add an entry (with portmap) to switch mac table
3.4) switch add [mac] [portmap] [vlan id]                              - add an entry (with portmap, vlan id) to switch mac table
3.5) switch add [mac] [portmap] [vlan id] [age]                        - add an entry (with portmap, vlan id, age out time) to switch mac table
3.6) switch del mac [mac] vid [vid]                            - delete an entry from switch mac table
3.7) switch del mac [mac] fid [fid]                            - delete an entry from switch mac table
3.8) switch search mac [mac] vid [vid]                         - search an entry with specific mac and vid
3.9) switch search mac [mac] fid [fid]                         - search an entry with specific mac and fid
3.10) switch filt [mac]                                                - add a SA filtering entry (with portmap 1111111) to switch mac table
3.11) switch filt [mac] [portmap]                                      - add a SA filtering entry (with portmap)to switch mac table
3.12) switch filt [mac] [portmap] [vlan id                             - add a SA filtering entry (with portmap, vlan id)to switch mac table
3.13) switch filt [mac] [portmap] [vlan id] [age]                      - add a SA filtering entry (with portmap, vlan id, age out time) to switch table
3.14) switch arl aging [active:0|1] [time:1~65536]                     - set switch arl aging timeout value
3.15) switch macctl fc [enable|disable]                                - set switch mac global flow control,enable is 1, disable is 0

4) mt753x switch mib counter operations============================================================================================================>>>>
4.1) switch esw_cnt get                                                -get switch mib counters
4.2) switch esw_cnt clear                                              -clear switch mib counters
4.3) switch output_queue_cnt get                                       -get switch output queue counters
4.4) switch free_page get                                              -get switch system free page counters

5) mt753x switch acl function operations============================================================================================================>>>>
5.1) switch acl enable [port] [port_enable:0|1]                        - set switch acl function enabled, port is 0~6,enable is 1, disable is 0
5.2) switch acl etype add [ethtype] [portmap]                  - drop L2 ethertype packets
5.3) switch acl dmac add [mac] [portmap]                               - drop L2 dest-Mac packets
5.4) switch acl dip add [dip] [portmap]                                - drop dip packets
5.5) switch acl port add [sport] [portmap]                             - drop L4 UDP/TCP source port packets
5.6) switch acl L4 add [2byes] [portmap]                               - drop L4 packets with 2bytes payload
5.7) switch acl acltbl-add  [tbl_idx:0~63/255] [vawd1] [vawd2] - set switch acl table new entry, max index-7530:63,7531:255
5.8) switch acl masktbl-add [tbl_idx:0~31/127] [vawd1] [vawd2] - set switch acl mask table new entry, max index-7530:31,7531:127
5.9) switch acl ruletbl-add [tbl_idx:0~31/127] [vawd1] [vawd2] - set switch acl rule table new entry, max index-7530:31,7531:127
5.10) switch acl ratetbl-add [tbl_idx:0~31] [vawd1] [vawd2]    - set switch acl rate table new entry
5.11) switch acl dip meter [dip] [portmap][meter:kbps]         - rate limit dip packets
5.12) switch acl dip trtcm [dip] [portmap][CIR:kbps][CBS][PIR][PBS]- TrTCM dip packets
5.13) switch acl dip modup [dip] [portmap][usr_pri]            - modify usr priority from ACL
5.14) switch acl dip pppoe [dip] [portmap]                             - pppoe header removal

6) mt753x switch dip table operations=================================================================================================================>>>>
6.1) switch dip dump                                           - dump switch dip table
6.2) switch dip clear                                          - clear switch dip table
6.3) switch dip add [dip] [portmap]                            - add a dip entry to switch table
6.4) switch dip del [dip]                                              - del a dip entry to switch table

7) mt753x switch sip table operations=================================================================================================================>>>>
7.1) switch sip dump                                           - dump switch sip table
7.2) switch sip clear                                          - clear switch sip table
7.3) switch sip add [sip] [dip] [portmap]                              - add a sip entry to switch table
7.4) switch sip del [sip] [dip]                                        - del a sip entry to switch table

8) mt753x switch sip table operations====================================================================================================================>>>>
8.1) switch vlan dump                                          - dump switch vlan table
8.2) switch vlan set [vlan idx] [vid] [portmap]                        - set vlan id and associated member at switch vlan table
8.3) switch vlan vid [vlan idx] [active:0|1] [vid] [portMap]   - set switch vlan vid elements
[egtagPortMap] [ivl_en] [fid] [stag]
8.4) switch vlan pvid [port] [pvid]                            - set switch vlan pvid
8.5) switch vlan acc-frm [port] [acceptable_frame_type:0~3]    - set switch vlan acceptable_frame type : admit all frames: 0,
admit only vlan-taged frames: 1,admit only untagged or priority-tagged frames: 2, reserved:3
8.6) switch vlan port-attr [port] [attr:0~3]                   - set switch vlan port attribute: user port: 0, statck port: 1,
translation port: 2, transparent port:3
8.7) switch vlan port-mode [port] [mode:0~3]                   - set switch vlan port mode : port matrix mode: 0, fallback mode: 1,
check mode: 2, security mode:3
8.8) switch vlan eg-tag-pvc [port] [eg_tag:0~7]                        - set switch vlan eg tag pvc : disable: 0, consistent: 1, reserved: 2,
reserved:3,untagged:4,swap:5,tagged:6, stack:7
8.9) switch vlan eg-tag-pcr [port] [eg_tag:0~3]                        - set switch vlan eg tag pcr : untagged: 0, swap: 1, tagged: 2, stack:3

9) mt753x switch rate limit operations=================================================================================================================>>>>
9.1) switch ratectl [in_ex_gress:0|1] [port] [rate]            - set switch port ingress(1) or egress(0) rate
9.2) switch ingress-rate on [port] [Kbps]                              - set ingress rate limit on port n (n= 0~ switch max port)
9.3) switch egress-rate on [port] [Kbps]                               - set egress rate limit on port n (n= 0~ switch max port)
9.4) switch ingress-rate off [port]                            - disable ingress rate limit on port n (n= 0~ switch max port)
9.5) switch egress-rate off [port]                                     - disable egress rate limit on port n (n= 0~ switch max port)

10) mt753x igmp operations===============================================================================================================================>>>>
10.1) switch igmpsnoop on [leaky_en] [wan_num]                 - turn on IGMP snoop and router port learning
leaky_en: 1 or 0. default 0; wan_num: 0 or 4. default 4
10.2) switch igmpsnoop off                                             - turn off IGMP snoop and router port learning
10.3) switch igmpsnoop enable [port#]                          - enable IGMP HW leave/join/Squery/Gquery
10.4) switch igmpsnoop disable [port#]                         - disable IGMP HW leave/join/Squery/Gquery

11) mt753x QoS operations================================================================================================================================>>>>
11.1) switch qos sch [port:0~6] [queue:0~7] [shaper:min|max] [type:rr:0|sp:1|wfq:2]     - set switch qos sch type
11.2) switch qos base [port:0~6] [base]                                        - set switch qos base(UPW); port-based:0, tag-based:1,
dscp-based:2, acl-based:3, arl-based:4, stag-based:5
11.3) switch qos port-weight [port:0~6] [q0] [q1][q2][q3]              - set switch qos port queue weight;
[q4][q5][q6][q7]                                 [qn]: the weight of queue n, range: 1~16
11.4) switch qos port-prio [port:0~6] [prio:0~7]                       - set switch port qos user priority;  port is 0~6, priority is 0~7
11.5) switch qos dscp-prio [dscp:0~63] [prio:0~7]                      - set switch qos dscp user priority;  dscp is 0~63, priority is 0~7
11.6) switch qos prio-qmap [port:0~6] [prio:0~7]  [queue:0~7]                  - set switch qos priority queue map; priority is 0~7,queue is 0~7

12) mt753x port mirror operations========================================================================================================================>>>>
12.1) switch mirror monitor [port]                                     - enable port mirror and indicate monitor port number
12.2) switch mirror target  [port]                                     - set port mirror target
[direction| 0:off, 1:rx, 2:tx, 3:all]
12.3) switch mirror enable [mirror_en:0|1] [mirror_port: 0-6]  - set switch mirror function enable(1) or disabled(0) for port 0~6
12.4) switch mirror port-based [port] [port_tx_mir:0|1]                - set switch mirror port: target tx/rx/acl/vlan/igmp
[port_rx_mir:0|1] [acl_mir:0|1]
[vlan_mis:0|1] [igmp_mir:0|1]

13) mt753x stp operations===============================================================================================================================>>>>
13.1) switch stp [port] [fid] [state]                          - set switch spanning tree state, port is 0~6, fid is 0~7,
state is 0~3(Disable/Discarding:0,Blocking/Listening/Discarding:1,)
Learning:2,Forwarding:3

14) mt753x collision pool operations========================================================================================================================>>>>
14.1) switch collision-pool enable [enable 0|1]                        - enable or disable collision pool
14.2) switch collision-pool mac dump                           - dump collision pool mac table
14.3) switch collision-pool dip dump                           - dump collision pool dip table
14.4) switch collision-pool sip dump                           - dump collision pool sip table

15) mt753x pfc(priority flow control) operations==============================================================================================================>>>>
15.1) switch pfc enable [port] [enable 0|1]                    - enable or disable port's pfc
15.2) switch pfc rx_counter [port]                                     - get port n pfc 8 up rx counter
15.3) switch pfc tx_counter [port]                                     - get port n pfc 8 up rx counter

switch vlan dump

/ # switch vlan dump
vid  fid  portmap    s-tag
1    0  -1111-1-       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

swconfig list

/ # swconfig list
Found: switch0 - MT7530

swconfig dev MT7530 show

/ # swconfig dev MT7530 show
Global attributes:
enable_vlan: 1
Port 0:
mib: Port 0 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

pvid: 2
link: port:0 link:down
Port 1:
mib: Port 1 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 4331
TxMulti    : 278
TxBroad    : 3
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 1848
Tx65Byte   : 1028
Tx128Byte  : 11
Tx256Byte  : 316
Tx512Byte  : 594
Tx1024Byte : 815
TxByte     : 1854042
RxDrop     : 0
RxFiltered : 0
RxUni      : 4591
RxMulti    : 481
RxBroad    : 249
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 2318
Rx65Byte   : 1714
Rx128Byte  : 223
Rx256Byte  : 329
Rx512Byte  : 729
Rx1024Byte : 8
RxByte     : 999710
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

pvid: 1
link: port:1 link:up speed:1000baseT full-duplex
Port 2:
mib: Port 2 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

pvid: 1
link: port:2 link:down
Port 3:
mib: Port 3 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

pvid: 1
link: port:3 link:down
Port 4:
mib: Port 4 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

pvid: 1
link: port:4 link:down
Port 5:
mib: Port 5 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 74
RxUni      : 0
RxMulti    : 11
RxBroad    : 63
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 7
Rx128Byte  : 4
Rx256Byte  : 0
Rx512Byte  : 63
Rx1024Byte : 0
RxByte     : 38724
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

pvid: 2
link: port:5 link:up speed:1000baseT full-duplex
Port 6:
mib: Port 6 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 4591
TxMulti    : 481
TxBroad    : 249
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 2318
Tx65Byte   : 1714
Tx128Byte  : 223
Tx256Byte  : 329
Tx512Byte  : 729
Tx1024Byte : 8
TxByte     : 999710
RxDrop     : 0
RxFiltered : 10
RxUni      : 4331
RxMulti    : 288
RxBroad    : 3
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 1848
Rx65Byte   : 1033
Rx128Byte  : 16
Rx256Byte  : 316
Rx512Byte  : 594
Rx1024Byte : 815
RxByte     : 1855270
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

pvid: 1
link: port:6 link:up speed:1000baseT full-duplex
VLAN 1:
vid: 1
ports: 1 2 3 4 6
VLAN 2:
vid: 2
ports: 0 5

ls -al /sys/class/leds/

/ # ls -al /sys/class/leds/
drwxr-xr-x    2 root     root             0 Dec  7 06:45 .
drwxr-xr-x   22 root     root             0 Dec  7 06:20 ..
lrwxrwxrwx    1 root     root             0 Dec  7 06:45 mode_led -> ../../devices/platform/leds-gpio/leds/mode_led
lrwxrwxrwx    1 root     root             0 Dec  7 06:45 power_led -> ../../devices/platform/leds-gpio/leds/power_led
lrwxrwxrwx    1 root     root             0 Dec  7 06:45 radio1_led -> ../../devices/platform/leds-gpio/leds/radio1_led
lrwxrwxrwx    1 root     root             0 Dec  7 06:45 status_led1 -> ../../devices/platform/leds-gpio/leds/status_led1
lrwxrwxrwx    1 root     root             0 Dec  7 06:45 status_led2 -> ../../devices/platform/leds-gpio/leds/status_led2
lrwxrwxrwx    1 root     root             0 Dec  7 06:45 wan_led -> ../../devices/platform/leds-gpio/leds/wan_led

devmem 0x1e00620 32 (GPIO_REG_DATA)

/sys/class/leds # devmem 0x1e000620 32
0x081CE517
/sys/class/leds # echo 0 > power_led/brightness
/sys/class/leds # devmem 0x1e000620 32
0x081CA517
/sys/class/leds # echo 0 > mode_led/brightness
/sys/class/leds # devmem 0x1e000620 32
0x081C2517
/sys/class/leds # echo 255 > status_led1/brightness
/sys/class/leds # devmem 0x1e000620 32
0x081C2597
/sys/class/leds # echo 255 > status_led2/brightness
/sys/class/leds # devmem 0x1e000620 32
0x081C259F
/sys/class/leds # echo 0 > radio1_led/brightness
/sys/class/leds # devmem 0x1e000620 32
0x081C059F
/sys/class/leds # echo 255 > wan_led/brightness
/sys/class/leds # devmem 0x1e000620 32
0x081D059F

ls -al /sys/class/leds/

/tmp # fwhandle -x wn-deax1800gr_v1.01.001.bin -t kernel_pad_apps
------- Header Info ----------
Image Header Size      : 0x0074
Image Header Magic Code: 0x031d6129
Image Data Size        : 15466674
Image Type             : 7 [kernel_pad_apps]
Compression Type       : TBD
Model Name             : WN-DEAX1800GR
Model ID               : 0x7fffffff
Build Date             : 2020-12-07
Version Firmware       : 1.01.001
Version Code SCM       : 3ceb3c49
Version Config         : 7b1ea6d6a97231c584d16aa6e3dbb3ec
Data CRC Checksum      : 0x9a0ca6c0
Header CRC Checksum    : 0x6fdb220e
------------------------------
FWHANDLE, DECODE PASS

bootlog


U-Boot SPL 2018.09-svn1712 (Aug 27 2019 - 15:48:56 +0800)
Trying to boot from NAND

U-Boot 2018.09v1.00.02 (Oct 22 2020 - 11:05:33 +0800)

CPU:   MediaTek MT7621AT ver 1, eco 3
Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 220MHz, XTAL: 40MHz
Model: MediaTek MT7621 reference board (NAND)
DRAM:  256 MiB
NAND:  128 MiB

Initializing NMBM ...
Signature found at block 1023 [0x07fe0000]
First info table with writecount 0 found in block 960
Second info table with writecount 0 found in block 963
NMBM has been successfully attached

Loading Environment from NMBM... *** Warning - bad CRC, using default environment

In:    uartlite0@1e000c00
Out:   uartlite0@1e000c00
Err:   uartlite0@1e000c00
Net:
Warning: eth@1e100000 (eth0) using random MAC address - 16:29:bd:47:91:f4
eth0: eth@1e100000

*** U-Boot Boot Menu ***
Press UP/DOWN to move, ENTER to select
1. Startup system (Default)
2. Upgrade firmware
3. Upgrade bootloader
4. Upgrade bootloader (advanced mode)
5. Load image
0. U-Boot console

** Boot system from firmware2 **
Loading FIT image at offset 0x2f80000 to memory 0x80010000, size 0x60c49c ...
Automatic boot of image at addr 0x80010000 ...
## Loading kernel from FIT Image at 80010000 ...
Using 'config@1' configuration
Trying 'kernel@1' kernel subimage
Description:  MIPS OpenWrt Linux-4.4.198
Type:         Kernel Image
Compression:  lzma compressed
Data Start:   0x800100e4
Data Size:    6329452 Bytes = 6 MiB
Architecture: MIPS
OS:           Linux
Load Address: 0x81001000
Entry Point:  0x81001000
Hash algo:    crc32
Hash value:   edced5bc
Hash algo:    sha1
Hash value:   de26e2df8f1ab0165c00c80f2a505b2db2e6f973
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 80010000 ...
Using 'config@1' configuration
Trying 'fdt@1' fdt subimage
Description:  MIPS OpenWrt mt7621-rfb-ax-nand device tree blob
Type:         Flat Device Tree
Compression:  uncompressed
Data Start:   0x80619694
Data Size:    10974 Bytes = 10.7 KiB
Architecture: MIPS
Hash algo:    crc32
Hash value:   08300648
Hash algo:    sha1
Hash value:   762262c5e7b90f85de90755e5ea3f6bf38f995ae
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x80619694
Uncompressing Kernel Image ... OK
Loading Device Tree to 8fe77000, end 8fe7cadd ... OK
[    0.000000] Linux version 4.4.198 (root@TNW-DEV-1709) (gcc version 5.4.0 (LEDE GCC 5.4.0 unknown) ) #0 SMP Mon Dec 7 06:29:41 CST 2020
[    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 MediaTek MT7621 RFB (802.11ax, NAND with NMBM)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000]   Normal   [mem 0x0000000001000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] 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] PERCPU: Embedded 10 pages/cpu @82aad000 s8512 r8192 d24256 u40960
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00020400
[    0.000000] Readback ErrCtl register=00020400
[    0.000000] Memory: 234452K/262144K available (7816K kernel code, 4048K rwdata, 1776K rodata, 11308K init, 233K bss, 27692K reserved, 0K cma-reserved
)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000008] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007776] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.070401] pid_max: default: 32768 minimum: 301
[    0.075120] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081644] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.607180] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    1.607189] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    1.607199] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    1.607342] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.177558] Synchronize counters for CPU 1: done.
[    1.384363] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    1.384370] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    1.384376] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    1.384444] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.267917] Synchronize counters for CPU 2: done.
[    1.474461] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    1.474468] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    1.474475] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    1.474559] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.353100] Synchronize counters for CPU 3: done.
[    0.357839] Brought up 4 CPUs
[    0.365452] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.375243] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.381532] pinctrl core: initialized pinctrl subsystem
[    0.387333] NET: Registered protocol family 16
[    0.427028] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.432684] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.438282] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.444397] mt7621-pci 1e140000.pcie: Failed to get gpio for PCIe1
[    0.450510] mt7621-pci 1e140000.pcie: Failed to get gpio for PCIe2
[    0.656981] PCIe port 2 link down
[    0.660212] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    0.719783] PCI host bridge to bus 0000:00
[    0.723811] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    0.730667] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    0.737456] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.744210] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.752829] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.760750] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.770042] pci 0000:00:00.0: BAR 9: assigned [mem 0x60000000-0x601fffff pref]
[    0.777185] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x603fffff pref]
[    0.784340] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    0.791092] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    0.797822] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit pref]
[    0.805531] pci 0000:01:00.0: BAR 2: assigned [mem 0x60100000-0x60103fff 64bit pref]
[    0.813208] pci 0000:01:00.0: BAR 4: assigned [mem 0x60104000-0x60104fff 64bit pref]
[    0.820909] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.825801] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x601fffff pref]
[    0.832997] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit pref]
[    0.840683] pci 0000:02:00.0: BAR 2: assigned [mem 0x60300000-0x60303fff 64bit pref]
[    0.848395] pci 0000:02:00.0: BAR 4: assigned [mem 0x60304000-0x60304fff 64bit pref]
[    0.856052] pci 0000:00:01.0: PCI bridge to [bus 02]
[    0.860984] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x603fffff pref]
[    0.869780] clocksource: Switched to clocksource GIC
[    0.876645] NET: Registered protocol family 2
[    0.881662] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.888548] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.894977] TCP: Hash tables configured (established 2048 bind 2048)
[    0.901323] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.907072] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.913602] NET: Registered protocol family 1
[    1.031474] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.037231] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.050126] io scheduler noop registered
[    1.053966] io scheduler deadline registered (default)
[    1.060574] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    1.068077] console [ttyS0] disabled
[    1.071706] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 33, base_baud = 3125000) is a 16550A
mrʪͽM*
5RrʪͽM*
5Rrºэͽڕ
ɱ"ͅ      5Rrºэͽڕ
ɱ"ͅ      5R[    1.096081] 1e000d00.uartfull: ttyS1 at MMIO 0x1e000d00 (irq = 34, base_baud = 3125000) is a 16550A
[    1.105646] 1e000e00.uartfull: ttyS2 at MMIO 0x1e000e00 (irq = 35, base_baud = 3125000) is a 16550A
[    1.117956] libphy: Fixed MDIO Bus: probed
[    1.160087] libphy: mdio: probed
[    1.167782] mtk_soc_eth 1e100000.ethernet: generated random MAC address 06:bb:32:cd:93:29
[    1.180270] mtk_soc_eth 1e100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.191425] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 10
[    1.199909] mtk_soc_eth 1e100000.ethernet: generated random MAC address da:cc:50:b5:a1:65
[    1.212427] mtk_soc_eth 1e100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.223609] mtk_soc_eth 1e100000.ethernet eth1: mediatek frame engine at 0xbe100000, irq 10
[    1.232290] PPP generic driver version 2.4.2
[    1.236791] PPP MPPE Compression module registered
[    1.241639] NET: Registered protocol family 24
[    1.246119] PPTP driver version 0.8.5
[    1.250100] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
[    1.257154] register mt_drv
[    1.260142] <--mt7916_hif_init()
[    1.263882] Rx[0] Ring: total 24576 bytes allocated
[    1.273193] Rx[1] Ring: total 16384 bytes allocated
[    1.278163] <-- pci_alloc_tx_rx_ring_mem, Status=0
[    1.311201]
[    1.311201]
[    1.311201] === pAd = c0381000, size = 11566496 ===
[    1.311201]
[    1.322056] <-- RTMPAllocAdapterBlock, Status=0
[    1.326598] PCI CSRBaseAddress =0xc0280000, csr_addr=0xc0280000!
[    1.332665] RTMPInitPCIeDevice():device_id=0x7915
[    1.337376] mt7915_init()-->
[    1.340277] Use the default iPAiLNA bin image!
[    1.344777] <--mt7915_init()
[    1.347686] get_wdev_by_idx: invalid idx(0)
[    1.351894] get_wdev_by_idx: invalid idx(0)
[    1.356756] get_wdev_by_idx: invalid idx(0)
[    1.360991] get_wdev_by_idx: invalid idx(0)
[    1.366144] Rx[0] Ring: total 24576 bytes allocated
[    1.371259] Rx[1] Ring: total 24576 bytes allocated
[    1.378300] Rx[2] Ring: total 8192 bytes allocated
[    1.387286] Rx[3] Ring: total 16384 bytes allocated
[    1.394487] Rx[4] Ring: total 8192 bytes allocated
[    1.399332] <-- pci_alloc_tx_rx_ring_mem, Status=0
[    1.404171] get_wdev_by_idx: invalid idx(0)
[    1.408351] get_wdev_by_idx: invalid idx(0)
[    1.413360] get_wdev_by_idx: invalid idx(0)
[    1.418604] mt7621_wdt 1e000100.wdt: Initialized
[    1.423776] Mirror/redirect action on
[    1.428352] u32 classifier
[    1.431104]     input device check on
[    1.434762]     Actions configured
[    1.438209] Netfilter messages via NETLINK v0.30.
[    1.442973] nf_conntrack version 0.5.0 (3663 buckets, 14652 max)
[    1.450003] xt_time: kernel timezone is -0000
[    1.454385] ip_set: protocol 6
[    1.457755] gre: GRE over IPv4 demultiplexor driver
[    1.462656] ip_gre: GRE over IPv4 tunneling driver
[    1.469400] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.475212] arp_tables: (C) 2002 David S. Miller
[    1.481348] NET: Registered protocol family 10
[    1.487809] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    1.493681] sit: IPv6 over IPv4 tunneling driver
[    1.500632] NET: Registered protocol family 17
[    1.505182] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.517865] Bridge firewalling registered
[    1.521913] Ebtables v2.0 registered
[    1.525673] l2tp_core: L2TP core driver, V2.0
[    1.530106] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[    1.534899] 8021q: 802.1Q VLAN Support v1.8
[    1.541431] mtkmips-pinmux pinctrl: spi is already enabled
[    1.546936] mtk-nand 1e003000.nand: Error applying setting, reverse things back
[    1.554769] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[    1.561145] nand: Winbond W29N01HV
[    1.564547] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.572734] Scanning device for bad blocks
[    2.422922] nmbm nmbm: Signature found at block 1023 [0x07fe0000]
[    2.432542] nmbm nmbm: First info table with writecount 0 found in block 960
[    2.449630] nmbm nmbm: Second info table with writecount 0 found in block 963
[    2.456787] nmbm nmbm: NMBM has been successfully attached
[    2.462340] 8 ofpart partitions found on MTD device nmbm
[    2.467649] Creating 8 MTD partitions on "nmbm":
[    2.472288] 0x000000000000-0x000000080000 : "Bootloader"
[    2.478835] 0x000000080000-0x000000100000 : "Config"
[    2.484996] 0x000000100000-0x000000180000 : "Factory"
[    2.491201] 0x000000180000-0x000002f80000 : "firmware"
[    2.803887] 2 fit-fw partitions found on MTD device firmware
[    2.809565] 0x000000180000-0x0000007a0000 : "kernel"
[    2.815742] 0x0000007a0000-0x000002f80000 : "apps"
[    2.821966] 0x000002f80000-0x000005d80000 : "firmware2"
[    3.134790] 2 fit-fw partitions found on MTD device firmware2
[    3.140570] 0x000002f80000-0x0000035a0000 : "kernel2"
[    3.146865] 0x0000035a0000-0x000005d80000 : "apps2"
[    3.153223] 0x000005d80000-0x000006380000 : "storage"
[    3.159409] 0x000006380000-0x000006480000 : "idmkey"
[    3.165577] 0x000006480000-0x000006500000 : "working"
[    3.209925] mt753x gsw: Switch is MediaTek MT7530 rev 1
[    3.236620] libphy: mt753x_mdio: probed
[    3.246563] console [netcon0] enabled
[    3.250261] netconsole: network logging started
[    3.254805] hctosys: unable to open rtc device (rtc0)
[    3.260609] Warning: unable to open an initial console.
[    3.296237] Freeing unused kernel memory: 11308K
[    3.300894] This architecture does not have kernel memory protection.
FW version: 1.01.001, SCM version: 3ceb3c49, Date: 2020-12-07
Login >
[    4.209149] jffs2: notice: (559) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0
dead, 0 orphan) found.
[    4.434179] Registered button device:reset, gpio:8,code:408,index:1
[    4.440520] Registered button device:wps, gpio:4,code:529,index:0
[    4.446620] Registered button device:led_sw, gpio:10,code:744,index:2
[    4.463036] CLI_EXCHANGE, Load cli_exchange[v0.1.0] ready.
[    6.715379] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
TOK, keyid 6888 shm_id 0 size 1956(KB)
[   10.546082] echo (766): /proc/764/oom_adj is deprecated, please use /proc/764/oom_score_adj instead.
[   12.002112] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   12.756355] device eth0 entered promiscuous mode
[   12.761176] br-lan: port 1(eth0) entered forwarding state
[   12.766617] br-lan: port 1(eth0) entered forwarding state
[   12.772097] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   13.079986] mt753x gsw: Port 1 Link is Down
[   16.533426] mt753x gsw: Port 1 Link is Up - 1Gbps/Full
[   18.190109] random: nonblocking pool is initialized
[   24.773864] get_wdev_by_idx: invalid idx(0)
[   24.935052] get_wdev_by_idx: invalid idx(0)
[   26.711389] ra0: ===> main_virtual_if_open
[   26.715513] get_wdev_by_idx: invalid idx(0)
[   26.719695] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   26.726178] get_wdev_by_idx: invalid idx(0)
[   26.730377] get_wdev_by_idx: invalid idx(0)
[   26.734556] get_wdev_by_idx: invalid idx(0)
[   26.739249] load l1profile succeed!
[   26.742783] mt_service_open: wlan service opens successfully!
[   26.751381] APWdsInitialize():WdsEntry[0]
[   26.755409] APWdsInitialize():WdsEntry[1]
[   26.759412] APWdsInitialize():WdsEntry[2]
[   26.763473] APWdsInitialize():WdsEntry[3]
[   26.767480] APWdsInitialize():WdsEntry[4]
[   26.771498] APWdsInitialize():WdsEntry[5]
[   26.775504] APWdsInitialize():WdsEntry[6]
[   26.779507] APWdsInitialize():WdsEntry[7]
[   26.783531] APWdsInitialize():WdsEntry[8]
[   26.787537] APWdsInitialize():WdsEntry[9]
[   26.791553] APWdsInitialize():WdsEntry[10]
[   26.795645] APWdsInitialize():WdsEntry[11]
[   26.799752] APWdsInitialize():WdsEntry[12]
[   26.803856] APWdsInitialize():WdsEntry[13]
[   26.807948] APWdsInitialize():WdsEntry[14]
[   26.812053] APWdsInitialize():WdsEntry[15]
[   26.858545] [multi_profile_merge_5g_only] DBDC_MODE=1
[   26.873069] multi-profile merge success, en:1,pf1_num:3,pf2_num:3,total:6
[   26.879893] Open file "/etc/wireless/AP/DBDC_card0.dat" to store DBDC cfg! (17)
[   26.887362] Write file "/etc/wireless/AP/DBDC_card0.dat" success (size=3573)!
[   26.894791] BssidNum=6
[   26.897149] Pf2MbssIdxMap:
[   26.899870]  0  1  2  3  4  5
[   26.903519] MacAddress3 = 00:00:00:00:00:00
[   26.908584] E2pAccessMode=2
[   26.911695] SSID[0]=IODATA-1f1ef4-2G, EdcaIdx=0
[   26.916307] SSID[1]=IO-Guest-1f1ef4-2G, EdcaIdx=0
[   26.921111] SSID[2]=, EdcaIdx=0
[   26.924346] SSID[3]=IODATA-1f1ef4-5G, EdcaIdx=0
[   26.928969] SSID[4]=IO-Guest-1f1ef4-5G, EdcaIdx=0
[   26.933778] SSID[5]=, EdcaIdx=0
[   26.937108] RTMPSetProfileParameters(): DBDC Mode=1, eDBDC_mode = 1
[   26.943793] cfg_mode=16
[   26.946238] cfg_mode=16
[   26.948679] cfg_mode=16
[   26.951141] wmode_band_equal(): Band Equal!
[   26.955324] cfg_mode=16
[   26.957764] cfg_mode=16
[   26.960231] cfg_mode=16
[   26.962675] cfg_mode=16
[   26.965115] cfg_mode=16
[   26.967554] cfg_mode=17
[   26.970007] cfg_mode=17
[   26.972450] cfg_mode=17
[   26.974889] cfg_mode=17
[   26.977329] cfg_mode=17
[   26.979803] cfg_mode=17
[   26.983608] BandSteering=0
[   26.986447] BndStrgBssIdx=1;0;0;1;0;0
[   26.990277] [TxPower] BAND0: 100, BAND1: 100
[   26.997123] [SKUenable] BAND0: 1, BAND1: 1
[   27.001345] [SkuTableIdx]: 0
[   27.004340] [CCKTxStream] BAND0: 4, BAND1: 0
[   27.008821] [PERCENTAGEenable] BAND0: 1, BAND1: 1
[   27.014462] profile: FragThreshold[0]=2346
[   27.018556] profile: FragThreshold[1]=2346
[   27.022669] profile: FragThreshold[2]=2346
[   27.026763] profile: FragThreshold[3]=2346
[   27.030868] profile: FragThreshold[4]=2346
[   27.034961] profile: FragThreshold[5]=2346
[   27.039477] APEdca0
[   27.041717] Valid=1
[   27.043814] APAifsn[0]=3
[   27.046341] APAifsn[1]=7
[   27.048869] APAifsn[2]=1
[   27.051411] APAifsn[3]=1
[   27.053950] APEdca1
[   27.056167] Valid=1
[   27.058260] APAifsn[0]=3
[   27.060808] APAifsn[1]=7
[   27.063339] APAifsn[2]=1
[   27.065867] APAifsn[3]=1
[   27.068400] APEdca2
[   27.070669] APEdca3
[   27.076733] BSSAifsn[0]=3
[   27.079347] BSSAifsn[1]=7
[   27.081984] BSSAifsn[2]=2
[   27.084601] BSSAifsn[3]=2
[   27.087353] BSSAifsn[0]=3
[   27.089989] BSSAifsn[1]=7
[   27.092605] BSSAifsn[2]=2
[   27.095219] BSSAifsn[3]=2
[   27.097970] BSSAifsn[0]=3
[   27.100606] BSSAifsn[1]=7
[   27.103223] BSSAifsn[2]=2
[   27.105836] BSSAifsn[3]=2
[   27.108589] BSSAifsn[0]=3
[   27.111219] BSSAifsn[1]=7
[   27.113835] BSSAifsn[2]=2
[   27.116448] BSSAifsn[3]=2
[   27.119201] BSSAifsn[0]=3
[   27.121836] BSSAifsn[1]=7
[   27.124453] BSSAifsn[2]=2
[   27.127067] BSSAifsn[3]=2
[   27.129845] BSSAifsn[0]=3
[   27.132462] BSSAifsn[1]=7
[   27.135075] BSSAifsn[2]=2
[   27.137689] BSSAifsn[3]=2
[   27.142936] read_itxbf: ITxBfEn = 0
[   27.146422] read_itxbf: BSSID[0]
[   27.149644] read_itxbf: MBSS[0] ITxBfEn = 0
[   27.153837] read_itxbf: ITxBfEn = 0
[   27.157321] read_itxbf: BSSID[1]
[   27.160563] read_itxbf: MBSS[1] ITxBfEn = 0
[   27.164744] read_itxbf: ITxBfEn = 0
[   27.168226] read_itxbf: BSSID[2]
[   27.171463] read_itxbf: MBSS[2] ITxBfEn = 0
[   27.175642] read_itxbf: ITxBfEn = 1
[   27.179124] read_itxbf: BSSID[3]
[   27.182366] read_itxbf: MBSS[3] ITxBfEn = 1
[   27.186547] read_itxbf: ITxBfEn = 1
[   27.190057] read_itxbf: BSSID[4]
[   27.193283] read_itxbf: MBSS[4] ITxBfEn = 1
[   27.197461] read_itxbf: ITxBfEn = 1
[   27.200964] read_itxbf: BSSID[5]
[   27.204188] read_itxbf: MBSS[5] ITxBfEn = 1
[   27.208366] read_itxbf: Common.ITxBfEn = 1
[   27.212611] read_etxbf: ETxBfEnCond = 0
[   27.216444] read_etxbf: BSSID[0]
[   27.219666] read_etxbf: MBSS[0] ETxBfEnCond = 0
[   27.224218] read_etxbf: ETxBfEnCond = 0
[   27.228057] read_etxbf: BSSID[1]
[   27.231300] read_etxbf: MBSS[1] ETxBfEnCond = 0
[   27.235828] read_etxbf: ETxBfEnCond = 0
[   27.239657] read_etxbf: BSSID[2]
[   27.242900] read_etxbf: MBSS[2] ETxBfEnCond = 0
[   27.247428] read_etxbf: ETxBfEnCond = 1
[   27.251272] read_etxbf: BSSID[3]
[   27.254495] read_etxbf: MBSS[3] ETxBfEnCond = 1
[   27.259020] read_etxbf: ETxBfEnCond = 1
[   27.262870] read_etxbf: BSSID[4]
[   27.266094] read_etxbf: MBSS[4] ETxBfEnCond = 1
[   27.270634] read_etxbf: ETxBfEnCond = 1
[   27.274465] read_etxbf: BSSID[5]
[   27.277687] read_etxbf: MBSS[5] ETxBfEnCond = 1
[   27.283725] MBSS[0] MuOfdmaDlEnable = 0
[   27.287559] MBSS[1] MuOfdmaDlEnable = 0
[   27.291403] MBSS[2] MuOfdmaDlEnable = 0
[   27.295235] MBSS[3] MuOfdmaDlEnable = 0
[   27.299065] MBSS[4] MuOfdmaDlEnable = 0
[   27.302916] MBSS[5] MuOfdmaDlEnable = 0
[   27.306887] MBSS[0] MuOfdmaUlEnable = 1
[   27.310732] MBSS[1] MuOfdmaUlEnable = 1
[   27.314564] MBSS[2] MuOfdmaUlEnable = 1
[   27.318393] MBSS[3] MuOfdmaUlEnable = 1
[   27.322244] MBSS[4] MuOfdmaUlEnable = 1
[   27.326077] MBSS[5] MuOfdmaUlEnable = 1
[   27.330060] MBSS[0] MuMimoDlEnable = 0
[   27.333804] MBSS[1] MuMimoDlEnable = 0
[   27.337547] MBSS[2] MuMimoDlEnable = 0
[   27.341310] MBSS[3] MuMimoDlEnable = 0
[   27.345055] MBSS[4] MuMimoDlEnable = 0
[   27.348797] MBSS[5] MuMimoDlEnable = 0
[   27.352700] MBSS[0] MuMimoUlEnable = 1
[   27.356445] MBSS[1] MuMimoUlEnable = 1
[   27.360209] MBSS[2] MuMimoUlEnable = 1
[   27.363955] MBSS[3] MuMimoUlEnable = 1
[   27.367697] MBSS[4] MuMimoUlEnable = 1
[   27.371455] MBSS[5] MuMimoUlEnable = 1
[   27.398365] rtmp_read_wds_from_file(): WDS Profile
[   27.403332] WDS Number: band[0]=0, band[1]=0
[   27.407751] WDS-Enable mode=0
[   27.410727] WDS-Enable mode=0
[   27.414000] If/wds0 - PeerPhyMode=0xb1
[   27.417743] If/wds1 - PeerPhyMode=0xb1
[   27.424626] HT_BAWinSize: wdev[0]: (TX=256, RX=256)
[   27.429502] HT_BAWinSize: wdev[1]: (TX=256, RX=256)
[   27.434390] HT_BAWinSize: wdev[2]: (TX=256, RX=256)
[   27.439265] HT_BAWinSize: wdev[3]: (TX=256, RX=256)
[   27.444159] HT_BAWinSize: wdev[4]: (TX=256, RX=256)
[   27.449035] HT_BAWinSize: wdev[5]: (TX=256, RX=256)
[   27.454345] HT: WDEV[0] Ext Channel = ABOVE
[   27.458525] HT: WDEV[1] Ext Channel = ABOVE
[   27.462723] HT: WDEV[2] Ext Channel = ABOVE
[   27.466904] HT: WDEV[3] Ext Channel = ABOVE
[   27.471096] HT: WDEV[4] Ext Channel = ABOVE
[   27.475275] HT: WDEV[5] Ext Channel = ABOVE
[   27.479653] HT: greenap_cap = 1
[   27.483048] ChipID=7915, TWTSupport in profile=1
[   27.532118] ICapMode = 0
[   27.541007] WtcSetMaxStaNum: MaxStaNum:232, BssidNum:6, WdsNum:16, MSTANum:1, MaxNumChipRept:32, MinMcastWcid:281
[   27.551337] Top Init Done!
[   27.554071] Use dev_alloc_skb
[   27.557038] token_tx_two_queues_init(): ct sw token(0) number = 2048
[   27.563572] token_tx_two_queues_init(): token que(0) inited done!id_head/tail=0/2048
[   27.571333] token_tx_two_queues_init(): 8d646a04,8d646a04
[   27.576728] token_tx_two_queues_init(): ct sw token(1) number = 6144
[   27.583861] token_tx_two_queues_init(): token que(1) inited done!id_head/tail=0/6144
[   27.591641] token_tx_two_queues_init(): 8d646aac,8d646aac
[   27.602100] TxRing[0]: attr:0, total 2048 entry initialized
[   27.612178] TxRing[1]: attr:0, total 2048 entry initialized
[   27.622379] TxRing[2]: attr:0, total 2048 entry initialized
[   27.628177] RX[0] DESC a0d78000 size = 24576
[   27.634271] RX[1] DESC a0d80000 size = 16384
[   27.639635] RX[2] DESC a0f18000 size = 24576
[   27.645729] RX[3] DESC a0f40000 size = 24576
[   27.650053] RX[4] DESC a0f14000 size = 8192
[   27.654787] RX[5] DESC a0f58000 size = 16384
[   27.660177] RX[6] DESC a0f16000 size = 8192
[   27.665183] -->TX_RING_0[0xd9330]: Attr:0, Base=0xd70000, Cnt=2048!
[   27.671475] -->TX_RING_1[0xd5420]: Attr:0, Base=0xed8000, Cnt=2048!
[   27.677739] -->TX_RING_2[0xd5430]: Attr:0, Base=0xf00000, Cnt=2048!
[   27.684022] -->TX_RING_3[0xd5400]: Attr:3, Base=0xf08000, Cnt=128!
[   27.690215] -->TX_RING_4[0xd5410]: Attr:2, Base=0xf09000, Cnt=256!
[   27.696393] -->TX_RING_5[0xd5440]: Attr:1, Base=0xf0a000, Cnt=256!
[   27.702589] -->RX_RING0[0xd8510]: Base=0xd78000, Cnt=1536
[   27.707985] -->RX_RING1[0xd9520]: Base=0xd80000, Cnt=1024
[   27.713394] -->RX_RING2[0xd4500]: Base=0xf18000, Cnt=1536
[   27.718789] -->RX_RING3[0xd4510]: Base=0xf40000, Cnt=10
[   27.724030] -->RX_RING4[0xd5500]: Base=0xf14000, Cnt=512
[   27.729339] -->RX_RING5[0xd5510]: Base=0xf58000, Cnt=1024
[   27.734747] -->RX_RING6[0xd5520]: Base=0xf16000, Cnt=512
[   27.740082] Hif Init Done!
[   27.745908] pci_driver_own_by_port: success to clear p=0 fw own, from(1): 1 is interrupt mode, 2 is polling mode.
[   27.757187] pci_driver_own_by_port: success to clear p=1 fw own, from(1): 1 is interrupt mode, 2 is polling mode.
[   27.767463] fw_prepare():using E2 ROM patch
[   27.771657] fw_prepare():using E2 RAM
[   27.775332] Parsing patch header
[   27.778555]  Built date: 20200506152445a
[   27.782553]
[   27.784040]  Platform: ALPS
[   27.786844]  HW/SW version: 0x8a[   27.789918] br-lan: port 1(eth0) entered forwarding state

[   27.795379] 108a10
[   27.797579]  Patch version: 0xffffffff
[   27.801373]  Section num: 0x2, subsys: 0x4
[   27.805468]  Section 0: type = 0x30002, offset = 0xe0, size = 0xfc80
[   27.811830]  Target address: 0x200000, length: 0xfc80
[   27.816878]  Section 1: type = 0x30002, offset = 0xfd60, size = 0x13540
[   27.823506]  Target address: 0xe000f000, length: 0x13540
[   27.828995] Patch SEM Status = 2
[   27.832326] patch is not ready && get semaphore success
[   27.837553] Start address = 0x200000, DL length = 64640, Data mode = 0x80000000
[   27.846077] EventGenericEventHandler: CMD Success
[   27.850852] MtCmdAddressLenReq:(ret = 0)
[   27.855555] Start address = 0xe000f000, DL length = 79168, Data mode = 0x80000000
[   27.864291] EventGenericEventHandler: CMD Success
[   27.869025] MtCmdAddressLenReq:(ret = 0)
[   27.873935] MtCmdPatchFinishReq
[   27.880870] EventGenericEventHandler: CMD Success
[   27.885814] Patch SEM Status = 3
[   27.889082] release patch semaphore
[   27.892661]  WfMcuHwInit: Before NICLoadFirmware, check ICapMode = 0
[   27.899859] Parsing CPU 0 fw tailer
[   27.903347]  Chip ID: 0x0b
[   27.906064]  Eco version: 0x01
[   27.909123]  Region number: 0x07
[   27.912484]  Format version: 0x02
[   27.915893]  Format flag: 0x01
[   27.919041]  Ram version: ____000000
[   27.922924]  Built date: 20200506152529
[   27.927101]  Common crc: 0x2c67a785
[   27.930648] Parsing tailer region 0
[   27.934141]  Decomp crc: 0x0
[   27.937081]  Decomp size: 0x0
[   27.940157]  Decomp block size: 0x0
[   27.943682]  Target address: 0x21fc00
[   27.947396]  Download size: 108544
[   27.950950]  Feature set: 0x20
[   27.954278] Parsing tailer region 1
[   27.957772]  Decomp crc: 0x0
[   27.960705]  Decomp size: 0x0
[   27.963676]  Decomp block size: 0x0
[   27.967159]  Target address: 0x31dc00
[   27.970840]  Download size: 205824
[   27.974241]  Feature set: 0x00
[   27.977305] Parsing tailer region 2
[   27.980817]  Decomp crc: 0x0
[   27.983693]  Decomp size: 0x0
[   27.986654]  Decomp block size: 0x0
[   27.990153]  Target address: 0x417400
[   27.993811]  Download size: 31744
[   27.997119]  Feature set: 0x00
[   28.000204] Parsing tailer region 3
[   28.003687]  Decomp crc: 0x0
[   28.006561]  Decomp size: 0x0
[   28.009522]  Decomp block size: 0x0
[   28.013057]  Target address: 0xe0022800
[   28.016954]  Download size: 389120
[   28.020453]  Feature set: 0x00
[   28.023569] Parsing tailer region 4
[   28.027060]  Decomp crc: 0x0
[   28.029990]  Decomp size: 0x0
[   28.032959]  Decomp block size: 0x0
[   28.036442]  Target address: 0xe0081800
[   28.040299]  Download size: 354304
[   28.043696]  Feature set: 0x00
[   28.046760] Parsing tailer region 5
[   28.050269]  Decomp crc: 0x0
[   28.053146]  Decomp size: 0x0
[   28.056106]  Decomp block size: 0x0
[   28.059588]  Target address: 0x23a400
[   28.063270]  Download size: 89088
[   28.066580]  Feature set: 0x00
[   28.069642] Parsing tailer region 6
[   28.073153]  Decomp crc: 0x0
[   28.076029]  Decomp size: 0x0
[   28.078990]  Decomp block size: 0x0
[   28.082498]  Target address: 0x400000
[   28.086157]  Download size: 81920
[   28.089464]  Feature set: 0x00
[   28.092570]  Release info: header tag = 0, total length = 72
[   28.098230]  tag 1, padding length = 3, tag length = 65
[   28.103472]  payload: t-neptune-MP-AX1800-2007-MT7915_WIFI_RAM_REBB_2007-20200506152412
[   28.111751] Start address = 0x21fc00, DL length = 108544, Data mode = 0x80000000
[   28.120393] EventGenericEventHandler: CMD Success
[   28.125133] MtCmdAddressLenReq:(ret = 0)
[   28.130381] Start address = 0x31dc00, DL length = 205824, Data mode = 0x80000000
[   28.139003] EventGenericEventHandler: CMD Success
[   28.143794] MtCmdAddressLenReq:(ret = 0)
[   28.150235] Start address = 0x417400, DL length = 31744, Data mode = 0x80000000
[   28.158793] EventGenericEventHandler: CMD Success
[   28.163557] MtCmdAddressLenReq:(ret = 0)
[   28.167876] Start address = 0xe0022800, DL length = 389120, Data mode = 0x80000000
[   28.176705] EventGenericEventHandler: CMD Success
[   28.181478] MtCmdAddressLenReq:(ret = 0)
[   28.190063] Start address = 0xe0081800, DL length = 354304, Data mode = 0x80000000
[   28.198884] EventGenericEventHandler: CMD Success
[   28.203782] MtCmdAddressLenReq:(ret = 0)
[   28.211952] Start address = 0x23a400, DL length = 89088, Data mode = 0x80000000
[   28.220529] EventGenericEventHandler: CMD Success
[   28.225272] MtCmdAddressLenReq:(ret = 0)
[   28.230319] Start address = 0x400000, DL length = 81920, Data mode = 0x80000000
[   28.239001] EventGenericEventHandler: CMD Success
[   28.243784] MtCmdAddressLenReq:(ret = 0)
[   28.248669] MtCmdFwStartReq: override = 0x1, address = 0x21fc00
[   28.255845] EventGenericEventHandler: CMD Success
[   28.260617] Parsing CPU 1 fw tailer
[   28.264106]  Chip ID: 0x00
[   28.266823]  Eco version: 0x01
[   28.269912]  Region number: 0x03
[   28.273148]  Format version: 0x02
[   28.276467]  Format flag: 0x01
[   28.279526]  Ram version: DEV_000000
[   28.283161]  Built date: 20200506152549
[   28.287137]  Common crc: 0xf020288f
[   28.290642] Parsing tailer region 0
[   28.294127]  Decomp crc: 0x0
[   28.297001]  Decomp size: 0x0
[   28.299986]  Decomp block size: 0x0
[   28.303471]  Target address: 0x10200000
[   28.307300]  Download size: 83200
[   28.310625]  Feature set: 0x00
[   28.313688] Parsing tailer region 1
[   28.317171]  Decomp crc: 0x0
[   28.320073]  Decomp size: 0x0
[   28.323036]  Decomp block size: 0x0
[   28.326518]  Target address: 0x10300000
[   28.330365]  Download size: 17920
[   28.333675]  Feature set: 0x00
[   28.336736] Parsing tailer region 2
[   28.340240]  Decomp crc: 0x0
[   28.343117]  Decomp size: 0x0
[   28.346078]  Decomp block size: 0x0
[   28.349559]  Target address: 0xe0000000
[   28.353412]  Download size: 1952
[   28.356634]  Feature set: 0x00
[   28.359695]  Release info: header tag = 0, total length = 0
[   28.365295] Start address = 0x10200000, DL length = 83200, Data mode = 0x80000010
[   28.373991] EventGenericEventHandler: CMD Success
[   28.378722] MtCmdAddressLenReq:(ret = 0)
[   28.383641] Start address = 0x10300000, DL length = 17920, Data mode = 0x80000010
[   28.392387] EventGenericEventHandler: CMD Success
[   28.397123] MtCmdAddressLenReq:(ret = 0)
[   28.401285] Start address = 0xe0000000, DL length = 1952, Data mode = 0x80000010
[   28.409889] EventGenericEventHandler: CMD Success
[   28.414621] MtCmdAddressLenReq:(ret = 0)
[   28.418571] MtCmdFwStartReq: override = 0x4, address = 0x0
[   28.528279] EventGenericEventHandler: CMD Success
[   28.533129] MCU Init Done!
[   28.535852] efuse_probe: efuse = 10000012
[   28.539905] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
[   28.545303] RtmpEepromGetDefault::e2p_dafault=1
[   28.549851] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
[   28.557433] NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
[   28.563214] rtmp_nv_init(): EEPROM Size[131072]
[   28.571195] [EEPROMImage - PreCalImageInfo - PreCalImage - TxDPDImage]
[   28.571195] [0x8c040000 - 0x8c040e00 - 0x8c040e10 - 0x8c04d220]
[   28.585094] validFlashEepromID(): eeFlashId=7915, pAd->ChipID=7915
[   28.592211] [d-die version:1]
[   28.631917] [a-die version:2]
[   28.763736]
[   28.765249] NICReadEEPROMParameters: EEPROM 0x62 7
[   28.770753] NICReadEEPROMParameters: Group Pre-Cal finished, load Group Pre-Cal data
[   28.779635] NICReadEEPROMParameters: DPD 5G Pre-Cal finished!
[   28.785413] NICReadEEPROMParameters: DPD 2G Pre-Cal finished!
[   28.929668] Country Region from e2p = 0
[   28.933530] antenna_default_reset() todo
[   28.937453] antenna_default_reset() value = 0x5292, TxPath = 2, RxPath = 2
[   28.944345] RTMPReadTxPwrPerRate(458): Don't Support this now!
[   28.950197] rc_radio_init(): DBDC MODE=1, ConcurrentBand=2
[   28.955689] rc_radio_init(): radio_ctrl=8e3f16e4,Band=0,rfcap=3,channel=1,PhyMode=2 extCha=0xf
[   28.964318] rc_radio_init(): radio_ctrl=8e3f1a38,Band=1,rfcap=3,channel=1,PhyMode=2 extCha=0xf
[   28.972945] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   28.979034] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   28.985143] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   28.992235] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   28.997981] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   29.003758] AntCfgInit(2706): Not support for HIF_MT yet!
[   29.009175] mt7915_check_RF_lock_down: RFlockDown Enable: 0
[   29.014758] MtReadPwrLimitTable: sku table idx: 0
mt7915_check_RF_lock_down: RFlockDown Enable: 0
[   29.032032] MtReadPwrLimitTable: sku table idx: 0
EEPROM Init Done!
[   29.046639] mac_init()-->
[   29.049263] init_mac_cr()-->
[   29.052196] <--mac_init()
[   29.058004] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[   29.066372] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[   29.074796] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[   29.081422] MAC Init Done!
[   29.084131] BBPInit():BBP Initialization.....
[   29.088488]  Band 0: valid=1, isDBDC=0, Band=2, CBW=1, CentCh/PrimCh=1/1, prim_ch_idx=0, txStream=2
[   29.097558]  Band 1: valid=0, isDBDC=0, Band=0, CBW=0, CentCh/PrimCh=0/0, prim_ch_idx=0, txStream=0
[   29.106621] BBPInit() todo
[   29.109325] PHY Init Done!
[   29.122474] tx_pwr_comp_init():NotSupportYet!
[   29.126876] Set_SCSEnable_Proc(): BandIdx=0, SCSEnable=1
[   29.132509] MtCmdSetMacTxRx:(ret = 0)
[   29.136331] MtCmdSetMacTxRx:(ret = 0)
[   29.141209] ap_ftkd> Initialize FT KDP Module...
[   29.145913] Main bssid = 00:00:00:00:00:00
[   29.150362] MtCmdSetMacTxRx:(ret = 0)
[   29.154179] MtCmdSetMacTxRx:(ret = 0)
[   29.157902] <==== mt_wifi_init, Status=0
[   29.161855] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   29.168988] HeraInitStbcPriority: u1BandIdx = 0, u1StbcPriority = 0
[   29.175307] HeraConfigStbcPriority: u1BandIdx = 0, u1Operation=1, u1StbcPriority = 0
[   29.183081] CmdHeraStbcPriorityCtrl: u1BandIdx=0, u1Operation=1, u1StbcPriority=0
[   29.190601] HeraInitStbcPriority: u1BandIdx = 1, u1StbcPriority = 0
[   29.196886] HeraConfigStbcPriority: u1BandIdx = 1, u1Operation=1, u1StbcPriority = 0
[   29.204650] CmdHeraStbcPriorityCtrl: u1BandIdx=1, u1Operation=1, u1StbcPriority=0
[   29.212317] Register MBSSID IF 1 (ra1)
[   29.217366] Register MBSSID IF 2 (ra2)
[   29.222426] Register MBSSID IF 3 (rax0)
[   29.227501] Register MBSSID IF 4 (rax1)
[   29.232627] Register MBSSID IF 5 (rax2)
[   29.237651] MSTA_Init (2) ---> ApCli
[   29.241346] Register MSTA IF (apcli0) , pAd->MSTANum = 1
[   29.246889] Caller: SetCommonHT+0x100/0x170
[   29.251110]
[   29.251110] phy_mode=78, ch=0, wdev_type=2
[   29.256682] ht_cap: ht_cap->HtCapInfo,
[   29.260533] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   29.268185] ht_cap: ht_cap->HtCapParm,
[   29.272028] mdpu_density=0, ampdu_factor=3
[   29.277466] Register MSTA IF (apclix0) , pAd->MSTANum = 2
[   29.283195] Caller: SetCommonHT+0x100/0x170
[   29.287383]
[   29.287383] phy_mode=177, ch=0, wdev_type=2
[   29.293053] ht_cap: ht_cap->HtCapInfo,
[   29.296891] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   29.304555] ht_cap: ht_cap->HtCapParm,
[   29.308390] mdpu_density=0, ampdu_factor=3
[   29.313800] mt_service_init: wlan service inits successfully!
[   29.319575] WtcSetMaxStaNum: MaxStaNum:230, BssidNum:6, WdsNum:16, MSTANum:2, MaxNumChipRept:32, MinMcastWcid:280
[   29.467299] RedInit: set CR4/N9 RED Enable to 1.
[   29.471984] RedInit: RED Initiailize Done.
[   29.476080] cp_support_is_enabled: set Driver CP_SUPPORT to Mode 2.
[   29.482372] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   29.488757] wifi_sys_open(), wdev idx = 0
[   29.492839] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   29.498948] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   29.505067] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   29.512151] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   29.517914] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   29.523895] BuildChannelList() BandIdx = 0, PhyMode = 78, ChListNum = 13:
[   29.530748] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   29.536695] phy_freq_adjust : no prim_ch value for adjust!
[   29.542302] Caller: wlan_operate_init+0x104/0x118
[   29.547048]
[   29.547048] phy_mode=78, ch=0, wdev_type=1
[   29.552642] ht_cap: ht_cap->HtCapInfo,
[   29.556480] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   29.564153] ht_cap: ht_cap->HtCapParm,
[   29.567988] mdpu_density=5, ampdu_factor=3
[   29.572194] wdev_attr_update(): wdevId0 = 50:41:b9:**:**:f4
[   29.578001] AP inf up for ra_0(func_idx) OmacIdx=0
[   29.582855] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
[   29.589242] ApAutoChannelAtBootUp----------------->
[   29.594160] ApAutoChannelAtBootUp: AutoChannelBootup[0] = 1
[   29.600049] MtCmdSetMacTxRx:(ret = 0)
[   29.603847] MtCmdSetMacTxRx:(ret = 0)
[   29.607685] MtCmdGetChBusyCnt:(ret = 0)
[   29.611665] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   29.619952] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0
[   29.629049] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.637365] MtCmdSetTxRxPath: control_chl = 1,control_ch2=0, central_chl = 1, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   29.652271] MtCmdGetChBusyCnt:(ret = 0)
[   29.849938] MtCmdGetChBusyCnt:(ret = 0)
[   29.853869] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   29.861989] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0
[   29.870986] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.879184] MtCmdSetTxRxPath: control_chl = 2,control_ch2=0, central_chl = 2, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   29.894074] MtCmdGetChBusyCnt:(ret = 0)
[   30.090004] MtCmdGetChBusyCnt:(ret = 0)
[   30.093968] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   30.102136] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0
[   30.111141] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.119354] MtCmdSetTxRxPath: control_chl = 3,control_ch2=0, central_chl = 3, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   30.134463] MtCmdGetChBusyCnt:(ret = 0)
[   30.330012] MtCmdGetChBusyCnt:(ret = 0)
[   30.333951] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   30.342078] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0
[   30.351071] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.359268] MtCmdSetTxRxPath: control_chl = 4,control_ch2=0, central_chl = 4, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   30.374161] MtCmdGetChBusyCnt:(ret = 0)
[   30.569972] MtCmdGetChBusyCnt:(ret = 0)
[   30.573923] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   30.582059] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
[   30.591055] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.599257] MtCmdSetTxRxPath: control_chl = 5,control_ch2=0, central_chl = 5, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   30.614156] MtCmdGetChBusyCnt:(ret = 0)
[   30.809951] MtCmdGetChBusyCnt:(ret = 0)
[   30.813882] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   30.822003] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0
[   30.831070] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.839273] MtCmdSetTxRxPath: control_chl = 6,control_ch2=0, central_chl = 6, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   30.854171] MtCmdGetChBusyCnt:(ret = 0)
[   31.050089] MtCmdGetChBusyCnt:(ret = 0)
[   31.054054] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   31.062223] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0
[   31.071246] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   31.079463] MtCmdSetTxRxPath: control_chl = 7,control_ch2=0, central_chl = 7, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   31.094390] MtCmdGetChBusyCnt:(ret = 0)
[   31.289949] MtCmdGetChBusyCnt:(ret = 0)
[   31.293880] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   31.302001] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
[   31.310997] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   31.319193] MtCmdSetTxRxPath: control_chl = 8,control_ch2=0, central_chl = 8, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   31.334165] MtCmdGetChBusyCnt:(ret = 0)
[   31.530028] MtCmdGetChBusyCnt:(ret = 0)
[   31.533969] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   31.542102] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   31.551096] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   31.559298] MtCmdSetTxRxPath: control_chl = 9,control_ch2=0, central_chl = 9, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), Cha
nnel_Band = 0
[   31.574193] MtCmdGetChBusyCnt:(ret = 0)
[   31.769954] MtCmdGetChBusyCnt:(ret = 0)
[   31.773888] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   31.782016] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0
[   31.791197] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   31.799398] MtCmdSetTxRxPath: control_chl = 10,control_ch2=0, central_chl = 10, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), C
hannel_Band = 0
[   31.814467] MtCmdGetChBusyCnt:(ret = 0)
[   32.010113] MtCmdGetChBusyCnt:(ret = 0)
[   32.014255] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   32.022589] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0
[   32.032251] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   32.040643] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 11, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(1), C
hannel_Band = 0
[   32.056134] MtCmdGetChBusyCnt:(ret = 0)
[   32.260006] MtCmdGetChBusyCnt:(ret = 0)
[   32.263865] ====================================================================
[   32.271291] Channel   1 : Busy Time =      3, Skip Channel = FALSE, BwCap = TRUE
[   32.278683] Channel   2 : Busy Time =      1, Skip Channel = FALSE, BwCap = TRUE
[   32.286091] Channel   3 : Busy Time =      4, Skip Channel = FALSE, BwCap = TRUE
[   32.293503] Channel   4 : Busy Time =      1, Skip Channel = FALSE, BwCap = TRUE
[   32.300914] Channel   5 : Busy Time =      1, Skip Channel = FALSE, BwCap = TRUE
[   32.308306] Channel   6 : Busy Time =   1459, Skip Channel = FALSE, BwCap = TRUE
[   32.315714] Channel   7 : Busy Time =   1445, Skip Channel = FALSE, BwCap = TRUE
[   32.323124] Channel   8 : Busy Time =   1366, Skip Channel = FALSE, BwCap = TRUE
[   32.330536] Channel   9 : Busy Time =   1444, Skip Channel = FALSE, BwCap = TRUE
[   32.337929] Channel  10 : Busy Time =      8, Skip Channel = FALSE, BwCap = TRUE
[   32.345335] Channel  11 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
[   32.352742] ====================================================================
[   32.360163] Rule 3 Channel Busy time value : Select Primary Channel 11
[   32.366687] Rule 3 Channel Busy time value : Min Channel Busy = 0
[   32.372791] Rule 3 Channel Busy time value : BW = 20
[   32.377755] [SelectClearChannelBusyTime] - band0 END
[   32.382733] ApAutoChannelAtBootUp : Auto channel selection: Selected channel = 11, IsAband = 0
[   32.391500] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   32.399565] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   32.408634] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   32.422432] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 9, BW = 1,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(0), Ch
annel_Band = 0
[   32.437936] zero_wait_dfs_switch_ch(): outband ch 0, ch_stat 0
[   32.443826] ApAutoChannelAtBootUp<-----------------
[   32.448709] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[   32.454678] Caller: SetCommonHT+0x100/0x170
[   32.458861]
[   32.458861] phy_mode=78, ch=11, wdev_type=1
[   32.464541] ht_cap: ht_cap->HtCapInfo,
[   32.468379] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   32.476047] ht_cap: ht_cap->HtCapParm,
[   32.479900] mdpu_density=5, ampdu_factor=3
[   32.484017] wifi_sys_linkup(), wdev idx = 0
[   32.488207] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:287 for WDEV_TYPE:1
[   32.488207]  LinkToOmacIdx = 0, LinkToWdevType = 1
[   32.501124] TRTableInsertMcastEntry:band0 group_idx[0]=0
[   32.618034] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   32.629109] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 8320
[   32.646478] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 0
[   32.652275] BeaconTransmitRequired():2.4G Bcn Tx is blocked!
[   32.652298] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 0
[   32.652352] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 0
[   32.652368] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
[   32.652418] TxCCKStreamCtrl: set wrong parameters
[   32.661298] set muru_update_he_cfg()!!!!
[   32.661303] SrMbssInit: Spatial Reuse initialize via profile.
[   32.661314] PrintSrCmd:
[   32.661314] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   32.661314] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   32.661362] PrintSrCmd:
[   32.661362] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   32.661362] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   32.661378] PrintSrCmd:
[   32.661378] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   32.661378] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   32.661467] apidx 0 for WscUUIDInit
[   32.661471] Generate UUID for apidx(0)
[   32.661561] WDS_Init():wds_num[0]=0, count=0, MAX_WDS_ENTRY=16, if_idx=0, flg_wds_init=0
[   32.661565] Total allocated 0 WDS(es) for band0!
[   32.693918] ra1: ===> mbss_virtual_if_open
[   32.693929] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   32.693935] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   32.694040] wifi_sys_open(), wdev idx = 1
[   32.694096] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   32.694100] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   32.694107] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   32.694193] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   32.694198] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   32.694225] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   32.694359] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   32.694438] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   32.694447] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   32.695344] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 9, BW = 1,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(0), Ch
annel_Band = 0
[   32.695623] Caller: wlan_operate_init+0x104/0x118
[   32.695627]
[   32.695627] phy_mode=78, ch=11, wdev_type=1
[   32.695629] ht_cap: ht_cap->HtCapInfo,
[   32.695637] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   32.695638] ht_cap: ht_cap->HtCapParm,
[   32.695642] mdpu_density=5, ampdu_factor=3
[   32.695735] wdev_attr_update(): wdevId1 = 52:41:b9:1f:1e:f4
[   32.882869] ExtEventBeaconLostHandler::FW EVENT (50:41:b9:**:**:f4), Reason 0x10
[   32.890280]   AP Beacon OFF!!!
[   32.893384] BeaconTransmitRequired():2.4G Bcn Tx is blocked!
[   32.899183] ExtEventBeaconLostHandler::FW EVENT (50:41:b9:**:**:f4), Reason 0x10
[   32.906592]   AP Beacon OFF!!!
[   32.911842] AP inf up for ra_1(func_idx) OmacIdx=17
[   32.916744] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
[   32.923137] ApAutoChannelAtBootUp----------------->
[   32.928018] ApAutoChannelAtBootUp: AutoChannelBootup[0] = 1
[   32.933937] MtCmdSetMacTxRx:(ret = 0)
[   32.937819] MtCmdSetMacTxRx:(ret = 0)
[   32.941537]  ap_run_at_boot() : ACS is disable !!
[   32.946942] [PMF]APPMFInit:: apidx=1, MFPC=0, MFPR=0, SHA256=0
[   32.952878] Caller: SetCommonHT+0x100/0x170
[   32.957060]
[   32.957060] phy_mode=78, ch=11, wdev_type=1
[   32.962733] ht_cap: ht_cap->HtCapInfo,
[   32.966571] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   32.974231] ht_cap: ht_cap->HtCapParm,
[   32.978065] mdpu_density=5, ampdu_factor=3
[   32.982199] wifi_sys_linkup(), wdev idx = 1
[   32.986392] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:286 for WDEV_TYPE:1
[   32.986392]  LinkToOmacIdx = 11, LinkToWdevType = 1
[   32.999402] TRTableInsertMcastEntry:band0 group_idx[1]=1
[   33.116164] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   33.127254] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 8320
[   33.145388] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 11
[   33.151271] BeaconTransmitRequired():2.4G Bcn Tx is blocked!
[   33.151299] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 0
[   33.151331] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 0
[   33.151357] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
[   33.151398] TxCCKStreamCtrl: set wrong parameters
[   33.160298] set muru_update_he_cfg()!!!!
[   33.160304] SrMbssInit: Spatial Reuse initialize via profile.
[   33.160315] PrintSrCmd:
[   33.160315] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   33.160315] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   33.160363] PrintSrCmd:
[   33.160363] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   33.160363] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   33.160379] PrintSrCmd:
[   33.160379] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   33.160379] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   33.160469] apidx 1 for WscUUIDInit
[   33.160473] Generate UUID for apidx(1)
[   33.239377] ra1: ===> mbss_virtual_if_close
[   33.243632] ExtEventBeaconLostHandler::FW EVENT (52:41:b9:1f:1e:f4), Reason 0x10
[   33.243634]   AP Beacon OFF!!!
[   33.254142] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   33.260750] UpdateBeaconHandler, wdev(1) bss not ready (state:2, caller:ap_link_down+0x58/0xb8)!!
[   33.269620] wifi_sys_linkdown(), wdev idx = 1
[   33.275700] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   33.286772] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   33.300949] wifi_sys_close(), wdev idx = 1
[   33.305400] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   33.323060] ra2: ===> mbss_virtual_if_open
[   33.327183] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   33.333661] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   33.340046] wifi_sys_open(), wdev idx = 2
[   33.344103] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   33.350212] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   33.356305] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   33.363396] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   33.369141] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   33.374925] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   33.380996] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   33.389078] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   33.398156] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   33.403528] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 9, BW = 1,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(0), Ch
annel_Band = 0
[   33.418454] Caller: wlan_operate_init+0x104/0x118
[   33.423197]
[   33.423197] phy_mode=78, ch=11, wdev_type=1
[   33.428856] ht_cap: ht_cap->HtCapInfo,
[   33.432719] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   33.440393] ht_cap: ht_cap->HtCapParm,
[   33.444228] mdpu_density=5, ampdu_factor=3
[   33.448425] wdev_attr_update(): wdevId2 = 52:41:b9:2f:1e:f4
[   33.454420] AP inf up for ra_2(func_idx) OmacIdx=17
[   33.459356] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
[   33.465764] ApAutoChannelAtBootUp----------------->
[   33.470682] ApAutoChannelAtBootUp: AutoChannelBootup[0] = 1
[   33.476532] MtCmdSetMacTxRx:(ret = 0)
[   33.480373] MtCmdSetMacTxRx:(ret = 0)
[   33.484036]  ap_run_at_boot() : ACS is disable !!
[   33.489435] [PMF]APPMFInit:: apidx=2, MFPC=0, MFPR=0, SHA256=0
[   33.495370] Caller: SetCommonHT+0x100/0x170
[   33.499552]
[   33.499552] phy_mode=78, ch=11, wdev_type=1
[   33.505226] ht_cap: ht_cap->HtCapInfo,
[   33.509064] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   33.514518] ap_probe_response_allowed(): hold probe response due to no_bcn
[   33.514524] ap_probe_response_allowed(): hold probe response due to no_bcn
[   33.530506] ht_cap: ht_cap->HtCapParm,
[   33.534341] mdpu_density=5, ampdu_factor=3
[   33.538459] wifi_sys_linkup(), wdev idx = 2
[   33.542667] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:286 for WDEV_TYPE:1
[   33.542667]  LinkToOmacIdx = 11, LinkToWdevType = 1
[   33.555644] TRTableInsertMcastEntry:band0 group_idx[2]=2
[   33.640278] ap_probe_response_allowed(): hold probe response due to no_bcn
[   33.647231] ap_probe_response_allowed(): hold probe response due to no_bcn
[   33.654153] ap_probe_response_allowed(): hold probe response due to no_bcn
[   33.661057] ap_probe_response_allowed(): hold probe response due to no_bcn
[   33.688103] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   33.699203] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 8320
[   33.717345] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 11
[   33.723252] BeaconTransmitRequired():2.4G Bcn Tx is blocked!
[   33.723279] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 0
[   33.723319] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 0
[   33.723353] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
[   33.723403] TxCCKStreamCtrl: set wrong parameters
[   33.732535] set muru_update_he_cfg()!!!!
[   33.732548] SrMbssInit: Spatial Reuse initialize via profile.
[   33.732567] PrintSrCmd:
[   33.732567] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   33.732567] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   33.732644] PrintSrCmd:
[   33.732644] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   33.732644] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   33.732671] PrintSrCmd:
[   33.732671] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   33.732671] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   33.732801] apidx 2 for WscUUIDInit
[   33.732807] Generate UUID for apidx(2)
[   33.766626] ap_probe_response_allowed(): hold probe response due to no_bcn
[   33.766649] ap_probe_response_allowed(): hold probe response due to no_bcn
[   33.825557] ra2: ===> mbss_virtual_if_close
[   33.825636] ExtEventBeaconLostHandler::FW EVENT (52:41:b9:2f:1e:f4), Reason 0x10
[   33.825639]   AP Beacon OFF!!!
[   33.840277] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   33.846868] UpdateBeaconHandler, wdev(2) bss not ready (state:2, caller:ap_link_down+0x58/0xb8)!!
[   33.855754] wifi_sys_linkdown(), wdev idx = 2
[   33.861844] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   33.872917] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   33.887106] wifi_sys_close(), wdev idx = 2
[   33.891635] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   33.923368] ==>Set_RadioOn_Proc (ON) equal to current state, ignore!!! (wdev_idx 0)
[   33.978602] device ra0 entered promiscuous mode
[   33.983315] br-lan: port 2(ra0) entered forwarding state
[   33.988684] br-lan: port 2(ra0) entered forwarding state
[   34.099341] Set_ApCli_Enable_Proc : interface is not up, please do ifconfig apcli0 up first
[   34.128899] apcli0: ===> msta_virtual_if_open
[   34.133342] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   34.139813] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   34.146262] wifi_sys_open(), wdev idx = 6
[   34.150354] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   34.156452] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   34.162585] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   34.169686] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   34.175476] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   34.181272] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   34.187413] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   34.195673] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   34.205118] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   34.210535] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 9, BW = 1,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(0), Ch
annel_Band = 0
[   34.225528] Caller: wlan_operate_init+0x104/0x118
[   34.230480]
[   34.230480] phy_mode=78, ch=11, wdev_type=2
[   34.236142] ht_cap: ht_cap->HtCapInfo,
[   34.240010] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   34.247662] ht_cap: ht_cap->HtCapParm,
[   34.251521] mdpu_density=0, ampdu_factor=3
[   34.255718] wdev_attr_update(): wdevId6 = 52:41:b9:1f:1e:f4
[   34.261686] Caller: SetCommonHT+0x100/0x170
[   34.265870]
[   34.265870] phy_mode=78, ch=11, wdev_type=2
[   34.271556] ht_cap: ht_cap->HtCapInfo,
[   34.275394] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   34.283073] ht_cap: ht_cap->HtCapParm,
[   34.286907] mdpu_density=0, ampdu_factor=3
[   34.291106] MSTA interface up for apcli0 func_idx=0 OmacIdx=1
[   34.297265] IPv6: ADDRCONF(NETDEV_UP): apcli0: link is not ready
[   34.314378] rax0: ===> mbss_virtual_if_open
[   34.318594] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   34.325082] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   34.331509] wifi_sys_open(), wdev idx = 3
[   34.335555] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   34.341687] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   34.347790] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   34.355021] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   34.360846] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   34.366665] BuildChannelList() BandIdx = 1, PhyMode = 177, ChListNum = 20:
[   34.373691] DfsBuildChannelList(): Done
[   34.377533] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   34.383512]  [RadarStateCheck] RD_NORMAL_MODE
[   34.388918] phy_freq_adjust : no prim_ch value for adjust!
[   34.394462] Caller: wlan_operate_init+0x104/0x118
[   34.399164]
[   34.399164] phy_mode=177, ch=0, wdev_type=1
[   34.404832] ht_cap: ht_cap->HtCapInfo,
[   34.408670] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   34.416331] ht_cap: ht_cap->HtCapParm,
[   34.420179] mdpu_density=5, ampdu_factor=3
[   34.424367] wdev_attr_update(): wdevId3 = 50:41:b9:**:**:f5
[   34.430296] AP inf up for ra_3(func_idx) OmacIdx=0
[   34.435130] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
[   34.441517] ApAutoChannelAtBootUp----------------->
[   34.446397] ApAutoChannelAtBootUp: AutoChannelBootup[1] = 1
[   34.452285] MtCmdSetMacTxRx:(ret = 0)
[   34.456094] MtCmdSetMacTxRx:(ret = 0)
[   34.459964] MtCmdGetChBusyCnt:(ret = 0)
[   34.463816] [AutoChSelBuildChannelListFor5G] ChListNum5G = 20
[   34.469707] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   34.478141] MtCmdChannelSwitch: control_chl = 36,control_ch2=0, central_chl = 36 DBDCIdx= 1, Band= 1
[   34.487304] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   34.495926] MtCmdSetTxRxPath: control_chl = 36,control_ch2=0, central_chl = 36, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(1), C
hannel_Band = 1
[   34.511006] MtCmdGetChBusyCnt:(ret = 0)
[   34.709949] MtCmdGetChBusyCnt:(ret = 0)
[   34.713910] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   34.722073] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 40 DBDCIdx= 1, Band= 1
[   34.731408] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   34.740116] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 40, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(1), C
hannel_Band = 1
[   34.755227] MtCmdGetChBusyCnt:(ret = 0)
[   34.949962] MtCmdGetChBusyCnt:(ret = 0)
[   34.953913] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   34.962049] MtCmdChannelSwitch: control_chl = 44,control_ch2=0, central_chl = 44 DBDCIdx= 1, Band= 1
[   34.971217] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   34.979826] MtCmdSetTxRxPath: control_chl = 44,control_ch2=0, central_chl = 44, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(1), C
hannel_Band = 1
[   34.994924] MtCmdGetChBusyCnt:(ret = 0)
[   35.189986] MtCmdGetChBusyCnt:(ret = 0)
[   35.193947] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   35.202061] MtCmdChannelSwitch: control_chl = 48,control_ch2=0, central_chl = 48 DBDCIdx= 1, Band= 1
[   35.211224] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   35.219831] MtCmdSetTxRxPath: control_chl = 48,control_ch2=0, central_chl = 48, BW = 0,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(1), C
hannel_Band = 1
[   35.234916] MtCmdGetChBusyCnt:(ret = 0)
[   35.429951] MtCmdGetChBusyCnt:(ret = 0)
[   35.433795] ====================================================================
[   35.441240] Channel  36 : Busy Time =    528, Skip Channel = FALSE, BwCap = TRUE
[   35.448633] Channel  40 : Busy Time =    266, Skip Channel = FALSE, BwCap = TRUE
[   35.456121] Channel  44 : Busy Time =    358, Skip Channel = FALSE, BwCap = TRUE
[   35.463545] Channel  48 : Busy Time =    588, Skip Channel = FALSE, BwCap = TRUE
[   35.470953] ====================================================================
[   35.478355] Rule 3 Channel Busy time value : Select Primary Channel 40
[   35.484900] Rule 3 Channel Busy time value : Min Channel Busy = 588
[   35.491180] Rule 3 Channel Busy time value : BW = 80
[   35.496143] [SelectClearChannelBusyTime] - band1 END
[   35.501130] ApAutoChannelAtBootUp : Auto channel selection: Selected channel = 40, IsAband = 1
[   35.509766]  [RadarStateCheck] RD_NORMAL_MODE
[   35.515311] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   35.523432] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 1
[   35.532694] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   35.546016] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 42, BW = 2,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(0), C
hannel_Band = 1
[   35.561038] DfsBuildChannelList(): Done
[   35.564900] zero_wait_dfs_switch_ch(): outband ch 0, ch_stat 0
[   35.570754] ApAutoChannelAtBootUp<-----------------
[   35.575637] [PMF]APPMFInit:: apidx=3, MFPC=0, MFPR=0, SHA256=0
[   35.581604] Caller: SetCommonHT+0x100/0x170
[   35.585786]
[   35.585786] phy_mode=177, ch=40, wdev_type=1
[   35.591548] ht_cap: ht_cap->HtCapInfo,
[   35.595386] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   35.603057] ht_cap: ht_cap->HtCapParm,
[   35.606892] mdpu_density=5, ampdu_factor=3
[   35.611032] wifi_sys_linkup(), wdev idx = 3
[   35.615224] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:286 for WDEV_TYPE:1
[   35.615224]  LinkToOmacIdx = 0, LinkToWdevType = 1
[   35.628119] TRTableInsertMcastEntry:band1 group_idx[3]=3
[   35.633731] UpdateBeaconHandler, wdev(3) bss not ready (state:0, caller:update_ap_qload_to_bcn+0x94/0xc4)!!
[   35.633793] BeaconTransmitRequired():2.4G Bcn Tx is blocked!
[   35.643967] ExtEventBeaconLostHandler::FW EVENT (50:41:b9:**:**:f4), Reason 0x10
[   35.643970]   AP Beacon OFF!!!
[   35.775407] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   35.786639] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8320
[   35.804365] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 0
[   35.810197] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 1
[   35.816040] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 1
[   35.822103] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 1
[   35.837061] set muru_update_he_cfg()!!!!
[   35.841037] SrMbssInit: Spatial Reuse initialize via profile.
[   35.846787] PrintSrCmd:
[   35.846787] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   35.846787] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   35.860869] PrintSrCmd:
[   35.860869] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   35.860869] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   35.874994] PrintSrCmd:
[   35.874994] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   35.874994] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   35.889203] apidx 3 for WscUUIDInit
[   35.892707] Generate UUID for apidx(3)
[   35.896566] WDS_Init():wds_num[1]=0, count=0, MAX_WDS_ENTRY=16, if_idx=0, flg_wds_init=0
[   35.904740] Total allocated 0 WDS(es) for band1!
[   35.920079] rax1: ===> mbss_virtual_if_open
[   35.924289] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   35.930769] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   35.937129] wifi_sys_open(), wdev idx = 4
[   35.941178] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   35.947268] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   35.953379] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   35.960501] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   35.966247] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   35.972043] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   35.978123] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   35.986229] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 1
[   35.995390] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   36.000760] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 42, BW = 2,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(0), C
hannel_Band = 1
[   36.015749] Caller: wlan_operate_init+0x104/0x118
[   36.020498]
[   36.020498] phy_mode=177, ch=40, wdev_type=1
[   36.026243] ht_cap: ht_cap->HtCapInfo,
[   36.030132] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   36.037786] ht_cap: ht_cap->HtCapParm,
[   36.041636] mdpu_density=5, ampdu_factor=3
[   36.045890] wdev_attr_update(): wdevId4 = 52:41:b9:4f:1e:f4
[   36.051829] AP inf up for ra_4(func_idx) OmacIdx=17
[   36.056733] AsicRadioOnOffCtrl(): DbdcIdx=1 RadioOn
[   36.063130] ApAutoChannelAtBootUp----------------->
[   36.068013] ApAutoChannelAtBootUp: AutoChannelBootup[1] = 1
[   36.073919] MtCmdSetMacTxRx:(ret = 0)
[   36.077735] MtCmdSetMacTxRx:(ret = 0)
[   36.081449]  ap_run_at_boot() : ACS is disable !!
[   36.086877] [PMF]APPMFInit:: apidx=4, MFPC=0, MFPR=0, SHA256=0
[   36.092862] Caller: SetCommonHT+0x100/0x170
[   36.097059]
[   36.097059] phy_mode=177, ch=40, wdev_type=1
[   36.102839] ht_cap: ht_cap->HtCapInfo,
[   36.106707] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   36.114459] ht_cap: ht_cap->HtCapParm,
[   36.118374] mdpu_density=5, ampdu_factor=3
[   36.122625] wifi_sys_linkup(), wdev idx = 4
[   36.126844] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:285 for WDEV_TYPE:1
[   36.126844]  LinkToOmacIdx = 11, LinkToWdevType = 1
[   36.139974] TRTableInsertMcastEntry:band1 group_idx[4]=4
[   36.256902] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   36.268085] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8320
[   36.286451] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 11
[   36.292364] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 1
[   36.298139] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 1
[   36.304200] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 1
[   36.319184] set muru_update_he_cfg()!!!!
[   36.323136] SrMbssInit: Spatial Reuse initialize via profile.
[   36.328886] PrintSrCmd:
[   36.328886] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   36.328886] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   36.342955] PrintSrCmd:
[   36.342955] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   36.342955] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   36.357094] PrintSrCmd:
[   36.357094] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   36.357094] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   36.371273] apidx 4 for WscUUIDInit
[   36.374761] Generate UUID for apidx(4)
[   36.388740] rax1: ===> mbss_virtual_if_close
[   36.393155] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   36.399760] UpdateBeaconHandler, wdev(4) bss not ready (state:2, caller:ap_link_down+0x58/0xb8)!!
[   36.408672] wifi_sys_linkdown(), wdev idx = 4
[   36.414797] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   36.425966] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   36.440200] wifi_sys_close(), wdev idx = 4
[   36.444669] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   36.462282] rax2: ===> mbss_virtual_if_open
[   36.466492] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   36.472978] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   36.479338] wifi_sys_open(), wdev idx = 5
[   36.483405] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   36.489495] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   36.495604] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   36.502716] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   36.508460] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   36.514250] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   36.520353] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   36.528427] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 1
[   36.537588] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   36.542960] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 42, BW = 2,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(0), C
hannel_Band = 1
[   36.558215] Caller: wlan_operate_init+0x104/0x118
[   36.562990]
[   36.562990] phy_mode=177, ch=40, wdev_type=1
[   36.568735] ht_cap: ht_cap->HtCapInfo,
[   36.572606] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   36.580279] ht_cap: ht_cap->HtCapParm,
[   36.584113] mdpu_density=5, ampdu_factor=3
[   36.588290] wdev_attr_update(): wdevId5 = 52:41:b9:5f:1e:f4
[   36.594201] AP inf up for ra_5(func_idx) OmacIdx=17
[   36.599107] AsicRadioOnOffCtrl(): DbdcIdx=1 RadioOn
[   36.605511] ApAutoChannelAtBootUp----------------->
[   36.610452] ApAutoChannelAtBootUp: AutoChannelBootup[1] = 1
[   36.616299] MtCmdSetMacTxRx:(ret = 0)
[   36.620144] MtCmdSetMacTxRx:(ret = 0)
[   36.623806]  ap_run_at_boot() : ACS is disable !!
[   36.629204] [PMF]APPMFInit:: apidx=5, MFPC=0, MFPR=0, SHA256=0
[   36.635292] Caller: SetCommonHT+0x100/0x170
[   36.639476]
[   36.639476] phy_mode=177, ch=40, wdev_type=1
[   36.645239] ht_cap: ht_cap->HtCapInfo,
[   36.649076] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   36.656751] ht_cap: ht_cap->HtCapParm,
[   36.660604] mdpu_density=5, ampdu_factor=3
[   36.664723] wifi_sys_linkup(), wdev idx = 5
[   36.668913] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:285 for WDEV_TYPE:1
[   36.668913]  LinkToOmacIdx = 11, LinkToWdevType = 1
[   36.681897] TRTableInsertMcastEntry:band1 group_idx[5]=5
[   36.779595] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead
.
[   36.798564] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   36.809718] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8320
[   36.827997] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 11
[   36.833924] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 1
[   36.839850] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 1
[   36.845870] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 1
[   36.860911] set muru_update_he_cfg()!!!!
[   36.864838] SrMbssInit: Spatial Reuse initialize via profile.
[   36.870616] PrintSrCmd:
[   36.870616] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   36.870616] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   36.884684] PrintSrCmd:
[   36.884684] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   36.884684] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   36.898813] PrintSrCmd:
[   36.898813] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   36.898813] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   36.913030] apidx 5 for WscUUIDInit
[   36.916517] Generate UUID for apidx(5)
[   36.930516] rax2: ===> mbss_virtual_if_close
[   36.934813] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   36.941439] UpdateBeaconHandler, wdev(5) bss not ready (state:2, caller:ap_link_down+0x58/0xb8)!!
[   36.950327] wifi_sys_linkdown(), wdev idx = 5
[   36.956406] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   36.967580] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   36.981746] wifi_sys_close(), wdev idx = 5
[   36.986196] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   37.009675] ==>Set_RadioOn_Proc (ON) equal to current state, ignore!!! (wdev_idx 3)
[   37.058474] device rax0 entered promiscuous mode
[   37.063324] br-lan: port 3(rax0) entered forwarding state
[   37.068782] br-lan: port 3(rax0) entered forwarding state
[   37.164563] set_radar_min_lpn_proc():LPN Update 8
[   37.177232] Set_ApCli_Enable_Proc : interface is not up, please do ifconfig apclix0 up first
[   37.203827] apclix0: ===> msta_virtual_if_open
[   37.208296] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   37.214863] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   37.221271] wifi_sys_open(), wdev idx = 7
[   37.225295] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   37.231405] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   37.237500] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   37.244617] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   37.250393] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   37.256159] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   37.262252] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   37.270361] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 1
[   37.279496] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   37.284868] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 42, BW = 2,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(0), C
hannel_Band = 1
[   37.299928] Caller: wlan_operate_init+0x104/0x118
[   37.304657]
[   37.304657] phy_mode=177, ch=40, wdev_type=2
[   37.310440] ht_cap: ht_cap->HtCapInfo,
[   37.314279] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   37.321951] ht_cap: ht_cap->HtCapParm,
[   37.325786] mdpu_density=0, ampdu_factor=3
[   37.330160] wdev_attr_update(): wdevId7 = 52:41:b9:1f:1e:f4
[   37.336100] Caller: SetCommonHT+0x100/0x170
[   37.340326]
[   37.340326] phy_mode=177, ch=40, wdev_type=2
[   37.346070] ht_cap: ht_cap->HtCapInfo,
[   37.349929] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   37.357580] ht_cap: ht_cap->HtCapParm,
[   37.361431] mdpu_density=0, ampdu_factor=3
[   37.365609] MSTA interface up for apcli1 func_idx=1 OmacIdx=1
[   37.371783] IPv6: ADDRCONF(NETDEV_UP): apclix0: link is not ready
[   37.687890] ra1: ===> mbss_virtual_if_open
[   37.692115] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   37.698557] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   37.704930] wifi_sys_open(), wdev idx = 1
[   37.708964] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   37.715072] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   37.721180] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   37.728274] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   37.734057] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   37.739847] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   37.745919] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   37.754011] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   37.763085] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   37.768430] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 9, BW = 1,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(0), Ch
annel_Band = 0
[   37.783360] Caller: wlan_operate_init+0x104/0x118
[   37.788065]
[   37.788065] phy_mode=78, ch=11, wdev_type=1
[   37.793760] ht_cap: ht_cap->HtCapInfo,
[   37.797600] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   37.805267] ht_cap: ht_cap->HtCapParm,
[   37.809101] mdpu_density=5, ampdu_factor=3
[   37.813302] wdev_attr_update(): wdevId1 = 52:41:b9:1f:1e:f4
[   37.819089] AP inf up for ra_1(func_idx) OmacIdx=17
[   37.824017] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
[   37.830409] ApAutoChannelAtBootUp----------------->
[   37.835308] ApAutoChannelAtBootUp: AutoChannelBootup[0] = 1
[   37.841198] MtCmdSetMacTxRx:(ret = 0)
[   37.845005] MtCmdSetMacTxRx:(ret = 0)
[   37.848667]  ap_run_at_boot() : ACS is disable !!
[   37.854086] [PMF]APPMFInit:: apidx=1, MFPC=0, MFPR=0, SHA256=0
[   37.860021] Caller: SetCommonHT+0x100/0x170
[   37.864203]
[   37.864203] phy_mode=78, ch=11, wdev_type=1
[   37.869875] ht_cap: ht_cap->HtCapInfo,
[   37.873712] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   37.881374] ht_cap: ht_cap->HtCapParm,
[   37.885208] mdpu_density=5, ampdu_factor=3
[   37.889323] wifi_sys_linkup(), wdev idx = 1
[   37.893529] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:285 for WDEV_TYPE:1
[   37.893529]  LinkToOmacIdx = 11, LinkToWdevType = 1
[   37.906505] TRTableInsertMcastEntry:band0 group_idx[1]=1
[   38.023125] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   38.034217] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 8320
[   38.052298] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 11
[   38.058154] BeaconTransmitRequired():2.4G Bcn Tx is blocked!
[   38.058185] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 0
[   38.058214] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 0
[   38.058237] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
[   38.058262] TxCCKStreamCtrl: set wrong parameters
[   38.067088] set muru_update_he_cfg()!!!!
[   38.067096] SrMbssInit: Spatial Reuse initialize via profile.
[   38.067108] PrintSrCmd:
[   38.067108] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   38.067108] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   38.067136] PrintSrCmd:
[   38.067136] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   38.067136] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   38.067160] PrintSrCmd:
[   38.067160] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   38.067160] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   38.067213] apidx 1 for WscUUIDInit
[   38.067217] Generate UUID for apidx(1)
[   38.146356] ra1: ===> mbss_virtual_if_close
[   38.150704] ExtEventBeaconLostHandler::FW EVENT (52:41:b9:1f:1e:f4), Reason 0x10
[   38.150708]   AP Beacon OFF!!!
[   38.161367] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   38.168115] UpdateBeaconHandler, wdev(1) bss not ready (state:2, caller:ap_link_down+0x58/0xb8)!!
[   38.177244] wifi_sys_linkdown(), wdev idx = 1
[   38.183511] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   38.194614] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   38.208929] wifi_sys_close(), wdev idx = 1
[   38.213994] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   38.232741] ra2: ===> mbss_virtual_if_open
[   38.236863] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   38.243357] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   38.249718] wifi_sys_open(), wdev idx = 2
[   38.253766] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   38.259872] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   38.265965] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   38.273073] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   38.278817] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   38.284608] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   38.290698] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   38.298765] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   38.307840] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   38.313207] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 9, BW = 1,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(0), Ch
annel_Band = 0
[   38.328121] Caller: wlan_operate_init+0x104/0x118
[   38.332887]
[   38.332887] phy_mode=78, ch=11, wdev_type=1
[   38.338554] ht_cap: ht_cap->HtCapInfo,
[   38.342435] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   38.350120] ht_cap: ht_cap->HtCapParm,
[   38.353955] mdpu_density=5, ampdu_factor=3
[   38.358128] wdev_attr_update(): wdevId2 = 52:41:b9:2f:1e:f4
[   38.364039] AP inf up for ra_2(func_idx) OmacIdx=17
[   38.368944] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
[   38.375327] ApAutoChannelAtBootUp----------------->
[   38.380259] ApAutoChannelAtBootUp: AutoChannelBootup[0] = 1
[   38.386107] MtCmdSetMacTxRx:(ret = 0)
[   38.389945] MtCmdSetMacTxRx:(ret = 0)
[   38.393608]  ap_run_at_boot() : ACS is disable !!
[   38.399007] [PMF]APPMFInit:: apidx=2, MFPC=0, MFPR=0, SHA256=0
[   38.404953] Caller: SetCommonHT+0x100/0x170
[   38.409135]
[   38.409135] phy_mode=78, ch=11, wdev_type=1
[   38.414809] ht_cap: ht_cap->HtCapInfo,
[   38.418647] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   38.426311] ht_cap: ht_cap->HtCapParm,
[   38.430169] mdpu_density=5, ampdu_factor=3
[   38.434289] wifi_sys_linkup(), wdev idx = 2
[   38.438479] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:285 for WDEV_TYPE:1
[   38.438479]  LinkToOmacIdx = 11, LinkToWdevType = 1
[   38.451468] TRTableInsertMcastEntry:band0 group_idx[2]=2
[   38.568296] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   38.579371] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 8320
[   38.597475] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 11
[   38.603349] BeaconTransmitRequired():2.4G Bcn Tx is blocked!
[   38.603373] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 0
[   38.603404] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 0
[   38.603427] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
[   38.603452] TxCCKStreamCtrl: set wrong parameters
[   38.632361] ExtEventBeaconLostHandler::FW EVENT (52:41:b9:2f:1e:f4), Reason 0x10
[   38.639768]   AP Beacon OFF!!!
[   38.642986] set muru_update_he_cfg()!!!!
[   38.646912] SrMbssInit: Spatial Reuse initialize via profile.
[   38.652710] PrintSrCmd:
[   38.652710] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   38.652710] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   38.666761] PrintSrCmd:
[   38.666761] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   38.666761] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   38.680895] PrintSrCmd:
[   38.680895] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
[   38.680895] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   38.695053] apidx 2 for WscUUIDInit
[   38.698540] Generate UUID for apidx(2)
[   38.712191] ra2: ===> mbss_virtual_if_close
[   38.716400] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   38.723043] UpdateBeaconHandler, wdev(2) bss not ready (state:2, caller:ap_link_down+0x58/0xb8)!!
[   38.732121] wifi_sys_linkdown(), wdev idx = 2
[   38.738210] (bssUpdateChannel), ucPrimCh=11, ucCentChSeg0=9, ucCentChSeg1=0, BW=1, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   38.749310] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   38.763502] wifi_sys_close(), wdev idx = 2
[   38.767968] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   38.799543] ==>Set_RadioOn_Proc (ON) equal to current state, ignore!!! (wdev_idx 0)
[   38.942063] I/F(apcli0) Set_ApCli_Enable_Proc::(enable = 0)
[   38.947895] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   38.956066] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   38.965159] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   38.970548] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 9, BW = 1,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(0), Ch
annel_Band = 0
[   38.994602] apcli0: ===> msta_virtual_if_close
[   38.999072] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   39.008040] wifi_sys_close(), wdev idx = 6
[   39.012676] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   39.030204] apcli0: ===> msta_virtual_if_open
[   39.034586] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   39.041069] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   39.047444] wifi_sys_open(), wdev idx = 6
[   39.051493] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   39.057583] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   39.063701] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   39.070814] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   39.076558] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   39.082364] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   39.088422] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   39.096519] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   39.105620] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   39.111091] MtCmdSetTxRxPath: control_chl = 11,control_ch2=0, central_chl = 9, BW = 1,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =0,  scan(0), Ch
annel_Band = 0
[   39.126139] Caller: wlan_operate_init+0x104/0x118
[   39.131147]
[   39.131147] phy_mode=78, ch=11, wdev_type=2
[   39.136854] ht_cap: ht_cap->HtCapInfo,
[   39.140754] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   39.148414] ht_cap: ht_cap->HtCapParm,
[   39.152287] mdpu_density=0, ampdu_factor=3
[   39.156491] wdev_attr_update(): wdevId6 = 56:41:b9:1f:1e:f4
[   39.162481] Caller: SetCommonHT+0x100/0x170
[   39.166668]
[   39.166668] phy_mode=78, ch=11, wdev_type=2
[   39.172359] ht_cap: ht_cap->HtCapInfo,
[   39.176196] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   39.183869] ht_cap: ht_cap->HtCapParm,
[   39.187703] mdpu_density=0, ampdu_factor=3
[   39.191891] MSTA interface up for apcli0 func_idx=0 OmacIdx=1
[   39.197797] IPv6: ADDRCONF(NETDEV_UP): apcli0: link is not ready
[   39.222301] rax1: ===> mbss_virtual_if_open
[   39.226509] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   39.232988] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   39.239348] wifi_sys_open(), wdev idx = 4
[   39.243401] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   39.249491] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   39.255601] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   39.262720] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   39.268468] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   39.274264] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   39.280386] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   39.288472] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 1
[   39.297635] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   39.302998] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 42, BW = 2,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(0), C
hannel_Band = 1
[   39.318006] Caller: wlan_operate_init+0x104/0x118
[   39.322743]
[   39.322743] phy_mode=177, ch=40, wdev_type=1
[   39.328487] ht_cap: ht_cap->HtCapInfo,
[   39.332351] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   39.340025] ht_cap: ht_cap->HtCapParm,
[   39.343858] mdpu_density=5, ampdu_factor=3
[   39.348029] wdev_attr_update(): wdevId4 = 52:41:b9:4f:1e:f4
[   39.353946] AP inf up for ra_4(func_idx) OmacIdx=17
[   39.358860] AsicRadioOnOffCtrl(): DbdcIdx=1 RadioOn
[   39.365244] ApAutoChannelAtBootUp----------------->
[   39.370160] ApAutoChannelAtBootUp: AutoChannelBootup[1] = 1
[   39.376006] MtCmdSetMacTxRx:(ret = 0)
[   39.379825] MtCmdSetMacTxRx:(ret = 0)
[   39.383488]  ap_run_at_boot() : ACS is disable !!
[   39.388887] [PMF]APPMFInit:: apidx=4, MFPC=0, MFPR=0, SHA256=0
[   39.394826] Caller: SetCommonHT+0x100/0x170
[   39.399008]
[   39.399008] phy_mode=177, ch=40, wdev_type=1
[   39.404763] ht_cap: ht_cap->HtCapInfo,
[   39.408600] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   39.416265] ht_cap: ht_cap->HtCapParm,
[   39.420112] mdpu_density=5, ampdu_factor=3
[   39.424231] wifi_sys_linkup(), wdev idx = 4
[   39.428420] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:285 for WDEV_TYPE:1
[   39.428420]  LinkToOmacIdx = 11, LinkToWdevType = 1
[   39.441401] TRTableInsertMcastEntry:band1 group_idx[4]=4
[   39.557877] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   39.569038] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8320
[   39.587373] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 11
[   39.593274] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 1
[   39.599052] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 1
[   39.605110] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 1
[   39.620115] set muru_update_he_cfg()!!!!
[   39.624042] SrMbssInit: Spatial Reuse initialize via profile.
[   39.629809] PrintSrCmd:
[   39.629809] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   39.629809] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   39.643863] PrintSrCmd:
[   39.643863] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   39.643863] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   39.657993] PrintSrCmd:
[   39.657993] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   39.657993] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   39.672169] apidx 4 for WscUUIDInit
[   39.675656] Generate UUID for apidx(4)
[   39.689258] rax1: ===> mbss_virtual_if_close
[   39.693821] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   39.700441] UpdateBeaconHandler, wdev(4) bss not ready (state:2, caller:ap_link_down+0x58/0xb8)!!
[   39.709310] wifi_sys_linkdown(), wdev idx = 4
[   39.715431] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   39.726599] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   39.740817] wifi_sys_close(), wdev idx = 4
[   39.745286] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   39.762725] rax2: ===> mbss_virtual_if_open
[   39.766933] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   39.773405] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   39.779797] wifi_sys_open(), wdev idx = 5
[   39.783835] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   39.789940] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   39.796032] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   39.803153] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   39.808901] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   39.814692] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   39.820813] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   39.828912] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 1
[   39.838076] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   39.843459] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 42, BW = 2,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(0), C
hannel_Band = 1
[   39.858480] Caller: wlan_operate_init+0x104/0x118
[   39.863219]
[   39.863219] phy_mode=177, ch=40, wdev_type=1
[   39.868965] ht_cap: ht_cap->HtCapInfo,
[   39.872839] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   39.880514] ht_cap: ht_cap->HtCapParm,
[   39.884348] mdpu_density=5, ampdu_factor=3
[   39.888523] wdev_attr_update(): wdevId5 = 52:41:b9:5f:1e:f4
[   39.894423] AP inf up for ra_5(func_idx) OmacIdx=17
[   39.899337] AsicRadioOnOffCtrl(): DbdcIdx=1 RadioOn
[   39.905749] ApAutoChannelAtBootUp----------------->
[   39.910664] ApAutoChannelAtBootUp: AutoChannelBootup[1] = 1
[   39.916513] MtCmdSetMacTxRx:(ret = 0)
[   39.920358] MtCmdSetMacTxRx:(ret = 0)
[   39.924021]  ap_run_at_boot() : ACS is disable !!
[   39.929419] [PMF]APPMFInit:: apidx=5, MFPC=0, MFPR=0, SHA256=0
[   39.935366] Caller: SetCommonHT+0x100/0x170
[   39.939549]
[   39.939549] phy_mode=177, ch=40, wdev_type=1
[   39.945311] ht_cap: ht_cap->HtCapInfo,
[   39.949150] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   39.956810] ht_cap: ht_cap->HtCapParm,
[   39.960659] mdpu_density=5, ampdu_factor=3
[   39.964779] wifi_sys_linkup(), wdev idx = 5
[   39.968969] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:285 for WDEV_TYPE:1
[   39.968969]  LinkToOmacIdx = 11, LinkToWdevType = 1
[   39.981958] TRTableInsertMcastEntry:band1 group_idx[5]=5
[   40.098351] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   40.109521] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8320
[   40.128033] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 11
[   40.133981] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 1
[   40.139805] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 1
[   40.145845] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 1
[   40.160881] set muru_update_he_cfg()!!!!
[   40.164809] SrMbssInit: Spatial Reuse initialize via profile.
[   40.170578] PrintSrCmd:
[   40.170578] u1CmdSubId = f, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   40.170578] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   40.184627] PrintSrCmd:
[   40.184627] u1CmdSubId = 13, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   40.184627] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
[   40.198755] PrintSrCmd:
[   40.198755] u1CmdSubId = 10, u1ArgNum = 0, u1DbdcIdx = 1, u1Status = 0
[   40.198755] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
[   40.212935] apidx 5 for WscUUIDInit
[   40.216423] Generate UUID for apidx(5)
[   40.230237] rax2: ===> mbss_virtual_if_close
[   40.234562] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   40.241364] UpdateBeaconHandler, wdev(5) bss not ready (state:2, caller:ap_link_down+0x58/0xb8)!!
[   40.250303] wifi_sys_linkdown(), wdev idx = 5
[   40.256551] (bssUpdateChannel), ucPrimCh=40, ucCentChSeg0=42, ucCentChSeg1=0, BW=2, ucHetbRU26Disable=0, ucHetbAllDisable=1
[   40.267802] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   40.282344] wifi_sys_close(), wdev idx = 5
[   40.287117] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   40.313566] ==>Set_RadioOn_Proc (ON) equal to current state, ignore!!! (wdev_idx 3)
[   40.524809] set_radar_min_lpn_proc():LPN Update 8
[   40.537495] I/F(apcli1) Set_ApCli_Enable_Proc::(enable = 0)
[   40.543336] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   40.551447] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 1
[   40.560608] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   40.565974] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 42, BW = 2,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(0), C
hannel_Band = 1
[   40.590160] apclix0: ===> msta_virtual_if_close
[   40.594715] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DOWN
[   40.603739] wifi_sys_close(), wdev idx = 7
[   40.608362] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_DEINIT
[   40.625462] apclix0: ===> msta_virtual_if_open
[   40.630005] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
[   40.636453] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   40.642880] wifi_sys_open(), wdev idx = 7
[   40.646903] rcUpdateBandForBFMU      PhyCtrl[0].RadioCtrl.IsBfBand = 1
[   40.653013] rcUpdateBandForBFMU      PhyCtrl[1].RadioCtrl.IsBfBand = 1
[   40.659106] TxBfModuleEnCtrl:u1BfNum = 2, u1BfBitmap = 3, u1BfSelBand[0] = 0
[   40.666207] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
[   40.671979] ucAction = 0, ucBandIdx = 1, ucSmthIntlBypass = 0
[   40.677745] phy_oper_init(): operate TxStream = 2, RxStream = 2
[   40.683828] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
[   40.691927] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 1
[   40.701086] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   40.706432] MtCmdSetTxRxPath: control_chl = 40,control_ch2=0, central_chl = 42, BW = 2,TXStream = 2, RXStream = 2,RXPath = 3, BandIdx =1,  scan(0), C
hannel_Band = 1
[   40.721441] Caller: wlan_operate_init+0x104/0x118
[   40.726145]
[   40.726145] phy_mode=177, ch=40, wdev_type=2
[   40.731929] ht_cap: ht_cap->HtCapInfo,
[   40.735769] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   40.743442] ht_cap: ht_cap->HtCapParm,
[   40.747277] mdpu_density=0, ampdu_factor=3
[   40.751480] wdev_attr_update(): wdevId7 = 5a:41:b9:1f:1e:f4
[   40.757386] Caller: SetCommonHT+0x100/0x170
[   40.761602]
[   40.761602] phy_mode=177, ch=40, wdev_type=2
[   40.767346] ht_cap: ht_cap->HtCapInfo,
[   40.771198] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[   40.778849] ht_cap: ht_cap->HtCapParm,
[   40.782696] mdpu_density=0, ampdu_factor=3
[   40.786871] MSTA interface up for apcli1 func_idx=1 OmacIdx=1
[   40.792790] IPv6: ADDRCONF(NETDEV_UP): apclix0: link is not ready
[   42.529841] UpdateBeaconHandler, wdev(1) bss not ready (state:0, caller:MlmePeriodicExec+0x214/0xa8c)!!
[   42.539266] UpdateBeaconHandler, wdev(2) bss not ready (state:0, caller:MlmePeriodicExec+0x214/0xa8c)!!
[   42.548691] Mlme count 0 start beacon
[   48.989780] br-lan: port 2(ra0) entered forwarding state
[   52.109776] br-lan: port 3(rax0) entered forwarding state

M24eG メモ

  • OS, configが入るファイルシステム用として確保されている領域は 0x100000 - 0x1DFFFFF?(Flash総容量: 32 MiB (0x2000000))
  • stockではファイルシステムが 0xA30000 を始点としているが、U-Bootからファイルシステムを作り直した場合 0x100000 を始点として配置される?
    ファイルシステムを作り直した後Panasonicが公開しているアップデート用ファームウェアを投入した場合(始点が 0x100000? へ移動)、一応は問題無く動作している(ように見える)
  • RTL8382MではSPI-NOR Flashが 0xB4000000 にマッピングされる模様(物理アドレス: 0x14000000
    他のRTL83xx SoCでも同様かもしれない
  • フロントのLEDモード切替ボタンとステータスLED等を主に担当するPCA9539PWにおいて、IO0_3 はSoCのRESETラインである模様

M24eG PN28240K GPIOメモ

Kernel		SoC			CHIP
------		------		------
GPIO 20		GPIO 12?	PCA9545-18 (SCL)
GPIO 21		GPIO 13?	PCA9545-19 (SDA)

GPIO 24		GPIO 0		PCA9555-22, PCA9539-22 (SCL)
GPIO 25		GPIO 1		PCA9555-23, PCA9539-23 (SDA)
GPIO 26		GPIO 2		PCA9545-17 (INT)
GPIO 27		GPIO 3		?

Switch-M24eG PN28240K

I-O DATA BSH-G24MBと同様に、Realtek SoC搭載スイッチを探していたところ偶然見つけたもの。
調べたところM*eGにはハードウェアが旧/現行で2種類あり、PNから始まる品番の末尾にアルファベットが付き、フロントが黒に塗装されている現行ハードはRealtek SoC搭載機の模様。なお、末尾アルファベット無しでフロント緑塗装の旧ハードはBroadcom SoC搭載機である模様。
ヤフオクで現行ハードにもかかわらず安価な出品があって非常に気になり、月次予算的に若干悩んだがヤフオクのクーポンが偶然来ていたことから思い切って落札してしまった。スタート価格から¥600上昇。8ポートのPN28080Kも同時期に出品があり、そちらとも迷ったがポート数が多いこちらを落札した。

フロントに出ているRJ-45のコンソールポートはSoCのプライマリのUART(RS-232Cの電圧レベルへ変換済)。

U-Boot

help

RTL838x# # help
?         - alias for 'help'
alphachk  - check image header and verify imgae in RAM [srcaddr] [imagetype]
base      - print or set address offset
boardid   - boardid  - Get/Set board model id

boota     - boota  - boot application image from one of dual images partition automatically

bootelf   - Boot from an ELF image in memory
bootm     - boot application image from memory
bootp     - boot image via network using BOOTP/TFTP protocol
bootvx    - Boot vxWorks from an ELF image
cmp       - memory compare
cp        - memory copy
crc32     - checksum calculation
env       - environment handling commands
erase     - erase FLASH memory
ffsfmt    - ffs format
ffsls     - ffs ls
ffsmount  - mount ffs
ffsrdm    - read file to memory from ffs
ffsrm     - FFS rm
ffsumount - unmount ffs
ffswrm    - write file from memory to ffs
flinfo    - print FLASH memory information
go        - start application at address 'addr'
help      - print command description/usage
iminfo    - print header information for application image
loadb     - load binary file over serial line (kermit mode)
loady     - load binary file over serial line (ymodem mode)
loop      - infinite loop on address range
md        - memory display
mm        - memory modify (auto-incrementing address)
mtest     - simple RAM read/write test
mw        - memory write (fill)
nm        - memory modify (constant address)
ping      - send ICMP ECHO_REQUEST to network host
printenv  - print environment variables
printsys  - printsys - print system information variables

protect   - enable or disable FLASH write protection
reset     - Perform RESET of the CPU
rtk       - rtk     - Realtek commands

run       - run commands in an environment variable
saveenv   - save environment variables to persistent storage
savesys   - savesys - save system information variables to persistent storage

setenv    - set environment variables
setsys    - setsys  - set system information variables

sf        - SPI flash sub-system
showsub   - show u-boot sub version
sleep     - delay execution for some time
tftpboot  - boot image via network using TFTP protocol
updatert  - update runtime firmware
updateub  - update u-boot firmware
version   - print monitor, compiler and linker version

version

RTL838x# # version

U-Boot 2011.12.pre45842-1.00.22-svn5720 (Mar 12 2015 - 19:04:09)
mips-linux-uclibc-gcc (GCC) 3.4.4 mipssde-6.03.00-20051020
GNU ld version 2.15.94 mipssde-6.03.00-20051020

printenv

RTL838x# # printenv
baudrate=9600
boardmodel=RTL8382M_8218B_INTPHY_8218FB_DEMO
bootcmd=bootm 0x81000000
bootdelay=3
diagmode=4
ethact=rtl8380#0
ethaddr=00:50:40:**:**:74
file_linux=vmlinux.bix
file_linux2=vmlinux.bix
file_uboot=u-boot.bin
fileaddr=81000000
filesize=2C1914
flashoffset_env=0x80000
flashoffset_linux=0x5a0000
flashoffset_linux2=0xc50000
flashoffset_uboot=0x0
freemem=0x81000000
ipaddr=192.168.1.1
load_addr=0xb4100000
nuke_env=sf probe 0; sf erase $(flashoffset_env) +$(ssize_env)
rtkon=rtk network on;ping $(serverip)
serverip=192.168.1.111
ssize_env=0x10000
ssize_linux=0x6b0000
ssize_linux2=0x6b0000
ssize_uboot=0x80000
stderr=serial
stdin=serial
stdout=serial
up_linux=sf probe 0;sf read $(freemem) $(flashoffset_linux) $(ssize_linux);bootm $(freemem)
update_linux=tftp $(freemem) $(file_linux);sf probe 0;sf erase $(flashoffset_linux) $(ssize_linux);sf write $(fileaddr) $(flashoffset_linux) $(ssize_linux)
update_linux2=tftp $(freemem) $(file_linux2);sf probe 0;sf erase $(flashoffset_linux2) $(ssize_linux2);sf write $(fileaddr) $(flashoffset_linux2) $(ssize_linux2)
update_uboot=tftp $(freemem) $(file_uboot);sf probe 0;sf erase $(flashoffset_uboot) $(ssize_uboot);sf write $(fileaddr) $(flashoffset_uboot) $(ssize_uboot)

Environment size: 1292/65532 bytes

printsys

RTL838x# # printsys
bootpartition=1
System information size: 16/4096 bytes

help rtk

RTL838x# # help rtk
rtk - rtk     - Realtek commands

Usage:
rtk object action
- SOC commands.
rtk network on
- Enable the networking function
rtk netowkr off
- Disable the networking function
rtk testmode [mode] [port]
- Set default value for specific testing
rtk ext-pinGet [pinNum]
- get external 8231 GPIO pin status
rtk ext-pinSet [pinNum] [status]
- set external 8231 GPIO pin status
rtk smi list
- list all smi group
rtk smi init [group_id] [sck_pin] [sda_pin] [8/16/8_0R/16_1R/16_0R access type] [chipid] [delay] [name]
- create a smi group and init
rtk smi read [group_id] [reg]
rtk smi write [group_id] [reg] [data]
rtk pinGet [pinNum]
- get internal GPIO pin status
rtk pinSet [pinNum] [status]
- set internal GPIO pin status
rtk poe probe
- probe poe device
rtk ledtest [port] [led_index]
- led test
rtk loopback ext [port-start] [port-end] [round]
- port traffic external loopback test
rtk loopback int [port-start] [port-end] [round]
- port traffic internal loopback test

rtk smi list

RTL838x# # rtk smi list

Index SCK_DEV SCK_PIN SDA_DEV SDA_PIN  TYPE     ID   Delay     Name
===========================================================================
00      00      00      00      01  16_1R    75   04000  PCA9539
01      00      12      00      13   8_0R    70   04000  PCA9545
02      00      00      00      01  16_1R    20   04000  PCA9555
03      00      12      00      13   8_0R    50   04000  GBIC-A0H
04      00      12      00      13   8_0R    51   04000  GBIC-A2H

rtk pinGet 0-32

RTL838x# # rtk pinGet 0
pin0:   1

RTL838x# # rtk pinGet 1
pin1:   1

RTL838x# # rtk pinGet 2
pin2:   1

RTL838x# # rtk pinGet 3
pin3:   1

RTL838x# # rtk pinGet 4
pin4:   0

RTL838x# # rtk pinGet 5
pin5:   0

RTL838x# # rtk pinGet 6
pin6:   0

RTL838x# # rtk pinGet 7
pin7:   0

RTL838x# # rtk pinGet 8
pin8:   0

RTL838x# # rtk pinGet 9
pin9:   0

RTL838x# # rtk pinGet 10
pin10:  0

RTL838x# # rtk pinGet 11
pin11:  1

RTL838x# # rtk pinGet 12
pin12:  1

RTL838x# # rtk pinGet 13
pin13:  1

RTL838x# # rtk pinGet 14
pin14:  0

RTL838x# # rtk pinGet 15
pin15:  0

RTL838x# # rtk pinGet 16
pin16:  0

RTL838x# # rtk pinGet 17
pin17:  0

RTL838x# # rtk pinGet 18
pin18:  0

RTL838x# # rtk pinGet 19
pin19:  0

RTL838x# # rtk pinGet 20
pin20:  0

RTL838x# # rtk pinGet 21
pin21:  0

RTL838x# # rtk pinGet 22
pin22:  0

RTL838x# # rtk pinGet 23
pin23:  0

RTL838x# # rtk pinGet 24
pin24:  0

RTL838x# # rtk pinGet 25
pin25:  0

RTL838x# # rtk pinGet 26
pin26:  0

RTL838x# # rtk pinGet 27
pin27:  0

RTL838x# # rtk pinGet 28
pin28:  0

RTL838x# # rtk pinGet 29
pin29:  0

RTL838x# # rtk pinGet 30
pin30:  0

RTL838x# # rtk pinGet 31
pin31:  0

RTL838x# # rtk pinGet 32
pin32:  0

rtk ext-pinGet 0

RTL838x# # rtk ext-pinGet 0
ext-gpio time out
ext-gpio time out
ext-gpio time out
ext-gpio time out
ext-gpio time out
pin0:   0

tftpboot

RTL838x# # tftpboot
*** Warning: no boot file name; using '0101A8C0.img'
Using rtl8380#0 device
TFTP from server 192.168.1.111; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0xb4100000
Loading: *

ffsmount, ffsls

RTL838x# # ffsmount c:/
File system initialization done
RTL838x# # ffsls c:/
-rw- 3299636  runtime.had
-rw- 2        runtime_checksum
-rw- 3299636  runtime_2.had
-rw- 2        runtime_2_checksum
-rw- 1460     config.cfg
-rw- 2        config.cks
-rw- 1460     config_2.cfg
-rw- 2        config_2.cks

Kernel

KernelはLinuxではなくVxWorks。Flash内にファイルシステムが形成されており、その中にKernelイメージが配置されている。
ヤフオクで落札した個体はパスワードがデフォルトのものから変更されたまま戻されておらず、現状ログイン不可。

bootlog


U-Boot 2011.12.pre45842-1.00.22-svn5720 (Mar 12 2015 - 19:04:09)

Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHz
DRAM:  128 MB
SPI-F: 1x32 MB
Loading 65536B env. variables from offset 0x80000
#### Periphery Devices Init Successfully ####
Switch Model: RTL8382M_8218B_INTPHY_8218FB (Port Count: 24)
Switch Chip: RTL8382M
**************************************************
#### RTL8218B config - MAC ID = 0 ####
Now External 8218B
**************************************************
#### RTL8218B config - MAC ID = 8 ####
Now Internal PHY
///////////////////////////////////////////////////////////
Now External 8218FB

File system initialization done
Start to check runtime code(1)

## Booting kernel from Legacy Image
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Starting program

UART init . ................................................  100 %
Starting runtime image ....................................      |100 %

Configuration init ........................................      |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|100 %

[2J[0m[2J[1;1H ==============================================================================
PN28240K Local Management System Version 2.0.0.01
MAC Address: 00:50:40:**:**:74

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

Login Menu

Login:

WRC-X3200GST3

WSR-3200AX4Sに続き、3つ目のMT7622機。
機種発表の直後くらいに総務省の技適DBからMT7622搭載機であることを把握しており、今回某氏よりご提供頂きました。感謝。
ざっと見た限りでは特殊な個所も無さそうで、factoryも作れそうな雰囲気。
サポートのため弄っていくのでメモ。

Switch

zone WAN LAN
port
(WRC-X3200GST3)
INTERNET LAN4 LAN3 LAN2 LAN1
port
(MT7531)
port0 port1 port2 port3 port4

MAC

  • LAN: 04:AB:18:xx:xx:77 (Factory, 0x7FFF4 (hex))
  • WAN: 04:AB:18:xx:xx:78 (Factory, 0x7FFFA (hex))
  • 2.4G: 04:AB:18:xx:xx:79 (Factory, 0x4 (hex))
  • 5G: 04:AB:18:xx:xx:7A (none)

U-Boot

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

  • help
    MT7622> help
    ?       - alias for 'help'
    backup_message- print backup message.
    backup_mode- Enter backup mode
    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.
    detect_button- detect button
    dialog  - echo args to console, and get yes or no response from user
    download_setting- set download image file name , and device IP , server IP before upgrade
    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
    http_upgrade- http_upgrade
    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   - Mediatek 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   - Mediatek 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
    switch_rxcal- Re-cal PHY Rx DC offset of mt7531 switch !!
    switch_txcal- Re-cal PHY Tx offset of mt7531 switch !!
    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.
    uip     - uip   - uip command
    
    version - print monitor, compiler and linker version
    

  • version
    MT7622> version
    
    U-Boot 2014.04-rc1-g0ae1633-dirty (Jul 02 2020 - 14:11:39)
    arm-linux-gcc (Buildroot 2014.11) 4.9.2
    GNU ld (GNU Binutils) 2.24
    

  • printenv
    MT7622> printenv
    W_R_mode=NULL
    admin_password=********
    arch=arm
    atf_filename=trustzone.bin
    baudrate=115200
    board=mt7622_evb
    board_id=602111601752
    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=if dialog "WARNING, this operation will flash all partitions (preloader + atf + uboot + linux)";then download_setting flashimage;tftpboot ${loadaddr} ${flashimage_filename};run wr_flashimage;invaild_env;else echo "operation aborted by user";fi;
    boot2=run boot_rd_img;bootm
    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} 0x2C0000 2000;image_blks 2048;nand read ${loadaddr} 0x2C0000 ${img_align_size}
    boot_wr_img=filesize_check 0x2000000;if test ${filesize_result} = good; then image_blks 131072;nand erase.spread 0x2C0000  ${filesize} ${loadaddr};image_blks 2048;nand write ${loadaddr} 0x2C0000 ${filesize};fi
    bootcmd=No
    bootdelay=5
    bootfile=iverson_uImage
    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_10=b. System Load SingleImage then write to Flash via TFTP.=run boot10
    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_4=5. System Load U-Boot then write to Flash via Serial.=run boot4
    bootmenu_5=6. System Load ATF then write to Flash via TFTP.=run boot5
    bootmenu_6=7. System Load Preloader then write to Flash via TFTP.=run boot6
    bootmenu_7=8. System Load ROM header then write to Flash via TFTP.=run boot7
    bootmenu_8=9. System Load CTP then write to Flash via TFTP.=run boot8
    bootmenu_9=a. System Load CTP then Boot to CTP (via Flash).=run boot9
    bootmenu_delay=30
    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
    hw_version=A1
    invaild_env=no
    ipaddr=192.168.2.1
    kernel_filename=1019_g01.bin
    load_image=kernel
    loadaddr=0x4007FF28
    model_id=WRC-X3200GST3
    preloader_filename=preloader_fpga7622_64_ldvt.bin
    serverip=192.168.2.2
    soc=mt7622
    stderr=serial
    stdin=serial
    stdout=serial
    uboot_filename=u-boot-mtk.bin
    vendor=mediatek
    wlan0_domain=0x41
    wlan0_guest_key=********
    wlan0_guest_ssid=e-tomo-****77
    wlan0_key=**********
    wlan0_ssid=elecom-****77
    wlan1_key=**********
    wlan1_ssid=elecom-****77
    wps_pin=********
    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: 4105/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
    

  • bdinfo
    MT7622> bdinfo
    arch_number = 0x00001DC6
    boot_params = 0x40000100
    DRAM bank   = 0x00000000
    -> start    = 0x40000000
    -> size     = 0x1F000000
    eth0name    = mtk_eth
    ethaddr     = 00:0C:E7:11:22:33
    current eth = mtk_eth
    ip_addr     = 192.168.2.1
    baudrate    = 115200 bps
    TLB addr    = 0x5EFF0000
    relocaddr   = 0x5EF52000
    reloc off   = 0x1D152000
    irq_sp      = 0x5CF50F40
    sp start    = 0x5CF50F30
    

  • tftpboot
    MT7622> tftpboot
    ETH already turn on and power on flow will be skipped...
    
    Waitting for RX_DMA_BUSY status Start... done
    
    mt7531: mt7531_sw_init
    mt7531: mt7531_core_pll_setup, hwstrap = 000000ff, xtal=25MHz
    mt7531: mt7531_mac_port_setup, port = 6
    mt7531: mt7531_set_port_sgmii_force_mode, port = 6
    mt7531: timeout waiting for SGMII_LINK
    mt7531: mt7531_mac_port_setup, PMCR6 = f805633b
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>> START CALIBRATION:
    -------- gephy-calbration (port:0) --------
    CALDLY = 40
    0x1e-e0 = 2828
    0x1f-115 = 5
    GE Rext AnaCal Done! (8)(0x28)
    GE R50 AnaCal Done! (10) (0x32)(0xb2)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE R50 AnaCal Done! (10) (0x32)(0xb2)
    GE 1e_174(0xb2b4), 1e_175(0xb4b2)
    GE Tx offset AnaCal Done! (pair-0)(2)(0x21) 0x1e_172=0x2120
    GE Tx offset AnaCal Done! (pair-1)(5)(0x5) 0x1e_172=0x2105
    GE Tx offset AnaCal Done! (pair-2)(3)(0x22) 0x1e_173=0x2220
    GE Tx offset AnaCal Done! (pair-3)(3)(0x22) 0x1e_173=0x2222
    GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x681a)
    GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x2020)
    GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1d25)
    GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1a22)
    PORT 0 RX_DC_OFFSET
    before pairA output = f
    after pairA output = 0
    before pairB output = f
    after pairB output = fe
    before pairC output = f
    after pairC output = 0
    before pairD output = d
    after pairD output = 1
    -------- gephy-calbration (port:1) --------
    CALDLY = 40
    GE R50 AnaCal Done! (11) (0x31)(0xb1)
    GE R50 AnaCal Done! (10) (0x32)(0xb2)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE R50 AnaCal Done! (10) (0x32)(0xb2)
    GE 1e_174(0xb1b2), 1e_175(0xb4b2)
    GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
    GE Tx offset AnaCal Done! (pair-1)(1)(0x1) 0x1e_172=0x2201
    GE Tx offset AnaCal Done! (pair-2)(7)(0x26) 0x1e_173=0x2620
    GE Tx offset AnaCal Done! (pair-3)(2)(0x2) 0x1e_173=0x2602
    GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x6c1b)
    GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x2121)
    GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1820)
    GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1a22)
    PORT 1 RX_DC_OFFSET
    before pairA output = f
    after pairA output = 1
    before pairB output = 1e
    after pairB output = 0
    before pairC output = e
    after pairC output = fe
    before pairD output = e
    after pairD output = 0
    -------- gephy-calbration (port:2) --------
    CALDLY = 40
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE 1e_174(0xb4b4), 1e_175(0xb4b4)
    GE Tx offset AnaCal Done! (pair-0)(4)(0x23) 0x1e_172=0x2320
    GE Tx offset AnaCal Done! (pair-1)(8)(0x27) 0x1e_172=0x2327
    GE Tx offset AnaCal Done! (pair-2)(3)(0x22) 0x1e_173=0x2220
    GE Tx offset AnaCal Done! (pair-3)(5)(0x24) 0x1e_173=0x2224
    GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x5c17)
    GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1d1d)
    GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x131b)
    GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1c24)
    PORT 2 RX_DC_OFFSET
    before pairA output = e
    after pairA output = 1
    before pairB output = f
    after pairB output = ff
    before pairC output = e
    after pairC output = ff
    before pairD output = 1e
    after pairD output = 0
    -------- gephy-calbration (port:3) --------
    CALDLY = 40
    GE R50 AnaCal Done! (10) (0x32)(0xb2)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE R50 AnaCal Done! (9) (0x34)(0xb4)
    GE 1e_174(0xb2b4), 1e_175(0xb4b4)
    GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
    GE Tx offset AnaCal Done! (pair-1)(2)(0x21) 0x1e_172=0x2221
    GE Tx offset AnaCal Done! (pair-2)(2)(0x2) 0x1e_173=0x220
    GE Tx offset AnaCal Done! (pair-3)(5)(0x24) 0x1e_173=0x224
    GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x4010)
    GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1717)
    GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x161e)
    GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1a22)
    PORT 3 RX_DC_OFFSET
    before pairA output = 1e
    after pairA output = ff
    before pairB output = f
    after pairB output = ff
    before pairC output = 1c
    after pairC output = ff
    before pairD output = f
    after pairD output = 0
    -------- gephy-calbration (port:4) --------
    CALDLY = 40
    GE R50 AnaCal Done! (6) (0x40)(0xc0)
    GE R50 AnaCal Done! (6) (0x40)(0xc0)
    GE R50 AnaCal Done! (6) (0x40)(0xc0)
    GE R50 AnaCal Done! (7) (0x37)(0xb7)
    GE 1e_174(0xc0c0), 1e_175(0xc0b7)
    GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
    GE Tx offset AnaCal Done! (pair-1)(4)(0x23) 0x1e_172=0x2223
    GE Tx offset AnaCal Done! (pair-2)(6)(0x25) 0x1e_173=0x2520
    GE Tx offset AnaCal Done! (pair-3)(4)(0x23) 0x1e_173=0x2523
    GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x4812)
    GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1010)
    GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x121a)
    GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x121a)
    PORT 4 RX_DC_OFFSET
    before pairA output = e
    after pairA output = 1
    before pairB output = e
    after pairB output = 1
    before pairC output = e
    after pairC output = ff
    before pairD output = 1e
    after pairD output = 1
    0x1b000014 = 0x00110214
    Using mtk_eth device
    TFTP from server 192.168.2.2; our IP address is 192.168.2.1
    Filename 'iverson_uImage'.
    Load address: 0x4007ff28
    Loading: *
    

Kernel

コンソールにパスワードが掛けられている為ログイン不可
failsafeも削除されている模様

  • bootlog
    
    F0: 102B 0000
    F6: 0000 0000
    V0: 0000 0000 [0001]
    00: 0000 0000
    BP: 0000 0041 [0000]
    G0: 0190 0000
    T0: 0000 0369 [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.8, (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: 20200518-110732
    ==== 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]start_addr[0x40000000]=0x12345678, test_addr[0x48000000]= 0xEDCBA987
    [EMI]start_addr[0x40000000]=0x12345678, test_addr[0x50000000]= 0xEDCBA987
    [EMI]start_addr[0x40000000]=0xEDCBA987, test_addr[0x60000000]= 0xEDCBA987
    [EMI]rank0 size: 0x20000000
    [MEM] complex R/W mem test pass
    RAM_CONSOLE wdt status (0x0)=0x0
    [BBT] BMT.v2 is found at 0x3FF
    [PLFM] Init Boot Device: OK(0)
    
    NAND read: device 0 offset 0x2c0000, size 0x2000
    8192 bytes read: OK
    [do_read_image_blks] This is a FIT image,img_size = 0x283974
    [do_read_image_blks] img_blks = 0x508
    [do_read_image_blks] img_align_size = 0x284000
    
    NAND read: device 0 offset 0x2c0000, size 0x284000
    2637824 bytes read: OK
    bootm flag=0, states=70f
    ## Loading kernel from FIT Image at 4007ff28 ...
    Using 'config@1' configuration
    Trying 'kernel@1' kernel subimage
    Description:  ARM64 OpenWrt Linux-4.4.198
    Type:         Kernel Image
    Compression:  lzma compressed
    Data Start:   0x40080010
    Data Size:    2606535 Bytes = 2.5 MiB
    Architecture: AArch64
    OS:           Linux
    Load Address: 0x41080000
    Entry Point:  0x41080000
    Hash algo:    crc32
    Hash value:   bc27cf14
    Hash algo:    sha1
    Hash value:   600157de1c764a08723a8bd3235be2ce3a4e50eb
    Verifying Hash Integrity ... crc32+ sha1+ OK
    ## Loading fdt from FIT Image at 4007ff28 ...
    Using 'config@1' configuration
    Trying 'fdt@1' fdt subimage
    Description:  ARM64 OpenWrt MTK-AX3200-MT7531 device tree blob
    Type:         Flat Device Tree
    Compression:  uncompressed
    Data Start:   0x402fc71c
    Data Size:    28248 Bytes = 27.6 KiB
    Architecture: AArch64
    Hash algo:    crc32
    Hash value:   f922ef34
    Hash algo:    sha1
    Hash value:   b2a3095ec197bec41e11c083a7c5e3a66e1b357a
    Verifying Hash Integrity ... crc32+ sha1+ OK
    Booting using the fdt blob at 0x402fc71c
    Uncompressing Kernel Image ... OK
    Loading Device Tree to 5cf45000, end 5cf4ee57 ... OK
    
    Starting kernel ...
    
    [ATF][     7.421554]save kernel info
    [ATF][     7.424490]Kernel_EL2
    [ATF][     7.427161]Kernel is 64Bit
    [ATF][     7.430249]pc=0x41080000, r0=0x5cf45000, 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][     7.447947]el3_exit
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.4.198 (dbshadow@dbshadow-VirtualBox) (gcc version 5.4.0 (LEDE GCC 5.4.0 unknown) ) #0 SMP PREEMPT Mon Dec 28 13:05:43 UTC 2020
    [    0.000000] Boot CPU: AArch64 Processor [410fd034]
    [    0.000000] On node 0 totalpages: 131024
    [    0.000000]   DMA zone: 2048 pages used for memmap
    [    0.000000]   DMA zone: 0 pages reserved
    [    0.000000]   DMA zone: 131024 pages, LIFO batch:31
    [    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 18 pages/cpu @ffffffc01ffaa000 s35328 r8192 d30208 u73728
    [    0.000000] pcpu-alloc: s35328 r8192 d30208 u73728 alloc=18*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: 128976
    [    0.000000] Kernel command line: console=ttyS0,115200n1 loglevel=8 swiotlb=512                               rootfstype=squashfs
    [    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
    [    0.000000] software IO TLB: mapped [mem 0x5fcf4000-0x5fdf4000] (1MB)
    [    0.000000] Memory: 497412K/524096K available (5104K kernel code, 402K rwdata, 1816K rodata, 324K init, 391K bss, 26684K 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 : 0xffffff8008746000 - 0xffffff8008797000   (   324 KB)
    [    0.000000]       .text : 0xffffff8008080000 - 0xffffff800857d000   (  5108 KB)
    [    0.000000]     .rodata : 0xffffff800857d000 - 0xffffff8008746000   (  1828 KB)
    [    0.000000]       .data : 0xffffff8008797000 - 0xffffff80087fbaa0   (   403 KB)
    [    0.000000]     vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000   (     8 GB maximum)
    [    0.000000]               0xffffffbdc0000000 - 0xffffffbdc0800000   (     8 MB actual)
    [    0.000000]     fixed   : 0xffffffbffe7fb000 - 0xffffffbffec00000   (  4116 KB)
    [    0.000000]     PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
    [    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc020000000   (   512 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.000058] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126102035 ns
    [    0.000227] Console: colour dummy device 80x25
    [    0.000243] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
    [    0.000250] pid_max: default: 32768 minimum: 301
    [    0.000299] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
    [    0.000305] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
    [    0.000796] sched-energy: CPU device node has no sched-energy-costs
    [    0.000802] Invalid sched_group_energy for CPU0
    [    0.000806] CPU0: update cpu_capacity 1024
    [    0.000835] ASID allocator initialised with 32768 entries
    [    0.032097] Detected VIPT I-cache on CPU1
    [    0.032126] Invalid sched_group_energy for CPU1
    [    0.032128] CPU1: update cpu_capacity 1024
    [    0.032130] CPU1: Booted secondary processor [410fd034]
    [    0.032164] Brought up 2 CPUs
    [    0.032176] SMP: Total of 2 processors activated.
    [    0.032182] CPU features: detected feature: 32-bit EL0 Support
    [    0.032188] CPU: All CPU(s) started at EL2
    [    0.032200] alternatives: patching kernel code
    [    0.032274] Invalid sched_group_energy for CPU1
    [    0.032279] Invalid sched_group_energy for Cluster1
    [    0.032282] Invalid sched_group_energy for CPU0
    [    0.032286] Invalid sched_group_energy for Cluster0
    [    0.036346] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.036364] futex hash table entries: 512 (order: 4, 65536 bytes)
    [    0.036470] pinctrl core: initialized pinctrl subsystem
    [    0.036965] NET: Registered protocol family 16
    [    0.037372] [SPM] spm_base = ffffff8008026000
    [    0.037376] [SPM] spm_irq_0 = 6, spm_irq_1 = 7
    [    0.037380] [SPM] spm_irq_2 = 8, spm_irq_3 = 9
    [    0.037383] [SPM] set spm as wakeup devcie.
    [    0.037387] [SPM] spm_rtc cnt: 24414.
    [    0.052059] cpuidle: using governor menu
    [    0.052112] vdso: 2 pages (1 code @ ffffff8008583000, 1 data @ ffffff800879c000)
    [    0.052267] DMA: preallocated 256 KiB pool for atomic allocations
    [    0.052365] Serial: AMBA PL011 UART driver
    [    0.052420] [SPM] PWAKE_EN:1, PCMWDT_EN:0, BYPASS_SYSPWREQ:0, I2C_CHANNEL:2
    [    0.052424] [SLP] SLEEP_DPIDLE_EN:1, REPLACE_DEF_WAKESRC:0, SUSPEND_LOG_EN:1
    [    0.077785] vgaarb: loaded
    [    0.078031] SCSI subsystem initialized
    [    0.079768] rbus 18000000.wbsys: PCI host bridge to bus 0000:00
    [    0.079780] pci_bus 0000:00: root bus resource [mem 0x18000000-0x180fffff]
    [    0.079787] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    0.079806] pci 0000:00:00.0: [14c3:7622] type 00 class 0x000280
    [    0.079822] pci 0000:00:00.0: reg 0x10: [mem 0x18000000-0x1800000f 64bit]
    [    0.079829] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0000000f]
    [    0.079835] pci 0000:00:00.0: reg 0x1c: [mem 0x00000000-0x0000000f]
    [    0.079841] pci 0000:00:00.0: reg 0x20: [mem 0x00000000-0x0000000f]
    [    0.079847] pci 0000:00:00.0: reg 0x24: [mem 0x00000000-0x0000000f]
    [    0.079877] pci 0000:00:00.0: of_irq_parse_pci() failed with rc=-22
    [    0.080296] clocksource: Switched to clocksource arch_sys_counter
    [    0.086843] NET: Registered protocol family 2
    [    0.087219] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.087253] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
    [    0.087312] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.087356] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.087369] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.087472] NET: Registered protocol family 1
    [    0.087625] RPC: Registered named UNIX socket transport module.
    [    0.087630] RPC: Registered udp transport module.
    [    0.087633] RPC: Registered tcp transport module.
    [    0.087636] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.087658] PCI: CLS 0 bytes, default 128
    [    0.095854] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.096469] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.096960] fuse init (API version 7.23)
    [    0.097612] io scheduler noop registered
    [    0.097798] io scheduler cfq registered (default)
    [    0.126341] mtk-pcie 1a143000.pcie: pcie rc 0 linkup success
    [    0.126490] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0001:00
    [    0.126501] pci_bus 0001:00: root bus resource [??? 0x00000000 flags 0x0]
    [    0.126507] pci_bus 0001:00: root bus resource [mem 0x20000000-0x27ffffff]
    [    0.126514] pci_bus 0001:00: root bus resource [bus 00-ff]
    [    0.126550] pci 0001:00:00.0: [14c3:5396] type 01 class 0x060400
    [    0.126603] pci 0001:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
    [    0.126724] pci 0001:00:00.0: of_irq_parse_pci() failed with rc=-22
    [    0.126849] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.127069] pci 0001:01:00.0: [14c3:7915] type 00 class 0x000280
    [    0.127374] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
    [    0.127487] pci 0001:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
    [    0.127600] pci 0001:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
    [    0.128113] pci 0001:01:00.0: supports D1 D2
    [    0.128119] pci 0001:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
    [    0.136374] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
    [    0.136413] pci 0001:00:00.0: BAR 0: no space for [mem size 0xffffffff 64bit pref]
    [    0.136420] pci 0001:00:00.0: BAR 0: failed to assign [mem size 0xffffffff 64bit pref]
    [    0.136426] pci 0001:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
    [    0.136435] pci 0001:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit pref]
    [    0.136526] pci 0001:01:00.0: BAR 2: assigned [mem 0x20100000-0x20103fff 64bit pref]
    [    0.136616] pci 0001:01:00.0: BAR 4: assigned [mem 0x20104000-0x20104fff 64bit pref]
    [    0.136706] pci 0001:00:00.0: PCI bridge to [bus 01]
    [    0.136717] pci 0001:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
    [    0.136775] pcieport 0001:00:00.0: of_irq_parse_pci() failed with rc=-22
    [    0.136790] pcieport 0001:00:00.0: enabling device (0000 -> 0002)
    [    0.136968] pcieport 0001:00:00.0: Signaling PME through PCIe PME interrupt
    [    0.136974] pci 0001:01:00.0: Signaling PME through PCIe PME interrupt
    [    0.136983] pcie_pme 0001:00:00.0:pcie01: service driver pcie_pme loaded
    [    0.237854] mtk-pcie 1a145000.pcie: Port1 link down
    [    0.238022] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0002:00
    [    0.238029] pci_bus 0002:00: root bus resource [??? 0x00000000 flags 0x0]
    [    0.238035] pci_bus 0002:00: root bus resource [mem 0x28000000-0x2fffffff]
    [    0.238041] pci_bus 0002:00: root bus resource [bus 00-ff]
    [    0.242027] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [    0.243093] console [ttyS0] disabled
    [    0.263328] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 232, base_baud = 1562500) is a ST16650V2
    [    1.155059] console [ttyS0] enabled
    [    1.159278] Unable to detect cache hierarchy for CPU 0
    [    1.167444] loop: module loaded
    [    1.171077] dump_power_table[0] = { .cpufreq_khz = 1350000,  .cpufreq_ncpu = 2,      .cpufreq_power = 995 }
    [    1.180301] dump_power_table[1] = { .cpufreq_khz = 1262500,  .cpufreq_ncpu = 2,      .cpufreq_power = 811 }
    [    1.189520] dump_power_table[2] = { .cpufreq_khz = 1137500,  .cpufreq_ncpu = 2,      .cpufreq_power = 736 }
    [    1.198759] dump_power_table[3] = { .cpufreq_khz = 1025000,  .cpufreq_ncpu = 2,      .cpufreq_power = 624 }
    [    1.207977] dump_power_table[4] = { .cpufreq_khz = 1350000,  .cpufreq_ncpu = 1,      .cpufreq_power = 517 }
    [    1.217192] dump_power_table[5] = { .cpufreq_khz = 812500,   .cpufreq_ncpu = 2,      .cpufreq_power = 492 }
    [    1.226321] dump_power_table[6] = { .cpufreq_khz = 1262500,  .cpufreq_ncpu = 1,      .cpufreq_power = 377 }
    [    1.235537] dump_power_table[7] = { .cpufreq_khz = 600000,   .cpufreq_ncpu = 2,      .cpufreq_power = 376 }
    [    1.244667] dump_power_table[8] = { .cpufreq_khz = 1137500,  .cpufreq_ncpu = 1,      .cpufreq_power = 333 }
    [    1.253881] dump_power_table[9] = { .cpufreq_khz = 437500,   .cpufreq_ncpu = 2,      .cpufreq_power = 295 }
    [    1.263011] dump_power_table[10] = { .cpufreq_khz = 1025000, .cpufreq_ncpu = 1,      .cpufreq_power = 258 }
    [    1.272316] dump_power_table[11] = { .cpufreq_khz = 300000,  .cpufreq_ncpu = 2,      .cpufreq_power = 225 }
    [    1.281531] dump_power_table[12] = { .cpufreq_khz = 812500,  .cpufreq_ncpu = 1,      .cpufreq_power = 204 }
    [    1.290745] dump_power_table[13] = { .cpufreq_khz = 600000,  .cpufreq_ncpu = 1,      .cpufreq_power = 166 }
    [    1.299958] dump_power_table[14] = { .cpufreq_khz = 437500,  .cpufreq_ncpu = 1,      .cpufreq_power = 140 }
    [    1.309173] dump_power_table[15] = { .cpufreq_khz = 300000,  .cpufreq_ncpu = 1,      .cpufreq_power = 119 }
    [    1.319568] [cal] calefuse1  = 0x82f4eb80
    [    1.323502] [cal] calefuse2  = 0x728010
    [    1.327252] [cal] g_adc_ge_t = 0x34e
    [    1.330824] [cal] g_adc_oe_t = 0x20b
    [    1.334398] [cal] g_degc_cali        = 0x2e
    [    1.337969] [cal] g_adc_cali_en_t    = 0x1
    [    1.341803] [cal] g_o_slope  = 0x0
    [    1.345114] [cal] g_o_slope_sign     = 0x0
    [    1.348861] [cal] g_id               = 0x0
    [    1.351818] [cal] g_o_vtsmcu1        = 0x0
    [    1.355302] [cal] g_o_vtsmcu2        = 0x1ca
    [    1.358960] [cal] g_o_vtsmcu3        = 0x0
    [    1.362444] [cal] g_o_vtsmcu4        = 0x0
    [    1.365928] [cal] g_ge               = 0x32f
    [    1.369063] [cal] g_gain             = 0x2a3f
    [    1.372460] [cal] g_x_roomt1 = 0x1f51
    [    1.379035] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=ffffffc003196280
    [    1.387062] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=ffffffc003196580
    [    1.397412] [btmtk_err] btmtk_get_irq: irq_id:239 irq_flags:8
    [    1.414122] Recognize NAND: ID [
    [    1.417193] ef aa
    [    1.419202] 21 [    1.420959] ], [Winbond 1Gb], Page[2048]B, Spare [64]B Total [128]MB
    [    1.427496] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa
    [    1.433850] nand: Winbond NAND 128MiB 1,8V 8-bit
    [    1.438465] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.446033] [NAND]select ecc bit:4, sparesize :64
    [    1.451622] [BBT] BMT.v2 is found at 0x3ff
    [    1.455742] 9 ofpart partitions found on MTD device MTK-SNAND
    [    1.461486] Creating 9 MTD partitions on "MTK-SNAND":
    [    1.466537] 0x000000000000-0x000000080000 : "Preloader"
    [    1.472876] 0x000000080000-0x0000000c0000 : "ATF"
    [    1.478326] 0x0000000c0000-0x000000140000 : "Bootloader"
    [    1.488699] 0x000000140000-0x0000001c0000 : "Config"
    [    1.494693] 0x0000001c0000-0x0000002c0000 : "Factory"
    [    1.501350] 0x0000002c0000-0x000001bc0000 : "firmware"
    [    1.539159] 2 fit-fw partitions found on MTD device firmware
    [    1.544818] 0x0000002c0000-0x000000560000 : "kernel"
    [    1.553261] 0x000000560000-0x000001bc0000 : "rootfs"
    [    1.584286] mtd: device 7 (rootfs) set to be root filesystem
    [    1.589966] 0x000001bc0000-0x0000020c0000 : "tm_pattern"
    [    1.601446] 0x0000020c0000-0x0000021c0000 : "tm_key"
    [    1.608023] 0x0000021c0000-0x0000030c0000 : "rootfs_data"
    [    1.631047] mtk-snand 1100d000.snfi: [mtk_snand] probe successfully!
    [    1.638080] libphy: Fixed MDIO Bus: probed
    [    1.642612] sean debug physpeed = 2500
    [    1.669055] libphy: mdio: probed
    [    1.672309] mtk_soc_eth 1b100000.ethernet: generated random MAC address 5a:3f:9e:62:a8:6f
    [    1.680666] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
    [    1.691341] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffff8008940000, irq 248
    [    1.700498] mtk_soc_eth 1b100000.ethernet: generated random MAC address ea:30:fd:6b:f0:2f
    [    1.708834] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
    [    1.719462] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xffffff8008940000, irq 248
    [    1.728600] netif_napi_add() called with weight 256 on device
    [    1.735628] MTK_WDT_NONRST_REG(20000000)
    [    1.739740] mtk-wdt 10212000.watchdog: register restart_handler on reboot_notifier_list for psci reset
    [    1.749062] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
    [    1.756989] register cpuidle driver!!!!!!!!!!!!!!!!!
    [    1.764491] nf_conntrack version 0.5.0 (3886 buckets, 15544 max)
    [    1.771324] NET: Registered protocol family 10
    [    1.776535] sit: IPv6 over IPv4 tunneling driver
    [    1.781561] NET: Registered protocol family 17
    [    1.786086] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
    [    1.798696] 8021q: 802.1Q VLAN Support v1.8
    [    1.803276] registered taskstats version 1
    [    2.344624] mt753x gsw@0: Switch is MediaTek MT7531BE rev 1
    [    2.354784] mt753x gsw@0: HWSTRAP=0xff XTAL=25MHz
    [    2.630099] random: nonblocking pool is initialized
    [    2.680318] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gdm1_to_gmac1_esw updated = 1
    [    2.689456] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
    [    2.698242] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
    [    2.706679] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 1
    [    2.716588] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
    [    2.725538] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gdm1_to_gmac1_esw updated = 0
    [    2.728352] libphy: mt753x_mdio: probed
    [    2.728354] [LOG]|WIRE| LAN Starting
    [    2.742080] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
    [    2.750870] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
    [    2.759312] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 0
    [    2.769236] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
    [    3.001631] mt753x gsw@0: >>>>>>>>>>>>>>>>>>>>>>>>>>>>> START CALIBRATION:
    [    3.009912] mt753x gsw@0: -------- gephy-calbration (port:0) --------
    [    3.027494] CALDLY = 40
    [    3.098186] 0x1e-e0 = 2828
    [    3.103057] 0x1f-115 = 5
    [    3.105589]   GE Rext AnaCal Done! (8)(0x28)
    [    3.185586]  GE R50 AnaCal Done! (10) (0x32)(0xb2)
    [    3.253980]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    3.322283]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    3.395309]  GE R50 AnaCal Done! (10) (0x32)(0xb2)
    [    3.403702]  GE 1e_174(0xb2b4), 1e_175(0xb4b2)
    [    3.447003]  GE Tx offset AnaCal Done! (pair-0)(2)(0x21) 0x1e_172=0x2120
    [    3.491396]  GE Tx offset AnaCal Done! (pair-1)(5)(0x5) 0x1e_172=0x2105
    [    3.524934]  GE Tx offset AnaCal Done! (pair-2)(3)(0x22) 0x1e_173=0x2220
    [    3.558552]  GE Tx offset AnaCal Done! (pair-3)(3)(0x22) 0x1e_173=0x2222
    [    3.652512]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x681a)
    [    3.743394]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x2020)
    [    3.817982]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1d25)
    [    3.866017]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1a22)
    [    3.920215] PORT 0 RX_DC_OFFSET
    [    3.934632] before pairA output = f
    [    3.940223] after pairA output = ff
    [    3.945729] before pairB output = f
    [    3.951314] after pairB output = fe
    [    3.956822] before pairC output = f
    [    3.962409] after pairC output = 0
    [    3.967831] before pairD output = d
    [    3.973421] after pairD output = 1
    [    3.977126] mt753x gsw@0: -------- gephy-calbration (port:1) --------
    [    3.993938] CALDLY = 40
    [    4.067052]  GE R50 AnaCal Done! (11) (0x31)(0xb1)
    [    4.136704]  GE R50 AnaCal Done! (10) (0x32)(0xb2)
    [    4.200974]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    4.270506]  GE R50 AnaCal Done! (10) (0x32)(0xb2)
    [    4.278907]  GE 1e_174(0xb1b2), 1e_175(0xb4b2)
    [    4.327560]  GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
    [    4.350417]  GE Tx offset AnaCal Done! (pair-1)(1)(0x1) 0x1e_172=0x2201
    [    4.405519]  GE Tx offset AnaCal Done! (pair-2)(7)(0x26) 0x1e_173=0x2620
    [    4.433743]  GE Tx offset AnaCal Done! (pair-3)(2)(0x2) 0x1e_173=0x2602
    [    4.527599]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x6c1b)
    [    4.618478]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x2121)
    [    4.653104]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1820)
    [    4.701148]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1a22)
    [    4.755454] PORT 1 RX_DC_OFFSET
    [    4.769754] before pairA output = f
    [    4.775344] after pairA output = 1
    [    4.780768] before pairB output = 1e
    [    4.786442] after pairB output = 0
    [    4.791864] before pairC output = d
    [    4.797449] after pairC output = 1
    [    4.802865] before pairD output = e
    [    4.808466] after pairD output = 0
    [    4.812164] mt753x gsw@0: -------- gephy-calbration (port:2) --------
    [    4.829002] CALDLY = 40
    [    4.891195]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    4.955330]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    5.019500]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    5.083668]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    5.091964]  GE 1e_174(0xb4b4), 1e_175(0xb4b4)
    [    5.146013]  GE Tx offset AnaCal Done! (pair-0)(4)(0x23) 0x1e_172=0x2320
    [    5.206539]  GE Tx offset AnaCal Done! (pair-1)(8)(0x27) 0x1e_172=0x2327
    [    5.240142]  GE Tx offset AnaCal Done! (pair-2)(3)(0x22) 0x1e_173=0x2220
    [    5.279163]  GE Tx offset AnaCal Done! (pair-3)(4)(0x23) 0x1e_173=0x2223
    [    5.352991]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x5c17)
    [    5.429952]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1e1e)
    [    5.490838]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x131b)
    [    5.551763]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1c24)
    [    5.605619] PORT 2 RX_DC_OFFSET
    [    5.619927] before pairA output = e
    [    5.625503] after pairA output = 1
    [    5.630905] before pairB output = f
    [    5.636470] after pairB output = ff
    [    5.641952] before pairC output = e
    [    5.647521] after pairC output = ff
    [    5.653010] before pairD output = 1e
    [    5.658667] after pairD output = ff
    [    5.662458] mt753x gsw@0: -------- gephy-calbration (port:3) --------
    [    5.679183] CALDLY = 40
    [    5.746294]  GE R50 AnaCal Done! (10) (0x32)(0xb2)
    [    5.809847]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    5.873978]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    5.941761]  GE R50 AnaCal Done! (9) (0x34)(0xb4)
    [    5.950321]  GE 1e_174(0xb2b4), 1e_175(0xb4b4)
    [    6.002115]  GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
    [    6.026086]  GE Tx offset AnaCal Done! (pair-1)(1)(0x1) 0x1e_172=0x2201
    [    6.055727]  GE Tx offset AnaCal Done! (pair-2)(2)(0x2) 0x1e_173=0x220
    [    6.102619]  GE Tx offset AnaCal Done! (pair-3)(5)(0x24) 0x1e_173=0x224
    [    6.231292]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x4010)
    [    6.270766]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1717)
    [    6.314593]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x161e)
    [    6.358421]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1a22)
    [    6.416195] PORT 3 RX_DC_OFFSET
    [    6.431394] before pairA output = 1e
    [    6.437218] after pairA output = ff
    [    6.442863] before pairB output = f
    [    6.448592] after pairB output = ff
    [    6.454240] before pairC output = 1c
    [    6.460057] after pairC output = ff
    [    6.465709] before pairD output = f
    [    6.471444] after pairD output = 0
    [    6.475173] mt753x gsw@0: -------- gephy-calbration (port:4) --------
    [    6.492742] CALDLY = 40
    [    6.547730]  GE R50 AnaCal Done! (7) (0x37)(0xb7)
    [    6.604495]  GE R50 AnaCal Done! (7) (0x37)(0xb7)
    [    6.655508]  GE R50 AnaCal Done! (6) (0x40)(0xc0)
    [    6.718073]  GE R50 AnaCal Done! (8) (0x35)(0xb5)
    [    6.726650]  GE 1e_174(0xb7b7), 1e_175(0xc0b5)
    [    6.777823]  GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
    [    6.811436]  GE Tx offset AnaCal Done! (pair-1)(3)(0x22) 0x1e_172=0x2222
    [    6.860845]  GE Tx offset AnaCal Done! (pair-2)(6)(0x25) 0x1e_173=0x2520
    [    6.899442]  GE Tx offset AnaCal Done! (pair-3)(4)(0x23) 0x1e_173=0x2523
    [    7.005871]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x4812)
    [    7.082694]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1010)
    [    7.150267]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x121a)
    [    7.217848]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x121a)
    [    7.271702] PORT 4 RX_DC_OFFSET
    [    7.286032] before pairA output = e
    [    7.291596] after pairA output = 1
    [    7.296992] before pairB output = e
    [    7.302558] after pairB output = 0
    [    7.307953] before pairC output = e
    [    7.313521] after pairC output = fe
    [    7.319008] before pairD output = 1e
    [    7.324660] after pairD output = 1
    [    7.331318] [SPM] pwrap node has not register regmap
    [    7.336764] regulator regulator.1: info->modeset_reg 0xc = 0x181c32a2
    [    7.343963] [SVS] DCVALUES is minus, set 0
    [    7.348229] regulator regulator.1: info->modeset_reg 0xc = 0x101c32a2
    [    7.381374] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
    [    7.388821] Freeing unused kernel memory: 324K
    [    7.393277] This architecture does not have kernel memory protection.
    [    7.731352] init: Console is alive
    [    7.734892] init: - watchdog -
    [    8.193995] kmodloader: loading kernel modules from /etc/modules-boot.d/*
    [    8.224354] gpio-keys gpio-keys: failed to set debounce_interval for gpio:511
    [    8.238177] libata version 3.00 loaded.
    [    8.243915] ahci 1a200000.sata: forcing port_map 0x0 -> 0x1
    [    8.249588] ahci 1a200000.sata: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
    [    8.258126] ahci 1a200000.sata: flags: ncq sntf pm clo only pmp pio slum part ccc apst
    [    8.270716] scsi host0: ahci
    [    8.273826] ata1: SATA max UDMA/133 mmio [mem 0x1a200000-0x1a2010ff] port 0x100 irq 247
    [    8.600315] ata1: SATA link down (SStatus 0 SControl 300)
    [    8.606046] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
    [    8.614069] init: - preinit -
    Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
    [   13.404730] jffs2: notice: (844) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    [   13.422516] mount_root: switching to jffs2 overlay
    [   13.438279] urandom-seed: Seeding with /etc/urandom.seed
    [   13.515617] procd: - early -
    [   13.518569] procd: - watchdog -
    [   14.084579] procd: - watchdog -
    [   14.087834] procd: - ubus -
    [   14.175961] procd: - init -
    Please press Enter to activate this console.
    [   14.707469] kmodloader: loading kernel modules from /etc/modules.d/*
    [   14.733025] l2tp_core: L2TP core driver, V2.0
    [   14.737965] l2tp_netlink: L2TP netlink interface
    [   14.743055] gre: GRE over IPv4 demultiplexor driver
    [   14.748454] ip_gre: GRE over IPv4 tunneling driver
    [   14.755166] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [   15.160088] cryptodev: driver 1.8 loaded.
    [   15.348868] clink: Unknown symbol wifi_led_2g_update (err 0)
    [   15.354731] clink: Unknown symbol wifi_led_5g_update (err 0)
    [   15.418273] Bridge firewalling registered
    [   15.422608] clink: Unknown symbol wifi_led_2g_update (err 0)
    [   15.428391] clink: Unknown symbol wifi_led_5g_update (err 0)
    [   15.447991] Ebtables v2.0 registered
    [   15.453371] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   15.461356] -->mtfwd_init(ver:1.0)<--
    [   15.467307] mediatek_soc_hnat 1b100000.hnat: wan = eth1
    [   15.473135] mediatek_soc_hnat 1b100000.hnat: lan = eth0
    [   15.478590] mediatek_soc_hnat 1b100000.hnat: ppd = eth0
    [   15.483914] mediatek_soc_hnat 1b100000.hnat: gmac num = 2
    [   15.490019] mediatek_soc_hnat 1b100000.hnat: FOE entry number = 8192
    [   15.496965] mediatek_soc_hnat 1b100000.hnat: hwnat start
    [   15.619017] Netfilter messages via NETLINK v0.30.
    [   15.639981] xt_time: kernel timezone is -0000
    [   15.645614] clink: Unknown symbol wifi_led_2g_update (err 0)
    [   15.651666] clink: Unknown symbol wifi_led_5g_update (err 0)
    [   16.555135] register mt_drv
    [   16.558302] mt_drv 0001:01:00.0: enabling device (0000 -> 0002)
    [   16.570298]
    [   16.570298]
    [   16.570298] === pAd = ffffff8009901000, size = 13398784 ===
    [   16.570298]
    [   16.580851] <-- RTMPAllocAdapterBlock, Status=0
    [   16.585390] PCI CSRBaseAddress =0xffffff8009800000, csr_addr=0xffffff8009800000!
    [   16.592806] RTMPInitPCIeDevice():device_id=0x7915
    [   16.597512] mt7915_init()-->
    [   16.600395] Use 1st iPAiLNA default bin.
    [   16.604378] <--mt7915_init()
    [   16.607984] Rx[0] Ring: total 24576 bytes allocated
    [   16.612944] Rx[1] Ring: total 24576 bytes allocated
    [   16.618299] Rx[2] Ring: total 8192 bytes allocated
    [   16.623959] Rx[3] Ring: total 16384 bytes allocated
    [   16.629307] Rx[4] Ring: total 8192 bytes allocated
    [   16.634119] <-- pci_alloc_tx_rx_ring_mem, Status=0
    [   16.997723] mt7622_mt_wifi: module license 'Proprietary' taints kernel.
    [   17.004393] Disabling lock debugging due to kernel taint
    [   17.025605] register mt_drv
    [   17.032179]
    [   17.032179] == pAd = ffffff800ad01000, size = 6220544, Status=0 ==
    [   17.039963] AP Driver version-5.0.5.4
    [   17.043698] read sub id = 2
    [   17.046555] Use 1st iPAiLNA default bin.
    [   17.050536] Use 1st /etc_ro/wlan/MT7622_EEPROM.bin default bin.
    [   17.056490] <--mt7622_init()
    [   17.060123] <-- RTMPAllocTxRxRingMemory, Status=0
    [   17.073154] PPP generic driver version 2.4.2
    [   17.078269] PPP MPPE Compression module registered
    [   17.084122] NET: Registered protocol family 24
    [   17.089539] PPTP driver version 0.8.5
    [   17.094459] Inserting Cameo Netlink module.
    [   17.102095] l2tp_ppp: PPPoL2TP kernel driver, V2.0
    [   17.108497] whnat_module_init(): module init and register callback for whnat
    [   17.115745] create whnat_ctrl ok!!!
    [   17.119402] wed_slot_map_get(): assign slot_id:0 for entry: 0!
    [   17.125420] wed_slot_map_get(): assign slot_id:1 for entry: 1!
    [   17.131428] whnat_hif_pcie_mirror_probe(): hif_cfg base addr=ffffff80097d2400
    [   17.140269] kmodloader: done loading kernel modules from /etc/modules.d/*
    UHTTP crt Checked
    [   22.471073] device eth0 entered promiscuous mode
    [   22.485524] br-lan: port 1(eth0) entered forwarding state
    [   22.491016] br-lan: port 1(eth0) entered forwarding state
    main init
    main init
    page=[/setup/index.html]
    count=[43]
    [   22.951249] jffs2: CLEANMARKER node found at 0x00000000 has totlen 0xc != normal 0x0
    page=[/setup/index.html]
    count=[43]
    [   23.027494] jffs2: Empty flash at 0x0000fffc ends at 0x00010000
    [   23.036263] jffs2: CLEANMARKER node found at 0x00010000 has totlen 0xc != normal 0x0
    [   23.076572] jffs2: CLEANMARKER node found at 0x00020000 has totlen 0xc != normal 0x0
    [   23.137868] jffs2: Empty flash at 0x0002fffc ends at 0x00030000
    [   23.144187] jffs2: CLEANMARKER node found at 0x00030000 has totlen 0xc != normal 0x0
    [   23.160490] jffs2: CLEANMARKER node found at 0x00040000 has totlen 0xc != normal 0x0
    [   23.189239] jffs2: CLEANMARKER node found at 0x00050000 has totlen 0xc != normal 0x0
    [   23.241586] jffs2: CLEANMARKER node found at 0x00060000 has totlen 0xc != normal 0x0
    [   23.275352] jffs2: CLEANMARKER node found at 0x00070000 has totlen 0xc != normal 0x0
    [   23.321857] jffs2: CLEANMARKER node found at 0x00080000 has totlen 0xc != normal 0x0
    [   23.364383] jffs2: CLEANMARKER node found at 0x00090000 has totlen 0xc != normal 0x0
    [   23.410071] jffs2: CLEANMARKER node found at 0x000a0000 has totlen 0xc != normal 0x0
    [   23.431635] jffs2: CLEANMARKER node found at 0x000b0000 has totlen 0xc != normal 0x0
    [   23.440253] jffs2: CLEANMARKER node found at 0x000c0000 has totlen 0xc != normal 0x0
    [   23.462910] jffs2: CLEANMARKER node found at 0x000d0000 has totlen 0xc != normal 0x0
    [   23.472227] jffs2: CLEANMARKER node found at 0x000e0000 has totlen 0xc != normal 0x0
    [   23.494812] jffs2: CLEANMARKER node found at 0x000f0000 has totlen 0xc != normal 0x0
    [   23.503792] jffs2: CLEANMARKER node found at 0x00100000 has totlen 0xc != normal 0x0
    [   23.533421] jffs2: CLEANMARKER node found at 0x00110000 has totlen 0xc != normal 0x0
    [   23.544388] jffs2: CLEANMARKER node found at 0x00120000 has totlen 0xc != normal 0x0
    [   23.657519] jffs2: notice: (3264) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    [   24.333926] ra0: ===> main_virtual_if_open
    [   24.338292] load l1profile succeed!
    [   24.492303] br-lan: port 1(eth0) entered forwarding state
    [   24.645328] APWdsInitialize():WdsEntry Number=4
    [   24.651997] RtmpOSFileOpen(): Error 2 opening /etc/Wireless/RT2860/RT2860_5G.dat
    [   24.659498] Open file "/etc/Wireless/RT2860/RT2860_5G.dat" failed!
    [   24.666101] E2pAccessMode=2
    [   24.669189] SSID[0]=elecom-bf0477, EdcaIdx=0
    [   24.673758] BSS0 PhyMode=14
    [   24.676584] wmode_band_equal(): Band Equal!
    [   24.680853] auto_ch_select_set_cfg(): BandIdx0, AutoChannelAtBootup=1, AutoChannelAlg = 3
    [   24.689705] BandSteering=0
    [   24.692478] BndStrgBssIdx=
    [   24.695291] [TxPower] BAND0: 100
    [   24.698895] Power Boost (CCK, OFDM): RTMPSetProfileParametersPower Boost (HT20): RTMPSetProfileParametersPower Boost (HT40): RTMPSetProfileParametersPower Boost (VHT20): RTMPSetProfileParametersPower Boost (VHT40): RTMPSetProfileParametersPower Boost (VHT80): RTMPSetProfileParametersPower Boost (VHT160): RTMPSetProfileParameters[CCKTxStream] BAND0: 4
    [   24.731129] [PERCENTAGEenable] BAND0: 1
    [   24.735156] [BFBACKOFFenable] BAND0: 1
    [   24.738601] jffs2: CLEANMARKER node found at 0x00000000 has totlen 0xc != normal 0x0
    [   24.747644] FragThreshold[0]=2346
    [   24.751028] FragThreshold[1]=2346
    [   24.754362] FragThreshold[2]=2346
    [   24.757701] FragThreshold[3]=2346
    [   24.763665] DfsZeroWait Support=0/0
    dnsmasq
    dnsmasq [br-la[   24.768211] read_etxbf: ETxBfEnCond = 1
    n]
    [   24.773207] read_etxbf: BSSID[0]
    [   24.776741] read_etxbf: MBSS[0] ETxBfEnCond = 1
    [   24.777820] jffs2: notice: (3823) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    [   24.806990] MAP_MODE=2
    [   24.811166] If/wds0 - PeerPhyOpMode=255
    [   24.815584] APWdsInitialize():WdsEntry Number=4
    [   24.820121] WDS-Enable mode=0
    [   24.823188] AndesSendCmdMsg: Could not send in band command due to diablefRTMP_ADAPTER_MCU_SEND_IN_BAND_CMD
    [   24.832933] AndesSendCmdMsg: Command type = ed, Extension command type = 48
    [   24.841456] HT: WDEV[0] Ext Channel = ABOVE
    [   24.845749] HT: greenap_cap = 1
    [   24.848977] ChipI=7622, Value=0, pcie_aspm in profile=0
    [   24.876376] ICapMode = 0
    [   24.882427] WtcSetMaxStaNum: BssidNum:1, MaxStaNum:125 (WdsNum:4, ApcliNum:1, MaxNumChipRept:16), MinMcastWcid:126
    [   24.892912] Fair Queueing Scheduler Initialization...
    [   24.898132] Top Init Done!
    [   24.900853] Use dev_alloc_skb
    [   24.904192] RX[0] DESC ffffffc019b0e000 size = 8192
    [   24.909225] RX[1] DESC ffffffc019348000 size = 8192
    [   24.914228] cut_through_init(): ct sw token number = 4095
    [   24.919767] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    [   24.927516] cut_through_token_list_init(): ffffffc019745d90,ffffffc019745d90
    [   24.934690] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    [   24.942439] cut_through_token_list_init(): ffffffc019745db0,ffffffc019745db0
    [   24.949548] Hif Init Done!
    [   24.952248] ctl->txq = ffffff800b2e93f0
    [   24.956092] ctl->rxq = ffffff800b2e9408
    [   24.959932] ctl->ackq = ffffff800b2e9420
    [   24.963858] ctl->kickq = ffffff800b2e9438
    [   24.967870] ctl->tx_doneq = ffffff800b2e9450
    [   24.972141] ctl->rx_doneq = ffffff800b2e9468
    [   24.976566] mt_rbus 0000:00:00.0: Direct firmware load for mt7622_patch_e2_hdr.bin failed with error -2
    [   24.985974] Parsing patch header
    [   24.989206]  Built date: 20200724205908a
    [   24.993211]
    [   24.994693]  Platform: ALPS
    [   24.997517]  HW/SW version: 0x8a108a10
    [   25.001300]  Patch version: 0x00000010
    [   25.005085]  Target address: 0x9c000, length: 82080
    [   25.010060] patch is not ready && get semaphore success
    [   25.015325] EventGenericEventHandler: CMD Success
    [   25.020535] MtCmdPatchFinishReq
    [   25.034921] EventGenericEventHandler: CMD Success
    [   25.039670] release patch semaphore
    [   25.043165] WfMcuHwInit: Before NICLoadFirmware, check ICapMode = 0
    [   25.049446] Parsing CPU 0 fw tailer
    [   25.052937]  Chip ID: 0x06
    [   25.055649]  Eco version: 0x00
    [   25.058722]  Region number: 0x00
    [   25.061970]  Format version: 0x00
    [   25.065303]  Ram version: _reserved_
    [   25.068935]  Built date: 20200724210254
    [   25.072937]  Common crc: 0x0
    [   25.075810] Parsing tailer region 0
    [   25.079306]  Feature set: 0x01
    [   25.082377]  Target address: 0xb7000, Download size: 249856
    [   25.087954] Parsing tailer region 1
    [   25.091449]  Feature set: 0x01
    [   25.094520]  Target address: 0x203dc00, Download size: 50144
    [   25.100219] EventGenericEventHandler: CMD Success
    [   25.108868] EventGenericEventHandler: CMD Success
    [   25.113928] MtCmdFwStartReq: override = 0x0, address = 0x0
    [   25.160915] EventGenericEventHandler: CMD Success
    [   25.165640] MCU Init Done!
    [   25.168443] efuse_probe: efuse = 2
    [   25.171852] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=4
    [   25.177259] RtmpEepromGetDefault::e2p_dafault=2
    [   25.181797] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 2
    [   25.189374] NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
    [   25.196248] NICReadEEPROMParameters: EEPROM 0x52 bb08
    [   25.202092] MtCmdSetTxLpfCal_7622:(ret = 0)
    [   25.206320] MtCmdSetTxDcIqCal_7622:(ret = 0)
    [   25.210624] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.214839] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.219052] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.223260] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.227472] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.231681] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.235893] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.240101] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.244314] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.248523] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.252733] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.256942] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.261152] MtCmdSetTxDpdCal_7622:(ret = 0)
    [   25.265341] mt7622_pa_lna_set(): read antCtrl = 0, polCtrl = 4, wifiStreams = 44
    [   25.272744] mt7622_tssi_set(): nic_cfg1=20, mode=1
    [   26.242321] Country Region from e2p = 0
    [   26.246190] read sub id = 2
    [   26.249206] RcRadioInit(): DbdcMode=0, ConcurrentBand=1
    [   26.254446] RcRadioInit(): pRadioCtrl=ffffffc01e1b2db0,Band=0,rfcap=1,channel=1,PhyMode=2 extCha=0xf
    [   26.263588] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
    [   26.279215] MtBfBackOffLoadParam: RF_LOCKDOWN Feature OFF !!!
    [   26.285127] EEPROM Init Done!
    [   26.288093] mt_mac_init()-->
    [   26.290999] mt7622_init_mac_cr(): TMAC_TRCR0=0x82783c8c
    [   26.296248] <--mt_mac_init()
    [   26.317727] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   26.334793] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   26.351858] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   26.358394] MAC Init Done!
    [   26.361128] MT7622BBPInit() todo
    [   26.364363] PHY Init Done!
    [   26.367645] MtCmdSetMacTxRx:(ret = 0)
    [   26.371431] ap_ftkd> Initialize FT KDP Module...
    [   26.376073] Main bssid = 00:00:00:00:00:00
    [   26.380342] MtCmdSetMacTxRx:(ret = 0)
    [   26.391295] MtCmdSetMacTxRx:(ret = 0)
    [   26.394964] <==== mt_wifi_init, Status=0
    [   26.398894] TxBfModuleEnCtrl:It's not DBDC mode
    [   26.403457] MtCmdEDCCACtrl: BandIdx: 0, EDCCACtrl: 1
    [   26.408542] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
    [   26.416389] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
    [   26.424612] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
    [   26.434518] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
    [   26.442975] Total allocated 4 WDS interfaces!
    [   26.448122] WtcSetMaxStaNum: BssidNum:1, MaxStaNum:125 (WdsNum:4, ApcliNum:1, MaxNumChipRept:16), MinMcastWcid:126
    [   26.483793] RedInit: set Driver/N9 RED Enable to 1.
    [   26.488742] RedInit: RED Initiailize Done.
    [   26.492882] cp_support_is_enabled: set Driver CP_SUPPORT to Mode 2.
    [   26.500020] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
    [   26.507647] wifi_sys_open(), wdev idx = 0
    [   26.511768] wdev_attr_update(): wdevId0 = 04:ab:18:**:**:79
    [   26.517416] [RcGetHdevByPhyMode] channel 0 fix for rdev fetching
    [   26.523807]  [RadarStateCheck] RD_NORMAL_MODE
    [   26.529602] phy_freq_adjust : no prim_ch value for adjust!
    [   26.535375] Caller: wlan_operate_init+0xd8/0x108 [mt7622_mt_wifi]
    [   26.541527] phy_mode=14, ch=0, wdev_type=1
    [   26.545686] ht_cap->HtCapInfo: ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=0
    [   26.555160] ht_cap->HtCapParm: mdpu_density=5, ampdu_factor=3
    [   26.563772] AP inf up for ra_0(func_idx) OmacIdx=0
    [   26.570998] mtd_isr::DriverOwn = TRUE
    [   26.575470] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
    [   26.587399] ApAutoChannelAtBootUp----------------->
    [   26.592361] ApAutoChannelAtBootUp: AutoChannelBootup[0] = 1
    [   26.598219] MtCmdSetMacTxRx:(ret = 0)
    [   26.601952] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0
    [   26.610987] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   26.868419] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0
    [   26.877642] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   27.148374] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0
    [   27.158838] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   27.420407] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0
    [   27.432672] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   27.680419] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
    [   27.689416] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   27.952421] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0
    [   27.961495] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   28.200420] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0
    [   28.209996] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   28.444428] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
    [   28.453744] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   28.732324] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
    [   28.741318] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   28.948317] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0
    [   28.957460] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   29.164315] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0
    [   29.173449] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   29.380310] ====================================================================
    [   29.387730] Channel   1 : Busy Time =   4980, Skip Channel = FALSE, BwCap = TRUE
    [   29.395135] Channel   2 : Busy Time =   5173, Skip Channel = FALSE, BwCap = TRUE
    [   29.402536] Channel   3 : Busy Time =   2569, Skip Channel = FALSE, BwCap = TRUE
    [   29.409934] Channel   4 : Busy Time =   6714, Skip Channel = FALSE, BwCap = TRUE
    [   29.417332] Channel   5 : Busy Time =   5929, Skip Channel = FALSE, BwCap = TRUE
    [   29.424730] Channel   6 : Busy Time =   6267, Skip Channel = FALSE, BwCap = TRUE
    [   29.432147] Channel   7 : Busy Time =   6457, Skip Channel = FALSE, BwCap = TRUE
    [   29.439564] Channel   8 : Busy Time =   4529, Skip Channel = FALSE, BwCap = TRUE
    [   29.446963] Channel   9 : Busy Time =   2613, Skip Channel = FALSE, BwCap = TRUE
    [   29.454362] Channel  10 : Busy Time =   4109, Skip Channel = FALSE, BwCap = TRUE
    [   29.461760] Channel  11 : Busy Time =   5167, Skip Channel = FALSE, BwCap = TRUE
    [   29.469155] ====================================================================
    [   29.476665] Rule 3 Channel Busy time value : Select Primary Channel 3
    [   29.483113] Rule 3 Channel Busy time value : Min Channel Busy = 2569
    [   29.489470] Rule 3 Channel Busy time value : BW = 20
    [   29.494442] [SelectClearChannelBusyTime] - band0 END
    [   29.499413] ApAutoChannelAtBootUp : Auto channel selection: Selected channel = 3, IsAband = 0
    [   29.507943]  AutoChSelUpdateChannel(): Update channel for wdev for this band PhyMode = 14, Channel = 3
    [   29.518051] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
    [   29.527014] BW = 1,TXStream = 4, RXStream = 4, scan(0)
    [   29.551087] ApAutoChannelAtBootUp<-----------------
    [   29.556008] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
    [   29.561894] wifi_sys_linkup(), wdev idx = 0
    [   29.566089] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
    [   29.566089]  LinkToOmacIdx = 0, LinkToWdevType = 1
    [   29.628000] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
    [   29.687762] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 0
    [   29.693535] APStartUpForMbss: BssIndex = 0 channel = 3
    [   29.698779] MtCmdTxPowerDropCtrl: ucPowerDrop: 100, BandIdx: 0
    [   29.704660] TxCCKStreamCtrl: set wrong parameters
    [   29.711251] Enable 20/40 BSSCoex Channel Scan(BssCoex=1)
    [   29.724102] MtCmdSetMacTxRx:(ret = 0)
    [   29.727868] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0
    [   29.736834] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   29.763793] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   30.064313] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0
    [   30.073315] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   30.097425] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   30.400311] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0
    [   30.409270] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   30.433360] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   30.736305] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0
    [   30.745267] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   30.769356] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   31.072304] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
    [   31.081292] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   31.105380] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   31.408303] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0
    [   31.417262] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   31.441367] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   31.744312] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0
    [   31.753274] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   31.777378] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   32.080324] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
    [   32.089301] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   32.113428] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   32.416306] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
    [   32.425268] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   32.433556] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   32.736312] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0
    [   32.745449] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   32.753713] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   33.060317] Channel[Idx=0, Ch=1].bEffectedChannel=0x2!
    [   33.065471] needFallBack=TRUE due to OP/OT!
    [   33.069679] Channel[Idx=1, Ch=2].bEffectedChannel=0x2!
    [   33.074821] needFallBack=TRUE due to OP/OT!
    [   33.079007] Channel[Idx=2, Ch=3].bEffectedChannel=0x2!
    [   33.084150] Channel[Idx=3, Ch=4].bEffectedChannel=0x4!
    [   33.089293] needFallBack=TRUE due to OP/OT!
    [   33.093492] Channel[Idx=4, Ch=5].bEffectedChannel=0x2!
    [   33.098634] needFallBack=TRUE due to OP/OT!
    [   33.102820] Channel[Idx=5, Ch=6].bEffectedChannel=0x2!
    [   33.107961] needFallBack=TRUE due to OP/OT!
    [   33.112149] Channel[Idx=6, Ch=7].bEffectedChannel=0x1!
    [   33.117291] Channel[Idx=7, Ch=8].bEffectedChannel=0x2!
    [   33.122437] needFallBack=TRUE due to OP/OT!
    [   33.126623] Channel[Idx=8, Ch=9].bEffectedChannel=0x0!
    [   33.131764] Channel[Idx=9, Ch=10].bEffectedChannel=0x4!
    [   33.136991] needFallBack=TRUE due to OP/OT!
    [   33.141197] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
    [   33.150161] BW = 1,TXStream = 4, RXStream = 4, scan(0)
    [   33.174285] apidx 0 for WscUUIDInit
    [   33.177781] Generate UUID for apidx(0)
    [   33.181615] mtk_ppe_dev_register_hook : ineterface ra0 register (1)
    [   33.191802] add tx_src: 04:ab:18:**:**:79
    [   33.195978] add tx_src: 02:ab:18:bf:04:79
    [   33.200406] nf_unregister_hooks()
    [   33.206003] no net device found for ra1 or apcli0
    [   33.210737] no net device found for ra2 or apcli0
    [   33.217705] no net device found for ra3 or apcli0
    [   33.222547] no net device found for ra4 or apcli0
    [   33.228039] no net device found for ra5 or apcli0
    [   33.232832] no net device found for ra6 or apcli0
    [   33.237582] no net device found for ra7 or apcli0
    [   33.242322] no net device found for ra8 or apcli0
    [   33.247931] no net device found for ra9 or apcli0
    [   33.254893] no net device found for ra10 or apcli0
    start ddns[   33.260444] device ra0 entered promiscuous mode
    
    add_cron
    [   33.265693] no net device found for ra11 or apcli0
    add_cron data
    [   33.271539] br-lan: port 2(ra0) entered forwarding state
    [   33.277955] br-lan: port 2(ra0) entered forwarding state
    [   33.283819] no net device found for ra12 or apcli0
    [   33.288711] no net device found for ra13 or apcli0
    [   33.294679] no net device found for ra14 or apcli0
    [   33.301856] no net device found for ra15 or apcli0
    [   33.306774] Mac: 04:ab:18:**:**:79 was aleady existed.
    [   33.767330] Device Instance
    [   33.770164]  WDEV 00:, Name:ra0, Wdev(list) Idx:0
    [   33.774908]           Idx:9
    [   33.777120] mtk_ppe_dev_register_hook : ra0 has been registered in wifi_hook_if table[1]
    [   33.785222]
    [   33.786705]
    [   33.788187]
    [   33.789684]
    [   33.791167]
    [   33.792689]
    [   33.794172]
    [   33.795654]
    [   33.797152]
    [   33.798636]
    [   33.800118]
    [   33.801613]
    [   33.803098]
    [   33.804625]
    [   33.806108]
    [   33.884122] rai0: ===> main_virtual_if_open
    [   33.888427] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
    [   33.895262] load l1profile succeed!
    [   33.898926] WHNAT=0
    [   33.901041] whnat_cap_support(): chip_id=7915 is in WHNAT support list
    [   33.907573] whnat_driver_init(): chip not enable wifi hardware nat feature!
    [   33.914574] mt_service_open: wlan service opens successfully!
    [   33.921408] APWdsInitialize():WdsEntry[0~15]
    [   33.927108] BssidNum=1
    [   33.929476] Pf2MbssIdxMap:
    [   33.932175]  0
    [   33.934636] E2pAccessMode=2
    [   33.937706] SSID[0]=elecom-bf0477, EdcaIdx=0
    [   33.942168] RTMPSetProfileParameters(): DBDC Mode=0, eDBDC_mode = 0
    [   33.948660] cfg_mode=17
    [   33.951098] cfg_mode=17
    [   33.953550] cfg_mode=17
    [   33.955994] wmode_band_equal(): Band Equal!
    [   33.960380] auto_ch_select_set_cfg(): BandIdx0, AutoChannelAtBootup=1, AutoChannelAlg = 3
    [   33.968558] auto_ch_select_set_cfg(): BandIdx1, AutoChannelAtBootup=0, AutoChannelAlg = 0
    [   33.976828] Index0 Channel=0
    [   33.980190] BandSteering=0
    [   33.982941] BndStrgBssIdx=
    [   33.985760] [TxPower] BAND0: 100
    [   33.991056] [SKUenable] BAND0: 1
    [   33.994414] [SkuTableIdx]: 0
    [   33.997407] [CCKTxStream] BAND0: 4
    [   34.000898] [PERCENTAGEenable] BAND0: 1
    [   34.004774] [BFBACKOFFenable] BAND0: 1
    [   34.008575] [Disable160RuMu] BAND0: 1
    [   34.012318] [MaxRuOfdma] BAND0: 8
    [   34.015703] [MaxDLMuMimo] BAND0: 4
    [   34.019189] [MaxULMuMimo] BAND0: 2
    [   34.023078] profile: FragThreshold[0]=2346
    [   34.027566] APEdca0
    [   34.029815] APEdca1
    [   34.032050] APEdca2
    [   34.034298] APEdca3
    [   34.037500] UAPSDCapable[0]=1
    [   34.040475] UAPSDCapable[1]=1
    [   34.043435] UAPSDCapable[2]=1
    [   34.046409] UAPSDCapable[3]=1
    [   34.049380] UAPSDCapable[4]=1
    [   34.052351] UAPSDCapable[5]=1
    [   34.055310] UAPSDCapable[6]=1
    [   34.058286] UAPSDCapable[7]=1
    [   34.061257] UAPSDCapable[8]=1
    [   34.064216] UAPSDCapable[9]=1
    [   34.067189] UAPSDCapable[10]=1
    [   34.070247] UAPSDCapable[11]=1
    [   34.073304] UAPSDCapable[12]=1
    [   34.076365] UAPSDCapable[13]=1
    [   34.079411] UAPSDCapable[14]=1
    [   34.082471] UAPSDCapable[15]=1
    [   34.085531] UAPSDCapable[16]=1
    [   34.088589] UAPSDCapable[17]=1
    [   34.091635] UAPSDCapable[18]=1
    [   34.094708] UAPSDCapable[19]=1
    [   34.097767] UAPSDCapable[20]=1
    [   34.100824] UAPSDCapable[21]=1
    [   34.103870] UAPSDCapable[22]=1
    [   34.106929] UAPSDCapable[23]=1
    [   34.109987] UAPSDCapable[24]=1
    [   34.113044] UAPSDCapable[25]=1
    [   34.116090] UAPSDCapable[26]=1
    [   34.119149] UAPSDCapable[27]=1
    [   34.122207] UAPSDCapable[28]=1
    [   34.125263] UAPSDCapable[29]=1
    [   34.128322] UAPSDCapable[30]=1
    [   34.131368] UAPSDCapable[31]=1
    [   34.134427] default ApCliUAPSDCapable[0]=1
    [   34.138526] default ApCliUAPSDCapable[1]=1
    [   34.143305] DfsZeroWait Support=0/0
    [   34.147124] DfsZeroWaitCacTime=255/255
    [   34.151324] read_itxbf: ITxBfEn = 0
    [   34.154817] read_itxbf: BSSID[0]
    [   34.158058] read_itxbf: MBSS[0] ITxBfEn = 0
    [   34.162251] read_itxbf: Common.ITxBfEn = 0
    [   34.166408] read_etxbf: ETxBfEnCond = 1
    [   34.170249] read_etxbf: BSSID[0]
    [   34.173486] read_etxbf: MBSS[0] ETxBfEnCond = 1
    [   34.178221] HeraStbcPriority[0] = 0
    [   34.182702] MBSS[0] MuOfdmaDlEnable = 1
    [   34.186685] MBSS[0] MuOfdmaUlEnable = 1
    [   34.190666] MBSS[0] MuMimoDlEnable = 1
    [   34.194576] MBSS[0] MuMimoUlEnable = 1
    [   34.212787] [PMF]Set_PMFMFPC_Proc:: apidx=0, Desired MFPC=0
    [   34.218442] [PMF]Set_PMFMFPR_Proc:: apidx=0, Desired MFPR=0
    [   34.224104] [PMF]Set_PMFSHA256_Proc:: apidx=0, Desired PMFSHA256=0
    [   34.230717] MAP_MODE=2
    [   34.233135] ApCliEntry[0].Enable=0
    [   34.238088] APCLI[0] ApCliMuOfdmaDlEnable = 1
    [   34.242481] APCLI[0] ApCliMuOfdmaUlEnable = 0
    [   34.246874] APCLI[0] ApCliMuMimoDlEnable = 0
    [   34.251181] APCLI[0] ApCliMuMimoUlEnable = 0
    [   34.255783] rtmp_read_wds_from_file(): WDS Profile
    [   34.260723] WDS Number: band[0]=0, band[1]=0
    [   34.265131] WDS-Enable mode=0
    [   34.268368] If/wds0 - PeerPhyMode=0xb1
    [   34.273906] HT_BAWinSize: wdev[0]: (TX=256, RX=256)
    [   34.279088] HT: WDEV[0] Ext Channel = ABOVE
    [   34.283387] HT: greenap_cap = 0
    [   34.286642] 0:rai0 TWTsupport = 1
    [   34.340639] ICapMode = 0
    [   34.348634] WtcSetMaxStaNum: MaxStaNum:237, BssidNum:1, WdsNum:16, MSTANum:1, MaxNumChipRept:32, MinMcastWcid:286
    [   34.358911] Top Init Done!
    [   34.361645] Use dev_alloc_skb
    [   34.364620] token_tx_queue_init(): ct sw token number = 8191
    [   34.370720] token_tx_queue_init(): token que inited done!id_head/tail=0/8192
    [   34.377775] token_tx_queue_init(): ffffffc01720ce08,ffffffc01720ce08
    [   34.385320] TxRing[0]: attr:0, total 2048 entry initialized
    [   34.391711] TxRing[1]: attr:0, total 2048 entry initialized
    [   34.397450] RX[0] DESC ffffff8009744000 size = 24576
    [   34.403479] RX[1] DESC ffffff800974b000 size = 24576
    [   34.409500] RX[2] DESC ffffff8009752000 size = 8192
    [   34.414725] RX[3] DESC ffffff8009755000 size = 16384
    [   34.420369] RX[4] DESC ffffff800975a000 size = 8192
    [   34.425758] -->TX_RING_0[0xd7300]: Attr:0, Base=0x5b3f0000, Cnt=2048!
    [   34.432212] -->TX_RING_1[0xd7310]: Attr:0, Base=0x5b3f8000, Cnt=2048!
    [   34.438658] -->TX_RING_2[0xd5400]: Attr:3, Base=0x5b3b2000, Cnt=128!
    [   34.445016] -->TX_RING_3[0xd5410]: Attr:2, Base=0x5b3b3000, Cnt=256!
    [   34.451378] -->TX_RING_4[0xd5440]: Attr:1, Base=0x5a284000, Cnt=256!
    [   34.457735] -->RX_RING0[0xd4500]: Base=0x5a2b8000, Cnt=1536
    [   34.463314] -->RX_RING1[0xd4510]: Base=0x5a2e0000, Cnt=1536
    [   34.468891] -->RX_RING2[0xd5500]: Base=0x5a2a2000, Cnt=512
    [   34.474381] -->RX_RING3[0xd7410]: Base=0x59e08000, Cnt=1024
    [   34.479958] -->RX_RING4[0xd5520]: Base=0x59e0c000, Cnt=512
    [   34.485447] whnat_ring_init(): cookie=ffffff8009901000
    [   34.490589] whnat_ring_init(): whnat can't find for cookie:ffffff8009901000
    [   34.497573] Hif Init Done!
    [   34.503402] pci_driver_own_by_port: success to clear p=0 fw own, from(1): 1 is interrupt mode, 2 is polling mode.
    [   34.513661] driver_own: port=1 is not enabled
    [   34.518024] fw_prepare():using E2 ROM patch
    [   34.522212] fw_prepare():using E2 RAM
    [   34.525889] Parsing patch header
    [   34.529123]  Built date: 20201016112241a
    [   34.533124]
    [   34.534606]  Platform: ALPS
    [   34.537430]  HW/SW version: 0x8a108a10
    [   34.541211]  Patch version: 0xffffffff
    [   34.544995]  Section num: 0x2, subsys: 0x4
    [   34.549099]  Section 0: type = 0x30002, offset = 0xe0, size = 0xfc90
    [   34.555458]  Target address: 0x200000, length: 0xfc90
    [   34.560512]  Section 1: type = 0x30002, offset = 0xfd70, size = 0x13720
    [   34.567135]  Target address: 0xe000f000, length: 0x13720
    [   34.572643] Patch SEM Status = 2
    [   34.575889] patch is not ready && get semaphore success
    [   34.581130] Start address = 0x200000, DL length = 64656, Data mode = 0x80000000
    [   34.589607] EventGenericEventHandler: CMD Success
    [   34.594346] MtCmdAddressLenReq:(ret = 0)
    [   34.598784] Start address = 0xe000f000, DL length = 79648, Data mode = 0x80000000
    [   34.607452] EventGenericEventHandler: CMD Success
    [   34.612180] MtCmdAddressLenReq:(ret = 0)
    [   34.616692] MtCmdPatchFinishReq
    [   34.623646] EventGenericEventHandler: CMD Success
    [   34.628514] Patch SEM Status = 3
    [   34.631755] release patch semaphore
    [   34.635248]  WfMcuHwInit: Before NICLoadFirmware, check ICapMode = 0
    [   34.642405] Parsing CPU 0 fw tailer
    [   34.645900]  Chip ID: 0x0b
    [   34.648623]  Eco version: 0x01
    [   34.651681]  Region number: 0x07
    [   34.654928]  Format version: 0x02
    [   34.658261]  Format flag: 0x01
    [   34.661333]  Ram version: ____000000
    [   34.664965]  Built date: 20201016112316
    [   34.668971]  Common crc: 0xc03cfb90
    [   34.672469] Parsing tailer region 0
    [   34.675949]  Decomp crc: 0x0
    [   34.678836]  Decomp size: 0x0
    [   34.681810]  Decomp block size: 0x0
    [   34.685304]  Target address: 0x21fc00
    [   34.688968]  Download size: 110592
    [   34.692373]  Feature set: 0x20
    [   34.695433] Parsing tailer region 1
    [   34.698931]  Decomp crc: 0x0
    [   34.701816]  Decomp size: 0x0
    [   34.704785]  Decomp block size: 0x0
    [   34.708264]  Target address: 0x31dc00
    [   34.711931]  Download size: 205824
    [   34.715335]  Feature set: 0x00
    [   34.718405] Parsing tailer region 2
    [   34.721899]  Decomp crc: 0x0
    [   34.724783]  Decomp size: 0x0
    [   34.727743]  Decomp block size: 0x0
    [   34.731235]  Target address: 0x417400
    [   34.734900]  Download size: 31744
    [   34.738217]  Feature set: 0x00
    [   34.741286] Parsing tailer region 3
    [   34.744781]  Decomp crc: 0x0
    [   34.747654]  Decomp size: 0x0
    [   34.750627]  Decomp block size: 0x0
    [   34.754119]  Target address: 0xe0022800
    [   34.757957]  Download size: 395776
    [   34.761360]  Feature set: 0x00
    [   34.764432] Parsing tailer region 4
    [   34.767913]  Decomp crc: 0x0
    [   34.770799]  Decomp size: 0x0
    [   34.773776]  Decomp block size: 0x0
    [   34.777289]  Target address: 0xe0083200
    [   34.781138]  Download size: 347648
    [   34.784544]  Feature set: 0x00
    [   34.787602] Parsing tailer region 5
    [   34.791097]  Decomp crc: 0x0
    [   34.793982]  Decomp size: 0x0
    [   34.796964]  Decomp block size: 0x0
    [   34.800457]  Target address: 0x23ac00
    [   34.804110]  Download size: 87040
    [   34.807455]  Feature set: 0x00
    [   34.810528] Parsing tailer region 6
    [   34.814023]  Decomp crc: 0x0
    [   34.816908]  Decomp size: 0x0
    [   34.819867]  Decomp block size: 0x0
    [   34.823360]  Target address: 0x400000
    [   34.827023]  Download size: 81920
    [   34.830340]  Feature set: 0x00
    [   34.833409]  Release info: header tag = 0, total length = 68
    [   34.839081]  tag 1, padding length = 3, tag length = 61
    [   34.844307]  payload: t-neptune-main-mt7915-1953-MT7915D_1953_MT7621-20201016111902
    [   34.852262] Start address = 0x21fc00, DL length = 110592, Data mode = 0x80000000
    [   34.860867] EventGenericEventHandler: CMD Success
    [   34.865589] MtCmdAddressLenReq:(ret = 0)
    [   34.870202] Start address = 0x31dc00, DL length = 205824, Data mode = 0x80000000
    [   34.878794] EventGenericEventHandler: CMD Success
    [   34.883521] MtCmdAddressLenReq:(ret = 0)
    [   34.888725] Start address = 0x417400, DL length = 31744, Data mode = 0x80000000
    [   34.897245] EventGenericEventHandler: CMD Success
    [   34.901966] MtCmdAddressLenReq:(ret = 0)
    [   34.906086] Start address = 0xe0022800, DL length = 395776, Data mode = 0x80000000
    [   34.914880] EventGenericEventHandler: CMD Success
    [   34.919615] MtCmdAddressLenReq:(ret = 0)
    [   34.926078] Start address = 0xe0083200, DL length = 347648, Data mode = 0x80000000
    [   34.934845] EventGenericEventHandler: CMD Success
    [   34.939570] MtCmdAddressLenReq:(ret = 0)
    [   34.945709] Start address = 0x23ac00, DL length = 87040, Data mode = 0x80000000
    [   34.954204] EventGenericEventHandler: CMD Success
    [   34.958929] MtCmdAddressLenReq:(ret = 0)
    [   34.963391] Start address = 0x400000, DL length = 81920, Data mode = 0x80000000
    [   34.971899] EventGenericEventHandler: CMD Success
    [   34.976625] MtCmdAddressLenReq:(ret = 0)
    [   34.981057] MtCmdFwStartReq: override = 0x1, address = 0x21fc00
    [   34.988171] EventGenericEventHandler: CMD Success
    [   34.992901] Parsing CPU 1 fw tailer
    [   34.996414]  Chip ID: 0x00
    [   34.999126]  Eco version: 0x01
    [   35.002201]  Region number: 0x03
    [   35.005446]  Format version: 0x02
    [   35.008780]  Format flag: 0x01
    [   35.011838]  Ram version: DEV_000000
    [   35.015470]  Built date: 20200814164415
    [   35.019472]  Common crc: 0x1110cdc1
    [   35.022968] Parsing tailer region 0
    [   35.026460]  Decomp crc: 0x0
    [   35.029344]  Decomp size: 0x0
    [   35.032315]  Decomp block size: 0x0
    [   35.035794]  Target address: 0x10200000
    [   35.039634]  Download size: 88016
    [   35.042951]  Feature set: 0x00
    [   35.046022] Parsing tailer region 1
    [   35.049516]  Decomp crc: 0x0
    [   35.052400]  Decomp size: 0x0
    [   35.055359]  Decomp block size: 0x0
    [   35.058853]  Target address: 0x10300000
    [   35.062691]  Download size: 19408
    [   35.066008]  Feature set: 0x00
    [   35.069078] Parsing tailer region 2
    [   35.072572]  Decomp crc: 0x0
    [   35.075447]  Decomp size: 0x0
    [   35.078418]  Decomp block size: 0x0
    [   35.081911]  Target address: 0xe0000000
    [   35.085749]  Download size: 8768
    [   35.088978]  Feature set: 0x00
    [   35.092036]  Release info: header tag = 0, total length = 0
    [   35.097635] Start address = 0x10200000, DL length = 88016, Data mode = 0x80000010
    [   35.106315] EventGenericEventHandler: CMD Success
    [   35.111043] MtCmdAddressLenReq:(ret = 0)
    [   35.115504] Start address = 0x10300000, DL length = 19408, Data mode = 0x80000010
    [   35.124224] EventGenericEventHandler: CMD Success
    [   35.128962] MtCmdAddressLenReq:(ret = 0)
    [   35.132997] Start address = 0xe0000000, DL length = 8768, Data mode = 0x80000010
    [   35.141607] EventGenericEventHandler: CMD Success
    [   35.146331] MtCmdAddressLenReq:(ret = 0)
    [   35.150329] MtCmdFwStartReq: override = 0x4, address = 0x0
    [   35.256090] EventGenericEventHandler: CMD Success
    [   35.260831] MCU Init Done!
    [   35.263540] efuse_probe: efuse = 10000012
    [   35.267558] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
    [   35.272961] RtmpEepromGetDefault::e2p_dafault=1
    [   35.277495] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
    [   35.285066] br-lan: port 2(ra0) entered forwarding state
    [   35.290437] NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x5000]
    [   35.296472] rtmp_nv_init(): EEPROM Size[131072]
    [   35.302226] [EEPROMImage - PreCalImageInfo - PreCalImage - TxDPDImage]
    [   35.302226] [0xffffffc016760000 - 0xffffffc016760e00 - 0xffffffc016760e10 - 0xffffffc01676d220]
    [   35.318858] validFlashEepromID(): eeFlashId=7915, pAd->ChipID=7915
    [   35.325835] [d-die version:1]
    [   35.361985] [a-die version:2]
    [   35.490435]
    [   35.491933] NICReadEEPROMParameters: EEPROM 0x62 7
    [   35.497439] NICReadEEPROMParameters: Group Pre-Cal finished, load Group Pre-Cal data
    [   35.506033] NICReadEEPROMParameters: DPD 5G Pre-Cal finished!
    [   35.511810] NICReadEEPROMParameters: DPD 2G Pre-Cal finished!
    [   35.656010] Country Region from e2p = 0
    [   35.659867] antenna_default_reset() todo
    [   35.663804] antenna_default_reset() value = 0x2424, TxPath = 4, RxPath = 4
    [   35.670686] RTMPReadTxPwrPerRate(458): Don't Support this now!
    [   35.676523] rc_radio_init(): DBDC MODE=0, ConcurrentBand=1
    [   35.682018] rc_radio_init(): radio_ctrl=ffffffc01b3e9ee0,Band=0,rfcap=3,channel=1,PhyMode=2 extCha=0xf
    [   35.691329] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
    [   35.697102] AntCfgInit(2765): Not support for HIF_MT yet!
    [   35.702518] mt7915_check_RF_lock_down: RFlockDown Enable: 0
    [   35.708095] MtReadPwrLimitTable: sku table idx: 0
    mt7915_check_RF_lock_down: RFlockDown Enable: 0
    [   35.720219] mt7915_check_RF_lock_down: RFlockDown Enable: 0
    [   35.725800] MtReadPwrLimitTable: sku table idx: 0
    mt7915_check_RF_lock_down: RFlockDown Enable: 0
    [   35.738055] EEPROM Init Done!
    [   35.741050] mac_init()-->
    [   35.743664] init_mac_cr()-->
    [   35.746568] <--mac_init()
    [   35.752303] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   35.760600] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   35.768884] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   35.775447] MAC Init Done!
    [   35.778170] BBPInit():BBP Initialization.....
    [   35.782537]  Band 0: valid=1, isDBDC=0, Band=2, CBW=1, CentCh/PrimCh=1/1, prim_ch_idx=0, txStream=2
    [   35.791588]  Band 1: valid=0, isDBDC=0, Band=0, CBW=0, CentCh/PrimCh=0/0, prim_ch_idx=0, txStream=0
    [   35.800651] BBPInit() todo
    [   35.803350] PHY Init Done!
    [   35.809244] tx_pwr_comp_init():NotSupportYet!
    [   35.813802] MtCmdSetMacTxRx:(ret = 0)
    [   35.817793] ap_ftkd> Initialize FT KDP Module...
    [   35.822472] Main bssid = 00:00:00:00:00:00
    [   35.826577] SetMuruPlatformTypeProc: param.ucPlatformType = 2
    [   35.832378] muru_cfg_dlul_limits:(Ret = 1
    [   35.836419] muru_cfg_dlul_limits:(Ret = 1
    [   35.840660] MtCmdSetMacTxRx:(ret = 0)
    [   35.844341] <==== mt_wifi_init, Status=0
    [   35.848255] TxBfModuleEnCtrl:It's not DBDC mode
    [   35.852845] CmdHeraStbcPriorityCtrl: u1BandIdx=0, u1Operation=1, u1StbcPriority=0
    [   35.860364] MSTA_Init (1) ---> ApCli
    [   35.863969] Register MSTA IF (apclii0) , pAd->MSTANum = 1
    [   35.869684] Caller: RTMPSetHT+0x2d0/0x328 [mt_wifi]
    [   35.874586]
    [   35.874586] phy_mode=177, ch=0, wdev_type=2
    [   35.880253] ht_cap: ht_cap->HtCapInfo,
    [   35.884092] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
    [   35.891750] ht_cap: ht_cap->HtCapParm,
    [   35.895597] mdpu_density=0, ampdu_factor=3
    [   35.900339] mt_service_init: wlan service inits successfully!
    [   35.906187] WtcSetMaxStaNum: MaxStaNum:237, BssidNum:1, WdsNum:16, MSTANum:1, MaxNumChipRept:32, MinMcastWcid:286
    [   36.039069] RedInit: set CR4/N9 RED Enable to 1.
    [   36.043821] RedInit: RED Initiailize Done.
    [   36.048455] cp_support_is_enabled: set Driver CP_SUPPORT to Mode 2.
    [   36.054794] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
    [   36.061122] wifi_sys_open(), wdev idx = 0
    [   36.065205] ucAction = 0, ucBandIdx = 0, ucSmthIntlBypass = 0
    [   36.071145] BuildChannelList() BandIdx = 0, PhyMode = 177, ChListNum = 20:
    [   36.078195] DfsBuildChannelList(): Done
    [   36.082309] phy_oper_init(): operate TxStream = 4, RxStream = 4
    [   36.088432]  [RadarStateCheck] RD_NORMAL_MODE
    [   36.094038] phy_freq_adjust : no prim_ch value for adjust!
    [   36.099932] Caller: wlan_operate_init+0xf4/0x120 [mt_wifi]
    [   36.105777]
    [   36.105777] phy_mode=177, ch=0, wdev_type=1
    [   36.111775] ht_cap: ht_cap->HtCapInfo,
    [   36.115712] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
    [   36.123444] ht_cap: ht_cap->HtCapParm,
    [   36.127367] mdpu_density=5, ampdu_factor=3
    [   36.131666] wdev_attr_update(): wdevId0 = 04:ab:18:**:**:7a
    [   36.137594] AP inf up for ra_0(func_idx) OmacIdx=0
    [   36.142588] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
    [   36.148184] ApAutoChannelAtBootUp----------------->
    [   36.153143] ApAutoChannelAtBootUp: AutoChannelBootup[0] = 1
    [   36.159067] MtCmdSetMacTxRx:(ret = 0)
    [   36.162832] [AutoChSelBuildChannelListFor5G] ChListNum5G = 20
    [   36.168776] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   36.176960] MtCmdChannelSwitch: ctrl_chl=36, ctrl_ch2=0, cent_ch=36 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   36.203317] MtCmdSetTxRxPath: ctrl_chl=36, ctrl_ch2=0, cent_ch=36, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   36.424500] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   36.432577] MtCmdChannelSwitch: ctrl_chl=40, ctrl_ch2=0, cent_ch=40 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   36.458664] MtCmdSetTxRxPath: ctrl_chl=40, ctrl_ch2=0, cent_ch=40, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   36.668529] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   36.676618] MtCmdChannelSwitch: ctrl_chl=44, ctrl_ch2=0, cent_ch=44 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   36.702706] MtCmdSetTxRxPath: ctrl_chl=44, ctrl_ch2=0, cent_ch=44, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   36.912556] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   36.920656] MtCmdChannelSwitch: ctrl_chl=48, ctrl_ch2=0, cent_ch=48 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   36.946743] MtCmdSetTxRxPath: ctrl_chl=48, ctrl_ch2=0, cent_ch=48, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   37.156520] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   37.164637] MtCmdChannelSwitch: ctrl_chl=52, ctrl_ch2=0, cent_ch=52 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   37.190767] MtCmdSetTxRxPath: ctrl_chl=52, ctrl_ch2=0, cent_ch=52, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   37.400513] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   37.408592] MtCmdChannelSwitch: ctrl_chl=56, ctrl_ch2=0, cent_ch=56 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   37.434746] MtCmdSetTxRxPath: ctrl_chl=56, ctrl_ch2=0, cent_ch=56, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   37.644529] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   37.652639] MtCmdChannelSwitch: ctrl_chl=60, ctrl_ch2=0, cent_ch=60 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   37.678732] MtCmdSetTxRxPath: ctrl_chl=60, ctrl_ch2=0, cent_ch=60, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   37.888540] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   37.896634] MtCmdChannelSwitch: ctrl_chl=64, ctrl_ch2=0, cent_ch=64 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   37.922730] MtCmdSetTxRxPath: ctrl_chl=64, ctrl_ch2=0, cent_ch=64, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   38.132501] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   38.140612] MtCmdChannelSwitch: ctrl_chl=100, ctrl_ch2=0, cent_ch=100 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   38.166878] MtCmdSetTxRxPath: ctrl_chl=100, ctrl_ch2=0, cent_ch=100, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   38.376520] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   38.384608] MtCmdChannelSwitch: ctrl_chl=104, ctrl_ch2=0, cent_ch=104 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   38.410909] MtCmdSetTxRxPath: ctrl_chl=104, ctrl_ch2=0, cent_ch=104, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   38.620534] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   38.628697] MtCmdChannelSwitch: ctrl_chl=108, ctrl_ch2=0, cent_ch=108 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   38.654958] MtCmdSetTxRxPath: ctrl_chl=108, ctrl_ch2=0, cent_ch=108, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   38.864524] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   38.872605] MtCmdChannelSwitch: ctrl_chl=112, ctrl_ch2=0, cent_ch=112 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   38.898868] MtCmdSetTxRxPath: ctrl_chl=112, ctrl_ch2=0, cent_ch=112, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   39.108530] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   39.116625] MtCmdChannelSwitch: ctrl_chl=116, ctrl_ch2=0, cent_ch=116 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   39.142963] MtCmdSetTxRxPath: ctrl_chl=116, ctrl_ch2=0, cent_ch=116, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   39.352525] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   39.360667] MtCmdChannelSwitch: ctrl_chl=120, ctrl_ch2=0, cent_ch=120 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   39.386941] MtCmdSetTxRxPath: ctrl_chl=120, ctrl_ch2=0, cent_ch=120, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   39.596524] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   39.604644] MtCmdChannelSwitch: ctrl_chl=124, ctrl_ch2=0, cent_ch=124 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   39.630971] MtCmdSetTxRxPath: ctrl_chl=124, ctrl_ch2=0, cent_ch=124, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   39.840514] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   39.848594] MtCmdChannelSwitch: ctrl_chl=128, ctrl_ch2=0, cent_ch=128 DBDCIdx=0, ChBand=1, BW=0, TXStream=4, RXStream=4, scan(1)
    [   39.874854] MtCmdSetTxRxPath: ctrl_chl=128, ctrl_ch2=0, cent_ch=128, RxPath=f, BandIdx=0, ChBand=1, BW=0,TXStream=4, RXStream=15, scan(1)
    [   40.084444] ====================================================================
    [   40.091855] Channel  36 : Busy Time =   1737, Skip Channel = FALSE, BwCap = TRUE
    [   40.099254] Channel  40 : Busy Time =   1270, Skip Channel = FALSE, BwCap = TRUE
    [   40.106652] Channel  44 : Busy Time =    642, Skip Channel = FALSE, BwCap = TRUE
    [   40.114048] Channel  48 : Busy Time =    733, Skip Channel = FALSE, BwCap = TRUE
    [   40.121444] Channel  52 : Busy Time =     54, Skip Channel = FALSE, BwCap = TRUE
    [   40.128912] Channel  56 : Busy Time =     36, Skip Channel = FALSE, BwCap = TRUE
    [   40.136310] Channel  60 : Busy Time =     43, Skip Channel = FALSE, BwCap = TRUE
    [   40.143707] Channel  64 : Busy Time =      5, Skip Channel = FALSE, BwCap = TRUE
    [   40.151102] Channel 100 : Busy Time =    230, Skip Channel = FALSE, BwCap = TRUE
    [   40.158498] Channel 104 : Busy Time =    113, Skip Channel = FALSE, BwCap = TRUE
    [   40.165897] Channel 108 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   40.173292] Channel 112 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   40.180688] Channel 116 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   40.188084] Channel 120 : Busy Time =    307, Skip Channel = FALSE, BwCap = TRUE
    [   40.195480] Channel 124 : Busy Time =     11, Skip Channel = FALSE, BwCap = TRUE
    [   40.202875] Channel 128 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   40.210270] ====================================================================
    [   40.217672] Rule 3 Channel Busy time value : Select Primary Channel 108
    [   40.224285] Rule 3 Channel Busy time value : Min Channel Busy = 307
    [   40.230588] Rule 3 Channel Busy time value : BW = 160
    [   40.235644] [SelectClearChannelBusyTime] - band0 END
    [   40.240610] ApAutoChannelAtBootUp : Auto channel selection: Selected channel = 108, IsAband = 1
    [   40.249313]  [RadarStateCheck] RD_SILENCE_MODE
    [   40.254813] [DfsCacNormalStart][RDM] CAC 65 seconds start . Disable MAC TX
    [   40.261743] [DfsSwitchCheck]: DFS ByPass TX calibration.
    [   40.267143] mt7195_find_both_central_for_bw160() : BW_160 CtrlCh [108] CentCh [114]
    [   40.267143]  => PrimCentral [106] , SecCentral [122]
    [   40.279753] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   40.287820] mt7915_apply_dpd_flatness_data: DPD Pre-Cal finished, load DPD Pre-Cal data
    [   40.295885] MtCmdChannelSwitch: T/RX stream (4) should not be larger than 2 when BW160 is set
    [   40.305105] MtCmdChannelSwitch: ctrl_chl=108, ctrl_ch2=0, cent_ch=114 DBDCIdx=0, ChBand=1, BW=3, TXStream=4, RXStream=4, scan(0)
    [   40.349574] MtCmdSetTxRxPath: ctrl_chl=108, ctrl_ch2=0, cent_ch=114, RxPath=f, BandIdx=0, ChBand=1, BW=3,TXStream=4, RXStream=15, scan(0)
    [   40.362171] DfsBuildChannelList(): Done
    [   40.366034] zero_wait_dfs_switch_ch(): outband ch 0, ch_stat 0
    [   40.371865] ApAutoChannelAtBootUp<-----------------
    [   40.376749] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
    [   40.382857] Caller: RTMPSetHT+0x2d0/0x328 [mt_wifi]
    [   40.387750]
    [   40.387750] phy_mode=177, ch=108, wdev_type=1
    [   40.393588] ht_cap: ht_cap->HtCapInfo,
    [   40.397424] ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
    [   40.405080] ht_cap: ht_cap->HtCapParm,
    [   40.408916] mdpu_density=5, ampdu_factor=3
    [   40.413030] wifi_sys_linkup(), wdev idx = 0
    [   40.417219] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:287 for WDEV_TYPE:1
    [   40.417219]  LinkToOmacIdx = 0, LinkToWdevType = 1
    [   40.430155] TRTableInsertMcastEntry:band0 group_idx[0]=0
    [   40.504780] (bssUpdateChannel), ucPrimCh=108, ucCentChSeg0=114, ucCentChSeg1=0, BW=3, ucHetbRU26Disable=0, ucHetbAllDisable=1
    [   40.516087] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8320, CmdBssInfoBmcRate.u2McTransmit = 8320
    [   40.532520] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 0 (rai0)
    [   40.538882]  Band0 BcnInitedRnd = 45
    [   40.542667] MtCmdTxPowerSKUCtrl: tx_pwr_sku_en: 1, BandIdx: 0
    [   40.548481] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 1, BandIdx: 0
    [   40.554548] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
    [   40.561128] TxCCKStreamCtrl: set wrong parameters
    [   40.573183] set muru_update_he_cfg()!!!!
    [   40.577110] PrintSrCmd:
    [   40.577110] u1CmdSubId = 1, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
    [   40.577110] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
    [   40.591141] PrintSrCmd:
    [   40.591141] u1CmdSubId = 5, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
    [   40.591141] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 0
    [   40.605217] PrintSrCmd:
    [   40.605217] u1CmdSubId = 3, u1ArgNum = 0, u1DbdcIdx = 0, u1Status = 0
    [   40.605217] u1DropTaIdx = 0, u1StaIdx = 0, u4Value = 1
    [   40.619304] apidx 0 for WscUUIDInit
    [   40.622796] Generate UUID for apidx(0)
    [   40.626588] WDS_Init():wds_num[0]=0, count=0, MAX_WDS_ENTRY=16, if_idx=0, flg_wds_init=0
    [   40.634835] Total allocated 0 WDS(es) for band0!
    [   40.639469] mtk_ppe_dev_register_hook : ineterface rai0 register (2)
    [   40.646607] add tx_src: 04:ab:18:**:**:7a
    [   40.651354] add tx_src: 02:ab:18:bf:04:7a
    [   40.655765] no net device found for rai1 or apclii0
    [   40.660732] no net device found for rai2 or apclii0
    [   40.660976] device rai0 entered promiscuous mode
    [   40.661010] br-lan: port 3(rai0) entered forwarding state
    [   40.661028] br-lan: port 3(rai0) entered forwarding state
    [   40.682128] no net device found for rai3 or apclii0
    [   40.688026] no net device found for rai4 or apclii0
    [   40.693014] no net device found for rai5 or apclii0
    [   40.698259] no net device found for rai6 or apclii0
    [   40.703561] no net device found for rai7 or apclii0
    [   40.708534] no net device found for rai8 or apclii0
    [   40.710292] mtk_ppe_dev_register_hook : rai0 has been registered in wifi_hook_if table[2]
    [   40.721882] no net device found for rai9 or apclii0
    [   40.726849] no net device found for rai10 or apclii0
    [   40.731917] no net device found for rai11 or apclii0
    [   40.737294] no net device found for rai12 or apclii0
    [   40.742363] no net device found for rai13 or apclii0
    [   40.749907] no net device found for rai14 or apclii0
    [   40.754998] no net device found for rai15 or apclii0
    [   41.039699] Enable GAS service for MBSSID[0]
    [   41.054275] Enable GAS service for MBSSID[0]
    [   41.059399] Unknow Parameter:8
    [   41.063092] Unknow Parameter:0
    [   42.664305] br-lan: port 3(rai0) entered forwarding state
    [   46.279069] Set_MapR2_Proc: MAP R2 is enabled
    [   46.285398] Set_MapTS_Proc: MAP TS is enabled
    [   46.295775] Set_MapR2_Proc: MAP R2 is enabled
    [   46.302083] Set_MapTS_Proc: MAP TS is enabled
    [   52.624173] Enable GAS service for MBSSID[0]
    [   52.628953] Enable GAS service for MBSSID[0]
    [   52.633252] Unknow Parameter:8
    [   52.753311] Unknow Parameter:0
    [   52.756408] Unknow Parameter:1
    [   52.759457] Unknow Parameter:2
    [   52.762873] Unknow Parameter:3
    [   52.765998] Set_AP_VENDOR_SPECIFIC_IE: Unknown OUIType = 16
    [   52.771757] Set_AP_VENDOR_SPECIFIC_IE: Unknown OUIType = 9
    [   52.777431] set_wapp_cmm_ie: Unknown IE(EID = 111)
    [   52.782491] set_wapp_cmm_ie: Unknown IE(EID = 110)
    [   52.787397] Set_HotSpot_OnOff ==> wdev[0] is already in [OFF] STATE , skip.
    [   52.797776] Set_Fh_Bss_Proc ra0 wdev->MAPCfg.DevOwnRole 0x0
    [   52.806929] Set_Fh_Bss_Proc ra0 wdev->MAPCfg.DevOwnRole 0x20
    [   52.819994] Set_Fh_Bss_Proc rai0 wdev->MAPCfg.DevOwnRole 0x0
    [   52.829269] Set_Fh_Bss_Proc rai0 wdev->MAPCfg.DevOwnRole 0x20
    [  107.040560] [DfsCacEndUpdate][RDM] CAC end. Enable MAC TX.
    
    

BSH-G24MB

OpenWrtにrealtek targetが追加され、スイッチングハブでOpenWrtが動くという目新しさから一気にハマってしまい、サポートされるSoCを搭載する機種を探し見つけたもの。
当初は8ポートモデルで考えていたが、中古を色々見て回っているうちに24ポートのこの機種を見つけてしまい、半ば衝動的に購入してしまった。
弄っていくのでメモ。
UART -> JP2: 筐体リア側から3.3V, TX, RX, GND

U-Boot

help

BSH-GSXXN# help
?       - alias for 'help'
base    - print or set address offset
boardid - boardid  - Get/Set board model id

boota   - boota  - boot application image from one of dual images partition automatically

bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
env     - environment handling commands
erase   - erase FLASH memory
flerase - Erase flash partition
flinfo  - print FLASH memory information
flshow  - Show flash partition layout
go      - start application at address 'addr'
help    - print command description/usage
iminfo  - print header information for application image
loadb   - load binary file over serial line (kermit mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing address)
mtest   - simple RAM read/write test
mw      - memory write (fill)
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
printsys- printsys - print system information variables

protect - enable or disable FLASH write protection
reset   - Perform RESET of the CPU
rtk     - rtk     - Realtek commands

run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
savesys - savesys - save system information variables to persistent storage

setenv  - set environment variables
setsys  - setsys  - set system information variables

sf      - SPI flash sub-system
sleep   - delay execution for some time
tftpboot- boot image via network using TFTP protocol
upgrade - Upgrade loader or runtime image
version - print monitor, compiler and linker version

version

BSH-GSXXN# version

U-Boot Version 2.2.1 (Jan 18 2019 - 16:25:47)
mips-linux-uclibc-gcc (GCC) 3.4.4 mipssde-6.03.00-20051020
GNU ld version 2.15.94 mipssde-6.03.00-20051020

printenv

BSH-GSXXN# printenv
baudrate=115200
boardmodel=BSH-G24MB
bootcmd=boota
bootdelay=3
botpartition=0
diagmode=4
ethact=rtl8380#0
ethaddr=34:76:C5:**:**:A8
file_linux=vmlinux.bix
file_linux2=vmlinux.bix
file_uboot=u-boot.bin
fileaddr=81000000
filesize=45A1C
flashoffset_env=0x80000
flashoffset_linux=0x2a0000
flashoffset_linux2=0x950000
flashoffset_uboot=0x0
freemem=0x81000000
ipaddr=11.0.10.208
load_addr=0xb42a0000
nuke_env=sf probe 0; sf erase $(flashoffset_env) +$(ssize_env)
rtkon=rtk network on;ping $(serverip)
serverip=11.0.10.240
ssize_env=0x10000
ssize_linux=0x6b0000
ssize_linux2=0x6b0000
ssize_uboot=0x80000
stderr=serial
stdin=serial
stdout=serial
up_linux=sf probe 0;sf read $(freemem) $(flashoffset_linux) $(ssize_linux);bootm $(freemem)
update_linux=tftp $(freemem) $(file_linux);sf probe 0;sf erase $(flashoffset_linux) $(ssize_linux);sf write $(fileaddr) $(flashoffset_linux) $(ssize_linux)
update_linux2=tftp $(freemem) $(file_linux2);sf probe 0;sf erase $(flashoffset_linux2) $(ssize_linux2);sf write $(fileaddr) $(flashoffset_linux2) $(ssize_linux2)
update_uboot=tftp $(freemem) $(file_uboot);sf probe 0;sf erase $(flashoffset_uboot) $(ssize_uboot);sf write $(fileaddr) $(flashoffset_uboot) $(ssize_uboot)

Environment size: 1273/65532 bytes

printsys

BSH-GSXXN# printsys
resetdefault=0
resetdflt=1
dualfname1=SS4024T-Zi_0.2.2_Beta.image
dualfname0=BSH-G24MB_v1.1.0.image
bootpartition=0
boardid=247
mac_end=34:76:C5:**:**:A9
mac_start=34:76:C5:**:**:A8
System information size: 182/14336 bytes

flshow

BSH-GSXXN# flshow
=============== FLASH Partition Layout ===============
Index  Name       Size       Address
------------------------------------------------------
0     LOADER     0x80000    0xb4000000-0xb407ffff
1     BDINFO     0x10000    0xb4080000-0xb408ffff
2     SYSINFO    0x10000    0xb4090000-0xb409ffff
3     JFFS2_CFG  0x100000   0xb40a0000-0xb419ffff
4     JFFS2_LOG  0x100000   0xb41a0000-0xb429ffff
5     RUNTIME1   0x6b0000   0xb42a0000-0xb494ffff
6     RUNTIME2   0x6b0000   0xb4950000-0xb4ffffff
======================================================

help rtk

BSH-GSXXN# help rtk
rtk - rtk     - Realtek commands

Usage:
rtk object action
- SOC commands.
rtk network on
- Enable the networking function
rtk netowkr off
- Disable the networking function
rtk testmode [mode] [port]
- Set default value for specific testing
rtk ext-pinGet [pinNum]
- get external 8231 GPIO pin status
rtk ext-pinSet [pinNum] [status]
- set external 8231 GPIO pin status
rtk smi list
- list all smi group
rtk smi init [group_id] [sck_pin] [sda_pin] [8/16 access type] [chipid] [delay] [name]
- create a smi group and init
rtk smi read [group_id] [reg]
rtk smi write [group_id] [reg] [data]
rtk pinGet [pinNum]
- get internal GPIO pin status
rtk pinSet [pinNum] [status]
- set internal GPIO pin status
rtk poe probe
- probe poe device
rtk ledtest [port] [led_index]
- led test
rtk loopback ext [port-start] [port-end] [round]
- port traffic external loopback test
rtk loopback int [port-start] [port-end] [round]
- port traffic internal loopback test

tftpboot

BSH-GSXXN# tftpboot
*** Warning: no boot file name; using 'D00A000B.img'
Using rtl8380#0 device
TFTP from server 11.0.10.240; our IP address is 11.0.10.208
Filename 'D00A000B.img'.
Load address: 0xb4100000
Loading: *

Kernel

コンソールにパスワードが掛けられている。WebUI/Telnetのログイン情報として設定されたものがシリアルコンソールにも適用される模様。

uname -a

# uname -a
Linux (none) 2.6.19 #4 PREEMPT Mon Nov 18 11:38:40 CST 2019 mips unknown

cat /proc/version

# cat /proc/version
Linux version 2.6.19 (*****@*****-AutoBuildVM) (gcc version 3.4.4 mipssde-6.03.00-20051020) #4 PREEMPT Mon Nov 18 11:38:40 CST 2019

cat /proc/cpuinfo

# cat /proc/cpuinfo
system type             : RTL8380
processor               : 0
cpu model               : MIPS 4KEc V7.0
BogoMIPS                : 498.07
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16
VCED exceptions         : not available
VCEI exceptions         : not available

cat /proc/meminfo

# cat /proc/meminfo
MemTotal:       127384 kB
MemFree:         82096 kB
Buffers:          1880 kB
Cached:          22464 kB
SwapCached:          0 kB
Active:          11740 kB
Inactive:        15964 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:        3396 kB
Mapped:           2500 kB
Slab:                0 kB
SReclaimable:        0 kB
SUnreclaim:          0 kB
PageTables:        316 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:     63692 kB
Committed_AS:     6072 kB
VmallocTotal:  1048404 kB
VmallocUsed:     13124 kB
VmallocChunk:  1034276 kB

cat /proc/mtd

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00010000 "LOADER"
mtd1: 00010000 00010000 "BDINFO"
mtd2: 00010000 00010000 "SYSINFO"
mtd3: 00100000 00010000 "JFFS2 CFG"
mtd4: 00100000 00010000 "JFFS2 LOG"
mtd5: 006b0000 00010000 "RUNTIME"
mtd6: 006b0000 00010000 "RUNTIME2

diag -> ?

# diag
RTK.0>
exit             - exit diag shell
chip             - chip configure
debug            - debug configuration
eee              - EEE configuration
eeep             - EEEP configuration
flowctrl         - flowctrl configuration
l2-table         - l2 table configuration
l3               - l3 configuration
led              - LED configuration
mib              - mib configuration
mirror           - mirror configuration
rspan            - RSPAN configuration
sflow            - sFlow configuration
nic              - NIC configuration
oam              - OAM configuration
port             - port configuration
qos              - QoS configuration
bandwidth        - bandwidth configuration
storm-control    - storm-control configuration
register         - register configuration
vlan             - VLAN configuration
security         - security configuration
stp              - stp configuration
switch           - switch configuration
time             - time configuration
trap             - trap configuration
trunk            - trunk configuration
acl              - ACL configuration
field-selector   - field selector configuration
range-check      - range check configuration
mpls             - MPLS configuration
diag             - diag configuration
rtl8231          - rtl8231 configuration
ext-gpio         - external GPIO configuration
ext-smi          - Extensional SMI configuration
gpio             - internal GPIO configuration
smi              - SMI configuration
uart1            - uart1 configuration

bootlog


U-Boot Version 2.2.1 (Jan 18 2019 - 16:25:47)

Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHz
DRAM:  128 MB
SPI-F: 1x16 MB
Loading 65536B env. variables from offset 0x80000
Switch Model: BSH-G24MB (Port Count: 24)
Switch Chip: RTL8382M
####VERSION IS NEW ####
###START LED SETTING ###
**************************************************
#### RTL8218B config - MAC ID = 0 ####
Now External 8218B
**************************************************
#### RTL8218B config - MAC ID = 8 ####
Now Internal PHY
**************************************************
#### RTL8218B config - MAC ID = 16 ####
Now External 8218B

####-PHY POWER OFF-####

####-PHY POWER OFF-####
Net:   Net Initialization Skipped
rtl8380#0
Hit any key to stop autoboot:  0
## Booting image from partition ... 0
## Booting kernel from Legacy Image at 81000000 ...
Image Name:   1.1.0
Created:      2019-11-18  11:38:58 UTC
Image Type:   MIPS Linux Kernel Image (gzip compressed)
Data Size:    6665728 Bytes = 6.4 MB
Load Address: 80000000
Entry Point:  8026d000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.19 (*****@*****-AutoBuildVM) (gcc version 3.4.4 mipssde-6.03.00-20051020) #4 PREEMPT Mon Nov 18 11:38:40 CST 2019
CPU revision is: 00019070
Determined physical RAM map:
memory: 08000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 08000000 @ 00000000 (usable)
Built 1 zonelists.  Total pages: 32512
Kernel command line: console=ttyS0,115200 mem=128M
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 121728k/131072k available (2057k kernel code, 9288k reserved, 423k data, 5600k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  available.
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
squashfs: version 3.3 (2007/10/31) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 31) is a 16550A
loop: loaded (max 8 devices)
Probe: SPI CS1 Flash Type MX25L12845E
Creating 7 MTD partitions on "Total SPI FLASH":
0x00000000-0x00080000 : "LOADER"
0x00080000-0x00090000 : "BDINFO"
0x00090000-0x000a0000 : "SYSINFO"
0x000a0000-0x001a0000 : "JFFS2 CFG"
0x001a0000-0x002a0000 : "JFFS2 LOG"
0x002a0000-0x00950000 : "RUNTIME"
0x00950000-0x01000000 : "RUNTIME2"
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Freeing unused kernel memory: 5600k freed
Mount DEV File System....OK
Mount PROC File System........OK
Mount Main SQFS File System........OK
Mount Module SQFS File System....OK
Mount CFG JFFS2 File System....OK
Mount LOG JFFS2 File System....OK
Init RTCORE Driver Module....OK
Init RTK Driver Module....OK
Init Board Configuration Module....OK
Init SYS NIC Driver Module....OK
Init RTDRV Driver Module....OK
Init KSI Core Driver Module....OK
Init SKI Core Driver Module....OK
Init Board Module....OK
Init VLAN Aware Module....OK
Init Board Vendor Module....OK
Init Switch STP Module....OK
Init Switch AUTHMGR Module....OK
Init Switch LACP Module....OK
Init Switch Multicast Module....OK
Init Switch LLDP Module....OK
Init Custom Module....OK

ReadLine version 5.2

====== copy plaint backup file to backup file  ======

====== Defaults Initial [Start] ======
Init Switch Factory Default....OK
Init VLAN Factory Default....OK
Init Mirror Factory Default....OK
Init L2 Factory Default....OK
Init Trunk Factory Default....OK
Init Rate Factory Default....OK
Init QoS Factory Default....OK
Init LACP Factory Default....OK
Init EEE Factory Default....OK
Init IGMP Factory Default....OK
Init MLD Factory Default....OK
Init STP Factory Default....OK
Init LLDP Factory Default....OK
Jan  1 00:00:16 dhcpcd[137]: broadcasting DHCP_DISCOVER

Init System Factory Default....OK
Init SNMP Factory Default....OK
Init Port Factory Default....OK
Init Syslog Factory Default....OK
Init AAA Factory Default....OK
Init Auth Manager Factory Default....OK
Init Radius Factory Default....OK
Got button default reset reboot!
Init Custom Factory Default....OK
Init FW Auto Upgrade Factory Default....OK
====== Defaults Initial [Done] ======

====== Initial from startup-config [Start] ======
/proc/poe_dir/poe_mode_set: cannot create
====== Initial from startup-config [Done] ======

====== Post Initial [Start] ======
Jan  1 00:00:23 dhcpcd[137]: [truncated] m

Press any key to continue
starting IOQCHG:

AML2-17GPファームウェア投入メモ

WebUIからOpenWrtのsysupgradeイメージを投入できるよう仕立てたが、Flashに書き込み終わって再起動された際にmtdsplitが機能せずrootfsパーティションが作られず、その結果RootFSを見つけられずpanicしてbootloopを起こした。

...
[    0.970338] Initializing rtl838x_nor_driver
[    0.975193] SPI resource base is b8001200
[    0.979777] Address mode is 4 bytes
[    0.983749] rtl838x_nor_init called
[    0.991205] rtl838x-nor b8001200.spi: mx25l25635e (32768 Kbytes)
[    0.998149] 7 fixed-partitions partitions found on MTD device rtl838x_nor
[    1.005833] Creating 7 MTD partitions on "rtl838x_nor":
[    1.011779] 0x000000000000-0x000000080000 : "u-boot"
[    1.019751] 0x000000080000-0x000000090000 : "u-boot-env"
[    1.028148] 0x000000090000-0x0000000a0000 : "u-boot-env2"
[    1.036732] 0x0000000a0000-0x0000004a0000 : "jffs2_cfg"
[    1.045112] 0x0000004a0000-0x0000005a0000 : "jffs2_log"
[    1.053442] 0x0000005a0000-0x0000012d0000 : "firmware"
[    1.084954] 0x0000012d0000-0x000002000000 : "runtime2"
...
[   11.629366] /dev/root: Can't open blockdev
[   11.634091] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[   11.642523] Please append a correct "root=" boot option; here are the available partitions:
[   11.651950] 0100            4096 ram0
[   11.651961]  (driver?)
[   11.658860] 0101            4096 ram1
[   11.658869]  (driver?)
[   11.665812] 0102            4096 ram2
[   11.665823]  (driver?)
[   11.672774] 0103            4096 ram3
[   11.672785]  (driver?)
[   11.679744] 0104            4096 ram4
[   11.679754]  (driver?)
[   11.686659] 0105            4096 ram5
[   11.686668]  (driver?)
[   11.693612] 0106            4096 ram6
[   11.693622]  (driver?)
[   11.700580] 0107            4096 ram7
[   11.700591]  (driver?)
[   11.707488] 0108            4096 ram8
[   11.707497]  (driver?)
[   11.714396] 0109            4096 ram9
[   11.714406]  (driver?)
[   11.721350] 010a            4096 ram10
[   11.721360]  (driver?)
[   11.728415] 010b            4096 ram11
[   11.728425]  (driver?)
[   11.735420] 010c            4096 ram12
[   11.735429]  (driver?)
[   11.742424] 010d            4096 ram13
[   11.742434]  (driver?)
[   11.749474] 010e            4096 ram14
[   11.749484]  (driver?)
[   11.756541] 010f            4096 ram15
[   11.756551]  (driver?)
[   11.763553] 1f00             512 mtdblock0
[   11.763563]  (driver?)
[   11.770954] 1f01              64 mtdblock1
[   11.770962]  (driver?)
[   11.778356] 1f02              64 mtdblock2
[   11.778365]  (driver?)
[   11.785802] 1f03            4096 mtdblock3
[   11.785812]  (driver?)
[   11.793263] 1f04            1024 mtdblock4
[   11.793273]  (driver?)
[   11.800717] 1f05           13504 mtdblock5
[   11.800727]  (driver?)
[   11.808171] 1f06           13504 mtdblock6
[   11.808181]  (driver?)
[   11.815571] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   11.824795] Rebooting in 1 seconds..
[   12.824155] System restart.

恐らく、WebUIから投げ込まれた際uImageのプロパティをチェックしており、ヘッダ内に格納されているデータサイズに従ってそのサイズをFlashに書き込むと思われる。

realtek targetのu-boot-env関連メモ

現状realtek targetに存在するRealtek SoCを搭載するスイッチではU-Bootの環境変数用パーティションが二つ存在している。

  • “BDINFO”
  • “SYSINFO”

このうち1つ目は通常のramipsやath79など他と同様のU-Boot環境変数を抱えるパーティションであるが、2つ目はブートするパーティションを切り替える変数などを抱える、1つ目とは異なる環境変数用パーティションとなっている。
この記事を書いた時点では、OpenWrtでは1つ目を “u-boot-env”、2つ目を “u-boot-env2” と名付け、またfw_printenvのほかに2つ目のパーティション用に “fw_printsys” / “fw_setsys” コマンド(内部的にはconfigを指定してfw_printenv/fw_setenvを呼び出す)により設定の変更が行えるようにする方針の模様(commit)。また、1つ目のパーティションはread-onlyでも良いが、2つ目はブートするパーティションを切り替えられるようread-onlyは付けない方針の模様(commit)。