作者別: とーふ

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

広告

WG2600HP fwupコマンドメモ

メーカーファームのfailsafe上で実行し、それっぽいログが出てきたのでメモ。現状、どうやってメーカーファームをdecryptしているのかは不明。

ファイル: wg2600hp_1_0_13.bin

Jan 01 00:12:16 [syslog] [FWUP]fwup_main start._
Jan 01 00:12:16 [syslog] [FWUP]fwup_update_firmware start._
Jan 01 00:12:16 [syslog] [FWUP]file len = [12695280]_
Jan 01 00:12:16 [syslog] [FWUP] decrypt_key=[rotary]
Jan 01 00:12:16 [syslog] [FWUP] FW HEADER RCV  [USB ATERMWL3050]
Jan 01 00:12:16 [syslog] [FWUP] FW HEADER PFMG [USB ATERMWL3050]
Jan 01 00:12:16 [syslog] [FW] header ok
Jan 01 00:12:16 [syslog] [FW] id=0x0 108 bytes
Jan 01 00:12:16 [syslog] [FW] chksum ok id=0x0
Jan 01 00:12:16 [syslog] [FW] id=0x2 12695064 bytes
Jan 01 00:12:18 [syslog] [FW] chksum ok id=0x2
Jan 01 00:12:18 [syslog] [FW] id=0x1 24 bytes
Jan 01 00:12:18 [syslog] [FW] chksum ok id=0x1
Jan 01 00:12:18 [syslog] [FW] footer ok
Jan 01 00:12:18 [syslog] [FWUP]parse_crc32 ret = [0]
Jan 01 00:12:18 [syslog] [FWUP] crc32 0
Jan 01 00:12:18 [syslog] [FWUP] crypt 0
Jan 01 00:12:18 [syslog] [FWUP] firmware 0
Jan 01 00:12:18 [syslog] [FW] tp not found
Jan 01 00:12:18 [syslog] [FW] expansion not found
Jan 01 00:12:18 [syslog] [FWUP] decrypt_key=[rotary]
Jan 01 00:12:18 [syslog] [FWUP] FW HEADER RCV  [USB ATERMWL3050]
Jan 01 00:12:18 [syslog] [FWUP] FW HEADER PFMG [USB ATERMWL3050]
Jan 01 00:12:18 [syslog] [FW] header ok
Jan 01 00:12:20 [syslog] [FW] chksum ok id=0x2
Jan 01 00:12:20 [syslog] [FW] id=0x1 24 bytes
Jan 01 00:12:20 [syslog] [FW] chksum ok id=0x1
Jan 01 00:12:20 [syslog] [FW] footer ok
Jan 01 00:12:20 [syslog] [FWUP]parse_crc32 ret = [0]
Jan 01 00:12:20 [syslog] [FWUP] crc32 0
Jan 01 00:12:20 [syslog] [FWUP] crypt 0
Jan 01 00:12:20 [syslog] [FWUP] firmware 0
Jan 01 00:12:20 [syslog] [FW] tp not found
Jan 01 00:12:20 [syslog] [FW] expansion not found
Jan 01 00:12:50 [syslog] [FWUP] fwup_cgi_ready file T.O _
Jan 01 00:12:50 [syslog] main: fwup_update_firmware() error._

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

WRC-1167GHBK2-I

ハードオフ東久留米店で、WR9500Nと一緒に確保したもの。以前よりMT7620を搭載していることを把握していたものの、少々懸念する点があり購入は見送っていたが、ジャンクで非常に安価に出ていたので衝動的に購入してしまった。
upstreamへマージできるかは不明なものの、弄っていくのでメモ。

Switch

zone WAN LAN
port
(WRC-1167GHBK-I)
INTERNET LAN4 LAN3 LAN2 LAN1
port
(MT7530)
port0 port1 port2 port3 port4

MAC

5G (MT7612E)のEEPROMにMACアドレスが埋め込まれていないため、openwrt/openwrtへのPRは行わない。

  • LAN: BC:5C:4C:xx:xx:51 (hwconfig, HW.LAN.MAC.Address (text))
  • WAN: BC:5C:4C:xx:xx:50 (hwconfig, HW.LAN.MAC.Address (text))
  • 2G: BC:5C:4C:xx:xx:52 (hwconfig, HW.LAN.2G.0.MAC.Address (text))
  • 5G: BC:5C:4C:xx:xx:53 (hwconfig, HW.LAN.5G.0.MAC.Address (text))

