WR8175N

ふらっと花小金井のハードオフに行った際に見つけ、5chの情報からAR9341ということを把握しており確保したもの。有線はFEながらUSBポートを搭載しており、また2.4GHz帯のみのためWR8750N等の様な複雑さは無いと思われる。
弄っていくのでメモ。

Switch

未確認。

MAC

  • LAN: 1C:B1:7F:xx:xx:54 (config, 0x6 (hex))
  • WAN: 1C:B1:7F:xx:xx:55 (config, 0xc (hex))
  • 2.4G: 1C:B1:7F:xx:xx:56 (config, 0x0 (hex) / art, 0x1002 (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.54.5
    TP Version = 1.0.0
    

  • pkg_info
    boot> pkg_info
      PKG NAME : SkyU-HP
      CPU   : Atheros/AR9341
      RAM   : 64Mbyte
      Flash : 4Mbyte
        Device         : MX25L3205DMI(Macronix)
        Top Address    : 0xbfc00000
        Config Address : 0xbfc20000
        System Address : 0xbfc40000
      Ether PHY : Atheros/AR934x(SW)
      DIPSW : 0x1
    

  • 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
    btimer_start     test btimer
    btimer_stop      test btimer
    

  • debug fs ls
    boot> debug fs ls
    Firmware            3406168 bytes
    config.har             1052 bytes
    total 3932160, avail 392832 bytes
    

  • debug memory read 0xb8040000 70
    boot> debug memory read 0xb8040000 70
    b8040000:00030b01 0063ee3f 0064e01e 00000000 .....c.?.d......
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 000f8000 2a2b2c00 ............*+,.
    b8040030:0b0a0929 00180000 00000000 2f2e0000 ...)......../...
    b8040040:002d0000 00000908 00000000 00000000 .-..............
    b8040050:00000c0b 00000000 00000000 00000000 ................
    b8040060:00000000 0d0f110e 00000000 00000002 ................
    boot> tftpd
    phy1.0: "Atheros/AR934x(SW)"
    phy1.4: "Atheros/AR934x(phy)"
    active ch:1
    tftpd start 192.168.0.1
    boot> debug memory read 0xb8040000 70
    b8040000:00030b01 0063ee37 0064e01e 00000000 .....c.7.d......
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 00068000 2a2b2c00 ............*+,.
    b8040030:0b0a0929 00180000 00000000 2f2e0000 ...)......../...
    b8040040:002d0000 00000908 00000000 00000000 .-..............
    b8040050:00000c0b 00000000 00000000 00000000 ................
    b8040060:00000000 0d0f110e 00000000 00000002 ................
    

  • debug memory read 0xb8070000 4
    boot> debug memory read 0xb8070000 4 
    b8070000:00003000                            ..0.
    

  • debug memory read 0xb8060000 bc
    (before tp usb)

    boot> debug memory read 0xb8060000 bc
    b8060000:000207dc 00061a80 00000003 09896140 ..............a@
    b8060010:003fffdd 00000000 00000020 24044830 .?......... $.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:00000121 00000000 00000000 00000000 ...!............
    b80600a0:00000000 00000000 00000000 00000000 ................
    b80600b0:00bf0556 00000000 00000000          ...V........
    

    (aftertp usb)

    boot> debug memory read 0xb8060000 bc
    b8060000:00017cd8 00061a80 00000003 09896124 ..|...........a$
    b8060010:003fffdd 00000000 00000020 24044008 .?......... $.@.
    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:00000121 00000000 00000000 00000000 ...!............
    b80600a0:00000000 00000000 00000000 00000000 ................
    b80600b0:00bf0556 00000000 00000000          ...V........
    

Kernel (NetBSD)

  • Bootlog
    IPL:HARD-RESET
    memory test ... ok
    flinstall OK
    
    boot version: 1.0.0
    
    PKG "SkyU-HP"
    CPU "Atheros/AR9341"
    Revision 12.1 CLOCK 535.0 MHz
    HEAP MEMORY 262144 bytes
    Boot:InitFilesystem
    phy1.0: "Atheros/AR934x(SW)"
    phy1.4: "Atheros/AR934x(phy)"
    active ch:1
    post start
    DRAM Test ..... PASS
    Timer test .... PASS
    FLASH CHKSUM .. PASS
    LAN Test ..... 
    LoopBack count 0 .. 
    phy1.0: "Atheros/AR934x(SW)"
    phy1.4: "Atheros/AR934x(phy)"
    active ch:0
    active ch:1
    phy1.0: "Atheros/AR934x(SW)"
    phy1.4: "Atheros/AR934x(phy)"
    active ch:1
    PASS
    Package TYPE = 0x00
    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: 0x00000000
    load memory 0x176d000, 0x2893000
    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 (SKYU.tmp) #0: 2012-03-13 17:00:31 JST
        ******@***-**-*****:/home/******/skyu/git/hituji/build/skyu/kernel-obj/SKYU.tmp
    
    total memory = 65536 KB
    avail memory = 36368 KB
    using 1024 buffers containing 4096 KB of memory
    mainbus0 (root)
    cpu0 at mainbus0: MIPS 74Kc (0x1974c) Rev. 76 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 0xbfc00000 size 4194304 bytes
    flash: id 0xc2 type 0x15 addr 0xbfc00000 size 4194304 bytes
    pfmg: carrier mode 0 pkgid 0x900 configid 0xff
    arrtc0 at mainbus0
    argiu0 at mainbus0
    arled0 at argiu0
    btnu0 at argiu0 port 0
    btnu1 at argiu0 port 16
    btnu2 at argiu0 port 17
    athq0 at mainbus0
    athq0: WLAN MAC ADDRESS (1c:b1:7f:4c:b1:56)
    Restoring Cal data from Flash
    dfs_attach: use DFS enhancements
    DFS min filter rssiThresh = 18
    DFS max pulse dur = 151 ticks
    ath_get_caps[5049] rx chainmask mismatch actual 3 sc_chainmak 0
    ath_get_caps[5024] tx chainmask mismatch actual 3 sc_chainmak 0
    athq0: LSDK-9.2.0_U8.834 mac 768.0 phy 534.0 radio 0.0
     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 9340: memt=0x80364b00, 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: AR7100 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
    uhub0: 1 port with 1 removable, self powered
    ageth1 at mainbus0
    ath2swlphy0 at ageth1 phy 0: Atheros AR934x 10/100 L2SW, rev. 2
    ath2swlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, 100baseTX-FDX FLAG0, 100baseTX-FDX FLAG1
    ageth0 at mainbus0
    ath2swsphy0 at ageth0 phy 4: Atheros AR934x 10/100 L2SW, rev. 2
    ath2swsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    rtc: CLOCK INITIALIZED 
    kevt0: 
    logbuf: using 655360 bytes logging area
    md0: internal 19456 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
    Sun Jan  1 00:00:02 JST 2012
    /usr/local/www/.htpasswd file not exists.(ignore)
    Setting tty flags.
    Building databases...
    wlan_vap_create : enter. devhandle=0x817456e0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x817456e0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    wlan_vap_create : enter. devhandle=0x817456e0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x817456e0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    Starting wificonfig
    encrypt key mode AES
    Starting evtmgr.
    Starting dlnamgr.
    Starting clid.
    Starting inetd.
    Starting procmon.
    Starting wzcm.
    Sun Jan  1 00:00:06 JST 2012
    
    NetBSD/messimips (Amnesiac) (console)
    
    login: 
    

広告

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト /  変更 )

Google フォト

Google アカウントを使ってコメントしています。 ログアウト /  変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト /  変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト /  変更 )

%s と連携中