タグ: WG1400HP

WG1400HP GPIOメモ

WG1400HPでのGPIOのレジスタを調べたメモ。整理するのが面倒なのでテキストのメモそのまま。

boot> debug memory read 0xb8040000 70
b8040000:00a6031f 20bcee2d 0000ec00 00000000 .... ..-........
b8040010:00000000 00000000 00000000 00000000 ................
b8040020:00000000 00000000 00000000 00000000 ................
b8040030:0c080900 00160000 00000000 07000000 ................
b8040040:00000006 00000908 00000000 00000000 ................
b8040050:00000000 14130000 80808080 80808080 ................
b8040060:80808080 80808080 00000000 00000002 ................

# Output Enable
val: 0xa6031f

IN: 0, 1, 2, 3, 4, 8, 9, 17, 18, 21, 23
OUT: 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 19, 20, 22

# Input Value
val: 0x20bcee2d

INPUT=1: 0, 2, 3, 5, 9, 10, 11, 13, 14, 15, 18, 19, 20, 21, 23
INPUT=0: 1, 4, 6, 7, 8, 12, 16, 17, 22

# Output Value
val: 0xec00 (kernel: 0x40ec00)

OUTPUT=1: 10, 11, 13, 14, 15

### Used
GPIO IN: 2, 3, 8, 9, 17, 18, 19, 20, 23
GPIO OUT: 5, 6, 7, 10, 11, 22

?: 19 (FUNCTION: reserved (7))
?: 20 (FUNCTION: reserved (6))
I2C_DATA: 0x14 (20)
I2C_CLK: 0x13 (19)
広告

WG1400HP I2C expanderメモ

WG1400HPでLEDとUSB HubのRESETがぶら下がっているらしいI2C接続のExpander (Texas Instruments TCA6416)がBootloaderから制御できたので、割り当てを確認したメモ。

コマンド実行例

Read value:

boot> debug i2c ioexp read P08

Write value:

boot> debug i2c ioexp write P08 1

割り当て

  • P00: USB Hub (μPD720114) RESET
  • P01: ?
  • P02: ?
  • P03: ?
  • P04: CONVERTER (Red)
  • P05: CONVERTER (Green)
  • P06: TV (Red)
  • P07: TV (Green)
  • P10: 5 GHz (Red)
  • P11: 5 GHZ (Green)
  • P12: 2.4 GHz (Red)
  • P13: 2.4 GHz (Green)
  • P14: ACTIVE (Red)
  • P15: ACTIVE (Green)
  • P16: POWER (Red)
  • P17: POWER (Green)

WG1400HP

豊四季のハードオフで偶然1.5k + 税のモノを見つけ、衝動的に購入したもの。
NetBSD機であるためBootloaderの置き換えが必要になると思われるが、搭載しているSoCがQCA9558であり、これはpepe2k/u-boot_modで未サポートであるためどうするか未定。
とりあえず弄っていくのでメモ。

Switch

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

MAC

  • LAN: 10:66:82:xx:xx:20 (config, 0x6 (hex))
  • WAN: 10:66:82:xx:xx:21 (config, 0xc (hex))
  • 2.4G: 10:66:82:xx:xx:22 (config, 0x0 (hex))
  • 5G: 10:66:82:xx:xx:23 (config, 0x12 (hex))

Bootloader

