大破雑記帳

個人用メモな雑記ブログ いろんなことをざっくりと。

WF1200HP

以前より、既にサポート済のWR8750N, WR9500N, WG600HP同様にAR934x搭載機であることを把握していたものの、FE機であることから見送り続けていたもの。

少し前にWF1200HP, HP2の対応予定について質問が有り、その際は無しと回答したものの需要が無いわけでは無いらしいこと、最近行った東久留米のハードオフでどちらも110円で転がっていたことなどから確保した。

弄っていくのでメモ。

Switch

未確認

MAC

  • LAN: C0:25:A2:xx:xx:44 (config, 0x6 (hex))
  • WAN: C0:25:A2:xx:xx:45 (config, 0xc (hex))
  • 2.4G: C0:25:A2:xx:xx:46 (config, 0x0 (hex))
  • 5G: C0:25:A2:xx:xx:47 (config, 0x12 (hex))

Bootloader

  • 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.1
      system version: 3.02.13
      TP Version = 1.0.0
    
  • pkg_info

      boot> pkg_info
        PKG NAME : Jelly-HP
        CPU   : Atheros/AR9344
        RAM   : 128Mbyte
        Flash : 8Mbyte
          Device         : MX25L6405D(Macronix)
          Top Address    : 0xbf000000
          Config Address : 0xbf020000
          System Address : 0xbf040000
        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
      pci              pci control
      btimer_start     test btimer
      btimer_stop      test btimer
    
  • debug fs ls

      boot> debug fs ls
      Firmware            3363892 bytes
      total 8126464, avail 4713984 bytes
    
  • debug ether info

      boot> debug ether info
      [eth:1]
      <eth-info>
               rev : 0x2123
               mac : tx-ena,rx-ena
               dma : tx-dis,rx-ena
           if-mode : 1000M
       byte/nibble : GMII,RGMII-1000M
         mii-speed : 10M
            duplex : full
      <phy-info>
              link : up
              auto : auto
             speed : 1000M
            duplex : full
              anar : 01e0
        port: link   auto   speed  duplex anar  
           0: down   none   0M     half   01e0  
           1: down   none   0M     half   01e0  
           2: down   none   0M     half   01e0  
           3: down   none   0M     half   01e0
    
  • debug memory read 0xb8040000 0x70

      boot> debug memory read 0xb8040000 0x70
      b8040000:00039b1f 0063ee38 00040000 00000000 .....c.8........
      b8040010:00000000 00000000 00000000 00000000 ................
      b8040020:00000000 00000000 000f8000 00000000 ................
      b8040030:0b0a0900 00180000 002b2a00 2f2e0000 .........+*./...
      b8040040:002c2d00 00000908 00000000 00000000 .,-.............
      b8040050:00000c0b 00000000 00000000 00000000 ................
      b8040060:00000000 0d0f110e 00000000 00000002 ................
      boot> tftp
      phy1.0: "Atheros/AR934x(SW)"
      phy1.4: "Atheros/AR934x(phy)"
      active ch:1
      tftpd start 192.168.0.1
      boot> debug memory read 0xb8040000 0x70
      b8040000:00039b1f 0063ee38 00040000 00000000 .....c.8........
      b8040010:00000000 00000000 00000000 00000000 ................
      b8040020:00000000 00000000 000f8000 00000000 ................
      b8040030:0b0a0900 00180000 002b2a00 2f2e0000 .........+*./...
      b8040040:002c2d00 00000908 00000000 00000000 .,-.............
      b8040050:00000c0b 00000000 00000000 00000000 ................
      b8040060:00000000 0d0f110e 00000000 00000002 ................
    
  • debug memory read 0xb8050000 0x54

      boot> debug memory read 0xb8050000 0x54
      b8050000:40021380 40213000 01308000 00000000 @...@!0..0......
      b8050010:40000400 c009fffe 0009f33a 00000014 @..........:....
      b8050020:00000000 00000531 0009bff1 00000101 .......1........
      b8050030:000010b3 0a47f028 00004000 0523f828 .....G.(..@..#.(
      b8050040:41020ccc 78100000 003c1000 00000000 A...x....<......
      b8050050:00000000
    
  • debug memory read 0xb8060000 0xc0

      boot> debug memory read 0xb8060000 0xc0
      b8060000:00000000 00000000 00000003 0989619c ..............a.
      b8060010:00000701 00000000 00000020 24c44830 ........... $.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:00012123 00000000 00000000 00000000 ..!#............
      b80600a0:00000000 00000000 00000000 00000000 ................
      b80600b0:00bf055e 00000000 00000000 00086000 ...^..........`.
    
  • debug memory read 0xb8070000 0x14

      boot> debug memory read 0xb8070000 0x14
      b8070000:00003000 00000000 0000000f 00000002 ..0.............
      b8070010:0000ffff                            ....
    
  • debug memory read 0xb8116xxx 0x4

      boot> debug memory read 0xb81161c0 0x4 
      b81161c0:41c00000                            A...
      boot> debug memory read 0xb81161c4 0x4
      b81161c4:d0800f00                            ....
      boot> debug memory read 0xb81161c8 0x4
      b81161c8:03000000                            ....
      boot> debug memory read 0xb81161cc 0x4
      b81161cc:00000000                            ....
      boot> debug memory read 0xb8116240 0x4
      b8116240:41540000                            AT..
      boot> debug memory read 0xb8116244 0x4
      b8116244:d0800f00                            ....
      boot> debug memory read 0xb8116248 0x4
      b8116248:03000000                            ....
      boot> debug memory read 0xb811624c 0x4
      b811624c:00000000                            ....
      boot> debug memory read 0xb8116188 0x4
      b8116188:03000000                            ....
    

Kernel

  • bootlog

    
    
      IPL:HARD-RESET
      memory test ... ok
      flinstall OK
    
      boot version: 1.0.1
    
      PKG "Jelly-HP"
      CPU "Atheros/AR9344"
      Revision 212.3 CLOCK 560.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: 0x80000000
      load memory 0x1e51000, 0x61af000
      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 (JELLY.tmp) #0: 2014-07-22 09:39:16 JST
          kubota@A00-30-04938:/home/kubota/jelly_step2/git/hituji/build/jelly/kernel-obj/JELLY.tmp
    
      total memory = 128 MB
      avail memory = 93440 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 0xbf000000 size 8388608 bytes
      flash: id 0xc2 type 0x16 addr 0xbf000000 size 8388608 bytes
      pfmg: carrier mode 0 pkgid 0xc00 configid 0xff
      arrtc0 at mainbus0
      argiu0 at mainbus0
      btnu0 at argiu0 port 15
      btnu1 at argiu0 port 4
      btnu2 at argiu0 port 3
      athq0 at mainbus0
      LSDK DRV Version = 10.1.357_20140508P
    
      athq0: WLAN MAC ADDRESS (c0:25:a2:xx:xx:46)
      pfmg_read_scan_upper_2_4g: 11
      nbuf_hdr_init: struct nbuf(124 bytes) mallocsize(917504 bytes)
      mbuf_freeq_setup: mbuf_freeq_bufcount = 0
      mbuf_freeq_setup: mbuf_freeq_bufcount(6144,6144)
      Enterprise mode: 0x00000000
      Restoring Cal data from Flash
      ar9300_eeprom_attach: op_flags overwrite [0x2] -> [0x16](2.4GHz only)
      ar9300_tuning_caps_apply TuningCaps Values(0x48) are applied.
      Green-AP : Green-AP : Attached
    
      ath_get_caps[6357] rx chainmask mismatch actual 3 sc_chainmak 0
      ath_get_caps[6332] tx chainmask mismatch actual 3 sc_chainmak 0
      ath_attach_dfs[12372] dfsdomain 3
      ath_tx_paprd_init sc 0xc0175000 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 9340: memt=0x803b26a0, memh=0xb8100000 
      com0 at mainbus0: ns16550a, working fifo
      com0: console
      qcaled0 at mainbus0 using RF GPIO
      ageth1 at mainbus0
      ath2swlphy0 at ageth1 phy 1: 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
      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_20140508P
      ath_pci_probe
      disable ASPM on peregrine[0x80] lcr(0x10110000) --> (0x10110000)
      athten1: WLAN MAC ADDRESS (c0:25:a2:xx:xx:46)
      __ol_ath_attach: WLAN MAC ADDRESS (c0:25:a2:xx:xx:46) ic(0xc0252000)
    
       Using PCI Legacy Interrupt
      __ol_ath_attach: ath_attach TODO
      rtc: CLOCK INITIALIZED 
      kevt0: 
      logbuf: using 655360 bytes logging area
      md0: internal 25600 KB image area
      boot device: <unknown>
      root on md0a dumps on md0b
      root file system type: ffs
      Wed Jan  1 00:00:02 JST 2014
      /usr/local/www/.htpasswd file not exists.(ignore)
      Setting tty flags.
      Building databases...
      mode switch: sta
      vathten_sta4
      vathten0
      vathten1
      ol_transfer_bin_file 2372: Download Board data in flash len:0x0844(0x0844)
      vathten_sta5
      vathten2
      vathten3
      Starting wificonfig
      encrypt key mode AES
      encrypt key mode AES
      Starting evtmgr.
      Starting clid.
      Starting inetd.
      Starting procmon.
      Wed Jan  1 00:00:09 JST 2014
    
      NetBSD/messimips (Amnesiac) (console)
    
      login: