タグ: factory

WN-DX1167R stock -> OpenWrt(仮2)

メインのブログで書いた通りユーザーが手動で編集することにしていた bootnum, debugflag 2つのflagを、sysupgrade関連のスクリプト内に押し込んで自動的に設定されるよう変更したもの。
stock firmwareが1番目のOSイメージ領域からブートしている状態と、2番目からの場合の2例を掲載。

stock: bootnum=1

  • 1番目のOSイメージでstock firmwareがブートしている状態からスタート
  • OpenWrtのinitramfs-factoryは2番目のOSイメージ領域に書き込まれブートされる
  • 415 – 417行目でbootnumとdebugflagをチェック、bootnumを1に設定しdebugflagを有効化
  • 504行目でZ-Loaderの中断が可能になる (debugflag)
  • 506行目で1番目のOSイメージ領域からブートしている旨が表示される
[  249.812000] led=9, on=1, off=1, blinks,=1, reset=0, time=4000 low_trigger=0
Unlocking firmware_2 ...

Writing from /tmp/fw.bin to firmware_2 ...     
Header checksum OK.
Data checksum OK
Unlocking persist ...
### Switch to bank 2 on next boot! ###
procd: - shutdown -
[  255.428000] br-lan: port 4(ra0) entered disabled state
[  255.436000] br-lan: port 3(rai0) entered disabled state
[  255.448000] br-lan: port 2(eth1) entered disabled state
[  255.460000] br-lan: port 1(eth0) entered disabled state
[  255.472000] device eth0 left promiscuous mode
[  255.480000] br-lan: port 1(eth0) entered disabled state
[  255.492000] ra2880stop()...Done
[  255.496000] eth1: ===> VirtualIF_close
[  255.504000] Free TX/RX Ring Memory!
[  255.512000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  255.528000] device eth1 left promiscuous mode
[  255.536000] br-lan: port 2(eth1) entered disabled state
[  255.544000] eth1: ===> VirtualIF_close
[  255.556000] device ra0 left promiscuous mode
[  255.564000] br-lan: port 4(ra0) entered disabled state
[  255.572000] device rai0 left promiscuous mode
[  255.584000] br-lan: port 3(rai0) entered disabled state
[  257.032000] WifiSysClose(), wdev idx = 0
[  257.048000] WifiSysGetBssInfoState(): BssInfoIdx 0 not found!!!
[  257.060000] WifiSysUpdateBssInfoState(): BssInfoIdx 0 not found!!!
### ap ###
[  258.552000] Device Instance
[  258.560000]  WDEV 00:
                Name:rai0
[  258.564000]          Wdev(list) Idx:0
[  258.572000]           Idx:8
[  258.576000]  WDEV 01:
                Name:rai1
[  258.584000]          Wdev(list) Idx:1
[  258.588000]           Idx:9
[  258.592000]  WDEV 02:
                Name:rai2
[  258.600000]          Wdev(list) Idx:2
[  258.608000]           Idx:10
[  258.612000]  WDEV 03:
                Name:rai3
[  258.616000]          Wdev(list) Idx:3
[  258.624000]           Idx:11
[  258.628000]  WDEV 04:
                Name:ra0
[  258.636000]          Wdev(list) Idx:4
[  258.640000]           Idx:12
[  258.644000]  WDEV 05:
                Name:ra1
[  258.652000]          Wdev(list) Idx:5
[  258.660000]           Idx:13
[  258.664000]  WDEV 06:
                Name:ra2
[  258.668000]          Wdev(list) Idx:6
[  258.676000]           Idx:14
[  258.680000]  WDEV 07:
                Name:ra3
[  258.688000]          Wdev(list) Idx:7
[  258.692000]           Idx:15
[  258.696000]  WDEV 08:
                Name:apclii0
[  258.704000]          Wdev(list) Idx:8
[  258.712000]           Idx:16
[  258.716000]  WDEV 09:
                Name:apcli0
[  258.724000]          Wdev(list) Idx:9
[  258.728000]           Idx:17
[  258.732000]  WDEV 10:
[  258.736000]  WDEV 11:
[  258.744000]  WDEV 12:
[  258.748000]  WDEV 13:
[  258.752000]  WDEV 14:
[  258.756000]  WDEV 15:
[  258.760000]  WDEV 16:
[  258.764000]  WDEV 17:
[  258.776000] WifiSysClose(), wdev idx = 4
[  258.788000] WifiSysGetBssInfoState(): BssInfoIdx 1 not found!!!
[  258.800000] WifiSysUpdateBssInfoState(): BssInfoIdx 1 not found!!!
[  258.812000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[  258.828000] WifiSysClose(), wdev idx = 0
[  258.832000] WifiSysClose(), wdev idx = 1
[  258.840000] WifiSysClose(), wdev idx = 2
[  258.848000] WifiSysClose(), wdev idx = 3
[  258.884000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[  258.896000] WifiSysClose(), wdev idx = 4
[  258.904000] WifiSysClose(), wdev idx = 5
[  258.912000] WifiSysClose(), wdev idx = 6
[  258.920000] WifiSysClose(), wdev idx = 7
[  258.928000] kill LoopBackTxTask task failed!
[  258.940000] AndesRestartCheck: Current TOP_MISC2(0x7)
[  258.996000] CmdReStartDLRsp: Status Success!, Status(0)
[  259.004000] AndesRestartCheck:  TOP_MISC2(1)
[  259.016000] RT28xxPciAsicRadioOff(): Not support for HIF_MT yet!
[  259.028000] RTMPDrvClose call RT28xxPciAsicRadioOff fail !!
[  259.036000] tx_kickout_fail_count = 0
[  259.044000] tx_timeout_fail_count = 0
[  259.052000] rx_receive_fail_count = 0
[  259.060000] alloc_cmd_msg = 1848
[  259.064000] free_cmd_msg = 1848
[  259.072000] cut_through_token_list_destroy(): 86231888,86231888
[  259.088000] cut_through_token_list_destroy(): 86231898,86231898
[  259.104000] FwOwn()::Set Fw Own
[  259.112000] RTMP_AllTimerListRelease: Size=0
[  259.120000] FwOwn()::Return since already in Fw Own...
[  259.132000] <---HwCtrlThread
procd: - reboot [  259.268000] Stopped WatchDog Timer.
-
[  259.284000] Restarting system.


U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87f98000

Config XHCI 40M PLL 
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 87fcb030
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 F1 80 1D 01]
Device found in MTK table, ID: 1f1, EXT_ID: 801d01
Support this Device in MTK table! 1f1 
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 1023
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
....============================================ 
Ralink UBoot Version: 5.0.0.0
-------------------------------------------- 
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection 
DRAM_TYPE: DDR3 
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Aug  6 2018  Time:14:37:41
============================================ 
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 880 MHZ #### 
 estimate memory size =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
.## Starting application at 0x81E00000 ...


Z-LOADER V1.28 | 08/06/2018 14:37:44


..
Checking image 2...
   Image Name:   3.10(XIK.1)b7
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    5642640 Bytes =  5.4 MB
   Load Address: 80001000
   Entry Point:  80001000
.......................................................................................   Verifying Combo Checksum ... .......................................................................................## Booting image at bf700000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.111 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9901-29b3122f32)) #0 SMP Fri Apr 19 18:38:16 2019
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is I-O DATA WN-DX1167R
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    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 start_kernel+0x90/0x4a4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81110000 s26192 r8192 d22960 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 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=00001001
[    0.000000] Readback ErrCtl register=00001001
[    0.000000] Memory: 119764K/131072K available (4497K kernel code, 230K rwdata, 1000K rodata, 3860K init, 248K bss, 11308K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015488] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087817] pid_max: default: 32768 minimum: 301
[    0.097126] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110147] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125864] Hierarchical SRCU implementation.
[    0.135320] smp: Bringing up secondary CPUs ...
[    0.144858] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.144867] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.144879] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.145013] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204699] Synchronize counters for CPU 1: done.
[    0.268617] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.268625] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.268632] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.268709] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325525] Synchronize counters for CPU 2: done.
[    0.385688] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.385696] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.385704] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.385790] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445094] Synchronize counters for CPU 3: done.
[    0.504697] smp: Brought up 1 node, 4 CPUs
[    0.516485] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535955] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548380] pinctrl core: initialized pinctrl subsystem
[    0.560001] NET: Registered protocol family 16
[    0.577896] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.887882] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.897946] ***** Xtal 40MHz *****
[    0.904680] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.914883] Port 0 N_FTS = 1b102800
[    0.921784] Port 1 N_FTS = 1b105000
[    0.928709] Port 2 N_FTS = 1b102800
[    2.087355] PCIE0 no card, disable it(RST&CLK)
[    2.096042] PCIE2 no card, disable it(RST&CLK)
[    2.104845]  -> 20107f2
[    2.109695] PCIE1 enabled
[    2.114874] PCI host bridge /pcie@1e140000 ranges:
[    2.124402]  MEM 0x0000000060000000..0x000000006fffffff
[    2.134758]   IO 0x000000001e160000..0x000000001e16ffff
[    2.145126] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.167761] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.179069] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.190297] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.202912] PCI host bridge to bus 0000:00
[    2.210926] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.224585] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.236332] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.249806] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.266547] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.279567] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.293386] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.306866] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[    2.320357] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.334876] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.344693] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.359393] clocksource: Switched to clocksource GIC
[    2.370552] NET: Registered protocol family 2
[    2.380001] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.393740] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.406345] TCP: Hash tables configured (established 1024 bind 1024)
[    2.419073] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.430573] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.443214] NET: Registered protocol family 1
[    5.829352] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    5.840537] Crashlog allocated RAM at address 0x3f00000
[    5.851106] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    5.870961] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.882440] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.902557] random: fast init done
[    5.905526] io scheduler noop registered
[    5.916961] io scheduler deadline registered (default)
[    5.928091] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    5.941833] console [ttyS0] disabled
[    5.948844] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    5.966853] console [ttyS0] enabled
[    5.966853] console [ttyS0] enabled
[    5.980605] bootconsole [early0] disabled
[    5.980605] bootconsole [early0] disabled
[    5.997174] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    6.010121] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    6.024144] Enable NFI Clock
[    6.029880] # MTK NAND # : Use HW ECC
[    6.037171] Device found in MTK table, ID: 1f1, EXT_ID: 801d01
[    6.048775] Support this Device in MTK table! 1f1 
[    6.058486] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    6.071352] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    6.083992] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    6.094041] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    6.109116] Scanning device for bad blocks
[    6.398842] 12 fixed-partitions partitions found on MTD device MT7621-NAND
[    6.412529] Creating 12 MTD partitions on "MT7621-NAND":
[    6.423107] 0x000000000000-0x000000100000 : "Bootloader"
[    6.434753] 0x000000100000-0x000000200000 : "u-boot-env"
[    6.446365] 0x000000200000-0x000000300000 : "Factory"
[    6.457433] 0x000000300000-0x000000400000 : "SecondBoot"
[    6.469024] 0x000000400000-0x000000800000 : "kernel"
[    6.479999] 0x000000800000-0x000003600000 : "ubi"
[    6.490740] 0x000003600000-0x000003700000 : "Config"
[    6.501704] 0x000003700000-0x000006900000 : "firmware_2"
[    6.513661] 0x000006900000-0x000006a00000 : "Config_2"
[    6.524953] 0x000006a00000-0x000006b00000 : "persist"
[    6.536034] 0x000006b00000-0x000006c00000 : "idmkey"
[    6.546954] 0x000006c00000-0x000007f80000 : "Backup"
[    6.558005] [mtk_nand] probe successfully!
[    6.566889] Signature matched and data read!
[    6.575384] load_fact_bbt success 1023
[    6.583513] libphy: Fixed MDIO Bus: probed
[    6.661937] libphy: mdio: probed
[    8.079430] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    8.091976] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    8.110957] NET: Registered protocol family 10
[    8.121086] Segment Routing with IPv6
[    8.128441] NET: Registered protocol family 17
[    8.137379] 8021q: 802.1Q VLAN Support v1.8
[    8.148636] UBI error: no valid UBI magic found inside mtd5
[    8.159787] hctosys: unable to open rtc device (rtc0)
[    8.183994] Freeing unused kernel memory: 3860K
[    8.193046] This architecture does not have kernel memory protection.
[    8.217061] init: Console is alive
[    8.224187] init: - watchdog -
[    8.242011] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.259019] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.289673] init: - preinit -
[    8.455267] mtk_soc_eth 1e100000.ethernet: PPE started
[    8.477829] random: procd: uninitialized urandom read (4 bytes read)
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.309121] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    9.714606] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[   11.592689] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.613930] procd: - early -
[   11.619824] procd: - watchdog -
[   12.249524] procd: - watchdog -
[   12.256078] procd: - ubus -
[   12.266330] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.319925] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.332951] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.346419] procd: - init -
Please press Enter to activate this console.
[   12.506500] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.524664] nat46: module (version 683fbd2b765506332a1af141545652bf58f03166) loaded.
[   12.545421] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.565367] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.585498] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.627961] Netfilter messages via NETLINK v0.30.
[   12.657603] xt_time: kernel timezone is -0000
[   12.673395] ctnetlink v0.93: registering with nfnetlink.
[   12.686049] PPP generic driver version 2.4.2
[   12.696300] NET: Registered protocol family 24
[   12.707853] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.793633] urandom_read: 5 callbacks suppressed
[   13.793645] random: jshn: uninitialized urandom read (4 bytes read)
[   35.564701] mtk_soc_eth 1e100000.ethernet: PPE started
[   35.581714] br-lan: port 1(eth0.1) entered blocking state
[   35.592593] br-lan: port 1(eth0.1) entered disabled state
[   35.604021] device eth0.1 entered promiscuous mode
[   35.613640] device eth0 entered promiscuous mode
[   35.632768] br-lan: port 1(eth0.1) entered blocking state
[   35.643621] br-lan: port 1(eth0.1) entered forwarding state
[   35.655287] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   36.014320] random: crng init done
[   36.590171] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+9901-29b3122f32
 -----------------------------------------------------
=== 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 https://taiha.net/jenkins/job/OpenWrt-master-IODATA-W
N-DX1167R/lastSuccessfulBuild/artifact/bin/targets/ramips/mt7621/openwrt-ramips-
mt7621-iodata_wn-dx1167r-squashfs-sysupgrade.bin
--2019-04-20 01:25:46--  https://taiha.net/jenkins/job/OpenWrt-master-IODATA-WN-DX1167R/lastSuccessfulBuild/artifact/bin/targets/ramips/mt7621/openwrt-ramips-mt7621-iodata_wn-dx1167r-squashfs-sysupgrade.bin
Resolving taiha.net... 240b:12:500:65f0:c822:64a3:7e11:4961, 49.129.167.30
Connecting to taiha.net|240b:12:500:65f0:c822:64a3:7e11:4961|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5888778 (5.6M) [application/octet-stream]
Saving to: '/tmp/sysupgrade.img'

/tmp/sysupgrade.img 100%[===================>]   5.62M  3.07MB/s    in 1.8s    

2019-04-20 01:25:48 (3.07 MB/s) - '/tmp/sysupgrade.img' saved [5888778/5888778]

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 ... netifd odhcpd uhttpd nlbwmon sh sleep ntpd vnstatd dnsmasq ubusd logd rpcd 
Sending KILL to remaining processes ... 
Performing system upgrade...
current: bootnum => 2, debugflag => 0
### switch to 1st os-image on next boot ###
### enable debug ###
Unlocking kernel ...

Writing from  to kernel ...     
[  149.236208] ubi0: attaching mtd5
[  149.480801] ubi0: scanning is finished
[  149.488318] ubi0 error: ubi_read_volume_table: the layout volume was not found
[  149.502827] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd5, error -22
ubiattach: error!: cannot attach mtd5
           error 22 (Invalid argument)
ubiformat: mtd5 (nand), size 48234496 bytes (46.0 MiB), 368 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 367 -- 100 % complete  
ubiformat: 327 eraseblocks are supposedly empty
ubiformat: warning!: 41 of 368 eraseblocks contain non-UBI data
ubiformat: warning!: only 0 of 368 eraseblocks have valid erase counter
ubiformat: erase counter 0 will be used for all eraseblocks
ubiformat: note, arbitrary erase counter value may be specified using -e option
ubiformat: use erase counter 0 for all eraseblocks
ubiformat: formatting eraseblock 317 -- 86 % complet[  155.968118] ubi0: attaching mtd5
ubiformat: f[  156.404597] ubi0: scanning is finished  
ubiformat: formatting eraseblock 363 -- 98 % complet[  156.427486] ubi0: attached mtd5 (name "ubi", size 46 MiB)
ubiformat: f[  156.439973] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ormatting eraseb[  156.456384] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
lock 364 -- 99 %[  156.472637] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubif[  156.489233] ubi0: good PEBs: 368, bad PEBs: 0, corrupted PEBs: 0
ormat: formattin[  156.503931] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
g eraseblock 365[  156.521043] ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 539701386
 -- 99 % complet[  156.541789] ubi0: available PEBs: 344, total reserved PEBs: 24, PEBs reserved for bad PEB handling: 20