chiron

  • help
    boot> help
    support commands ...
    load             load module
    boot             boot loaded module
    tftpd            start tftpd [tftpd [IP] [bfn]]
    dlmode           set tftpd download mode [bfn]
    reboot           reboot system
    help             help command
    macaddr          macaddr read/write
    configid         configid read/write
    randomkey        randomkey read/write
    serial           serial number read/write
    pkg_info         show package information
    presetid         preset id read/write
    version          show boot version
    mhx              mhx utility
    tp               test program
    errorlog         errorlog command
    additional       additional command
    rf-serial        rf-serial command
    time             Time command
    debug            debug command
    ?                help command
    
  • version
    boot> version
    boot version: 1.0.0
    system version: 2.80.24
    TP Version = 1.0.0
    
  • pkg_info
    boot> pkg_info
      PKG NAME : 2x2LIGHTNING
      CPU   : Atheros/QCA9558
      RAM   : 128Mbyte
      Flash : 16Mbyte
        Device         : MX25L12845E(Macronix)
        Top Address    : 0xbf000000
        Config Address : 0xbf020000
        System Address : 0xbf040000
      Ether PHY : Atheros/AR8327(SW)
      DIPSW : 0x2
    
  • debug ?
    boot> debug ?
    support commands ...
    memory           memory read/write
    flash            flash driver r/w
    fs               file system r/w
    load             load test (calc chksum)
    exception        exception
    register         display register
    watchdog         do watchdog reset
    tlb              tlb register
    cache            cache control
    mii              mii control
    l2sw             l2sw control
    ether            ether control
    pci              pci control
    btimer_start     test btimer
    btimer_stop      test btimer
    usb              usb control
    i2c              i2c control
    
  • debug fs ls
    boot> debug fs ls
    Firmware            4457912 bytes
    total 16515072, avail 11981376 bytes
    
  • debug l2sw register dump ?
    boot> debug l2sw register dump ?
    PHY:
    00 : 1000 1000 1000 1000 1000 
    01 : 7949 7949 7949 7949 7949 
    02 : 004d 004d 004d 004d 004d 
    03 : d034 d034 d034 d034 d034 
    04 : 1de1 1de1 1de1 1de1 1de1 
    05 : 0000 0000 0000 0000 0000 
    06 : 0004 0004 0004 0004 0004 
    07 : 2801 2801 2801 2801 2801 
    08 : 0000 0000 0000 0000 0000 
    09 : 0200 0200 0200 0200 0200 
    0a : 0000 0000 0000 0000 0000 
    0b : 0000 0000 0000 0000 0000 
    0c : 0000 0000 0000 0000 0000 
    0d : 4003 4003 4003 4003 4003 
    0e : 003f 003f 003f 003f 003f 
    0f : 2000 2000 2000 2000 2000 
    10 : 0862 0862 0862 0862 0862 
    11 : 0010 0010 0010 0010 0010 
    12 : 0000 0000 0000 0000 0000 
    13 : 0000 0000 0000 0000 0000 
    14 : 002c 002c 002c 002c 002c 
    15 : 0000 0000 0000 0000 0000 
    16 : 04e8 04e8 04e8 04e8 04e8 
    17 : 0000 0000 0000 0000 0000 
    18 : 3200 3200 3200 3200 3200 
    19 : 0000 0000 0000 0000 0000 
    1a : 0000 0000 0000 0000 0000 
    1b : 0000 0000 0000 0000 0000 
    1c : 0000 0000 0000 0000 0000 
    1d : 003f 003f 003f 003f 003f 
    1e : 0000 0000 0000 0000 0000 
    1f : 0000 0000 0000 0000 0000 
    
    DEBUG:
    00 : 02ee 02ee 02ee 02ee 02ee 
    01 : 02b2 01b1 02b2 01b1 01b1 
    02 : 3110 3110 3220 3220 3220 
    03 : 3f11 3f22 3f11 3f11 3f22 
    04 : bbbb bbbb bbbb bbbb bbbb 
    05 : 3c06 3c06 3c06 3c06 3c06 
    06 : 0000 0000 0000 0000 0000 
    07 : 0000 0000 0000 0000 0000 
    08 : 1c00 1c00 1c00 1c00 1c00 
    09 : 8000 8000 8000 8000 8000 
    0a : 3000 3000 3000 b000 3000 
    0b : bc00 bc00 bc00 bc00 bc00 
    0c : 6001 6001 6001 6001 6001 
    0d : c820 2820 c820 2820 2820 
    0e : 0003 0003 0003 0003 0003 
    0f : 0030 0030 0030 0030 0030 
    10 : 0000 0000 0000 0000 0000 
    11 : 7552 7552 7552 7552 7552 
    12 : 4c04 4c04 4c04 4c04 4c04 
    13 : c01b c01b c01b c01b c01b 
    14 : 0752 0752 0752 0752 0752 
    15 : 3220 3220 3220 3220 3220 
    16 : 8000 8000 8000 8000 8000 
    17 : 0000 0000 0000 0000 0000 
    18 : 62ea 62ea 62ea 62ea 62ea 
    19 : 01f4 01f4 01f4 01f4 01f4 
    1a : 01d7 01d7 01d7 01d7 01d7 
    1b : 0176 0176 0176 0176 0176 
    1c : 3cbb 3cbb 3cbb 3cbb 3cbb 
    1d : 00ec 00ec 00ec 00ec 00ec 
    1e : 0076 0076 0076 0076 0076 
    1f : 0000 0000 0000 0000 0000 
    20 : 0000 0000 0000 0000 0000 
    21 : 2d15 2d15 2d15 2d15 2d15 
    22 : 1f6a 1f6a 1f6a 1f6a 1f6a 
    23 : a200 a200 a200 a200 a200 
    24 : 1000 1000 1000 1000 1000 
    25 : 0000 0000 0000 0000 0000 
    26 : 0000 0000 0000 0000 0000 
    27 : 1000 1000 1000 1000 1000 
    28 : 0000 0000 0000 0000 0000 
    29 : b6dd b6dd b6dd b6dd b6dd 
    2a : 0000 0000 0000 0000 0000 
    2b : 3a98 3a98 3a98 3a98 3a98 
    2c : 0000 0000 0000 0000 0000 
    2d : 0000 0000 0000 0000 0000 
    2e : 0000 0000 0000 0000 0000 
    2f : 0000 0000 0000 0000 0000 
    30 : 0000 0000 0000 0000 0000 
    31 : 0000 0000 0000 0000 0000 
    32 : 2200 2200 2200 2200 2200 
    33 : 2200 2200 2200 2200 2200 
    34 : 2200 2200 2200 2200 2200 
    35 : 0000 0000 0000 0000 0000 
    36 : e12c e12c e12c e12c e12c 
    37 : 6040 6040 6040 6040 6040 
    38 : 1111 1111 1111 1111 1111 
    39 : 7359 7359 7359 7359 7359 
    3a : ee6b ee6b ee6b ee6b ee6b 
    3b : 4646 4646 4646 4646 4646 
    3c : 4646 4646 4646 4646 4646 
    3d : 6820 6820 6820 6820 6820 
    3e : e0d8 e0d8 e0d8 e0d8 e0d8 
    3f : 0000 0000 0000 0000 0000 
    
    MMD3:
    
    MMD7:
    
    L2SW:
    
    0000 : 00001204 00080080 00000000 07600000 
    0010 : 202613a0 f0107650 0000690e 00003f1f 
    0020 : 3f500000 00010000 00000000 00000000 
    0030 : 80000301 00000000 0f000000 00000000 
    0040 : 00700000 00000000 000088a8 00000000 
    0050 : cc36cc36 ca36ca36 c936c936 03ffff00 
    0060 : 00000001 00000000 00000000 00000000 
    0070 : b00e6060 03707f07 000005ee 0000004e 
    0080 : 00001280 00001280 00001280 00001280 
    0090 : 00001280 0000004e 00000000 00000000 
    00a0 : 00000000 00000000 00000000 00000000 
    00b0 : 00000000 00000000 00000000 00000000 
    00c0 : 00000000 00000000 80901040 00000000 
    00d0 : 7fff7ff7 00003fff 00000100 00000000 
    00e0 : c74164d0 0002a545 2dc11c9c 00000000 
    00f0 : 00000000 00000000 00000000 00000000 
    
    0100 : 00001550 00000000 00000000 00000000 
    0110 : 00000000 00000000 00000000 00000000 
    0120 : 00240024 00000000 00240024 00000000 
    0130 : 00240024 00000000 00240024 00000000 
    0140 : 00240024 00000000 00240024 00000000 
    0150 : 00240024 00000000 00240024 00000000 
    0160 : 00240024 00000000 00240024 00000000 
    0170 : 00000000 00000000 00000000 00000000 
    0180 : 00000000 00000000 00000000 00000000 
    0190 : 00000000 00000000 00000000 00000000 
    01a0 : 00000000 00000000 00000000 00000000 
    01b0 : 00000000 00000000 00000000 00000000 
    01c0 : 00000000 00000000 00000000 00000000 
    01d0 : 00000000 00000000 00000000 00000000 
    01e0 : 00000000 00000000 00000000 00000000 
    01f0 : 00000000 00000000 00000000 00000000 
    
    0200 : 00000001 00005000 00400040 00000000 
    0210 : 00000000 00000000 00000000 00000000 
    0220 : 00000000 00000000 00000000 00000000 
    0230 : 00000000 00000000 00000000 00000000 
    0240 : 00000000 00000000 00000000 00000000 
    0250 : 00000000 00000000 00000000 00000000 
    0260 : 00000000 00000000 00000000 00000000 
    0270 : 0000000f 00000000 00000000 00000000 
    0280 : 00000000 00000000 00000000 00000000 
    0290 : 00000000 00000000 00000000 00000000 
    02a0 : 00000000 00000000 00000000 00000000 
    02b0 : 00000000 00000000 00000000 00000000 
    02c0 : 00000000 00000000 00000000 00000000 
    02d0 : 00000000 00000000 00000000 00000000 
    02e0 : 00000000 00000000 00000000 00000000 
    02f0 : 00000000 00000000 00000000 00000000 
    
    0400 : 00000000 00000000 00000000 00000000 
    0410 : 00000000 00000000 000c0a80 00000000 
    0420 : 00010001 00003040 00020001 00003040 
    0430 : 00010001 00003040 00010001 00003040 
    0440 : 00010001 00003040 00010001 00003040 
    0450 : 00020001 00003040 00000000 00000000 
    0460 : 00000000 00000000 00000000 00000000 
    0470 : 00000000 00000000 00000000 00000000 
    0480 : 00000000 00000000 00000000 00000000 
    0490 : 00000000 00000000 00000000 00000000 
    04a0 : 00000000 00000000 00000000 00000000 
    04b0 : 00000000 00000000 00000000 00000000 
    04c0 : 00000000 00000000 00000000 00000000 
    04d0 : 00000000 00000000 00000000 00000000 
    04e0 : 00000000 00000000 00000000 00000000 
    04f0 : 00000000 00000000 00000000 00000000 
    
    0600 : 00000000 00000000 00000000 00000006 
    0610 : 0003fff0 00000005 50e8002b 00000000 
    0620 : 000000f0 007f7f7f 00000000 00000000 
    0630 : 00000000 11111111 22222222 33333333 
    0640 : 44444444 55555555 66666666 77777777 
    0650 : 76543210 00000000 00000000 00000000 
    0660 : 0014003c 00000018 00007000 00140040 
    0670 : 00000018 00007000 00140039 00000018 
    0680 : 00007000 00140035 00000018 00007000 
    0690 : 0014002d 00000018 00007000 0014001d 
    06a0 : 00000018 00007000 00140002 00000018 
    06b0 : 00007000 00000000 00000000 00000000 
    06c0 : 00000000 00000000 00000000 00000000 
    06d0 : 00000000 00000000 00000000 00000000 
    06e0 : 00000000 00000000 00000000 00000000 
    06f0 : 00000000 00000000 00000000 00000000 
    0700 : 00000000 00000000 00000000 00000000 
    0710 : 00000000 00000000 00000000 00000000 
    
    0800 : 01200188 00000000 0000000e 00000000 
    0810 : 54332201 33221100 00000000 00000000 
    0820 : 00000000 00000000 00000000 00000000 
    0830 : 10841041 00041041 00041041 00041041 
    0840 : 00041041 10841041 10841041 00000000 
    0850 : 00000000 00000000 00000000 00000000 
    0860 : 00000000 00000000 00000000 00000000 
    0870 : 00000000 00000000 00000000 00000000 
    0880 : 00000000 00000000 00000000 00000000 
    0890 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff 
    08a0 : 7fff7fff 7fff7fff 00000000 00000002 
    08b0 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff 
    08c0 : 7fff7fff 7fff7fff 00000000 00000002 
    08d0 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff 
    08e0 : 7fff7fff 7fff7fff 00000000 00000002 
    08f0 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff 
    0900 : 7fff7fff 7fff7fff 00000000 00000002 
    0910 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff 
    0920 : 7fff7fff 7fff7fff 00000000 00000002 
    0930 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff 
    0940 : 7fff7fff 7fff7fff 00000000 00000002 
    0950 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff 
    0960 : 7fff7fff 7fff7fff 00000000 00000002 
    0970 : 28000000 000000c0 28000000 000000c2 
    0980 : 28000000 000000c2 28000000 000000c2 
    0990 : 28000000 000000c2 28000000 000000c2 
    09a0 : 28000000 000000c0 00000000 00000000 
    09b0 : 003a004a 003a004a 003a004a 003a004a 
    09c0 : 003a004a 003a004a 003a004a 00000000 
    09d0 : 00000000 00000000 00000000 00000000 
    09e0 : 00000000 00000000 00000000 00000000 
    09f0 : 00000000 00000000 00000000 00000000 
    
    VTU:
    
    ATU:
    
  • debug memory read 0xb8040000 70
    (switch uninitialized)

    boot> debug memory read 0xb8040000 70
    b8040000:00a6031f 20bce62d 0000e400 00000000 .... ..-........
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 00000000 00000000 ................
    b8040030:0c080900 00160000 00000000 07000000 ................
    b8040040:00000006 00000908 00000000 00000000 ................
    b8040050:00000000 14130000 80808080 80808080 ................
    b8040060:80808080 80808080 00000000 00000002 ................
    

    (switch initialized)

    boot> debug memory read 0xb8040000 70
    b8040000:00a6031f 20bcee2d 0000ec00 00000000 .... ..-........
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 00000000 00000000 ................
    b8040030:0c080900 00160000 00000000 07000000 ................
    b8040040:00000006 00000908 00000000 00000000 ................
    b8040050:00000000 14130000 80808080 80808080 ................
    b8040060:80808080 80808080 00000000 00000002 ................
    
  • debug memory read 0xb8050028 4
    boot> debug memory read 0xb8050028 4
    b8050028:5a000000                            Z...
    
  • debug memory read 0xb8050048 4
    boot> debug memory read 0xb8050048 4
    b8050048:03000000                            ....
    
  • debug memory read 0xb8070000 4
    boot> debug memory read 0xb8070000 4  
    b8070000:00028001                            ....
    
  • debug memory read 0xb806001c d0
    (before tp usb)

    boot> debug memory read 0xb8060000 d0
    b8060000:0002ccc8 00061a80 00000003 0989637c ..............c|
    b8060010:077fffdd 00000000 00000020 2c044830 ........... ,.H0
    b8060020:00000000 00000000 00000000 00000000 ................
    b8060030:00000000 00000000 00000000 00000000 ................
    b8060040:00000000 00000000 00000000 00000000 ................
    b8060050:00000000 00000000 00000000 00000000 ................
    b8060060:00000000 00000000 00000000 00000000 ................
    b8060070:00000000 00000000 00000000 00000000 ................
    b8060080:00000000 00000000 00000000 00000000 ................
    b8060090:00001130 00000000 00000000 00000000 ...0............
    b80600a0:00000000 00000000 00000000 00000000 ................
    b80600b0:00031e5e 00033fc0 00000000 000a6000 ...^..?.......`.
    b80600c0:00000000 00030831 00000000 000003ff .......1........
    

    (after tp usb)

    boot> debug memory read 0xb8060000 d0
    b8060000:00016ccc 00061a80 00000003 098961b8 ..l...........a.
    b8060010:077fffdd 00000000 00000020 2c044008 ........... ,.@.
    b8060020:00000000 00000000 00000000 00000000 ................
    b8060030:00000000 00000000 00000000 00000000 ................
    b8060040:00000000 00000000 00000000 00000000 ................
    b8060050:00000000 00000000 00000000 00000000 ................
    b8060060:00000000 00000000 00000000 00000000 ................
    b8060070:00000000 00000000 00000000 00000000 ................
    b8060080:00000000 00000000 00000000 00000000 ................
    b8060090:00001130 00000000 00000000 00000000 ...0............
    b80600a0:00000000 00000000 00000000 00000000 ................
    b80600b0:00031e5e 00033fc0 00000000 000a6000 ...^..?.......`.
    b80600c0:00000000 00030831 00000000 000003ff .......1........
    
  • debug memory read 0xb8018000 84
    boot> debug memory read 0xb8018000 84
    b8018000:00000025 00000020 00000055 00000001 ...%... ...U....
    b8018010:000000ff 000000a0 000000bc 00000028 ...............(
    b8018020:0000003e 00000006 0000000d 00000000 ...>............
    b8018030:00000000 00000711 00000000 00000000 ................
    b8018040:00000001 00000000 00000000 00000000 ................
    b8018050:00000000 00000000 00000000 00000000 ................
    b8018060:00000000 00000000 00000000 00000001 ................
    b8018070:00000006 00000000 00000000 00000000 ................
    b8018080:00000000                            ....
    

Kernel (NetBSD)

  • Bootlog
    IPL:HARD-RESET
    memory test ... ok
    flinstall OK
    
    boot version: 1.0.0
    
    PKG "2x2LIGHTNING"
    CPU "Atheros/QCA9558"
    Revision 113.0 CLOCK 720.0 MHz
    HEAP MEMORY 262144 bytes
    Boot:InitFilesystem
    RGMII calibration GE0 ... ETH_CFG: 00028001 ETH_XMII: 5a000000
    phy0.0: "Atheros/AR8327(phy)"
    phy0.1: "Atheros/AR8327(SW)"
    active ch:1
    post start
    DRAM Test ..... PASS
    Timer test .... PASS
    FLASH CHKSUM .. PASS
    LAN Test ...... 
    LoopBack count 0 .. 
    phy0.0: "Atheros/AR8327(phy)"
    phy0.1: "Atheros/AR8327(SW)"
    active ch:0
    active ch:1
    phy0.0: "Atheros/AR8327(phy)"
    phy0.1: "Atheros/AR8327(SW)"
    active ch:1
    PASS
    Package TYPE = 0x01
    post success
    now booting Firmware ...
    loaded Firmware
    config=0x80208483 status=0x00000000
    mips_pdcache_write_through=0
    mips_picache_line_size=32 mips_pdcache_line_size=32
      pagemask: 0x00000000
      status: 0x00000000
      config: 0x80208483
      cause: 0x40008000
    load memory 0x1f0e000, 0x60f2000
    load memory 0x1000, 0x5f000
    Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
        The NetBSD Foundation, Inc.  All rights reserved.
    Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
    
    NetBSD 1.6.1 (LIGHTNING2x2.tmp) #0: 2013-10-24 12:31:40 JST
        kubota@A00-30-04938:/home/kubota/lightning/git/hituji/build/lightning2x2/kernel-obj/LIGHTNING2x2.tmp
    
    total memory = 128 MB
    avail memory = 92692 KB
    using 1024 buffers containing 4096 KB of memory
    mainbus0 (root)
    cpu0 at mainbus0: MIPS 74Kc (0x19750) Rev. 80 with software emulated floating point
    cpu0: 64KB/32B 4-way set-associative L1 Instruction cache, 32 TLB entries
    cpu0: 32KB/32B 4-way set-associative write-back L1 Data cache
    arspi0 at mainbus0
    arflash0 at mainbus0 addr 0xbf000000 size 16777216 bytes
    flash: id 0xc2 type 0x17 addr 0xbf000000 size 16777216 bytes
    pfmg: carrier mode 0 pkgid 0x20a01 configid 0xff
    arrtc0 at mainbus0
    argiu0 at mainbus0
    btnu0 at argiu0 port 18
    btnu1 at argiu0 port 2
    btnu2 at argiu0 port 3
    ari2c0 at mainbus0: clk_sel=0(REFCLK), hcnt=0x28, lcnt=0x3e
    iic0 at ari2c0: I2C bus
    tca6416gpio0 at iic0 addr 0x20
    tcaled0 at tca6416gpio0
    athq0 at mainbus0
    LSDK DRV Version = 10.1.357_0909P
    
    athq0: WLAN MAC ADDRESS (10:66:82:e0:02:22)
    pfmg_read_scan_upper_2_4g: 11
    nbuf_hdr_init: struct nbuf(120 bytes) mallocsize(917504 bytes)
    mbuf_freeq_setup: mbuf_freeq_bufcount = 0
    mbuf_freeq_setup: mbuf_freeq_bufcount(6144,6144)
    Enterprise mode: 0x33fc0000
    Restoring Cal data from Flash
    Green-AP : Green-AP : Attached
    
    ath_get_caps[6155] rx chainmask mismatch actual 7 sc_chainmak 0
    ath_get_caps[6130] tx chainmask mismatch actual 7 sc_chainmak 0
    ath_attach_dfs[12110] dfsdomain 3
    ath_tx_paprd_init sc 0xc0179000 PAPRD disabled in HAL
     chan  Freq     HT                       DFS
     1     2412nbg  HT20 HT40PLUS            N
     2     2417nbg  HT20 HT40PLUS            N
     3     2422nbg  HT20 HT40PLUS            N
     4     2427nbg  HT20 HT40PLUS            N
     5     2432nbg  HT20 HT40PLUS HT40MINUS  N
     6     2437nbg  HT20 HT40PLUS HT40MINUS  N
     7     2442nbg  HT20 HT40PLUS HT40MINUS  N
     8     2447nbg  HT20 HT40PLUS HT40MINUS  N
     9     2452nbg  HT20 HT40PLUS HT40MINUS  N
     10    2457nbg  HT20          HT40MINUS  N
     11    2462nbg  HT20          HT40MINUS  N
     12    2467nbg  HT20          HT40MINUS  N
     13    2472nbg  HT20          HT40MINUS  N
    athq0: Atheros 955X: memt=0x80440120, memh=0xb8100000 
    com0 at mainbus0: ns16550a, working fifo
    com0: console
    ehci0 at mainbus0ehci0: EHCI version 1.0
    usb0 at ehci0: USB revision 2.0
    uhub0 at usb0
    uhub0: QCA9558 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
    uhub0: 1 port with 1 removable, self powered
    qcaled0 at mainbus0
    ageth0 at mainbus0
    ath8327swsphy0 at ageth0 phy 0: Atheros AR8327 10/100/1000 L2SW, rev. 4
    ath8327swsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
    ageth1 at mainbus0
    ath8327swlphy0 at ageth1 phy 1: Atheros AR8327 10/100/1000 L2SW, rev. 4
    ath8327swlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto, 1000baseT-FDX FLAG0, 1000baseT-FDX FLAG1
    arpcieu0 at mainbus0:
    pci0 at arpcieu0 bus 0
    pci0: memory space enabled
    athq1 at pci0 dev 0 function 0
    LSDK PCI Version = 10.1.357_0909P
    ath_pci_probe
    disable ASPM on peregrine[0x80] lcr(0x10110000) --> (0x10110000)
    athten1: WLAN MAC ADDRESS (10:66:82:e0:02:23)
    __ol_ath_attach: WLAN MAC ADDRESS (10:66:82:e0:02:23) ic(0xc025d000)
    
     Using PCI Legacy Interrupt
    __ol_ath_attach: ath_attach TODO
    arpcieu1 at mainbus0:
    pci1 at arpcieu1 bus 1
    pci1: memory space enabled
    rtc: CLOCK INITIALIZED 
    kevt0: 
    logbuf: using 655360 bytes logging area
    md0: internal 25600 KB image area
    uhub1 at uhub0 port 1
    uhub1: vendor 0x0409 product 0x005a, class 9/0, rev 2.00/1.00, addr 2
    uhub1: single transaction translator
    uhub1: 4 ports with 4 removable, self powered
    boot device: 
    root on md0a dumps on md0b
    root file system type: ffs
    Tue Jan  1 00:00:02 JST 2013
    /usr/local/www/.htpasswd file not exists.(ignore)
    Setting tty flags.
    net.inet6.ip6.forwarding: 0 -> 1
    net.inet6.ip6.accept_rtadv: 0 -> 0
    Building databases...
    mode switch: rt
    vathten0
    vathten1
    vathten4
    ol_transfer_bin_file 1562: Download Board data in flash len:0x0844(0x0844)
    vathten2
    vathten3
    Starting wificonfig
    encrypt key mode AES
    encrypt key mode AES
    Starting evtmgr.
    Starting dlnamgr.
    Starting clid.
    DDR Activity - HIGH
    Starting inetd.
    Starting procmon.
    Starting wzcm.
    DDR Activity - HIGH
    Tue Jan  1 00:00:13 JST 2013
    DDR Activity - HIGH
    DDR Activity - HIGH
    
    NetBSD/scorpimips (Amnesiac) (console)
    
    login: