タグ: RTL8367S

WSR-2533DHP2 進捗報告

長らくRTL8367Sがどうにもできずに放置に近い状態になってしまっていたが、TL-R600VPN v4でRTL8367Sに再会したのをきっかけに作業を行い、だいぶ進捗を出せたので記録として。

WSR-2533DHP2仕様

  • SoC: MediaTek MT7622B
    • ARM Cortex-A53 (aarch64)
    • 1.35GHz, 2C2T
  • RAM: DDR3 256MiB
  • Flash: NAND 128MiB
  • Ethernet: 10/100/1000
    • Realtek RTL8367S
  • WLAN: 2.4/5GHz 4T4R
    • 2.4GHz: SoC (MT7622B)
    • 5GHz: MT7615

OpenWrtと絡めた雑感

targetが成熟途中
MT7622はmediatek targetの “mt7622” subtargetに属するが、mediatek target全体としてまだramipsやar71xx/ath79のような程度の成熟度合いには遠い印象。ウォッチしていると、既存デバイスのDTSの内容がコロコロ変わる。
イーサネットスイッチのノードでcompatibleの関連付けが全く違うものに変更されたときは愕然とした。(たぶん計画段階とは違うものをボードの正式版で載せた為だろう)
RTL8367Sスイッチのサポートが無くて厳しい
WSR-2533DHP2は上記仕様のとおりRTL8367Sスイッチを搭載する。このスイッチはSoCなどコントローラとの接続において、RGMIIやSGMIIのほか、2.5Gbpsでの通信が可能なHSGMIIに対応する。OpenWrtでは、このスイッチをサポートするドライバが記事を書いた時点で存在していない。
サポートを追加するpatchは投げられているが、reviewに対してauthorの反応が無く、マージされるか非常に怪しい。(また、そのpatchではRGMIIのサポートしか追加されていないためWSR-2533DHP2では不足)
RTL8367Sスイッチを搭載するデバイスが他になくて色々厳しい
正確には、WSR-2533DHP2のサポート作業を始めた当初は同じと思われるノードが記述されていたが、後になってMediaTek MT753xに変更された。現状他にRTL8367S系のスイッチを搭載するボードはOpenWrt内に存在せず、ネットワーク周りの構成が参考にできない。

サポート作業進捗状況

項目 状態 備考
Kernelバージョン 5.4 4.19では、MT7622のイーサネット周辺の実装に問題があるようで、大量のbackportが必要となりconflictを起こしやすいため。Kernel 5.4では修正済みの模様であることから、そちらのみを使用。作業開始当初は4.14だったことを考えると、遠くまで来たものだ。
initramfsでのブート OK
NAND Flashの認識 OK Kernel 5.4ではraw NANDのサポートの有効化に必要なconfigが変更されており、なかなかNAND Flashの認識を有効化できず手間取った。
MT7622 GMACの認識/動作 OK 上記の通り、修正が行われた状態のため見た範囲では動作に問題無し。2.5GbpsのHSGMIIでもしっかり動作。
RTL8367S
  • 認識: OK
  • HSGMII: OK
  • VLAN: OK
TP-Link TL-R600VPN v4を最近購入し、それのGPLソースコードを基にOpenWrtに既存のRTL8367Bドライバ (RTL8367RB, RTL8367R-VB) へRTL8367Sのサポートを追加した。ベースとしては、前述の既に投げられているRGMIIのみのpatchと、以前やり取りして行われたhauke氏による追加の改変を利用した。
sysupgradeでのブート WIP

当初KernelのみTRXに押し込みRootFSはUBIで持たせることを考えたが、Kernelをブートできずエラーも無しに止まってしまうためTRXにすべて押し込むことでブートはできるようになった。
ただし、Flashからブートした場合RTL8367Sのprobeに失敗する。RESET線か電源線の問題と予想。
SoC内蔵無線機能の認識 保留 いずれやる必要はあるが、優先度は低く、他に重要な問題が上記の通り在るので後回し。

以上。引き続き頑張る。

余談: NATをLAN -> WANで計測したところ、Netfilter Flow Offloadingの有無にかかわらず750Mbps超出ていた。その状態でもCPUのidleは平均63%ほどだった。(Flow Offloadingが機能していないような気もする?)

WSR-2533DHP2 RTL8367Sレジスタメモ

BYPASS_LINE_RATE (0x03F7): 0x0000
	BYPASS_PORTx_CONSTRAINT: all off

