カテゴリー: LEDE / OpenWrt

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

広告

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:/# 

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 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>

WN-AC1167GRメモ headerチェック

WN-AC1167GR内の header でファームのヘッダが問題無くチェックをパスできるか確認。

# tftp -r openwrt-ramips-mt7620-iodata_wn-ac1167gr-squashfs-factory.bin -g 192.168.0.100
# header -x openwrt-ramips-mt7620-iodata_wn-ac1167gr-squashfs-factory.bin 
### Decoding  image ####
Decode source file [openwrt-ramips-mt7620-iodata_wn-ac1167gr-squashfs-factory.bin]
------- Header Info -------
Vendor  id:  0x0104
Product id:  0x0016
Hardware id:  0x01040016
Version id:  
Code Version:  
Type: 0x3 [kernel]
comp_file_len:  5505028
comp_file_sum:  0x0
Header sum:  0x0
Magic key:  0x0
MD5 chksum:  90ba7450183602a7cbe542bc1a9b436
------------------------------
Decode finished, got file [openwrt-ramips-mt7620-iodata_wn-ac1167gr-squashfs-factory.bin.bin] with size 5505028 bytes
header: Return OK

header付加スクリプト

  • TOOLDIRは環境に合わせて書き換え
  • mkhashとxorimageはOpenWrtのfirmware-utilsを使用
  • ファイルサイズとmd5sumの埋め込みはxxd利用するともう少し簡略化できる(たぶん)
  • create_headerの hw_id を変更することで、WN-AC733GRxやWNPR2600G、ELECOMの同様のヘッダを持つ機種にも利用できるかもしれない
#!/bin/bash

TOOLDIR="/home/tofu/routers/firmware-utils"

create_header(){
	fw_bin="$1"
	hw_id="01040016"

	[ -d "$(pwd)/tmp" ] || mkdir $(pwd)/tmp
	( \
		echo -ne "\x00\x00\x00\x00\x00\x00\x00\x03" | \
			dd bs=42 count=1 conv=sync; \
		echo -ne "\x${hw_id:0:2}\x${hw_id:2:2}\x${hw_id:4:2}\x${hw_id:6:2}" | \
			dd bs=20 count=1 conv=sync; \
		echo -ne "$(printf '%08x' $(stat -c%s $fw_bin) | fold -s2 | xargs -I {} echo \\x{} | tr -d '\n')" | \
			dd bs=8 count=1 conv=sync; \
		echo -ne "$(${TOOLDIR}/mkhash md5 $fw_bin | fold -s2 | xargs -I {} echo \\x{} | tr -d '\n')" | \
			dd bs=58 count=1 conv=sync; \
	 ) > ./tmp/header.bin
}

xor_fw(){
	fw_bin="$1"
	xor_key="8844A2D168B45A2D"

	${TOOLDIR}/xorimage -i $fw_bin -o ./tmp/${fw_bin}.xor -p "$xor_key" -x
}

concat_header(){
	fw_bin="$1"
	cat ./tmp/header.bin ./tmp/${fw_bin}.xor > ./tmp/${fw_bin}.new
}

fw_bin=$1

[ -r "$fw_bin" ] && \
create_header $fw_bin && \
xor_fw $fw_bin && \
concat_header $fw_bin && \
cp ./tmp/${fw_bin}.new ./ || \
echo "ERROR"

実行例

./header.sh openwrt-ramips-mt7620-iodata_wn-ac1167gr-squashfs-plain.bin

WI-U3-866D on WXR-2533DHP

OpenWrtにRTL8812AUドライバが追加されていたので試しに。ただ、以前と変わらず不安定な印象。
WI-U3-866D固有の問題である可能性も無きにしも非ず。

接続

普通にUSB 3.0ポートへ接続。何故かUSB 2.0デバイスとして認識され、そのままUSB 3.0接続への切り替え等は発生しない。
iwinfo ではwlan2がWI-U3-866Dに該当。

root@OpenWrt:/# [   84.616036] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[   85.267793] RTL871X: rtw_ndev_init(wlan2)

root@OpenWrt:/# iwinfo
wlan0     ESSID: unknown
          Access Point: 74:03:BD:BC:1D:9B
          Mode: Client  Channel: unknown (unknown)
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11nac
          Hardware: 168C:0040 168C:0002 [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

wlan1     ESSID: unknown
          Access Point: 74:03:BD:BC:1D:9A
          Mode: Client  Channel: unknown (unknown)
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: 168C:0040 168C:0002 [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy1

wlan2     ESSID: unknown
          Access Point: 74:03:BD:8F:DF:59
          Mode: Client  Channel: unknown (unknown)
          Tx-Power: 12 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11abg
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: no  PHY name: phy2

root@OpenWrt:/# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0411:025d BUFFALO INC. (formerly MelCo., Inc.) 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:/# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=rtl8812au, 480M

AP接続試行時

LuCI上からスキャン / 接続操作。何故か uninit が走る。この時点で iwinfoiw dev の情報からドングルが消える。

root@OpenWrt:/# [  200.594440] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
[  250.955660] RTL871X: rtw_ndev_uninit(wlan2)

root@OpenWrt:/# iwinfo
wlan0     ESSID: unknown
          Access Point: 74:03:BD:BC:1D:9B
          Mode: Client  Channel: unknown (unknown)
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11nac
          Hardware: 168C:0040 168C:0002 [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

wlan1     ESSID: unknown
          Access Point: 74:03:BD:BC:1D:9A
          Mode: Client  Channel: unknown (unknown)
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: 168C:0040 168C:0002 [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy1

ドングル取り外し

上のスキャン / 接続操作の後ドングルをUSB 3.0ポートから引き抜く。Oopsを吐いた後、そのままKernel Panicを起こしてお亡くなりになり、reboot。

root@OpenWrt:/# [  304.981232] usb 1-1: USB disconnect, device number 2
[  304.981804] Internal error: Oops - undefined instruction: 0 [#1] SMP ARM
[  304.985272] Modules linked in: pppoe ppp_async ath10k_pci ath10k_core ath rtl8812au pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink iptable_raw iptable_mangle
[  305.040299]  iptable_filter ipt_ECN ip_tables crc_ccitt compat fuse act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ledtrig_usbport ledtrig_heartbeat xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ifb ip6_tunnel tunnel6 vfat fat ntfs nls_utf8 nls_iso8859_1 nls_cp437 uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_of_simple ohci_platform
[  305.111300]  ohci_hcd phy_qcom_dwc3 ahci ehci_platform sd_mod ahci_platform libahci_platform libahci libata scsi_mod ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache crc32c_generic
[  305.133559] CPU: 0 PID: 17 Comm: kworker/0:1 Not tainted 4.14.89 #0
[  305.149420] Hardware name: Generic DT based system
[  305.155611] Workqueue: usb_hub_wq hub_event
[  305.160445] task: dd465900 task.stack: dd4ea000
[  305.164540] PC is at rollback_registered_many+0xc4/0x474
[  305.169044] LR is at rollback_registered_many+0x40/0x474
[  305.174594] pc : []    lr : []    psr: 20000013
[  305.179892] sp : dd4ebd58  ip : dd465900  fp : dc9e2200
[  305.185877] r10: c08b1eb4  r9 : 00000001  r8 : dd4ebd90
[  305.191086] r7 : dd4ebd68  r6 : dca45844  r5 : dca45800  r4 : dd4ebd4c
[  305.196298] r3 : 00000003  r2 : 00000000  r1 : 00000000  r0 : 00000001
[  305.202898] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  305.209407] Control: 10c5787d  Table: 5c12806a  DAC: 00000051
[  305.216610] Process kworker/0:1 (pid: 17, stack limit = 0xdd4ea210)
[  305.222339] Stack: (0xdd4ebd58 to 0xdd4ec000)
[  305.228422] bd40:                                                       00000001 c079764c
[  305.232966] bd60: dd2fc850 dc33b3c0 dd4ebd68 dd4ebd68 dca45800 00000000 dca43000 dc9e2220
[  305.241127] bd80: 00000034 c0b5c648 dc9e2228 c068b194 dca45844 dca45844 dc33b3c0 dca45800
[  305.249285] bda0: dca43124 c068b208 e0ea1000 bf720628 00000000 bf72066c e0ea1000 dc9e2200
[  305.257444] bdc0: 00000000 bf721ad8 bf78799c db9e3c70 00000000 c06127e4 db9e3c00 ffffffed
[  305.265605] bde0: dc9e2220 dc9e2220 dc9e2254 bf78799c 00000000 00000034 c0b5c648 dc9e2228
[  305.273766] be00: db9e3c70 c058fd60 dd550f30 dc9e2220 c0b1d7c8 dc9e2278 c0b03c08 c058ecf0
[  305.281923] be20: 00008d84 dc9e2220 00000001 c058bacc dc9e2200 c03e4ff8 00000001 c0793bc4
[  305.290083] be40: dcca6400 dc9e3ae0 00000118 00040e59 dc9e2200 db9e3c00 00000000 00000001
[  305.298243] be60: dcea9000 dc9e2200 dcca6400 dc873904 00000100 c0611334 00000000 db9e3c00
[  305.306404] be80: dc9e3e00 db9e3ca4 db9e3c70 dcca6400 dc873904 c0609554 00000000 00000000
[  305.314563] bea0: 40000000 00000001 dc875800 00000001 00000001 dc873904 00000100 c060ad00
[  305.322722] bec0: dd4ebf0a 00000000 dc873800 dc873834 dcca6400 dc875800 dcca652c dc8758a4
[  305.330882] bee0: 00000001 dcea9000 dc873620 c0b1d690 00000000 c0b4ea14 dcca652c dd465900
[  305.339042] bf00: db5e7c00 00000000 00010100 dd465c70 dd4ebf4c dc873904 dd4c1580 ddc07500
[  305.347201] bf20: ddc0b300 00000000 00000000 00000008 ddc07500 c032fc14 ddc07518 ffffe000
[  305.355361] bf40: dd4c1580 ddc07500 dd4c1598 ddc07518 ffffe000 c0b02d00 00000008 c0330cc0
[  305.363521] bf60: dd44debc dd4dd000 dd4ea000 dd4c5340 dd44debc dd4dd01c dd4c1580 c033097c
[  305.371681] bf80: 00000000 c0335884 00000000 dd4c5340 c0335744 00000000 00000000 00000000
[  305.379841] bfa0: 00000000 00000000 00000000 c0307f48 00000000 00000000 00000000 00000000
[  305.388000] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  305.396160] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  305.404312] [] (rollback_registered_many) from [] (unregister_netdevice_queue+0x88/0xe0)
[  305.412466] [] (unregister_netdevice_queue) from [] (unregister_netdev+0x1c/0x2c)
[  305.422653] [] (unregister_netdev) from [] (rtw_unregister_netdev+0x2c/0x44 [rtl8812au])
[  305.431988] [] (rtw_unregister_netdev [rtl8812au]) from [] (rtw_unregister_netdevs+0x2c/0x4c [rtl8812au])
[  305.441797] [] (rtw_unregister_netdevs [rtl8812au]) from [] (rtw_dev_remove+0x24/0x84 [rtl8812au])
[  305.452786] [] (rtw_dev_remove [rtl8812au]) from [] (usb_unbind_interface+0x94/0x1dc)
[  305.463169] [] (usb_unbind_interface) from [] (device_release_driver_internal+0x128/0x1f0)
[  305.472797] [] (device_release_driver_internal) from [] (bus_remove_device+0xe0/0x118)
[  305.482689] [] (bus_remove_device) from [] (device_del+0x190/0x344)
[  305.492320] [] (device_del) from [] (usb_disable_device+0x88/0x1bc)
[  305.500223] [] (usb_disable_device) from [] (usb_disconnect+0x88/0x210)
[  305.508208] [] (usb_disconnect) from [] (hub_event+0xee4/0xf20)
[  305.516545] [] (hub_event) from [] (process_one_work+0x24c/0x404)
[  305.524180] [] (process_one_work) from [] (worker_thread+0x344/0x58c)
[  305.532172] [] (worker_thread) from [] (kthread+0x140/0x14c)
[  305.540332] [] (kthread) from [] (ret_from_fork+0x14/0x2c)
[  305.547802] Code: ea000003 e3530001 e5c59311 0a000000 (e7f001f2) 
[  305.554814] ---[ end trace 3133cf18efab4894 ]---
[  305.560968] Kernel panic - not syncing: Fatal exception
[  305.565672] CPU1: stopping
[  305.570611] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D         4.14.89 #0
[  305.573384] Hardware name: Generic DT based system
[  305.580629] [] (unwind_backtrace) from [] (show_stack+0x14/0x20)
[  305.585400] [] (show_stack) from [] (dump_stack+0x88/0x9c)
[  305.593286] [] (dump_stack) from [] (handle_IPI+0xf4/0x1a8)
[  305.600310] [] (handle_IPI) from [] (gic_handle_irq+0x9c/0xb8)
[  305.607514] [] (gic_handle_irq) from [] (__irq_svc+0x6c/0x90)
[  305.615140] Exception stack(0xdd461f80 to 0xdd461fc8)
[  305.622727] 1f80: 00000001 00000000 00000000 c0315300 ffffe000 c0b03c74 c0b03c28 00000000
[  305.627767] 1fa0: 00000000 512f04d0 00000000 00000000 dd461fc8 dd461fd0 c030884c c0308850
[  305.635897] 1fc0: 60000013 ffffffff
[  305.644057] [] (__irq_svc) from [] (arch_cpu_idle+0x38/0x44)
[  305.647366] [] (arch_cpu_idle) from [] (do_idle+0xe8/0x1bc)
[  305.654998] [] (do_idle) from [] (cpu_startup_entry+0x1c/0x20)
[  305.662025] [] (cpu_startup_entry) from [] (0x423017cc)
[  305.669669] Rebooting in 3 seconds..

LAN-W451NGR & OpenWrt

MACアドレスが独自フォーマットで格納されているなど、色々と厳しいのでupstream (openwrt/openwrt) へ投げるのはやめました。そのため、musashino-build/openwrtで持つだけになります。
以下OpenWrtインストール手順。

UARTを接続
LAN-W451NGRの筐体を開けてUART(シリアル)を接続。ピンは最初から立っていた。
並びは RJ-45ポート側から Vcc, TX, RX, GND。
U-Bootの環境変数を変更
ブートを中断してU-Bootのコンソールに入り、bootcmd の変更とMACアドレス設定の追加を行う。
bootcmdは以下の通り変更する。

set bootcmd "bootm 0x9f0a0010 || bootm 0x9f0a0000"


MACアドレスは筐体のラベルを参照し、以下の通りに変更する。

set wanaddr "MAC address"


例(MACアドレスが 00:aa:bb:cc:dd:ee の場合)

set wanaddr "00:aa:bb:cc:dd:ee"


最後に saveenv を実行して変更を保存。

initramfsファームでブート
192.168.1.50でTFTPサーバを実行して 0201A8C0.img にリネームしたinitramfsファームを用意し、コンソールで tftppboottftpでも可)を実行してinitramfsファームをTFTPサーバからダウンロード、bootm を実行してinitramfsファームによるブートを行う。
ブート後、mtdパーティションのバックアップを取っておくと良い。
sysupgrade
initramfsファーム上でsysupgradeファームを用いてsysupgrade、完了して再起動され、Flash内のOpenWrtファームウェアで起動する。

以上。

WXR-2533DHP stock -> OpenWrt (2)

以前のstock -> OpenWrt化の記事を書いた時点から、内部的な挙動を変更したのでメモ。

WXR-2533DHPのデフォルトパッケージとして squashfs-tools-mksquashfs を持たせて mksquashfs コマンドを使用できるようにし、WXR-2533DHPのブートに必要なダミーのUBIボリュームをsysupgrade時に作成するようにした。
これにより、factoryを投入後UBIのイメージを使用して sysupgrade -F する必要が無くなり、squashfs-sysupgrade イメージでsysupgradeするのみで良くなった。

Bootlog

stock → OpenWrt (initramfs) → OpenWrt (squashfs)
ハイライトは入力個所

Killed
Monitor.sh starting.......
Start of fw_blink_cnt.sh -------------------------------------------------
End of fw_blink_cnt.sh -------------------------------------------------
do ubi firmware upgrade ...
[  416.083692] UBI: attaching mtd1 to ubi1
[  416.086504] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[  416.093095] UBI: logical eraseblock size:    126976 bytes
[  416.098125] UBI: smallest flash I/O unit:    2048
[  416.103124] UBI: VID header offset:          2048 (aligned 2048)
[  416.108809] UBI: data offset:                4096
[  416.668822] UBI: empty MTD device detected
[  416.672133] UBI: max. sequence number:       0
[  416.676382] UBI: create volume table (copy #1)
[  416.693252] UBI: create volume table (copy #2)
[  416.710059] UBI: attached mtd1 to ubi1
[  416.712808] UBI: MTD device name:            "rootfs_1"
[  416.717994] UBI: MTD device size:            64 MiB
[  416.723149] UBI: number of good PEBs:        512
[  416.727460] UBI: number of bad PEBs:         0
[  416.732083] UBI: number of corrupted PEBs:   0
[  416.736301] UBI: max. allowed volumes:       128
[  416.741080] UBI: wear-leveling threshold:    4096
[  416.745610] UBI: number of internal volumes: 1
[  416.750265] UBI: number of user volumes:     0
[  416.754545] UBI: available PEBs:             503
[  416.759044] UBI: total number of reserved PEBs: 9
[  416.764011] UBI: number of PEBs reserved for bad PEB handling: 5
[  416.769853] UBI: max/mean erase counter: 0/0
[  416.774039] UBI: image sequence number:  1171577802
[  416.778881] UBI: background thread "ubi_bgt1d" started, PID 7267
ubiupdatevol /dev/ubi1_0 /tmp/uhttp-upgrade.img -o 128 -s 4819470
ubiupdatevol /dev/ubi1_1 /tmp/uhttp-upgrade.img -o 4819598 -s 158
$Shutting down pppd: 
disable_ipv4_dns
IPv6_dns = nameserver 240b:12:500:6500:225:36ff:fe14:e98c
reload_servers_safe
######policy stop
Stop DS-Lite Tunnel ...
Stop DS-Lite Tunnel done...
Stop MAP E ...
Stop DS-Lite Tunnel ...
Stop DS-Lite Tunnel done...
Stop MAP E ...
Stop RADVD ...
ip -6 addr delet 240b:12:500:6500:7603:bdff:febc:1d99/64 dev eth0
TMP_WAN_IPV6= 
[  447.302061] Restarting system.
[  447.304092] Going down for restart now


BUFFALO WXR-2533DHP U-Boot Ver 1.14 (May 18 2015 - 13:24:36)

CPU:   IPQ8064 clock 1.4 GHz
DRAM:  DDR3 512 MiB clock 533 MHz
NAND:  ECC 4 bits, 256 MiB
SF: Detected W25Q32 with page size 64 KiB, total 4 MiB
MMC:   
In:    serial
Out:   serial
Err:   serial
cdp: get part failed for 0:HLOS
cdp: get part failed for rootfs
Net:   MAC2 addr:74:3:bd:bc:1d:98
athrs17_reg_init: complete
athrs17_vlan_config ...done
S17c init  done
eth1
Memory Test Start
Pattern: 55555555
Pattern: AAAAAAAA
Pattern: 00000000
Memory Test Pass 

Hit any key to stop autoboot:  0 
Checking Bank1 Image ... 
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000004000000 : "mtd=0"
Bank1 Image is good
kernel_checksum is 0x4d51f25f , rootfs_checksum is 0xd3 
Checking Bank2 Image ... 
Creating 1 MTD partitions on "nand0":
0x000004000000-0x000008000000 : "mtd=0"
Bank2 Image is good
kernel_checksum is 0x4acf4726 , rootfs_checksum is 0xc9 
Bank1 Image not the same as Bank2 Image 
Cpoy to Bank1 image from Bank2 image 
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000004000000 : "mtd=0"
4819470 bytes written to volume kernel
158 bytes written to volume ubi_rootfs
MMC Device 0 not found

dmagic1 0 dmagic2 0 
 
MMC Device 0 not found
Using nand device 1
Device 1: nand1... is now current device
bootargs=console=ttyHSL1,115200n8 ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs
Booting from flash
set mtdids nand0=nand0 && set mtdparts mtdparts=nand0:0x4000000@0x0(fs),${msmparts} && ubi part fs && ubi read 0x44000000 kernel && bootm 0x44000000
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000004000000 : "mtd=0"
   Image Name:   ARM OpenWrt Linux-4.14.89
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4819406 Bytes = 4.6 MiB
   Load Address: 42208000
   Entry Point:  42208000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
Setting up atags for msm partition: rootfs

device nand0 , # parts = 1
 #: name                size            offset          mask_flags
 0: fs                  0x04000000      0x00000000      0

active partition: nand0,0 - (fs) 0x04000000 @ 0x00000000

defaults:
mtdids  : none
mtdparts: none
Using machid 0x1260 from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.89 (jenkins@tofu-z77hvub18_openwrt) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+8849-8f8ac4c3dc)) #0 SMP Thu Dec 20 13:01:38 2018
[    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Buffalo WXR-2533DHP
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x88/0x408 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu @ddc01000 s29324 r8192 d23924 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 121920
[    0.000000] Kernel command line: 
[    0.000000] Bootloader command line (ignored): console=ttyHSL1,115200n8 ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 472264K/491520K available (4745K kernel code, 152K rwdata, 1260K rodata, 8192K init, 228K bss, 19256K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xde800000 - 0xff800000   ( 528 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xde000000   ( 480 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc07a25f8   (5738 kB)
[    0.000000]       .init : 0xc0900000 - 0xc1100000   (8192 kB)
[    0.000000]       .data : 0xc1100000 - 0xc11261c0   ( 153 kB)
[    0.000000]        .bss : 0xc1128000 - 0xc11610d8   ( 229 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 305801671480 ns
[    0.000006] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000020] Switching to timer-based delay loop, resolution 160ns
[    0.000233] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000258] pid_max: default: 32768 minimum: 301
[    0.000381] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000397] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000981] CPU: Testing write buffer coherency: ok
[    0.001752] Setting up static identity map for 0x42300000 - 0x42300060
[    0.001912] Hierarchical SRCU implementation.
[    0.002650] smp: Bringing up secondary CPUs ...
[    0.004459] smp: Brought up 1 node, 2 CPUs
[    0.004478] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.004491] CPU: All CPU(s) started in SVC mode.
[    0.014986] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.015147] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015173] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.015284] pinctrl core: initialized pinctrl subsystem
[    0.016308] NET: Registered protocol family 16
[    0.016556] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017914] cpuidle: using governor ladder
[    0.017980] cpuidle: using governor menu
[    0.039275] msm_bus_fabric_init_driver
[    0.040686] usbcore: registered new interface driver usbfs
[    0.040777] usbcore: registered new interface driver hub
[    0.040867] usbcore: registered new device driver usb
[    0.040929] pps_core: LinuxPPS API ver. 1 registered
[    0.040941] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti 
[    0.040972] PTP clock support registered
[    0.042787] clocksource: Switched to clocksource dg_timer
[    0.046101] NET: Registered protocol family 2
[    0.046616] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.046660] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.046713] TCP: Hash tables configured (established 4096 bind 4096)
[    0.046805] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.046835] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.047035] NET: Registered protocol family 1
[    0.187062] No memory allocated for crashlog
[    0.187376] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.192028] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.192043] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.198948] io scheduler noop registered
[    0.198967] io scheduler deadline registered (default)
[    0.200358] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda not found, using dummy regulator
[    0.200465] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda_phy not found, using dummy regulator
[    0.200562] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda_refclk not found, using dummy regulator
[    0.201344] OF: PCI: host bridge /soc/pci@1b500000 ranges:
[    0.201388] OF: PCI:    IO 0x0fe00000..0x0fefffff -> 0x0fe00000
[    0.201413] OF: PCI:   MEM 0x08000000..0x0fdfffff -> 0x08000000
[    0.309447] qcom-pcie 1b500000.pci: link up
[    0.309631] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.309655] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.309674] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xfe00000-0xfefffff])
[    0.309689] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.310219] PCI: bus0: Fast back to back transfers disabled
[    0.312458] PCI: bus1: Fast back to back transfers disabled
[    0.312557] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.312581] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.312711] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.312736] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.313417] pcieport 0000:00:00.0: AER enabled with IRQ 34
[    0.313991] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda not found, using dummy regulator
[    0.314095] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda_phy not found, using dummy regulator
[    0.314199] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda_refclk not found, using dummy regulator
[    0.314953] OF: PCI: host bridge /soc/pci@1b700000 ranges:
[    0.314994] OF: PCI:    IO 0x31e00000..0x31efffff -> 0x31e00000
[    0.315017] OF: PCI:   MEM 0x2e000000..0x31dfffff -> 0x2e000000
[    0.424937] qcom-pcie 1b700000.pci: link up
[    0.425090] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[    0.425109] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.425124] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[    0.425579] PCI: bus0: Fast back to back transfers disabled
[    0.427926] PCI: bus1: Fast back to back transfers disabled
[    0.428011] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[    0.428033] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[    0.428164] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.428184] pci 0001:00:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
[    0.428672] pcieport 0001:00:00.0: AER enabled with IRQ 67
[    0.430956] L2 @ QSB rate. Forcing new rate.
[    0.431159] L2 @ 384000 KHz
[    0.431329] CPU0 @ 800000 KHz
[    0.431343] CPU1 @ QSB rate. Forcing new rate.
[    0.431461] CPU1 @ 384000 KHz
[    0.435536] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    0.436941] gsbi 1a200000.gsbi: GSBI port protocol: 3 crci: 0
[    0.438421] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.439246] msm_serial 16340000.serial: msm_serial: detected port #0
[    0.439344] msm_serial 16340000.serial: uartclk = 7372800
[    0.439423] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 100, base_baud = 460800) is a MSM
[    0.439460] msm_serial: console setup on port #0
[    1.172231] console [ttyMSM0] enabled
[    1.177094] msm_serial: driver initialized
[    1.185782] loop: module loaded
[    1.187920] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xaa
[    1.187957] nand: Micron MT29F2G08ABBEAH4
[    1.194439] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.198290] 2 fixed-partitions partitions found on MTD device qcom_nand.0
[    1.205774] Creating 2 MTD partitions on "qcom_nand.0":
[    1.212567] 0x000000000000-0x000004000000 : "ubi"
[    1.225487] random: fast init done
[    1.392922] 0x000004000000-0x000008000000 : "rootfs_1"
[    1.569415] spi_qup 1a280000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    1.584327] m25p80 spi0.0: w25q32dw (4096 Kbytes)
[    1.584484] 13 fixed-partitions partitions found on MTD device spi0.0
[    1.588013] Creating 13 MTD partitions on "spi0.0":
[    1.594534] 0x000000000000-0x000000010000 : "SBL1"
[    1.599973] 0x000000010000-0x000000030000 : "MIBIB"
[    1.604812] 0x000000030000-0x000000060000 : "SBL2"
[    1.609504] 0x000000060000-0x000000090000 : "SBL3"
[    1.614492] 0x000000090000-0x0000000a0000 : "DDRCONFIG"
[    1.619144] 0x0000000a0000-0x0000000b0000 : "SSD"
[    1.624328] 0x0000000b0000-0x0000000e0000 : "TZ"
[    1.629113] 0x0000000e0000-0x000000100000 : "RPM"
[    1.633933] 0x000000100000-0x000000170000 : "APPSBL"
[    1.638405] 0x000000170000-0x000000180000 : "APPSBLENV"
[    1.643537] 0x000000180000-0x0000001c0000 : "ART"
[    1.648408] 0x0000001c0000-0x0000001d0000 : "BOOTCONFIG"
[    1.653341] 0x0000001d0000-0x000000240000 : "APPSBL_1"
[    1.659584] libphy: GPIO Bitbanged MDIO: probed
[    1.704291] switch0: Atheros AR8337 rev. 2 switch registered on gpio-0
[    2.564122] ar8327: qca,phy-rgmii-en is not specified
[    2.564543] libphy: Fixed MDIO Bus: probed
[    2.588350] ipq806x-gmac-dwmac 37200000.ethernet: PTP uses main clock
[    2.588708] stmmac - user ID: 0x10, Synopsys ID: 0x37
[    2.593890] ipq806x-gmac-dwmac 37200000.ethernet: Ring mode enabled
[    2.598812] ipq806x-gmac-dwmac 37200000.ethernet: DMA HW capability register supported
[    2.604960] ipq806x-gmac-dwmac 37200000.ethernet: Enhanced/Alternate descriptors
[    2.612873] ipq806x-gmac-dwmac 37200000.ethernet: Enabled extended descriptors
[    2.620515] ipq806x-gmac-dwmac 37200000.ethernet: RX Checksum Offload Engine supported
[    2.627544] ipq806x-gmac-dwmac 37200000.ethernet: COE Type 2
[    2.635414] ipq806x-gmac-dwmac 37200000.ethernet: TX Checksum insertion supported
[    2.641173] ipq806x-gmac-dwmac 37200000.ethernet: Wake-Up On Lan supported
[    2.648633] ipq806x-gmac-dwmac 37200000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.676057] ipq806x-gmac-dwmac 37400000.ethernet: PTP uses main clock
[    2.676305] stmmac - user ID: 0x10, Synopsys ID: 0x37
[    2.681486] ipq806x-gmac-dwmac 37400000.ethernet: Ring mode enabled
[    2.686596] ipq806x-gmac-dwmac 37400000.ethernet: DMA HW capability register supported
[    2.692597] ipq806x-gmac-dwmac 37400000.ethernet: Enhanced/Alternate descriptors
[    2.700643] ipq806x-gmac-dwmac 37400000.ethernet: Enabled extended descriptors
[    2.708206] ipq806x-gmac-dwmac 37400000.ethernet: RX Checksum Offload Engine supported
[    2.715232] ipq806x-gmac-dwmac 37400000.ethernet: COE Type 2
[    2.723142] ipq806x-gmac-dwmac 37400000.ethernet: TX Checksum insertion supported
[    2.728880] ipq806x-gmac-dwmac 37400000.ethernet: Wake-Up On Lan supported
[    2.736323] ipq806x-gmac-dwmac 37400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.743794] i2c /dev entries driver
[    2.752462] Calibration not found.
[    2.754913] qcom-tsens 900000.thermal-sensor: tsens calibration failed
[    2.759430] Speed bin: 0
[    2.764883] PVS bin: 1
[    2.768865] cpuidle: enable-method property 'qcom,kpss-acc-v1' found operations
[    2.769743] cpuidle: enable-method property 'qcom,kpss-acc-v1' found operations
[    2.777474] sdhci: Secure Digital Host Controller Interface driver
[    2.784238] sdhci: Copyright(c) Pierre Ossman
[    2.790419] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.796529] NET: Registered protocol family 10
[    2.801830] Segment Routing with IPv6
[    2.805015] NET: Registered protocol family 17
[    2.809219] 8021q: 802.1Q VLAN Support v1.8
[    2.812936] Registering SWP/SWPB emulation handler
[    2.829454] qcom_rpm 108000.rpm: RPM firmware 3.0.16777342
[    2.844830] s1a: supplied by regulator-dummy
[    2.844916] s1a: Bringing 0uV into 1050000-1050000uV
[    2.848468] s1b: supplied by regulator-dummy
[    2.853240] s1b: Bringing 0uV into 1050000-1050000uV
[    2.857613] s2a: supplied by regulator-dummy
[    2.862367] s2a: Bringing 0uV into 800000-800000uV
[    2.866890] s2b: supplied by regulator-dummy
[    2.871231] s2b: Bringing 0uV into 800000-800000uV
[    2.881060] UBI: auto-attach mtd0
[    2.881095] ubi0: attaching mtd0
[    2.977065] random: crng init done
[    3.911204] ubi0: scanning is finished
[    3.931436] ubi0: attached mtd0 (name "ubi", size 64 MiB)
[    3.931457] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.935876] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.942576] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.949486] ubi0: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
[    3.956265] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    3.962455] ubi0: max/mean erase counter: 12/1, WL threshold: 4096, image sequence number: 0
[    3.969542] ubi0: available PEBs: 136, total reserved PEBs: 376, PEBs reserved for bad PEB handling: 40
[    3.978153] hctosys: unable to open rtc device[    4.009139] Freeing unused kernel memory: 8192K
[    4.045472] init: Console is alive
[    4.045767] init: - watchdog -
[    4.063289] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.069988] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.071844] SCSI subsystem initialized
[    4.080623] ehci-platform: EHCI generic platform driver
[    4.083152] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.085039] ohci-platform: OHCI generic platform driver
[    4.221365] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    4.221461] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    4.226232] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    4.233519] xhci-hcd xhci-hcd.0.auto: irq 110, io mem 0x11000000
[    4.243461] hub 1-0:1.0: USB hub found
[    4.248960] hub 1-0:1.0: 1 port detected
[    4.252779] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    4.256657] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    4.261871] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0  SuperSpeed
[    4.269581] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.276422] hub 2-0:1.0: USB hub found
[    4.284436] hub 2-0:1.0: 1 port detected
[    4.288146] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.291995] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    4.297499] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    4.304929] xhci-hcd xhci-hcd.1.auto: irq 111, io mem 0x10000000
[    4.314673] hub 3-0:1.0: USB hub found
[    4.320479] hub 3-0:1.0: 1 port detected
[    4.324313] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.328102] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    4.333466] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
[    4.341015] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.347971] hub 4-0:1.0: USB hub found
[    4.355984] hub 4-0:1.0: 1 port detected
[    4.361164] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.364940] init: - preinit -
[    5.693942] Generic PHY fixed-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=POLL)
[    5.695341] dwmac1000: Master AXI performs any burst length
[    5.702849] ipq806x-gmac-dwmac 37400000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[    5.708490] ipq806x-gmac-dwmac 37400000.ethernet eth1: registered PTP clock
[    5.718340] IPv6: ADDRCONF(NETDEV_UP): eth1: 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
[    6.793200] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[    6.793275] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[    8.899424] procd: - early -
[    8.899562] procd: - watchdog -
[    9.550522] procd: - watchdog -
[    9.551021] procd: - ubus -
[    9.605286] procd: - init -
Please press Enter to activate this console.
[    9.709522] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.711344] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.718577] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[    9.720232] Backport generated by backports.git v4.19.7-1-0-g148b072d
[    9.728596] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.736682] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[    9.761616] xt_time: kernel timezone is -0000
[    9.779861] PPP generic driver version 2.4.2
[    9.781661] NET: Registered protocol family 24
[    9.795285] ath10k 4.16 driver, optimized for CT firmware, probing pci device: 0x40.
[    9.795996] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[    9.802675] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    9.975599] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:01:00.0.txt failed with error -2
[    9.975643] ath10k_pci 0000:01:00.0: Falling back to user helper
[   10.013864] firmware ath10k!fwcfg-pci-0000:01:00.0.txt: firmware_loading_store: map pages failed
[   10.014180] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
[   10.021726] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.259017] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-5.bin failed with error -2
[   14.259057] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.307517] firmware ath10k!QCA99X0!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[   14.307788] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-2.bin failed with error -2
[   14.315843] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.367096] firmware ath10k!QCA99X0!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[   14.367442] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/firmware-6.bin failed with error -2
[   14.375449] ath10k_pci 0000:01:00.0: Falling back to user helper
[   14.421036] firmware ath10k!QCA99X0!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   14.422707] ath10k_pci 0000:01:00.0: qca99x0 hw2.0 target 0x01000000 chip_id 0x003b01ff sub 168c:0002
[   14.429027] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   14.441474] ath10k_pci 0000:01:00.0: firmware ver 10.4b-ct-9980-fW-012-620ae964 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT crc32 52695766
[   14.507362] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id 1:1 crc32 08fa09f2
[   15.694480] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   15.694508] ath10k_pci 0000:01:00.0: msdu-desc: 2500  skid: 32
[   15.770280] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   15.771030] ath10k_pci 0000:01:00.0: wmi print 'free: 35468 iram: 35780 sram: 12808'
[   16.013030] ath10k_pci 0000:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   16.121879] ath10k 4.16 driver, optimized for CT firmware, probing pci device: 0x40.
[   16.123055] ath10k_pci 0001:01:00.0: enabling device (0140 -> 0142)
[   16.129615] ath10k_pci 0001:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   16.304899] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/fwcfg-pci-0001:01:00.0.txt failed with error -2
[   16.304937] ath10k_pci 0001:01:00.0: Falling back to user helper
[   16.424350] firmware ath10k!fwcfg-pci-0001:01:00.0.txt: firmware_loading_store: map pages failed
[   16.424542] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0001:01:00.0.bin failed with error -2
[   16.432201] ath10k_pci 0001:01:00.0: Falling back to user helper
[   21.382164] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-5.bin failed with error -2
[   21.382212] ath10k_pci 0001:01:00.0: Falling back to user helper
[   21.436034] firmware ath10k!QCA99X0!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[   21.436331] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-2.bin failed with error -2
[   21.444355] ath10k_pci 0001:01:00.0: Falling back to user helper
[   21.497140] firmware ath10k!QCA99X0!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[   21.497481] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/firmware-6.bin failed with error -2
[   21.505501] ath10k_pci 0001:01:00.0: Falling back to user helper
[   21.555474] firmware ath10k!QCA99X0!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   21.555602] ath10k_pci 0001:01:00.0: qca99x0 hw2.0 target 0x01000000 chip_id 0x003b01ff sub 168c:0002
[   21.563391] ath10k_pci 0001:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   21.574658] ath10k_pci 0001:01:00.0: firmware ver 10.4b-ct-9980-fW-012-620ae964 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT crc32 52695766
[   21.641838] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id 1:2 crc32 08fa09f2
[   22.823399] ath10k_pci 0001:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   22.823426] ath10k_pci 0001:01:00.0: msdu-desc: 2500  skid: 32
[   22.901850] ath10k_pci 0001:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   22.902632] ath10k_pci 0001:01:00.0: wmi print 'free: 35468 iram: 35780 sram: 12808'
[   23.150497] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   23.262587] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.720854] Generic PHY fixed-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=POLL)
[   26.721558] dwmac1000: Master AXI performs any burst length
[   26.729828] ipq806x-gmac-dwmac 37400000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   26.735282] ipq806x-gmac-dwmac 37400000.ethernet eth1: registered PTP clock
[   26.744309] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   26.771635] br-lan: port 1(eth1.1) entered blocking state
[   26.771663] br-lan: port 1(eth1.1) entered disabled state
[   26.776270] device eth1.1 entered promiscuous mode
[   26.781386] device eth1 entered promiscuous mode
[   26.796647] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   26.807719] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[   26.808427] dwmac1000: Master AXI performs any burst length
[   26.816694] ipq806x-gmac-dwmac 37200000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   26.822087] ipq806x-gmac-dwmac 37200000.ethernet eth0: registered PTP clock
[   26.831530] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.844112] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   27.754759] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   27.757885] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   27.763657] br-lan: port 1(eth1.1) entered blocking state
[   27.768708] br-lan: port 1(eth1.1) entered forwarding state
[   27.777502] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   27.913229] ipq806x-gmac-dwmac 37200000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   27.913372] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   27.921991] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+8855-dbecc23962
 -----------------------------------------------------
