タグ: AR7242

LAN-W451NGR & OpenWrt

MACアドレスが独自フォーマットで格納されているなど、色々と厳しいのでupstream (openwrt/openwrt) へ投げるのはやめました。そのため、musashino-build/openwrtで持つだけになります。
以下OpenWrtインストール手順。

UARTを接続
LAN-W451NGRの筐体を開けてUART(シリアル)を接続。ピンは最初から立っていた。
並びは RJ-45ポート側から Vcc, TX, RX, GND。
U-Bootの環境変数を変更
ブートを中断してU-Bootのコンソールに入り、bootcmd の変更とMACアドレス設定の追加を行う。
bootcmdは以下の通り変更する。

set bootcmd "bootm 0x9f0a0010 || bootm 0x9f0a0000"


MACアドレスは筐体のラベルを参照し、以下の通りに変更する。

set wanaddr "MAC address"


例(MACアドレスが 00:aa:bb:cc:dd:ee の場合)

set wanaddr "00:aa:bb:cc:dd:ee"


最後に saveenv を実行して変更を保存。

initramfsファームでブート
192.168.1.50でTFTPサーバを実行して 0201A8C0.img にリネームしたinitramfsファームを用意し、コンソールで tftppboottftpでも可)を実行してinitramfsファームをTFTPサーバからダウンロード、bootm を実行してinitramfsファームによるブートを行う。
ブート後、mtdパーティションのバックアップを取っておくと良い。
sysupgrade
initramfsファーム上でsysupgradeファームを用いてsysupgrade、完了して再起動され、Flash内のOpenWrtファームウェアで起動する。

以上。

広告

LAN-W451NGR

Atheros SoCを搭載しており、以前より気になっていた機種。最寄りのハードオフで ¥1,080 で置かれており、散々迷った挙句に確保。
発売時期に対してSoCが古く、RAMも少ないが折角なので進める。作業にあたってのメモ。

Switch

zone WAN LAN
port
(LAN-W451NGR)
WAN LAN1 LAN2 LAN3 LAN4
port
(AR8327)
port1 port2 port3 port4 port5

MAC

未確認

  • LAN: 34:95:DB:xx:xx:09
  • WAN: 34:95:DB:xx:xx:0F
  • 2.4G: 34:95:DB:xx:xx:0E

U-Boot

  • help
    ar7240> help
    autoscr - run script from memory
    ?       - 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'
    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
    coninfo - print console devices and information
    cp      - memory copy
    crc32   - checksum calculation
    dhcp    - invoke DHCP client to obtain IP/boot params
    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
    imls    - list all images found in flash
    itest   - return true/false on integer compare
    loadb   - load binary file over serial line (kermit mode)
    loads   - load S-Record file over serial line
    loady   - load binary file over serial line (ymodem mode)
    loop    - infinite loop on address range
    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)
    pci     - list and access PCI Configuration Space
    ping    - send ICMP ECHO_REQUEST to network host
    pll [] - Set to change CPU/AHB/DDR speeds
    printenv- print environment variables
    progmac - Set ethernet MAC addresses
    protect - enable or disable FLASH write protection
    rarpboot- boot image via network using RARP/TFTP protocol
    reset   - Perform RESET of the CPU
    run     - 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
    ar7240> version
    
    U-Boot 1.1.4 (Aug 29 2012 - 11:46:03)
    
  • printenv
    ar7240> printenv
    baudrate=115200
    ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
    ipaddr=192.168.1.2
    ethact=eth0
    bootcmd=bootm 0x9f0a0010
    bootargs=console=ttyS0,115200 root=1f02 rw rootfstype=jffs2 noinitrd mtdparts=ar7240-nor0:320k(u-boot)ro,3712k(web-cfg-linux),4032k(rootfs),64k(NVRAM),64k(ART)
    serverip=192.168.1.50
    bootdelay=2
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 345/65532 bytes
    
  • mii device
    ar7240> mii device
    MII devices: 'eth0' 'eth1' 
    Current device: 'eth0'
    
  • md.l 0x1805002c 1
    tftpboot前(恐らくpll_100)

    ar7240> md.l 0x1805002c 1
    1805002c: 00000101    ....
    

    tftpboot後(恐らくpll_1000)

    ar7240> md.l 0x1805002c 1
    1805002c: 1c000000    ....
    

Kernel

  • uname -a
    # uname -a
    Linux rlx-linux 2.6.31--LSDK-9.2.0_U10.5.13 #83 Thu Jan 31 19:33:31 CST 2013 mips GNU/Linux
    
  • cat /proc/version
    # cat /proc/version
    Linux version 2.6.31--LSDK-9.2.0_U10.5.13 (netronix@netronix-U46SV) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #83 Thu Jan 31 19:33:31 CST 2013
    
  • cat /proc/cpuinfo
    実際にはAR7242

    # cat /proc/cpuinfo
    system type             : Atheros AR7240 (Python)
    processor               : 0
    cpu model               : MIPS 24Kc V7.4
    BogoMIPS                : 266.24
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 16
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
    ASEs implemented        : mips16
    shadow register sets    : 1
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
  • cat /proc/meminfo
    # cat /proc/meminfo
    MemTotal:          29740 kB
    MemFree:           16680 kB
    Buffers:               0 kB
    Cached:             2724 kB
    SwapCached:            0 kB
    Active:             1320 kB
    Inactive:           2100 kB
    Active(anon):        720 kB
    Inactive(anon):        0 kB
    Active(file):        600 kB
    Inactive(file):     2100 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:           740 kB
    Mapped:              688 kB
    Slab:               7220 kB
    SReclaimable:        184 kB
    SUnreclaim:         7036 kB
    PageTables:          120 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       14868 kB
    Committed_AS:       2036 kB
    VmallocTotal:    1048404 kB
    VmallocUsed:        2024 kB
    VmallocChunk:    1043032 kB
    
  • cat /proc/mtd
    # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00050000 00010000 "u-boot"
    mtd1: 003a0000 00010000 "web-cfg-linux"
    mtd2: 003f0000 00010000 "rootfs"
    mtd3: 00010000 00010000 "NVRAM"
    mtd4: 00010000 00010000 "ART"
    
  • ethreg
    # ethreg 0x4
    Read Reg: 0x00000004 = 0x07600000
    # ethreg 0xc
    Read Reg: 0x0000000c = 0x01000000
    # ethreg 0x50
    Read Reg: 0x00000050 = 0xffb7ffb7
    # ethreg 0x54
    Read Reg: 0x00000054 = 0xffb7ffb7
    # ethreg 0x58
    Read Reg: 0x00000058 = 0xffb7ffb7
    # ethreg 0x5c
    Read Reg: 0x0000005c = 0x03ffff00
    # ethreg 0x7c
    Read Reg: 0x0000007c = 0x0000007e
    # ethreg 0x94
    Read Reg: 0x00000094 = 0x00001080
    
  • bootlog
    U-Boot 1.1.4 (Aug 29 2012 - 11:46:03)
    
    AP111 (ar7241 - Virian) U-boot
    DRAM:  
    sri
    ar7240_ddr_initial_config(133): virian ddr1 init
    #### TAP VALUE 1 = 0x2, 2 = 0x2 [0x7061636b: 0x61676520]
    32 MB
    Top of RAM usable for U-Boot at: 82000000
    Reserving 224k for U-Boot at: 81fc4000
    Reserving 192k for malloc() at: 81f94000
    Reserving 44 Bytes for Board Info at: 81f93fd4
    Reserving 36 Bytes for Global Data at: 81f93fb0
    Reserving 128k for boot params() at: 81f73fb0
    Stack Pointer at: 81f73f98
    Now running in RAM - U-Boot at: 81fc4000
    Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x17
    sector count = 128
    Flash:  8 MB
    In:    serial
    Out:   serial
    Err:   serial
    Net:   ag7240_enet_initialize...
    No valid address in Flash. Using fixed address
    No valid address in Flash. Using fixed address
     wasp  reset mask:c03300 
    Virian MDC CFG Value ==> 4
    : cfg1 0xf cfg2 0x7114
    eth0: 00:03:7f:09:0b:ad
    athrs17_reg_init: complete
    eth0 up
    Virian MDC CFG Value ==> 4
    : cfg1 0xf cfg2 0x7214
    eth1: 00:03:7f:09:0b:ad
    eth1 up
    eth0, eth1
    Hit any key to stop autoboot:  0 
    ## Booting image at 9f0a0010 ...
       Image Name:   Linux Kernel Image
       Created:      2013-02-19   1:31:53 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    1011308 Bytes = 987.6 kB
       Load Address: 80002000
       Entry Point:  802040c0
       Verifying Checksum at 0x9f0a0050 ...OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 802040c0) ...
    ## Giving linux memsize in bytes, 33554432
    
    Starting kernel ...
    
    Booting AR7240(Python)...
    Linux version 2.6.31--LSDK-9.2.0_U10.5.13 (netronix@netronix-U46SV) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #83 Thu Jan 31 19:33:31 CST 2013
    flash_size passed from bootloader = 8
    arg 1: console=ttyS0,115200
    arg 2: root=1f02
    arg 3: rw
    arg 4: rootfstype=jffs2
    arg 5: noinitrd
    arg 6: mtdparts=ar7240-nor0:320k(u-boot)ro,3712k(web-cfg-linux),4032k(rootfs),64k(NVRAM),64k(ART)
    arg 7: mem=32M
    CPU revision is: 00019374 (MIPS 24Kc)
    Determined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    User-defined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    Zone PFN ranges:
      Normal   0x00000000 -> 0x00002000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
        0: 0x00000000 -> 0x00002000
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
    Kernel command line: console=ttyS0,115200 root=1f02 rw rootfstype=jffs2 noinitrd mtdparts=ar7240-nor0:320k(u-boot)ro,3712k(web-cfg-linux),4032k(rootfs),64k(NVRAM),64k(ART) mem=32M 
    PID hash table entries: 128 (order: 7, 512 bytes)
    Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
    Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
    Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
    Writing ErrCtl register=00000000
    Readback ErrCtl register=00000000
    Memory: 29608k/32768k available (2073k kernel code, 3160k reserved, 567k data, 132k init, 0k highmem)
    NR_IRQS:128
    plat_time_init: plat time init done - ar7240_cpu_freq=400000000 
    Calibrating delay loop... 266.24 BogoMIPS (lpj=532480) HZ=250
    Mount-cache hash table entries: 512
    NET: Registered protocol family 16
    ===== ar7240_platform_init: 0
    PCI init:ar7240_pcibios_init
    ar7240_pcibios_init(305): PCI CMD write: 0x356
    registering PCI controller with io_map_base unset
    bio: create slab  at 0
    SCSI subsystem initialized
    pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    pci 0000:00:00.0: PME# disabled
    Returning IRQ 48
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 1024 (order: 1, 8192 bytes)
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    TCP: Hash tables configured (established 1024 bind 1024)
    TCP reno registered
    NET: Registered protocol family 1
    AR7240 GPIOC major 0
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    JFFS2 version 2.2 (NAND) (ZLIB) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    msgmni has been set to 57
    alg: No test for lzma (lzma-generic)
    alg: No test for stdrng (krng)
    io scheduler noop registered
    io scheduler deadline registered (default)
    Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
    console [ttyS0] enabled
    brd: module loaded
    PPP generic driver version 2.4.2
    PPP MPPE Compression module registered
    NET: Registered protocol family 24
    5 cmdlinepart partitions found on MTD device ar7240-nor0
    Creating 5 MTD partitions on "ar7240-nor0":
    0x000000000000-0x000000050000 : "u-boot"
    0x000000050000-0x0000003f0000 : "web-cfg-linux"
    0x0000003f0000-0x0000007e0000 : "rootfs"
    0x0000007e0000-0x0000007f0000 : "NVRAM"
    0x0000007f0000-0x000000800000 : "ART"
    nf_conntrack version 0.5.0 (512 buckets, 2048 max)
    nf_conntrack_l2tp version 3.1 loaded
    nf_conntrack_rtsp v0.6.21 loading
    nf_conntrack_ipsec loaded
    nf_nat_ipsec loaded
    nf_nat_rtsp v0.6.21 loading
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP cubic registered
    NET: Registered protocol family 17
    802.1Q VLAN Support v1.8 Ben Greear 
    All bugs added by David S. Miller 
    arch/mips/ar7240/gpio.c (ar7240_simple_config_init) JUMPSTART_GPIO: 1
    
    ar7240: simple_config callback..sc 1, irq 0, ignorepb 0, jiffies 4294892466
    
    ar7240: calling simple_config callback.. push dur in sec 0
    
    ar7240: simple_config callback..sc 1, irq 0, ignorepb 1, jiffies 4294892470
    ar7240wdt_init: Registering WDT success
    VFS: Mounted root (jffs2 filesystem) on device 31:2.
    Freeing unused kernel memory: 132k freed
    slide mode is 1
    ATHR_GMAC: Length per segment 1536
    ATHR_GMAC: fifo cfg 3 01f00140
    ATHR_GMAC: Mac address for unit 0:bfff0000
    ATHR_GMAC: ff:ff:ff:ff:ff:ff 
    ATHR_GMAC: Max segments per packet :   1
    ATHR_GMAC: Max tx descriptor count :   40
    ATHR_GMAC: Max rx descriptor count :   252
    ATHR_GMAC: Mac capability flags    :   4381
    athr_gmac_ring_alloc Allocated 640 at 0x81ed0400
    athr_gmac_ring_alloc Allocated 4032 at 0x81d79000
    Virian MDC CFG Value ==> 4
    Setting Drop CRC Errors, Pause Frames and Length Error frames 
    athrs17_reg_init:done
    Setting PHY...
    Phy setup Complete
    [az] 802.3az init done.. 
    [az] 802.3az init done.. 
    [az] 802.3az init done.. 
    [az] 802.3az init done.. 
    [az] 802.3az init done.. 
    Write Reg: 0x00000624: Oldval = 0x003f3f3f Newval = 0x007f7f7f
    Write Reg: 0x00000010: Oldval = 0x40000000 Newval = 0x40000000
    Write Reg: 0x00000004: Oldval = 0x07500000 Newval = 0x07600000
    Write Reg: 0x0000000c: Oldval = 0x01000000 Newval = 0x01000000
    Write Reg: 0x0000007c: Oldval = 0x000000fe Newval = 0x0000007e
    Write Reg: 0x00000420: Oldval = 0x00010001 Newval = 0x00010001
    Write Reg: 0x00000430: Oldval = 0x00010001 Newval = 0x00010001
    Write Reg: 0x00000438: Oldval = 0x00010001 Newval = 0x00010001
    Write Reg: 0x00000440: Oldval = 0x00010001 Newval = 0x00010001
    Write Reg: 0x00000448: Oldval = 0x00010001 Newval = 0x00010001
    Write Reg: 0x00000428: Oldval = 0x00010001 Newval = 0x00020001
    Write Reg: 0x00000424: Oldval = 0x00003040 Newval = 0x00002040
    Write Reg: 0x0000042c: Oldval = 0x00003040 Newval = 0x00001040
    Write Reg: 0x00000434: Oldval = 0x00003040 Newval = 0x00001040
    Write Reg: 0x0000043c: Oldval = 0x00003040 Newval = 0x00001040
    Write Reg: 0x00000444: Oldval = 0x00003040 Newval = 0x00001040
    Write Reg: 0x0000044c: Oldval = 0x00003040 Newval = 0x00001040
    Write Reg: 0x00000620: Oldval = 0x000000f0 Newval = 0x000004f0
    Write Reg: 0x00000660: Oldval = 0x0014007e Newval = 0x0014017e
    Write Reg: 0x0000066c: Oldval = 0x0014007d Newval = 0x0014017d
    Write Reg: 0x00000678: Oldval = 0x0014007b Newval = 0x0014017b
    Write Reg: 0x00000684: Oldval = 0x00140077 Newval = 0x00140177
    Write Reg: 0x00000690: Oldval = 0x0014006f Newval = 0x0014016f
    Write Reg: 0x0000069c: Oldval = 0x0014005f Newval = 0x0014015f
    Write Reg: 0x00000610: Oldval = 0x00000000 Newval = 0x001b55e0
    Write Reg: 0x00000614: Oldval = 0x00000000 Newval = 0x80010002
    Write Reg: 0x00000610: Oldval = 0x00000000 Newval = 0x001bff60
    Write Reg: 0x00000614: Oldval = 0x00000002 Newval = 0x80020002
    ifconfig: ioctl 0x8913 failed: No such device
    bridge br0 doesn't exist; can't delete it
    Init Start...
    !!!!!!!!!!!! [1] !!!!!!!!!!!!!!
    open /proc/br_igmpProxy: No such file or directory
    open /proc/sw_nat: No such file or directory
    The macbuf is flash set DEF_WLAN0_SSID logitec-0a040f  
    
    Enet:0 port1 up
    ATH_MAC_TIMER: enet unit:0 is up...
    RGMii 1000Mbps full duplex
    ATH_MAC_TIMER: done cfg2 0x7215 ifctl 0x0 miictrl  
    The macbuf is flash set DEF_WLAN0_VAP0_SSID logitec2nd-0a040f  
    Init bridge interface...
    device eth0.1 entered promiscuous mode
    device eth0 entered promiscuous mode
    br0: port 1(eth0.1) entering forwarding state
    open /proc/gpio: No such file or directory
    0
    Disable
    ath0      no private ioctls.
    
    ath1      no private ioctls.
    
    ath2      no private ioctls.
    
    ath3      no private ioctls.
    
    ===================== 0 =============== 
    wifi0     no private ioctls.
    
    device eth1 entered promiscuous mode
    br0: port 2(eth1) entering forwarding state
    Write Reg: 0x00000030: Oldval = 0x80000300 Newval = 0x80000300
    killall: pppoe-relay: no process killed
    open /proc/custom_Passthru: No such file or directory
    open /proc/custom_Passthru_wlan: No such file or directory
    open /proc/br_igmpVersion: No such file or directory
    open /proc/br_igmpsnoop: No such file or directory
    open /proc/br_igmpquery: No such file or directory
    **** drop_caches_sysctl_handler: all done timer added ...**** 
    ln: /usr/www/ath_www: File exists
    +makeVAP ap logitec-0a040f 0:RF:11ng:11NGHT40 200 1
    0
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth0.1    no wireless extensions.
    
    eth1      no wireless extensions.
    
    br0       no wireless extensions.
    
    Args: 1
    asf: module license 'Proprietary' taints kernel.
    Disabling lock debugging due to kernel taint
    ath_hal: 0.9.17.1 (AR5416, AR9380, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
    ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
    insmod: ath_spectral.ko: module not found
    insmod: ath_dfs.ko: module not found
    insmod: hst_tx99.ko: module not found
    ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
    ath_pci: 9.2.0_U11.14 (Atheros/multi-bss)
    This is CAL_IN_FLASH_PCI__ath_attach: Set global_scn[0]
    ACBKMinfree = 48
    ACBEMinfree = 32
    ACVIMinfree = 16
    ACVOMinfree = 0
    CABMinfree = 48
    UAPSDMinfree = 0
    ar9300RadioAttach: Need analog access recipe!!
    Restoring Cal data from Flash
    Using Cal data from Flash 0xbf7f0000
    ath_get_caps[5184] rx chainmask mismatch actual 7 sc_chainmak 0
    ath_get_caps[5159] tx chainmask mismatch actual 7 sc_chainmak 0
    SC Callback Registration for wifi0
    wifi0: Atheros 9380: mem=0x10000000, irq=48 hw_base=0xb0000000
    wifi1     no private ioctls.
    
    Creating ap for logitec-0a040f on
    wlanconfig ath0 create wlandev wifi0 wlanmode ap
    wlan_vap_create : enter. devhandle=0x816082c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x816082c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    Added ath0 mode master
    Configuring RF . . .
    Error for wireless request "Set Tx Power" (8B26) :
        SET failed on device wifi0 ; Invalid argument.
     ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1 
    Invalid command : setVowExt
    Invalid command : setKeySrchAlways
    Invalid command : set_vsp_enable
    Interface doesn't accept private ioctl...
    setPhyRestartWar (8BE0): Operation not permitted
    Invalid command : setVowExtStats
    WARNING: Fragmentation with HT mode NOT ALLOWED!!
    Created ath0 mode ap for logitec-0a040f
    +makeVAP ap logitec2nd-0a040f 0::11ng:11NGHT40 300 2
    0
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth0.1    no wireless extensions.
    
    eth1      no wireless extensions.
    
    br0       no wireless extensions.
    
    wifi0     no wireless extensions.
    
    Modules already loaded
    Creating ap for logitec2nd-0a040f on
    wlanconfig ath1 create wlandev wifi0 wlanmode ap
    Added ath1 mode master
    Non RF Configuration . . .
     ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1 
    Invalid command : setVowExt
    Invalid command : setKeySrchAlways
    Invalid command : set_vsp_enable
    Interface doesn't accept private ioctl...
    setPhyRestartWar (8BE0): Operation not permitted
    Invalid command : setVowExtStats
    WARNING: Fragmentation with HT mode NOT ALLOWED!!
    Created ath1 mode ap for logitec2nd-0a040f
      activateVAP ath0 br0 WPA PSK 2 
    >>>2
    ************1**************************AP_CYPHER2
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth0.1    no wireless extensions.
    
    eth1      no wireless extensions.
    
    br0       no wireless extensions.
    
    wifi0     no wireless extensions.
    
    device br0 already exists; can't create bridge with the same name
    device ath0 entered promiscuous mode
    br0: port 3(ath0) entering forwarding state
    /etc/ath/activateVAP: line 209: arping: not found
    >>>>> WPS MODE, 2
    >>>>> WPS ENABLED, PSK
    The command noackpolicy needs exactly 3 argument(s)...
    The command noackpolicy needs exactly 3 argument(s)...
    The command noackpolicy needs exactly 3 argument(s)...
    The command noackpolicy needs exactly 3 argument(s)...
    Create DHCP and multi bridge...
      activateVAP ath1 br0 WEP PSK 0 
    >>>0
    sh: 1: unknown operand
    sh: 2: unknown operand
    sh: 3: unknown operand
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth0.1    no wireless extensions.
    
    eth1      no wireless extensions.
    
    br0       no wireless extensions.
    
    wifi0     no wireless extensions.
    
    device br0 already exists; can't create bridge with the same name
    device ath1 entered promiscuous mode
    br0: port 4(ath1) entering forwarding state
    /etc/ath/activateVAP: line 209: arping: not found
    >>>>> WPS MODE, 0
    The command noackpolicy needs exactly 3 argument(s)...
    The command noackpolicy needs exactly 3 argument(s)...
    The command noackpolicy needs exactly 3 argument(s)...
    The command noackpolicy needs exactly 3 argument(s)...
    Create DHCP and multi bridge...
    CHH: System Configuration
    AP_MODE:=ap
    AP_MODE_2:=ap
    AP_MODE_3:=ap
    AP_MODE_4:=ap
    AP_IPADDR:=192.168.1.2
    AP_NETMASK:=255.255.255.0
    WAN_MODE:=bridged
    WAN_IPADDR:=192.168.2.1
    WAN_NETMASK:=255.255.255.0
    WAN_IF:=eth0
    LAN_IF:=eth0
    WLAN_ON_BOOT:=y
    AP_STARTMODE:=multi
    AP_PRIMARY_CH:=11ng
    AP_CHMODE:=11NGHT40
    PUREG:=0
    PUREN:=0
    TXQUEUELEN:=1000
    SHORTGI:=1
    AMPDUENABLE:=1
    AMPDUFRAMES:=32
    AMPDULIMIT:=50000
    AMPDUMIN:=32768
    CWMMODE:=1
    RATECTL:=auto
    MANRATE:=0x8c8c8c8c
    MANRETRIES:=0x04040404
    RX_CHAINMASK:=7
    TX_CHAINMASK:=7
    LED_CUSTOM:=3
    COEXTENABLE:=0
    AP_SSID:=logitec-0a040f
    AP_SSID_2:=logitec2nd-0a040f
    ATH_countrycode:=392
    AP_MODE_5:=ap
    AP_MODE_6:=ap
    AP_MODE_7:=ap
    AP_MODE_8:=ap
    AP_SECMODE:=WPA
    AP_SECMODE_2:=WEP
    AP_SECMODE_3:=None
    AP_SECMODE_4:=None
    AP_SECMODE_5:=None
    AP_SECMODE_6:=None
    AP_SECMODE_7:=None
    AP_SECMODE_8:=None
    AP_SECFILE:=PSK
    AP_SECFILE_2:=PSK
    AP_SECFILE_3:=PSK
    AP_SECFILE_4:=PSK
    AP_SECFILE_5:=PSK
    AP_SECFILE_6:=PSK
    AP_SECFILE_7:=PSK
    AP_SECFILE_8:=PSK
    WPS_ENABLE:=2
    WPS_ENABLE_2:=0
    WPS_ENABLE_3:=0
    WPS_ENABLE_4:=0
    WPS_ENABLE_5:=0
    WPS_ENABLE_6:=0
    WPS_ENABLE_7:=0
    WPS_ENABLE_8:=0
    BEACON_INT:=100
    FRAG_THRESHOLD:=2346
    RTS_THRESHOLD:=2347
    PREAMBLE:=0
    RFPower:=100
    WE ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1 
    PLEN:=2
    WEPLEN_ Scan in progress.. Cancelling it 
    2:=2
    WEPLEN_3:=2
    WEPLEN_4:=2
    WEPFORMAT:=1
    WEPFORMAT_2:=1
    WEPFORMAT_3:=1
    WEPFORMAT_4:=1
    AP_WEP_MODE:=1
    AP_WEP_MODE_2:=1
    AP_WEP_MODE_3:=1
    AP_WEP_MODE_4:=1
    AP_WPA:=2
    AP_WPA_2:=1
    AP_WPA_3:=1
    AP_WPA_4:=1
    AP_ENCRYPT:=2
    AP_CYPHER:=br0: port 3(ath0) entering disabled state
    CCMP
    WLAN_DISAB DEVICE IS DOWN ifname=ath0
    LED:=0
    WLAN_DIS DEVICE IS DOWN ifname=ath0
    ABLED_2:=0
    WLAN_DISABLED_3:=1
    WLAN_DISABLED_4:=1
    HIDDEN_SSID:=0
    HIDDEN_SSID_2:=0
    HIDDEN_SSID_3:=0
    HIDDEN_SSID_4:=0
    WLAN_WMM:=1
    WLAN_WMM_2:=1
    WLAN_WMM_3:=1
    WLAN_WMM_4:=1
    WLAN_DHCP:=0
    WLAN_DHCP_2:=0
    WLAN_DHCP_3:=0
    WLAN_DHCP_4:=0
    TX_RATE:=0
    TX_RATE_2:=0
    TX_RATE_3:=0
    TX_RATE_4:=0
    WLAN_PRIVATE_SEPARATE:=1
    WLAN_PRIVATE_SEPARATE_2:=1
    WLAN_PRIVATE_SEPARATE_3:=1
    WLAN_PRIVATE_SEPARATE_4:=1
    WLAN_SSID_SEPARATE:=1
    WLAN_SSID_SEPARATE_2:=1
    WLAN_SSID_SEPARATE_3:=1
    WLAN_SSID_SEPARATE_4:=1
    ACCESS_CONTROL_WEB:=1
    ACCESS_CONTROL_WEB_2:=1
    ACCESS_CONTROL_WEB_3:=1
    ACCESS_CONTROL_WEB_4:=1
    enablePIN:=1
    pskFormat:=0
    pskFormat_2:=0
    pskFormat_3:=0
    pskFormat_4:=0
    SLIDEMODE_TYPE:=1
    PSK_KEY:=9052797528282
    WSC_PIN:=90527975
    AP_PRIMARY_KEY:=2
    WEPKEY_1:=9052797528282
    WEPKEY_2:=9052797528282
    WEPKEY_3:=9052797528282
    WEPKEY_4:=9052797528282
    Add randomness: count=1 entropy=0
    random pool - hexdump(len=128): [REMOVED]
    random_mix_pool - hexdump(len=8): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random pool - hexdump(len=128): [REMOVED]
    random: Added entropy from /etc/wpa2/entropy (own_pool_ready=2)
    random: Trying to read entropy from /dev/random
    Get randomness: len=20 entropy=1
    random from os_get_random - hexdump(len=20): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    mixed random - hexdump(len=20): [REMOVED]
    random: Updated entropy file /etc/wpa2/entropy (own_pool_ready=2)
    Configuration file: /etc/wpa2/WSC_ath0.conf
    Configure bridge br0 for EAPOL traffic.
    atheros_set_privacy: enabled=0
    atheros_receive_pkt Enter
    SIOCGIWRANGE: WE(compiled)=22 WE(source)=13 enc_capa=0xf
    BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
    Completing interface initialization
    Flushing old station entries
    atheros_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
    atheros: set80211priv: ath0: ioctl op=0x8be6 (SETMLME) len=42 failed: 22 (Invalid argument)
    atheros_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason 3)
    Could not connect to kernel driver.
    Deauthenticate all stations
    atheros_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=2
    atheros: set80211priv: ath0: ioctl op=0x8be6 (SETMLME) len=42 failed: 22 (Invalid argument)
    atheros_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason 2)
    atheros_set_privacy: enabled=0
    atheros_del_key: addr=00:00:00:00:00:00 key_idx=0
    atheros_del_key: addr=00:00:00:00:00:00 key_idx=1
    atheros_del_key: addr=00:00:00:00:00:00 key_idx=2
    atheros_del_key: addr=00:00:00:00:00:00 key_idx=3
    Using interface ath0 with hwaddr 34:95:db:0a:04:0e and ssid 'logitec-0a040f'
    Deriving WPA PSK based on passphrase
    SSID - hexdump_ascii(len=14):
         6c 6f 67 69 74 65 63 2d 30 61 30 34 30 66         logitec-0a040f  
    PSK (ASCII passphrase) - hexdump_ascii(len=13): [REMOVED]
    PSK (from passphrase) - hexdump(len=32): [REMOVED]
    WPS: UUID based on MAC address - hexdump(len=16): bc 90 be 5br0: port 3(ath0) entering forwarding state
    7 1f de 57 01 b2 a8 b8 86 78 c3 de 97
    WPS: Build Beacon IEs
    WPS:  * Version (hardcoded 0x10)
    WPS:  * Wi-Fi Protected Setup State (2)
    WPS:  * Version2 (0x20)
    WPS: Build Probe Response IEs
    WPS:  * Version (hardcoded 0x10)
    WPS:  * Wi-Fi Protected Setup State (2)
    WPS:  * Response Type (3)
    WPS:  * UUID-E
    WPS:  * Manufacturer
    WPS:  * Model Name
    WPS:  * Model Number
    WPS:  * Serial Number
    WPS:  * Primary Device Type
    WPS:  * Device Name
    WPS:  * Config Methods (2688)
    WPS:  * RF Bands (1)
    WPS:  * Version2 (0x20)
    WPS: Building WPS IE for (Re)Association Response
    WPS:  * Version (hardcoded 0x10)
    WPS:  * Response Type (3)
    WPS:  * Version2 (0x20)
    atheros_set_wps_ie buflen = 26
    atheros_set_wps_ie buflen = 26
    atheros_set_wps_ie buflen = 157
    WPS: David add
    hapd->wps=47de68
    atheros_set_ieee8021x: enabled=1
    atheros_configure_wpa: group key cipher=3
    atheros_configure_wpa: pairwise key ciphers=0x8
    atheros_configure_wpa: key management algorithms=0x2
    atheros_configure_wpa: rsn capabilities=0x0
    atheros_configure_wpa: enable WPA=0x2
    random: Got 20/20 bytes from /dev/random
    Get randomness: len=20 entropy=0
    random from os_get_random - hexdump(len=20): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    mixed random - hexdump(len=20): [REMOVED]
    random: Updated entropy file /etc/wpa2/entropy (own_pool_ready=2)
    Get randomness: len=32 entropy=0
    random from os_get_random - hexdump(len=32): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    mixed random - hexdump(len=32): [REMOVED]
    GMK - hexdump(len=32): [REMOVED]
    Get randomness: len=32 entropy=0
    random from os_get_random - hexdump(len=32): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    mixed random - hexdump(len=32): [REMOVED]
    Key Counter - hexdump(len=32): [REMOVED]
    WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
    Get randomness: len=16 entropy=0
    random from os_get_random - hexdump(len=16): [REMOVED]
    random_mix_pool - hexdump(len=20): [REMOVED]
    random from internal pool - hexdump(len=16): [REMOVED]
    mixed random - hexdump(len=16): [REMOVED]
    GTK - hexdump(len=16): [REMOVED]
    WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
    atheros_set_key: alg=3 addr=ff:ff:ff:ff:ff:ff key_idx=1
    atheros_set_privacy: enabled=1
    atheros_set_opt_ie buflen = 22
    WPS UPnP: Init interface instance 0x47e4b8
    WPS UPnP: Initialize device context
    HTTP: Started server on 192.168.2.1:49152
    ath0: Setup of interface done.
    sh: bad number
    iwpriv ath0 disablecoext 0
    # 128+0 records in
    128+0 records out
    boa: server version Boa/0.94.14rc21
    boa: server built Feb 19 2013 at 09:30:09.
    boa: starting server pid=1875, port 80
    