U-Boot

  • help
    MT7620 # help
    ?       - alias for 'help'
    bootm   - boot application image from memory
    cp      - memory copy
    erase   - erase SPI FLASH memory
    go      - start application at address 'addr'
    help    - print online help
    loadb   - load binary file over serial line (kermit mode)
    md      - memory display
    mdio   - Ralink PHY register R/W command !!
    mm      - memory modify (auto-incrementing)
    nm      - memory modify (constant address)
    printenv- print environment variables
    reset   - Perform RESET of the CPU
    rf      - read/write rf register
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version
    

  • version
    MT7620 # version
    
    U-Boot 1.1.3 (Mar 27 2015 - 15:25:08)
    

  • printenv
    MT7620 # printenv
    bootcmd=tftp
    bootdelay=3
    baudrate=57600
    ethaddr="00:AA:BB:CC:DD:10"
    ipaddr=192.168.2.81
    serverip=192.168.2.89
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 151/4092 bytes
    

Kernel

パスワードが掛けられており、ログイン不可。

  • bootlog
    U-Boot 1.1.3 (Mar 27 2015 - 15:25:08)
    
    Board: Ralink APSoC DRAM:  64 MB
    relocate_code Pointer at: 83fb4000
    enable ephy clock...done. rf reg 29 = 5
    SSC disabled.
    ******************************
    Software System Reset Occurred
    ******************************
    spi_wait_nsec: 29 
    spi device id: c2 20 17 c2 20 (2017c220)
    find flash: MX25L6405D
    raspi_read: from:30000 len:1000 
    *** Warning - bad CRC, using default environment
    
    ============================================ 
    Ralink UBoot Version: 4.1.2.0
    -------------------------------------------- 
    ASIC 7620_MP (Port5GigaSW)
    DRAM component: 512 Mbits DDR, width 16
    DRAM bus: 16 bit
    Total memory: 64 MBytes
    Flash component: SPI Flash
    Date:Mar 27 2015  Time:15:25:08
    ============================================ 
    icache: sets:512, ways:4, linesz:32 ,total:65536
    dcache: sets:256, ways:4, linesz:32 ,total:32768 
    
     ##### The CPU freq = 580 MHZ #### 
     estimate memory size =64 Mbytes
    #Reset_MT7530
    
    Please choose the operation: 
       1: Load system code to SDRAM via TFTP. 
       2: Load system code then write to Flash via TFTP. 
       3: Boot system code via Flash (default).
       4: Entr boot command line interface.
       5: Load ucos code to SDRAM via TFTP Client. 
       7: Load Boot Loader code then write to Flash via Serial. 
       9: Load Boot Loader code then write to Flash via TFTP. 
                                                                                                                              0  
       
    3: System Boot system code via Flash.
    ## Booting image at bc070000 ...
    raspi_read: from:70000 len:40 
    Magic number at 0xBC070000 
    raspi_read: from:70014 len:40 
       Image Name:   Linux Kernel Image
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    4165548 Bytes =  4 MB
       Load Address: 80000000
       Entry Point:  8000c2f0
    raspi_read: from:70054 len:3f8fac 
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 8000c2f0) ...
    ## Giving linux memsize in MB, 64
    
    Starting kernel ...
    
    
    LINUX started...
    
     THIS IS ASIC
    Linux version 2.6.36 (root@localhost.localdomain) (gcc version 3.4.2) #119 Fri Mar 27 15:23:29 CST 2015
    
     The CPU feqenuce set to 580 MHz
     PCIE: bypass PCIe DLL.
     PCIE: Elastic buffer control: Addr:0x68 -> 0xB4
     disable all power about PCIe
    CPU revision is: 00019650 (MIPS 24Kc)
    Software DMA cache coherency
    Determined physical RAM map:
     memory: 04000000 @ 00000000 (usable)
    Zone PFN ranges:
      Normal   0x00000000 -> 0x00004000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
        0: 0x00000000 -> 0x00004000
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    Kernel command line: console=ttyS1,57600n8 root=1f05 console=ttyS0
    PID hash table entries: 256 (order: -2, 1024 bytes)
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Primary instruction cache 64kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    Writing ErrCtl register=0006ee20
    Readback ErrCtl register=0006ee20
    Memory: 61840k/65536k available (2266k kernel code, 3696k reserved, 397k data, 176k init, 0k highmem)
    Hierarchical RCU implementation.
            Verbose stalled-CPUs detection is disabled.
    NR_IRQS:128
    Console: colour dummy device 80x25
    console [ttyS1] enabled
    Calibrating delay loop... 386.04 BogoMIPS (lpj=772096)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    NET: Registered protocol family 16
    RALINK_GPIOMODE = 1a301d
    RALINK_GPIOMODE = 18301d
    PPLL_CFG1=0xe50000
    MT7620 PPLL lock
    PPLL_DRV =0x80080504
    start PCIe register access
    RALINK_RSTCTRL = 2400000
    RALINK_CLKCFG1 = 75afffc0
    
    *************** MT7620 PCIe RC mode *************
    PCIE0 enabled
    init_rt2880pci done
    bio: create slab  at 0
    vgaarb: loaded
    pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
    pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
    pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
    pci 0000:00:00.0: BAR 1: set to [mem 0x20200000-0x2020ffff] (PCI address [0x20200000-0x2020ffff]
    pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
    pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x200fffff 64bit] (PCI address [0x20000000-0x200fffff]
    pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
    pci 0000:00:00.0: PCI bridge to [bus 01-01]
    pci 0000:00:00.0:   bridge window [io  disabled]
    pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
    BAR0 at slot 0 = 0
    bus=0x0, slot = 0x0
    res[0]->start = 0
    res[0]->end = 0
    res[1]->start = 20200000
    res[1]->end = 2020ffff
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    bus=0x1, slot = 0x0
    res[0]->start = 20000000
    res[0]->end = 200fffff
    res[1]->start = 0
    res[1]->end = 0
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    Switching to clocksource MIPS
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    Load Kernel WDG Timer Module
    Load Ralink Timer0 Module
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    msgmni has been set to 120
    io scheduler noop registered (default)
    Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A
    serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A
    brd: module loaded
    deice id : c2 20 17 c2 20 (2017c220)
    MX25L6405D(c2 2017c220) (8192 Kbytes)
    mtd .name = raspi, .size = 0x00800000 (0M) .erasesize = 0x00000008 (0K) .numeraseregions = 65536
    Creating 8 MTD partitions on "raspi":
    0x000000000000-0x000000030000 : "Bootloader"
    0x000000030000-0x000000040000 : "Config"
    0x000000040000-0x000000050000 : "Factory"
    0x000000050000-0x000000070000 : "nvram"
    0x000000070000-0x000000170000 : "Kernel"
    0x000000170000-0x0000007f0000 : "RootFS"
    0x0000007f0000-0x000000800000 : "hwconfig"
    0x000000070000-0x0000007f0000 : "Uimage"
    rdm_major = 254
    SMACCR1 -- : 0x0000000c
    SMACCR0 -- : 0x43762077
    Ralink APSoC Ethernet Driver Initilization. v3.0  256 rx/tx descriptors allocated, mtu = 1500!
    SMACCR1 -- : 0x0000000c
    SMACCR0 -- : 0x43762077
    PROC INIT OK!
    PPP generic driver version 2.4.2
    PPP BSD Compression module registered
    NET: Registered protocol family 24
    PPTP driver version 0.8.5
    i8042.c: i8042 controller self test timeout.
    Trying to free nonexistent resource 
    mice: PS/2 mouse device common for all mice
    Ralink APSoC Hardware Watchdog Timer
    u32 classifier
        Performance counters on
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (966 buckets, 3864 max)
    ctnetlink v0.93: registering with nfnetlink.
    matchsize=264
    xt_time: kernel timezone is -0000
    GRE over IPv4 demultiplexor driver
    gre: can't add protocol
    ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
    TCP cubic registered
    NET: Registered protocol family 17
    dnshijack
    802.1Q VLAN Support v1.8 Ben Greear 
    All bugs added by David S. Miller 
    VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
    Freeing unused kernel memory: 176k freed
    init started: BusyBox v1.12.1 (2015-01-27 11:57:03 CST)
    starting pid 23, tty '': '/etc/init.d/rcS sysinit'
    rc ver. 1.0.3
    Initializing...Success!
    Mounting file systems...Success!
    Creating devices...Success!
    Creating loopback device...Success!
    starting pid 30, tty '': '/etc/init.d/rcS start'
    rc ver. 1.0.3
    Initializing...Success!
    Loading dynamic libraries...Success!
    edx_gpio: module license 'unspecified' taints kernel.
    Disabling lock debugging due to kernel taint
    Initializing EDX GPIO...Done
    Acelink events notification ver. 1.6
    argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER hold=
    NVRAM access daemon Ver. 1.0 Build 2argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_UP hold=
    0150127115621
    daemonize process
    Algorithmics/MIPS FPU Emulator v1.5
    argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER hold=
    Starting L0000Config.so...binfile link OK!
    Done ! (ret=0)
    Starting L0100WLANInterface.so...Done ! (ret=0)
    Starting L0130EthInterface.so...Done ! (ret=0)
    Starting L0200LANConfig.so...Done ! (ret=0)
    1970-01-01 00:00:19: (server.c.915) can't have more connections than fds/2:  1024 824 
    start lld2d...
    udhcpd: max_leases=235 is too big, setting to 101
    start child_net...
    start Router mode accesscontrol...
    starting firewall...
    start house_keeper...
    Starting L0230LANServices.so...Done ! (ret=0)
    Starting L0300WANConfig.so...Done ! (ret=0)
    
    Please press Enter to activate this console. starting wan_event...
    wan_event done !
    Notice: caching turned off
    Notice: caching turned off
    insmod: cannot insert '/sbin/hw_nat.ko': File exists
    starting wan_event...
    wan_event done !
    starting wan_event...
    udhcpc receive a leasefail for eth2.2
    wan_event done !
    

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>