=== 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:/# sysupgrade http://taiha.net/jenkins/job/OpenWrt-master-BUFFALO-W
XR-2533DHP/lastSuccessfulBuild/artifact/bin/targets/ipq806x/generic/openwrt-ipq8
06x-buffalo_wxr-2533dhp-squashfs-sysupgrade.bin
Downloading 'http://taiha.net/jenkins/job/OpenWrt-master-BUFFALO-WXR-2533DHP/lastSuccessfulBuild/artifact/bin/targets/ipq806x/generic/openwrt-ipq806x-buffalo_wxr-2533dhp-squashfs-sysupgrade.bin'
Connecting to 240b:12:500:65f0:c822:64a3:7e11:4961:80
Writing to '/tmp/sysupgrade.img'
/tmp/sysupgrade.img  100% |*******************************|  4890k  0:00:00 ETA
Download completed (5008076 bytes)
Cannot save config while running from ramdisk.
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... ntpd odhcp6c udhcpc dnsmasq ubusd logd netifd odhcpd 
Sending KILL to remaining processes ... 
Performing system upgrade...

created fake-rootfs data: /tmp/fkroot.bin
fake-rootfs data checksum: 0xd0
[   65.679406] ubi1: attaching mtd1
[   66.865186] ubi1: scanning is finished
[   66.888168] ubi1: attached mtd1 (name "rootfs_1", size 64 MiB)
[   66.888194] ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   66.892972] ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   66.899747] ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
[   66.906698] ubi1: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
[   66.913461] ubi1: user volume: 3, internal volumes: 1, max. volumes count: 128
[   66.919625] ubi1: max/mean erase counter: 6/1, WL threshold: 4096, image sequence number: 1171577802
[   66.926740] ubi1: available PEBs: 136, total reserved PEBs: 376, PEBs reserved for bad PEB handling: 40
[   66.936144] ubi1: background thread "ubi_bgt1d" started, PID 1766
UBI device number 1, total 512 LEBs (65011712 bytes, 62.0 MiB), available 136 LEBs (17268736 bytes, 16.4 MiB), LEB size 126976 bytes (124.0 KiB)
Volume ID 0, size 18 LEBs (2285568 bytes, 2.1 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "kernel", alignment 1
Volume ID 1, size 1 LEBs (126976 bytes, 124.0 KiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "ubi_rootfs", alignment 1
write fake-rootfs data to ubi0_1
Volume ID 2, size 22 LEBs (2793472 bytes, 2.6 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 54218752
Volume ID 3, size 427 LEBs (54218752 bytes, 51.7 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
umount: can't unmount /: Invalid argument
[   71.331901] reboot: Restarting system


BUFFALO WXR-2533DHP U-Boot Ver 1.14 (May 18 2015 - 13:24:36)

CPU:   IPQ8064 clock 1.4 GHz
DRAM:  DDR3 512 MiB clock 533 MHz
NAND:  ECC 4 bits, 256 MiB
SF: Detected W25Q32 with page size 64 KiB, total 4 MiB
MMC:   
In:    serial
Out:   serial
Err:   serial
cdp: get part failed for 0:HLOS
cdp: get part failed for rootfs
Net:   MAC2 addr:74:3:bd:bc:1d:98
athrs17_reg_init: complete
athrs17_vlan_config ...done
S17c init  done
eth1
Memory Test Start
Pattern: 55555555
Pattern: AAAAAAAA
Pattern: 00000000
Memory Test Pass 

Hit any key to stop autoboot:  0 
Checking Bank1 Image ... 
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000004000000 : "mtd=0"
Bank1 Image is good
kernel_checksum is 0xef770a57 , rootfs_checksum is 0xd0 
Checking Bank2 Image ... 
Creating 1 MTD partitions on "nand0":
0x000004000000-0x000008000000 : "mtd=0"
UBI Volume is empty 
Bank2 Image is fail

NAND erase: device 0 offset 0x4000000, size 0x4000000
Erasing at 0x7fe0000 -- 100% complete.
OK
Creating 1 MTD partitions on "nand0":
0x000004000000-0x000008000000 : "mtd=0"
UBI: empty MTD device detected
UBI: create volume table (copy #1)
UBI: create volume table (copy #2)
Creating dynamic volume kernel of size 5332992
Creating dynamic volume ubi_rootfs of size 31490048
Creating dynamic volume ubi_rootfs_data of size 5332992
Bank2 UBI Partition is Broken
Cpoy to Bank2 Image from Bank1 Image 
Creating 1 MTD partitions on "nand0":
0x000004000000-0x000008000000 : "mtd=0"
2265046 bytes written to volume kernel
158 bytes written to volume ubi_rootfs
MMC Device 0 not found

dmagic1 0 dmagic2 0 
 
MMC Device 0 not found
Using nand device 1
Device 1: nand1... is now current device
bootargs=console=ttyHSL1,115200n8 ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs
Booting from flash
set mtdids nand0=nand0 && set mtdparts mtdparts=nand0:0x4000000@0x0(fs),${msmparts} && ubi part fs && ubi read 0x44000000 kernel && bootm 0x44000000
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000004000000 : "mtd=0"
   Image Name:   ARM OpenWrt Linux-4.14.89
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2264982 Bytes = 2.2 MiB
   Load Address: 42208000
   Entry Point:  42208000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
Setting up atags for msm partition: rootfs

device nand0 , # parts = 1
 #: name                size            offset          mask_flags
 0: fs                  0x04000000      0x00000000      0

active partition: nand0,0 - (fs) 0x04000000 @ 0x00000000

defaults:
mtdids  : none
mtdparts: none
Using machid 0x1260 from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.89 (jenkins@tofu-z77hvub18_openwrt) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+8849-8f8ac4c3dc)) #0 SMP Thu Dec 20 13:01:38 2018
[    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Buffalo WXR-2533DHP
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x88/0x408 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu @ddc01000 s29324 r8192 d23924 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 121920
[    0.000000] Kernel command line: 
[    0.000000] Bootloader command line (ignored): console=ttyHSL1,115200n8 ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 479436K/491520K available (4745K kernel code, 152K rwdata, 1260K rodata, 1024K init, 228K bss, 12084K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xde800000 - 0xff800000   ( 528 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xde000000   ( 480 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc07a25f8   (5738 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a261c0   ( 153 kB)
[    0.000000]        .bss : 0xc0a28000 - 0xc0a610d8   ( 229 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 305801671480 ns
[    0.000006] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000020] Switching to timer-based delay loop, resolution 160ns
[    0.000233] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000258] pid_max: default: 32768 minimum: 301
[    0.000380] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000397] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000971] CPU: Testing write buffer coherency: ok
[    0.001739] Setting up static identity map for 0x42300000 - 0x42300060
[    0.001898] Hierarchical SRCU implementation.
[    0.002637] smp: Bringing up secondary CPUs ...
[    0.004460] smp: Brought up 1 node, 2 CPUs
[    0.004478] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.004490] CPU: All CPU(s) started in SVC mode.
[    0.015005] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.015167] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015193] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.015304] pinctrl core: initialized pinctrl subsystem
[    0.016317] NET: Registered protocol family 16
[    0.016566] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017921] cpuidle: using governor ladder
[    0.017988] cpuidle: using governor menu
[    0.039324] msm_bus_fabric_init_driver
[    0.040786] usbcore: registered new interface driver usbfs
[    0.040880] usbcore: registered new interface driver hub
[    0.040971] usbcore: registered new device driver usb
[    0.041031] pps_core: LinuxPPS API ver. 1 registered
[    0.041044] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti 
[    0.041075] PTP clock support registered
[    0.042920] clocksource: Switched to clocksource dg_timer
[    0.046232] NET: Registered protocol family 2
[    0.046750] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.046792] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.046845] TCP: Hash tables configured (established 4096 bind 4096)
[    0.046939] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.046970] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.047163] NET: Registered protocol family 1
[    0.048321] No memory allocated for crashlog
[    0.048588] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.053527] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.053545] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.062791] io scheduler noop registered
[    0.062810] io scheduler deadline registered (default)
[    0.064424] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda not found, using dummy regulator
[    0.064537] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda_phy not found, using dummy regulator
[    0.064633] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda_refclk not found, using dummy regulator
[    0.065410] OF: PCI: host bridge /soc/pci@1b500000 ranges:
[    0.065454] OF: PCI:    IO 0x0fe00000..0x0fefffff -> 0x0fe00000
[    0.065479] OF: PCI:   MEM 0x08000000..0x0fdfffff -> 0x08000000
[    0.173117] qcom-pcie 1b500000.pci: link up
[    0.173301] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.173325] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.173344] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xfe00000-0xfefffff])
[    0.173359] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.173882] PCI: bus0: Fast back to back transfers disabled
[    0.176115] PCI: bus1: Fast back to back transfers disabled
[    0.176213] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.176238] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.176367] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.176392] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.176940] pcieport 0000:00:00.0: AER enabled with IRQ 34
[    0.177494] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda not found, using dummy regulator
[    0.177588] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda_phy not found, using dummy regulator
[    0.177701] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda_refclk not found, using dummy regulator
[    0.178452] OF: PCI: host bridge /soc/pci@1b700000 ranges:
[    0.178491] OF: PCI:    IO 0x31e00000..0x31efffff -> 0x31e00000
[    0.178514] OF: PCI:   MEM 0x2e000000..0x31dfffff -> 0x2e000000
[    0.288419] qcom-pcie 1b700000.pci: link up
[    0.288582] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[    0.288603] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.288617] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[    0.289088] PCI: bus0: Fast back to back transfers disabled
[    0.291458] PCI: bus1: Fast back to back transfers disabled
[    0.291542] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[    0.291564] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[    0.291696] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.291716] pci 0001:00:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
[    0.292223] pcieport 0001:00:00.0: AER enabled with IRQ 67
[    0.294675] L2 @ QSB rate. Forcing new rate.
[    0.294885] L2 @ 384000 KHz
[    0.295056] CPU0 @ 800000 KHz
[    0.295069] CPU1 @ QSB rate. Forcing new rate.
[    0.295188] CPU1 @ 384000 KHz
[    0.299157] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    0.300554] gsbi 1a200000.gsbi: GSBI port protocol: 3 crci: 0
[    0.301994] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.302840] msm_serial 16340000.serial: msm_serial: detected port #0
[    0.302940] msm_serial 16340000.serial: uartclk = 7372800
[    0.303021] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 100, base_baud = 460800) is a MSM
[    0.303058] msm_serial: console setup on port #0
[    1.035919] console [ttyMSM0] enabled
[    1.040612] msm_serial: driver initialized
[    1.049290] loop: module loaded
[    1.051437] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xaa
[    1.051472] nand: Micron MT29F2G08ABBEAH4
[    1.057952] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.061800] 2 fixed-partitions partitions found on MTD device qcom_nand.0
[    1.069289] Creating 2 MTD partitions on "qcom_nand.0":
[    1.076174] 0x000000000000-0x000004000000 : "ubi"
[    1.088958] random: fast init done
[    1.255704] 0x000004000000-0x000008000000 : "rootfs_1"
[    1.430904] spi_qup 1a280000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    1.445696] m25p80 spi0.0: w25q32dw (4096 Kbytes)
[    1.445850] 13 fixed-partitions partitions found on MTD device spi0.0
[    1.449382] Creating 13 MTD partitions on "spi0.0":
[    1.455890] 0x000000000000-0x000000010000 : "SBL1"
[    1.461335] 0x000000010000-0x000000030000 : "MIBIB"
[    1.466187] 0x000000030000-0x000000060000 : "SBL2"
[    1.470890] 0x000000060000-0x000000090000 : "SBL3"
[    1.475866] 0x000000090000-0x0000000a0000 : "DDRCONFIG"
[    1.480512] 0x0000000a0000-0x0000000b0000 : "SSD"
[    1.485713] 0x0000000b0000-0x0000000e0000 : "TZ"
[    1.490482] 0x0000000e0000-0x000000100000 : "RPM"
[    1.495268] 0x000000100000-0x000000170000 : "APPSBL"
[    1.499769] 0x000000170000-0x000000180000 : "APPSBLENV"
[    1.504920] 0x000000180000-0x0000001c0000 : "ART"
[    1.509760] 0x0000001c0000-0x0000001d0000 : "BOOTCONFIG"
[    1.514742] 0x0000001d0000-0x000000240000 : "APPSBL_1"
[    1.520974] libphy: GPIO Bitbanged MDIO: probed
[    1.545534] switch0: Atheros AR8337 rev. 2 switch registered on gpio-0
[    2.386085] ar8327: qca,phy-rgmii-en is not specified
[    2.386473] libphy: Fixed MDIO Bus: probed
[    2.391822] ipq806x-gmac-dwmac 37200000.ethernet: PTP uses main clock
[    2.394538] stmmac - user ID: 0x10, Synopsys ID: 0x37
[    2.400628] ipq806x-gmac-dwmac 37200000.ethernet: Ring mode enabled
[    2.405749] ipq806x-gmac-dwmac 37200000.ethernet: DMA HW capability register supported
[    2.411743] ipq806x-gmac-dwmac 37200000.ethernet: Enhanced/Alternate descriptors
[    2.419796] ipq806x-gmac-dwmac 37200000.ethernet: Enabled extended descriptors
[    2.427360] ipq806x-gmac-dwmac 37200000.ethernet: RX Checksum Offload Engine supported
[    2.434388] ipq806x-gmac-dwmac 37200000.ethernet: COE Type 2
[    2.442204] ipq806x-gmac-dwmac 37200000.ethernet: TX Checksum insertion supported
[    2.448100] ipq806x-gmac-dwmac 37200000.ethernet: Wake-Up On Lan supported
[    2.455477] ipq806x-gmac-dwmac 37200000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.463990] ipq806x-gmac-dwmac 37400000.ethernet: PTP uses main clock
[    2.470947] stmmac - user ID: 0x10, Synopsys ID: 0x37
[    2.477195] ipq806x-gmac-dwmac 37400000.ethernet: Ring mode enabled
[    2.482136] ipq806x-gmac-dwmac 37400000.ethernet: DMA HW capability register supported
[    2.488278] ipq806x-gmac-dwmac 37400000.ethernet: Enhanced/Alternate descriptors
[    2.496272] ipq806x-gmac-dwmac 37400000.ethernet: Enabled extended descriptors
[    2.503832] ipq806x-gmac-dwmac 37400000.ethernet: RX Checksum Offload Engine supported
[    2.510784] ipq806x-gmac-dwmac 37400000.ethernet: COE Type 2
[    2.518765] ipq806x-gmac-dwmac 37400000.ethernet: TX Checksum insertion supported
[    2.524575] ipq806x-gmac-dwmac 37400000.ethernet: Wake-Up On Lan supported
[    2.531878] ipq806x-gmac-dwmac 37400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.539407] i2c /dev entries driver
[    2.548166] Calibration not found.
[    2.550450] qcom-tsens 900000.thermal-sensor: tsens calibration failed
[    2.555169] Speed bin: 0
[    2.560427] PVS bin: 1
[    2.564487] cpuidle: enable-method property 'qcom,kpss-acc-v1' found operations
[    2.565363] cpuidle: enable-method property 'qcom,kpss-acc-v1' found operations
[    2.573013] sdhci: Secure Digital Host Controller Interface driver
[    2.579873] sdhci: Copyright(c) Pierre Ossman
[    2.586116] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.592084] NET: Registered protocol family 10
[    2.597514] Segment Routing with IPv6
[    2.600515] NET: Registered protocol family 17
[    2.605008] 8021q: 802.1Q VLAN Support v1.8
[    2.608556] Registering SWP/SWPB emulation handler
[    2.625077] qcom_rpm 108000.rpm: RPM firmware 3.0.16777342
[    2.640317] s1a: supplied by regulator-dummy
[    2.640403] s1a: Bringing 0uV into 1050000-1050000uV
[    2.644025] s1b: supplied by regulator-dummy
[    2.648651] s1b: Bringing 0uV into 1050000-1050000uV
[    2.653105] s2a: supplied by regulator-dummy
[    2.657935] s2a: Bringing 0uV into 800000-800000uV
[    2.662294] s2b: supplied by regulator-dummy
[    2.666815] s2b: Bringing 0uV into 800000-800000uV
[    2.676585] UBI: auto-attach mtd0
[    2.676620] ubi0: attaching mtd0
[    2.771894] random: crng init done
[    3.703369] ubi0: scanning is finished
[    3.723698] ubi0: attached mtd0 (name "ubi", size 64 MiB)
[    3.723720] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.728068] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.734906] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.741697] ubi0: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
[    3.748528] ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128
[    3.754767] ubi0: max/mean erase counter: 13/1, WL threshold: 4096, image sequence number: 0
[    3.761753] ubi0: available PEBs: 0, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 40
[    3.770525] ubi0: background thread "ubi_bgt0d" started, PID 62
[    3.771636] block ubiblock0_2: created from ubi0:2(rootfs)
[    3.785256] ubiblock: device ubiblock0_2 (rootfs) set to be root file[    3.807236] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    3.809550] Freeing unused kernel memory: 1024K
[    4.218765] init: Console is alive
[    4.218896] init: - watchdog -
[    5.275578] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.338958] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.340910] SCSI subsystem initialized
[    5.349699] ehci-platform: EHCI generic platform driver
[    5.352287] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.354237] ohci-platform: OHCI generic platform driver
[    5.491947] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.492026] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    5.496767] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    5.504092] xhci-hcd xhci-hcd.0.auto: irq 110, io mem 0x11000000
[    5.514065] hub 1-0:1.0: USB hub found
[    5.519531] hub 1-0:1.0: 1 port detected
[    5.523408] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.527152] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    5.532445] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0  SuperSpeed
[    5.540162] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.547031] hub 2-0:1.0: USB hub found
[    5.555000] hub 2-0:1.0: 1 port detected
[    5.558742] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    5.562572] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    5.568088] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x0000000002010010
[    5.575500] xhci-hcd xhci-hcd.1.auto: irq 111, io mem 0x10000000
[    5.585269] hub 3-0:1.0: USB hub found
[    5.591058] hub 3-0:1.0: 1 port detected
[    5.594878] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    5.598678] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    5.604030] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
[    5.611594] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.618544] hub 4-0:1.0: USB hub found
[    5.626539] hub 4-0:1.0: 1 port detected
[    5.631817] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.644966] init: - preinit -
[    7.476861] Generic PHY fixed-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=POLL)
[    7.478368] dwmac1000: Master AXI performs any burst length
[    7.485848] ipq806x-gmac-dwmac 37400000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[    7.491337] ipq806x-gmac-dwmac 37400000.ethernet eth1: registered PTP clock
[    7.501189] IPv6: ADDRCONF(NETDEV_UP): eth1: 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
[    8.553642] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[    8.553713] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   10.773291] UBIFS (ubi0:3): default file-system created
[   11.003900] UBIFS (ubi0:3): background thread "ubifs_bgt0_3" started, PID 146
[   11.259172] UBIFS (ubi0:3): UBIFS: mounted UBI device 0, volume 3, name "rootfs_data"
[   11.259220] UBIFS (ubi0:3): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.266118] UBIFS (ubi0:3): FS size: 52948992 bytes (50 MiB, 417 LEBs), journal size 2666496 bytes (2 MiB, 21 LEBs)
[   11.275967] UBIFS (ubi0:3): reserved for root: 2500911 bytes (2442 KiB)
[   11.286250] UBIFS (ubi0:3): media format: w4/r0 (latest is w5/r0), UUID CDD1044B-1045-48AF-83BC-80C1B67A1394, small LPT model
[   11.296754] mount_root: overlay filesystem has not been fully initialized yet
[   11.304594] mount_root: switching to ubifs overlay
[   11.337665] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.462077] procd: - early -
[   11.462255] procd: - watchdog -
[   12.136573] procd: - watchdog -
[   12.137066] procd: - ubus -
[   12.228244] procd: - init -
Please press Enter to activate this console.
[   12.437084] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.439432] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.446643] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   12.447797] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   12.456178] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.464372] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[   12.492337] xt_time: kernel timezone is -0000
[   12.518176] PPP generic driver version 2.4.2
[   12.519623] NET: Registered protocol family 24
[   12.532410] ath10k 4.16 driver, optimized for CT firmware, probing pci device: 0x40.
[   12.532920] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[   12.539874] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   12.715891] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:01:00.0.txt failed with error -2
[   12.715934] ath10k_pci 0000:01:00.0: Falling back to user helper
[   12.748124] firmware ath10k!fwcfg-pci-0000:01:00.0.txt: firmware_loading_store: map pages failed
[   12.748456] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
[   12.756101] ath10k_pci 0000:01:00.0: Falling back to user helper
[   16.824798] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-5.bin failed with error -2
[   16.824843] ath10k_pci 0000:01:00.0: Falling back to user helper
[   16.867820] firmware ath10k!QCA99X0!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[   16.868131] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-2.bin failed with error -2
[   16.876143] ath10k_pci 0000:01:00.0: Falling back to user helper
[   16.925109] firmware ath10k!QCA99X0!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[   16.925458] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/firmware-6.bin failed with error -2
[   16.933433] ath10k_pci 0000:01:00.0: Falling back to user helper
[   16.969418] firmware ath10k!QCA99X0!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   17.409313] ath10k_pci 0000:01:00.0: qca99x0 hw2.0 target 0x01000000 chip_id 0x003b01ff sub 168c:0002
[   17.409344] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   17.419486] ath10k_pci 0000:01:00.0: firmware ver 10.4b-ct-9980-fW-012-620ae964 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT crc32 52695766
[   17.486698] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id 1:1 crc32 08fa09f2
[   18.664895] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   18.664922] ath10k_pci 0000:01:00.0: msdu-desc: 2500  skid: 32
[   18.740771] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   18.741519] ath10k_pci 0000:01:00.0: wmi print 'free: 35468 iram: 35780 sram: 12808'
[   18.983955] ath10k_pci 0000:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   19.079243] ath10k 4.16 driver, optimized for CT firmware, probing pci device: 0x40.
[   19.080186] ath10k_pci 0001:01:00.0: enabling device (0140 -> 0142)
[   19.086998] ath10k_pci 0001:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   19.255173] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/fwcfg-pci-0001:01:00.0.txt failed with error -2
[   19.255209] ath10k_pci 0001:01:00.0: Falling back to user helper
[   19.580424] firmware ath10k!fwcfg-pci-0001:01:00.0.txt: firmware_loading_store: map pages failed
[   19.580627] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0001:01:00.0.bin failed with error -2
[   19.588378] ath10k_pci 0001:01:00.0: Falling back to user helper
[   21.231532] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-5.bin failed with error -2
[   21.231577] ath10k_pci 0001:01:00.0: Falling back to user helper
[   21.274512] firmware ath10k!QCA99X0!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[   21.274782] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-2.bin failed with error -2
[   21.282722] ath10k_pci 0001:01:00.0: Falling back to user helper
[   21.352406] firmware ath10k!QCA99X0!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[   21.352671] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/firmware-6.bin failed with error -2
[   21.360763] ath10k_pci 0001:01:00.0: Falling back to user helper
[   21.411628] firmware ath10k!QCA99X0!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   21.411830] ath10k_pci 0001:01:00.0: qca99x0 hw2.0 target 0x01000000 chip_id 0x003b01ff sub 168c:0002
[   21.419580] ath10k_pci 0001:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   21.431185] ath10k_pci 0001:01:00.0: firmware ver 10.4b-ct-9980-fW-012-620ae964 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT crc32 52695766
[   21.498050] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id 1:2 crc32 08fa09f2
[   22.680151] ath10k_pci 0001:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   22.680183] ath10k_pci 0001:01:00.0: msdu-desc: 2500  skid: 32
[   22.757948] ath10k_pci 0001:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   22.758726] ath10k_pci 0001:01:00.0: wmi print 'free: 35468 iram: 35780 sram: 12808'
[   23.007042] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   23.112941] kmodloader: done loading kernel modules from /etc/modules.d/*
[   27.460773] Generic PHY fixed-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=POLL)
[   27.461478] dwmac1000: Master AXI performs any burst length
[   27.469761] ipq806x-gmac-dwmac 37400000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   27.475195] ipq806x-gmac-dwmac 37400000.ethernet eth1: registered PTP clock
[   27.484226] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   27.510929] br-lan: port 1(eth1.1) entered blocking state
[   27.510958] br-lan: port 1(eth1.1) entered disabled state
[   27.515560] device eth1.1 entered promiscuous mode
[   27.520682] device eth1 entered promiscuous mode
[   27.551804] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   27.558909] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[   27.559615] dwmac1000: Master AXI performs any burst length
[   27.567874] ipq806x-gmac-dwmac 37200000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   27.573330] ipq806x-gmac-dwmac 37200000.ethernet eth0: registered PTP clock
[   27.582682] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.600269] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   28.563399] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   28.566617] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   28.571700] br-lan: port 1(eth1.1) entered blocking state
[   28.577429] br-lan: port 1(eth1.1) entered forwarding state
[   28.595765] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   28.633401] ipq806x-gmac-dwmac 37200000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   28.633475] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.649836] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+8855-dbecc23962
 -----------------------------------------------------
=== 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:/# ubus call system board
{
        "kernel": "4.14.89",
        "hostname": "OpenWrt",
        "system": "ARMv7 Processor rev 0 (v7l)",
        "model": "Buffalo WXR-2533DHP",
        "board_name": "buffalo,wxr-2533dhp",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r0+8855-dbecc23962",
                "target": "ipq806x\/generic",
                "description": "OpenWrt SNAPSHOT r0+8855-dbecc23962"
        }
}

WXR-2533DHP ubinfo -a (stock)

stock firmwareにおける ubinfo -a のメモ。メーカーファームへの復旧用情報というような感じ。

root@AP7403BDBC1D98:/# ubinfo -a
UBI version:                    1
Count of UBI devices:           1
UBI control device major/minor: 10:58
Present UBI devices:            ubi0

ubi0
Volumes count:                           3
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     512 (65011712 bytes, 62.0 MiB)
Amount of available logical eraseblocks: 171 (21712896 bytes, 20.7 MiB)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       0
Count of reserved physical eraseblocks:  5
Current maximum erase counter value:     8
Minimum input/output unit size:          2048 bytes
Character device major/minor:            248:0
Present volumes:                         0, 1, 2

Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        42 LEBs (5332992 bytes, 5.1 MiB)
State:       OK
Name:        kernel
Character device major/minor: 248:1
-----------------------------------
Volume ID:   1 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        248 LEBs (31490048 bytes, 30.0 MiB)
State:       OK
Name:        ubi_rootfs
Character device major/minor: 248:2
-----------------------------------
Volume ID:   2 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        42 LEBs (5332992 bytes, 5.1 MiB)
State:       OK
Name:        ubi_rootfs_data
Character device major/minor: 248:3

WN-AC1167GR stock -> OpenWrt

それっぽい感じにヘッダを作り、投げ込めたのでメモ。
“wnac1167gr_v000.bin” というようなファイル名にリネームして放り込む必要がありそうな? → 特にリネームする必要は無かった。

br0: port 4(rai0) entering forwarding state
br0: port 3(ra1) entering forwarding state
br0: port 2(ra0) entering forwarding state
br0: port 1(eth2.1) entering forwarding state
device eth2.1 left promiscuous mode
br0: port 1(eth2.1) entering disabled state
sh: can't kill pid 719: No such process
route: SIOCDELRT: No such process
device ra0 left promiscuous mode
br0: port 2(ra0) entering disabled state
device ra1 left promiscuous mode
br0: port 3(ra1) entering disabled state
device wds0 is not a slave of br0
device wds1 is not a slave of br0
device wds2 is not a slave of br0
device wds3 is not a slave of br0
sh: can't kill pid 811: No such process
route: SIOCDELRT: No such process
device rai0 left promiscuous mode
br0: port 4(rai0) entering disabled state
interface wds4 does not exist!
ifconfig: SIOCGIFFLAGS: No such device
interface wds5 does not exist!
ifconfig: SIOCGIFFLAGS: No such device
interface wds6 does not exist!
ifconfig: SIOCGIFFLAGS: No such device
interface wds7 does not exist!
ifconfig: SIOCGIFFLAGS: No such device
Interface doesn't accept private ioctl...
set (8BE2): Network is down
Interface doesn't accept private ioctl...
set (8BE2): Network is down
Sent SIGKILL to all processes
Requesting system reboot
Restarting system.
Hardware reset!!


U-Boot 1.1.3 (Jul 30 2014 - 21:26:23)

Board: Ralink APSoC DRAM:  64 MB
Ralink UBoot ver: 4.0.1.0
ELX UBoot ver: 4.0.1.6 (Jul 30 2014 21:26:23)
Date:Jul 30 2014  Time:21:26:23
CPU: 580 MHz, MEM: 64 MB
#Reset_MT7530
MT7620N disable wan port phy 0

Please choose the operation: 1, 2, 3, 4, 9
                                                                                                                          0  
   
3: System Boot system code via Flash.
## Booting image at bc070000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.89
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1572544 Bytes =  1.5 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.14.89 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+8844-8b0f1087cc)) #0 Wed Dec 19 14:20:51 2018
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is I-O DATA WN-AC1167GR
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 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, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=0001af06
[    0.000000] Readback ErrCtl register=0001af06
[    0.000000] Memory: 59792K/65536K available (3650K kernel code, 169K rwdata, 852K rodata, 184K init, 207K bss, 5744K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015469] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087708] pid_max: default: 32768 minimum: 301
[    0.097110] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110134] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.130733] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.150215] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.162391] pinctrl core: initialized pinctrl subsystem
[    0.173240] NET: Registered protocol family 16
[    0.664925] PCI host bridge /pcie@10140000 ranges:
[    0.674322]  MEM 0x0000000020000000..0x000000002fffffff
[    0.684696]   IO 0x0000000010160000..0x000000001016ffff
[    0.711848] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.722885] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.735975] PCI host bridge to bus 0000:00
[    0.743971] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.757691] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.769418] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.782919] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.799126] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.815680] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.828738] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.842549] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.856050] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.870415] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.883925] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.898470] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.912817] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.922669] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.936186] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.954220] clocksource: Switched to clocksource systick
[    0.965893] NET: Registered protocol family 2
[    0.975340] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.989118] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.001710] TCP: Hash tables configured (established 1024 bind 1024)
[    1.014493] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.026011] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.038685] NET: Registered protocol family 1
[    1.049988] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    1.062734] Crashlog allocated RAM at address 0x3f00000
[    1.074984] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    1.093443] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.104948] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.134261] io scheduler noop registered
[    1.141907] io scheduler deadline registered (default)
[    1.152969] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.166616] console [ttyS0] disabled
[    1.173609] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    1.193384] console [ttyS0] enabled
[    1.193384] console [ttyS0] enabled
[    1.207155] bootconsole [early0] disabled
[    1.207155] bootconsole [early0] disabled
[    1.223589] cacheinfo: Failed to find cpu0 device node
[    1.233860] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.250494] spi spi0.0: force spi mode3
[    1.258992] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    1.268831] 9 fixed-partitions partitions found on MTD device spi0.0
[    1.281492] Creating 9 MTD partitions on "spi0.0":
[    1.291053] 0x000000000000-0x000000030000 : "u-boot"
[    1.301893] 0x000000030000-0x000000040000 : "u-boot-env"
[    1.313411] 0x000000040000-0x000000048000 : "Factory"
[    1.324481] 0x000000048000-0x000000050000 : "iNIC_rf"
[    1.335451] 0x000000050000-0x000000070000 : "NoUsed"
[    1.346240] 0x000000070000-0x000000724000 : "firmware"
[    1.361495] 2 uimage-fw partitions found on MTD device firmware
[    1.373360] Creating 2 MTD partitions on "firmware":
[    1.383268] 0x000000000000-0x00000017ff00 : "kernel"
[    1.394103] 0x00000017ff00-0x0000006b4000 : "rootfs"
[    1.404891] mtd: device 7 (rootfs) set to be root filesystem
[    1.417780] 1 squashfs-split partitions found on MTD device rootfs
[    1.430170] 0x00000051c000-0x0000006b4000 : "rootfs_data"
[    1.441868] 0x000000724000-0x0000007b0000 : "manufacture"
[    1.453527] 0x0000007b0000-0x0000007c0000 : "backup"
[    1.464422] 0x0000007c0000-0x000000800000 : "storage"
[    1.476152] libphy: Fixed MDIO Bus: probed
[    1.494665] libphy: mdio: probed
[    1.505816] mtk_soc_eth 10100000.ethernet: using fixed link parameters
[    1.520905] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.543657] mtk_soc_eth 10100000.ethernet: loaded mt7530 driver
[    1.556146] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.573158] rt2880_wdt 10000120.watchdog: Initialized
[    1.584634] NET: Registered protocol family 10
[    1.598207] Segment Routing with IPv6
[    1.605689] NET: Registered protocol family 17
[    1.614607] 8021q: 802.1Q VLAN Support v1.8
[    1.640878] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.655983] Freeing unused kernel memory: 184K
[    1.664861] This architecture does not have kernel memory protection.
[    2.884162] random: fast init done
[    3.376096] init: Console is alive
[    3.383103] init: - watchdog -
[    5.216454] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.602456] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.618831] init: - preinit -
[    7.679126] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
[    7.695385] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.707063] 8021q: adding VLAN 0 to HW filter on device eth0
[    7.718617] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3[    7.881440] random: procd: uninitialized urandom read (4 bytes read)
] or [4] key and hit [enter] to select the debug level
[    8.333303] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    8.382482] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.477085] mtk_soc_eth 10100000.ethernet eth0: port 5 link down
[    8.500674] procd: - early -
[    8.506519] procd: - watchdog -
[    8.720075] procd: - watchdog -
[    8.726625] procd: - ubus -
[    8.995261] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.119153] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.132436] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.146130] procd: - init -
Please press Enter to activate this console.
[    9.687288] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.912282] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.936696] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[    9.951681] Backport generated by backports.git v4.19.7-1-0-g148b072d
[    9.969253] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.991331] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   10.240395] xt_time: kernel timezone is -0000
[   10.405310] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[   10.417917] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   10.616088] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   10.634389] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   10.645359] mt76x2e 0000:01:00.0: Build: 1
[   10.653512] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   10.670106] mt76x2e 0000:01:00.0: Firmware running!
[   10.706126] PPP generic driver version 2.4.2
[   10.723773] NET: Registered protocol family 24
[   10.833645] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "Factory"
[   10.848119] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   10.863584] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[   10.976473] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.379026] urandom_read: 5 callbacks suppressed
[   12.379035] random: jshn: uninitialized urandom read (4 bytes read)
[   29.231715] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   29.285994] jffs2_build_filesystem(): unlocking the mtd device... 
[   29.286009] done.
[   29.302226] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   29.579476] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
[   29.610524] 8021q: adding VLAN 0 to HW filter on device eth0
[   29.805068] br-lan: port 1(eth0.1) entered blocking state
[   29.815907] br-lan: port 1(eth0.1) entered disabled state
[   29.827089] device eth0.1 entered promiscuous mode
[   29.836692] device eth0 entered promiscuous mode
[   30.020666] br-lan: port 1(eth0.1) entered blocking state
[   30.031498] br-lan: port 1(eth0.1) entered forwarding state
[   30.042845] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   30.611535] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   53.338536] done.
[   53.342445] jffs2: notice: (1277) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   54.227888] overlayfs: upper fs does not support tmpfile.
[   66.595958] random: crng init done



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+8851-5827264d5b
 -----------------------------------------------------
=== 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:/# ubus call system board
{
        "kernel": "4.14.89",
        "hostname": "OpenWrt",
        "system": "MediaTek MT7620A ver:2 eco:6",
        "model": "I-O DATA WN-AC1167GR",
        "board_name": "iodata,wn-ac1167gr",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r0+8851-5827264d5b",
                "target": "ramips\/mt7620",
                "description": "OpenWrt SNAPSHOT r0+8851-5827264d5b"
        }
}