カテゴリー: Realtek

AML2-17GPメモ

実際に色々弄ってみながら使ってみた感想とかをメモ。

Web設定画面は “WAN/CONSOLE” ポートからしかアクセスできない?
デフォルトではVLAN1のみ設定され全ポートにタグ無しで割り当てられ、マネジメントVLANに1が設定されているが、WAN/CONSOLEポート以外からはWeb設定画面を開けていない。
せっかくの +1 ポートであるが、個人的には使わず管理用に残しておくのが安全という感想。
RESETボタンで初期化できないのが不便
本体のRESETボタンは電源的なリセットしかしない模様。誤った設定を行って保存したり、パスワードを忘れた場合などに復旧が少々難しい。これが上の “WAN/CONSOLE” ポートを使わず残すという話にも少し繋がる。
本体が比較的小型
Twitterで某氏よりコメントを頂いて気付いたけれども、確かに16ポート機としては小型かもしれない。既に同じ16ポートのtp-link TL-SG1016DEをサーバ用で稼働させているが、横幅がAML2-17GPでは59mm短い。
リンク確立後の疎通発生が遅い
購入してログインパスワードの消去と初期化を達成後、弄り始めてすぐこの問題に気付いた。結論としてはデフォルトでスパニングツリー設定が有効になっており、これによりツリーの構成等に時間が掛かり疎通が発生するまで遅延が発生していた模様。
メインの作業用デスクトップ機そばに設置してそれを接続する関係上、スリープからの復帰時などにネットワークがすぐに復帰せずストレスとなるため、ループには注意することとしてSTPを無効化しgot kotonaki。
多機能
業務用向けらしく、多機能。ただし、知識的な問題から今のところIEEE802.1Q VLAN機能など一部だけ使用。
広告

AML2-17GP

吉川のハードオフで入手したジャンク品。購入してみたが、ログイン情報がデフォルトから変更されたまま初期化されていないためログインできず、パスワード忘れが原因で放出された可能性大。ちなみに購入した個体とは別にもう一台あった。
OpenWrtとしては何もできないが、パスワードを解除できないか探るためメモ。→ パスワード含めて全て初期化できた。
UART -> J14: 筐体リア側からVcc, GND, RX, TX

U-Boot

help

RTL838x# # 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
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
sleep   - delay execution for some time
tftpboot- boot image via network using TFTP protocol
version - print monitor, compiler and linker version

version

RTL838x# # version

U-Boot 2011.12.46351 (Mar 14 2014 - 16:33:56)
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=115200
boardmodel=RTL8382M_INTPHY_8218B_8214FC_DEMO
bootcmd=boota
bootdelay=1
diagmode=4
ethact=rtl8380#0
ethaddr=B8:87:1E:03:B6:F1
file_linux=vmlinux.bix
file_linux2=vmlinux.bix
file_uboot=u-boot.bin
flashoffset_env=0x80000
flashoffset_linux=0x5a0000
flashoffset_linux2=0x12d0000
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=0xd30000
ssize_linux2=0xd30000
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: 1246/65532 bytes

help

Kernel

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

bootlog



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 
## Booting image from partition ... 0
## Booting kernel from Legacy Image at b45a0000 ...
   Image Name:   1.2.1
   Created:      2015-03-06  16:52:41 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    6175426 Bytes = 5.9 MB
   Load Address: 80000000
   Entry Point:  8026d000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.19 (root@localhost.localdomain) (gcc version 3.4.4 mipssde-6.03.00-20051020) #33 PREEMPT Fri Mar 6 16:52:39 CST 2015
CPU revision is: 00019070
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
User-defined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Built 1 zonelists.  Total pages: 16256
Kernel command line: console=ttyS0,115200 mem=64M
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: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 57240k/65536k available (2057k kernel code, 8240k reserved, 423k data, 5112k 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: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
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 MX25L25635F
Creating 7 MTD partitions on "Total SPI FLASH":
0x00000000-0x00080000 : "LOADER"
0x00080000-0x00090000 : "BDINFO"
0x00090000-0x000a0000 : "SYSINFO"
0x000a0000-0x004a0000 : "JFFS2 CFG"
0x004a0000-0x005a0000 : "JFFS2 LOG"
0x005a0000-0x012d0000 : "RUNTIME"
0x012d0000-0x02000000 : "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: 5112k 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....
[board_poe_init] SYS_BM_8380_16GE_1GEC not need Init !!
OK
Init VLAN Aware Module....OK
Init Board Vendor Module....OK
Init Switch GVRP Module....OK
Init Switch STP Module....OK
Init Switch AUTHMGR Module....OK
Init Switch LACP Module....OK
Init Switch Multicast Module....OK
Init Switch IPSG Module....OK
Init Switch DHCP Module....OK
Init Switch DAI Module....OK
Init Switch Voice VLAN Module....OK
Init Switch LLDP Module....OK
Init Switch UDLD Module....OK
Init Switch MAC VLAN Module....OK
Init Switch Surveillance VLAN Module....OK
Init Custom Module....OK
[restore_action] resetdefault = 0 (0)

====== Defaults Initial [Start] ======
Init Switch Factory Default....OK
Init VLAN Factory Default....OK
Init Protocol VLAN Factory Default....OK
Init Vocie VLAN Factory Default....OK
Init Surveillance 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 DoS Factory Default....OK
Init IGMP Factory Default....OK
Init MVR Factory Default....OK
Init MLD Factory Default....OK
Init STP Factory Default....OK
Press any key to continue
Username:

WSR-1166DHP3 (2)

メモその2。BUFFALOが公開しているWSR-1166DHP3のGPLソースではRTL8197Fのコードがすっぽ抜けているためRealtekのRTL819Xをこねくり回しているものの、実装の入り乱れ方が半端ではなく自分の(まともに無い)知識量では厳しい。

  • GPIOに接続しているLED
    Power (Green):		GPIO #24
    Power (Orange):		GPIO #30
    Wireless (Green):	GPIO #29
    Wireless (Orange):	GPIO #31
    Internet (Green):	GPIO #32
    Internet (Orange):	GPIO #25
    Router (Green):		GPIO #26
    Router (Orange):	GPIO #20
    
  • ls -l /sys/devices/platform/
    # ls -l /sys/devices/platform
    drwxr-xr-x    2 0        0               0 rtl819x_8367r_reset_pin.0
    -rw-r--r--    1 0        0           16384 uevent
    drwxr-xr-x    3 0        0               0 serial8250
    drwxr-xr-x    2 0        0               0 rtl819x_8367r_i2c_pin.2
    drwxr-xr-x    2 0        0               0 rtl819x_8367r_i2c_pin.1
    drwxr-xr-x    2 0        0               0 alarmtimer
    drwxr-xr-x    2 0        0               0 rtl819x_led.8
    drwxr-xr-x    2 0        0               0 rtl819x_led.7
    drwxr-xr-x    2 0        0               0 rtl819x_led.6
    drwxr-xr-x    2 0        0               0 rtl819x_led.5
    drwxr-xr-x    2 0        0               0 rtl819x_led.4
    drwxr-xr-x    2 0        0               0 rtl819x_led.3
    drwxr-xr-x    2 0        0               0 rtl819x_led.2
    drwxr-xr-x    2 0        0               0 rtl819x_led.1
    drwxr-xr-x    2 0        0               0 rtl819x_led.0
    drwxr-xr-x    2 0        0               0 rtl819x_btn.5
    drwxr-xr-x    2 0        0               0 rtl819x_btn.4
    drwxr-xr-x    2 0        0               0 rtl819x_btn.3
    drwxr-xr-x    2 0        0               0 rtl819x_btn.2
    drwxr-xr-x    2 0        0               0 rtl819x_btn.1
    drwxr-xr-x    2 0        0               0 rtl819x_btn.0
    drwxr-xr-x    3 0        0               0 spi-sheipa.0
    
  • brctrl show
    # brctl show
    bridge name     bridge id               STP enabled     interfaces
    br0             8000.343dc4964ab8       no              eth0
                                                            wlan1
                                                            wlan0
    
  • その他
    • GPIOピンは計64(0 – 63)?
    • ボタンのピンは判然とせず
    • ポートは
      "0:lan" "1:lan" "2:lan" "3:lan" "4:wan"
      

      の模様

    • メーカーファームでは、LAN: eth0, WAN: eth1?

WSR-1166DHP3

OSC 2018 Tokyo/Spring 2日目、WXR-2533DHPを頂いた某氏より更にWSR-1166DHP3を頂いたので、何はともあれメモ。
頂いてばかりで良いのだろうか…

Kernel

  • uname -a
    # uname -a
    Linux rlx-linux 3.10.90 #1 Tue Jan 10 21:33:08 CST 2017 mips unknown
    

  • cat /proc/version
    # cat /proc/version
    Linux version 3.10.90 (root@CVS7) (gcc version 4.4.7 (Realtek MSDK-4.4.7 Build 2001) ) #1 Tue Jan 10 21:33:08 CST 2017
    

  • cat /proc/cpuinfo
    # cat /proc/cpuinfo
    system type             : RTL8197F
    machine                 : Unknown
    processor               : 0
    cpu model               : MIPS 24Kc V8.5
    BogoMIPS                : 666.41
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 64
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
    isa                     : mips1 mips2 mips32r2
    ASEs implemented        : mips16
    shadow register sets    : 4
    kscratch registers      : 0
    core                    : 1
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/mtd
    # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00020000 00001000 "boot"
    mtd1: 00010000 00001000 "factory"
    mtd2: 00230000 00001000 "linux"
    mtd3: 00530000 00001000 "rootfs"
    mtd4: 00760000 00001000 "backup"
    mtd5: 00110000 00001000 "user_config"
    

  • ls -l /sys/class/gpio/
    # ls -l /sys/class/gpio/ 
    lrwxrwxrwx    1 0        0               0 gpiochip0 -> ../../devices/virtual/gpio/gpiochip0
    lrwxrwxrwx    1 0        0               0 gpio58 -> ../../devices/virtual/gpio/gpio58
    lrwxrwxrwx    1 0        0               0 gpio56 -> ../../devices/virtual/gpio/gpio56
    lrwxrwxrwx    1 0        0               0 gpio54 -> ../../devices/virtual/gpio/gpio54
    lrwxrwxrwx    1 0        0               0 gpio32 -> ../../devices/virtual/gpio/gpio32
    lrwxrwxrwx    1 0        0               0 gpio31 -> ../../devices/virtual/gpio/gpio31
    lrwxrwxrwx    1 0        0               0 gpio30 -> ../../devices/virtual/gpio/gpio30
    lrwxrwxrwx    1 0        0               0 gpio29 -> ../../devices/virtual/gpio/gpio29
    lrwxrwxrwx    1 0        0               0 gpio28 -> ../../devices/virtual/gpio/gpio28
    lrwxrwxrwx    1 0        0               0 gpio27 -> ../../devices/virtual/gpio/gpio27
    lrwxrwxrwx    1 0        0               0 gpio26 -> ../../devices/virtual/gpio/gpio26
    lrwxrwxrwx    1 0        0               0 gpio25 -> ../../devices/virtual/gpio/gpio25
    lrwxrwxrwx    1 0        0               0 gpio24 -> ../../devices/virtual/gpio/gpio24
    lrwxrwxrwx    1 0        0               0 gpio23 -> ../../devices/virtual/gpio/gpio23
    lrwxrwxrwx    1 0        0               0 gpio22 -> ../../devices/virtual/gpio/gpio22
    lrwxrwxrwx    1 0        0               0 gpio21 -> ../../devices/virtual/gpio/gpio21
    lrwxrwxrwx    1 0        0               0 gpio20 -> ../../devices/virtual/gpio/gpio20
    lrwxrwxrwx    1 0        0               0 gpio19 -> ../../devices/virtual/gpio/gpio19
    lrwxrwxrwx    1 0        0               0 gpio18 -> ../../devices/virtual/gpio/gpio18
    --w-------    1 0        0           16384 export
    --w-------    1 0        0           16384 unexport
    

  • bootlog
    Booting...
    init_ram
     00000102 W init ddr ok
    
    DRAM Type: DDR2
            DRAM frequency: 533MHz
            DRAM Size: 64MB
    JEDEC id C84018
    found gd25q128
    flash vendor: GigaDevice
    gd25q128, size=16MB, erasesize=4KB, max_speed_hz=25000000Hz
    auto_mode=0 addr_width=3 erase_opcode=0x00000020
    =>CPU Wake-up interrupt happen! GISR=89000004 
    Reboot Result from Watchdog Timeout!
    
    ---Realtek RTL8197F boot code at 2016.11.04-20:00+0800 v3.4.11B (999MHz)
    ==========================================
    Buffalo Bootcode version: 1.01
    ==========================================
    AOSS button pressed not detected && flag!=1
    no sys signature at 00010000!
    no sys signature at 00020000!
    linux checksum=[DFE8]
    rootfs checksum=[2B6A]
    Bank1 is correct, checking bank2...
    no sys signature at 00770000!
    no sys signature at 00780000!
    linux checksum=[DFE8]
    rootfs checksum=[2B6A]
    Bank2 checksum ok, confirm checksum of bank1 and bank2...
    Jump to image start=0x80a00000...
    decompressing kernel:
    Uncompressing Linux... done, booting the kernel.
    done decompressing kernel.
    start address: 0x8042f750
    Linux version 3.10.90 (root@CVS7) (gcc version 4.4.7 (Realtek MSDK-4.4.7 Build 2001) ) #1 Tue Jan 10 21:33:08 CST 2017
    bootconsole [early0] enabled
    CPU revision is: 00019385 (MIPS 24Kc)
    Determined physical RAM map:
     memory: 04000000 @ 00000000 (usable)
    Zone ranges:
      Normal   [mem 0x00000000-0x03ffffff]
    Movable zone start for each node
    Early memory node ranges
      node   0: [mem 0x00000000-0x03ffffff]
    Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4088
    Kernel command line: console=ttyS0,38400 root=/dev/mtdblock3
    PID hash table entries: 256 (order: -4, 1024 bytes)
    Dentry cache hash table entries: 8192 (order: 1, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 0, 16384 bytes)
    Writing ErrCtl register=000106b0
    Readback ErrCtl register=000106b0
    Memory: 42736k/65536k available (4307k kernel code, 22800k reserved, 1517k data, 176k init, 0k highmem)
    SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:192
    Realtek GPIO IRQ init
    Calibrating delay loop... 666.41 BogoMIPS (lpj=3332096)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 2048
    NET: Registered protocol family 16
    <<<>>>
    Do MDIO_RESET
    Find PCIE Port, Device:Vender ID=b82210ec
    Realtek GPIO controller driver init
    INFO: registering sheipa spi device
    bio: create slab  at 0
    INFO: sheipa spi driver register
    INFO: sheipa spi probe
    Switching to clocksource MIPS
    NET: Registered protocol family 2
    TCP established hash table entries: 2048 (order: 0, 16384 bytes)
    TCP bind hash table entries: 2048 (order: -1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP: reno registered
    UDP hash table entries: 1024 (order: 0, 16384 bytes)
    UDP-Lite hash table entries: 1024 (order: 0, 16384 bytes)
    NET: Registered protocol family 1
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    msgmni has been set to 83
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
    io scheduler noop registered (default)
    Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
    serial8250: ttyS0 at MMIO 0x18147000 (irq = 17) is a 16550A
    console [ttyS0] enabled, bootconsole disabled
    console [ttyS0] enabled, bootconsole disabled
    rtl819x_gpio: request rejection, pin23 is only for output
    rtl819x_btn: probe of rtl819x_btn.2 failed with error -22
    Realtek GPIO Driver for Flash Reload Default
    loop: module loaded
    m25p80 spi0.0: change speed to 15000000Hz, div 7
    JEDEC id C84018
    m25p80 spi0.0: found gd25q128, expected m25p80
    flash vendor: GigaDevice
    m25p80 spi0.0: gd25q128 (16384 Kbytes) (25000000 Hz)
    6 rtkxxpart partitions found on MTD device m25p80
    Creating 6 MTD partitions on "m25p80":
    0x000000000000-0x000000020000 : "boot"
    0x000000020000-0x000000030000 : "factory"
    0x000000030000-0x000000260000 : "linux"
    0x000000260000-0x000000790000 : "rootfs"
    0x000000790000-0x000000ef0000 : "backup"
    0x000000ef0000-0x000001000000 : "user_config"
    PPP generic driver version 2.4.2
    PPP BSD Compression module registered
    NET: Registered protocol family 24
    MPPE/MPPC encryption/compression module registered
    Realtek WLAN driver - version 1.7 (2015-10-30)(SVN:Unversioned directory)
    DFS function - version 2.0.9
    Adaptivity function - version 9.3.4
    Do MDIO_RESET
    Find PCIE Port, Device:Vender ID=b82210ec
    
     found 8822B !!! 
    halmac_check_platform_api ==========>
    12089M
    HALMAC_MAJOR_VER = 0
    HALMAC_PROTOTYPE_VER = 0
    HALMAC_MINOR_VER = 0
    halmac_init_adapter_88xx ==========>
    halmac_init_adapter Succss 
    IS_RTL8822B_SERIES value8 = a 
    MACHAL_version_init
    
    
    #######################################################
    SKB_BUF_SIZE=4432 MAX_SKB_NUM=1024
    #######################################################
    
    MACHAL_version_init
    RFE TYPE =5
    
    
    #######################################################
    SKB_BUF_SIZE=3032 MAX_SKB_NUM=400
    #######################################################
    
    RFE TYPE =5
    RFE TYPE =5
    RFE TYPE =5
    RFE TYPE =5
    RFE TYPE =5
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (667 buckets, 2668 max)
    ctnetlink v0.93: registering with nfnetlink.
    xt_time: kernel timezone is -0000
    IPVS: Registered protocols ()
    IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
    IPVS: Creating netns size=736 id=0
    IPVS: ipvs loaded.
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP: cubic registered
    NET: Registered protocol family 17
    l2tp_core: L2TP core driver, V2.0
    l2tp_ppp: PPPoL2TP kernel driver, V2.0
    8021q: 802.1Q VLAN Support v1.8
    Realtek FastPath:v1.03
    
    Probing RTL819X NIC-kenel stack size order[0]...
    eth0 added. vid=9 Member port 0x10f...
    eth1 added. vid=8 Member port 0x10...
    [peth0] added, mapping to [eth1]...
    m25p80 spi0.0: change speed to 25000000Hz, div 4
    VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
    Freeing unused kernel memory: 176K (805b4000 - 805e0000)
    init started: BusyBox v1.12.1 (2017-01-10 21:27:25 CST)
    starting pid 839, tty '': '/etc/init.d/rcS'
    led=0, on=10, off=10, blinks,=4000, reset=1, time=4000
    mkdir: cannot create directory '/var/log': File exists
    nvram_init: INFO=>nvram MAC initialized successfully!
    ==>shm_init()!!
    check_shm_hash: Check shm hash value
    nvram_init: INFO=>nvram conf initialized successfully!
    nvram_init: INFO=> RAM CONF successful created!
    nvram_init: INFO=> RC.CONF successful created!
    ---------------- Get WLAN MAC 34:3d:c4:96:4a:b8---------------
    set_Power_Table
    Fri Jan  1 00:00:00 GMT 2016
    led=7, on=1, off=4000, blinks,=1, reset=1, time=4000
    led=6, on=4000, off=1, blinks,=1, reset=1, time=4000
    enable 0 interval
    input_access=[3]
    echo 3 > /proc/lan_wlan_access_controller
    port_bridge_on: mac_string=[343dc4964ab8]
    port_bridge_on: pbcmd=[switch add 343dc4964ab8 00000010 2]
    /bin/sh: switch: not found
    gt_fwsetenv : get bootloader version
    byte1~4=[1][.][0][1]
    byte1~4(HEX)=[31][2E][30][31]
    device peth0 is not a slave of br0
    device peth0 is not a slave of br0
    /usr/shell/dnsmasq.sh stop ok
    /usr/shell/dnsmasq.sh start ok
    /usr/shell/udhcpd.sh config ok
    /usr/shell/udhcpd.sh start ok
    START add route..............
    rm: cannot remove '/tmp/wsc_dual_a': No such file or directory
    rm: cannot remove '/tmp/wsc_dual_g': No such file or directory
    brctl setwlanforward br0 15 15
    brctl setwlanforward br0 15 15
    killall: wlan_led_ctrl: no process killed
    [Enter Test] in wlan_led_ctrl.c main()
    .cat: can't open '/tmp/wscd_status': No such file or directory
    psntpdate: Resource temporarily unavailable
    
    
    === psntpdate: checkntp_gettime=0  ===
    
    route: SIOCDELRT: No such process
    /usr/shell/staticip.sh stop ok
    route: SIOCDELRT: No such process
    /usr/shell/udhcpc.sh stop ok
    killall: internet_chk: no process killed
    killall: tproxy: no process killed
    iptables: No chain/target/match by that name.
    iptables v1.4.4: Couldn't find target `IFILTER'
    
    Try `iptables -h' or 'iptables --help' for more information.
    ====Auto Switch: Enter CHECK_WAN_LINK state====
    ====Auto Switch: WAN_LINK is offline!====
    ====Auto Switch: Enter CHECK_LAN_LINK state====
    ====Auto Switch: LAN_LINK is offline!====
    CAN'T FIND Auto_OP_Mode
    START add route..............
    killall: pptpd: no process killed
    /bin/sh: can't create /etc/pptpd.conf: Read-only file system
    killall: online_fw_notifier: no process killed
    cat: can't open '/tmp/wscd_status': No such file or directory
    ===== Auto FW Update: online_fw_notifier starts ! =====
    
    ===== Auto FW Update: Time to get firmware list = 23 : 51 =====
    ===== Auto FW Update: Time to update firmware   = 4 : 51 =====
    
    killall: psntpdate: no process killed
    killall: psntpdate: no process killed
    AutoFwUpdateUserAgent = "BuffaloBBS2%WSR-1166DHP3-JP%ir7zHiUTcYSXTT14jZTbG1HLlKMK1ayh%1.00%aak0b0d00a00000000a00aa%518b3714848bdb4ebba0eb14aa78bd9b"
    Delete disconnect dynamic client 00:17:42:8a:e7:28
    rm: cannot remove '/var/run/wscd*': No such file or directory
    rm: cannot remove '/var/run/iwcontrol.pid': No such file or directory
    killall: wscd: no process killed
    killall: iwcontrol: no process killed
    route: SIOCDELRT: No such process
    
    
    read PSK_LEN tocken
    
    
     WiFi Simple Config [v2.20-wps2.0] [2017.01.10-13:28+0000].
    psntpdate: Resource temporarily unavailable
    
    
    === psntpdate: checkntp_gettime=0  ===
    
    Register to wlan0
    Register to wlan1
    starting pid 9785, tty '': '-/bin/sh'
    iwcontrol RegisterPID to (wlan0)
    iwcontrol RegisterPID to (wlan1)
    
    
    BusyBox v1.12.1 (2017-01-10 21:27:25 CST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    # killall: psntpdate: no process killed
    

  • Firmware update log
    ===== Auto FW Update: First get NTP time. Please wait one hour to start. =====
     AutoFwUpdateUserAgent = "BuffaloBBS2%WSR-1166DHP3-JP%ir7zHiUTcYSXTT14jZTbG1HLlKMK1ayh%1.00%aab0b0d00a00000000a00aa%e4ea34b68b3900fed2e474c343d55b44"
    CAN'T FIND Internet_Chk
    killall: psntpdate: no process killed
    CAN'T FIND onlinefwlist_checking
    online_fwlist_check: XML wget command is [wget -O /tmp/onlinefwlist http://p.buffalo.jp/download/driver/lan/autoup/wsr_1166dhp3_jp.txt &]
    wget timeout is [60]
    Connecting to p.buffalo.jp (54.230.108.248:80)
    onlinefwlist         100% |*******************************|  1195  --:--:-- ETA
    input_onlinefwupdate: fwindex=[1]
    CAN'T FIND onlinefwindex
    Feb 25 14:38:47 miniupnpd[28976]: received signal 15, good-bye
    CAN'T FIND online_fw_dlchk_status
    please start online_fwlist_check 2 & at this timing
    killall: psntpdate: no process killed
    link_detect: catch signal...
    CAN'T FIND onlinefwurl
    [http://driver.buffalo.jp/buf-drv/lan/wsr-1166dhp3_r793_crc_root_uimage_jp.bin]
    wget timeout is [60]
    Connecting to driver.buffalo.jp (54.230.109.239:80)
    CRC_IMAGE.bin        100% |*******************************|  5938k 00:00:00 ETA
    file_check_upgrade start...
    file_check_upgrade: FW size is [6080600]
    file_check_upgrade: encode-header crc ok!!
    check header OK
    file_check_upgrade: FW check done...
    killall: ntp: no process killed
    /usr/shell/staticip.sh stop ok
    route: SIOCDELRT: No such process
    /usr/shell/udhcpc.sh stop ok
    killall: tproxy: no process killed
    iptables: No chain/target/match by that name.
    iptables v1.4.4: Couldn't find target `IFILTER'
    
    Try `iptables -h' or 'iptables --help' for more information.
    Start to run nvram_upgrade function
    nvram_upgrade start to sleep...
    nvram_upgrade sleep done...
    killall: ap_client_run: no process killed
    killall: ap_client_run_aoss: no process killed
    killall: ap_client_run_wps: no process killed
    device wlan0-vxd is not a slave of br0
    device wlan1-vxd is not a slave of br0
    
    -------Start Image Upgrade--------
    INFO:Blinking DIAG LED...
    INFO:Burning Kernel&root...
    linux ---------
    [UPGRADE] check linux size: 1824786 ---
    [UPGRADE] kernel done
    rootfs ---------
    [UPGRADE] check rootfs size: 4255746 ---
    [UPGRADE] rootfs done
    [UPGRADE] nvram_upgrade finish
    file_check_upgrade: FW upgrade success!!
    file_check_upgrade: FW size is [6080548]
    [FWD] ------- end of read fw
    [FWD] offset[0], size[1824786], fw_offset[0], mtd[/dev/mtdblock2]
    [FWD] fwd write 1824786 data---
    [FWD] offset[0], size[4255746], fw_offset[1824802], mtd[/dev/mtdblock3]
    [FWD] fwd write 4255746 data---
    
    Booting...
    init_ram
     00000102 W init ddr ok
    
    DRAM Type: DDR2
            DRAM frequency: 533MHz
            DRAM Size: 64MB
    JEDEC id C84018
    found gd25q128
    flash vendor: GigaDevice
    gd25q128, size=16MB, erasesize=4KB, max_speed_hz=25000000Hz
    auto_mode=0 addr_width=3 erase_opcode=0x00000020
    =>CPU Wake-up interrupt happen! GISR=89000004 
    Reboot Result from Watchdog Timeout!
    
    ---Realtek RTL8197F boot code at 2016.11.04-20:00+0800 v3.4.11B (999MHz)
    ==========================================
    Buffalo Bootcode version: 1.01
    ==========================================
    AOSS button pressed not detected && flag!=1
    no sys signature at 00010000!
    no sys signature at 00020000!
    linux checksum=[138A]
    rootfs checksum=[1174]
    Bank1 is correct, checking bank2...
    no sys signature at 00770000!
    no sys signature at 00780000!
    linux checksum=[DFE8]
    rootfs checksum=[2B6A]
    Bank2 checksum ok, confirm checksum of bank1 and bank2...
    Bank1 bank2 NOT the same...need to copy bank1 to bank2...
    Flash read from 00030000 to A0A00000 with 0075FFFF bytes ?
    Flash Program from A0A00000 to 00790000 with 0075FFFF bytes ?
    ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................>................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................no sys signature at 00770000!
    no sys signature at 00780000!
    linux checksum=[138A]
    rootfs checksum=[1174]
    Copy bank1 to bank2 successfully!