CHIP_VER (0x1301): 0x00A0
	AFE_VERSION: 0
	MODEL_ID: 10 (0xA)
	MCID: 0
	VERID: 0

CHIP_DEBUG0 (0x1303): 0x06D6
	SLR_EXT0: No
	SLR_EXT1: Yes
	SLR_OTHER: Yes
	DRI_EXT0: No
	DRI_EXT1: Yes
	DRI_EXT0_RG: No
	DRI_EXT1_RG: Yes
	DRI_OTHER: Yes
	SEL33_EXT0: No
	SEL33_EXT1: Yes
	SEL33_EXT2: Yes

CHIP_DEBUG1 (0x1304): 0x0700
	RG0_DP: 0
	RG0_DN: 0
	RG1_DP: 7
	RG1_DN: 0

CHIP_DEBUG2 (0x13E2): 0x003F
	SLR_EXT2: Yes
	DRI_EXT2: Yes
	DRI_EXT2_RG: Yes
	RG2_DP: 7
	RG2_DN: 0

DIGITAL_INTERFACE_SELECT (0x1305): 0xC0A0
	SELECT_GMII_0: Disable
	SELECT_GMII_1: HSGMII
	SKIP_MII_0_RXER: No
	SKIP_MII_1_RXER: No
	ORG_CRS: Yes
	ORG_COL: Yes

DIGITAL_INTERFACE_SELECT_1 (0x13C3): 0x0001
	SELECT_GMII_2: RGMII
	SKIP_MII_2_RXER: No

EXT0_RGMXF (0x1306): 0x0004
	EXT0_RGMXF_RXDELAY: 4
	EXT0_RGMXF_TXDELAY: No
	EXT0_RGRX_INV: No
	EXT0_RGTX_INV: No

EXT1_RGMXF (0x1307): 0x0004
	EXT1_RGMXF_RXDELAY: 4
	EXT1_RGMXF_TXDELAY: No
	EXT1_RGRX_INV: No
	EXT1_RGTX_INV: No

EXT2_RGMXF (0x13C5): 0x000B
	EXT2_RGMXF_RXDELAY: 3
	EXT2_RGMXF_TXDELAY: Yes
	EXT2_RGRX_INV: No
	EXT2_RGTX_INV: No

DIGITAL_INTERFACE0_FORCE (0x1310): 0x0000
	SPEED: 10M
	DUPLEX: Half
	LINK: Down
	RX_PAUSE: No
	TX_PAUSE: No
	NWAY: No
	MST_MODE: No
	MST_FAULT: No
	MODE: No

DIGITAL_INTERFACE1_FORCE (0x1311): 0x1076
	SPEED: 1000M
	DUPLEX: Full
	LINK: UP
	RX_PAUSE: Yes
	TX_PAUSE: Yes
	NWAY: No
	MST_MODE: No
	MST_FAULT: No
	MODE: Yes (force)

DIGITAL_INTERFACE2_FORCE (0x13C4): 0x1076
	SPEED: 1000M
	DUPLEX: Full
	LINK: UP
	RX_PAUSE: Yes
	TX_PAUSE: Yes
	NWAY: No
	MST_MODE: No
	MST_FAULT: No
	MODE: Yes (force)

EXT_TXC_DLY (0x13F9): 0x0090
	EXT0_RGMII_TX_DELAY: 0
	EXT1_RGMII_TX_DELAY: 2
	EXT2_RGMII_TX_DELAY: 2
	EXT0_GMII_TX_DELAY: 0
	EXT1_GMII_TX_DELAY: 0

SDS_MISC (0x1D11): 0x7F00
	CFG_SDS_MODE_18C: 0
	CFG_INB_SEL: 0
	CFG_MAC8_SEL_SGMII: No
	CFG_SGMII_SPD: 1000M
	CFG_SGMII_LINK: UP
	CFG_SGMII_FDUP: Full
	CFG_MAC8_SEL_HSGMII: Yes
	INB_ARB: 1
	CFG_SGMII_TXFC: Yes
	CFG_SGMII_RXFC: Yes

TL-R600VPN v4

貴重な有線機であり、だいぶ前から気になっていた機種。今回ようやく購入できた。OpenWrtでのサポートのため、弄っていく。
なお、v3はRealtek SoC搭載。

Switch

初期構成