ubiformat: f[  156.563066] ubi0: background thread "ubi_bgt0d" started, PID 2215
ubiformat: formatting eraseblock 367 -- 100 % complete  
UBI device number 0, total 368 LEBs (46727168 bytes, 44.5 MiB), available 344 LEBs (43679744 bytes, 41.6 MiB), LEB size 126976 bytes (124.0 KiB)
Volume ID 0, size 32 LEBs (4063232 bytes, 3.8 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 39616512
Volume ID 1, size 312 LEBs (39616512 bytes, 37.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
[  158.599742] reboot: Restarting system


U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87f98000

Config XHCI 40M PLL 
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 87fcb030
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 F1 80 1D 01]
Device found in MTK table, ID: 1f1, EXT_ID: 801d01
Support this Device in MTK table! 1f1 
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 1023
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
....============================================ 
Ralink UBoot Version: 5.0.0.0
-------------------------------------------- 
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection 
DRAM_TYPE: DDR3 
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Aug  6 2018  Time:14:37:41
============================================ 
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 880 MHZ #### 
 estimate memory size =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
.## Starting application at 0x81E00000 ...


Z-LOADER V1.28 | 08/06/2018 14:37:44


..Hit ESC key to stop autoboot: 1

Checking image 1...
   Image Name:   MIPS OpenWrt Linux-4.14.
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1905343 Bytes =  1.8 MB
   Load Address: 80001000
   Entry Point:  80001000
..............................   Verifying Checksum ... ## Booting image at bc400000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.111 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9901-29b3122f32)) #0 SMP Fri Apr 19 18:38:16 2019
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is I-O DATA WN-DX1167R
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    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 start_kernel+0x90/0x4a4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81110000 s26192 r8192 d22960 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 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=00001000
[    0.000000] Readback ErrCtl register=00001000
[    0.000000] Memory: 123412K/131072K available (4497K kernel code, 230K rwdata, 1000K rodata, 212K init, 248K bss, 7660K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015488] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087817] pid_max: default: 32768 minimum: 301
[    0.097126] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110146] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125865] Hierarchical SRCU implementation.
[    0.135322] smp: Bringing up secondary CPUs ...
[    0.157179] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.157188] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.157199] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.157334] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204698] Synchronize counters for CPU 1: done.
[    0.280941] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.280949] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.280956] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.281032] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325530] Synchronize counters for CPU 2: done.
[    0.398014] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.398022] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.398030] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.398117] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445099] Synchronize counters for CPU 3: done.
[    0.504703] smp: Brought up 1 node, 4 CPUs
[    0.516485] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535955] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548382] pinctrl core: initialized pinctrl subsystem
[    0.559933] NET: Registered protocol family 16
[    0.577505] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.887491] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.897554] ***** Xtal 40MHz *****
[    0.904288] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.914491] Port 0 N_FTS = 1b102800
[    0.921393] Port 1 N_FTS = 1b105000
[    0.928317] Port 2 N_FTS = 1b102800
[    2.086971] PCIE0 no card, disable it(RST&CLK)
[    2.095659] PCIE2 no card, disable it(RST&CLK)
[    2.104462]  -> 20107f2
[    2.109312] PCIE1 enabled
[    2.114491] PCI host bridge /pcie@1e140000 ranges:
[    2.124019]  MEM 0x0000000060000000..0x000000006fffffff
[    2.134375]   IO 0x000000001e160000..0x000000001e16ffff
[    2.144743] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.167366] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.178636] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.189838] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.202268] PCI host bridge to bus 0000:00
[    2.210286] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.223959] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.235687] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.249187] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.266052] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.279096] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.292905] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.306379] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[    2.319877] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.334380] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.344200] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.359032] clocksource: Switched to clocksource GIC
[    2.370341] NET: Registered protocol family 2
[    2.379576] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.393317] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.405923] TCP: Hash tables configured (established 1024 bind 1024)
[    2.418647] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.430155] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.442799] NET: Registered protocol family 1
[    2.688982] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.700354] Crashlog allocated RAM at address 0x3f00000
[    2.710851] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.730813] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.742294] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.762256] random: fast init done
[    2.765242] io scheduler noop registered
[    2.776727] io scheduler deadline registered (default)
[    2.787775] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.801657] console [ttyS0] disabled
[    2.808665] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.826694] console [ttyS0] enabled
[    2.826694] console [ttyS0] enabled
[    2.840436] bootconsole [early0] disabled
[    2.840436] bootconsole [early0] disabled
[    2.857092] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.870071] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.884106] Enable NFI Clock
[    2.889844] # MTK NAND # : Use HW ECC
[    2.897135] Device found in MTK table, ID: 1f1, EXT_ID: 801d01
[    2.908743] Support this Device in MTK table! 1f1 
[    2.918458] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.931327] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    2.943972] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    2.954025] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.969106] Scanning device for bad blocks
[    3.258898] 12 fixed-partitions partitions found on MTD device MT7621-NAND
[    3.272584] Creating 12 MTD partitions on "MT7621-NAND":
[    3.283166] 0x000000000000-0x000000100000 : "Bootloader"
[    3.294684] 0x000000100000-0x000000200000 : "u-boot-env"
[    3.306162] 0x000000200000-0x000000300000 : "Factory"
[    3.317093] 0x000000300000-0x000000400000 : "SecondBoot"
[    3.328545] 0x000000400000-0x000000800000 : "kernel"
[    3.339387] 0x000000800000-0x000003600000 : "ubi"
[    3.350032] 0x000003600000-0x000003700000 : "Config"
[    3.360791] 0x000003700000-0x000006900000 : "firmware_2"
[    3.372620] 0x000006900000-0x000006a00000 : "Config_2"
[    3.383745] 0x000006a00000-0x000006b00000 : "persist"
[    3.394669] 0x000006b00000-0x000006c00000 : "idmkey"
[    3.405445] 0x000006c00000-0x000007f80000 : "Backup"
[    3.416383] [mtk_nand] probe successfully!
[    3.425266] Signature matched and data read!
[    3.433761] load_fact_bbt success 1023
[    3.441842] libphy: Fixed MDIO Bus: probed
[    3.521593] libphy: mdio: probed
[    4.927628] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.940154] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    4.959228] NET: Registered protocol family 10
[    4.969483] Segment Routing with IPv6
[    4.976843] NET: Registered protocol family 17
[    4.985741] 8021q: 802.1Q VLAN Support v1.8
[    4.996937] UBI: auto-attach mtd5
[    5.003599] ubi0: attaching mtd5
[    5.437590] ubi0: scanning is finished
[    5.460295] ubi0: attached mtd5 (name "ubi", size 46 MiB)
[    5.471061] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.484742] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.498251] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.512110] ubi0: good PEBs: 368, bad PEBs: 0, corrupted PEBs: 0
[    5.524061] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.538434] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 539701386
[    5.556438] ubi0: available PEBs: 0, total reserved PEBs: 368, PEBs reserved for bad PEB handling: 20
[    5.574807] ubi0: background thread "ubi_bgt0d" started, PID 371
[    5.576428] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.597689] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.611558] hctosys: unable to open rtc device (rtc0)
[    5.628778] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.643534] Freeing unused kernel memory: 212K
[    5.652425] This architecture does not have kernel memory protection.
[    6.122265] init: Console is alive
[    6.129305] init: - watchdog -
[    6.168783] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    6.357869] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.485837] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.509320] init: - preinit -
[    7.328683] mtk_soc_eth 1e100000.ethernet: PPE started
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to [    7.405955] random: procd: uninitialized urandom read (4 bytes read)
select the debug level
[    8.371629] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[   10.523665] UBIFS (ubi0:1): default file-system created
[   10.535531] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 448
[   10.648490] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.664101] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.683838] UBIFS (ubi0:1): FS size: 38346752 bytes (36 MiB, 302 LEBs), journal size 1904640 bytes (1 MiB, 15 LEBs)
[   10.704613] UBIFS (ubi0:1): reserved for root: 1811211 bytes (1768 KiB)
[   10.717783] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 7FB3E685-BC83-4CEC-B75E-984218747C31, small LPT model
[   10.743143] mount_root: overlay filesystem has not been fully initialized yet
[   10.757837] mount_root: switching to ubifs overlay
[   10.784973] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.862311] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   10.884080] procd: - early -
[   10.889995] procd: - watchdog -
[   11.519162] procd: - watchdog -
[   11.525724] procd: - ubus -
[   11.610131] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.694616] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.707749] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.721270] procd: - init -
Please press Enter to activate this console.
[   12.109668] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.197687] nat46: module (version 683fbd2b765506332a1af141545652bf58f03166) loaded.
[   12.217478] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.235888] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.254124] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.298491] Netfilter messages via NETLINK v0.30.
[   12.325272] xt_time: kernel timezone is -0000
[   12.340586] ctnetlink v0.93: registering with nfnetlink.
[   12.353220] PPP generic driver version 2.4.2
[   12.363368] NET: Registered protocol family 24
[   12.375649] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.634218] urandom_read: 5 callbacks suppressed
[   13.634230] random: jshn: uninitialized urandom read (4 bytes read)
[   31.774993] mtk_soc_eth 1e100000.ethernet: PPE started
[   31.814337] br-lan: port 1(eth0.1) entered blocking state
[   31.825186] br-lan: port 1(eth0.1) entered disabled state
[   31.836610] device eth0.1 entered promiscuous mode
[   31.846213] device eth0 entered promiscuous mode
[   31.859810] br-lan: port 1(eth0.1) entered blocking state
[   31.870640] br-lan: port 1(eth0.1) entered forwarding state
[   31.882301] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   32.207181] random: crng init done
[   32.809763] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



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

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

stock: bootnum=2

  • 2番目のOSイメージでstock firmwareがブートしている状態からスタート
  • OpenWrtのinitramfs-factoryは1番目のOSイメージ領域に書き込まれブートされる
  • 391行目でbootnumとdebugflagをチェック、bootnumは既に1なので392行目でdebugflagの有効化のみ実施
  • 479行目でZ-Loaderの中断が可能になる (debugflag)
  • 481行目で1番目のOSイメージ領域からブートしている旨が表示される
### DO NOT set cfgapply ###
cat: can't open 'remote_mgmt': No such file or directory
### Checksum is the same but commit does not change anything! Do nothing! ###
[  257.336000] led=9, on=1, off=1, blinks,=1, reset=0, time=4000 low_trigger=0
Unlocking firmware ...

Writing from /tmp/fw.bin to firmware ...     
Header checksum OK.
Data checksum OK
Unlocking persist ...
### Switch to bank 1 on next boot! ###
procd: - shutdown -
[  262.960000] br-lan: port 4(ra0) entered disabled state
[  262.968000] br-lan: port 3(rai0) entered disabled state
[  262.980000] br-lan: port 2(eth1) entered disabled state
[  262.988000] br-lan: port 1(eth0) entered disabled state
[  263.000000] device eth0 left promiscuous mode
[  263.012000] br-lan: port 1(eth0) entered disabled state
[  263.020000] ra2880stop()...Done
[  263.028000] eth1: ===> VirtualIF_close
[  263.036000] Free TX/RX Ring Memory!
[  263.044000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  263.060000] device eth1 left promiscuous mode
[  263.068000] br-lan: port 2(eth1) entered disabled state
[  263.080000] eth1: ===> VirtualIF_close
[  263.088000] device ra0 left promiscuous mode
[  263.096000] br-lan: port 4(ra0) entered disabled state
[  263.108000] device rai0 left promiscuous mode
[  263.116000] br-lan: port 3(rai0) entered disabled state
### ap ###
[  264.632000] WifiSysClose(), wdev idx = 0
[  264.648000] WifiSysGetBssInfoState(): BssInfoIdx 0 not found!!!
[  264.660000] WifiSysUpdateBssInfoState(): BssInfoIdx 0 not found!!!
[  265.980000] Device Instance
[  265.984000]  WDEV 00:
                Name:rai0
[  265.992000]          Wdev(list) Idx:0
[  266.000000]           Idx:9
[  266.004000]  WDEV 01:
                Name:rai1
[  266.008000]          Wdev(list) Idx:1
[  266.016000]           Idx:10
[  266.020000]  WDEV 02:
                Name:rai2
[  266.028000]          Wdev(list) Idx:2
[  266.032000]           Idx:11
[  266.040000]  WDEV 03:
                Name:rai3
[  266.044000]          Wdev(list) Idx:3
[  266.052000]           Idx:12
[  266.056000]  WDEV 04:
                Name:ra0
[  266.064000]          Wdev(list) Idx:4
[  266.068000]           Idx:13
[  266.072000]  WDEV 05:
                Name:ra1
[  266.080000]          Wdev(list) Idx:5
[  266.084000]           Idx:14
[  266.088000]  WDEV 06:
                Name:ra2
[  266.096000]          Wdev(list) Idx:6
[  266.104000]           Idx:15
[  266.108000]  WDEV 07:
                Name:ra3
[  266.112000]          Wdev(list) Idx:7
[  266.120000]           Idx:16
[  266.124000]  WDEV 08:
                Name:apclii0
[  266.132000]          Wdev(list) Idx:8
[  266.136000]           Idx:17
[  266.144000]  WDEV 09:
                Name:apcli0
[  266.148000]          Wdev(list) Idx:9
[  266.156000]           Idx:18
[  266.160000]  WDEV 10:
[  266.164000]  WDEV 11:
[  266.168000]  WDEV 12:
[  266.172000]  WDEV 13:
[  266.176000]  WDEV 14:
[  266.184000]  WDEV 15:
[  266.188000]  WDEV 16:
[  266.192000]  WDEV 17:
[  266.200000] WifiSysClose(), wdev idx = 4
[  266.216000] WifiSysGetBssInfoState(): BssInfoIdx 1 not found!!!
[  266.228000] WifiSysUpdateBssInfoState(): BssInfoIdx 1 not found!!!
[  266.240000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[  266.252000] WifiSysClose(), wdev idx = 0
[  266.260000] WifiSysClose(), wdev idx = 1
[  266.268000] WifiSysClose(), wdev idx = 2
[  266.276000] WifiSysClose(), wdev idx = 3
[  266.308000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[  266.320000] WifiSysClose(), wdev idx = 4
[  266.328000] WifiSysClose(), wdev idx = 5
[  266.336000] WifiSysClose(), wdev idx = 6
[  266.344000] WifiSysClose(), wdev idx = 7
[  266.352000] kill LoopBackTxTask task failed!
[  266.368000] AndesRestartCheck: Current TOP_MISC2(0x7)
[  266.420000] CmdReStartDLRsp: Status Success!, Status(0)
[  266.432000] AndesRestartCheck:  TOP_MISC2(1)
[  266.440000] RT28xxPciAsicRadioOff(): Not support for HIF_MT yet!
[  266.452000] RTMPDrvClose call RT28xxPciAsicRadioOff fail !!
[  266.464000] tx_kickout_fail_count = 0
[  266.472000] tx_timeout_fail_count = 0
[  266.476000] rx_receive_fail_count = 0
[  266.484000] alloc_cmd_msg = 1864
[  266.492000] free_cmd_msg = 1864
[  266.500000] cut_through_token_list_destroy(): 8545dd88,8545dd88
[  266.512000] cut_through_token_list_destroy(): 8545dd98,8545dd98
[  266.528000] FwOwn()::Set Fw Own
[  266.540000] RTMP_AllTimerListRelease: Size=0
[  266.548000] FwOwn()::Return since already in Fw Own...
[  266.556000] <---HwCtrlThread
procd: - reboot [  266.696000] Stopped WatchDog Timer.
-
[  266.708000] Restarting system.


U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87f98000

Config XHCI 40M PLL 
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 87fcb030
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 F1 80 1D 01]
Device found in MTK table, ID: 1f1, EXT_ID: 801d01
Support this Device in MTK table! 1f1 
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 1023
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
....============================================ 
Ralink UBoot Version: 5.0.0.0
-------------------------------------------- 
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection 
DRAM_TYPE: DDR3 
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Aug  6 2018  Time:14:37:41
============================================ 
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 880 MHZ #### 
 estimate memory size =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
.## Starting application at 0x81E00000 ...


Z-LOADER V1.28 | 08/06/2018 14:37:44


..
Checking image 1...
   Image Name:   3.10(XIK.1)b7
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    5642216 Bytes =  5.4 MB
   Load Address: 80001000
   Entry Point:  80001000
.......................................................................................   Verifying Combo Checksum ... .......................................................................................## Booting image at bc400000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.111 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9901-29b3122f32)) #0 SMP Sat Apr 20 01:26:47 2019
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is I-O DATA WN-DX1167R
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    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 start_kernel+0x90/0x4a4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81110000 s26192 r8192 d22960 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 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=00001000
[    0.000000] Readback ErrCtl register=00001000
[    0.000000] Memory: 119764K/131072K available (4497K kernel code, 230K rwdata, 1000K rodata, 3860K init, 248K bss, 11308K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015487] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087817] pid_max: default: 32768 minimum: 301
[    0.097125] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110146] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125864] Hierarchical SRCU implementation.
[    0.135321] smp: Bringing up secondary CPUs ...
[    0.144858] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.144867] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.144879] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.145013] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204697] Synchronize counters for CPU 1: done.
[    0.268618] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.268627] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.268634] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.268710] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325526] Synchronize counters for CPU 2: done.
[    0.385687] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.385696] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.385704] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.385789] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445095] Synchronize counters for CPU 3: done.
[    0.504698] smp: Brought up 1 node, 4 CPUs
[    0.516487] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535958] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548382] pinctrl core: initialized pinctrl subsystem
[    0.559984] NET: Registered protocol family 16
[    0.577541] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.887528] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.897592] ***** Xtal 40MHz *****
[    0.904326] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.914529] Port 0 N_FTS = 1b102800
[    0.921430] Port 1 N_FTS = 1b105000
[    0.928355] Port 2 N_FTS = 1b102800
[    2.087005] PCIE0 no card, disable it(RST&CLK)
[    2.095693] PCIE2 no card, disable it(RST&CLK)
[    2.104497]  -> 20107f2
[    2.109346] PCIE1 enabled
[    2.114525] PCI host bridge /pcie@1e140000 ranges:
[    2.124053]  MEM 0x0000000060000000..0x000000006fffffff
[    2.134410]   IO 0x000000001e160000..0x000000001e16ffff
[    2.144777] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.167122] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.178384] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.189565] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.201941] PCI host bridge to bus 0000:00
[    2.209965] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.223640] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.235368] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.248861] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.265586] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.278622] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.292436] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.305909] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[    2.319405] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.333910] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.343731] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.358409] clocksource: Switched to clocksource GIC
[    2.369593] NET: Registered protocol family 2
[    2.378820] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.392564] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.405170] TCP: Hash tables configured (established 1024 bind 1024)
[    2.417889] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.429398] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.442040] NET: Registered protocol family 1
[    5.828377] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    5.839524] Crashlog allocated RAM at address 0x3f00000
[    5.850080] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    5.869596] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.881071] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.903416] random: fast init done
[    5.910435] io scheduler noop registered
[    5.918071] io scheduler deadline registered (default)
[    5.929233] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    5.943050] console [ttyS0] disabled
[    5.950097] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    5.968061] console [ttyS0] enabled
[    5.968061] console [ttyS0] enabled
[    5.981831] bootconsole [early0] disabled
[    5.981831] bootconsole [early0] disabled
[    5.998427] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    6.011221] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    6.025291] Enable NFI Clock
[    6.031029] # MTK NAND # : Use HW ECC
[    6.038318] Device found in MTK table, ID: 1f1, EXT_ID: 801d01
[    6.049927] Support this Device in MTK table! 1f1 
[    6.059645] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    6.072510] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    6.085154] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    6.095206] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    6.110288] Scanning device for bad blocks
[    6.400355] 12 fixed-partitions partitions found on MTD device MT7621-NAND
[    6.414037] Creating 12 MTD partitions on "MT7621-NAND":
[    6.424621] 0x000000000000-0x000000100000 : "Bootloader"
[    6.436271] 0x000000100000-0x000000200000 : "u-boot-env"
[    6.447867] 0x000000200000-0x000000300000 : "Factory"
[    6.458999] 0x000000300000-0x000000400000 : "SecondBoot"
[    6.470616] 0x000000400000-0x000000800000 : "kernel"
[    6.481538] 0x000000800000-0x000003600000 : "ubi"
[    6.492286] 0x000003600000-0x000003700000 : "Config"
[    6.503238] 0x000003700000-0x000006900000 : "firmware_2"
[    6.515206] 0x000006900000-0x000006a00000 : "Config_2"
[    6.526494] 0x000006a00000-0x000006b00000 : "persist"
[    6.537579] 0x000006b00000-0x000006c00000 : "idmkey"
[    6.548565] 0x000006c00000-0x000007f80000 : "Backup"
[    6.559662] [mtk_nand] probe successfully!
[    6.568573] Signature matched and data read!
[    6.577055] load_fact_bbt success 1023
[    6.585272] libphy: Fixed MDIO Bus: probed
[    6.660961] libphy: mdio: probed
[    8.078318] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    8.090893] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    8.109982] NET: Registered protocol family 10
[    8.120205] Segment Routing with IPv6
[    8.127564] NET: Registered protocol family 17
[    8.136513] 8021q: 802.1Q VLAN Support v1.8
[    8.147780] UBI error: no valid UBI magic found inside mtd5
[    8.158943] hctosys: unable to open rtc device (rtc0)
[    8.183210] Freeing unused kernel memory: 3860K
[    8.192259] This architecture does not have kernel memory protection.
[    8.216181] init: Console is alive
[    8.223265] init: - watchdog -
[    8.241019] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.258104] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.288695] init: - preinit -
[    8.453778] mtk_soc_eth 1e100000.ethernet: PPE started
[    8.476226] random: procd: uninitialized urandom read (4 bytes read)
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.336037] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    9.713304] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[   11.591627] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.613014] procd: - early -
[   11.618909] procd: - watchdog -
[   12.248572] procd: - watchdog -
[   12.255131] procd: - ubus -
[   12.265342] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.318959] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.331987] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.345465] procd: - init -
Please press Enter to activate this console.
[   12.505945] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.524713] nat46: module (version 683fbd2b765506332a1af141545652bf58f03166) loaded.
[   12.544708] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.565010] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.585937] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.629244] Netfilter messages via NETLINK v0.30.
[   12.658667] xt_time: kernel timezone is -0000
[   12.674768] ctnetlink v0.93: registering with nfnetlink.
[   12.687983] PPP generic driver version 2.4.2
[   12.697955] NET: Registered protocol family 24
[   12.710410] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.802323] urandom_read: 5 callbacks suppressed
[   13.802335] random: jshn: uninitialized urandom read (4 bytes read)
[   29.948714] mtk_soc_eth 1e100000.ethernet: PPE started
[   29.966406] br-lan: port 1(eth0.1) entered blocking state
[   29.977314] br-lan: port 1(eth0.1) entered disabled state
[   29.988828] device eth0.1 entered promiscuous mode
[   29.998458] device eth0 entered promiscuous mode
[   30.011542] br-lan: port 1(eth0.1) entered blocking state
[   30.022355] br-lan: port 1(eth0.1) entered forwarding state
[   30.034064] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   30.469127] random: crng init done
[   30.969428] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+9902-961771ff30
 -----------------------------------------------------
=== 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 https://taiha.net/jenkins/job/OpenWrt-master-IODATA-W
N-DX1167R/lastSuccessfulBuild/artifact/bin/targets/ramips/mt7621/openwrt-ramips-
mt7621-iodata_wn-dx1167r-squashfs-sysupgrade.bin
--2019-04-20 02:06:11--  https://taiha.net/jenkins/job/OpenWrt-master-IODATA-WN-DX1167R/lastSuccessfulBuild/artifact/bin/targets/ramips/mt7621/openwrt-ramips-mt7621-iodata_wn-dx1167r-squashfs-sysupgrade.bin
Resolving taiha.net... 240b:12:500:65f0:c822:64a3:7e11:4961, 49.129.167.30
Connecting to taiha.net|240b:12:500:65f0:c822:64a3:7e11:4961|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5888778 (5.6M) [application/octet-stream]
Saving to: '/tmp/sysupgrade.img'

/tmp/sysupgrade.img 100%[===================>]   5.62M  3.13MB/s    in 1.8s    

2019-04-20 02:06:13 (3.13 MB/s) - '/tmp/sysupgrade.img' saved [5888778/5888778]

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 ... netifd odhcpd uhttpd nlbwmon sh sleep ntpd vnstatd dnsmasq ubusd logd rpcd 
Sending KILL to remaining processes ... 
Performing system upgrade...
current: bootnum => 1, debugflag => 0
### enable debug ###
Unlocking kernel ...

Writing from  to kernel ...     
[   64.720676] ubi0: attaching mtd5
[   64.965168] ubi0: scanning is finished
[   64.972696] ubi0 error: ubi_read_volume_table: the layout volume was not found
[   64.987194] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd5, error -22
ubiattach: error!: cannot attach mtd5
           error 22 (Invalid argument)
ubiformat: mtd5 (nand), size 48234496 bytes (46.0 MiB), 368 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 367 -- 100 % complete  
ubiformat: 327 eraseblocks are supposedly empty
ubiformat: warning!: 41 of 368 eraseblocks contain non-UBI data
ubiformat: warning!: only 0 of 368 eraseblocks have valid erase counter
ubiformat: erase counter 0 will be used for all eraseblocks
ubiformat: note, arbitrary erase counter value may be specified using -e option
ubiformat: use erase counter 0 for all eraseblocks
ubiformat: formatting eraseblock 317 -- 86 % complet[   71.452084] ubi0: attaching mtd5
ubiformat: f[   71.889484] ubi0: scanning is finished  
ubiformat: formatting eraseblock 363 -- 98 % complet[   71.911907] ubi0: attached mtd5 (name "ubi", size 46 MiB)
ubiformat: f[   71.924433] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ormatting eraseb[   71.940868] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
lock 364 -- 99 %[   71.957102] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubif[   71.973709] ubi0: good PEBs: 368, bad PEBs: 0, corrupted PEBs: 0
ormat: formattin[   71.988402] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
g eraseblock 365[   72.005520] ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 1110684811
 -- 99 % complet[   72.026438] ubi0: available PEBs: 344, total reserved PEBs: 24, PEBs reserved for bad PEB handling: 20
ubiformat: f[   72.047725] ubi0: background thread "ubi_bgt0d" started, PID 2207
ubiformat: formatting eraseblock 367 -- 100 % complete  
UBI device number 0, total 368 LEBs (46727168 bytes, 44.5 MiB), available 344 LEBs (43679744 bytes, 41.6 MiB), LEB size 126976 bytes (124.0 KiB)
Volume ID 0, size 32 LEBs (4063232 bytes, 3.8 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 39616512
Volume ID 1, size 312 LEBs (39616512 bytes, 37.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
[   74.078801] reboot: Restarting system


U-Boot 1.1.3 (Aug  6 2018 - 14:37:41)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87f98000

Config XHCI 40M PLL 
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 87fcb030
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 F1 80 1D 01]
Device found in MTK table, ID: 1f1, EXT_ID: 801d01
Support this Device in MTK table! 1f1 
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 1023
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
....============================================ 
Ralink UBoot Version: 5.0.0.0
-------------------------------------------- 
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection 
DRAM_TYPE: DDR3 
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Aug  6 2018  Time:14:37:41
============================================ 
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 880 MHZ #### 
 estimate memory size =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
.## Starting application at 0x81E00000 ...


Z-LOADER V1.28 | 08/06/2018 14:37:44


..Hit ESC key to stop autoboot: 1

Checking image 1...
   Image Name:   MIPS OpenWrt Linux-4.14.
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1905158 Bytes =  1.8 MB
   Load Address: 80001000
   Entry Point:  80001000
..............................   Verifying Checksum ... ## Booting image at bc400000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.111 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+9901-29b3122f32)) #0 SMP Sat Apr 20 01:26:47 2019
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is I-O DATA WN-DX1167R
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    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 start_kernel+0x90/0x4a4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81110000 s26192 r8192 d22960 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 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=00001000
[    0.000000] Readback ErrCtl register=00001000
[    0.000000] Memory: 123412K/131072K available (4497K kernel code, 230K rwdata, 1000K rodata, 212K init, 248K bss, 7660K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015488] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087817] pid_max: default: 32768 minimum: 301
[    0.097126] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110146] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125868] Hierarchical SRCU implementation.
[    0.135326] smp: Bringing up secondary CPUs ...
[    0.157183] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.157192] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.157204] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.157338] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204704] Synchronize counters for CPU 1: done.
[    0.280943] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.280951] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.280958] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.281034] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325533] Synchronize counters for CPU 2: done.
[    0.398017] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.398025] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.398033] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.398119] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445102] Synchronize counters for CPU 3: done.
[    0.504705] smp: Brought up 1 node, 4 CPUs
[    0.516488] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535958] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548383] pinctrl core: initialized pinctrl subsystem
[    0.559935] NET: Registered protocol family 16
[    0.578196] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.888183] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.898248] ***** Xtal 40MHz *****
[    0.904981] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.915184] Port 0 N_FTS = 1b102800
[    0.922086] Port 1 N_FTS = 1b105000
[    0.929010] Port 2 N_FTS = 1b102800
[    2.087654] PCIE0 no card, disable it(RST&CLK)
[    2.096341] PCIE2 no card, disable it(RST&CLK)
[    2.105144]  -> 20107f2
[    2.109994] PCIE1 enabled
[    2.115173] PCI host bridge /pcie@1e140000 ranges:
[    2.124701]  MEM 0x0000000060000000..0x000000006fffffff
[    2.135057]   IO 0x000000001e160000..0x000000001e16ffff
[    2.145425] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.167700] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.178946] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.190116] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.202405] PCI host bridge to bus 0000:00
[    2.210422] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.224095] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.235823] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.249312] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.266052] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.279087] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.292902] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.306375] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[    2.319870] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.334380] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.344196] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.358915] clocksource: Switched to clocksource GIC
[    2.370139] NET: Registered protocol family 2
[    2.379360] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.393098] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.405705] TCP: Hash tables configured (established 1024 bind 1024)
[    2.418430] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.429937] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.442587] NET: Registered protocol family 1
[    2.688867] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.700185] Crashlog allocated RAM at address 0x3f00000
[    2.710679] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.729381] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.740855] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.763374] random: fast init done
[    2.770320] io scheduler noop registered
[    2.777955] io scheduler deadline registered (default)
[    2.789063] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.802824] console [ttyS0] disabled
[    2.809877] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.827814] console [ttyS0] enabled
[    2.827814] console [ttyS0] enabled
[    2.841603] bootconsole [early0] disabled
[    2.841603] bootconsole [early0] disabled
[    2.858084] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.870858] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.884894] Enable NFI Clock
[    2.890641] # MTK NAND # : Use HW ECC
[    2.897930] Device found in MTK table, ID: 1f1, EXT_ID: 801d01
[    2.909547] Support this Device in MTK table! 1f1 
[    2.919271] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.932140] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    2.944790] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    2.954847] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.969935] Scanning device for bad blocks
[    3.259828] 12 fixed-partitions partitions found on MTD device MT7621-NAND
[    3.273515] Creating 12 MTD partitions on "MT7621-NAND":
[    3.284101] 0x000000000000-0x000000100000 : "Bootloader"
[    3.295589] 0x000000100000-0x000000200000 : "u-boot-env"
[    3.307024] 0x000000200000-0x000000300000 : "Factory"
[    3.317974] 0x000000300000-0x000000400000 : "SecondBoot"
[    3.329475] 0x000000400000-0x000000800000 : "kernel"
[    3.340266] 0x000000800000-0x000003600000 : "ubi"
[    3.350874] 0x000003600000-0x000003700000 : "Config"
[    3.361650] 0x000003700000-0x000006900000 : "firmware_2"
[    3.373482] 0x000006900000-0x000006a00000 : "Config_2"
[    3.384593] 0x000006a00000-0x000006b00000 : "persist"
[    3.395534] 0x000006b00000-0x000006c00000 : "idmkey"
[    3.406328] 0x000006c00000-0x000007f80000 : "Backup"
[    3.417265] [mtk_nand] probe successfully!
[    3.426176] Signature matched and data read!
[    3.434679] load_fact_bbt success 1023
[    3.442735] libphy: Fixed MDIO Bus: probed
[    3.521466] libphy: mdio: probed
[    4.927550] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.940123] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    4.959274] NET: Registered protocol family 10
[    4.969504] Segment Routing with IPv6
[    4.976861] NET: Registered protocol family 17
[    4.985779] 8021q: 802.1Q VLAN Support v1.8
[    4.996931] UBI: auto-attach mtd5
[    5.003577] ubi0: attaching mtd5
[    5.437581] ubi0: scanning is finished
[    5.460232] ubi0: attached mtd5 (name "ubi", size 46 MiB)
[    5.470997] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.484679] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.498185] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.512043] ubi0: good PEBs: 368, bad PEBs: 0, corrupted PEBs: 0
[    5.523993] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.538366] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1110684811
[    5.556542] ubi0: available PEBs: 0, total reserved PEBs: 368, PEBs reserved for bad PEB handling: 20
[    5.574919] ubi0: background thread "ubi_bgt0d" started, PID 372
[    5.576897] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.597830] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.611699] hctosys: unable to open rtc device (rtc0)
[    5.628946] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.643645] Freeing unused kernel memory: 212K
[    5.652531] This architecture does not have kernel memory protection.
[    6.122667] init: Console is alive
[    6.129708] init: - watchdog -
[    6.168650] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    6.364148] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.492490] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.509223] init: - preinit -
[    6.514134] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    7.329817] mtk_soc_eth 1e100000.ethernet: PPE started
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to [    7.407135] random: procd: uninitialized urandom read (4 bytes read)
select the debug level
[   10.523692] UBIFS (ubi0:1): default file-system created
[   10.535559] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 448
[   10.648588] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.664199] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.683937] UBIFS (ubi0:1): FS size: 38346752 bytes (36 MiB, 302 LEBs), journal size 1904640 bytes (1 MiB, 15 LEBs)
[   10.704711] UBIFS (ubi0:1): reserved for root: 1811211 bytes (1768 KiB)
[   10.717882] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID B62DEE20-04B6-4BB2-B22F-19A90A3DC706, small LPT model
[   10.743239] mount_root: overlay filesystem has not been fully initialized yet
[   10.757879] mount_root: switching to ubifs overlay
[   10.785078] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.862493] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   10.884326] procd: - early -
[   10.890184] procd: - watchdog -
[   11.509052] procd: - watchdog -
[   11.515610] procd: - ubus -
[   11.599988] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.684382] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.697524] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.711058] procd: - init -
Please press Enter to activate this console.
[   12.099025] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.187056] nat46: module (version 683fbd2b765506332a1af141545652bf58f03166) loaded.
[   12.206932] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.225448] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.243844] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.289461] Netfilter messages via NETLINK v0.30.
[   12.319386] xt_time: kernel timezone is -0000
[   12.336616] ctnetlink v0.93: registering with nfnetlink.
[   12.350023] PPP generic driver version 2.4.2
[   12.360073] NET: Registered protocol family 24
[   12.371598] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.633810] urandom_read: 5 callbacks suppressed
[   13.633822] random: jshn: uninitialized urandom read (4 bytes read)
[   38.772592] mtk_soc_eth 1e100000.ethernet: PPE started
[   38.787870] br-lan: port 1(eth0.1) entered blocking state
[   38.798662] br-lan: port 1(eth0.1) entered disabled state
[   38.810224] device eth0.1 entered promiscuous mode
[   38.819834] device eth0 entered promiscuous mode
[   38.832645] br-lan: port 1(eth0.1) entered blocking state
[   38.843498] br-lan: port 1(eth0.1) entered forwarding state
[   38.855149] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   39.219880] random: crng init done
[   39.849578] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



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

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

WG1200CR デコード用スクリプト

C言語の知識が皆無なので、とりあえずShellScriptで強引にでっち上げたもの。めっちゃ遅い。
OpenWrt内の “xorimage” バイナリが必要。

整理する余裕が無いので、雑に書いたモノそのまま。変数名など色々アレなのは勘弁。