WZR-HP-G302H A1A0 stock -> OpenWrt (ath79)

とりあえずここまで来たのでメモ。

MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gatedesc.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = ligd.gif
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = L3FwdSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateicfgSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateconnSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateinfoSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = messages
ip_nat_pptp version 3.0 unloaded
ip_conntrack_pptp version 3.1 unloaded
cgi.c(3596) UploadCgi :x:MEMORY CHECK...
MidLayer.c(1914) ML_CheckMemory :X:MemFree = 38596
MidLayer.c(1918) ML_CheckMemory :X:Buffers = 3300
MidLayer.c(1922) ML_CheckMemory :X:Cached = 11968
MidLayer.c(1926) ML_CheckMemory :X:Active = 9444
MidLayer.c(1930) ML_CheckMemory :X:Inactive = 6816
Sep 30 17:04:47 udhcpd: Request incoming from Tofu-QM77W10(len:12)
Sep 30 17:04:47 udhcpd: sending OFFER of 192.168.11.2 Tofu-QM77W10
cgi.c(2776) Check_TagVersion :INFO :pTarget = WZR-HP-G302H : a_pProduct = WZR-HP-G302H
cgi.c(2681) check_specification :DEBUG:U-bootSpecification  = M_00000001(JP)
cgi.c(2684) check_specification :DEBUG:NewFirmSpecification = M_ffffffff
cgi.c(4165) UploadCgi :INFO:(iUbootHwRev):4 (iHwVersion):4 ...tag[hwv]...
wanctl-lib.c(4937) StopPppModemSession :x:StopPppModemSession
watchdogd-ath.c(42) watchdog_stop :WD:Watchdog Stopped
watchdogd.c(11) watchdogd_term :WD:Terminate Watchdog Daemon
debug : Enter [BRCTL_ADD_IF] 
cgi.c(4203) UploadCgi :ERR:wlconfig_down() call 
rcUtil.c(2949) Wireless_Rmmod :ERR:####### Wireless_Rmmod #########
ag7240_ring_free start Freeing at 0x83ef6400
ag7240_ring_free done  Freeing at 0x0
ag7240_ring_free start Freeing at 0x83ed0000
ag7240_ring_free done  Freeing at 0x0
ag7240_cleanup Freeing at 0x810a0000
ag7240_cleanup Freeing at 0x83f34000
AG7240: cleanup done
cgi.c(4254) UploadCgi :X:begin update firmware size 7012356
MidLayerFlashNvram.c(929) MLF_WriteFirmWare :debug:

==== Firmware UPDATE (timestamp=1538327116) ====

MidLayerFlashNvram.c(1007) MLF_WriteFirmWare :debug:block size      = 131072
MidLayerFlashNvram.c(1008) MLF_WriteFirmWare :debug:write block cnt = 54/54
MidLayerFlashNvram.c(1010) MLF_WriteFirmWare :debug:verify error cnt= 0
Restarting system.
.
In:    serial
Out:   serial
Err:   serial
Memory Test
uboot use  83F6BFB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000  Writing...  Reading...
Memory Test OK
### buf_ver=[1.08] U-Boot Ver.=[1.08]
### build_date(env)=[Sep 26 2011 - 00:19:46] build_date(bin)=[Sep 26 2011 - 00:19:46]
ag7240_enet_initialize...
Reading MAC Address from ENV(0x83f8c2f8)
No valid address in Flash. Using fixed address
Virian MDC CFG Value ==> 4
: cfg1 0x7 cfg2 0x7014
eth0: 02:aa:bb:cc:dd:1a
eth0 up
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0  02:AA:BB:CC:DD:1A
, eth1  00:03:7F:09:0B:AD

dup 1 speed 1000

tftp server(receive) go, waiting:4[sec]
Load address: 0x81f00000

TftpServer Timeout;
no file was loaded.
change bootargs
console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties) mem=64M product_rev=1 UART=1
## Booting image at bf060000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.72
   Created:      2018-09-30  16:32:17 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1600513 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... crc32_fw: bf060040 - bf1e6c40 (len:00186c01) calc...
