WG1400HPやWG1800HP/HP2を把握した辺りで同様にQCA955xであることを把握し、そのうち調達しようかと考えていたもの。
ヤフオクで漁っていた際にジャンクで安価な出品を見付け、少々迷った末に確保。
既にサポート済のWG1400HP, WG1800HP/HP2に加えてサポートする為、弄っていくのでメモ。
Switch
確認中
MAC
確認中
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 rf-regdmn rf-regdmn command time Time command debug debug command ? help command
version
boot> version boot version: 1.0.0 system version: 3.34.29 TP Version = 1.0.0
pkg_info
boot> pkg_info PKG NAME : LIGHTNING3 CPU : Atheros/QCA9558 RAM : 128Mbyte Flash : 16Mbyte Device : MX25L12845E(Macronix) Top Address : 0xbf000000 Config Address : 0xbf020000 System Address : 0xbf040000 Ether PHY : Atheros/QCA8337(SW) DIPSW : 0x3
debug ?
boot> debug ? support commands ... memory memory read/write flash flash driver r/w fs file system r/w load load test (calc chksum) mii mii control l2sw l2sw control ether ether control i2c i2c control
debug fs ls
boot> debug fs ls Firmware 5519156 bytes config.har 2388 bytes total 16515072, avail 10868352 bytes
debug l2sw register dump 0
boot> debug l2sw register dump 0 PHY: 00 : 1000 1000 1000 1000 1000 01 : 7949 7949 7949 7949 7949 02 : 004d 004d 004d 004d 004d 03 : d036 d036 d036 d036 d036 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 : 4007 4007 4007 4007 4007 0e : 0000 0000 0000 0000 0000 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 : 082c 082c 082c 082c 082c 15 : 0000 0000 0000 0000 0000 16 : 2400 2400 2400 2400 2400 17 : 0000 0000 0000 0000 0000 18 : 3200 3200 3200 3200 3200 19 : 1000 1000 1000 1000 1000 1a : 0000 0000 0000 0000 0000 1b : 0000 0000 0000 0000 0000 1c : 0000 0000 0000 0000 0000 1d : 0000 0000 0000 0000 0000 1e : 02ee 02ee 02ee 02ee 02ee 1f : 0000 0000 0000 0000 0000 DEBUG: 00 : 02ee 02ee 02ee 02ee 02ee 01 : 02b2 01b1 01b1 02b2 02b2 02 : 3220 3110 3220 3110 3110 03 : 3f11 3f22 3f11 3f22 3f22 04 : fbbb fbbb fbbb fbbb fbbb 05 : 1c47 1c47 1c47 1c47 1c47 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 3000 3000 0b : bc40 bc40 bc40 bc40 bc40 0c : 6001 6001 6001 6001 6001 0d : 2820 c820 2820 2820 c820 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 : b220 b220 b220 b220 b220 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 : 0028 0000 0000 0000 0000 27 : 1000 1000 1000 1000 1000 28 : 0000 0000 0000 0000 0000 29 : 36dd 36dd 36dd 36dd 36dd 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 : e1ec e1ec e1ec e1ec e1ec 37 : 6000 6000 6000 6000 6000 38 : 1111 1111 1111 1111 1111 39 : 7359 7359 7359 7359 7359 3a : ee6b ee6b ee6b ee6b ee6b 3b : 5a5a 5a5a 5a5a 5a5a 5a5a 3c : 5a5a 5a5a 5a5a 5a5a 5a5a 3d : 6860 6860 6860 6860 6860 3e : e0d8 e0d8 e0d8 e0d8 e0d8 3f : 8000 8000 8000 8000 8000 MMD3: MMD7: L2SW: 0000 : 00001302 80000080 01000000 06000000 0010 : 002613a0 f0107650 00002586 00003f1f 0020 : 3f500000 00010082 00000000 00000000 0030 : 80000701 00000000 0f000000 00000000 0040 : 00700000 00000000 000088a8 00000000 0050 : cc36cc36 ca36ca36 c936c936 03ffff00 0060 : 00000001 00000000 00000000 00000000 0070 : b00ee060 03707f07 000005ee 0000004e 0080 : 00001280 00001280 00001280 00001280 0090 : 00001280 0000004e 00000000 00000000 00a0 : 00000000 00000000 00000000 00000000 00b0 : 00000000 00000000 00000000 00000618 00c0 : 00000000 00000000 80901040 00000000 00d0 : fffbff7e 00000001 00000100 000303ff 00e0 : c74164de 0002a545 2dc11c9c 00000000 00f0 : ff000083 00000000 a0000000 0200d600 0100 : 00000000 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 00000000 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 : c0a80000 ffff0000 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 00000001 0610 : 00000000 00000001 d0e8002b 00000000 0620 : 001000f0 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 : ffffffff ffffffff ffffffff 00000000 0800 : 01200188 00000000 007f000e 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 000001c0 28000000 000001c2 0980 : 28000000 000001c2 28000000 000001c2 0990 : 28000000 000001c2 28000000 000001c2 09a0 : 28000000 000001c0 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 0x70
boot> debug memory read 0xb8040000 0x70 b8040000:00a6031f 20bee62e 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 ................ boot> tftp RGMII calibration GE0 ... ETH_CFG: 00028001 ETH_XMII: 96000000 phy0.0: "Atheros/QCA8337(phy)" phy0.1: "Atheros/QCA8337(SW)" active ch:1 tftpd start 192.168.0.1 boot> debug memory read 0xb8040000 0x70 b8040000:00a6031f 20beee2e 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 0xb8050000 0x54
boot> debug memory read 0xb8050000 0x54 b8050000:00021480 00213c00 00010000 00000400 .....!<......... b8050010:c00a0ffe 000a0000 00000014 00000000 ................ b8050020:00000500 000a05e6 96000000 000010b3 ................ b8050030:0a47f028 00004000 0523f828 41020ccc .G.(..@..#.(A... b8050040:781003ff 003c103f 03000000 00000007 x....<.?........ b8050050:00000101
debug memory read 0xb8060000 0xd0
boot> debug memory read 0xb8060000 0xd0 b8060000:00000000 00000000 00000003 098963f4 ..............c. b8060010:00000701 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:00031e5c 00033fc0 00000000 000a2000 ...\..?....... . b80600c0:00000000 000308f1 00000000 000003ff ................ boot> tp usb USB Test .... USB not connect PASS boot> debug memory read 0xb8060000 0xd0 b8060000:00000000 00000000 00000003 098961f4 ..............a. b8060010:00000701 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:00031e5c 00033fc0 00000000 000a2000 ...\..?....... . b80600c0:00000000 000308f1 00000000 000003ff ................
debug memory read 0xb8070000 0x68
boot> debug memory read 0xb8070000 0x68 b8070000:00028001 00000000 0000000f 00000002 ................ b8070010:0000ffff 0000001f 18838116 00000140 ...............@ b8070020:0000004d 00000060 00000020 00000000 ...M...`... .... b8070030:00000000 000000a2 00001801 0000000e ................ b8070040:00000000 00000000 00000020 2396e54a ........... #..J b8070050:04e29c45 00000030 0856070f 00000018 ...E...0.V...... b8070060:00000000 00000000 ........
debug memory read 0xb8116xxx 0x4
boot> debug memory read 0xb8116184 0x4 b8116184:13010f00 .... boot> debug memory read 0xb8116c84 0x4 b8116c84:13010f00 .... boot> debug memory read 0xb8116ec4 0x4 b8116ec4:13010f00 .... boot> debug memory read 0xb8116f04 0x4 b8116f04:13010f00 .... boot> debug memory read 0xb8116cc0 0x4 b8116cc0:633c8178 c<.x boot> debug memory read 0xb8116cc4 0x4 b8116cc4:00380000 .8.. boot> debug memory read 0xb8116290 0x4 b8116290:4b962d0f K.-.
Kernel
bootlog
IPL:HARD-RESET memory test ... ok flinstall OK boot version: 1.0.0 PKG "LIGHTNING3" CPU "Atheros/QCA9558" Revision 113.0 CLOCK 720.0 MHz HEAP MEMORY 262144 bytes Boot:InitFilesystem RGMII calibration GE0 ... ETH_CFG: 00028001 ETH_XMII: 96000000 phy0.0: "Atheros/QCA8337(phy)" phy0.1: "Atheros/QCA8337(SW)" active ch:1 post start DRAM Test ..... PASS Timer test .... PASS FLASH CHKSUM .. PASS LAN Test ...... LoopBack count 0 .. phy0.0: "Atheros/QCA8337(phy)" phy0.1: "Atheros/QCA8337(SW)" active ch:0 active ch:1 phy0.0: "Atheros/QCA8337(phy)" phy0.1: "Atheros/QCA8337(SW)" active ch:1 PASS Package TYPE = 0x02 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: 0xc0008000 load memory 0x2219000, 0x5de7000 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 (LIGHTNING3.tmp) #2: 2019-04-05 16:26:48 JST user@SIZNECATS142171:/home/user/git/LIGHTNING3_DEVEL_BRANCH/build/lightning3/kernel-obj/LIGHTNING3.tmp total memory = 128 MB avail memory = 89632 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 0x1002 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 0x76 tcaled0 at tca6416gpio0 qca0 at mainbus0nbuf_hdr_init: struct nbuf(132 bytes) mallocsize(1966080 bytes) mbuf_freeq_setup: mbuf_freeq_bufcount = 0 mbuf_freeq_setup: mbuf_freeq_bufcount(6656,6656) Enterprise mode: 0x33fc0000 Restoring Cal data from Flash ART Version : -48.0.0 SW Image Version : -48.0.0.0.0 Board Revision : ar9300_attach: nf_2_nom -110 nf_2_max -60 nf_2_min -125 SPECTRAL : get_capability not registered HAL_CAP_PHYDIAG : Capable SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237) SPECTRAL : get_capability not registered HAL_CAP_RADAR : Capable SPECTRAL : Need to fix the capablity check for SPECTRAL (spectral_attach : 242) SPECTRAL : get_capability not registered HAL_CAP_SPECTRAL_SCAN : Capable SPECTRAL : get_tsf64 not registered SPECTRAL : No ADVANCED SPECTRAL SUPPORT SPECTRAL :----- module attached Green-AP : Green-AP : Attached ath_get_caps[6323] rx chainmask mismatch actual 7 sc_chainmak 0 ath_get_caps[6298] tx chainmask mismatch actual 7 sc_chainmak 0 ath_attach_dfs[12907] dfsdomain 3 dfs_attach: event log enabled by default SPECTRAL : module already attached qca0: Atheros 955X: memt=0x805d4e90, 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 qcaled_998x0 at mainbus0 ageth0 at mainbus0 ath8327swsphy0 at ageth0 phy 0: Atheros QCA8337 10/100/1000 L2SW, rev. 6 ath8327swsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto ageth1 at mainbus0 ath8327swlphy0 at ageth1 phy 1: Atheros QCA8337 10/100/1000 L2SW, rev. 6 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 ath_pci_match qca1 at pci0 dev 0 function 0ath_pci_attach: LSDK- bus master disable ASPM on peregrine[0x80] lcr(0x10110000) --> (0x10110000) *********** Cascade ************* qcaten1: WLAN MAC ADDRESS (98:f1:99:xx:xx:7f) __ol_ath_attach_alloc_scn: WLAN MAC ADDRESS (98:f1:99:xx:xx:7f) ic(0xc03a1000) ol_ath_pci_configure : num_desired MSI set to 0 Using PCI Legacy Interrupt chip_id 0xa chip_revision 0x0 CLOCK PLL skipped arpcieu1 at mainbus0: pci1 at arpcieu1 bus 1 pci1: memory space enabled rtc: CLOCK INITIALIZED kevt0: logbuf: using 655360 bytes logging area md0: internal 27648 KB image area boot device: <unknown> root on md0a dumps on md0b root file system type: ffs Fri Jan 1 00:00:02 JST 2016 /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 vathten2 vathten3 Starting wificonfig encrypt key mode AES encrypt key mode AES Starting evtmgr. Starting dlnamgr. Starting clid. Starting inetd. Starting procmon. Starting wzcm. Starting adp. Starting access_timer. Starting wdf. Starting cpu_therm_moni. Fri Jan 1 00:00:17 JST 2016 NetBSD/scorpimips (Amnesiac) (console) login: