カテゴリー: QCA/Atheros

WR8750N fixed-regulatorメモ

WR8750N/WR9500N/WG600HPではいくつかGPIOをHIGHで出さなければ機能しないデバイスがあり、それらについてfixed-regulatorのDeviceTree binding (compatible = "regulator-fixed") を使用する場合の挙動確認用メモ。

USB-Vbus
ath79内の他のdtsでは問題無いようではあるものの、Aterm 3機種ではブート中に無効化されてしまった。こうなると、USBポートにDC 5V電源が供給されずデバイスが使用できない。
ノード内に regulator-always-on; を付加した場合は無効化されず有効なまま。

無効化される場合のログ

IPL:HARD-RESET
memory test ... ok
flinstall OK

boot version: 1.0.0

PKG "Orthos-HP"
CPU "Atheros/AR9344"
Revision 212.1 CLOCK 560.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
post start
DRAM Test ..... PASS
Timer test .... PASS
FLASH CHKSUM .. PASS
LAN Test ..... 
LoopBack count 0 .. 
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
active ch:1
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
PASS
Package TYPE = 0x01
post success

welcome to boot console
Password:
boot> tftpd
tftpd start 192.168.0.1
boot> start tftp load openwrt-ath79-tiny-nec_wr8750n-i
end tftp load length = 3442316
start memory load ... 
memory load complete
  begin  : 0x80060000
  length : 3442292
  startup: 0x80060000
boot
begin  : 0x80060000
length : 3442292
startup: 0x80060000
option: 0x0


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos 
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 4.14.101 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9362-3cf839bf27)) #0 Sun Feb 17 11:18:45 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WR8750N
[    0.000000] SoC: Atheros AR9344 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from 0x8045d72c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 117812K/131072K available (3467K kernel code, 136K rwdata, 472K rodata, 7372K init, 195K bss, 13260K 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: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.092710] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.237626] pid_max: default: 32768 minimum: 301
[    0.293067] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.372218] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.461311] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.579001] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.651956] pinctrl core: initialized pinctrl subsystem
[    0.715407] NET: Registered protocol family 16
[    0.769307] Can't analyze schedule() prologue at 803beb1c
[    0.836254] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.913369]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.975830]   IO 0x0000000000000000..0x0000000000000000
[    1.059606] PCI host bridge to bus 0000:00
[    1.108577] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.190796] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.257459] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.338683] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.433994] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    1.521455] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    1.608447] clocksource: Switched to clocksource MIPS
[    1.670048] NET: Registered protocol family 2
[    1.722993] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.806319] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.882308] TCP: Hash tables configured (established 1024 bind 1024)
[    1.958477] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.028229] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.103447] NET: Registered protocol family 1
[    2.300316] Crashlog allocated RAM at address 0x3f00000
[    2.364123] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.446224] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.515993] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.706900] io scheduler noop registered
[    2.753847] io scheduler deadline registered (default)
[    2.815602] ar7200-usb-phy usb-phy: phy reset is missing
[    2.881456] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    2.965880] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    3.042684] console [ttyS0] disabled
[    3.085437] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 2500000) is a 16550A
[    3.188462] console [ttyS0] enabled
[    3.188462] console [ttyS0] enabled
[    3.271732] bootconsole [early0] disabled
[    3.271732] bootconsole [early0] disabled
[    3.373903] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.432289] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.508338] Creating 4 MTD partitions on "spi0.0":
[    3.565649] 0x000000000000-0x000000020000 : "u-boot"
[    3.625861] 0x000000020000-0x000000030000 : "config"
[    3.686072] 0x000000030000-0x000000040000 : "art"
[    3.743173] 0x000000040000-0x000000800000 : "firmware"
[    3.814900] libphy: Fixed MDIO Bus: probed
[    4.198841] libphy: ag71xx_mdio: probed
[    4.269237] switch0: Atheros AR8327 rev. 2 switch registered on mdio-bus.0
[    5.339625] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    5.468299] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    5.543245] NET: Registered protocol family 10
[    5.600101] Segment Routing with IPv6
[    5.644025] NET: Registered protocol family 17
[    5.697555] 8021q: 802.1Q VLAN Support v1.8
[    5.750794] usb_vbus: disabling
[    5.823669] Freeing unused kernel memory: 7372K
[    5.877886] This architecture does not have kernel memory protection.
[    5.968851] init: Console is alive
[    6.009792] init: - watchdog -
[    6.068664] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.160539] usbcore: registered new interface driver usbfs
[    6.226283] usbcore: registered new interface driver hub
[    6.289932] usbcore: registered new device driver usb
[    6.356625] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.436541] ehci-platform: EHCI generic platform driver
[    6.499101] random: fast init done
[    6.540019] ehci-platform 1b000000.usb: EHCI Host Controller
[    6.607799] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    6.701547] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    6.798491] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    6.873338] hub 1-0:1.0: USB hub found
[    6.918714] hub 1-0:1.0: 1 port detected
[    6.967320] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.064183] init: - preinit -
[    7.322505] random: jshn: uninitialized urandom read (4 bytes read)
[    7.397627] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    7.571547] random: jshn: uninitialized urandom read (4 bytes read)
[    7.759977] random: procd: uninitialized urandom read (4 bytes read)
[    7.836445] hub 1-1:1.0: USB hub found
[    7.928501] hub 1-1:1.0: 4 ports detected
[    8.377822] urandom_read: 4 callbacks suppressed
[    8.377831] random: jshn: uninitialized urandom read (4 bytes read)
[    9.265951] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.335906] 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
[   10.449722] eth0: link up (1000Mbps/Full duplex)
[   10.506481] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.586000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   12.652859] eth0: link down
[   12.705540] procd: - early -
[   12.740359] procd: - watchdog -
[   13.324256] procd: - watchdog -
[   13.362195] procd: - ubus -
[   13.402672] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.479944] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.557503] procd: - init -
Please press Enter to activate this console.
[   13.784410] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.864552] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.940076] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   14.029655] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   14.109759] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.182075] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   14.311244] xt_time: kernel timezone is -0000
[   14.419646] PPP generic driver version 2.4.2
[   14.473306] NET: Registered protocol family 24
[   14.586672] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=11
[   14.669780] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   14.790514] ath9k 0000:00:00.0: Falling back to user helper
[   15.283757] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=13
[   15.468860] kmodloader: done loading kernel modules from /etc/modules.d/*
[   27.496202] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.738887] br-lan: port 1(eth0.1) entered blocking state
[   27.803513] br-lan: port 1(eth0.1) entered disabled state
[   27.868396] device eth0.1 entered promiscuous mode
[   27.925703] device eth0 entered promiscuous mode
[   28.309978] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   28.490322] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   28.609772] eth0: link up (1000Mbps/Full duplex)
[   28.858530] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   29.364321] br-lan: port 1(eth0.1) entered blocking state
[   29.428925] br-lan: port 1(eth0.1) entered forwarding state
[   29.496037] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   30.938550] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  125.446530] random: crng init done

広告

WG600HP

春日部方面のハードオフに行った際に見つけ、WR8750N/WR9500Nと同様AR9344搭載機であることを把握していたため、衝動的に購入したもの。
購入直後に開けて確認した限りではほぼWR8750Nと同一であると予想されたものの、念のためメモしていく。
なお、WR8750N用のOpenWrtファームでブートすることも可能だった。

Switch

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

MAC

  • LAN: A4:12:42:xx:xx:A0 (config, 0x6 (hex))
  • WAN: A4:12:42:xx:xx:A1 (config, 0xc (hex))
  • 2.4G: A4:12:42:xx:xx:A2 (config, 0x0 (hex))
  • 5G: A4:12:42:xx:xx:A3 (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.95.12
    TP Version = 1.0.0
    
  • pkg_info
    boot> pkg_info
      PKG NAME : Orthos-HP
      CPU   : Atheros/AR9344
      RAM   : 128Mbyte
      Flash : 8Mbyte
        Device         : MX25L6405D(Macronix)
        Top Address    : 0xbf000000
        Config Address : 0xbf020000
        System Address : 0xbf040000
      Ether PHY : Atheros/AR8327(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            3534816 bytes
    total 8126464, avail 4583040 bytes
    
  • debug l2sw register dump ?
    boot> debug l2sw register dump ?
    PHY:
    00 1000 1000 1000 1000 1000 
    01 796d 7949 7949 7949 796d 
    02 004d 004d 004d 004d 004d 
    03 d034 d034 d034 d034 d034 
    04 1de1 1de1 1de1 1de1 1de1 
    05 cde1 0000 0000 0000 cde1 
    06 000f 0004 0004 0004 000f 
    07 2801 2801 2801 2801 2801 
    08 0000 0000 0000 0000 0000 
    09 0200 0200 0200 0200 0200 
    0a 3800 0000 0000 0000 7800 
    0b 0000 0000 0000 0000 0000 
    0c 0000 0000 0000 0000 0000 
    0d 0000 0000 0000 0000 0000 
    0e 0000 0000 0000 0000 0000 
    0f 2000 2000 2000 2000 2000 
    10 0862 0862 0862 0862 0862 
    11 bc1c 0010 0010 0010 bc1e 
    12 0000 0000 0000 0000 0000 
    13 7400 0000 0000 0000 7400 
    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 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 ffd0 02b2 02b2 01b1 ffd0 
    02 3f0f 3110 3110 3220 3f0f 
    03 3eff 3e22 3e22 3e22 3eff 
    04 babb bbbb bbbb bbbb babb 
    05 3c47 3c47 3c47 3c47 3c47 
    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 0800 6001 6001 6001 0800 
    0d 0100 c820 2820 2820 0100 
    0e 0023 0003 0003 0003 0020 
    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 ffff 
    17 1506 0000 0000 0000 0f11 
    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 7c00 0000 0000 0000 b000 
    20 0000 0000 0000 0000 7fff 
    21 2d15 2d15 2d15 2d15 2d15 
    22 1f6a 1f6a 1f6a 1f6a 1f6a 
    23 a400 a200 a200 a200 9880 
    24 0ede 1000 1000 1000 0e05 
    25 0000 0000 0000 0000 0000 
    26 001e 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 effa 0000 0000 0000 00ff 
    2e 0304 0000 0000 0000 fcfe 
    2f 0000 0000 0000 0000 7fff 
    30 ecfe 0000 0000 0000 0500 
    31 f9fc 0000 0000 0000 0bf1 
    32 25f1 2200 2200 2200 1880 
    33 252d 2200 2200 2200 1780 
    34 2402 2200 2200 2200 1880 
    35 0000 0000 0000 0000 0000 
    36 e12c e12c e12c e12c e12c 
    37 6080 6000 6000 6000 6080 
    38 1121 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 68e0 68e0 68e0 68e0 68e0 
    3e 2058 e0d8 e0d8 e0d8 2058 
    3f 8000 8000 8000 8000 ffff 
    
    L2SW:
    0000 00001204 07a00000 00000000 00000000 
    0010 20261320 f0107650 00002d0e 00003f1f 
    0020 3f500a00 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 00000f4e 00000200 00000200 00000200 
    0090 00000f4e 00001080 00000000 00000000 
    00a0 00000000 00000000 00000000 00000000 
    00b0 00000000 00000000 00000000 00000000 
    00c0 00000000 00000000 80901040 00000000 
    00d0 7fff7ff7 00003fff 00000100 00000000 
    00e0 c70164ce 0002a545 2dc11c9c 00000000 
    00f0 00000000 00000000 00000000 00000000 
    0100 00000000 00000000 00000000 00000000 
    0110 00000000 00000000 00000000 00000000 
    0120 00110011 00000000 00240024 00000000 
    0130 00240024 00000000 00240024 00000000 
    0140 00240024 00000000 00240024 00000000 
    0150 00240024 00000000 00240024 00000000 
    0160 00110011 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 00002040 00020001 00001040 
    0430 00010001 00001040 00010001 00001040 
    0440 00010001 00001040 00010001 00001040 
    0450 00010001 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 00000001 
    0610 00000000 00000002 50e8002b 00000000 
    0620 000000f0 003f3f3f 00000000 00000000 
    0630 00000000 11111111 22222222 33333333 
    0640 44444444 55555555 66666666 77777777 
    0650 76543210 00000000 00000000 00000000 
    0660 0014027e 00000018 00007000 0004027d 
    0670 00000018 00007000 0014027b 00000018 
    0680 00007000 00140277 00000018 00007000 
    0690 0014026f 00000018 00007000 0014025f 
    06a0 00000018 00007000 00000000 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 
    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 
    0c00 00000000 00000000 00000000 00000000 
    0c10 00000000 00000000 00000000 00000000 
    0c20 00000000 00000000 00000000 00000000 
    0c30 00000000 00000000 00000000 00000000 
    0c40 00000000 00000000 00000000 00000000 
    0c50 00000000 00000000 00000000 00000000 
    0c60 00000000 00000000 00000000 00000000 
    0c70 00010001 00010001 00010001 00000001 
    0c80 00000000 00000000 00000000 00000000 
    0c90 00000000 00000000 00000000 00000000 
    0ca0 00000000 00000000 00000000 00000000 
    0cb0 00000000 00000000 00000000 00000000 
    0cc0 00000000 00000000 00000000 00000000 
    0cd0 00000000 00000000 00000000 00000000 
    0ce0 00000000 00000000 00000000 00000000 
    0cf0 00000000 00000000 00000000 00000000 
    0e00 00072401 00000000 00000000 007f0000 
    0e10 00000000 00000000 00000000 00000000 
    0e20 00000000 00000000 00000000 00000000 
    0e30 00000000 00000000 00200a53 00000000 
    0e40 00000000 00000000 00000000 00000000 
    0e50 00000000 00000000 00000000 000c0a80 
    0e60 00000000 00000000 00000000 00000000 
    0e70 00000000 00000000 00000000 00000000 
    0e80 00000000 00000000 00000000 00000000 
    0e90 00000000 00000000 00000000 00000000 
    0ea0 00000000 00000000 00000000 00000000 
    0eb0 00000000 00000000 00000000 00000000 
    0ec0 00000000 00000000 00000000 00000000 
    0ed0 00000000 00000000 00000000 00000000 
    0ee0 00000000 00000000 00000000 00000000 
    0ef0 00000000 00000000 00000000 00000000 
    
    VTU:
    0: 001b55e0 00010005
    1: 001bff60 00020005
    
    ATU:
    0: d8e63fb3 80205c9a 00000106 00000006 m:5c:9a:d8:**:**:** p:.....o. v:1
    
  • debug memory read 0xb8040000 70
    (switch initialized)

    boot> debug memory read 0xb8040000 70
    b8040000:0003db1f 0003be39 00042000 00000000 .......9.. .....
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 000f8000 00000000 ................
    b8040030:0b0a0900 00180000 00000000 2f2e0000 ............/...
    b8040040:00000000 00000908 00000000 00000000 ................
    b8040050:00000c0b 00000000 00000000 00000000 ................
    b8040060:00000000 0d0f110e 00000000 00000002 ................
    
  • debug memory read 0xb805002c 4
    boot> debug memory read 0xb805002c 4
    b805002c:06000000                            ....
    
  • debug memory read 0xb8070000 4
    boot> debug memory read 0xb8070000 4 
    b8070000:00000001                            ....
    
  • debug memory read 0xb8060000 c0
    boot> debug memory read 0xb8060000 c0
    b8060000:0005565c 00061a80 00000003 098961e4 ..V\..........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:00002121 00000000 00000000 00000000 ..!!............
    b80600a0:00000000 00000000 00000000 00000000 ................
    b80600b0:00bf057e 00000000 00000000 00086000 ...~..........`.
    

Kernel (NetBSD)

  • Bootlog
    IPL:HARD-RESET
    memory test ... ok
    flinstall OK
    
    boot version: 1.0.0
    
    PKG "Orthos-HP"
    CPU "Atheros/AR9344"
    Revision 212.1 CLOCK 560.0 MHz
    HEAP MEMORY 262144 bytes
    Boot:InitFilesystem
    phy0.1: "Atheros/AR8327(SW)"
    phy0.0: "Atheros/AR8327(phy)"
    active ch:0
    post start
    DRAM Test ..... PASS
    Timer test .... PASS
    FLASH CHKSUM .. PASS
    LAN Test ..... 
    LoopBack count 0 .. 
    phy0.1: "Atheros/AR8327(SW)"
    phy0.0: "Atheros/AR8327(phy)"
    active ch:0
    active ch:1
    phy0.1: "Atheros/AR8327(SW)"
    phy0.0: "Atheros/AR8327(phy)"
    active ch:0
    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: 0x00000000
    load memory 0x197f000, 0x6681000
    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 (ORTHOS2.tmp) #0: 2014-09-19 17:54:33 JST
        ******@A00-30-04938:/home/******/skyhp2_orthos2/git/hituji/build/orthos2/kernel-obj/ORTHOS2.tmp
    
    total memory = 128 MB
    avail memory = 98288 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 0x10701 configid 0xff
    arrtc0 at mainbus0
    argiu0 at mainbus0
    btnu0 at argiu0 port 15
    btnu1 at argiu0 port 16
    btnu2 at argiu0 port 3
    athq0 at mainbus0
    athq0: WLAN MAC ADDRESS (a4:12:42:78:82:a2)
    Restoring Cal data from Flash
    dfs_attach: use DFS enhancements
    DFS min filter rssiThresh = 18
    DFS max pulse dur = 151 ticks
    ath_get_caps[5308] rx chainmask mismatch actual 3 sc_chainmak 0
    ath_get_caps[5283] tx chainmask mismatch actual 3 sc_chainmak 0
    athq0: LSDK-9.2.0_U10.1020 mac 768.0 phy 0.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=0x80372470, 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
    ageth0 at mainbus0
    ath27swlphy0 at ageth0 phy 1: Atheros AR8327 10/100/1000 L2SW, rev. 4
    ath27swlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto, 1000baseT-FDX FLAG0, 1000baseT-FDX FLAG1
    ageth1 at mainbus0
    ath27swsphy0 at ageth1 phy 0: Atheros AR8327 10/100/1000 L2SW, rev. 4
    ath27swsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
    arpcieu0 at mainbus0:
    pci0 at arpcieu0 bus 0
    pci0: memory space enabled
    athq1 at pci0 dev 0 function 0
    athq1: WLAN MAC ADDRESS (a4:12:42:78:82:a3)
    __ath_attach: Set global_scn[1]
    ACBKMinfree = 48
    ACBEMinfree = 32
    ACVIMinfree = 16
    ACVOMinfree = 0
    CABMinfree = 48
    UAPSDMinfree = 0
    Restoring Cal data from Flash
    dfs_attach: use DFS enhancements
    DFS min filter rssiThresh = 18
    DFS max pulse dur = 151 ticks
    ath_get_caps[5308] rx chainmask mismatch actual 3 sc_chainmak 0
    ath_get_caps[5283] tx chainmask mismatch actual 3 sc_chainmak 0
    athq1: LSDK-9.2.0_U10.1020 mac 448.3 phy 0.0 radio 0.0
     chan  Freq     HT                       DFS
     36    5180na   HT20 HT40PLUS            N
     40    5200na   HT20          HT40MINUS  N
     44    5220na   HT20 HT40PLUS            N
     48    5240na   HT20          HT40MINUS  N
     52    5260na   HT20 HT40PLUS            Y
     56    5280na   HT20          HT40MINUS  Y
     60    5300na   HT20 HT40PLUS            Y
     64    5320na   HT20          HT40MINUS  Y
     100   5500na   HT20 HT40PLUS            Y
     104   5520na   HT20          HT40MINUS  Y
     108   5540na   HT20 HT40PLUS            Y
     112   5560na   HT20          HT40MINUS  Y
     116   5580na   HT20 HT40PLUS            Y
     120   5600na   HT20          HT40MINUS  Y
     124   5620na   HT20 HT40PLUS            Y
     128   5640na   HT20          HT40MINUS  Y
     132   5660na   HT20 HT40PLUS            Y
     136   5680na   HT20          HT40MINUS  Y
     140   5700na   HT20                     Y
    athq1: Atheros 9380: memt=0x80372470, memh=0xb0000000 
    rtc: CLOCK INITIALIZED 
    kevt0: 
    logbuf: using 655360 bytes logging area
    md0: internal 21504 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
    umass0 at uhub1 port 1 configuration 1 interface 0
    umass0: ADATA ADATA USB Flash Drive, rev 2.10/11.00, addr 3
    umass0: using SCSI over Bulk-Only
    scsibus0 at umass0: 2 targets, 1 luns per target
    sd0 at scsibus0 target 0 lun 0:  SCSI6 0/direct removable
    
    sd0 WriteProtect Disable
    sd0: 29600 MB, 29600 cyl, 64 head, 32 sec, 512 bytes/sect x 60620800 sectors
    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.
    Building databases...
    wlan_vap_create : enter. devhandle=0x81952be0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x81952be0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    wlan_vap_create : enter. devhandle=0x81952be0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x81952be0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    wlan_vap_create : enter. devhandle=0xc00f4030, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0xc00f4030, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    wlan_vap_create : enter. devhandle=0xc00f4030, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0xc00f4030, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    Starting wificonfig
    encrypt key mode AES
    encrypt key mode AES
    Starting evtmgr.
    Starting dlnamgr.
    Starting clid.
    Starting inetd.
    Starting procmon.
    Starting wzcm.
    Tue Jan  1 00:00:08 JST 2013
    
    NetBSD/messimips (Amnesiac) (console)
    
    login: 
    