crc32_fw: range1 bf060040 - bf1e6c40
OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 4.14.72 (musashino205@Taiha.Net) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r0+8209-28be5abff2)) #0 Sun Sep 30 16:32:17 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Buffalo WZR-HP-G302H A1A0
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 58272K/65536K available (3731K kernel code, 144K rwdata, 900K rodata, 1232K init, 204K bss, 7264K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 400.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007902] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.094148] pid_max: default: 32768 minimum: 301
[    0.099067] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105670] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.119001] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.128868] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.135060] pinctrl core: initialized pinctrl subsystem
[    0.141622] NET: Registered protocol family 16
[    0.154794] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.161306]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.166515]   IO 0x0000000000000000..0x0000000000000000
[    0.196643] PCI host bridge to bus 0000:00
[    0.200758] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.207675] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.213232] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.220008] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.228601] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.236828] clocksource: Switched to clocksource MIPS
[    0.243323] NET: Registered protocol family 2
[    0.248907] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.255884] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.262305] TCP: Hash tables configured (established 1024 bind 1024)
[    0.268866] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.274717] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.281338] NET: Registered protocol family 1
[    0.292021] Crashlog allocated RAM at address 0x3f00000
[    0.299062] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.312887] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.318756] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.340892] io scheduler noop registered
[    0.344813] io scheduler deadline registered (default)
[    0.350483] ar7200-usb-phy usb-phy: phy reset is missing
[    0.356361] pinctrl-single 18040028.pinmux: 64 pins at pa b8040028 size 8
[    0.363838] gpio-export gpio-export: 1 gpio(s) exported
[    0.370155] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.377534] console [ttyS0] disabled
[    0.381161] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 12500000) is a 16550A
[    0.389914] console [ttyS0] enabled
[    0.389914] console [ttyS0] enabled
[    0.396940] bootconsole [early0] disabled
[    0.396940] bootconsole [early0] disabled
[    0.414439] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.423161] m25p80 spi0.1: mx25l12805d (16384 Kbytes)
[    0.429819] Concatenating MTD devices:
[    0.433600] (0): "spi0.0"
[    0.436232] (1): "spi0.1"
[    0.438948] into device "virtual_flash"
[    0.442867] 5 fixed-partitions partitions found on MTD device virtual_flash
[    0.449884] Creating 5 MTD partitions on "virtual_flash":
[    0.455325] 0x000000000000-0x000000040000 : "u-boot"
[    0.461384] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.467837] 0x000000050000-0x000000060000 : "art"
[    0.473570] 0x000000060000-0x000001fc0000 : "firmware"
[    0.566161] 2 uimage-fw partitions found on MTD device firmware
[    0.572181] 0x000000060000-0x0000001f0000 : "kernel"
[    0.578268] 0x0000001f0000-0x000001fc0000 : "rootfs"
[    0.584202] mtd: device 7 (rootfs) set to be root filesystem
[    0.590005] 1 squashfs-split partitions found on MTD device rootfs
[    0.596232] 0x000000710000-0x000001fc0000 : "rootfs_data"
[    0.602709] 0x000001fc0000-0x000002000000 : "user_property"
[    0.610874] libphy: Fixed MDIO Bus: probed
[    0.957282] libphy: ag71xx_mdio: probed
[    0.963160] switch0: Atheros AR8316 rev. 1 switch registered on mdio-bus.0
[    1.308015] ar8316: Using port 4 as switch port
[    1.316999] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]
[    1.328648] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    1.337615] NET: Registered protocol family 10
[    1.347393] Segment Routing with IPv6
[    1.351217] NET: Registered protocol family 17
[    1.355740] 8021q: 802.1Q VLAN Support v1.8
[    1.368247] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.385592] Freeing unused kernel memory: 1232K
[    1.390178] This architecture does not have kernel memory protection.
[    2.199278] init: Console is alive
[    2.202972] init: - watchdog -
[    2.506877] random: fast init done
[    4.199341] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.433962] usbcore: registered new interface driver usbfs
[    4.439682] usbcore: registered new interface driver hub
[    4.445151] usbcore: registered new device driver usb
[    4.500580] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.520351] SCSI subsystem initialized
[    4.531126] ehci-platform: EHCI generic platform driver
[    4.536737] ehci-platform 1b000000.usb: EHCI Host Controller
[    4.542542] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    4.550595] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    4.576853] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    4.584260] hub 1-0:1.0: USB hub found
[    4.588559] hub 1-0:1.0: 1 port detected
[    4.599322] usbcore: registered new interface driver usb-storage
[    4.606620] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.616201] init: - preinit -
[    6.283016] random: jshn: uninitialized urandom read (4 bytes read)
[    6.683508] random: jshn: uninitialized urandom read (4 bytes read)
[    6.987658] random: jshn: uninitialized urandom read (4 bytes read)
[    7.944696] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.950754] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.055429] urandom_read: 2 callbacks suppressed
[    8.055441] random: procd: uninitialized urandom read (4 bytes read)
[    8.988068] eth0: link up (1000Mbps/Full duplex)
[    8.992781] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.999724] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   12.224097] mount_root: loading kmods from internal overlay
[   12.289121] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   12.303259] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   14.099491] block: attempting to load /etc/config/fstab
[   14.112486] block: unable to load configuration (fstab: Entry not found)
[   14.119434] block: no usable configuration
[   14.124671] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   14.195533] urandom-seed: Seed file not found (/etc/urandom.seed)
[   14.383408] procd: - early -
[   14.386436] procd: - watchdog -
[   15.072066] procd: - watchdog -
[   15.075590] procd: - ubus -
[   15.227033] eth0: link down
[   15.274096] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.282312] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.321668] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.329897] procd: - init -
Please press Enter to activate this console.
[   16.259843] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.315705] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   16.397841] u32 classifier
[   16.400573]     input device check on
[   16.404250]     Actions configured
[   16.436388] Mirror/redirect action on
[   16.471634] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   16.511505] Loading modules backported from Linux version v4.19-rc5-0-g6bf4ca7fbc85
[   16.519280] Backport generated by backports.git v4.19-rc5-1-0-g05571dcd
[   16.540955] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.768411] usbcore: registered new interface driver ums-alauda
[   16.793751] usbcore: registered new interface driver ums-cypress
[   16.829054] usbcore: registered new interface driver ums-datafab
[   16.858789] usbcore: registered new interface driver ums-freecom
[   16.872809] usbcore: registered new interface driver ums-isd200
[   16.888744] usbcore: registered new interface driver ums-jumpshot
[   16.899802] usbcore: registered new interface driver ums-karma
[   16.909492] usbcore: registered new interface driver ums-sddr09
[   16.918752] usbcore: registered new interface driver ums-sddr55
[   16.928219] usbcore: registered new interface driver ums-usbat
[   16.990244] xt_time: kernel timezone is -0000
[   17.097575] PPP generic driver version 2.4.2
[   17.105637] NET: Registered protocol family 24
[   17.172996] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   17.183223] ath9k 0000:00:00.0: Falling back to user helper
[   17.405325] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[   17.435119] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=11
[   17.484404] kmodloader: done loading kernel modules from /etc/modules.d/*
[   37.932217] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   38.079402] br-lan: port 1(eth0.1) entered blocking state
[   38.084848] br-lan: port 1(eth0.1) entered disabled state
[   38.090794] device eth0.1 entered promiscuous mode
[   38.095622] device eth0 entered promiscuous mode
[   38.159916] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   38.254532] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   38.988474] eth0: link up (1000Mbps/Full duplex)
[   38.993184] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   39.066992] br-lan: port 1(eth0.1) entered blocking state
[   39.072443] br-lan: port 1(eth0.1) entered forwarding state
[   39.078351] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   39.216938] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   56.456485] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   56.497036] jffs2_build_filesystem(): unlocking the mtd device... 
[   56.497054] done.
[   56.505205] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[  123.186918] random: crng init done
[  123.197880] random: 1 urandom warning(s) missed due to ratelimiting
[  259.047585] done.
[  259.049589] jffs2: notice: (2163) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  259.533926] overlayfs: upper fs does not support tmpfile.



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+8209-01bad1acb1
 -----------------------------------------------------
=== 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:/#

WZR-HP-G302H

以前東久留米のハードオフで入手していたものの、シリアル (UART)が一切の信号を出力せず保留にしていたもの。久しぶりに引っ張り出してOpenWrt Wikiなどを漁ったところ、u-bootで潰されているため有効にする必要があることが判明し、設定したところ使えるようになった。

  • 型番: WZR-HP-G302H A1A0
  • 基板シルク印刷: WZR-HP-G302HV2 21514W302HV21A2 Rev:A2

Switch

zone WAN LAN
port
(WZR-HP-G302H)
INTERNET LAN4 LAN3 LAN2 LAN1
port
(AR8316)
port2 port3 port4 port5 port1

MAC

  • ART, 0x120C
  • LAN, WAN, 2.4G: xx:xx:xx:xx:xx:AF

U-Boot

U-Bootでシリアル (UART)が潰されており、stock firmwareでdebugページからtelnetdを有効化の上ログインし ubootenv set force_uart 1 を設定して有効化する必要がある

  • help
    ar7240> help
    ?       - alias for 'help'
    autoscr - run script from memory
    TFTPS   - boot image via network as TFTP server
    base    - print or set address offset
    boot    - boot default, i.e., run 'bootcmd'
    bootd   - boot default, i.e., run 'bootcmd'
    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
    coninfo - print console devices and information
    cp      - memory copy
    crc32   - checksum calculation
    echo    - echo args to console
    erase   - erase FLASH memory
    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
    imls    - list all images found in flash
    itest   - return true/false on integer compare
    loadb   - load binary file over serial line (kermit mode)
    loads   - load S-Record file over serial line
    loady   - load binary file over serial line (ymodem mode)
    loop    - infinite loop on address range
    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)
    pci     - list and access PCI Configuration Space
    phyreg - read/write phyreg
    ping    - send ICMP ECHO_REQUEST to network host
    printenv- print environment variables
    progmac - Set ethernet MAC addresses
    protect - enable or disable FLASH write protection
    rarpboot- boot image via network using RARP/TFTP protocol
    reset   - Perform RESET of the CPU
    run     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    set_mtest  - set mtest parameters. (for next bootup)
    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
    ar7240> version
    
    U-Boot 1.1.4 for BUFFALO AIRSTATION (Sep 26 2011 - 00:19:46)
    

  • printenv
    force_uart=1 はUART有効化のための追加分
    ar7240> printenv
    bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties)
    bootcmd=bootm BF060000
    baudrate=115200
    ethaddr=02:AA:BB:CC:DD:1A
    ipaddr=192.168.11.1
    serverip=192.168.11.2
    tmp_ram=81F00000
    tmp_bottom=83F00000
    fw_eaddr=BF060000 BEFFFFFF
    uboot_eaddr=BF000000 BF03FFFF
    u_fw=erase $fw_eaddr; cp.fw $fileaddr BF060000 $filesize; bootm BF060000;
    ut_fw=tftp $tmp_ram firmware.bin; erase $fw_eaddr; cp.fw $fileaddr BF060000 $filesize; bootm BF060000;
    ut_uboot=tftp $tmp_ram u-boot.bin; protect off $uboot_eaddr; erase $uboot_eaddr; cp.b $fileaddr BF000000 $filesize;
    melco_id=RD_BB10085
    hw_rev=4
    tftp_wait=4
    uboot_ethaddr=02:AA:BB:CC:DD:1A
    DEF-p_wireless_ath0_11bg-authmode=psk
    DEF-p_wireless_ath0_11bg-crypto=tkip+aes
    DEF-p_wireless_ath0_11bg-authmode_ex=mixed-psk
    product_rev=1
    custom_id=0
    buf_ver=1.08
    region=JP
    build_date=Sep 26 2011 - 00:19:46
    pincode=87716498
    DEF-p_wireless_ath0_11bg-wpapsk=*************
    buf_crc=1B3A3486
    force_uart=1
    tmp_uart=1
    stdin=serial
    stdout=serial
    stderr=serial
    loadaddr=81F00000
    ethact=eth0
    
    Environment size: 1150/65532 bytes
    

  • mii device
    ar7240> mii device
    MII devices: 'eth0' 'eth1' 
    Current device: 'eth0'
    

  • md.l 0x1805002c 1
    ar7240> md.l 0x1805002c 1
    1805002c: 1c000000    ....
    

Kernel

  • uname -a
    # uname -a
    Linux AP106F3F02F6AF 2.6.15 #1 Wed May 23 16:34:49 JST 2012 mips unknown
    

  • cat /proc/version
    # cat /proc/version
    Linux version 2.6.15 (snapshot@snapshot) (gcc version 3.4.4) #1 Wed May 23 16:34:49 JST 2012
    

  • cat /proc/cpuinfo
    # cat /proc/version
    Linux version 2.6.15 (snapshot@snapshot) (gcc version 3.4.4) #1 Wed May 23 16:34:49 JST 2012
    # cat /proc/cpuinfo
    system type             : Atheros AR7240 (Python)
    processor               : 0
    cpu model               : MIPS 24K V7.4
    BogoMIPS                : 265.21
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 16
    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:        62720 kB
    MemFree:         36052 kB
    Buffers:          3204 kB
    Cached:          11832 kB
    SwapCached:          0 kB
    Active:          10392 kB
    Inactive:         7864 kB
    HighTotal:           0 kB
    HighFree:            0 kB
    LowTotal:        62720 kB
    LowFree:         36052 kB
    SwapTotal:           0 kB
    SwapFree:            0 kB
    Dirty:               0 kB
    Writeback:           0 kB
    Mapped:           6332 kB
    Slab:             5372 kB
    CommitLimit:     31360 kB
    Committed_AS:    15632 kB
    PageTables:        548 kB
    VmallocTotal:  1048560 kB
    VmallocUsed:      2188 kB
    VmallocChunk:  1045808 kB
    

  • cat /proc/mtd
    OpenWrt ar71xx targetに既存のWZR-HP-G300NH2とは、mtdパーティションのサイズ, オフセットが一部異なる
    # cat /proc/mtd 
    dev:    size   erasesize  name
    mtd0: 00040000 00010000 "uboot"
    mtd1: 00010000 00010000 "uboot_environ"
    mtd2: 00010000 00010000 "ART"
    mtd3: 00100000 00010000 "linux"
    mtd4: 01e60000 00010000 "rootfs"
    mtd5: 00040000 00010000 "user_property"
    mtd6: 01f60000 00010000 "firmware"
    

  • bootlog
    In:    serial
    Out:   serial
    Err:   serial
    Memory Test
    uboot use  83F6BFB0 - 84000000
    Memory Test start(80000000) end(83F00000) size(03F00000)
    Pattern 00000000  Writing...  Reading...
    Memory Test OK
    ### buf_ver=[1.08] U-Boot Ver.=[1.08]
    ### build_date(env)=[Sep 26 2011 - 00:19:46] build_date(bin)=[Sep 26 2011 - 00:19:46]
    ag7240_enet_initialize...
    Reading MAC Address from ENV(0x83f8c2f8)
    No valid address in Flash. Using fixed address
    Virian MDC CFG Value ==> 4
    : cfg1 0x7 cfg2 0x7014
    eth0: 02:aa:bb:cc:dd:1a
    eth0 up
    Virian MDC CFG Value ==> 4
    : cfg1 0xf cfg2 0x7214
    eth1: 00:03:7f:09:0b:ad
    ATHRS26: resetting s26
    ATHRS26: s26 reset done
    eth1 up
    eth0  02:AA:BB:CC:DD:1A
    , eth1  00:03:7F:09:0B:AD
    
    dup 1 speed 1000
    
    tftp server(receive) go, waiting:4[sec]
    Load address: 0x81f00000
    
    TftpServer Timeout;
    no file was loaded.
    change bootargs
    console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties) mem=64M product_rev=1 UART=1
    ## Booting image at bf060000 ...
       Image Name:   Linux Rootfs Combined Image
       Created:      2012-05-23   7:54:06 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    21168064 Bytes = 20.2 MB
       Load Address: 80002000
       Entry Point:  801fc000
       Verifying Checksum ... crc32_fw: bf060040 - c048ffff (len:0142ffc0) calc...
    crc32_fw: range1 bf060040 - bfffffff, range2 be000000 - be48ffff
    OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 801fc000) ...
    ## Giving linux memsize in bytes, 67108864
    
    Starting kernel ...
    
    Booting AR7240(Python)...
    Linux version 2.6.15 (snapshot@snapshot) (gcc version 3.4.4) #1 Wed May 23 16:34:49 JST 2012
    flash_size passed from bootloader = 32
    arg 1: console=ttyS0,115200
    arg 2: root=31:03
    arg 3: rootfstype=jffs2
    arg 4: init=/sbin/init
    arg 5: mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties)
    arg 6: mem=64M
    arg 7: product_rev=1
    arg 8: UART=1
    use [CONFIG_CMDLINE_AR7240] = console=ttyS0,115200 root=/dev/mtdblock4 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(uboot),64k(uboot_environ),64k(ART),1024k(linux),31104k(rootfs),256k(user_property),32128k@384k(firmware) mem=64M 
    CPU revision is: 00019374
    Determined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    User-defined physical RAM map:
     memory: 04000000 @ 00000000 (usable)
    Built 1 zonelists
    Kernel command line: console=ttyS0,115200 root=/dev/mtdblock4 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(uboot),64k(uboot_environ),64k(ART),1024k(linux),31104k(rootfs),256k(user_property),32128k@384k(firmware) mem=64M
    Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
    Primary data cache 32kB, 4-way, linesize 32 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).
    Cache parity protection disabled
    PID hash table entries: 512 (order: 9, 8192 bytes)
    Using 200.000 MHz high precision timer.
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 62548k/65536k available (1751k kernel code, 2932k reserved, 268k data, 116k init, 0k highmem)
    Mount-cache hash table entries: 512
    Checking for 'wait' instruction...  available.
    NET: Registered protocol family 16
    PCI init:ar7240_pcibios_init
    ar7240_pcibios_init(300): PCI CMD write: 0x356
    SCSI subsystem initialized
    call pcibios_initReturning IRQ 48
    AR7240 GPIOC major 0
    squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
    squashfs: LZMA suppport for slax.org by jro
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler deadline registered
    HDLC line discipline: version $Revision: #1 $, maxframe=4096
    N_HDLC line discipline registered.
    Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    PPP BSD Compression module registered
    PPP MPPE compression module registered
    NET: Registered protocol family 24
    AR9100 FLASH DRIVER found device
      vendor 0x0   device-id 0x0, 0x0, 0x0
    FLASH ID: UNKNOWN SIZE: (0 KB)
    RedBoot partition parsing not available
    No partitions found on flash
    check spi banks 2
    0000 : C2 20 18
    found MX25L128-45E device on bank#0
    0000 : C2 20 18
    found MX25L128-45E device on bank#1
    SPI flash size total:32 Mbytes
    WHR-AG300N_part partition parsing not available
    WHR-HP-G300N_part partition parsing not available
    7 cmdlinepart partitions found on MTD device ar7240-nor0
    Creating 7 MTD partitions on "ar7240-nor0":
    0x00000000-0x00040000 : "uboot"
    0x00040000-0x00050000 : "uboot_environ"
    0x00050000-0x00060000 : "ART"
    0x00060000-0x00160000 : "linux"
    0x00160000-0x01fc0000 : "rootfs"
    0x01fc0000-0x02000000 : "user_property"
    0x00060000-0x01fc0000 : "firmware"
    u32 classifier
        OLD policer on 
    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: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    ip_conntrack version 2.4 (512 buckets, 4096 max) - 212 bytes per conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    ipt_time loading
    TCP bic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    802.1Q VLAN Support v1.8 Ben Greear 
    All bugs added by David S. Miller 
    ar7240wdt_init: Registering WDT success
    arch/mips/ar7240/gpio.c (ar7240_simple_config_init) JUMPSTART_GPIO: 12
    VFS: Mounted root (squashfs filesystem) readonly.
    Freeing unused kernel memory: 2099229k freed
    Warning: unable to open an initial console.
    rcUtil_uboot.c(261) UbootUpdate :DEBUG:Enter
    
    Please press Enter to activate this console. rcUtil_uboot.c(72) GetCurrentUbootVersion :DEBUG:CurrentVersion = 108
    rcUtil_uboot.c(104) GetMyUbootVersion :DEBUG:MyUbootVersion = 108
    rcUtil_uboot.c(144) DoesNeedtoUpdateUboot :DEBUG:nothing to be done for Update
    rc.c(765) SetUbootParam :ERR:region is not support: u-boot=JP  fw-spec=
    rc.c(806) SetUbootParam :x:MODEM-FUNCTION ENABLE
    Using /lib/modules/kernel/drivers/char/mel_initsw_ar7240.ko
    mel_initsw_ar7240: module license 'unspecified' taints kernel.
    mel_initsw initialized. 
    watchdogd.c(24) watchdogd_main :WD:Start Watchdog Daemon
    rc.c(325) VerifyParamsOfInit :x:create status sections
    rc.c(806) SetUbootParam :x:MODEM-FUNCTION ENABLE
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    AG7240: Length per segment 1536
    AG7240: Max segments per packet 1
    AG7240: Max tx descriptor count    40
    AG7240: Max rx descriptor count    252
    AG7240: fifo cfg 3 01f00140
    AG7240CHH: Mac address for unit 0
    AG7240CHH: eb:fc:f1:8d:27:30 
    [0] dev[0] eth0 make
    AG7240CHH: Mac address for unit 0
    AG7240CHH: eb:fc:f1:8d:27:30 
    [0] dev[1] eth1 make
    AG7240CHH: Mac address for unit 1
    AG7240CHH: 37:89:af:f4:45:ef 
    [1] dev[0] eth2 make
    AG7240CHH: Mac address for unit 1
    AG7240CHH: 37:89:af:f4:45:ef 
    [1] dev[1] eth3 make
    ag7240_ring_alloc Allocated 640 at 0x83ee4400
    ag7240_ring_alloc Allocated 4032 at 0x83ed2000
    Virian MDC CFG Value ==> 4
    CFG Board need PortVLAN 
    Enable Broadcast forward
    port vlan initialize...
    AbBUFFALO athrs16_reg_init complete.
    Setting PHY...
    AG7240: LAN/unit0: phy0 not up carrier 1
    rcUtil.c(2727) Wireless_Insmod :ERR:####### Wireless_Insmod #########
    Using /lib/modules/2.6.15/net/ath_hal.ko
    ath_hal: 0.9.17.1 (AR5416, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
    Using /lib/modules/2.6.15/net/wlan.ko
    wlan: 0.8.4.2 (Atheros/multi-bss)
    Using /lib/modules/2.6.15/net/ath_rate_atheros.ko
    ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
    Using /lib/modules/2.6.15/net/ath_dev.ko
    ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
    v.7.3.0.387
    Using /lib/modules/2.6.15/net/ath_pci.ko
    ath_pci: 0.9.4.5 (Atheros/multi-bss)
    Allocating txfree is 512
    wifi0: Atheros 9280: mem=0x10000000, irq=48 hw_base=0xb0000000
    Using /lib/modules/2.6.15/net/wlan_xauth.ko
    Using /lib/modules/2.6.15/net/wlan_ccmp.ko
    Using /lib/modules/2.6.15/net/wlan_tkip.ko
    Using /lib/modules/2.6.15/net/wlan_wep.ko
    Using /lib/modules/2.6.15/net/wlan_acl.ko
    wlan: mac acl policy registered
    Using /lib/modules/2.6.15/net/wlan_me.ko
    wlan_me: Version 0.1
    Copyright (c) 2008 Atheros Communications, Inc. All Rights Reserved
    Using /lib/modules/2.6.15/net/ath_pktlog.ko
    Using /lib/modules/2.6.15/net/wlan_scan_ap.ko
    Using /lib/modules/2.6.15/net/wlan_scan_sta.ko
    wlctl-ath.c(867) wlconf_country_set :DEBUG:region=JP iCountryCode=4015
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ag7240_mod.ko': Invalid parameters (17): Invalid argument
    rc.c(806) SetUbootParam :x:MODEM-FUNCTION ENABLE
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ag7240_mod.ko': Invalid parameters (17): Invalid argument
    rcUtil.c(2727) Wireless_Insmod :ERR:####### Wireless_Insmod #########
    Using /lib/modules/2.6.15/net/ath_hal.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ath_hal.ko': Invalid parameters (17): Invalid argument
    rcUtil.c(3700) AtherosWirelessBaseModules_Insmod :####:insmod ath_hal : FAILED (Perhaps, [ath_hal] has already been added.)
    wlctl-ath.c(867) wlconf_country_set :DEBUG:region=JP iCountryCode=4015
    Interface doesn't accept private ioctl...
    setCountryID (8BE0): Operation not supported
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    
    s16 enet0 port4 up
    et0: unit 0: phy 4 is up...
    AG7240: enet unit:0 is up. RGMii 1000Mbps full duplex
    AG7240: done cfg2 0x7215 ifctl 0x0 miictrl  
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ag7240_mod.ko': Invalid parameters (17): Invalid argument
    MidLayerModDep.c(798) startModules :INFO:Starting module init
    Algorithmics/MIPS FPU Emulator v1.5
    mknod: /dev/ppp: File exists
    insmod: slhc.ko: no module by that name found
    insmod: ppp_generic.ko: no module by that name found
    insmod: ppp_mppe.ko: no module by that name found
    insmod: ppp_async.ko: no module by that name found
    insmod: ppp_synctty.ko: no module by that name found
    insmod: pppox.ko: no module by that name found
    insmod: pppoe.ko: no module by that name found
    insmod: zlib_deflate.ko: no module by that name found
    insmod: ppp_deflate.ko: no module by that name found
    Using /lib/modules/kernel/drivers/usb/core/usbcore.ko
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    Using /lib/modules/kernel/drivers/usb/host/ehci-hcd.ko
    No of Resources 2 
    hcd->regs bb000000 
    Host Capability Reg bb000100 
    Host Operational Reg bb000140 
    Port Status c000004 
    ar7240-ehci ar7240-ehci.0: ATH EHCI
    HCS Params 10011 
    
    HCC Params 6 
    ar7240-ehci ar7240-ehci.0: new USB bus registered, assigned bus number 1
    ar7240-ehci ar7240-ehci.0: irq 3, io mem 0x1b000000
    hcc_params addr 0xbb000108 val 0x6 hcs_params addr 0xbb000104 val 0x10011
    ar7240-ehci ar7240-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
    usb usb1: Product: ATH EHCI
    usb usb1: Manufacturer: Linux 2.6.15 ehci_hcd
    usb usb1: SerialNumber: ar7240-ehci.0
    hotplug.c(69) hohub 1-0:1.0: USB hub found
    tplug_main :x:HOhub 1-0:1.0: 1 port detected
    TPLUG-EVENT USB ADD(0x0000,0x0000)
    MidLayerModDep.c(810) startModules :INFO:Started  module init 1182[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_tz
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_tz 1[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_syslogd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_syslogd 88[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_klogd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_klogd 25[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_mode_check
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ag7240_mod.ko': Invalid parameters (17): Invalid argument
    AG7240: enet unit:0 is up. RGMii 1000Mbps full duplex
    AG7240: done cfg2 0x7215 ifctl 0x0 miictrl  
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_mode_check 1127[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_loif
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_loif 15[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_router_behavior
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_router_behavior 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module init
    MidLayerModDep.c(810) startModules :INFO:Started  module init 5[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_user_passwd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_user_passwd 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_usbmod
    Using /lib/modules/kernel/drivers/usb/storage/usb-storage.ko
    Using /lib/modules/kernel/drivers/usb/serial/usbserial.ko
    Using /lib/modules/kernel/drivers/usb/serial/option.ko
    Using /lib/modules/kernel/drivers/usb/serial/pl2303.ko
    Using /lib/modules/kernel/drivers/usb/class/cdc-acm.ko
    Using /lib/modules/kernel/drivers/net/usb/hso.ko
    Using /lib/modules/kernel/fs/xfs/xfs.ko
    Using /lib/modules/kernel/fs/nls/nls_base.ko
    Using /lib/modules/kernel/fs/fat/fat.ko
    Using /lib/modules/kernel/fs/vfat/vfat.ko
    Using /lib/modules/kernel/fs/nls/nls_cp932.ko
    Using /lib/modules/kernel/fs/nls/nls_utf8.ko
    change fat_tz_minuteswest = -540
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_usbmod 1978[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wiredlan
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wiredlan 15[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module id
    No such device
    MidLayerModDep.c(810) startModules :INFO:Started  module id 1002[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_lanif
    rcUtil.c(2727) Wireless_Insmod :ERR:####### Wireless_Insmod #########
    Using /lib/modules/2.6.15/net/ath_hal.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ath_hal.ko': Invalid parameters (17): Invalid argument
    rcUtil.c(3700) AtherosWirelessBaseModules_Insmod :####:insmod ath_hal : FAILED (Perhaps, [ath_hal] has already been added.)
    wlctl-ath.c(867) wlconf_country_set :DEBUG:region=JP iCountryCode=4015
    Interface doesn't accept private ioctl...
    setCountryID (8BE0): Operation not supported
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    Using /lib/modules/kernel/drivers/buffalo/mcsnoop.ko
    mcsnoop: flush all snoop entry
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000200 ***************************
    rc_lanif.c(399) StartOfrc_lanif :x:PPPoE Path throw?
    
    
    mcsnoop_br_ioctl_device:239: mcast_maxage 300000 / 1000
    Cannot assign requested address
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_lanif 1732[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_udhcpd
    udhcpd (v0.9.9-pre) started
    max_leases value (256) not sane, setting to 64 instead
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_udhcpd 29[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_usb_device_server
    Using /lib/modules/kernel/drivers/usb/netusb/sxuptp.ko
    Using /lib/modules/kernel/drivers/usb/netusb/sxuptp_driver.ko
    Using /lib/modules/kernel/drivers/usb/netusb/jcp.ko
    rc_usb_device_server.c(69) InsmodDeviceServer :debug-usbnet:insmod jcp_cmd product=WZR-HP-G302H
    Using /lib/modules/kernel/drivers/usb/netusb/jcp_cmd.ko
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_usb_device_server 439[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_httpd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_httpd 1029[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wireless_pre
    rcUtil.c(2727) Wireless_Insmod :ERR:####### Wireless_Insmod #########
    Using /lib/modules/2.6.15/net/ath_hal.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ath_hal.ko': Invalid parameters (17): Invalid argument
    rcUtil.c(3700) AtherosWirelessBaseModules_Insmod :####:insmod ath_hal : FAILED (Perhaps, [ath_hal] has already been added.)
    wlctl-ath.c(867) wlconf_country_set :DEBUG:region=JP iCountryCode=4015
    Interface doesn't accept private ioctl...
    setCountryID (8BE0): Operation not supported
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wireless_pre 437[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wireless11bg
    Waiting for Wireless Events from interfaces...
    15:00:10.689532   ath0     Set ESSID:"106F3F02F6AF-1"
    15:00:10.705000   ath0     Set Frequency:2.447 GHz (Channel 8)
    15:00:10.718988   ath0     Set Mode:Master
    set Buffalo Capability = 00000009
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wireless11bg 979[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wireless11bg_mac_limit
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wireless11bg_mac_limit 91[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_as_repeater
    rc_as_repeath0: WDS Proirity mask Enable prio:3
    ater.c(183) StartOfrc_as_repeater :ina:[Start Repeater]
    rc_as_repeater.c(224) StartOfrc_as_repeater :ina:[Start Pairent Mode]
    ath0      extcmd:
    ath1: WDS Proirity mask Enable prio:3
    ath1      extcmd:
    ath3: WDS Proirity mask Enable prio:3
    ath3      extcmd:
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_as_repeater 48[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wireless_post
    thresh62=33, thresh62_ext=33
    Country ie is JP 
    thresh62=33, thresh62_ext=33
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000100 ***************************
    rcUtil.c(1411) AddMbssidInterface_core :ERR:--------------wlconf_mbssid_up() call------------------
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    wlctl-ath.c(1408) wlconf_up_template :ERROR:buff=iwpriv (null) rxchainmask 3 i_chainmask=3
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    15:00:11.728612   ath1     Set ESSID:"106F3F02F6AF"
    15:00:11.744251   ath1     Set Frequency:2.447 GHz (Channel 8)
    15:00:11.758770   ath1     Set Mode:Master
    set Buffalo Capability = 00000009
    Country ie is JP 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000100 ***************************
    rcUtil.c(1411) AddMbssidInterface_core :ERR:--------------wlconf_mbssid_up() call------------------
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    wlctl-ath.c(1408) wlconf_up_template :ERROR:buff=iwpriv (null) rxchainmask 3 i_chainmask=3
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    15:00:12.660233   ath3     Set ESSID:"106F3F02F6AF-3"
    15:00:12.676077   ath3     Set Frequency:2.447 GHz (Channel 8)
    15:00:12.690325   ath3     Set Mode:Master
    wlctl-ath.c(529) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key off
    15:00:12.704923   ath3     Set Encryption key:off
    wlctl-ath.c(575) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key 4AF3ED4FEFCFAB55CCF38A3B7C [1]
    15:00:12.733427   ath3     Set Encryption key:****-****-****-****-****-****-**
    wlctl-ath.c(575) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key FFA90EF568AE17178DF6E2B60E [2]
    15:00:12.748049   ath3     Set Encryption key:****-****-****-****-****-****-** [2]
    wlctl-ath.c(575) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key D0BC10CA02078FB45A4EACE782 [3]
    15:00:12.762481   ath3     Set Encryption key:****-****-****-****-****-****-** [3]
    wlctl-ath.c(575) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key B21DF3BC1D58682378E41C50A1 [4]
    15:00:12.777528   ath3     Set Encryption key:****-****-****-****-****-****-** [4]
    wlctl-ath.c(581) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key [1]
    15:00:12.792334   ath3     Set Encryption key:on
    set Buffalo Capability = 00000009
    Country ie is JP 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000100 ***************************
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wireless_post 2012[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_nas
    killall: hostapd: no process killed
    rcUtil.c(1882) MbssidNasUp_sub :ERR:############ wlconf_nas_up ############
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_nas 85[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_aoss_mssid
    rc_aoss_mssid.c(98) StartOfrc_aoss_mssid :ERR:StartOfrc_aoss_mssid()
    Configuration file: /tmp/hostapd.conf_ath1
    ->setpid 0x10001080
    pid: /var/run/hostapd.ath1.pid
    Configuration file: /tmp/hostapd.conf_ath0
    ->setpid 0x10001080
    pid: /var/run/hostapd.ath0.pid
    15:00:13.862576   ath1     Set Mode:Master
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_aoss_mssid 215[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ap_serv
    Using interface ath1 with hwaddr 16:6f:3f:02:f6:af and ssid '106F3F02F6AF'
    Country ie is JP 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    Flushing old station entries
    Deauthenticate all stations
    l2_packet_receive - recvfrom: Network is down
    l2_packet_receive - recvfrom: Network is down
    server.c(249)start_ap_serv_server:INFO:---- Start !! ap_servd child process (port=22359[5757]).
    server.c(101)standalone_ap_serv_server:INFO:listen device name = br0
    server.c(254)start_ap_serv_server:INFO:---- Start !! ap_servd child process (port=22616[5858]).
    server.c(101)standalone_ap_serv_server:INFO:listen device name = br0
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ap_serv 550[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanif_select
    rcUtil_usb.c(2572) UsbTtyInfo_Update :x:UsbTtyInfo_Update
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanif_select 14[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanif
    15:00:14.431838   ath0     Set Mode:Master
    Using interface ath0 with hwaddr 10:6f:3f:02:f6:af and ssid '106F3F02F6AF-1'
    Country ie is JP 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    Flushing old station entries
    Deauthenticate all stations
    l2_packet_receive - recvfrom: Network is down
    l2_packet_receive - recvfrom: Network is down
    Cannot assign requested address
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanif 1001[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pre
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pre 3105[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect 3089[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_dummy
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_dummy 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_dhcpcd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_dhcpcd 1[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_0
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_0 1[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_1
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_1 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_2
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_2 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_3
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_3 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_4
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_4 10[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_check
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_check 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_manual
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_manual 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_dhcpcd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_dhcpcd 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_0
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_0 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_1
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_1 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_2
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_2 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_3
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_3 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_4
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_4 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_check
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_check 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanif_modem
    rc_wanif_modem.c(35) StartOfrc_wanif_modem :x:SKIP Module module (StartOfrc_wanif_modem)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanif_modem 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_modem_detect
    rc_wanctl_modem_detect.c(99) StartOfrc_wanctl_modem_detect :x:SKIP Module module (StartOfrc_wanctl_modem_detect)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_modem_detect 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_modem_detect_dummy
    rc_wanctl_modem_detect_dummy.c(79) StartOfrc_wanctl_modem_detect_dummy :x:SKIP Module module (StartOfrc_wanctl_modem_detect_dummy)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_modem_detect_dummy 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_ppp_modem
    rc_wanctl_ppp_modem.c(259) StartOfrc_wanctl_ppp_modem :x:SKIP Module module (StartOfrc_wanctl_ppp_modem)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_ppp_modem 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_post
    route: SIOC[ADD|DEL]RT: No such process
    Cannot assign requested address
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_post 1178[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoeroute
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoeroute 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_dnrd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_dnrd 35[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_netwatchd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_netwatchd 82[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ipfilter
    iptables: Bad rule (does a matching rule exist in that chain?)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ipfilter 706[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ipfilter_simple
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ipfilter_simple 89[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ipfilter_user
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ipfilter_user 2[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ipfilter_pptp
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ipfilter_pptp 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_nat
    Using /lib/modules/kernel/net/ipv4/netfilter/ip_conntrack_pptp.ko
    ip_conntrack_pptp version 3.1 loaded
    Using /lib/modules/kernel/net/ipv4/netfilter/ip_nat_pptp.ko
    ip_nat_pptp version 3.0 loaded
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_nat 266[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_routectl
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_routectl 50[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_lltd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_lltd 74[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wsc
    killall: wsccmd: no process killed
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wsc 278[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_upnp
    iptables v1.3.5: Couldn't find target `UPNP-PREROUTING-CHAIN'
    
    Try `iptables -h' or 'iptables --help' for more information.
    iptables: No chain/target/match by that name
    iptables: No chain/target/match by that name
    *********************************************
    Wi-Fi Simple Config Application - Intel Corp.
    Version: Build 0.3.1d, April 24 2006
    *********************************************
    wanctl-wanstate_check.c(41) wanstate_check_main :wanctl:Start wanstate_check Daemon
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_upnp 2251[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_movie_engine
    wlctl-ath.c(2755) wlconf_chg_movie_engine_profile :x:MOVIE_ENGINE_MODE_OFF
    mcsnoop_br_ioctl_device:239: mcast_maxage 300000 / 1000
    ath0      extcmd:
    ath0      extcmd:
    set Buffalo Capability = 00000009
    ath0      extcmd:
    ath1      extcmd:
    ath1      extcmd:
    set Buffalo Capability = 00000009
    ath1      extcmd:
    ath2      extcmd:
    ath2      extcmd:
    set Buffalo Capability = 00000009
    ath2      extcmd:
    ath3      extcmd:
    ath3      extcmd:
    set Buffalo Capability = 00000009
    ath3      extcmd:
    wlctl-ath.c(2603) wlconf_modified_reset_paththrow :x:(IPv6) AS_BEHAVIOR_MODE_ROUTER
    debug : Enter [BRCTL_ADD_IF] 
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_movie_engine 623[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ntpclient
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ntpclient 42[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_eco
    Initializing stack... OK
    Now starting stack
    DEVICE PIN: 87716498
    
    ******* MODE: AP with built-in Registrar and UPnP Proxy *******
    
    checking for PUSH BUTTON
    devpwd is not setted, but start InitiateRegistrarion.
    Waiting for Client to connect(using IEs)...
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_eco 1171[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wan_qos
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wan_qos 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_pptp_server
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_pptp_server 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_pptp_server_route
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_pptp_server_route 124[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_nastorage
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_nastorage 5[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ifilter
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ifilter 51[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_end_signal
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_end_signal 10[msec]
    led_mask_11g_chip:f0
    reg:000000B0 [CC35CC35 --> CC35CC35]
    reg:000000B4 [CA35CA35 --> CA35CA35]
    ntp.jst.mfeed.ad.jp: Unknown host
    reg:000000B8 [C935C935 --> C935C935]
    cannot open connection to btpd in //.btpd (No such file or directory).
    killall: twonkymedia: no process killed
    killall: twonkymediaserver: no process killed
    rc_nastorage.c(1907) NastorageStop_BitTorrent2 :x:btpd STOP-SUCCESS (0 sec)
    rcUtil_usb.c(1343) UsbStorageInfo_Update :x:UsbStorageInfo_Update
    MidLayerLEDSW.c(1130) MLLE_WaitSwitch :x:Modified Movie Engine Switch
    wlctl-ath.c(2755) wlconf_chg_movie_engine_profile :x:MOVIE_ENGINE_MODE_OFF
    mcsnoop_br_ioctl_device:239: mcast_maxage 300000 / 1000
    ath0      extcmd:
    ath0      extcmd:
    set Buffalo Capability = 00000009
    ath0      extcmd:
    ath1      extcmd:
    ath1      extcmd:
    set Buffalo Capability = 00000009
    ath1      extcmd:
    ath2      extcmd:
    ath2      extcmd:
    set Buffalo Capability = 00000009
    ath2      extcmd:
    ath3      extcmd:
    ath3      extcmd:
    set Buffalo Capability = 00000009
    ath3      extcmd:
    wlctl-ath.c(2603) wlconf_modified_reset_paththrow :x:(IPv6) AS_BEHAVIOR_MODE_ROUTER
    debug : Enter [BRCTL_ADD_IF] 
    ARPING to 192.168.11.1 from 192.168.11.1 via br0
    Sent 1 probes (1 broadcast(s))
    Received 0 reply
    

BHR-4GRV

以前WXR-2533DHPを提供頂いた某氏より今回大量にルータを頂いたうちの一台。
ath79 targetへサポート追加してみるにあたってのメモ

U-Boot

  • help
    ar7240> help
    ?       - alias for 'help'
    TFTPS   - boot image via network as TFTP server
    base    - print or set address offset
    boot    - boot default, i.e., run 'bootcmd'
    bootd   - boot default, i.e., run 'bootcmd'
    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
    coninfo - print console devices and information
    cp      - memory copy
    crc32   - checksum calculation
    echo    - echo args to console
    erase   - erase FLASH memory
    exit    - exit script
    flinfo  - print FLASH memory information
    gigatest - Enable Giga test mode
    go      - start application at address 'addr'
    help    - print online help
    iminfo  - print header information for application image
    imls    - list all images found in flash
    itest   - return true/false on integer compare
    ledb    - LED test blink
    ledoff  - LED test off
    ledon   - LED test on
    ledt    - LED test toggle
    loadb   - load binary file over serial line (kermit mode)
    loads   - load S-Record file over serial line
    loady   - load binary file over serial line (ymodem mode)
    loop    - infinite loop on address range
    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)
    pci     - list and access PCI Configuration Space
    phyreg - read/write phyreg
    ping    - send ICMP ECHO_REQUEST to network host
    printenv- print environment variables
    progmac - Set ethernet MAC addresses
    protect - enable or disable FLASH write protection
    rarpboot- boot image via network using RARP/TFTP protocol
    reset   - Perform RESET of the CPU
    run     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    set_inspection - set/unset inspection mode
    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
    autoscr - run script from memory
    

  • version
    ar7240> version
    
    U-Boot 1.1.4 for BUFFALO AIRSTATION (Apr  6 2011 - 08:52:25)
    

  • printenv
    一部変更されている可能性もあるため参考程度。
    ar7240> printenv
    bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties),8192k@8192k(flash1),16384k@16384k(flash2)
    bootcmd=bootm BF060000
    baudrate=115200
    ethaddr=02:AA:BB:CC:DD:22
    ipaddr=192.168.11.1
    serverip=192.168.11.2
    tmp_ram=81F00000
    tmp_bottom=83F00000
    fw_eaddr=BF060000 BEFFFFFF
    uboot_eaddr=BF000000 BF03FFFF
    u_fw=erase $fw_eaddr; cp.fw $fileaddr BF060000 $filesize; bootm BF060000;
    ut_fw=tftp $tmp_ram firmware.bin; erase $fw_eaddr; cp.fw $fileaddr BF060000 $filesize; bootm BF060000;
    ut_uboot=tftp $tmp_ram u-boot.bin; protect off $uboot_eaddr; erase $uboot_eaddr; cp.b $fileaddr BF000000 $filesize;
    melco_id=RD_BB10084
    hw_rev=0
    tftp_wait=4
    uboot_ethaddr=02:AA:BB:CC:DD:22
    DEF-p_wireless_ath0_11bg-authmode=psk
    DEF-p_wireless_ath0_11bg-crypto=tkip+aes
    DEF-p_wireless_ath0_11bg-authmode_ex=mixed-psk
    DEF-p_wireless_ath0_11bg-wpapsk=1234567890123
    pincode=12345670
    custom_id=0
    buf_ver=1.00
    region=JP
    product=BHR-4GRV
    build_date=Apr  6 2011 - 08:52:25
    buf_crc=F5EF0FF2
    accept_open_rt_fmt=1
    stdin=serial
    stdout=serial
    stderr=serial
    loadaddr=81F00000
    ethact=eth0
    
    Environment size: 1192/65532 bytes
    

Kernel

  • uname -a
    # uname -a
    Linux AP4CE67621B488 2.6.31--LSDK-9.2.0.106 #1 Thu Apr 14 21:09:38 JST 2016 mips unknown
    

  • cat /proc/version
    # cat /proc/version
    Linux version 2.6.31--LSDK-9.2.0.106 (jenkins@dev-build1.melco.local) (gcc version 4.3.3 (GCC) ) #1 Thu Apr 14 21:09:38 JST 2016
    

  • cat /proc/cpuinfo
    # cat /proc/cpuinfo
    system type             : Atheros AR7240 (Python)
    processor               : 0
    cpu model               : MIPS 24Kc V7.4
    BogoMIPS                : 266.24
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 16
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ff8, 0x0ffc, 0x0ff8, 0x0ff8]
    ASEs implemented        : mips16
    shadow register sets    : 1
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/meminfo
    # cat /proc/meminfo
    MemTotal:          62100 kB
    MemFree:           43352 kB
    Buffers:            2228 kB
    Cached:             7676 kB
    SwapCached:            0 kB
    Active:             6004 kB
    Inactive:           7208 kB
    Active(anon):       3308 kB
    Inactive(anon):        0 kB
    Active(file):       2696 kB
    Inactive(file):     7208 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:          3328 kB
    Mapped:             2200 kB
    Slab:               3712 kB
    SReclaimable:        568 kB
    SUnreclaim:         3144 kB
    PageTables:          416 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       31048 kB
    Committed_AS:      14916 kB
    VmallocTotal:    1048404 kB
    VmallocUsed:        1288 kB
    VmallocChunk:    1042744 kB
    

  • cat /proc/mtd
    # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00040000 00010000 "uboot"
    mtd1: 00010000 00010000 "uboot_environ"
    mtd2: 00010000 00010000 "ART"
    mtd3: 00100000 00010000 "linux"
    mtd4: 01e80000 00010000 "rootfs"
    mtd5: 00020000 00010000 "user_property"
    mtd6: 01f80000 00010000 "firmware"
    

  • bootlog
    BUFFALO U-BOOT Ver 1.00
      == CPU:400MHz, DDR:400MHz, AHB:200MHz ==
    AP111 (ar7241 - Virian) U-boot
    DRAM:  64 MB
    WAN port disabling: done
    Top of RAM usable for U-Boot at: 84000000
    Reserving 257k for U-Boot at: 83fbc000
    Reserving 192k for malloc() at: 83f8c000
    Reserving 44 Bytes for Board Info at: 83f8bfd4
    Reserving 36 Bytes for Global Data at: 83f8bfb0
    Reserving 128k for boot params() at: 83f6bfb0
    Stack Pointer at: 83f6bf98
    Now running in RAM - U-Boot at: 83fbc000
    flash bank #0 found 16 MB flash [W25Q128BV, blk:0x10000, sectors:256]
    flash bank #1 found 16 MB flash [W25Q128BV, blk:0x10000, sectors:256]
    Flash: 32 MB
    *** Warning *** : PCIe WLAN Module not found !!!
    In:    serial
    Out:   serial
    Err:   serial
    Memory Test (address line)
    uboot use  83F6BFB0 - 84000000
    Memory Test start(0x80000000) end(0x83F00000) size(67108864)
    Data line test start:0x80000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA 
    Address line test start:0x80000000 len:0x3f00000 pattern 0xAAAAAAAA 0x55555555  
    Fill test patnum:5 
    fill Pattern 5555AAAA  Writing...   Reading...
    fill Pattern AAAA5555  Writing...   Reading...
    fill Pattern 0000FFFF  Writing...   Reading...
    fill Pattern FFFF0000  Writing...   Reading...
    fill Pattern AAAAAAAA  Writing...   Reading...
    Memory Test OK
    ### buf_ver=[1.00] U-Boot Ver.=[1.00]
    ### build_date(env)=[Apr  6 2011 - 08:52:25] build_date(bin)=[Apr  6 2011 - 08:52:25]
    ag7240_enet_initialize...
    Reading MAC Address from ENV(0x83f8c322)
    No valid address in Flash. Using fixed address
    Virian MDC CFG Value ==> 4
    : cfg1 0x7 cfg2 0x7114
    eth0: 02:aa:bb:cc:dd:22
    athrs16_reg_init: complete
    eth0 up
    Virian MDC CFG Value ==> 4
    : cfg1 0xf cfg2 0x7214
    eth1: 00:03:7f:09:0b:ad
    eth1 up
    eth0  02:AA:BB:CC:DD:22
    , eth1  00:03:7F:09:0B:AD
    
    dup 1 speed 1000
    
    tftp server(receive) go, waiting:4[sec]
    Load address: 0x81f00000
    
    TftpServer Timeout;
    no file was loaded.
    LAN port disabling: done
    skip FW-CRC checking!!!
    change bootargs
    console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties),8192k@8192k(flash1),16384k@16384k(flash2) mem=64M
    ## Booting image at bf060000 ...
       Image Name:   Linux Rootfs Combined Image
       Created:      2016-04-14  12:22:55 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    21450688 Bytes = 20.5 MB
       Load Address: 80002000
       Entry Point:  80201320
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80201320) ...
    ## Giving linux memsize in bytes, 67108864
    
    Starting kernel ...
    
    Booting AR7240(Python)...
    Linux version 2.6.31--LSDK-9.2.0.106 (jenkins@dev-build1.melco.local) (gcc version 4.3.3 (GCC) ) #1 Thu Apr 14 21:09:38 JST 2016
    flash_size passed from bootloader = 32
    arg 1: console=ttyS0,115200
    arg 2: root=31:03
    arg 3: rootfstype=jffs2
    arg 4: init=/sbin/init
    arg 5: mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties),8192k@8192k(flash1),16384k@16384k(flash2)
    arg 6: mem=64M
    use [CONFIG_CMDLINE] = console=ttyS0,115200 root=/dev/mtdblock4 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(uboot),64k(uboot_environ),64k(ART),1024k(linux),31232k(rootfs),128k(user_property),32256k@384k(firmware) mem=64M 
    CPU revision is: 00019374 (MIPS 24Kc)
    Determined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    User-defined physical RAM map:
     memory: 04000000 @ 00000000 (usable)
    Zone PFN ranges:
      Normal   0x00000000 -> 0x00004000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
        0: 0x00000000 -> 0x00004000
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    Kernel command line: console=ttyS0,115200 root=/dev/mtdblock4 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(uboot),64k(uboot_environ),64k(ART),1024k(linux),31232k(rootfs),128k(user_property),32256k@384k(firmware) mem=64M
    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)
    Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
    Writing ErrCtl register=00000000
    Readback ErrCtl register=00000000
    Memory: 61900k/65536k available (2067k kernel code, 3564k reserved, 569k data, 128k init, 0k highmem)
    NR_IRQS:128
    plat_time_init: plat time init done
    Calibrating delay loop... 266.24 BogoMIPS (lpj=532480)
    Mount-cache hash table entries: 512
    NET: Registered protocol family 16
    ===== ar7240_platform_init: 0
    ***** Warning *****: PCIe WLAN H/W not found !!!
    bio: create slab  at 0
    SCSI subsystem initialized
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP reno registered
    NET: Registered protocol family 1
    AR7240 GPIOC major 0
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    Slow work thread pool: Starting up
    Slow work thread pool: Ready
    GFS2 (built Apr 14 2016 21:06:37) installed
    msgmni has been set to 121
    alg: No test for lzma (lzma-generic)
    alg: No test for stdrng (krng)
    io scheduler noop registered
    io scheduler deadline registered (default)
    HDLC line discipline maxframe=4096
    N_HDLC line discipline registered.
    Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
    console [ttyS0] enabled
    brd: module loaded
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    PPP BSD Compression module registered
    PPP MPPE compression module registered
    NET: Registered protocol family 24
    drivers/mtd/mtdchar.c(1053): alloc reserved-buffer addr=83960000 size=131072
    check spi banks 2
    0000 : EF 40 18
    found W25Q128BV device on bank#0
    0000 : EF 40 18
    found W25Q128BV device on bank#1
    SPI flash size total:32 Mbytes
    WZR-HP-G450H_part partition parsing not available
    WZR-HP-G302NH_V2_part partition parsing not available
    WHR-AG300N_part partition parsing not available
    WHR-HP-G300N_part partition parsing not available
    7 cmdlinepart partitions found on MTD device ar7240-nor0
    Creating 7 MTD partitions on "ar7240-nor0":
    0x000000000000-0x000000040000 : "uboot"
    0x000000040000-0x000000050000 : "uboot_environ"
    0x000000050000-0x000000060000 : "ART"
    0x000000060000-0x000000160000 : "linux"
    0x000000160000-0x000001fe0000 : "rootfs"
    0x000001fe0000-0x000002000000 : "user_property"
    0x000000060000-0x000001fe0000 : "firmware"
    u32 classifier
    nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP cubic registered
    NET: Registered protocol family 17
    802.1Q VLAN Support v1.8 Ben Greear 
    All bugs added by David S. Miller 
    ar7240wdt_init: Registering WDT success
    VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
    Freeing unused kernel memory: 128k freed
    Warning: unable to open an initial console.
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/char/mel_initsw.ko
    
    Please press Enter to activate this console. mel_initsw_ar7240_bhr_4grv: module license 'unspecified' taints kernel.
    Disabling lock debugging due to kernel taint
    mel_initsw initialized. 
    watchdogd.c(33) watchdogd_main :watchdog refresh 00000000
    WD:Start Watchdog Daemon
    rc.c(354) VerifyParamsOfInit :x:create status sections
    rc.c(896) SetUbootParam :====:pUbootProduct=BHR-4GRV
    rc.c(906) SetUbootParam :====:pProductHex=00000001(str:00000001)
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/2.6.31/net/athrs_gmac.ko
    ATHR_GMAC: Length per segment 1536
    ATHR_GMAC: fifo cfg 3 01f00140
    ATHR_GMAC: [eth%d] netdev_priv is 839f3ac0
    ATHR_GMAC: [eth%d] netdev_priv is 839f36c0
    ATHR_GMAC: Mac address for unit 0: 4c:e6:76:21:b4:88
    ATHR_GMAC: Mac address for unit 0: 4c:e6:76:21:b4:88
    ATHR_GMAC: Max segments per packet :   1
    ATHR_GMAC: Max tx descriptor count :   40
    ATHR_GMAC: Max rx descriptor count :   252
    ATHR_GMAC: Mac capability flags    :   4B81
    ATHR_GMAC: [eth%d] netdev_priv is 83a5d2c0
    ATHR_GMAC: [eth%d] netdev_priv is 839faec0
    ATHR_GMAC: Mac address for unit 1: 4c:e6:76:21:b4:89
    ATHR_GMAC: Mac address for unit 1: 4c:e6:76:21:b4:89
    ------------[ cut here ]------------
    WARNING: at fs/proc/generic.c:590 proc_register+0x18c/0x1d8()
    proc_dir_entry '/proc/eth' already registered
    Modules linked in: athrs_gmac(+) mel_initsw_ar7240_bhr_4grv(P)
    Call Trace:
    [] dump_stack+0x8/0x34
    [] warn_slowpath_common+0x70/0xb0
    [] warn_slowpath_fmt+0x24/0x30
    [] proc_register+0x18c/0x1d8
    [] proc_mkdir_mode+0x3c/0x64
    [] athr_gmac_init+0x93c/0xc84 [athrs_gmac]
    [] _stext+0x68/0x1ec
    
    ---[ end trace 0af1c5573033cd33 ]---
    ATHR_GMAC: Max segments per packet :   1
    ATHR_GMAC: Max tx descriptor count :   40
    ATHR_GMAC: Max rx descriptor count :   252
    ATHR_GMAC: Mac capability flags    :   4981
    athr_gmac_ring_alloc Allocated 640 at 0x83a61800
    athr_gmac_ring_alloc Allocated 4032 at 0x83a5c000
    Virian MDC CFG Value ==> 4
    Setting Drop CRC Errors, Pause Frames and Length Error frames 
    Modified reg init
    ATHRS16: resetting...
    ATHRS16: reset done.
    CFG Board need PortVLAN 
    Enable Broadcast forward
    port vlan initialize...
    AbBUFFALO athrs16_reg_init complete.
    Setting PHY...
    Phy setup Complete
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/2.6.31/net/athrs_gmac.ko
    insmod: cannot insert `/lib/modules/2.6.31/net/athrs_gmac.ko': Invalid parameters (17): Invalid argument
    MidLayerFlashNvram.c(2003) MLF_GetUbootParam :ERROR:cmderr="ubootenv get dummy_ethaddr "
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/net/ipv4/netfilter/nf_conntrack_proto_gre.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
    wanctl-lib.c(1395) CallIoctlOnEtherdeviceEx :ERR:!! Failed ioctl() !! ifr_name:[eth1] a_iCmd:[35093(-219)]:a_iCommand errorcode:126
    Cannot assign requested address
    MidLayerModDep.c(1195) MLMD_VerifyParamsInTree :error:ERROR module is rc_nat
    MidLayerModDep.c(1196) MLMD_VerifyParamsInTree :error:Warn-Mess  : ERROR_NONE
    MidLayerModDep.c(1197) MLMD_VerifyParamsInTree :error:Error-Mess : ML_ERROR_PARAM_VER
    MidLayerModDep.c(1195) MLMD_VerifyParamsInTree :error:ERROR module is rc_routectl
    MidLayerModDep.c(1196) MLMD_VerifyParamsInTree :error:Warn-Mess  : ERROR_NONE
    MidLayerModDep.c(1197) MLMD_VerifyParamsInTree :error:Error-Mess : ML_ERROR_PARAM_VER
    MidLayerModDep.c(1195) MLMD_VerifyParamsInTree :error:ERROR module is rc_usb_device_server
    MidLayerModDep.c(1196) MLMD_VerifyParamsInTree :error:Warn-Mess  : ERROR_NONE
    MidLayerModDep.c(1197) MLMD_VerifyParamsInTree :error:Error-Mess : ML_ERROR_PARAM_VER
    MidLayerModDep.c(1195) MLMD_VerifyParamsInTree :error:ERROR module is rc_ifilter
    MidLayerModDep.c(1196) MLMD_VerifyParamsInTree :error:Warn-Mess  : ERROR_NONE
    MidLayerModDep.c(1197) MLMD_VerifyParamsInTree :error:Error-Mess : ML_ERROR_PARAM_VER
    MidLayerModDep.c(1195) MLMD_VerifyParamsInTree :error:ERROR module is rc_timer_reboot
    MidLayerModDep.c(1196) MLMD_VerifyParamsInTree :error:Warn-Mess  : ERROR_NONE
    MidLayerModDep.c(1197) MLMD_VerifyParamsInTree :error:Error-Mess : ML_ERROR_PARAM_VER
    rc.c(896) SetUbootParam :====:pUbootProduct=BHR-4GRV
    rc.c(906) SetUbootParam :====:pProductHex=00000001(str:00000001)
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/2.6.31/net/athrs_gmac.ko
    insmod: cannot insert `/lib/modules/2.6.31/net/athrs_gmac.ko': Invalid parameters (17): Invalid argument
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/2.6.31/net/athrs_gmac.ko
    insmod: cannot insert `/lib/modules/2.6.31/net/athrs_gmac.ko': Invalid parameters (17): Invalid argument
    MidLayerFlashNvram.c(2003) MLF_GetUbootParam :ERROR:cmderr="ubootenv get dummy_ethaddr "
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/net/ipv4/netfilter/nf_conntrack_proto_gre.ko
    insmod: cannot insert `/lib/modules/kernel/net/ipv4/netfilter/nf_conntrack_proto_gre.ko': Invalid parameters (17): Invalid argument
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
    insmod: cannot insert `/lib/modules/kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko': Invalid parameters (17): Invalid argument
    MidLayerModDep.c(807) startModules :INFO:Starting module init
    Algorithmics/MIPS FPU Emulator v1.5
    mknod: /dev/ppp: File exists
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: slhc.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: ppp_generic.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: ppp_mppe.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: ppp_async.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: ppp_synctty.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: pppox.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: pppoe.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: zlib_deflate.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    insmod: ppp_deflate.ko: no module by that name found
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/fs/nls/nls_base.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/usb/core/usbcore.ko
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/usb/host/ehci-hcd.ko
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    Port Status c000004 
    ar7240-ehci ar7240-ehci.0: ATH EHCI
    ar7240-ehci ar7240-ehci.0: new USB bus registered, assigned bus number 1
    ehci_reset Intialize USB CONTROLLER in host mode: 3
    ehci_reset Port Status c000000 
    ar7240-ehci ar7240-ehci.0: irq 3, io mem 0x1b000000
    ehci_reset Intialize USB CONTROLLER in host mode: 3
    ehci_reset Port Status c000000 
    ar7240-ehci ar7240-ehci.0: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: ATH EHCI
    usb usb1: Manufacturer: Linux 2.6.31--LSDK-9.2.0.106 ehci_hcd
    usb usb1: SerialNumber: platform
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/usb/host/ohci-hcd.ko
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    MidLayerModDep.c(819) startModules :INFO:Started  module init 1574[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_tz
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_tz 1[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_syslogd
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_syslogd 287[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_klogd
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_klogd 14[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_loif
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/2.6.31/net/athrs_gmac.ko
    insmod: cannot insert `/lib/modules/2.6.31/net/athrs_gmac.ko': Invalid parameters (17): Invalid argument
    MidLayerFlashNvram.c(2003) MLF_GetUbootParam :ERROR:cmderr="ubootenv get dummy_ethaddr "
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_loif 85[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_router_behavior
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_router_behavior 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module init
    MidLayerModDep.c(819) startModules :INFO:Started  module init 4[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_user_passwd
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_user_passwd 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_usbmod
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/usb/storage/usb-storage.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/fs/exportfs/exportfs.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/fs/xfs/xfs.ko
    et1: unit 1: phy 0 is up... [0x1000,0xbc1c]
    ATH_MAC_TIMER: WAN/enet unit:0 is up...
    RGMii 1000Mbps full duplex
    ATH_MAC_TIMER: done cfg2 0x7215 ifctl 0x0 miictrl  
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/fs/fat/fat.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/fs/fat/vfat.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/fs/nls/nls_cp932.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/fs/nls/nls_utf8.ko
    MidLayerModDep.cathr_gmac_do_ioctl: dev:eth1 ifr:83905e18 cmd:0x89FF
    (819) startModulathrs16_ioctl_buffalo: dev:eth1 ethUnit:0 cmd:0x89FF
    es :INFO:Started+  module rc_usbm-od 1732[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wiredlan
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wiredlan 36[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module id
    MidLayerModDep.c(819) startModules :INFO:Started  module id 3[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module lang
    MidLayerModDep.c(819) startModules :INFO:Started  module lang 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_lanif
    
    rc_lanif.c(475) StartOfrc_lanif :x:PPPoE Path throw?
    
    
    unable to set ip mcast flag
    unable to set ip mcast policy
    wanctl-lib.c(1395) CallIoctlOnEtherdeviceEx :ERR:!! Failed ioctl() !! ifr_name:[eth1] a_iCmd:[35093(-219)]:a_iCommand errorcode:126
    Cannot assign requested address
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_lanif 145[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_udhcpd
    udhcpd (v0.9.9-pre) started
    max_leases value (256) not sane, setting to 64 instead
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_udhcpd 27[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_ap_serv
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_ap_serv 31[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_usb_device_server
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/usb/netusb/sxuptp.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/usb/netusb/sxuptp_driver.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/usb/netusb/jcp.ko
    rc_usb_device_server.c(107) InsmodDeviceServer :debug-usbnet:insmod jcp_cmd product=BHR-4GRV
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/drivers/usb/netusb/jcp_cmd.ko
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_usb_device_server 482[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_httpd
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_httpd 145[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanif
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanif 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_pre
    athr_gmac_do_ioctl: dev:eth1 ifr:83b3be18 cmd:0x89FB
    athrs16_ioctl_buffalo: dev:eth1 ethUnit:0 cmd:0x89FB
    et1: unit 1: phy 0 not up carrier [0x1000/0x10]
    ATH_MAC_TIMER: WAN/unit 0: phy 0 not up carrier 1
    MidLayer.c(1700) ML_Signal_QueueRemove :x:SIGNAL-QUEUE NOT-FOUND (tree=NORM mod=rc_wanctl_dhcpcd)
    MidLayer.c(1700) ML_Signal_QueueRemove :x:SIGNAL-QUEUE NOT-FOUND (tree=NORM mod=rc_wanctl_pppoecd_0)
    MidLayer.c(1700) ML_Signal_QueueRemove :x:SIGNAL-QUEUE NOT-FOUND (tree=NORM mod=rc_wanctl_pppoecd_1)
    MidLayer.c(1700) ML_Signal_QueueRemove :x:SIGNAL-QUEUE NOT-FOUND (tree=NORM mod=rc_wanctl_pppoecd_2)
    MidLayer.c(1700) ML_Signal_QueueRemove :x:SIGNAL-QUEUE NOT-FOUND (tree=NORM mod=rc_wanctl_pppoecd_3)
    MidLayer.c(1700) ML_Signal_QueueRemove :x:SIGNAL-QUEUE NOT-FOUND (tree=NORM mod=rc_wanctl_pppoecd_4)
    MidLayer.c(1700) ML_Signal_QueueRemove :x:SIGNAL-QUEUE NOT-FOUND (tree=NORM mod=rc_wanctl_auto_detect)
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_pre 3066[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect
    route: SIOC[ADD|DEL]RT: No such process
    wanctl-lib.c(1908) CheckDhcpClient :x:## START : Wait DHCP Client... 0 ##
    wanctl-lib.c(1891) CheckDhcpClient :x:## don't get DHCP Client status ##
    client.c(3210) SetAutoIP :eth1 set by AutoIP. ipaddr(169.254.49.223) netmask(255.255.0.0)
    et1: unit 1: phy 0 is up... [0x1000,0xbc1c]
    ATH_MAC_TIMER: WAN/enet unit:0 is up...
    RGMii 1000Mbps full duplex
    ATH_MAC_TIMER: done cfg2 0x7215 ifctl 0x0 miictrl  
    wanctl-lib.c(1908) CheckDhcpClient :x:## START : Wait DHCP Client... 1 ##
    wanctl-lib.c(1873) CheckDhcpClient :x:## DHCP Client status = DHCP_DISCOVER##
    wanctl-lib.c(1881) CheckDhcpClient :x:## Success : START DHCP Client ##
    wanctl-lib.c(1908) CheckDhcpClient :x:## START : Wait DHCP Client... 0 ##
    wanctl-lib.c(1873) CheckDhcpClient :x:## DHCP Client status = DHCP_DISCOVER##
    wanctl-lib.c(1908) CheckDhcpClient :x:## START : Wait DHCP Client... 1 ##
    wanctl-lib.c(1873) CheckDhcpClient :x:## DHCP Client status = DHCP_DISCOVER##
    wanctl-lib.c(1908) CheckDhcpClient :x:## START : Wait DHCP Client... 2 ##
    wanctl-lib.c(1873) CheckDhcpClient :x:## DHCP Client status = DHCP_DISCOVER##
    wanctl-lib.c(1908) CheckDhcpClient :x:## START : Wait DHCP Client... 3 ##
    wanctl-lib.c(1873) CheckDhcpClient :x:## DHCP Client status = DHCP_DISCOVER##
    wanctl-lib.c(1908) CheckDhcpClient :x:## START : Wait DHCP Client... 4 ##
    wanctl-lib.c(1873) CheckDhcpClient :x:## DHCP Client status = DHCP_BOUND##
    wanctl-lib.c(1884) CheckDhcpClient :x:## Success : Found DHCP_BOUND Status ##
    wanctl_dhcpcd.c(252) StoptDhcpcd :dhcpc-lock-debug:wanctl :Through StoptDhcpcd()
    MidLayer.c(1700) ML_Signal_QueueRemove :x:SIGNAL-QUEUE NOT-FOUND (tree=NORM mod=rc_wanctl_dhcpcd)
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect 10266[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect_dummy
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect_dummy 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect_dhcpcd
    wanctl_dhcpcd.c(52) StartDhcpcd :dhcpc-lock-debug:wanctl : Through StartDhcpcd()
    wanctl-lib.c(1873) CheckDhcpClient :x:## DHCP Client status = DHCP_BOUND##
    wanctl-lib.c(1884) CheckDhcpClient :x:## Success : Found DHCP_BOUND Status ##
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect_dhcpcd 154[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_0
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_0 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_1
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_1 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_2
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_2 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_3
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_3 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_4
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_4 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_check
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_check 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_manual
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_manual 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_dhcpcd
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_dhcpcd 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_pppoecd_0
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_pppoecd_0 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_pppoecd_1
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_pppoecd_1 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_pppoecd_2
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_pppoecd_2 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_pppoecd_3
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_pppoecd_3 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_pppoecd_4
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_pppoecd_4 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_pppoecd_check
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_pppoecd_check 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_post
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_post 96[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wanctl_pppoeroute
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wanctl_pppoeroute 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_dnrd
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_dnrd 111[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_netwatchd
    wanctl-wanstate_check.c(911) wanstate_check_main :wanctl:Start wanstate_check Daemon
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_netwatchd 192[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_ipfilter
    iptables: Bad rule (does a matching rule exist in that chain?)
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_ipfilter 504[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_ipfilter_simple
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_ipfilter_simple 34[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_ipfilter_user
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_ipfilter_user 1[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_ipfilter_pptp
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_ipfilter_pptp 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_nat
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/net/ipv4/netfilter/nf_conntrack_pptp.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/net/ipv4/netfilter/nf_nat_pptp.ko
    insmod: /lib/modules/2.6.31--LSDK-9.2.0.106: No such file or directory
    Using /lib/modules/kernel/net/ipv4/buff_fastpath.ko
    
    Loding buf_fastpath_module
    --> FastNAT poor_spi Enable 9
    rcUtil.c(5382) S--> FastNAT Started C0A80C01/FFFFFF00 -> C0A80118/FFFFFF00 
    etFastNat :fastnat-debug:write "poor_spi:9
    " ==> "/proc/net/fastnat"
    rcUtil.c(5397) SetFastNat :fastnat-debug:write "start:eth1:br0
    " ==> "/proc/net/fastnat"
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_nat 468[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_routectl
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_routectl 34[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_zebra
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_zebra 716[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_lltd
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_lltd 154[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_upnp
    iptables v1.4.2: Couldn't find target `UPNP-PREROUTING-CHAIN'
    
    Try `iptables -h' or 'iptables --help' for more information.
    iptables: No chain/target/match by that name
    iptables: No chain/target/match by that name
    iptables v1.4.2: Couldn't find target `UPNP-POSTROUTING-CHAIN'
    
    Try `iptables -h' or 'iptables --help' for more information.
    iptables: No chain/target/match by that name
    iptables: No chain/target/match by that name
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_upnp 301[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_ntpclient
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_ntpclient 110[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_eco
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_eco 50[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_wan_qos
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_wan_qos 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_pptp_client
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_pptp_client 119[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_pptp_client_route
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_pptp_client_route 165[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_pptp_server
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_pptp_server 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_pptp_server_route
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_pptp_server_route 54[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_nastorage
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_nastorage 4[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_ifilter
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_ifilter 0[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_auto_fwup
    led_mask_11g_chip:0
    /dev/set_clock: cannot create
    wanctl_fwupdate.c(191) GetFirmwareListFromInternet :DEBUG:pUrl:http://product.buffalo.jp/download/driver/lan/autoup/bhr_4grv_jp.txt
    wanctl-lib.c(3782) GetDataFromInternetEx :DEBUG:parse_url start
    wanctl-lib.c(3784) GetDataFromInternetEx :DEBUG:parse_url end
    wanctl-lib.c(3787) GetDataFromInternetEx :DEBUG:server.host : product.buffalo.jp
    wanctl-lib.c(3788) GetDataFromInternetEx :DEBUG:target.path : download/driver/lan/autoup/bhr_4grv_jp.txt
    wanctl-lib.c(3794) GetDataFromInternetEx :DEBUG:lookup_host start
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_auto_fwup 306[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_end_signal
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_end_signal 32[msec]
    MidLayerModDep.c(807) startModules :INFO:Starting module rc_timer_reboot
    MidLayerModDep.c(819) startModules :INFO:Started  module rc_timer_reboot 0[msec]
    wanctl-lib.c(3552) GetHostByNameWithTimeOut :DEBUG:Waiting for GetHostByName's End... 0
    wanctl-lib.c(3552) GetHostByNameWithTimeOut :DEBUG:Waiting for GetHostByName's End... 1
    wanctl-lib.c(3799) GetDataFromInternetEx :DEBUG:lookup_host end
    wanctl-lib.c(3800) GetDataFromInternetEx :DEBUG:server.host : product.buffalo.jp
    wanctl-lib.c(3801) GetDataFromInternetEx :DEBUG:target.path : download/driver/lan/autoup/bhr_4grv_jp.txt
    wanctl_fwupdate.c(193) GetFirmwareListFromInternet :DEBUG:GetDataFromInternet Success.
    main.c(280) main :x:PMLIST RESTORE START
    main.c(283) main :x:PMLIST RESTORE END
    ARPING to 192.168.12.1 from 192.168.12.1 via br0
    Sent 1 probes (1 broadcast(s))
    Received 0 reply
    

BHR-4GRV buffalo-encメモ

tofu@Tofu-H170W10:~/router/d-router/BUFFALO/bhr-4grv/bhr4grv-199⟫ ~/router/firmware-utils/buffalo-enc -d -i bhr_4grv_jp_199_start1 -o bhr_4grv_jp_199_start1.dec
Magic           : 'start'
Seed            : 0xa0
Product         : ''
Version         : ''
Data len        : 160
Checksum        : 0xfb4ddcc2
tofu@Tofu-H170W10:~/router/d-router/BUFFALO/bhr-4grv/bhr4grv-199⟫ ~/router/firmware-utils/buffalo-enc -d -i bhr_4grv_jp_199_start2 -o bhr_4grv_jp_199_start2.dec
Magic           : 'start'
Seed            : 0xa0
Product         : 'BHR-4GRV'
Version         : '1.99'
Data len        : 21450752
Checksum        : 0x54ab5563