zone WAN1 WAN2 LAN
port
(TL-R600VPN v4)
WAN WAN/LAN LAN
port
(RTL8367S)
port0 port1 port2 port3 port4

MAC

  • LAN: 74:DA:88:xx:xx:CD (tddp, option macaddr (text))
  • WAN1: 74:DA:88:xx:xx:CE
  • WAN2: 74:DA:88:xx:xx:CF
  • WAN3: 74:DA:88:xx:xx:D0
  • WAN4: 74:DA:88:xx:xx:D1

U-Boot

ブート中 Hit Ctrl+B to stop autoboot: が表示されたタイミングで Ctrl + B で中断させU-Bootに入れる。

  • help
    “RTK …” 周辺でだいぶ崩壊している。

    ath> help
    ?       - alias for 'help'
    autoscr - run script from memory
    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
    bootp   - boot image via network using BootP/TFTP protocol
    cmp     - memory compare
    coninfo - print console devices and information
    cp      - memory copy
    crc32   - checksum calculation
    echo    - echo args to console
    erase   - erase FLASH memory
    ethreg  - Switch/PHY Reg rd/wr  utility
    exit    - exit script
    flinfo  - print FLASH memory information
    go      - start application at address 'addr'
    help    - print online help
    iminfo  - print header information for application image
    itest   - return true/false on integer compare
    loadb   - load binary file over serial line (kermit mode)
    loady   - load binary file over serial line (ymodem mode)
    loop    - infinite loop on address range
    mct   - simple RAM test
    md      - memory display
    mii     - MII utility commands
    mm      - memory modify (auto-incrementing)
    mtest   - simple RAM test
    mw      - memory write (fill)
    nfs     - boot image via network using NFS protocol
    nm      - memory modify (constant address)
    ping    - send ICMP ECHO_REQUEST to network host
    printenv- print environment variables
    progmac - Set ethernet MAC addresses
    progmac2 - Set ethernet MAC addresses
    protect - enable or disable FLASH write protection
    rarpboot- boot image via network using RARP/TFTP protocol
    RTK asic register commandsreset   - Perform RESET of the CPU
    RTK asic register commandsRTK Switch InitRTK led commandsRTK phy register commandsRTK Port MIB counter commandsRTK SMI debugrun     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    sleep   - delay execution for some time
    test    - minimal test like /bin/sh
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version
    

  • version
    ath> version
    
    U-Boot 1.1.4--LSDK-10.2-00082-4 (Jun 11 2018 - 13:40:45)
    

  • printenv
    ath> printenv
    bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),14528k(rootfs),1408k(uImage),64k(mib0),64k(ART)
    bootcmd=bootm 0x9f040000
    bootdelay=1
    baudrate=115200
    ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
    ipaddr=192.168.1.1
    serverip=192.168.1.10
    dir=
    lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
    lf=tftp 0x80060000 ${dir}board956x${bc}-jffs2&&erase 0x9f050000 +0xE30000&&cp.b $fileaddr 0x9f050000 $filesize
    lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9fe80000 +$filesize&&cp.b $fileaddr 0x9fe80000 $filesize
    stdin=serial
    stdout=serial
    stderr=serial
    ethact=eth0
    
    Environment size: 688/65532 bytes
    

  • help rtk_asic_reg
    ath> help rtk_asic_reg
    rtk_asic_reg read   <addr>  <reg>         - read asic register <reg> 
    rtk_asic_reg write  <addr>  <reg> <data>  - write asic register <reg>  with value <data> 
    

  • help rtk_port_stat
    ath> help rtk_port_stat
    rtk_port_stat show <port>       - show MIB counter of port <port> 
    rtk_port_stat reset <port>      - reset MIB counter of port <port> 
    rtk_port_stat reset all        - reset MIB counter of all ports
    

  • help rtk_phy_reg
    ath> help rtk_phy_reg
    rtk_phy_reg read   <addr>  <reg>         - read phy <addr>  register <reg> 
    rtk_phy_reg write  <addr>  <reg>  <data>  - write phy <addr>  register <reg>  with value <data> 
    


    例:

    ath> rtk_phy_reg read 0 0
    AsicPHYReg READ 0 : phy 0 reg 0x0 value 0x1140
    

  • help rtk_smi_debug
    ath> help rtk_smi_debug
    rtk_smi_debug  { off | on }   - Debug info OFF/ON
    

  • help rtk_init
    ath> help rtk_init
    rtk_init  { off | on }   - Debug info OFF/ON
    

  • help rtk_led
    ath> help rtk_led
    rtk_led <pin>  <value>         - ouput <value>  to <pin>
    

  • mii device
    ath> mii device
    MII devices: 'eth0' 
    Current device: 'eth0'
    

  • md.l 0x18070000 1
    ath> md.l 0x18070000 1
    18070000: 0003c041    ...A
    

  • md.l 0x18050048 1
    ath> md.l 0x18050048 1
    18050048: 03000101    ....
    