WR8750Nメモ USB Controlloer Register

AR9344にぶら下がっているuPD720114が、NECのBootloader上で tp usb を実行しない場合Full-Speedで、実行した場合High-Speedで認識されるため、その比較用メモ。

IPL:HARD-RESET
memory test ... ok
flinstall OK

boot version: 1.0.0

PKG "Orthos-HP"
CPU "Atheros/AR9344"
Revision 212.1 CLOCK 560.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem

welcome to boot console
Password:
boot> debug memory read 0xbb000000 1d8
bb000000:00000000 00000000 00000000 00000000 ................
bb000010:00000000 00000000 00000000 00000000 ................
bb000020:00000000 00000000 00000000 00000000 ................
bb000030:00000000 00000000 00000000 00000000 ................
bb000040:00000000 00000000 00000000 00000000 ................
bb000050:00000000 00000000 00000000 00000000 ................
bb000060:00000000 00000000 00000000 00000000 ................
bb000070:00000000 00000000 00000000 00000000 ................
bb000080:00000000 00000000 00000000 00000000 ................
bb000090:00000000 00000000 00000000 00000000 ................
bb0000a0:00000000 00000000 00000000 00000000 ................
bb0000b0:00000000 00000000 00000000 00000000 ................
bb0000c0:00000000 00000000 00000000 00000000 ................
bb0000d0:00000000 00000000 00000000 00000000 ................
bb0000e0:00000000 00000000 00000000 00000000 ................
bb0000f0:00000000 00000000 00000000 00000000 ................
bb000100:00000000 00000000 00000000 00000000 ................
bb000110:00000000 00000000 00000000 00000000 ................
bb000120:00000000 00000000 00000000 00000000 ................
bb000130:00000000 00000000 00000000 00000000 ................
bb000140:00000000 00000000 00000000 00000000 ................
bb000150:00000000 00000000 00000000 00000000 ................
bb000160:00000000 00000000 00000000 00000000 ................
bb000170:00000000 00000000 00000000 00000000 ................
bb000180:00000000 00000000 00000000 00000000 ................
bb000190:00000000 00000000 00000000 00000000 ................
bb0001a0:00000000 00000000 00000000 00000000 ................
bb0001b0:00000000 00000000 00000000 00000000 ................
bb0001c0:00000000 00000000 00000000 00000000 ................
bb0001d0:00000000 00000000                   ........
boot> tp usb
USB Test .... 
 USB Specification 2.00
 Vendor ID   : 0x0409
 Product ID  : 0x005a
 Release No  : 1.00
 MANUFACTURER: 
 PRODUCT     : 
 USB SPEED   : HIGH
PASS
boot> debug memory read 0xbb000000 1d8
bb000000:e241fa05 00000013 10020001 0000000d .A..............
bb000010:80060908 00000608 00000000 00000000 ................
bb000020:00000000 00000000 00000000 00000000 ................
bb000030:00000000 00000000 00000000 00000000 ................
bb000040:00000000 00000000 00000000 00000000 ................
bb000050:00000000 00000000 00000000 00000000 ................
bb000060:00000000 00000000 00000000 00000000 ................
bb000070:00000000 00000000 00000000 00000000 ................
bb000080:00000000 00000000 00000000 00000000 ................
bb000090:00000000 00000000 00000000 00000000 ................
bb0000a0:00000000 00000000 00000000 00000000 ................
bb0000b0:00000000 00000000 00000000 00000000 ................
bb0000c0:00000000 00000000 00000000 00000000 ................
bb0000d0:00000000 00000000 00000000 00000000 ................
bb0000e0:00000000 00000000 00000000 00000000 ................
bb0000f0:00000000 00000000 00000000 00000000 ................
bb000100:01000040 00010011 00000006 00000000 ...@............
bb000110:00000000 00000000 00000000 00000000 ................
bb000120:00000001 00000186 00000000 00000000 ................
bb000130:00000000 00003000 00000000 00000000 ......0.........
bb000140:00080000 00000080 00000000 00000000 ................
bb000150:00000000 00000000 00000000 00000000 ................
bb000160:00001010 00000000 00000000 00000000 ................
bb000170:00000000 00000000 00000000 00000000 ................
bb000180:00000001 1c001004 00000000 00000000 ................
bb000190:00000000 00000000 00000000 00000000 ................
bb0001a0:00000000 00200e20 00000000 00000000 ..... . ........
bb0001b0:00000000 00000000 00000000 00000000 ................
bb0001c0:00800080 00000000 00000000 00000000 ................
bb0001d0:00000000 00000000

tp usb 実行せずOpenWrtをブートした場合

root@OpenWrt:/# devmem 0x1b000184
0x10001805

bootlog(一部)

[    6.122725] usbcore: registered new interface driver usbfs
[    6.188433] usbcore: registered new interface driver hub
[    6.252082] usbcore: registered new device driver usb
[    6.318579] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.398490] ehci-platform: EHCI generic platform driver
[    6.461027] random: fast init done
[    6.501952] ehci-platform 1b000000.usb: EHCI Host Controller
[    6.569744] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    6.663483] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    6.758179] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    6.832993] hub 1-0:1.0: USB hub found
[    6.878373] hub 1-0:1.0: 1 port detected
[    6.926793] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.023731] init: - preinit -
[    7.281836] random: jshn: uninitialized urandom read (4 bytes read)
[    7.356863] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    7.532611] random: jshn: uninitialized urandom read (4 bytes read)
[    7.720513] usb 1-1: not running at top speed; connect to a high speed hub
[    7.890395] random: procd: uninitialized urandom read (4 bytes read)
[    7.966902] hub 1-1:1.0: USB hub found
[    8.041900] hub 1-1:1.0: 4 ports detected

tp usb 実行してOpenWrtをブートした場合

root@OpenWrt:/# devmem 0x1b000184 32
0x18001205

bootlog(一部)

[    6.122611] usbcore: registered new interface driver usbfs
[    6.188329] usbcore: registered new interface driver hub
[    6.251971] usbcore: registered new device driver usb
[    6.318552] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.398486] ehci-platform: EHCI generic platform driver
[    6.461022] random: fast init done
[    6.501949] ehci-platform 1b000000.usb: EHCI Host Controller
[    6.569739] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    6.663478] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    6.758180] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    6.832994] hub 1-0:1.0: USB hub found
[    6.878355] hub 1-0:1.0: 1 port detected
[    6.926796] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.023728] init: - preinit -
[    7.279908] random: jshn: uninitialized urandom read (4 bytes read)
[    7.354986] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    7.532959] random: jshn: uninitialized urandom read (4 bytes read)
[    7.719652] random: procd: uninitialized urandom read (4 bytes read)
[    7.796097] hub 1-1:1.0: USB hub found
[    7.888197] hub 1-1:1.0: 4 ports detected

WR8750Nメモ U-Boot & OpenWrt

Aterm WR8750NのNECオリジナル (?) なBootloaderを、musashino-build/u-boot_modからビルドしたU-Bootに置き換えてブートしたログのメモ。
上記リポジトリからのビルドはWSLで問題無く行えた。
全体的な流れとしては以下の通り。

  • NECのBootloader上でOpenWrtのNEC用initramfsイメージ (initramfs-necimg) をPCから転送し、boot コマンドを実行してOpenWrtをブート
  • initramfs上でU-Bootパーティション内を mtd erase u-boot で消去し、scp等で転送しておいたU-Bootを mtd write ファイル名 u-boot で書き込み
  • wget等でダウンロードしたOpenWrt sysupgradeイメージを sysupgrade ファイル名 でFlashへ書き込み
  • reboot で再起動し、U-BootによりOpenWrtが起動される

IPL:HARD-RESET
memory test ... ok
flinstall OK

boot version: 1.0.0

PKG "Orthos-HP"
CPU "Atheros/AR9344"
Revision 212.1 CLOCK 560.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
post start
DRAM Test ..... PASS
Timer test .... PASS
FLASH CHKSUM .. PASS
LAN Test ..... 
LoopBack count 0 .. 
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
active ch:1
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
PASS
Package TYPE = 0x01
post success

welcome to boot console
Password:
boot> tftpd
tftpd start 192.168.0.1
boot> start tftp load openwrt-ath79-tiny-nec_wr8750n-i
end tftp load length = 3224648
start memory load ... 
memory load complete
  begin  : 0x80060000
  length : 3224624
  startup: 0x80060000
boot
begin  : 0x80060000
length : 3224624
startup: 0x80060000
option: 0x0


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos 
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 4.14.95 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9120-bad68ff519)) #0 Fri Jan 25 10:38:20 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WR8750N
[    0.000000] SoC: Atheros AR9344 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from 0x8045972c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 118520K/131072K available (3450K kernel code, 138K rwdata, 472K rodata, 6684K init, 195K bss, 12552K 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: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.092710] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.237627] pid_max: default: 32768 minimum: 301
[    0.293070] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.372220] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.461164] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.578797] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.651743] pinctrl core: initialized pinctrl subsystem
[    0.715209] NET: Registered protocol family 16
[    0.769108] Can't analyze schedule() prologue at 803ba57c
[    0.836108] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.913158]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.975619]   IO 0x0000000000000000..0x0000000000000000
[    1.055718] PCI host bridge to bus 0000:00
[    1.104729] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.186947] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.253610] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.334834] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.430150] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    1.517607] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    1.604603] clocksource: Switched to clocksource MIPS
[    1.666172] NET: Registered protocol family 2
[    1.719143] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.802472] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.878458] TCP: Hash tables configured (established 1024 bind 1024)
[    1.954632] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.024379] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.099600] NET: Registered protocol family 1
[    2.287387] Crashlog allocated RAM at address 0x3f00000
[    2.351273] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.433343] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.503096] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.694948] io scheduler noop registered
[    2.741872] io scheduler deadline registered (default)
[    2.803622] ar7200-usb-phy usb-phy: phy reset is missing
[    2.869384] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    2.953240] gpio-export gpio-export: 1 gpio(s) exported
[    3.016545] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    3.093326] console [ttyS0] disabled
[    3.136081] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 2500000) is a 16550A
[    3.239096] console [ttyS0] enabled
[    3.239096] console [ttyS0] enabled
[    3.322380] bootconsole [early0] disabled
[    3.322380] bootconsole [early0] disabled
[    3.424777] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.483123] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.559091] Creating 4 MTD partitions on "spi0.0":
[    3.616401] 0x000000000000-0x000000020000 : "u-boot"
[    3.676618] 0x000000020000-0x000000030000 : "config"
[    3.736846] 0x000000030000-0x000000040000 : "art"
[    3.793959] 0x000000040000-0x000000800000 : "firmware"
[    3.865576] libphy: Fixed MDIO Bus: probed
[    4.255004] libphy: ag71xx_mdio: probed
[    4.325525] switch0: Atheros AR8327 rev. 2 switch registered on mdio-bus.0
[    5.395782] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    5.524437] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    5.599250] NET: Registered protocol family 10
[    5.656142] Segment Routing with IPv6
[    5.700080] NET: Registered protocol family 17
[    5.753601] 8021q: 802.1Q VLAN Support v1.8
[    5.838232] Freeing unused kernel memory: 6684K
[    5.892449] This architecture does not have kernel memory protection.
[    5.983133] init: Console is alive
[    6.024138] init: - watchdog -
[    6.083426] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.176339] usbcore: registered new interface driver usbfs
[    6.242093] usbcore: registered new interface driver hub
[    6.305741] usbcore: registered new device driver usb
[    6.372177] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.452109] ehci-platform: EHCI generic platform driver
[    6.514893] ehci-platform 1b000000.usb: EHCI Host Controller
[    6.582642] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    6.676386] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    6.754626] random: fast init done
[    6.795359] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    6.870269] hub 1-0:1.0: USB hub found
[    6.915582] hub 1-0:1.0: 1 port detected
[    6.964055] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.060951] init: - preinit -
[    7.317977] random: jshn: uninitialized urandom read (4 bytes read)
[    7.393053] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    7.567222] random: jshn: uninitialized urandom read (4 bytes read)
[    7.757421] usb 1-1: not running at top speed; connect to a high speed hub
[    7.927281] random: procd: uninitialized urandom read (4 bytes read)
[    8.003845] hub 1-1:1.0: USB hub found
[    8.079136] hub 1-1:1.0: 4 ports detected
[    8.356563] urandom_read: 3 callbacks suppressed
[    8.356572] random: jshn: uninitialized urandom read (4 bytes read)
[    8.580817] random: jshn: uninitialized urandom read (4 bytes read)
[    9.420930] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.490871] 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
[   10.615880] eth0: link up (1000Mbps/Full duplex)
[   10.673431] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.758074] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   12.847691] procd: - early -
[   12.882294] procd: - watchdog -
[   13.466291] procd: - watchdog -
[   13.504146] procd: - ubus -
[   13.545399] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.622629] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.700245] procd: - init -
Please press Enter to activate this console.
[   13.814685] eth0: link down
[   13.957775] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.038310] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.113503] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   14.203132] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   14.283182] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.355187] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   14.482215] xt_time: kernel timezone is -0000
[   14.591245] PPP generic driver version 2.4.2
[   14.644938] NET: Registered protocol family 24
[   14.756524] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=11
[   14.839676] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   14.960456] ath9k 0000:00:00.0: Falling back to user helper
[   15.451439] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=14
[   15.635030] kmodloader: done loading kernel modules from /etc/modules.d/*
[   27.252549] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.323758] eth0: link up (1000Mbps/Full duplex)
[   27.514688] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   27.616125] br-lan: port 1(eth0.1) entered blocking state
[   27.680694] br-lan: port 1(eth0.1) entered disabled state
[   27.745685] device eth0.1 entered promiscuous mode
[   27.802981] device eth0 entered promiscuous mode
[   28.186022] br-lan: port 1(eth0.1) entered blocking state
[   28.250603] br-lan: port 1(eth0.1) entered forwarding state
[   28.317426] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   28.389650] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+9135-d6efa74437
 -----------------------------------------------------
=== 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:/# vi /etc/config/network 
root@OpenWrt:/# vi /etc/config/firewall 
root@OpenWrt:/# (実際には network と firewall の restart をしているが省略)
root@OpenWrt:/tmp# cd /tmp
root@OpenWrt:/tmp# wget http://taiha.net/jenkins/job/OpenWrt-master-NEC-WR8750N/
lastSuccessfulBuild/artifact/bin/targets/ath79/tiny/openwrt-ath79-tiny-nec_wr875
0n-squashfs-sysupgrade.bin
Downloading 'http://taiha.net/jenkins/job/OpenWrt-master-NEC-WR8750N/lastSuccessfulBuild/artifact/bin/targets/ath79/tiny/openwrt-ath79-tiny-nec_wr8750n-squashfs-sysupgrade.bin'
Connecting to 240b:12:500:65f0:c822:64a3:7e11:4961:80
Writing to 'openwrt-ath79-tiny-nec_wr8750n-squashfs-sysupgrade.bin'
openwrt-ath79-tiny-n 100% |*******************************|  3328k  0:00:00 ETA
Download completed (3408582 bytes)
root@OpenWrt:/tmp# ls -alh
drwxrwxrwt   15 root     root         460 Jan 26 16:46 .
drwxr-xr-x   16 root     root           0 Jan  1  1970 ..
-rwx------    1 root     root           5 Jan 25 10:44 .switch2jffs
drwx------    2 root     root         120 Jan 25 10:44 .uci
-rw-r--r--    1 root     root           4 Jan 25 10:44 TZ
-rw-r--r--    1 root     root         857 Jan  1  1970 board.json
-rw-r--r--    1 root     root           0 Jan 25 10:44 dhcp.leases
drwxr-xr-x    2 root     root          40 Jan 25 10:44 dnsmasq.d
drwxr-xr-x    2 root     root          40 Jan 25 10:44 dropbear
drwxr-xr-x    2 root     root          60 Jan 26 16:45 etc
drwxr-xr-x    2 root     root          80 Jan 26 16:45 hosts
drwxr-xr-x    3 root     root          60 Jan 25 10:44 lib
drwxr-xr-x    2 root     root         280 Jan 25 10:44 lock
drwxr-xr-x    2 root     root          80 Jan 25 10:44 log
-rw-r--r--    1 root     root        3.3M Jan 26 16:46 openwrt-ath79-tiny-nec_wr8750n-squashfs-sysupgrade.bin
-rw-r--r--    1 root     root          32 Jan 26 16:45 resolv.conf
-rw-r--r--    1 root     root         140 Jan 26 16:45 resolv.conf.auto
drwxr-xr-x    3 root     root         200 Jan 26 16:45 run
drwxrwxrwt    2 root     root          40 Jan  1  1970 shm
drwxr-xr-x    2 root     root          80 Jan 26 16:44 state
drwxr-xr-x    2 root     root          80 Jan  1  1970 sysinfo
drwxr-xr-x    2 root     root          40 Jan 25 10:44 tmp
-rw-r--r--    1 root     root      128.0K Jan 26 16:45 u-boot_mod__nec_wr8750n__20190127__git_nec-devs-398303cd.bin
root@OpenWrt:/tmp# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "u-boot"
mtd1: 00010000 00010000 "config"
mtd2: 00010000 00010000 "art"
mtd3: 007c0000 00010000 "firmware"
root@OpenWrt:/tmp# mtd erase u-boot&&mtd write u-boot_mod__nec_wr8750n__20190127
__git_nec-devs-398303cd.bin u-boot
Unlocking u-boot ...
Erasing u-boot ...
Unlocking u-boot ...

Writing from u-boot_mod__nec_wr8750n__20190127__git_nec-devs-398303cd.bin to u-boot ...     
root@OpenWrt:/tmp# mtd erase firmware&&sysupgrade openwrt-ath79-tiny-nec_wr8750n
-squashfs-sysupgrade.bin 
Unlocking firmware ...
Erasing firmware ...
Cannot save config while running from ramdisk.
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process kilSending TERM to remaining processes ... ntpd netifd dnsmasq ubusd logd odhcpd 
Sending KILL to remaining processes ... 
Performing system upgrade...
Unlocking firmware ...

Writing from  to firmware ...     
Upgrade completed
Rebooting system...
umount: can[  329.834295] reboot: Restarting system


***************************************
*     U-Boot 1.1.4-398303cd-clean     *
*          Build: 2019-01-26          *
***************************************

  BOARD: NEC Aterm WR8750N
    SOC: AR9344 rev. 1
    CPU: MIPS 74Kc
    RAM: 128 MB DDR2 32-bit CL3-4-4-10
  FLASH: 8 MB Macronix MX25L64
   PCIe: 168C:0030
    MAC: 1C:B1:7F:00:A5:00
 CLOCKS: CPU/RAM/AHB/SPI/REF
         550/400/200/ 25/ 40 MHz

Hit any key to stop booting:  0

Booting image from 0x9F040000...

   Image name:    MIPS OpenWrt Linux-4.14.95
   Build date:    2019-01-25 10:38:20 UTC
   Architecture:  MIPS
   OS/image type: Linux Kernel
   Compression:   LZMA
   Data size:     1.3 MB (1377507 bytes)
   Load address:  0x80060000
   Entry point:   0x80060000

   Header CRC...  OK!
   Data CRC...    skipped

Uncompressing Kernel... OK!
Starting kernel...

[    0.000000] Linux version 4.14.95 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9120-bad68ff519)) #0 Fri Jan 25 10:38:20 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WR8750N
[    0.000000] SoC: Atheros AR9344 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from 0x8045972c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124024K/131072K available (3450K kernel code, 138K rwdata, 472K rodata, 1180K init, 195K bss, 7048K 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: 550.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6950037990 ns
[    0.000010] sched_clock: 32 bits at 275MHz, resolution 3ns, wraps every 7809031678ns
[    0.092710] Calibrating delay loop... 274.02 BogoMIPS (lpj=1370112)
[    0.237624] pid_max: default: 32768 minimum: 301
[    0.293075] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.372219] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.461334] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.579005] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.651955] pinctrl core: initialized pinctrl subsystem
[    0.715480] NET: Registered protocol family 16
[    0.769365] Can't analyze schedule() prologue at 803ba57c
[    0.836528] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.913575]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.976032]   IO 0x0000000000000000..0x0000000000000000
[    1.057392] PCI host bridge to bus 0000:00
[    1.106394] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.188608] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.255271] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.336495] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.431798] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    1.519271] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    1.606296] clocksource: Switched to clocksource MIPS
[    1.667912] NET: Registered protocol family 2
[    1.720850] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.804244] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.880225] TCP: Hash tables configured (established 1024 bind 1024)
[    1.956394] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.026165] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.101392] NET: Registered protocol family 1
[    2.158566] Crashlog allocated RAM at address 0x3f00000
[    2.222441] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.304735] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.374555] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.500796] io scheduler noop registered
[    2.547715] io scheduler deadline registered (default)
[    2.609478] ar7200-usb-phy usb-phy: phy reset is missing
[    2.675292] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    2.759184] gpio-export gpio-export: 1 gpio(s) exported
[    2.822531] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.899409] console [ttyS0] disabled
[    2.942227] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 2500000) is a 16550A
[    3.045239] console [ttyS0] enabled
[    3.045239] console [ttyS0] enabled
[    3.128517] bootconsole [early0] disabled
[    3.128517] bootconsole [early0] disabled
[    3.231279] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.289704] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.365749] Creating 4 MTD partitions on "spi0.0":
[    3.423059] 0x000000000000-0x000000020000 : "u-boot"
[    3.483355] 0x000000020000-0x000000030000 : "config"
[    3.543649] 0x000000030000-0x000000040000 : "art"
[    3.600733] 0x000000040000-0x000000800000 : "firmware"
[    3.666465] 2 uimage-fw partitions found on MTD device firmware
[    3.737249] Creating 2 MTD partitions on "firmware":
[    3.796624] 0x000000000000-0x000000160000 : "kernel"
[    3.856899] 0x000000160000-0x0000007c0000 : "rootfs"
[    3.917058] mtd: device 5 (rootfs) set to be root filesystem
[    3.984821] 1 squashfs-split partitions found on MTD device rootfs
[    4.058716] 0x000000340000-0x0000007c0000 : "rootfs_data"
[    4.124812] libphy: Fixed MDIO Bus: probed
[    4.506712] libphy: ag71xx_mdio: probed
[    4.555438] switch0: Atheros AR8327 rev. 2 switch registered on mdio-bus.0
[    5.627485] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    5.756199] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    5.831182] NET: Registered protocol family 10
[    5.888262] Segment Routing with IPv6
[    5.932207] NET: Registered protocol family 17
[    5.985755] 8021q: 802.1Q VLAN Support v1.8
[    6.043808] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    6.134309] Freeing unused kernel memory: 1180K
[    6.188536] This architecture does not have kernel memory protection.
[    6.616309] random: fast init done
[    7.558574] init: Console is alive
[    7.599449] init: - watchdog -
[    9.015969] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    9.346480] usbcore: registered new interface driver usbfs
[    9.412201] usbcore: registered new interface driver hub
[    9.475868] usbcore: registered new device driver usb
[    9.542808] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.628845] ehci-platform: EHCI generic platform driver
[    9.691687] ehci-platform 1b000000.usb: EHCI Host Controller
[    9.759417] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    9.853165] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    9.946342] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[   10.021296] hub 1-0:1.0: USB hub found
[   10.066595] hub 1-0:1.0: 1 port detected
[   10.115141] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   10.212057] init: - preinit -
[   10.778066] random: jshn: uninitialized urandom read (4 bytes read)
[   11.190636] random: jshn: uninitialized urandom read (4 bytes read)
[   11.522880] random: jshn: uninitialized urandom read (4 bytes read)
[   11.810029] urandom_read: 2 callbacks suppressed
[   11.810039] random: jshn: uninitialized urandom read (4 bytes read)
[   12.034683] random: jshn: uninitialized urandom read (4 bytes read)
[   13.691134] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   13.761000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
Press the [f] ke[   13.909259] random: procd: uninitialized urandom read (4 bytes read)
y and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   14.857581] eth0: link up (1000Mbps/Full duplex)
[   14.915225] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.000181] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   17.647193] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   17.756597] urandom-seed: Seed file not found (/etc/urandom.seed)
[   17.875873] procd: - early -
[   17.911400] procd: - watchdog -
[   18.199682] eth0: link down
[   18.778769] procd: - watchdog -
[   18.816676] procd: - ubus -
[   19.144234] random: ubusd: uninitialized urandom read (4 bytes read)
[   19.457893] random: ubusd: uninitialized urandom read (4 bytes read)
[   19.535490] procd: - init -
[   20.046501] kmodloader: loading kernel modules from /etc/modules.d/*
Please press Ent[   20.130027] ip6_tables: (C) 2000-2006 Netfilter Core Team
er to activate this console.
[   20.224348] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   20.326844] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   20.406992] ip_tables: (C) 2000-2006 Netfilter Core Team
[   20.479545] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   20.613705] xt_time: kernel timezone is -0000
[   20.728057] PPP generic driver version 2.4.2
[   20.781904] NET: Registered protocol family 24
[   20.897124] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=11
[   20.976739] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   21.047575] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   21.168303] ath9k 0000:00:00.0: Falling back to user helper
[   22.540103] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=14
[   22.726761] kmodloader: done loading kernel modules from /etc/modules.d/*
[   35.363450] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   35.676398] jffs2_build_filesystem(): unlocking the mtd device... 
[   35.676408] done.
[   35.773289] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   42.288637] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   42.449264] eth0: link up (1000Mbps/Full duplex)
[   42.704270] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   43.051540] br-lan: port 1(eth0.1) entered blocking state
[   43.116163] br-lan: port 1(eth0.1) entered disabled state
[   43.181054] device eth0.1 entered promiscuous mode
[   43.238342] device eth0 entered promiscuous mode
[   43.967602] br-lan: port 1(eth0.1) entered blocking state
[   44.032161] br-lan: port 1(eth0.1) entered forwarding state
[   44.099022] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   44.306378] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   70.976475] done.
[   70.999489] jffs2: notice: (1031) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   71.716188] overlayfs: upper fs does not support tmpfile.
[  136.435551] random: crng init done


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

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

WR9500N

ハードオフ東久留米店でジャンク108円の個体を見つけ、AR9344ということを5chより把握していた為衝動的に購入。WR8750N同様、OpenWrtサポートを試行するのでメモ。
なお、WR8750NのOpenWrt initramfsファームを使用してブートすることもできた。

Switch

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

MAC

  • LAN: 1C:B1:7F:xx:xx:60 (config, 0x6 (hex))
  • WAN: 1C:B1:7F:xx:xx:61 (config, 0xc (hex))
  • 2.4G: 1C:B1:7F:xx:xx:62 (config, 0x0 (hex))
  • 5G: 1C:B1:7F:xx:xx:63 (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.28.43
    TP Version = 1.0.0
    

  • pkg_info
    boot> pkg_info
    phy0.1: "Atheros/AR8327(SW)"
    phy0.0: "Atheros/AR8327(phy)"
    active ch:0
      PKG NAME : ISNER
      CPU   : Atheros/AR9344
      RAM   : 128Mbyte
      Flash : 16Mbyte
        Device         : MX25L12845E(Macronix)
        Top Address    : 0xbf000000
        Config Address : 0xbf020000
        System Address : 0xbf040000
      Ether PHY : Atheros/AR8327(SW)
      DIPSW : 0x3
    

  • debug fs ls
    boot> debug fs ls
    Firmware            3614604 bytes
    config.har             1180 bytes
    total 16515072, avail 12767040 bytes
    

  • 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 l2sw register dump ?
    boot> debug l2sw register dump ?
    PHY:
    00 1000 1000 1000 1000 1000 
    01 796d 7949 7949 7949 796d 
    02 004d 004d 004d 004d 004d 
    03 d033 d033 d033 d033 d033 
    04 1de1 1de1 1de1 1de1 1de1 
    05 cde1 0000 0000 0000 cde1 
    06 000f 0004 0004 0004 000f 
    07 2801 2801 2801 2801 2801 
    08 0000 0000 0000 0000 0000 
    09 0200 0200 0200 0200 0200 
    0a 7800 0000 0000 0000 3800 
    0b 0000 0000 0000 0000 0000 
    0c 0000 0000 0000 0000 0000 
    0d 0000 0000 0000 0000 0000 
    0e 0000 0000 0000 0000 0000 
    0f 2000 2000 2000 2000 2000 
    10 0862 0862 0862 0862 0862 
    11 bc1c 0010 0010 0010 bc5c 
    12 0000 0000 0000 0000 0000 
    13 7400 0000 0000 0000 7440 
    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 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 ffd0 02b2 02b2 01b1 ffd0 
    02 3f0f 3220 3220 3220 3f0f 
    03 3eff 3e11 3e22 3e22 3eff 
    04 bbbb bbbb bbbb bbbb bbbb 
    05 3c47 3c47 3c47 3c47 3c47 
    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 1000 3000 3000 
    0b bc40 bc40 bc40 bc40 bc40 
    0c 0800 6001 6001 6001 0800 
    0d 0100 2820 a820 2820 0100 
    0e 0023 0003 0003 0003 0020 
    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 ffff 
    17 0e08 0000 0000 0000 140a 
    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 7c00 0000 0000 0000 b000 
    20 0000 0000 0000 0000 7fff 
    21 2d15 2d15 2d15 2d15 2d15 
    22 1f6a 1f6a 1f6a 1f6a 1f6a 
    23 a334 a200 a200 a200 9880 
    24 0f6c 1000 1000 1000 0e63 
    25 0000 0000 0000 0000 0000 
    26 0007 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 0bfa 0000 0000 0000 fcff 
    2e 08f9 0000 0000 0000 fd02 
    2f 0000 0000 0000 0000 7fff 
    30 04f4 0000 0000 0000 f502 
    31 06f9 0000 0000 0000 0df9 
    32 24da 2200 2200 2200 1880 
    33 2312 2200 2200 2200 1880 
    34 241b 2200 2200 2200 1880 
    35 0000 0000 0000 0000 0000 
    36 e12c e12c e12c e12c e12c 
    37 6080 6000 6000 6000 6080 
    38 1221 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 68e0 68e0 68e0 68e0 68e0 
    3e 2058 e0d8 e0d8 e0d8 2058 
    3f 8000 8000 8000 8000 ffff 
    
    L2SW:
    0000 00001202 07a00000 00000000 00000000 
    0010 20261320 f0107650 00002d0e 00003f1f 
    0020 3f500800 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 00000f4e 00000200 00000200 00000200 
    0090 00000f4e 00001080 00000000 00000000 
    00a0 00000000 00000000 00000000 00000000 
    00b0 00000000 00000000 00000000 00000000 
    00c0 00000000 00000000 80901040 00000000 
    00d0 7fff7ff7 00003fff 00000100 00000000 
    00e0 c70164ce 0002a545 2dc11c9c 00000000 
    00f0 00000000 00000000 00000000 00000000 
    0100 00000000 00000000 00000000 00000000 
    0110 00000000 00000000 00000000 00000000 
    0120 00110011 00000000 00240024 00000000 
    0130 00240024 00000000 00240024 00000000 
    0140 00240024 00000000 00240024 00000000 
    0150 00240024 00000000 00240024 00000000 
    0160 00110011 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 00002040 00020001 00001040 
    0430 00010001 00001040 00010001 00001040 
    0440 00010001 00001040 00010001 00001040 
    0450 00010001 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 00000001 
    0610 00000000 00000002 50e8002b 00000000 
    0620 000000f0 003f3f3f 00000000 00000000 
    0630 00000000 11111111 22222222 33333333 
    0640 44444444 55555555 66666666 77777777 
    0650 76543210 00000000 00000000 00000000 
    0660 0014027e 00000018 00007000 0004027d 
    0670 00000018 00007000 0014027b 00000018 
    0680 00007000 00140277 00000018 00007000 
    0690 0014026f 00000018 00007000 0014025f 
    06a0 00000018 00007000 00000000 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 
    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 
    0c00 00000000 00000000 00000000 00000000 
    0c10 00000000 00000000 00000000 00000000 
    0c20 00000000 00000000 00000000 00000000 
    0c30 00000000 00000000 00000000 00000000 
    0c40 00000000 00000000 00000000 00000000 
    0c50 00000000 00000000 00000000 00000000 
    0c60 00000000 00000000 00000000 00000000 
    0c70 00010001 00010001 00010001 00000001 
    0c80 00000000 00000000 00000000 00000000 
    0c90 00000000 00000000 00000000 00000000 
    0ca0 00000000 00000000 00000000 00000000 
    0cb0 00000000 00000000 00000000 00000000 
    0cc0 00000000 00000000 00000000 00000000 
    0cd0 00000000 00000000 00000000 00000000 
    0ce0 00000000 00000000 00000000 00000000 
    0cf0 00000000 00000000 00000000 00000000 
    0e00 00072401 00000000 00000000 007f0000 
    0e10 00000000 00000000 00000000 00000000 
    0e20 00000000 00000000 00000000 00000000 
    0e30 00000000 00000000 00200a53 00000000 
    0e40 00000000 00000000 00000000 00000000 
    0e50 00000000 00000000 00000000 000c0a80 
    0e60 00000000 00000000 00000000 00000000 
    0e70 00000000 00000000 00000000 00000000 
    0e80 00000000 00000000 00000000 00000000 
    0e90 00000000 00000000 00000000 00000000 
    0ea0 00000000 00000000 00000000 00000000 
    0eb0 00000000 00000000 00000000 00000000 
    0ec0 00000000 00000000 00000000 00000000 
    0ed0 00000000 00000000 00000000 00000000 
    0ee0 00000000 00000000 00000000 00000000 
    0ef0 00000000 00000000 00000000 00000000 
    
    VTU:
    0: 001b55e0 00010005
    1: 001bff60 00020005
    
    ATU:
    0: d8e63fb3 80205c9a 00000104 00000006 m:5c:9a:d8:**:**:** p:.....o. v:1
    

  • debug memory read 0xb8040000 70
    (switch uninitialized)

    boot> debug memory read 0xb8040000 70
    b8040000:0003db1f 00039e39 00040000 00000000 .......9........
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 000f8000 00000000 ................
    b8040030:0b0a0900 00180000 00000000 2f2e0000 ............/...
    b8040040:00000000 00000908 00000000 00000000 ................
    b8040050:00000c0b 00000000 00000000 00000000 ................
    b8040060:00000000 0d0f110e 00000000 00000002 ................
    

    (switch initialized)

    boot> debug memory read 0xb8040000 70
    b8040000:0003db1f 0003be39 00042000 00000000 .......9.. .....
    b8040010:00000000 00000000 00000000 00000000 ................
    b8040020:00000000 00000000 000f8000 00000000 ................
    b8040030:0b0a0900 00180000 00000000 2f2e0000 ............/...
    b8040040:00000000 00000908 00000000 00000000 ................
    b8040050:00000c0b 00000000 00000000 00000000 ................
    b8040060:00000000 0d0f110e 00000000 00000002 ................
    

  • debug memory read 0xb805002c 1
    boot> debug memory read 0xb805002c 1
    b805002c:06000000                            ....
    

  • debug memory read 0xb8070000 1
    boot> debug memory read 0xb8070000 1
    b8070000:00000001                            ....
    

  • debug memory read 0xb8060008 8
    boot> debug memory read 0xb8060008 8
    b8060008:00000003 09896410                   ......d.
    

Kernel (NetBSD)

  • Bootlog
    IPL:HARD-RESET
    memory test ... ok
    flinstall OK
    
    boot version: 1.0.0
    
    PKG "ISNER"
    CPU "Atheros/AR9344"
    Revision 212.1 CLOCK 560.0 MHz
    HEAP MEMORY 262144 bytes
    Boot:InitFilesystem
    phy0.1: "Atheros/AR8327(SW)"
    phy0.0: "Atheros/AR8327(phy)"
    active ch:0
    post start
    DRAM Test ..... PASS
    Timer test .... PASS
    FLASH CHKSUM .. PASS
    LAN Test ..... 
    LoopBack count 0 .. 
    phy0.1: "Atheros/AR8327(SW)"
    phy0.0: "Atheros/AR8327(phy)"
    active ch:0
    active ch:1
    phy0.1: "Atheros/AR8327(SW)"
    phy0.0: "Atheros/AR8327(phy)"
    active ch:0
    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: 0x00000000
    load memory 0x1983000, 0x667d000
    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 (INFINITY.tmp) #0: 2015-09-01 11:59:05 JST
        *****_**@A00-30-04938:/home/*****_**/INFINITY_2_28_34_BRANCH/build/infinity/kernel-obj/INFINITY.tmp
    
    total memory = 128 MB
    avail memory = 98272 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 16777216 bytes
    flash: id 0xc2 type 0x17 addr 0xbf000000 size 16777216 bytes
    pfmg: carrier mode 0 pkgid 0x701 configid 0xff
    arrtc0 at mainbus0
    argiu0 at mainbus0
    btnu0 at argiu0 port 15
    btnu1 at argiu0 port 16
    btnu2 at argiu0 port 3
    athq0 at mainbus0
    athq0: WLAN MAC ADDRESS (1c:b1:7f:a6:22:62)
    Restoring Cal data from Flash
    dfs_attach: use DFS enhancements
    DFS min filter rssiThresh = 18
    DFS max pulse dur = 151 ticks
    ath_get_caps[5308] rx chainmask mismatch actual 3 sc_chainmak 0
    ath_get_caps[5283] tx chainmask mismatch actual 3 sc_chainmak 0
    athq0: LSDK-9.2.0_U10.1020 mac 768.0 phy 0.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=0x803764e0, 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
    ageth0 at mainbus0
    ath27swlphy0 at ageth0 phy 1: Atheros AR8327 10/100/1000 L2SW, rev. 3
    ath27swlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto, 1000baseT-FDX FLAG0, 1000baseT-FDX FLAG1
    ageth1 at mainbus0
    ath27swsphy0 at ageth1 phy 0: Atheros AR8327 10/100/1000 L2SW, rev. 3
    ath27swsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
    arpcieu0 at mainbus0:
    pci0 at arpcieu0 bus 0
    pci0: memory space enabled
    athq1 at pci0 dev 0 function 0
    athq1: WLAN MAC ADDRESS (1c:b1:7f:a6:22:63)
    __ath_attach: Set global_scn[1]
    ACBKMinfree = 48
    ACBEMinfree = 32
    ACVIMinfree = 16
    ACVOMinfree = 0
    CABMinfree = 48
    UAPSDMinfree = 0
    Restoring Cal data from Flash
    dfs_attach: use DFS enhancements
    DFS min filter rssiThresh = 18
    DFS max pulse dur = 151 ticks
    ath_get_caps[5308] rx chainmask mismatch actual 7 sc_chainmak 0
    ath_get_caps[5283] tx chainmask mismatch actual 7 sc_chainmak 0
    athq1: LSDK-9.2.0_U10.1020 mac 448.3 phy 0.0 radio 0.0
     chan  Freq     HT                       DFS
     36    5180na   HT20 HT40PLUS            N
     40    5200na   HT20          HT40MINUS  N
     44    5220na   HT20 HT40PLUS            N
     48    5240na   HT20          HT40MINUS  N
     52    5260na   HT20 HT40PLUS            Y
     56    5280na   HT20          HT40MINUS  Y
     60    5300na   HT20 HT40PLUS            Y
     64    5320na   HT20          HT40MINUS  Y
     100   5500na   HT20 HT40PLUS            Y
     104   5520na   HT20          HT40MINUS  Y
     108   5540na   HT20 HT40PLUS            Y
     112   5560na   HT20          HT40MINUS  Y
     116   5580na   HT20 HT40PLUS            Y
     120   5600na   HT20          HT40MINUS  Y
     124   5620na   HT20 HT40PLUS            Y
     128   5640na   HT20          HT40MINUS  Y
     132   5660na   HT20 HT40PLUS            Y
     136   5680na   HT20          HT40MINUS  Y
     140   5700na   HT20                     Y
    athq1: Atheros 9380: memt=0x803764e0, memh=0xb0000000 
    rtc: CLOCK INITIALIZED 
    kevt0: 
    logbuf: using 655360 bytes logging area
    md0: internal 21504 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
    Thu Jan  1 00:00:02 JST 2015
    Setting tty flags.
    Building databases...
    mode switch: rt
    wlan_vap_create : enter. devhandle=0x819575e0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x819575e0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    wlan_vap_create : enter. devhandle=0x819575e0, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0x819575e0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    wlan_vap_create : enter. devhandle=0xc00f4030, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0xc00f4030, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    wlan_vap_create : enter. devhandle=0xc00f4030, opmode=IEEE80211_M_HOSTAP, flags=0x1
    wlan_vap_create : exit. devhandle=0xc00f4030, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    Starting wificonfig
    encrypt key mode AES
    encrypt key mode AES
    Starting evtmgr.
    Starting dlnamgr.
    Starting clid.
    Starting inetd.
    /usr/sbin/mini_httpd: unknown config option 'auth_mac_port' ignored.
    Starting procmon.
    Starting wzcm.
    Thu Jan  1 00:00:08 JST 2015
    
    NetBSD/messimips (Amnesiac) (console)
    
    login: 
    

WR8750N switch&GPIO

どうもSwitch (AR8327)の有効化にGPIO13が絡んでいる様なので、GPIO_OE (Output Enable)をBootloader上でGPIO13のビットを無効化した際の比較。

gpio-export無し

IPL:HARD-RESET
memory test ... ok
flinstall OK

boot version: 1.0.0

PKG "Orthos-HP"
CPU "Atheros/AR9344"
Revision 212.1 CLOCK 560.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
post start
TP module load fail
post load fail [-2]

rebooting 3
key abort

welcome to boot console
Password:
boot> tftpd
tftpd start 192.168.0.1
boot> start tftp load openwrt-ath79-tiny-nec_wr8750n-i
end tftp load length = 3225264
start memory load ... 
memory load complete
  begin  : 0x80060000
  length : 3225240
  startup: 0x80060000

boot> debug memory write ?
write [byte|short|word] ADDRESS DATA
default access mode is word(32bit)
# ex) write byte 0x2000 0x10
boot> debug memory read 0xb8040000 1
b8040000:0003db1f                            ....
boot> debug memory write 0xb8040000 0x3fb1f
0xb8040000 <- 0x3fb1f
boot> debug memory read 0xb8040000 1       
b8040000:0003fb1f                            ....
boot> boot
begin  : 0x80060000
length : 3225572
startup: 0x80060000
option: 0x0


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos 
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 4.14.94 (jenkins@tofu-z77hvub18_openwrt) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9105-9d407488e5)) #0 Wed Jan 23 08:37:31 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WR8750N
[    0.000000] SoC: Atheros AR9344 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from 0x8045972c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 118520K/131072K available (3450K kernel code, 138K rwdata, 472K rodata, 6684K init, 195K bss, 12552K 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: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.092708] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.237624] pid_max: default: 32768 minimum: 301
[    0.293065] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.372219] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.461148] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.578794] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.651744] pinctrl core: initialized pinctrl subsystem
[    0.715206] NET: Registered protocol family 16
[    0.769106] Can't analyze schedule() prologue at 803ba51c
[    0.836083] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.913158]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.975617]   IO 0x0000000000000000..0x0000000000000000
[    1.055138] PCI host bridge to bus 0000:00
[    1.104102] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.186320] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.252983] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.334207] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.429520] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    1.516979] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    1.603966] clocksource: Switched to clocksource MIPS
[    1.665570] NET: Registered protocol family 2
[    1.718515] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.801848] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.877834] TCP: Hash tables configured (established 1024 bind 1024)
[    1.954005] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.023755] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.098972] NET: Registered protocol family 1
[    2.286701] Crashlog allocated RAM at address 0x3f00000
[    2.350522] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.432600] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.502364] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.693839] io scheduler noop registered
[    2.740737] io scheduler deadline registered (default)
[    2.802483] ar7200-usb-phy usb-phy: phy reset is missing
[    2.868303] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    2.952737] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    3.029571] console [ttyS0] disabled
[    3.072328] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 2500000) is a 16550A
[    3.175343] console [ttyS0] enabled
[    3.175343] console [ttyS0] enabled
[    3.258626] bootconsole [early0] disabled
[    3.258626] bootconsole [early0] disabled
[    3.360576] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.418981] 5 fixed-partitions partitions found on MTD device spi0.0
[    3.495024] Creating 5 MTD partitions on "spi0.0":
[    3.552336] 0x000000000000-0x000000020000 : "u-boot"
[    3.612562] 0x000000020000-0x000000022000 : "config"
[    3.672799] 0x000000022000-0x000000030000 : "reserved"
[    3.735050] 0x000000030000-0x000000040000 : "art"
[    3.792126] 0x000000040000-0x000000800000 : "firmware"
[    3.864353] libphy: Fixed MDIO Bus: probed
[    4.244363] libphy: ag71xx_mdio: probed
[    4.290345] mdio_bus mdio-bus.0: MDIO device at address 0 is missing.
[    4.705072] ag71xx 19000000.eth: Could not connect to PHY device
[    4.778846] NET: Registered protocol family 10
[    4.835002] Segment Routing with IPv6
[    4.878892] NET: Registered protocol family 17
[    4.932402] 8021q: 802.1Q VLAN Support v1.8
[    5.017188] Freeing unused kernel memory: 6684K
[    5.071366] This architecture does not have kernel memory protection.
[    5.162176] init: Console is alive
[    5.203161] init: - watchdog -
[    5.262291] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.355309] usbcore: registered new interface driver usbfs
[    5.421018] usbcore: registered new interface driver hub
[    5.484657] usbcore: registered new device driver usb
[    5.551117] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.631012] ehci-platform: EHCI generic platform driver
[    5.693819] ehci-platform 1b000000.usb: EHCI Host Controller
[    5.761556] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    5.855294] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    5.954013] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    6.028916] hub 1-0:1.0: USB hub found
[    6.074241] hub 1-0:1.0: 1 port detected
[    6.122693] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.219592] init: - preinit -
[    6.472881] random: jshn: uninitialized urandom read (4 bytes read)
[    6.547943] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    6.722825] random: jshn: uninitialized urandom read (4 bytes read)
[    6.916328] usb 1-1: not running at top speed; connect to a high speed hub
[    7.086201] random: procd: uninitialized urandom read (4 bytes read)
[    7.162679] hub 1-1:1.0: USB hub found
[    7.235111] hub 1-1:1.0: 4 ports detected
[    7.507891] urandom_read: 3 callbacks suppressed
[    7.507900] random: jshn: uninitialized urandom read (4 bytes read)
[    7.731573] random: jshn: uninitialized urandom read (4 bytes read)
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
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
[    9.203965] random: fast init done
[   11.066076] procd: - early -
[   11.100650] procd: - watchdog -
[   11.688297] procd: - watchdog -
[   11.726150] procd: - ubus -
[   11.767355] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.844579] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.922037] procd: - init -
Please press Enter to activate this console.
[   12.145500] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.226031] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.301139] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   12.390721] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   12.470763] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.542643] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.672963] xt_time: kernel timezone is -0000
[   12.780921] PPP generic driver version 2.4.2
[   12.834609] NET: Registered protocol family 24
[   12.947620] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=11
[   13.030790] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   13.151582] ath9k 0000:00:00.0: Falling back to user helper
[   13.637519] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=13
[   13.814381] kmodloader: done loading kernel modules from /etc/modules.d/*



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

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

gpio-export追加後

IPL:HARD-RESET
memory test ... ok
flinstall OK

boot version: 1.0.0

PKG "Orthos-HP"
CPU "Atheros/AR9344"
Revision 212.1 CLOCK 560.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
post start
TP module load fail
post load fail [-2]

rebooting 3
key abort

welcome to boot console
Password:
boot> tftpd
tftpd start 192.168.0.1
boot> start tftp load openwrt-ath79-tiny-nec_wr8750n-i
end tftp load length = 3225264
start memory load ... 
memory load complete
  begin  : 0x80060000
  length : 3225240
  startup: 0x80060000

boot> debug memory write ?
write [byte|short|word] ADDRESS DATA
default access mode is word(32bit)
# ex) write byte 0x2000 0x10
boot> debug memory read 0xb8040000 1
b8040000:0003db1f                            ....
boot> debug memory write 0xb8040000 0x3fb1f
0xb8040000 <- 0x3fb1f
boot> debug memory read 0xb8040000 1       
b8040000:0003fb1f                            ....
boot> boot
begin  : 0x80060000
length : 3225240
startup: 0x80060000
option: 0x0


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos 
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 4.14.94 (jenkins@tofu-z77hvub18_openwrt) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9105-9d407488e5)) #0 Wed Jan 23 16:51:28 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WR8750N
[    0.000000] SoC: Atheros AR9344 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from 0x8045972c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 118520K/131072K available (3450K kernel code, 138K rwdata, 472K rodata, 6684K init, 195K bss, 12552K 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: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000011] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.092709] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.237625] pid_max: default: 32768 minimum: 301
[    0.293066] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.372219] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.461166] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.578794] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.651744] pinctrl core: initialized pinctrl subsystem
[    0.715211] NET: Registered protocol family 16
[    0.769103] Can't analyze schedule() prologue at 803ba51c
[    0.836079] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.913158]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.975617]   IO 0x0000000000000000..0x0000000000000000
[    1.055448] PCI host bridge to bus 0000:00
[    1.104416] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.186635] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.253295] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.334519] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.429831] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    1.517292] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    1.604285] clocksource: Switched to clocksource MIPS
[    1.665872] NET: Registered protocol family 2
[    1.718830] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.802158] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.878145] TCP: Hash tables configured (established 1024 bind 1024)
[    1.954317] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.024067] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.099293] NET: Registered protocol family 1
[    2.286897] Crashlog allocated RAM at address 0x3f00000
[    2.350730] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.432797] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.502572] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.693963] io scheduler noop registered
[    2.740842] io scheduler deadline registered (default)
[    2.802581] ar7200-usb-phy usb-phy: phy reset is missing
[    2.868418] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    2.952302] gpio-export gpio-export: 1 gpio(s) exported
[    3.015603] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    3.092383] console [ttyS0] disabled
[    3.135144] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 2500000) is a 16550A
[    3.238160] console [ttyS0] enabled
[    3.238160] console [ttyS0] enabled
[    3.321437] bootconsole [early0] disabled
[    3.321437] bootconsole [early0] disabled
[    3.423644] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.482102] 5 fixed-partitions partitions found on MTD device spi0.0
[    3.558146] Creating 5 MTD partitions on "spi0.0":
[    3.615458] 0x000000000000-0x000000020000 : "u-boot"
[    3.675689] 0x000000020000-0x000000022000 : "config"
[    3.735920] 0x000000022000-0x000000030000 : "reserved"
[    3.798168] 0x000000030000-0x000000040000 : "art"
[    3.855263] 0x000000040000-0x000000800000 : "firmware"
[    3.927358] libphy: Fixed MDIO Bus: probed
[    4.314677] libphy: ag71xx_mdio: probed
[    4.385208] switch0: Atheros AR8327 rev. 2 switch registered on mdio-bus.0
[    5.455463] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    5.584146] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    5.659064] NET: Registered protocol family 10
[    5.715873] Segment Routing with IPv6
[    5.759778] NET: Registered protocol family 17
[    5.813285] 8021q: 802.1Q VLAN Support v1.8
[    5.898005] Freeing unused kernel memory: 6684K
[    5.952134] This architecture does not have kernel memory protection.
[    6.042871] init: Console is alive
[    6.083814] init: - watchdog -
[    6.143011] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.235254] usbcore: registered new interface driver usbfs
[    6.300947] usbcore: registered new interface driver hub
[    6.364600] usbcore: registered new device driver usb
[    6.431060] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.510955] ehci-platform: EHCI generic platform driver
[    6.573756] ehci-platform 1b000000.usb: EHCI Host Controller
[    6.641508] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    6.735238] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    6.817349] random: fast init done
[    6.858045] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    6.932953] hub 1-0:1.0: USB hub found
[    6.978274] hub 1-0:1.0: 1 port detected
[    7.026764] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.123648] init: - preinit -
[    7.383363] random: jshn: uninitialized urandom read (4 bytes read)
[    7.458456] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    7.631781] random: jshn: uninitialized urandom read (4 bytes read)
[    7.827269] usb 1-1: not running at top speed; connect to a high speed hub
[    7.997287] random: procd: uninitialized urandom read (4 bytes read)
[    8.073767] hub 1-1:1.0: USB hub found
[    8.142337] hub 1-1:1.0: 4 ports detected
[    8.415341] urandom_read: 3 callbacks suppressed
[    8.415350] random: jshn: uninitialized urandom read (4 bytes read)
[    8.638829] random: jshn: uninitialized urandom read (4 bytes read)
[    9.470813] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.540678] 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
[   10.615562] eth0: link up (1000Mbps/Full duplex)
[   10.670896] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.748560] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   12.923211] procd: - early -
[   12.958728] procd: - watchdog -
[   13.546909] procd: - watchdog -
[   13.584843] procd: - ubus -
[   13.626022] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.703217] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.780750] procd: - init -
[   13.814352] eth0: link down
Please press Enter to activate this console.
[   14.040001] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.120538] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.195648] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   14.285177] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   14.365276] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.437318] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   14.565708] xt_time: kernel timezone is -0000
[   14.674548] PPP generic driver version 2.4.2
[   14.728163] NET: Registered protocol family 24
[   14.839568] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=11
[   14.922743] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   15.043543] ath9k 0000:00:00.0: Falling back to user helper
[   15.532696] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=14
[   15.714701] kmodloader: done loading kernel modules from /etc/modules.d/*
[   27.302322] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.373470] eth0: link up (1000Mbps/Full duplex)
[   27.560442] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   27.665778] br-lan: port 1(eth0.1) entered blocking state
[   27.730394] br-lan: port 1(eth0.1) entered disabled state
[   27.795282] device eth0.1 entered promiscuous mode
[   27.852575] device eth0 entered promiscuous mode
[   28.235690] br-lan: port 1(eth0.1) entered blocking state
[   28.300310] br-lan: port 1(eth0.1) entered forwarding state
[   28.367361] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   28.439614] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



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

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

WR8750N GPIOレジスタメモ

### ===== switch uninitialized ===== ###
boot> debug memory read 0xb8040000 70
b8040000:0003db1f 00039639 00040000 00000000 .......9........
b8040010:00000000 00000000 00000000 00000000 ................
b8040020:00000000 00000000 000f8000 00000000 ................
b8040030:0b0a0900 00180000 00000000 2f2e0000 ............/...
b8040040:00000000 00000908 00000000 00000000 ................
b8040050:00000c0b 00000000 00000000 00000000 ................
b8040060:00000000 0d0f110e 00000000 00000002 ................

# GPIO Output Enable: 0x18040000 (0xb8040000) -> 0x3db1f
GPIO (enabled): 5, 6, 7, 10, 13, 18, 19, 20, 21, 22

# GPIO Input Value: 0x18040004 (0xb8040004) -> 0x39639
GPIO0: 1
GPIO3: 1
GPIO4: 1
GPIO5: 1
GPIO9: 1
GPIO10: 1
GPIO12: 1
GPIO15: 1
GPIO16: 1
GPIO17: 1

# GPIO Output Value: 0x18040008 (0xb8040008) -> 0x40000
GPIO18: 1 (HIGH)
(other): 0 (LOW)

### ===== switch initialized ===== ###
boot> debug memory read 0xb8040000 70
b8040000:0003db1f 0003b639 00042000 00000000 .......9.. .....
b8040010:00000000 00000000 00000000 00000000 ................
b8040020:00000000 00000000 000f8000 00000000 ................
b8040030:0b0a0900 00180000 00000000 2f2e0000 ............/...
b8040040:00000000 00000908 00000000 00000000 ................
b8040050:00000c0b 00000000 00000000 00000000 ................
b8040060:00000000 0d0f110e 00000000 00000002 ................

# GPIO Output Enable: 0x18040000 (0xb8040000) -> 0x3db1f
GPIO (enabled): 5, 6, 7, 10, 13, 18, 19, 20, 21, 22

# GPIO Input Value: 0x18040004 (0xb8040004) -> 0x3b639
GPIO0: 1
GPIO3: 1
GPIO4: 1
GPIO5: 1
GPIO9: 1
GPIO10: 1
GPIO12: 1
GPIO13: 1
GPIO15: 1
GPIO16: 1
GPIO17: 1

# GPIO Output Value: 0x18040008 (0xb8040008) -> 0x42000
GPIO13: 1
GPIO18: 1
(other): 0

WR8750N Bootloader書き戻しメモ

U-BootからNECのBootloaderへ書き直したメモ。昨日はSOP16のクリップでSPI-NOR Flash読めたのに今日は全くダメだったので、諦めて他の方法を探って辿り着いた。
書き戻しに失敗したらどうにかFlashを直接書き換えなければならなくなるので、非常に怖い。
参考: ath79: add support for EnGenius EWS511AP · openwrt/openwrt@9ebb44a

Kermit転送にはRLoginを使用した。

u-boot> loadb
Ready for binary (Kermit) download to 0x80800000 at 9600 bps...

Kermit download complete!
Total downloaded size: 0x00020000 (131072 bytes)
   Data start address: 0x80800000

u-boot> echo $filesize
0x20000
u-boot> erase 0x9f000000 +20000 
Erase FLASH from 0x9F000000 to 0x9F01FFFF in bank #1
Erasing: ##

Erased sectors: 2

u-boot> printenv      
bootcmd=bootm 0x9F040000
bootdelay=1
baudrate=9600
ipaddr=192.168.0.1
serverip=192.168.0.2
autoload=no
hostname=u-boot_wr8750n
bootfile=firmware.bin
loadaddr=0x80800000
lsdk_kernel=1
stdin=serial
stdout=serial
stderr=serial
ethaddr=1C:B1:7F:00:A5:00
ethact=eth0
filesize=0x20000
fileaddr=0x80800000

Environment size: 299/4092 bytes

u-boot> cp.b $fileaddr 0x9f000000 $filesize
Copying to FLASH...
Writing at address: 0x9F000000

Done!

u-boot> md.l 0x9f000000 4 
9F000000: 10000103 241A0000 100002B2 241A0001    ....$.......$...
u-boot> reset
Resetting the board...
IPL:HARD-RESET
memory test ... ok
flinstall OK

boot version: 1.0.0

PKG "Orthos-HP"
CPU "Atheros/AR9344"
Revision 212.1 CLOCK 560.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem
filesystem check fail
recover filesystem ...done.

welcome to boot console
Password:
boot>

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