2019/03/13 追記: OpenWrtのxorimage.cから大部分を流用してNECファームウェア用エンコード/デコードプログラムでっち上げを試行。スクリプトで変換するよりも速い。
musashino205/nec-enc

2019/07/10 追記: nec-encは、多少修正が施された後OpenWrtのリポジトリにWG1200CRのサポートと一緒にマージ済み。通常は上記リポジトリよりもOpenWrtのnec-encの利用を推奨。
openwrt/nec-enc.c at master · openwrt/openwrt
また、Windows用のencode/decodeプログラムもC#で雑に作った。
musashino205/nec-wintools
Windows用ツールは、現在nec-enc以外にもOpenWrtの他のfirmware-utilsも取り込むべく別途作業中。

“KEY”

  • WF1200CR: ryztfyutcrqqo69d
  • WG1200CR: 9gsiy9nzep452pad
  • WG2600HS: met186zxlobyao3p
#!/bin/bash

KEY="9gsiy9nzep452pad"		# for WG1200CR
KEY2_MAX="251"			# 0x01 - 0xFB

# ================ #
#   Environment    #
# ================ #
TOOLS_DIR="/home/tofu/router/firmware-utils"
WORK_DIR="./tmp"
DEF_OUTPUT_DIR="./bin"
DEF_OUTPUT_BIN="${DEF_OUTPUT_DIR}/firmware.dec"
PRINT_INFO="0"

key2_generate()
{
	local max=${1:-251}
	local vals=""

	for i in $(seq 1 $max); do
		vals="${vals}\x$(printf '%02x' ${i})"
	done

	echo -ne "$vals"
}

# input file
INPUT_BIN=$1

[ -z "$INPUT_BIN" ] && echo "input file is not specified!!" && exit 1
[ ! -r "$INPUT_BIN" ] && echo "input file does not exist or cannot read!!" && exit 1

LEN="$(stat -c%s $INPUT_BIN)"
BLOCKS="$(($LEN / $KEY2_MAX))"
BLOCKS2="$(($LEN / 128))"
FOOTER_LEN="$(($LEN % $KEY2_MAX))"
FOOTER2_LEN="$(($LEN % 128))"

#if [ "$PRINT_INFO" -eq "1" ]; then
	echo ""
	echo "=== file info ==="
	echo "input file: $1"
	echo "file length: $LEN bytes"
	echo "blocks: $BLOCKS"
	echo "footer_len: $FOOTER_LEN bytes"
	echo "blocks2: $BLOCKS2"
	echo "footer2_len: $FOOTER2_LEN bytes"
	echo "================="
#fi

#exit 0

if [ "$BLOCKS" -gt "0" ]; then
	[ "$PRINT_INFO" -eq "1" ] && echo "\$BLOCKS > 0"
	value="$(key2_generate)"
fi

[ ! -e "$WORK_DIR" ] && mkdir "$WORK_DIR"

if [ -e "${WORK_DIR}/key2_gen.bin" ]; then
	[ ! -w "${WORK_DIR}/key2_gen.bin" ] && echo "cannot write to \"${WORK_DIR}/key2_gen.bin\" !!" && exit 1
	echo -n "" > "${WORK_DIR}/key2_gen.bin"
fi

for i in $(seq 1 $BLOCKS); do
	echo -n "$value" >> "${WORK_DIR}/key2_gen.bin"
done

# append footer
if [ "$FOOTER_LEN" -gt "0" ]; then
	value="$(key2_generate $FOOTER_LEN)"
	echo -n "$value" >> "${WORK_DIR}/key2_gen.bin"
fi

# xor by xorimage
${TOOLS_DIR}/xorimage \
	-i "${WORK_DIR}/key2_gen.bin" -o "${WORK_DIR}/key2_gen.xor" \
	-p "$KEY"

# xor by xorimage (stage2)
if [ -e "${WORK_DIR}/fw_tmp.bin" ]; then
	[ ! -w "${WORK_DIR}/fw_tmp.bin" ] && echo "cannot write to \"${WORK_DIR}/fw_tmp.bin\" !!" && exit 1
	echo -n "" > "${WORK_DIR}/fw_tmp.bin"
fi

for blk in $(seq 1 $BLOCKS2); do
	ptn="$(hexdump -v -n 128 -s $((($blk - 1) * 128)) -e '/1 "%02x"' ${WORK_DIR}/key2_gen.xor)"

	[ "$PRINT_INFO" -eq "1" ] && echo "seq: $blk, ptn: $ptn"

	dd if="$INPUT_BIN" bs=128 count=1 skip=$(($blk - 1)) 2> /dev/null | \
		${TOOLS_DIR}/xorimage -p "$ptn" -x >> "${WORK_DIR}/fw_tmp.bin"
	
done

if [ "$FOOTER2_LEN" -gt "0" ]; then
	ptn="$(hexdump -v -n $FOOTER2_LEN -s $(($blk * 128)) -e '/1 "%02x"' ${WORK_DIR}/key2_gen.xor)"

	echo "seq: (last block), ptn: $ptn"

	dd if="$INPUT_BIN" bs=1 count=$FOOTER2_LEN skip=$(($blk * 128)) 2> /dev/null | \
		${TOOLS_DIR}/xorimage -p "$ptn" -x >> "${WORK_DIR}/fw_tmp.bin"
fi

DECODE_LEN="$(stat -c%s ${WORK_DIR}/fw_tmp.bin)"

echo "file len: $LEN"
echo "decode len: $DECODE_LEN"
[ ! "$LEN" -eq "$DECODE_LEN" ] && echo "the length of decoded file is wrong!!" && exit 1

[ ! -e "$DEF_OUTPUT_DIR" ] && mkdir "$DEF_OUTPUT_DIR"

cp "${WORK_DIR}/fw_tmp.bin" "$DEF_OUTPUT_BIN"

echo "===== completed ====="

exit 0

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

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

WZR-HP-G302H A1A0 stock -> OpenWrt (ath79)

とりあえずここまで来たのでメモ。

MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gatedesc.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = ligd.gif
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = L3FwdSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateicfgSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateconnSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateinfoSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = messages
ip_nat_pptp version 3.0 unloaded
ip_conntrack_pptp version 3.1 unloaded
cgi.c(3596) UploadCgi :x:MEMORY CHECK...
MidLayer.c(1914) ML_CheckMemory :X:MemFree = 38596
MidLayer.c(1918) ML_CheckMemory :X:Buffers = 3300
MidLayer.c(1922) ML_CheckMemory :X:Cached = 11968
MidLayer.c(1926) ML_CheckMemory :X:Active = 9444
MidLayer.c(1930) ML_CheckMemory :X:Inactive = 6816
Sep 30 17:04:47 udhcpd: Request incoming from Tofu-QM77W10(len:12)
Sep 30 17:04:47 udhcpd: sending OFFER of 192.168.11.2 Tofu-QM77W10
cgi.c(2776) Check_TagVersion :INFO :pTarget = WZR-HP-G302H : a_pProduct = WZR-HP-G302H
cgi.c(2681) check_specification :DEBUG:U-bootSpecification  = M_00000001(JP)
cgi.c(2684) check_specification :DEBUG:NewFirmSpecification = M_ffffffff
cgi.c(4165) UploadCgi :INFO:(iUbootHwRev):4 (iHwVersion):4 ...tag[hwv]...
wanctl-lib.c(4937) StopPppModemSession :x:StopPppModemSession
watchdogd-ath.c(42) watchdog_stop :WD:Watchdog Stopped
watchdogd.c(11) watchdogd_term :WD:Terminate Watchdog Daemon
debug : Enter [BRCTL_ADD_IF] 
cgi.c(4203) UploadCgi :ERR:wlconfig_down() call 
rcUtil.c(2949) Wireless_Rmmod :ERR:####### Wireless_Rmmod #########
ag7240_ring_free start Freeing at 0x83ef6400
ag7240_ring_free done  Freeing at 0x0
ag7240_ring_free start Freeing at 0x83ed0000
ag7240_ring_free done  Freeing at 0x0
ag7240_cleanup Freeing at 0x810a0000
ag7240_cleanup Freeing at 0x83f34000
AG7240: cleanup done
cgi.c(4254) UploadCgi :X:begin update firmware size 7012356
MidLayerFlashNvram.c(929) MLF_WriteFirmWare :debug:

==== Firmware UPDATE (timestamp=1538327116) ====

MidLayerFlashNvram.c(1007) MLF_WriteFirmWare :debug:block size      = 131072
MidLayerFlashNvram.c(1008) MLF_WriteFirmWare :debug:write block cnt = 54/54
MidLayerFlashNvram.c(1010) MLF_WriteFirmWare :debug:verify error cnt= 0
Restarting system.
.
In:    serial
Out:   serial
Err:   serial
Memory Test
uboot use  83F6BFB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000  Writing...  Reading...
Memory Test OK
### buf_ver=[1.08] U-Boot Ver.=[1.08]
### build_date(env)=[Sep 26 2011 - 00:19:46] build_date(bin)=[Sep 26 2011 - 00:19:46]
ag7240_enet_initialize...
Reading MAC Address from ENV(0x83f8c2f8)
No valid address in Flash. Using fixed address
Virian MDC CFG Value ==> 4
: cfg1 0x7 cfg2 0x7014
eth0: 02:aa:bb:cc:dd:1a
eth0 up
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0  02:AA:BB:CC:DD:1A
, eth1  00:03:7F:09:0B:AD