Kernel

パスワードを要求されるため、コンソールにログインできない。-> 雑に弄ってたら入れた。

  • uname -a
    root@TL-R600VPN:~# uname -a
    Linux TL-R600VPN 3.3.8 #1 Thu Jan 31 17:15:52 CST 2019 mips GNU/Linux
    

  • cat /proc/version
    root@TL-R600VPN:~# cat /proc/version
    Linux version 3.3.8 (*****@*****) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r1824) ) #1 Thu Jan 31 17:15:52 CST 2019
    

  • cat /proc/cpuinfo
    root@TL-R600VPN:~# cat /proc/cpuinfo
    system type             : Qualcomm Atheros QCA956X rev 0
    machine                 : TP-LINK TL-R600VPN-V4
    processor               : 0
    cpu model               : MIPS 74Kc V5.0
    BogoMIPS                : 373.55
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0a50, 0x01a8, 0x0a40]
    ASEs implemented        : mips16 dsp
    shadow register sets    : 1
    kscratch registers      : 0
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/meminfo
    root@TL-R600VPN:~# cat /proc/meminfo
    MemTotal:         126480 kB
    MemFree:           83548 kB
    Buffers:            4500 kB
    Cached:            16072 kB
    SwapCached:            0 kB
    Active:            15916 kB
    Inactive:           8664 kB
    Active(anon):       4496 kB
    Inactive(anon):     1468 kB
    Active(file):      11420 kB
    Inactive(file):     7196 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:          4028 kB
    Mapped:             3700 kB
    Shmem:              1956 kB
    Slab:              10736 kB
    SReclaimable:       2372 kB
    SUnreclaim:         8364 kB
    KernelStack:        1024 kB
    PageTables:          464 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       63240 kB
    Committed_AS:      18144 kB
    VmallocTotal:    1048372 kB
    VmallocUsed:        1708 kB
    VmallocChunk:    1016964 kB
    

  • cat /proc/mtd
    root@TL-R600VPN:~# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00040000 00010000 "bootloader"
    mtd1: 00150000 00010000 "kernel"
    mtd2: 00ba0000 00010000 "rootfs"
    mtd3: 00010000 00010000 "device-info"
    mtd4: 00010000 00010000 "support-list"
    mtd5: 00010000 00010000 "firmware-info"
    mtd6: 00010000 00010000 "tddp"
    mtd7: 00020000 00010000 "log"
    mtd8: 00200000 00010000 "rootfs_data"
    mtd9: 01000000 00010000 "firmware"
    

  • cat /sys/kernel/debug/gpio
    root@TL-R600VPN:~# cat /sys/kernel/debug/gpio
    GPIOs 0-22, ath79:
     gpio-1   (SYS_LED             ) out hi
     gpio-5   (LED_ENABLE          ) out lo
     gpio-10  (reset               ) in  hi
    

  • mount
    root@TL-R600VPN:~# mount
    rootfs on / type rootfs (rw)
    /dev/root on /rom type squashfs (ro,relatime)
    proc on /proc type proc (rw,noatime)
    sysfs on /sys type sysfs (rw,noatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
    root on /tmp/root type tmpfs (rw,noatime,mode=755)
    overlayfs:/tmp/root on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/tmp/root)
    /dev/mtdblock8 on /tmp/userconfig type jffs2 (rw,relatime)
    tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
    devpts on /dev/pts type devpts (rw,relatime,mode=600)
    debugfs on /sys/kernel/debug type debugfs (rw,noatime)
    

  • swconfig dev switch0 reg get 0x1310/0x1311/0x13c4
    root@TL-R600VPN:~# swconfig dev switch0 reg get 0x1310
    reg:0x1310   value:[0x0]
    
    root@TL-R600VPN:~# swconfig dev switch0 reg get 0x1311
    reg:0x1311   value:[0x1076]
    
    root@TL-R600VPN:~# swconfig dev switch0 reg get 0x13c4
    reg:0x13c4   value:[0x0]
    

  • bootlog
    U-Boot 1.1.4--LSDK-10.2-00082-4 (Jun 11 2018 - 13:40:45)
    
    board956x - Dragonfly 1.0DRAM:  
    sri
    ath_ddr_initial_config(289): (ddr2 init)
    ath_sys_frequency: ref_clk 25000000
    ath_sys_frequency: cpu 750 ddr 400 ahb 250
    Tap values = (0x1c, 0x1c, 0x1c, 0x1c)
    128 MB
    Top of RAM usable for U-Boot at: 88000000
    Reserving 219k for U-Boot at: 87fc8000
    Reserving 192k for malloc() at: 87f98000
    Reserving 44 Bytes for Board Info at: 87f97fd4
    Reserving 36 Bytes for Global Data at: 87f97fb0
    Reserving 128k for boot params() at: 87f77fb0
    Stack Pointer at: 87f77f98
    Now running in RAM - U-Boot at: 87fc8000
    Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
    flash size 16MB, sector count = 256
    Flash: 16 MB
    ath_gmac_phy_mdio_init: reset mask:c02200 
    rtk_switch_init() BEGIN...
    Switch probe : the chip is 0
    rtk_port_macForceLinkExt_set(EXT_PORT0, MODE_EXT_SGMII, &mac_ability) , ret = 0
    rtl8367c_setAsicReg(0x6601, 0x2) ret = 0
    rtl8367c_setAsicReg(0x6602, 0x7180) ret = 0
    rtl8367c_setAsicReg(0x6600, 0xc0) ret = 0
    rtk_port_phyEnableAll_set(ENABLED) ret = 0
    ## PHY_REG Read - PHY 0 CONTROL_REG 0x00001140 STATUS_REG 0x000079c9
    ## PHY_REG Read - PHY 1 CONTROL_REG 0x00001140 STATUS_REG 0x000079c9
    ## PHY_REG Read - PHY 2 CONTROL_REG 0x00001140 STATUS_REG 0x000079c9
    ## PHY_REG Read - PHY 3 CONTROL_REG 0x00001140 STATUS_REG 0x000079c9
    ## PHY_REG Read - PHY 4 CONTROL_REG 0x00001140 STATUS_REG 0x000079c9
    rtk_led_enable_set(LED_GROUP_0, &portmask) ret 0
    rtk_led_groupConfig_set(LED_GROUP_0, LED_CONFIG_LINK_ACT) ret 0
    rtk_led_groupAbility_set(LED_GROUP_0, link_1000m|link_100m|link_10m) ret 0
    rtk_switch_init() DONE.
    RTL8367S led blinking : TBD.
    rtk_port_phyEnableAll_set(DISABLED) ret = 0
    ## PHY_REG Read - PHY 0 CONTROL_REG 0x00001940 STATUS_REG 0x000079c9
    ## PHY_REG Read - PHY 1 CONTROL_REG 0x00001940 STATUS_REG 0x000079c9
    ## PHY_REG Read - PHY 2 CONTROL_REG 0x00001940 STATUS_REG 0x000079c9
    ## PHY_REG Read - PHY 3 CONTROL_REG 0x00001940 STATUS_REG 0x000079c9
    ## PHY_REG Read - PHY 4 CONTROL_REG 0x00001940 STATUS_REG 0x000079c9
    *** Warning - bad CRC, using default environment
    
    *** Warning *** : PCIe WLAN Module not found !!!
    In:    serial
    Out:   serial
    Err:   serial
    Setting 0x181162c0 to 0x4b962100
    Hit Ctrl+B to stop autoboot:  0 
    ## Booting image at 9f040000 ...
       Image Name:   MIPS OpenWrt Linux-3.3.8
       Created:      2019-02-27   5:23:18 UTC
       Image Type:   MIPS Linux Multi-File Image (lzma compressed)
       Data Size:    1041215 Bytes = 1016.8 kB
       Load Address: 80060000
       Entry Point:  80060000
       Contents:
       Image 0:  1041207 Bytes = 1016.8 kB
       Verifying Checksum at 0x9f040040 ...OK
       Uncompressing Multi-File Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80060000) ...
    ## Giving linux memsize in bytes, 134217728
    
    Starting kernel ...
    
    [    0.000000] Linux version 3.3.8 (vpshx@vpshx) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r1824) ) #1 Thu Jan 31 17:15:52 CST 2019
    [    0.000000] bootconsole [early0] enabled
    [    0.000000] CPU revision is: 00019750 (MIPS 74Kc)
    [    0.000000] SoC: Qualcomm Atheros QCA956X rev 0
    [    0.000000] Clocks: CPU:750.000MHz, DDR:400.000MHz, AHB:250.000MHz, Ref:25.000MHz
    [    0.000000] Determined physical RAM map:
    [    0.000000]  memory: 08000000 @ 00000000 (usable)
    [    0.000000] @@----debug cmdline=[  board=TL-R600VPNV4 console=ttyS0,115200 root=31:02 init=/sbin/init mtdparts=spi0.0:256k(u-boot)ro,3072k(kernel),12288k(rootfs) ]
    [    0.000000] User-defined physical RAM map:
    [    0.000000]  memory: 08000000 @ 00000000 (usable)
    [    0.000000] Initrd not found or empty - disabling initrd
    [    0.000000] Zone PFN ranges:
    [    0.000000]   Normal   0x00000000 -> 0x00008000
    [    0.000000] Movable zone start PFN for each node
    [    0.000000] Early memory PFN ranges
    [    0.000000]     0: 0x00000000 -> 0x00008000
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
    [    0.000000] Kernel command line:  console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),14528k(rootfs),1408k(uImage),64k(mib0),64k(ART) mem=128M rootfstype=squashfs,jffs2 noinitrd
    [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
    [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
    [    0.000000] Writing ErrCtl register=00000000
    [    0.000000] Readback ErrCtl register=00000000
    [    0.000000] Memory: 126296k/131072k available (2243k kernel code, 4776k reserved, 588k data, 184k init, 0k highmem)
    [    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] NR_IRQS:83
    [    0.000000] Calibrating delay loop... 373.55 BogoMIPS (lpj=1867776)
    [    0.060000] pid_max: default: 32768 minimum: 301
    [    0.060000] Security Framework initialized
    [    0.070000] Mount-cache hash table entries: 512
    [    0.070000] Initialized recycle list for cpu 0.
    [    0.080000] NET: Registered protocol family 16
    [    0.080000] gpiochip_add: registered GPIOs 0 to 22 on device: ath79
    [    0.090000] MIPS: machine is TP-LINK TL-R600VPN-V4
    [    0.100000] ar724x-pci ar724x-pci.0: PCIe link is down
    [    0.100000] registering PCI controller with io_map_base unset
    [    0.110000]  @@@@@@@@ athrs_sgmii_res_cal-1113, begin! 
    [    0.120000]  @@@@@@@@ athrs_sgmii_res_cal-1214, pll regs 0x28=0x000c1240, 0x30=0xa6000000 
    [    0.120000]  @@@@@@@@ athrs_sgmii_res_cal-1218, done  i = 62939! 
    [    0.130000]  @@@@@@@@ ath79_init_eth_pdata-832, ath79_soc = 16 
    [    0.130000]  @@@@@@@@ ath79_setup_phy_if_mode-602, setup eth0  phy_if_mode!  ! 
    [    0.140000]  @@@@@@@@ ath79_setup_phy_if_mode-668, mii regs 0x0=0x0003c040, 0x14=0x0000001f, 0x18=0x18038517, 0x1c=0x00000140, 0x34=0x000000a2 !
    [    0.350000] bio: create slab  at 0
    [    0.360000] PCI host bridge to bus 0000:00
    [    0.360000] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
    [    0.370000] pci_bus 0000:00: root bus resource [io  0x0001]
    [    0.370000] Switching to clocksource MIPS
    [    0.380000] NET: Registered protocol family 2
    [    0.380000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.390000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.400000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.400000] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.410000] TCP reno registered
    [    0.410000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.420000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.420000] NET: Registered protocol family 1
    [    0.440000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.450000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.460000] msgmni has been set to 246
    [    0.460000] io scheduler noop registered
    [    0.470000] io scheduler deadline registered (default)
    [    0.470000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
    [    0.500000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
    [    0.510000] console [ttyS0] enabled, bootconsole disabled
    [    0.510000] console [ttyS0] enabled, bootconsole disabled
    [    0.520000] m25p80 spi0.0: found w25q128, expected m25p80
    [    0.530000] m25p80 spi0.0: w25q128 (16384 Kbytes)
    [    0.530000] @@-----debug r600vpn_v4--tplink flash parse--------
    [    0.540000] 10 tp-link partitions found on MTD device spi0.0
    [    0.540000] Creating 10 MTD partitions on "spi0.0":
    [    0.550000] 0x000000000000-0x000000040000 : "bootloader"
    [    0.550000] 0x000000040000-0x000000190000 : "kernel"
    [    0.560000] 0x000000190000-0x000000d30000 : "rootfs"
    [    0.570000] mtd: partition "rootfs" set to be root filesystem
    [    0.570000] 0x000000d30000-0x000000d40000 : "device-info"
    [    0.580000] 0x000000d40000-0x000000d50000 : "support-list"
    [    0.590000] 0x000000d50000-0x000000d60000 : "firmware-info"
    [    0.600000] 0x000000d60000-0x000000d70000 : "tddp"
    [    0.600000] 0x000000d70000-0x000000d90000 : "log"
    [    0.610000] 0x000000e00000-0x000001000000 : "rootfs_data"
    [    0.620000] 0x000000000000-0x000001000000 : "firmware"
    [    0.620000] nf_conntrack version 0.5.0 (1973 buckets, 7892 max)
    [    0.630000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    0.640000] TCP cubic registered
    [    0.640000] NET: Registered protocol family 17
    [    0.640000] 8021q: 802.1Q VLAN Support v1.8
    [    0.650000] ### of_selftest(): No testcase data in device tree; not running tests
    [    0.660000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
    [    0.670000] Freeing unused kernel memory: 184k freed
    procd: Console is alive
    [    2.500000] Button Hotplug driver version 0.4.1
    [    2.510000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
    procd: - preinit -
    3.57 0.07 preinit_main  define_default_set_state
    3.67 0.07 preinit_main  do_ar71xx
    3.71 0.07 preinit_main  preinit_set_mac_address
    3.73 0.07 preinit_main  set_preinit_iface
    3.75 0.07 preinit_main  preinit_ip
    3.76 0.07 preinit_main  pi_indicate_preinit
    3.78 0.07 preinit_main  indicate_regular_preinit
    3.79 0.07 preinit_main  initramfs_test
    3.80 0.07 preinit_main  do_mount_root
    ----mtdblock:/dev/mtdblock8----
    [    3.990000] JFFS2 notice: (270) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    =========================USERCONFIG INITIAL======================
    Copy userconfig to memory
    cp: can't stat '/etc/uhttpd.crt': No such file or directory
    cp: can't stat '/etc/uhttpd.key': No such file or directory
    cp: can't stat '/tmp/userconfig/etc/uhttpd.crt': No such file or directory
    cp: can't stat '/tmp/userconfig/etc/uhttpd.key': No such file or directory
    =========================USERCONFIG DONE======================
    [setDftMac,2593]:  readMac[74:DA:88:86:BD:CD]
    cp: can't stat '/etc/uhttpd.crt': No such file or directory
    cp: can't stat '/etc/uhttpd.key': No such file or directory
    Saved
    cp: can't stat '/etc/uhttpd.crt': No such file or directory
    cp: can't stat '/etc/uhttpd.key': No such file or directory
    Saved
    8.34 0.07 preinit_main  do_load_ath10k_board_bin
    8.37 0.07 preinit_main  run_init
    procd: - early -
    procd: - ubus -
    procd: - init -
    Please press Enter to activate this console.
    cd /tmp && dkmgt_firmware_make -R -f /dev/mtdblock9 -p 0x00030000 -n firmware-info -o firmware-info.json
    {
            "software-version":     "4.0.3 Build 20190227 Rel.48206",
            "firmware-id":  "123AAAABBBBAAAABBBBAAAABBBBAAAABBBB321"
    }######: Init Firmware version *SUCCESS* !!
    ######: Init model version *SUCCESS* !!
    [   10.290000] liblogger: module license 'unspecified' taints kernel.
    [   10.300000] Disabling lock debugging due to kernel taint
    [   10.350000] alg: No test for stdrng (krng)
    [   10.390000] ag71xx_mdio: probed
    [   10.410000] eth0: Atheros AG71xx at 0xb9000000, irq 4
    [   10.960000] @@@@@@@@@@@@@@@@@@@@rtl8367s_config_init
    [   10.970000] @@@@@@@@@@@@@@@@@@@@rtl8367s_config_init: kzalloc pdev->priv = 86d10000
    [   10.970000] @@@@@@@@@@@@@@@@@@@@rtl8367s led settings
    [   11.000000] rgmii delay set:port=17, txDelay=1, rxDelay=7, reg=0x13c5, regData=0xf 
    [   11.010000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=001cc942, driver=Realtek RTL8367S]
    [   11.130000] NET: Registered protocol family 10
    [   11.150000] NET: Registered protocol family 8
    [   11.150000] NET: Registered protocol family 20
    [   11.160000] Initializing XFRM netlink socket
    [   11.170000] NET: Registered protocol family 15
    [   11.220000] L2TP core driver, V2.0
    [   11.220000] L2TP netlink interface
    [   11.240000] IPv6 over IPv4 tunneling driver
    [   11.240000] GRE over IPv4 demultiplexor driver
    [   11.270000] GRE over IPv4 tunneling driver
    [   11.290000] bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    [   11.330000] PPP generic driver version 2.4.2
    [   11.340000] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [   11.390000] Netfilter messages via NETLINK v0.30.
    [   11.410000] ip_set: protocol 6
    [   11.500000]  ipset kmod ipauthlimit loading 
    [   11.550000] 
    [   11.550000]  module multinetdev loding 
    [   11.560000]  module xt_tplimit loding 
    [   11.560000]     xt_tplimit create cell_memcache OK! 
    [   11.570000]     xt_tplimit create cell_mempool OK, capacity 8192! 
    [   11.580000]  kmodule authlimit loding 
    [   11.590000]  add cdev authlimit ok, MAJOR 254, MINOR 0 
    [   11.590000]     create cell_memcache OK! 
    [   11.600000]     create cell_mempool OK, capacity 8192! 
    [   11.600000]     create authlimit hash table OK, spec 256  @0xffffffff87b29000
    [   11.620000]  netfilter module authlimit loding 
    [   11.630000] balance route match init success!
    [   11.680000] ctnetlink v0.93: registering with nfnetlink.
    [   11.710000] PPP MPPE Compression module registered
    [   11.720000] NET: Registered protocol family 24
    [   11.730000] PPTP driver version 0.8.5
    [   11.750000] xt_connlimit: enable /proc/connlimit_stat for per-ip statistics 256.
    [   11.790000] xt_time: kernel timezone is -0000
    [   11.800000] PPPoL2TP kernel driver, V2.0
    tddpd_start
    [tddp_flash_to_config,2413]:  read tddp flash valid size:668.
    
    tddpd start success
    Check signature OK, now will enable all ports
    [   17.620000] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   18.860000] ADDRCONF(NETDEV_UP): eth0.1: link is not ready
    [   18.860000] device eth0.1 entered promiscuous mode
    [   18.870000] device eth0 entered promiscuous mode
    [   19.130000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   19.210000] br-lan: port 1(eth0.1) entered forwarding state
    [   19.210000] br-lan: port 1(eth0.1) entered forwarding state
    [   19.220000] ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
    GMT+08:00 
    [   21.210000] br-lan: port 1(eth0.1) entered forwarding state
    [   31.640000] iptvc v1.0.0 loading
    [   39.410000] arp_garp is loaded.
    [   39.410000] narr=3
    stop sfe first ... 
    [   51.070000] fast-classifier: starting up
    [   51.080000] fast-classifier: registered
    Config SFE ipstat
    [   51.110000] Update Subnet-> ip: C0A80000, mask: FFFFFF00
    [   55.040000] init special_route module finish, nf_conntrack_max=[20000].
    [   55.110000] special route target init success!
    generate ipsec_check_dns time:t2 - t1 is [      0.0035719871520996      ] 
                    ipsec_reload.lua time=[ 0.0209059715271 ] 
    session_limits_enabled_rule_num = 0,rmmod xt_tpconnlimit
    {
            "software-version":     "4.0.3 Build 20190227 Rel.48206",
            "firmware-id":  "123AAAABBBBAAAABBBBAAAABBBBAAAABBBB321"
    }macAddr is 74:DA:88:86:BD:CD
    [   81.470000] eth0.1 is off
    [   81.470000] eth0.10 is off
    [   81.470000] eth0.20 is off
    [   81.490000] br-lan: port 1(eth0.1) entered disabled state
    ssh_port_switch is off
    procd: - init complete -
    [   91.510000] eth0.10 is on
    [   91.540000] ADDRCONF(NETDEV_CHANGE): eth0.10: link becomes ready