dup 1 speed 1000

tftp server(receive) go, waiting:4[sec]
Load address: 0x81f00000

TftpServer Timeout;
no file was loaded.
change bootargs
console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties) mem=64M product_rev=1 UART=1
## Booting image at bf060000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.72
   Created:      2018-09-30  16:32:17 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1600513 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... crc32_fw: bf060040 - bf1e6c40 (len:00186c01) calc...
crc32_fw: range1 bf060040 - bf1e6c40
OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 4.14.72 (musashino205@Taiha.Net) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r0+8209-28be5abff2)) #0 Sun Sep 30 16:32:17 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Buffalo WZR-HP-G302H A1A0
[    0.000000] SoC: Atheros AR7242 rev 1
[    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, VIPT, cache 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,115200 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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 58272K/65536K available (3731K kernel code, 144K rwdata, 900K rodata, 1232K init, 204K bss, 7264K 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: 400.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007902] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.094148] pid_max: default: 32768 minimum: 301
[    0.099067] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105670] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.119001] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.128868] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.135060] pinctrl core: initialized pinctrl subsystem
[    0.141622] NET: Registered protocol family 16
[    0.154794] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.161306]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.166515]   IO 0x0000000000000000..0x0000000000000000
[    0.196643] PCI host bridge to bus 0000:00
[    0.200758] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.207675] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.213232] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.220008] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.228601] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.236828] clocksource: Switched to clocksource MIPS
[    0.243323] NET: Registered protocol family 2
[    0.248907] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.255884] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.262305] TCP: Hash tables configured (established 1024 bind 1024)
[    0.268866] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.274717] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.281338] NET: Registered protocol family 1
[    0.292021] Crashlog allocated RAM at address 0x3f00000
[    0.299062] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.312887] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.318756] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.340892] io scheduler noop registered
[    0.344813] io scheduler deadline registered (default)
[    0.350483] ar7200-usb-phy usb-phy: phy reset is missing
[    0.356361] pinctrl-single 18040028.pinmux: 64 pins at pa b8040028 size 8
[    0.363838] gpio-export gpio-export: 1 gpio(s) exported
[    0.370155] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.377534] console [ttyS0] disabled
[    0.381161] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 12500000) is a 16550A
[    0.389914] console [ttyS0] enabled
[    0.389914] console [ttyS0] enabled
[    0.396940] bootconsole [early0] disabled
[    0.396940] bootconsole [early0] disabled
[    0.414439] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.423161] m25p80 spi0.1: mx25l12805d (16384 Kbytes)
[    0.429819] Concatenating MTD devices:
[    0.433600] (0): "spi0.0"
[    0.436232] (1): "spi0.1"
[    0.438948] into device "virtual_flash"
[    0.442867] 5 fixed-partitions partitions found on MTD device virtual_flash
[    0.449884] Creating 5 MTD partitions on "virtual_flash":
[    0.455325] 0x000000000000-0x000000040000 : "u-boot"
[    0.461384] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.467837] 0x000000050000-0x000000060000 : "art"
[    0.473570] 0x000000060000-0x000001fc0000 : "firmware"
[    0.566161] 2 uimage-fw partitions found on MTD device firmware
[    0.572181] 0x000000060000-0x0000001f0000 : "kernel"
[    0.578268] 0x0000001f0000-0x000001fc0000 : "rootfs"
[    0.584202] mtd: device 7 (rootfs) set to be root filesystem
[    0.590005] 1 squashfs-split partitions found on MTD device rootfs
[    0.596232] 0x000000710000-0x000001fc0000 : "rootfs_data"
[    0.602709] 0x000001fc0000-0x000002000000 : "user_property"
[    0.610874] libphy: Fixed MDIO Bus: probed
[    0.957282] libphy: ag71xx_mdio: probed
[    0.963160] switch0: Atheros AR8316 rev. 1 switch registered on mdio-bus.0
[    1.308015] ar8316: Using port 4 as switch port
[    1.316999] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]
[    1.328648] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    1.337615] NET: Registered protocol family 10
[    1.347393] Segment Routing with IPv6
[    1.351217] NET: Registered protocol family 17
[    1.355740] 8021q: 802.1Q VLAN Support v1.8
[    1.368247] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.385592] Freeing unused kernel memory: 1232K
[    1.390178] This architecture does not have kernel memory protection.
[    2.199278] init: Console is alive
[    2.202972] init: - watchdog -
[    2.506877] random: fast init done
[    4.199341] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.433962] usbcore: registered new interface driver usbfs
[    4.439682] usbcore: registered new interface driver hub
[    4.445151] usbcore: registered new device driver usb
[    4.500580] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.520351] SCSI subsystem initialized
[    4.531126] ehci-platform: EHCI generic platform driver
[    4.536737] ehci-platform 1b000000.usb: EHCI Host Controller
[    4.542542] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    4.550595] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    4.576853] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    4.584260] hub 1-0:1.0: USB hub found
[    4.588559] hub 1-0:1.0: 1 port detected
[    4.599322] usbcore: registered new interface driver usb-storage
[    4.606620] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.616201] init: - preinit -
[    6.283016] random: jshn: uninitialized urandom read (4 bytes read)
[    6.683508] random: jshn: uninitialized urandom read (4 bytes read)
[    6.987658] random: jshn: uninitialized urandom read (4 bytes read)
[    7.944696] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.950754] 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
[    8.055429] urandom_read: 2 callbacks suppressed
[    8.055441] random: procd: uninitialized urandom read (4 bytes read)
[    8.988068] eth0: link up (1000Mbps/Full duplex)
[    8.992781] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.999724] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   12.224097] mount_root: loading kmods from internal overlay
[   12.289121] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   12.303259] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   14.099491] block: attempting to load /etc/config/fstab
[   14.112486] block: unable to load configuration (fstab: Entry not found)
[   14.119434] block: no usable configuration
[   14.124671] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   14.195533] urandom-seed: Seed file not found (/etc/urandom.seed)
[   14.383408] procd: - early -
[   14.386436] procd: - watchdog -
[   15.072066] procd: - watchdog -
[   15.075590] procd: - ubus -
[   15.227033] eth0: link down
[   15.274096] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.282312] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.321668] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.329897] procd: - init -
Please press Enter to activate this console.
[   16.259843] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.315705] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   16.397841] u32 classifier
[   16.400573]     input device check on
[   16.404250]     Actions configured
[   16.436388] Mirror/redirect action on
[   16.471634] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   16.511505] Loading modules backported from Linux version v4.19-rc5-0-g6bf4ca7fbc85
[   16.519280] Backport generated by backports.git v4.19-rc5-1-0-g05571dcd
[   16.540955] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.768411] usbcore: registered new interface driver ums-alauda
[   16.793751] usbcore: registered new interface driver ums-cypress
[   16.829054] usbcore: registered new interface driver ums-datafab
[   16.858789] usbcore: registered new interface driver ums-freecom
[   16.872809] usbcore: registered new interface driver ums-isd200
[   16.888744] usbcore: registered new interface driver ums-jumpshot
[   16.899802] usbcore: registered new interface driver ums-karma
[   16.909492] usbcore: registered new interface driver ums-sddr09
[   16.918752] usbcore: registered new interface driver ums-sddr55
[   16.928219] usbcore: registered new interface driver ums-usbat
[   16.990244] xt_time: kernel timezone is -0000
[   17.097575] PPP generic driver version 2.4.2
[   17.105637] NET: Registered protocol family 24
[   17.172996] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   17.183223] ath9k 0000:00:00.0: Falling back to user helper
[   17.405325] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[   17.435119] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=11
[   17.484404] kmodloader: done loading kernel modules from /etc/modules.d/*
[   37.932217] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   38.079402] br-lan: port 1(eth0.1) entered blocking state
[   38.084848] br-lan: port 1(eth0.1) entered disabled state
[   38.090794] device eth0.1 entered promiscuous mode
[   38.095622] device eth0 entered promiscuous mode
[   38.159916] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   38.254532] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   38.988474] eth0: link up (1000Mbps/Full duplex)
[   38.993184] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   39.066992] br-lan: port 1(eth0.1) entered blocking state
[   39.072443] br-lan: port 1(eth0.1) entered forwarding state
[   39.078351] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   39.216938] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   56.456485] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   56.497036] jffs2_build_filesystem(): unlocking the mtd device... 
[   56.497054] done.
[   56.505205] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[  123.186918] random: crng init done
[  123.197880] random: 1 urandom warning(s) missed due to ratelimiting
[  259.047585] done.
[  259.049589] jffs2: notice: (2163) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  259.533926] overlayfs: upper fs does not support tmpfile.



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+8209-01bad1acb1
 -----------------------------------------------------
=== 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:/#