WSR-2533DHP2 stock -> OpenWrt

WSR-2533DHP2は以前よりOpenWrtチームのメンバーの一人であるHauke氏とやり取りしながら作業しており(氏も実機所持)、factoryイメージについては氏がほとんど完全な形に仕立ててくださった。
こちらではブート中の一部処理(主にmtdsplit_trx)に氏と異なるアプローチを採り、試してみた結果のメモ。

(ログはメーカーファームウェアでの投入直後からのもの)

The tail length is 46! Update len to 11534580!
decodesize 11534336...
cp: can't stat '/usr/sbin/ubi*': No such file or directory
cp: can't stat '/usr/sbin/uboot_env': No such file or directory
nvram_set: No such file or directory
token=tools, line=nandwrite
token=partitions, line=Kernel
token=Kernel, line=0x0:-
sector: Kernel -> offset=[0x0], write_len=[0xb00000]
[get_all_mtd] MTD[0]: /dev/mtd0, 0x80000, 0x20000, Preloader
[get_all_mtd] MTD[1]: /dev/mtd1, 0x40000, 0x20000, ATF
[get_all_mtd] MTD[2]: /dev/mtd2, 0x80000, 0x20000, Bootloader
[get_all_mtd] MTD[3]: /dev/mtd3, 0x80000, 0x20000, Config
[get_all_mtd] MTD[4]: /dev/mtd4, 0x40000, 0x20000, Factory
[get_all_mtd] MTD[5]: /dev/mtd5, 0x3a00000, 0x20000, Kernel
[get_all_mtd] MTD[6]: /dev/mtd6, 0x23ffe4, 0x20000, kernel
[get_all_mtd] MTD[7]: /dev/mtd7, 0x37c0000, 0x20000, rootfs
[get_all_mtd] MTD[8]: /dev/mtd8, 0x2fe0000, 0x20000, rootfs_data
[get_all_mtd] MTD[9]: /dev/mtd9, 0x3a00000, 0x20000, Kernel2
[get_all_mtd] MTD[10]: /dev/mtd10, 0x200000, 0x20000, glbcfg
[get_all_mtd] MTD[11]: /dev/mtd11, 0x200000, 0x20000, board_data
[merge_sector_info] sector[0]: name=[Kernel], dev=[/dev/mtd5], offset=[0], write_len=[11534336], max_allow_size=[60817408]
[validate_file] freeram=[122179584] bufferram=[6627328]
/tmp/uploadfW0Ykd: CRC OK
[do_nandwrite_erase] Erase MTD[Kernel]: start
[do_nandwrite_erase] Erase MTD[Kernel]: end
[do_nandwrite_update] Write MTD[Kernel]: start
[do_nandwrite_update] cmd=[/tmp/nandwrite -q -p --if_start=0x0 --if_len=0xb00000 /dev/mtd5 /tmp/uploadfW0Ykd]
[do_nandwrite_update] Write MTD[Kernel]: end
nvram_set: No such file or directory
nvram_set: No such file or directory
[switch_bank] to 0, return 22
upload return: 0
[  294.782387] reboot: Restarting system

F0: 102B 0000
F2: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0000 0041 [0000]
G0: 0190 0000
T0: 0000 0364 [000F]
Jump to BL

UNIVPLL_CON0 = 0xFE000000!!!
mt_pll_init: Set pll frequency for 25M crystal
RAM_CONSOLE preloader last status: 0x0 0x0 0x0 0x0 0x0 0x0
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic_init] Preloader Start..................
[pmic_init] MT6380 CHIP Code, reg_val = 0, 1:E2  0:E3
[pmic_init] Done...................
Chip part number:7622B
MT7622 Version: 1.2.6, (iPA)
SSC OFF
mt_pll_post_init: mt_get_cpu_freq = 1350000Khz
mt_pll_post_init: mt_get_mem_freq = 1600000Khz
mt_pll_post_init: mt_get_bus_freq = 1119920Khz
[PLFM] Init I2C: OK(0)

[BLDR] Build Time: 20171227-144821
==== Dump RGU Reg ========
RGU MODE:     14
RGU LENGTH:   FFE0
RGU STA:      40000000
RGU INTERVAL: FFF
RGU SWSYSRST: 8000
==== Dump RGU Reg End ====
RGU: g_rgu_satus:2
mtk_wdt_mode_config  mode value=10, tmp:22000010
PL RGU RST: ??
SW reset with bypass power key flag
Find bypass powerkey flag
WDT NONRST=0x20000000
WDT IRQ_EN=0x300002
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
[EMI] MDL number = 2
[EMI] DRAMC calibration start

[EMI] DRAMC calibration end

[EMI]rank size auto detect
[EMI]rank0 size: 0x10000000
[MEM] complex R/W mem test pass
RAM_CONSOLE wdt status (0x2)=0x2
[PLFM] Init Boot Device: OK(0)

[PART] blksz: 2048B
[PART] [0x0000000000000000-0x000000000007FFFF] "PRELOADER" (256 blocks)
[PART] [0x0000000000080000-0x00000000000BFFFF] "tee1" (128 blocks)

=================================================
Checking Image1
--> nand read 4007ff28 200000 1c

NAND read: device 0 offset 0x200000, size 0x1c
28 bytes read: OK
---------------------
TRX MAGIC    32504844
Image len    b00000
header crc32 d68275a9
---------------------
trx magic OK!
--> nand read 4007ff28 200000 b00000

NAND read: device 0 offset 0x200000, size 0xb00000
11534336 bytes read: OK
---------------------
Image1 crc32 d68275a9
---------------------
crc32 OK!
=================================================

=================================================
Checking Image2
--> nand read 4007ff28 3c00000 1c

NAND read: device 0 offset 0x3c00000, size 0x1c
28 bytes read: OK
---------------------
TRX MAGIC    32504844
Image len    a19000
header crc32 5028d247
---------------------
trx magic OK!
--> nand read 4007ff28 3c00000 a19000

NAND read: device 0 offset 0x3c00000, size 0xa19000
10588160 bytes read: OK
---------------------
Image2 crc32 5028d247
---------------------
crc32 OK!
=================================================
## check Image1 return 0, check Image2 return 0, Image1 crc32=d68275a9, Image2 crc32=5028d247.
Image1 is ok!
Image2 is not same as Image1, copy Image1 to Image2!

=================================================
--> nand read 4007ff28 200000 1c

NAND read: device 0 offset 0x200000, size 0x1c
28 bytes read: OK
--> nand read 4007ff28 200000 b00000

NAND read: device 0 offset 0x200000, size 0xb00000
11534336 bytes read: OK
--> nand erase 3c00000 3a00000

NAND erase: device 0 offset 0x3c00000, size 0x3a00000
Erasing at 0x75e0000 -- 100% complete.
OK
--> nand write 4007ff28 3c00000 b00000

NAND write: device 0 offset 0x3c00000, size 0xb00000
11534336 bytes written: OK
=================================================
Recovery done!

NAND read: device 0 offset 0x200000, size 0x2000
8192 bytes read: OK
[do_read_image_blks]This is a FIT image,img_size = 0x2f4b98
[do_read_image_blks]img_blks = 0x5ea
[do_read_image_blks]img_align_size = 0x2f5000

NAND read: device 0 offset 0x200000, size 0x2f5000
3100672 bytes read: OK
bootm flag=0, states=70f
Original load address = 0x4007ff28
After skip trx_header, load address = 0x4007ff44

## Loading kernel from FIT Image at 4007ff44 ...
Using 'config@1' configuration
Trying 'kernel@1' kernel subimage
Description:  ARM64 OpenWrt Linux-5.4.87
Type:         Kernel Image
Compression:  lzma compressed
Data Start:   0x4008002c
Data Size:    3074703 Bytes = 2.9 MiB
Architecture: AArch64
OS:           Linux
Load Address: 0x44080000
Entry Point:  0x44080000
Hash algo:    crc32
Hash value:   1fe84a29
Hash algo:    sha1
Hash value:   bfd2df508991bab1a5eb759e32d9f8045be5abee
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 4007ff44 ...
Using 'config@1' configuration
Trying 'fdt@1' fdt subimage
Description:  ARM64 OpenWrt buffalo_wsr-2533dhp2 device tree blob
Type:         Flat Device Tree
Compression:  uncompressed
Data Start:   0x4036ec00
Data Size:    22949 Bytes = 22.4 KiB
Architecture: AArch64
Hash algo:    crc32
Hash value:   3553a12c
Hash algo:    sha1
Hash value:   aa71a31056abd1a17e92c869505a59d59a90f646
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x4036ec00
Uncompressing Kernel Image ... OK
Loading Device Tree to 4cf45000, end 4cf4d9a4 ... OK

Starting kernel ...

[ATF][    11.947314]save kernel info
[ATF][    11.950344]Kernel_EL2
[ATF][    11.953101]Kernel is 64Bit
[ATF][    11.956289]pc=0x44080000, r0=0x4cf45000, r1=0x0
INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO:    BL3-1: Next image address = 0x44080000
INFO:    BL3-1: Next image spsr = 0x3c9
[ATF][    11.974557]el3_exit
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.87 (musashino205@TAIHA.NET) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r0+15420-767aad78b7)) #0 SMP Sat Jan 9 08:21:18 2021
[    0.000000] Machine model: Buffalo WSR-2533DHP2
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] On node 0 totalpages: 65488
[    0.000000]   DMA32 zone: 1024 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 65488 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu s43736 r8192 d29992 u81920
[    0.000000] pcpu-alloc: s43736 r8192 d29992 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64464
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512
[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 235016K/261952K available (6334K kernel code, 408K rwdata, 1840K rodata, 384K init, 289K bss, 26936K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2d4/0x434 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008467] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[    0.019105] pid_max: default: 32768 minimum: 301
[    0.023958] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.031444] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.040238] ASID allocator initialised with 65536 entries
[    0.045888] rcu: Hierarchical SRCU implementation.
[    0.051101] smp: Bringing up secondary CPUs ...
[    0.056102] Detected VIPT I-cache on CPU1
[    0.056134] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.056188] smp: Brought up 1 node, 2 CPUs
[    0.071344] SMP: Total of 2 processors activated.
[    0.076215] CPU features: detected: 32-bit EL0 Support
[    0.081536] CPU features: detected: CRC32 instructions
[    0.086916] CPU: All CPU(s) started at EL2
[    0.091164] alternatives: patching kernel code
[    0.098414] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.108527] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.115646] pinctrl core: initialized pinctrl subsystem
[    0.121528] NET: Registered protocol family 16
[    0.126312] DMA: preallocated 256 KiB pool for atomic allocations
[    0.143393] GPIO line 463 (rtl8367s-reset) hogged as output/high
[    0.159029] SCSI subsystem initialized
[    0.163023] libata version 3.00 loaded.
[    0.167137] usbcore: registered new interface driver usbfs
[    0.172948] usbcore: registered new interface driver hub
[    0.178480] usbcore: registered new device driver usb
[    0.184141] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.195004] clocksource: Switched to clocksource arch_sys_counter
[    0.201827] thermal_sys: Registered thermal governor 'fair_share'
[    0.201831] thermal_sys: Registered thermal governor 'bang_bang'
[    0.208154] thermal_sys: Registered thermal governor 'step_wise'
[    0.214377] thermal_sys: Registered thermal governor 'user_space'
[    0.220599] thermal_sys: Registered thermal governor 'power_allocator'
[    0.227169] NET: Registered protocol family 2
[    0.238693] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.247358] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.255397] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.262813] TCP: Hash tables configured (established 2048 bind 2048)
[    0.269449] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.276223] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.283517] NET: Registered protocol family 1
[    0.288044] PCI: CLS 0 bytes, default 64
[    0.292935] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[    0.302128] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.308191] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.333220] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.347184] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.354395] printk: console [ttyS0] disabled
[    0.378973] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 116, base_baud = 1562500) is a ST16650V2
[    0.388538] printk: console [ttyS0] enabled
[    0.388538] printk: console [ttyS0] enabled
[    0.396904] printk: bootconsole [uart8250] disabled
[    0.396904] printk: bootconsole [uart8250] disabled
[    0.407110] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.413585] mtk-ecc 1100e000.ecc: probed
[    0.418352] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xa1
[    0.424701] nand: Winbond W29N01HZ
[    0.428099] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.435666] mtk-nand 1100d000.nfi: eccsize 512 eccstrength 4
[    0.441327] Scanning device for bad blocks
[    0.553371] random: fast init done
[    0.882044] 9 fixed-partitions partitions found on MTD device mtk-nand
[    0.888568] Creating 9 MTD partitions on "mtk-nand":
[    0.893531] 0x000000000000-0x000000080000 : "Preloader"
[    0.899213] 0x000000080000-0x0000000c0000 : "ATF"
[    0.904272] 0x0000000c0000-0x000000140000 : "Bootloader"
[    0.909922] 0x000000140000-0x0000001c0000 : "Config"
[    0.915247] 0x0000001c0000-0x000000200000 : "factory"
[    0.920640] 0x000000200000-0x000003c00000 : "firmware"
[    0.926802] 2 trx-fw partitions found on MTD device firmware
[    0.932462] Creating 2 MTD partitions on "firmware":
[    0.937424] 0x00000000001c-0x000000400000 : "kernel"
[    0.942744] 0x000000400000-0x000003a00000 : "ubi"
[    0.948046] 0x000003c00000-0x000007600000 : "Kernel2"
[    0.953729] 0x000007600000-0x000007800000 : "glbcfg"
[    0.959060] 0x000007800000-0x000007a00000 : "board_data"
[    0.965210] libphy: Fixed MDIO Bus: probed
[    0.992523] libphy: mdio: probed
[    0.996557] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc0113e0000, irq 124
[    1.006083] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    1.015272] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.025740] NET: Registered protocol family 10
[    1.030736] Segment Routing with IPv6
[    1.034441] NET: Registered protocol family 17
[    1.038957] 8021q: 802.1Q VLAN Support v1.8
[    1.052579] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.059131] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.064970] mtk-pcie 1a143000.pcie:   MEM 0x20000000..0x27ffffff -> 0x20000000
[    1.098726] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.104908] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.110390] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.117260] pci_bus 0000:00: scanning bus
[    1.121294] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400
[    1.127336] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.135947] pci_bus 0000:00: fixups for bus
[    1.140130] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.146827] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.154835] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.161613] pci_bus 0000:01: scanning bus
[    1.165745] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    1.171973] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.179710] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.204058] pci_bus 0000:01: fixups for bus
[    1.208240] pci_bus 0000:01: bus scan returning with max=01
[    1.213810] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.220423] pci_bus 0000:00: bus scan returning with max=01
[    1.226003] pci 0000:00:00.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
[    1.233655] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
[    1.241654] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    1.248441] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    1.255828] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.260795] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    1.267645] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
[    1.274254] pcieport 0000:00:00.0: assign IRQ: got 0
[    1.279223] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.285327] pcieport 0000:00:00.0: enabling bus mastering
[    1.290980] mtk_hsdma 1b007000.dma-controller: Using 3 as missing dma-requests property
[    1.299141] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    1.306889] UBI: auto-attach mtd7
[    1.310209] ubi0: attaching mtd7
[    1.331026] UBI: EOF marker found, PEBs from 50 will be erased
[    1.337146] ubi0: scanning is finished
[    1.370310] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 360 LEBs
[    1.377094] ubi0: attached mtd7 (name "ubi", size 54 MiB)
[    1.382495] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.389365] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.396060] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    1.402842] ubi0: good PEBs: 432, bad PEBs: 0, corrupted PEBs: 0
[    1.408842] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.416058] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1610180478
[    1.425185] ubi0: available PEBs: 0, total reserved PEBs: 432, PEBs reserved for bad PEB handling: 20
[    1.434407] ubi0: background thread "ubi_bgt0d" started, PID 596
[    1.440836] block ubiblock0_0: created from ubi0:0(rootfs)
[    1.446328] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.453289] hctosys: unable to open rtc device (rtc0)
[    1.467566] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    1.474877] Freeing unused kernel memory: 384K
[    1.495039] Run /sbin/init as init process
[    1.752912] init: Console is alive
[    1.756413] init: - watchdog -
[    2.086311] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.107122] rtl8367b rtl8367s: using MDIO bus 'mdio'
[    2.113013] rtl8367b rtl8367s: found chip num:6367 ver:00a0, mode:00a0
[    2.119541] rtl8367b rtl8367s: RTL8367S chip found
[    3.753773] libphy: rtl8367s: probed
[    3.758618] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.774112] init: - preinit -
[    4.139933] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    4.148605] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.157425] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    4.164140] 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
[    8.257100] UBIFS (ubi0:1): default file-system created
[    8.263211] UBIFS (ubi0:1): Mounting in unauthenticated mode
[    8.268931] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 687
[    8.353017] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    8.360847] UBIFS (ubi0:1): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    8.370757] UBIFS (ubi0:1): FS size: 45158400 bytes (43 MiB, 350 LEBs), journal size 2322432 bytes (2 MiB, 18 LEBs)
[    8.381185] UBIFS (ubi0:1): reserved for root: 2132942 bytes (2082 KiB)
[    8.387796] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 1B218DD0-99F5-443A-B99F-08B4625FC2E1, small LPT model
[    8.400517] mount_root: overlay filesystem has not been fully initialized yet
[    8.407804] mount_root: switching to ubifs overlay
[    8.415914] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.459638] procd: - early -
[    8.462544] procd: - watchdog -
[    8.993867] procd: - watchdog -
[    9.002635] procd: - ubus -
[    9.045241] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.056132] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.062592] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.069234] procd: - init -
Please press Enter to activate this console.
[    9.265920] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.294771] urngd: v1.0.2 started.
[    9.320996] Loading modules backported from Linux version v5.8.18-0-gab435ce49bd1
[    9.322258] random: crng init done
[    9.328504] Backport generated by backports.git v5.8.18-1-0-ga630fd46
[    9.338355] random: 6 urandom warning(s) missed due to ratelimiting
[    9.378936] xt_time: kernel timezone is -0000
[    9.425930] mt7615e 0000:01:00.0: assign IRQ: got 129
[    9.431050] pci 0000:00:00.0: enabling bus mastering
[    9.436028] mt7615e 0000:01:00.0: enabling device (0000 -> 0002)
[    9.442104] mt7615e 0000:01:00.0: enabling bus mastering
[    9.454537] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.489913] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[    9.497686] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[    9.497686]
[    9.517526] PPP generic driver version 2.4.2
[    9.522457] NET: Registered protocol family 24
[    9.530917] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[    9.530917]
[    9.553975] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.711065] mt7615e 0000:01:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[    9.739924] mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307
[    9.793168] mt7622-wmac 18000000.wmac: N9 Firmware Version: 2.0, Build Time: 20200131180931
[   20.040571] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   20.046932] mtk_soc_eth 1b100000.ethernet: PPE table busy
[   20.071304] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   20.080646] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   20.089316] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   20.101871] br-lan: port 1(eth0.1) entered blocking state
[   20.107291] br-lan: port 1(eth0.1) entered disabled state
[   20.112918] device eth0.1 entered promiscuous mode
[   20.117740] device eth0 entered promiscuous mode
[   20.123851] br-lan: port 1(eth0.1) entered blocking state
[   20.129295] br-lan: port 1(eth0.1) entered forwarding state

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

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

WCR-1166DSとfactoryイメージ

WCR-116DSではファームウェアフォーマットがTRX形式であるが、メーカーファームウェアにおいてはTRXヘッダのMagicNumberに 0x5C436F74 (“\Cot“) が使用されており、WebUIから投入されるファームウェアにもこのMagicNumberが要求される。(ただしU-Bootは標準のものでもブート可)
このためOpenWrtのfactoryイメージも標準の 0x48445230 (“HDR0“) ではなく当該MagicNumberを使用しているが、ブート時に “firmware” パーティションから “kernel” と “rootfs” の各領域を取り出してそれぞれmtdを作成する “mtdsplit_trx” が現状標準のMagicNumber以外に対応していない。
これが原因で、WebUIからfactoryイメージを投入した場合、再起動後にTRXヘッダを検出できない為にmtdsplit_trxが機能せず、RootFSのマウントに失敗するためブートループに陥る。

修正試行メモ。

修正前(現行)

[04020C0A][04020D07]
DDR Calibration DQS reg = 00008886

U-Boot 1.1.3 (Feb  3 2016 - 17:44:55) 0.04

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: 16 MBytes NOR Flash
Date:Feb  3 2016  Time:17:44:55
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

##### The CPU freq = 575 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.                                                                                           0
Erasing SPI Flash...
.
Writing to SPI Flash...
.
done

3: System Boot system code via Flash1.
## Booting image at bc810000 ...

=================================================
Check image validation:
Image1 Trx Check -->
## check_trx, crc=-23406271, *crc_ret=-23406271.
OK
Image1 Header Magic Number --> OK
Image1 Header Checksum --> OK
Image1 Data Checksum --> OK

=================================================

=================================================
Check image validation:
Image2 Trx Check -->
## check_trx, crc=-23406271, *crc_ret=-23406271.
OK
Image2 Header Magic Number --> OK
Image2 Header Checksum --> OK
Image2 Data Checksum --> OK

=================================================
## check Image1 return 0, check Image2 return 0, Image1 crc=-23406271, Image2 crc=-23406271.
Image1 is ok!
Image2 is ok and same as Image1!
Image Name:   MIPS OpenWrt Linux-5.4.87
Image Type:   MIPS Linux Kernel Image (lzma compressed)
Data Size:    2118006 Bytes =  2 MB
Load Address: 80000000
Entry Point:  80000000
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 5.4.87 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15465-4ebec0b3e2)) #0 Fri Jan 8 20:09:17 2021
[    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 MT7628AN ver:1 eco:2
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Buffalo WCR-1166DS
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=0006d470
[    0.000000] Readback ErrCtl register=0006d470
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 56992K/65536K available (5055K kernel code, 205K rwdata, 1116K rodata, 1232K init, 205K bss, 8544K 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] intc: using register map from devicetree
[    0.000000] random: get_random_bytes called from start_kernel+0x32c/0x520 with crng_init=0
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015384] Calibrating delay loop... 385.02 BogoMIPS (lpj=770048)
[    0.059443] pid_max: default: 32768 minimum: 301
[    0.068776] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.083116] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.105088] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.124293] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.137808] pinctrl core: initialized pinctrl subsystem
[    0.151046] NET: Registered protocol family 16
[    0.269245] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.430081] PCI host bridge /pcie@10140000 ranges:
[    0.439425]  MEM 0x0000000020000000..0x000000002fffffff
[    0.449733]   IO 0x0000000010160000..0x000000001016ffff
[    0.483324] PCI host bridge to bus 0000:00
[    0.491362] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.504891] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.516575] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.529987] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.545702] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    0.557547] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.569904] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[    0.582362] pci 0000:00:00.0: supports D1
[    0.590195] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.603632] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    0.615487] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    0.628850] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.642160] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.655998] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.668987] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.682054] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.695095] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.708857] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.722274] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.736549] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.749976] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.764438] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.778688] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.788491] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.801902] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.816294] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.840092] clocksource: Switched to clocksource MIPS
[    0.851374] NET: Registered protocol family 2
[    0.861019] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.877501] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.892571] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.906497] TCP: Hash tables configured (established 1024 bind 1024)
[    0.919203] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.932054] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.946095] NET: Registered protocol family 1
[    0.954681] PCI: CLS 80 bytes, default 32
[    0.967303] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.988517] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.999963] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.035409] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.053334] mt7621_gpio 10000600.gpio: registering 32 gpios
[    1.064599] mt7621_gpio 10000600.gpio: registering 32 gpios
[    1.075827] mt7621_gpio 10000600.gpio: registering 32 gpios
[    1.087090] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.102530] printk: console [ttyS0] disabled
[    1.110966] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    1.128773] printk: console [ttyS0] enabled
[    1.128773] printk: console [ttyS0] enabled
[    1.145244] printk: bootconsole [early0] disabled
[    1.145244] printk: bootconsole [early0] disabled
[    1.165312] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    1.195782] spi-nor spi0.0: w25q128 (16384 Kbytes)
[    1.205353] 7 fixed-partitions partitions found on MTD device spi0.0
[    1.217938] Creating 7 MTD partitions on "spi0.0":
[    1.227436] 0x000000000000-0x000000030000 : "u-boot"
[    1.238427] 0x000000030000-0x000000040000 : "u-boot-env"
[    1.250123] 0x000000040000-0x000000050000 : "factory"
[    1.261306] 0x000000050000-0x000000810000 : "firmware"
[    1.282051] 0x000000810000-0x000000fd0000 : "firmware2"
[    1.293594] 0x000000fd0000-0x000000fe0000 : "glbcfg"
[    1.304719] 0x000000fe0000-0x000000ff0000 : "board_data"
[    1.317214] libphy: Fixed MDIO Bus: probed
[    1.339287] rt3050-esw 10110000.esw: link changed 0x00
[    1.350741] mtk_soc_eth 10100000.ethernet: generated random MAC address 86:0f:f1:a8:ef:76
[    1.367739] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.386244] NET: Registered protocol family 10
[    1.399708] Segment Routing with IPv6
[    1.407182] NET: Registered protocol family 17
[    1.416062] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.441743] 8021q: 802.1Q VLAN Support v1.8
[    1.452424] /dev/root: Can't open blockdev
[    1.460619] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.475434] Please append a correct "root=" boot option; here are the available partitions:
[    1.491986] 1f00             192 mtdblock0
[    1.491989]  (driver?)
[    1.504938] 1f01              64 mtdblock1
[    1.504941]  (driver?)
[    1.517885] 1f02              64 mtdblock2
[    1.517888]  (driver?)
[    1.530831] 1f03            7936 mtdblock3
[    1.530834]  (driver?)
[    1.543777] 1f04            7936 mtdblock4
[    1.543781]  (driver?)
[    1.556724] 1f05              64 mtdblock5
[    1.556727]  (driver?)
[    1.569672] 1f06              64 mtdblock6
[    1.569675]  (driver?)
[    1.582617] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.598976] Rebooting in 1 seconds..

修正後

[04020C0A][04020D07]
DDR Calibration DQS reg = 00008886

U-Boot 1.1.3 (Feb  3 2016 - 17:44:55) 0.04

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: 16 MBytes NOR Flash
Date:Feb  3 2016  Time:17:44:55
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

##### The CPU freq = 575 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.                                                                                           0
Erasing SPI Flash...
.
Writing to SPI Flash...
.
done

3: System Boot system code via Flash1.
## Booting image at bc810000 ...

=================================================
Check image validation:
Image1 Trx Check -->
## check_trx, crc=1858596030, *crc_ret=1858596030.
OK
Image1 Header Magic Number --> OK
Image1 Header Checksum --> OK
Image1 Data Checksum --> OK

=================================================

=================================================
Check image validation:
Image2 Trx Check -->
## check_trx, crc=365507314, *crc_ret=365507314.
OK
Image2 Header Magic Number --> OK
Image2 Header Checksum --> OK
Image2 Data Checksum --> OK

=================================================
## check Image1 return 0, check Image2 return 0, Image1 crc=1858596030, Image2 crc=365507314.
Image1 is ok!
Image2 is not same as Image1, copy Image1 to Image2!

Copy Image:
Image1(0x50000) to Image2(0x810000), size=0x479000
.......................................................................
.......................................................................
.
.
Done!
Image Name:   MIPS OpenWrt Linux-5.4.87
Image Type:   MIPS Linux Kernel Image (lzma compressed)
Data Size:    1990161 Bytes =  1.9 MB
Load Address: 80000000
Entry Point:  80000000
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 5.4.87 (musashino205@TAIHA.NET) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r0+15468-288b7c883a)) #0 Sat Jan 9 06:16:44 2021
[    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 MT7628AN ver:1 eco:2
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Buffalo WCR-1166DS
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=0006d470
[    0.000000] Readback ErrCtl register=0006d470
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 57448K/65536K available (4721K kernel code, 199K rwdata, 1044K rodata, 1196K init, 197K bss, 8088K 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] intc: using register map from devicetree
[    0.000000] random: get_random_bytes called from start_kernel+0x32c/0x520 with crng_init=0
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015377] Calibrating delay loop... 385.02 BogoMIPS (lpj=770048)
[    0.059450] pid_max: default: 32768 minimum: 301
[    0.068783] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.083120] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.105013] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.124216] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.137741] pinctrl core: initialized pinctrl subsystem
[    0.149122] NET: Registered protocol family 16
[    0.266862] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.427702] PCI host bridge /pcie@10140000 ranges:
[    0.437047]  MEM 0x0000000020000000..0x000000002fffffff
[    0.447357]   IO 0x0000000010160000..0x000000001016ffff
[    0.480388] PCI host bridge to bus 0000:00
[    0.488438] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.501945] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.513641] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.527055] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.542771] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    0.554619] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.566973] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[    0.579428] pci 0000:00:00.0: supports D1
[    0.587259] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.600581] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    0.612434] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    0.625802] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.639119] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.652825] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.665814] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.678883] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.691927] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.705689] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.719106] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.733382] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.746809] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.761265] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.775517] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.785322] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.798737] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.813124] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.836105] clocksource: Switched to clocksource MIPS
[    0.847559] NET: Registered protocol family 2
[    0.857014] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.873504] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.888579] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.902500] TCP: Hash tables configured (established 1024 bind 1024)
[    0.915200] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.928047] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.942127] NET: Registered protocol family 1
[    0.950728] PCI: CLS 80 bytes, default 32
[    0.963307] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.984672] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.996126] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.032889] mt7621_gpio 10000600.gpio: registering 32 gpios
[    1.044190] mt7621_gpio 10000600.gpio: registering 32 gpios
[    1.055403] mt7621_gpio 10000600.gpio: registering 32 gpios
[    1.066669] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    1.080416] printk: console [ttyS0] disabled
[    1.088826] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    1.106651] printk: console [ttyS0] enabled
[    1.106651] printk: console [ttyS0] enabled
[    1.123129] printk: bootconsole [early0] disabled
[    1.123129] printk: bootconsole [early0] disabled
[    1.143017] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    1.170076] spi-nor spi0.0: w25q128 (16384 Kbytes)
[    1.179643] 7 fixed-partitions partitions found on MTD device spi0.0
[    1.192228] Creating 7 MTD partitions on "spi0.0":
[    1.201727] 0x000000000000-0x000000030000 : "u-boot"
[    1.212713] 0x000000030000-0x000000040000 : "u-boot-env"
[    1.224396] 0x000000040000-0x000000050000 : "factory"
[    1.235434] 0x000000050000-0x000000810000 : "firmware"
[    1.249668] 2 trx-fw partitions found on MTD device firmware
[    1.260938] Creating 2 MTD partitions on "firmware":
[    1.270802] 0x00000000001c-0x0000001e5e70 : "kernel"
[    1.281679] 0x0000001e5e70-0x0000007c0000 : "rootfs"
[    1.292631] mtd: device 5 (rootfs) set to be root filesystem
[    1.305600] 1 squashfs-split partitions found on MTD device rootfs
[    1.317926] 0x000000480000-0x0000007c0000 : "rootfs_data"
[    1.329689] 0x000000810000-0x000000fd0000 : "firmware2"
[    1.341113] 0x000000fd0000-0x000000fe0000 : "glbcfg"
[    1.352024] 0x000000fe0000-0x000000ff0000 : "board_data"
[    1.364530] libphy: Fixed MDIO Bus: probed
[    1.386416] rt3050-esw 10110000.esw: link changed 0x00
[    1.397843] mtk_soc_eth 10100000.ethernet: generated random MAC address ae:14:ed:bb:cc:9d
[    1.414848] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.433275] NET: Registered protocol family 10
[    1.446243] Segment Routing with IPv6
[    1.453743] NET: Registered protocol family 17
[    1.462640] 8021q: 802.1Q VLAN Support v1.8
[    1.477343] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.498103] Freeing unused kernel memory: 1196K
[    1.507096] This architecture does not have kernel memory protection.
[    1.519846] Run /sbin/init as init process
[    1.728112] random: fast init done
[    2.192604] init: Console is alive
[    2.199709] init: - watchdog -
[    2.965657] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.094049] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.118966] init: - preinit -
[    4.513971] random: jshn: uninitialized urandom read (4 bytes read)
[    4.687613] random: jshn: uninitialized urandom read (4 bytes read)
[    4.953016] random: jshn: uninitialized urandom read (4 bytes read)
[    5.420939] rt3050-esw 10110000.esw: link changed 0x00
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[    5.643922] urandom_read: 2 callbacks suppressed
level
[    5.643931] random: procd: uninitialized urandom read (4 bytes read)
[    9.415887] rt3050-esw 10110000.esw: link changed 0x10
[    9.485363] rt3050-esw 10110000.esw: link changed 0x18
[    9.842549] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    9.856887] jffs2_build_filesystem(): unlocking the mtd device...
[    9.856917] done.
[    9.872966] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   18.707315] done.
[   18.726068] jffs2: notice: (436) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   18.758172] mount_root: overlay filesystem has not been fully initialized yet
[   18.775672] mount_root: switching to jffs2 overlay
[   18.788235] overlayfs: upper fs does not support tmpfile.
- config restore -
[   19.328346] urandom-seed: Seed file not found (/etc/urandom.seed)
[   19.479759] procd: - early -
[   19.485774] procd: - watchdog -
[   20.078570] procd: - watchdog -
[   20.085305] procd: - ubus -
[   20.123658] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.142366] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.155579] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.169504] procd: - init -
Please press Enter to activate this console.
[   21.111929] kmodloader: loading kernel modules from /etc/modules.d/*
[   21.334963] Loading modules backported from Linux version v5.8.18-0-gab435ce49bd1
[   21.349865] Backport generated by backports.git v5.8.18-1-0-ga630fd46
[   21.439406] xt_time: kernel timezone is -0000
[   21.668268] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   21.757943] urngd: v1.0.2 started.
[   21.959109] random: crng init done
[   21.965883] random: 1 urandom warning(s) missed due to ratelimiting
[   22.718444] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   22.730252] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   22.788119] mt76_wmac 10300000.wmac: firmware init done
[   23.070158] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[   23.082770] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   24.183011] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   24.201253] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   24.212161] mt76x2e 0000:01:00.0: Build: 1
[   24.220274] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   24.252215] mt76x2e 0000:01:00.0: Firmware running!
[   24.335088] PPP generic driver version 2.4.2
[   24.355612] NET: Registered protocol family 24
[   24.400448] kmodloader: done loading kernel modules from /etc/modules.d/*
[   31.455170] rt3050-esw 10110000.esw: link changed 0x00
[   35.485334] rt3050-esw 10110000.esw: link changed 0x10
[   35.604496] rt3050-esw 10110000.esw: link changed 0x18
[   36.740899] device eth0 entered promiscuous mode
[   36.760565] br-lan: port 1(eth0.1) entered blocking state
[   36.771326] br-lan: port 1(eth0.1) entered disabled state
[   36.782470] device eth0.1 entered promiscuous mode
[   36.860294] br-lan: port 1(eth0.1) entered blocking state
[   36.871027] br-lan: port 1(eth0.1) entered forwarding state
[   37.750399] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

WCR-1166DS

既にOpenWrtでサポート済みながら以前よりfactoryが問題を抱えているという話を聞いていたものの、今一つ意欲が上がらず保留にしていた機種。今現在進めているWSR-2533DHP2のサポートに絡み行った変更で、この機種のfactoryの問題を解決できると思われる為今回確保して確認することにした。
サポート済みの為まとめるか迷ったものの、後々の為まとめる。

Switch

zone WAN LAN
port
(WSR-1166DS)
INTERNET LAN
port
(MT7628)
port4 port3

MAC

  • LAN: 34:3D:C4:xx:xx:D3 (board_data, mac (text))
  • WAN: 34:3D:C4:xx:xx:D3 (board_data, mac (text))
  • 2.4G: 34:3D:C4:xx:xx:D4 (Factory, 0x4 (hex))
  • 5G: 34:3D:C4:xx:xx:D5 (Factory, 0x8004 (hex))

U-Boot

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

  • version
    MT7628 # version
    
    U-Boot 1.1.3 (Feb  3 2016 - 17:44:55) 0.04
    

  • printenv
    MT7628 # printenv
    bootcmd=tftp
    bootdelay=5
    baudrate=57600
    ethaddr="00:AA:BB:CC:DD:10"
    ipaddr=192.168.11.1
    serverip=192.168.11.2
    bootfile="linux.trx-recovery"
    bootversion=0.04
    bootpartition=1
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 214/4092 bytes
    

  • tftpboot
    MT7628 # tftpboot
    
    netboot_common, argc= 1
    
    NetTxPacket = 0x83FE6B00
    
    KSEG1ADDR(NetTxPacket) = 0xA3FE6B00
    
    NetLoop,call eth_halt !
    
    NetLoop,call eth_init !
    Trying Eth0 (10/100-M)
    
    Waitting for RX_DMA_BUSY status Start... done
    
    ETH_STATE_ACTIVE!!
    TFTP from server 192.168.11.2; our IP address is 192.168.11.1
    Filename 'linux.trx-recovery'.
    
    TIMEOUT_COUNT=10,Load address: 0x80100000
    Loading: *
    

Kernel

  • uname -a
    root@localhost:/# uname -a
    Linux localhost 2.6.36 #1 Tue Mar 19 18:05:31 CST 2019 mips GNU/Linux
    

  • cat /proc/version
    root@localhost:/# cat /proc/version
    Linux version 2.6.36 (***********@***-build-01) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #1 Tue Mar 19 18:05:31 CST 2019
    

  • cat /proc/cpuinfo
    root@localhost:/# cat /proc/cpuinfo
    system type             : MT7628
    processor               : 0
    cpu model               : MIPS 24Kc V5.5
    BogoMIPS                : 386.04
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
    ASEs implemented        : mips16 dsp
    shadow register sets    : 1
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/meminfo
    root@localhost:/# cat /proc/meminfo
    MemTotal:          60080 kB
    MemFree:           19200 kB
    Buffers:            3448 kB
    Cached:            12084 kB
    SwapCached:            0 kB
    Active:             8988 kB
    Inactive:          12420 kB
    Active(anon):       6068 kB
    Inactive(anon):      456 kB
    Active(file):       2920 kB
    Inactive(file):    11964 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:          5884 kB
    Mapped:             3104 kB
    Shmem:               648 kB
    Slab:              13880 kB
    SReclaimable:       2408 kB
    SUnreclaim:        11472 kB
    KernelStack:         696 kB
    PageTables:          620 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       30040 kB
    Committed_AS:      14052 kB
    VmallocTotal:    1048372 kB
    VmallocUsed:        5480 kB
    VmallocChunk:    1040308 kB
    

  • cat /proc/mtd
    root@localhost:/# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 01000000 00010000 "ALL"
    mtd1: 00030000 00010000 "Bootloader"
    mtd2: 00010000 00010000 "Config"
    mtd3: 00010000 00010000 "Factory"
    mtd4: 007c0000 00010000 "Kernel"
    mtd5: 006340a4 00010000 "RootFS"
    mtd6: 007c0000 00010000 "Kernel2"
    mtd7: 006340a4 00010000 "RootFS2"
    mtd8: 00010000 00010000 "glbcfg"
    mtd9: 00010000 00010000 "board_data"
    

  • switch –help
    root@localhost:/# switch --help
    Usage:
    switch dump                                 - dump switch table
    switch clear                                - clear switch table
    switch add [mac] [portmap]                  - add an entry to switch table
    switch add [mac] [portmap] [vlan idx]       - add an entry to switch table
    switch add [mac] [portmap] [vlan idx] [age] - add an entry to switch table
    switch ingress-rate on [port] [Mbps]        - set ingress rate limit on port 0~4
    switch egress-rate on [port] [Mbps]         - set egress rate limit on port 0~4
    switch ingress-rate off [port]              - del ingress rate limit on port 0~4
    switch egress-rate off [port]               - del egress rate limit on port 0~4
    switch filt [mac]                           - add an SA filtering entry (with portmap 1111111) to switch table
    switch filt [mac] [portmap]                 - add an SA filtering entry to switch table
    switch filt [mac] [portmap] [vlan idx]      - add an SA filtering entry to switch table
    switch filt [mac] [portmap] [vlan idx] [age]- add an SA filtering entry to switch table
    switch del [mac]                            - delete an entry from switch table
    switch del [mac] [vlan idx]                 - delete an entry from switch table
    switch vlan dump                            - dump switch table
    switch vlan set [vlan idx] [vid] [portmap]  - set vlan id and associated member
    switch reg r [offset]                       - register read from offset
    switch reg w [offset] [value]               - register write value to offset
    switch phy [phy_addr]                   - dump phy register of specific port
    switch phy                                      - dump all phy registers
    

  • switch vlan dump
    root@localhost:/# switch vlan dump
    idx   vid  portmap
    0     1  1111-11
    1     2  ----1-1
    2     3  1111111
    3     4  1111111
    4     5  1111111
    5     6  1111111
    6     7  1111111
    7     8  1111111
    8     9  1111111
    9    10  1111111
    10    11  1111111
    11    12  1111111
    12    13  1111111
    13    14  1111111
    14    15  1111111
    15    16  1111111
    

  • header –help
    
    

  • bootlog
    [04010C0B][04010D08]
    DDR Calibration DQS reg = 00008886
    
    U-Boot 1.1.3 (Feb  3 2016 - 17:44:55) 0.04
    
    Board: Ralink APSoC DRAM:  64 MB
    relocate_code Pointer at: 83fb8000
    flash manufacture id: ef, device id 40 18
    find flash: W25Q128BV
    ============================================
    Ralink UBoot Version: 4.3.0.0
    --------------------------------------------
    ASIC 7628_MP (Port5<->None)
    DRAM component: 512 Mbits DDR, width 16
    DRAM bus: 16 bit
    Total memory: 64 MBytes
    Flash component: 16 MBytes NOR Flash
    Date:Feb  3 2016  Time:17:44:55
    ============================================
    icache: sets:512, ways:4, linesz:32 ,total:65536
    dcache: sets:256, ways:4, linesz:32 ,total:32768
    
    ##### The CPU freq = 575 MHZ ####
    estimate memory size =64 Mbytes
    RESET MT7628 PHY!!!!!!
    Please choose the operation:
    1: Load system code to SDRAM via TFTP.
    2: Load system code then write to Flash via TFTP.
    3: Boot system code via Flash (default).
    4: Entr boot command line interface.
    7: Load Boot Loader code then write to Flash via Serial.
    9: Load Boot Loader code then write to Flash via TFTP.                                                                                           0
    Erasing SPI Flash...
    .
    Writing to SPI Flash...
    .
    done
    
    3: System Boot system code via Flash1.
    ## Booting image at bc810000 ...
    
    =================================================
    Check image validation:
    Image1 Trx Check -->
    ## check_trx, crc=-950968547, *crc_ret=-950968547.
    OK
    Image1 Header Magic Number --> OK
    Image1 Header Checksum --> OK
    Image1 Data Checksum --> OK
    
    =================================================
    
    =================================================
    Check image validation:
    Image2 Trx Check -->
    ## check_trx, crc=-950968547, *crc_ret=-950968547.
    OK
    Image2 Header Magic Number --> OK
    Image2 Header Checksum --> OK
    Image2 Data Checksum --> OK
    
    =================================================
    ## check Image1 return 0, check Image2 return 0, Image1 crc=-950968547, Image2 crc=-950968547.
    Image1 is ok!
    Image2 is ok and same as Image1!
    Image Name:   MIPS OpenWrt Linux-2.6.36
    Image Type:   MIPS Linux Kernel Image (lzma compressed)
    Data Size:    1621758 Bytes =  1.5 MB
    Load Address: 80000000
    Entry Point:  8000c150
    Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 8000c150) ...
    ## Giving linux memsize in MB, 64
    
    Starting kernel ...
    
    LINUX started...
    
    THIS IS ASIC
    Linux version 2.6.36 (***********@***-build-01) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #1 Tue Mar 19 18:05:31 CST 2019
    
    The CPU feqenuce set to 575 MHz
    
    MIPS CPU sleep mode enabled.
    CPU revision is: 00019655 (MIPS 24Kc)
    Software DMA cache coherency
    Determined physical RAM map:
    memory: 04000000 @ 00000000 (usable)
    Zone PFN ranges:
    Normal   0x00000000 -> 0x00004000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock5 init=/sbin/preinit rootfstype=squashfs,jffs2 console=ttyS0
    PID hash table entries: 256 (order: -2, 1024 bytes)
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Primary instruction cache 64kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    Writing ErrCtl register=0006d72f
    Readback ErrCtl register=0006d72f
    Memory: 59928k/65536k available (3364k kernel code, 5568k reserved, 1245k data, 152k init, 0k highmem)
    NR_IRQS:128
    console [ttyS1] enabled
    Calibrating delay loop... 386.04 BogoMIPS (lpj=772096)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    NET: Registered protocol family 16
    RALINK_GPIOMODE = 54054404
    RALINK_GPIOMODE = 54044404
    ***** Xtal 40MHz *****
    start PCIe register access
    RALINK_RSTCTRL = 2400000
    RALINK_CLKCFG1 = fdbfffc0
    
    *************** MT7628 PCIe RC mode *************
    PCIE0 enabled
    Port 0 N_FTS = 1b105000
    init_rt2880pci done
    bio: create slab  at 0
    vgaarb: loaded
    SCSI subsystem initialized
    pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
    pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
    pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
    pci 0000:00:00.0: BAR 1: set to [mem 0x20200000-0x2020ffff] (PCI address [0x20200000-0x2020ffff]
    pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
    pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x200fffff 64bit] (PCI address [0x20000000-0x200fffff]
    pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
    pci 0000:00:00.0: PCI bridge to [bus 01-01]
    pci 0000:00:00.0:   bridge window [io  disabled]
    pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
    BAR0 at slot 0 = 0
    bus=0x0, slot = 0x0
    res[0]->start = 0
    res[0]->end = 0
    res[1]->start = 20200000
    res[1]->end = 2020ffff
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    bus=0x1, slot = 0x0
    res[0]->start = 20000000
    res[0]->end = 200fffff
    res[1]->start = 0
    res[1]->end = 0
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    Switching to clocksource Ralink Systick timer
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    Load Kernel WDG Timer Module
    Load Ralink Timer0 Module
    Load Ralink Timer2 Module
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    fuse init (API version 7.15)
    msgmni has been set to 117
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
    io scheduler noop registered (default)
    Ralink gpio driver initialized
    @@@@@@#### buffalo_led_init initialized.
    Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    serial8250: ttyS0 at MMIO 0x10000d00 (irq = 21) is a 16550A
    serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
    brd: module loaded
    flash manufacture id: ef, device id 40 18
    W25Q128BV(ef 40180000) (16384 Kbytes)
    mtd .name = raspi, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
    in find_rootfs_mtd_partitions  off=0x00050000 end=0x00810000
    The  trx header  magic offset 0x0018bf5c
    raspi: squash filesystem found at offset 0x001dbf5c
    Found image1 partition off 0x001dbf5c size 0x006340a4
    in find_rootfs_mtd_partitions  off=0x00810000 end=0x00fd0000
    The  trx header  magic offset 0x0018bf5c
    raspi: squash filesystem found at offset 0x0099bf5c
    Found image2 partition off 0x0099bf5c size 0x006340a4
    Creating 10 MTD partitions on "raspi":
    0x000000000000-0x000001000000 : "ALL"
    0x000000000000-0x000000030000 : "Bootloader"
    0x000000030000-0x000000040000 : "Config"
    0x000000040000-0x000000050000 : "Factory"
    0x000000050000-0x000000810000 : "Kernel"
    0x0000001dbf5c-0x000000810000 : "RootFS"
    mtd: partition "RootFS" doesn't start on an erase block boundary -- force read-only
    0x000000810000-0x000000fd0000 : "Kernel2"
    0x00000099bf5c-0x000000fd0000 : "RootFS2"
    mtd: partition "RootFS2" doesn't start on an erase block boundary -- force read-only
    0x000000fd0000-0x000000fe0000 : "glbcfg"
    0x000000fe0000-0x000000ff0000 : "board_data"
    rdm_major = 253
    GMAC1_MAC_ADRH -- : 0x0000000c
    GMAC1_MAC_ADRL -- : 0x432880fd
    Ralink APSoC Ethernet Driver Initilization. v3.1  256 rx/tx descriptors allocated, mtu = 1500!
    GMAC1_MAC_ADRH -- : 0x0000000c
    GMAC1_MAC_ADRL -- : 0x432880f1
    PROC INIT OK!
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    PPP BSD Compression module registered
    PPP MPPE Compression module registered
    NET: Registered protocol family 24
    IMQ driver loaded successfully.
    Hooking IMQ before NAT on PREROUTING.
    Hooking IMQ after NAT on POSTROUTING.
    
    === pAd = c0003000, size = 798016 ===
    
    <-- RTMPAllocTxRxRingMemory, Status=0, ErrorValue=0x
    <-- RTMPAllocAdapterBlock, Status=0
    RtmpChipOpsHook(492): Not support for HIF_MT yet!
    mt7628_init()-->
    mt7628_init(FW(8a00), HW(8a01), CHIPID(7628))
    e2.bin mt7628_init(1133)::(2), pChipCap->fw_len(63616)
    mt_bcn_buf_init(218): Not support for HIF_MT yet!
    <--mt7628_init()
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (936 buckets, 3744 max)
    ctnetlink v0.93: registering with nfnetlink.
    IPVS: Registered protocols ()
    IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
    IPVS: ipvs loaded.
    ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
    TCP cubic registered
    NET: Registered protocol family 17
    802.1Q VLAN Support v1.8 Ben Greear
    All bugs added by David S. Miller
    Boot from /dev/mtdblock7
    VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
    Freeing unused kernel memory: 152k freed
    arca.dbus.mng: is ready
    agent_handler(244):arca.dbus.misc: is ready
    MD5=[29fc71a6d22714104011fb7d27b3854b]
    
    Please press Enter to activate this console. Raeth v3.1 (Tasklet)
    
    phy_tx_ring = 0x0361d000, tx_ring = 0xa361d000
    
    phy_rx_ring0 = 0x0361e000, rx_ring0 = 0xa361e000
    GMAC1_MAC_ADRH -- : 0x0000343d
    GMAC1_MAC_ADRL -- : 0xc4xxxxd3
    debug : Enter [BRCTL_ADD_IF]
    add_if 00000000 ***************************
    device eth2.1 entered promiscuous mode
    device eth2 entered promiscuous mode
    br0: port 1(eth2.1) entering learning state
    br0: port 1(eth2.1) entering learning state
    TX_BCN DESC a3e90000 size = 320
    RX[0] DESC a3e92000 size = 2048
    RX[1] DESC a3e93000 size = 1024
    E2pAccessMode=2
    cfg_mode=9
    cfg_mode=9
    wmode_band_equal(): Band Equal!
    AndesSendCmdMsg: Could not send in band command due to diable fRTMP_ADAPTER_MCU_SEND_IN_BAND_CMD
    APSDCapable[0]=0
    APSDCapable[1]=0
    APSDCapable[2]=0
    APSDCapable[3]=0
    APSDCapable[4]=0
    APSDCapable[5]=0
    APSDCapable[6]=0
    APSDCapable[7]=0
    APSDCapable[8]=0
    APSDCapable[9]=0
    APSDCapable[10]=0
    APSDCapable[11]=0
    APSDCapable[12]=0
    APSDCapable[13]=0
    APSDCapable[14]=0
    APSDCapable[15]=0
    br0: port 1(eth2.1) entering forwarding state
    Key1Str is Invalid key length(0) or Type(0)
    Key1Str is Invalid key length(0) or Type(0)
    Key1Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    load fw image from fw_header_image
    AndesMTLoadFwMethod1(2174)::pChipCap->fw_len(63616)
    FW Version:_e2_mp
    FW Build Date:20150727171815
    CmdAddressLenReq:(ret = 0)
    CmdFwStartReq: override = 1, address = 1048576
    CmdStartDLRsp: WiFI FW Download Success
    MtAsicDMASchedulerInit(): DMA Scheduler Mode=0(LMAC)
    efuse_probe: efuse = 10000002
    RtmpChipOpsEepromHook::e2p_type=2, inf_Type=4
    RtmpEepromGetDefault::e2p_dafault=2
    RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 2
    NVM is FLASH mode
    1. Phy Mode = 14
    Country Region from e2p = ffff
    tssi_1_target_pwr_g_band = 32
    2. Phy Mode = 14
    3. Phy Mode = 14
    NICInitPwrPinCfg(11): Not support for HIF_MT yet!
    NICInitializeAsic(651): Not support rtmp_mac_sys_reset () for HIF_MT yet!
    mt_mac_init()-->
    MtAsicInitMac()-->
    mt7628_init_mac_cr()-->
    MtAsicSetMacMaxLen(1241): Set the Max RxPktLen=1024!
    <--mt_mac_init()
    WTBL Segment 1 info:
    MemBaseAddr/FID:0x28000/0
    EntrySize/Cnt:32/128
    WTBL Segment 2 info:
    MemBaseAddr/FID:0x40000/0
    EntrySize/Cnt:64/128
    WTBL Segment 3 info:
    MemBaseAddr/FID:0x42000/64
    EntrySize/Cnt:64/128
    WTBL Segment 4 info:
    MemBaseAddr/FID:0x44000/128
    EntrySize/Cnt:32/128
    AntCfgInit(2885): Not support for HIF_MT yet!
    MCS Set = ff ff 00 00 00
    MtAsicSetChBusyStat(826): Not support for HIF_MT yet!
    CmdSlotTimeSet:(ret = 0)
    MtAsicSetRalinkBurstMode(2919): Not support for HIF_MT yet!
    MtAsicSetPiggyBack(763): Not support for HIF_MT yet!
    reload DPD from flash , 0x9F = [84c0] doReload bit7[1]
    CmdLoadDPDDataFromFlash: Channel = 11, DoReload = 1
    MtAsicSetTxPreamble(2898): Not support for HIF_MT yet!
    MtAsicAddSharedKeyEntry(1308): Not support for HIF_MT yet!
    MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0xf0
    Main bssid = 34:3d:c4:xx:xx:d4
    <==== rt28xx_init, Status=0
    mt7628_set_ed_cca: TURN OFF EDCCA  mac 0x10618 = 0xd7083f0f
    mt7628_set_ed_cca: pAd->CommonCfg.CountryCode = JP
    mt7628_set_ed_cca: TURN OFF NBID mac 0x10610 = 0x36a1282a
    WiFi Startup Cost (ra0): 3.936s
    debug : Enter [BRCTL_ADD_RULE_IF]
    add_if 00000100 ***************************
    device ra0 entered promiscuous mode
    br0: port 2(ra0) entering learning state
    br0: port 2(ra0) entering learning state
    br0: port 2(ra0) entering forwarding state
    register rt2860
    
    === pAd = c0602000, size = 1801880 ===
    
    <-- RTMPAllocTxRxRingMemory, Status=0
    <-- RTMPAllocAdapterBlock, Status=0
    pAd->CSRBaseAddress =0xc0500000, csr_addr=0xc0500000!
    device_id =0x7662
    ==>rlt_wlan_chip_onoff(): OnOff:1, Reset= 1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0x20a
    E2pAccessMode=2
    cfg_mode=14
    cfg_mode=14
    wmode_band_equal(): Band Not Equal!
    APSDCapable[0]=0
    APSDCapable[1]=0
    APSDCapable[2]=0
    APSDCapable[3]=0
    APSDCapable[4]=0
    APSDCapable[5]=0
    APSDCapable[6]=0
    APSDCapable[7]=0
    APSDCapable[8]=0
    APSDCapable[9]=0
    APSDCapable[10]=0
    APSDCapable[11]=0
    APSDCapable[12]=0
    APSDCapable[13]=0
    APSDCapable[14]=0
    APSDCapable[15]=0
    Key1Str is Invalid key length(0) or Type(0)
    Key1Str is Invalid key length(0) or Type(0)
    Key1Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
    NVM is FLASH mode (pAd->flash_offset = 0x48000)
    get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=rai
    build time =
    20141115060606a
    rom patch for E3 IC
    
    platform =
    ALPS
    hw/sw version =
    
    patch version =
    
    FW Version:0.0.00 Build:1
    Build Time:201507311614____
    fw for E3 IC
    RX[0] DESC a28a2000 size = 4096
    RX[1] DESC a28a3000 size = 4096
    E2pAccessMode=2
    cfg_mode=14
    cfg_mode=14
    wmode_band_equal(): Band Not Equal!
    APSDCapable[0]=0
    APSDCapable[1]=0
    APSDCapable[2]=0
    APSDCapable[3]=0
    APSDCapable[4]=0
    APSDCapable[5]=0
    APSDCapable[6]=0
    APSDCapable[7]=0
    APSDCapable[8]=0
    APSDCapable[9]=0
    APSDCapable[10]=0
    APSDCapable[11]=0
    APSDCapable[12]=0
    APSDCapable[13]=0
    APSDCapable[14]=0
    APSDCapable[15]=0
    Key1Str is Invalid key length(0) or Type(0)
    Key1Str is Invalid key length(0) or Type(0)
    Key1Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key2Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key3Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    Key4Str is Invalid key length(0) or Type(0)
    1. Phy Mode = 49
    get_chl_grp:illegal channel (167)
    get_chl_grp:illegal channel (167)
    get_chl_grp:illegal channel (169)
    get_chl_grp:illegal channel (169)
    get_chl_grp:illegal channel (171)
    get_chl_grp:illegal channel (171)
    drivers/net/wireless/rlt_wifi_ap/../rlt_wifi/chips/mt76x2.c:2848 assert (ad->TxPower[choffset].Channel == 42)failed
    Country Region from e2p = ffff
    mt76x2_read_temp_info_from_eeprom:: is_temp_tx_alc=0, temp_tx_alc_enable=0
    mt76x2_read_tx_alc_info_from_eeprom:: is_ePA_mode=0, ePA_type=3
    mt76x2_read_tx_alc_info_from_eeprom:: [5G band] high_temp_slope=0, low_temp_slope=0
    mt76x2_read_tx_alc_info_from_eeprom:: [2G band] high_temp_slope=0, low_temp_slope=0
    mt76x2_read_tx_alc_info_from_eeprom:: [5G band] tc_lower_bound=0, tc_upper_bound=0
    mt76x2_read_tx_alc_info_from_eeprom:: [2G band] tc_lower_bound=0, tc_upper_bound=0
    mt76x2_get_external_lna_gain::LNA type=0x11, BLNAGain=0x0, ALNAGain0=0x0, ALNAGain1=0x0, ALNAGain2=0x0
    2. Phy Mode = 49
    3. Phy Mode = 49
    andes_pci_fw_init
    0x1300 = 00073200
    AntCfgInit: primary/secondary ant 0/1
    andes_load_cr:cr_type(2)
    ChipStructAssign(): MT76x2 hook !
    @@@ BuildChannel # 36 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 40 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 44 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 48 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 52 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 56 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 60 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 64 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 100 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 104 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 108 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 112 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 116 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 120 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 124 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 128 :: Pwr0 = 26, Pwr1 =26, Flags = c0, RemainingTimeForUse=0
    @@@ BuildChannel # 132 :: Pwr0 = 26, Pwr1 =26, Flags = 40, RemainingTimeForUse=0
    @@@ BuildChannel # 136 :: Pwr0 = 26, Pwr1 =26, Flags = 40, RemainingTimeForUse=0
    @@@ BuildChannel # 140 :: Pwr0 = 26, Pwr1 =26, Flags = 0, RemainingTimeForUse=0
    MCS Set = ff ff 00 00 01
    TX0 power compensation = 0x38
    TX1 power compensation = 0x38
    mt76x2_bbp_adjust():rf_bw=2, ext_ch=1, PrimCh=100, HT-CentCh=102, VHT-CentCh=106
    APStartUp(): AP Set CentralFreq at 106(Prim=100, HT-CentCh=102, VHT-CentCh=106, BBP_BW=2)
    mt76x2_calibration():RDMode  is in Silent State, do not calibration.
    The 4-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 4
    Main bssid = 34:3d:c4:xx:xx:d5
    mt76x2_reinit_agc_gain:original agc_vga0 = 0x5c, agc_vga1 = 0x5c
    mt76x2_reinit_agc_gain:updated agc_vga0 = 0x5c, agc_vga1 = 0x5c
    mt76x2_reinit_hi_lna_gain:original hi_lna0 = 0x27, hi_lna1 = 0x27
    mt76x2_reinit_hi_lna_gain:updated hi_lna0 = 0x27, hi_lna1 = 0x27
    original vga value(chain0) = 5c
    original vga value(chain1) = 5c
    <==== rt28xx_init, Status=0
    get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=rai
    get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=rai
    RTMPDrvOpen(1):Check if PDMA is idle!
    RTMPDrvOpen(2):Check if PDMA is idle!
    debug : Enter [BRCTL_ADD_RULE_IF]
    add_if 00000100 ***************************
    device rai0 entered promiscuous mode
    br0: port 3(rai0) entering learning state
    br0: port 3(rai0) entering learning state
    Jan  1 00:00:21 miniupnpd[451]: WPS listening on port 59868
    mcsnoop: module license 'BUFFALO Inc. PROPRIETARY' taints kernel.
    Disabling lock debugging due to kernel taint
    mcsnoop: flush all snoop entry
    mcsnoop: Bridge Multicast Snooping module Ver0.1/20070912
    mcsnoop_br_ioctl_device:275: mcast_maxage 75000 / 250
    device eth2.1 left promiscuous mode
    device eth2 left promiscuous mode
    br0: port 1(eth2.1) entering forwarding state
    debug : Enter [BRCTL_ADD_RULE_IF]
    add_if 00000200 ***************************
    device eth2.1 entered promiscuous mode
    device eth2 entered promiscuous mode
    br0: port 1(eth2.1) entering learning state
    br0: port 1(eth2.1) entering learning state
    /sbin/arc_mcastsnoop: [brctl adddebug : Enter [BRCTL_ADD_RULE_IF]
    rif br0 eth2.2 1add_if 00000402 ***************************
    026]
    device eth2.2 entered promiscuous mode
    br0: port 4(eth2.2) entering learning state
    br0: port 4(eth2.2) entering learning state
    br0: port 3(rai0) entering forwarding state
    br0: port 1(eth2.1) entering forwarding state
    br0: port 4(eth2.2) entering forwarding state
    Jan  1 00:00:23 crond[522]: crond: crond (busybox 1.18.5) started, log level 8
    ntp.jst.mfeed.ad.jp: Unknown host
    Link Status Changed - Port4 Link Down
    Time out! You may increase DEFAULT_TIMEOUT_COUNT[10]!
    
    

OpenWrtの手書きポリシーベースルーティングをmwan3に置き換えた(+ルータを置き換えた)

大破.net (+ taiha.net) のサーバ類は長らくの間OpenWrtを導入したWRC-300GHBK2-Iによって管理されていたものの、OpenWrtのリリースではなくmasterを使っており、ファームウェアのビルドが古くなっていた。その為2020/12/05に一度別のOpenWrt導入済みルータによって置き換えを試みたものの、WRC-1167GST2でramips/mt7621のDSAにおけるVLANが今一つ上手く扱えなかったり、その代打として試したWRC-1750GHBK2-Iも何故かIPv6アドレスが最上位のPR-400KIから取得できないなどのトラブルを起こし、結局断念してWRC-300GHBK2-Iに戻した。
年明け一発目、2021/01/02に再度ルータの置き換えにトライし、ついでにmwan3を使ったポリシーベースルーティングにも成功したので、備忘録もかねてそのメモ。

旧環境

吉川のハードオフにあったWRC-300GHBK2-Iを、サーバ用ルータとして充てるために確保したもの。2020/05/11頃にそれまでサーバ用に充てていたWSR-1166DHPを置き換えた。

  • 機種: ELECOM WRC-300GHBK2-I (QCA9563, RAM 64 MiB, Flash 8MiB)
  • ファームウェア: OpenWrt(ビルドは確か2020年5月半ば近く、バージョンはその時最新くらい)
  • ポリシーベースルーティング設定: ここを参考にconfigに手書き
  • その他: Flash内のスペースを確保するため無線周りは全て削除

新環境

もう既にいつ、どうやって確保したのかもわからないWN-AC1600DGR3。放出予定ではあったものの、QCA系の機種でOpenWrtサポート用とは別の個体がある(WN-AC1600DGR2互換)のがこの機種だけだったので使用。

  • 機種: I-O DATA WN-AC1600DGR3 (QCA9557, RAM 128 MiB, Flash 16 MiB)
  • ファームウェア: OpenWrt(ビルドは2021/01/02、バージョンはその時の最新)
  • ポリシーベースルーティング設定: mwan3を使用
  • その他: Flash内のスペース確保のため無線周りは全て削除

mwan3でのポリシーベースルーティング設定

ルートがJPNEの提供するMAP-EとBiglobeのPPPoEの2つある環境下において、

  • IPv4
  • Webサーバが動作する環境のIPアドレスのHTTP (80), HTTPS (443)各ポートからの送信
  • 宛先が 192.168.0.0/16 以外である

の条件を満たすものを、MAP-EではなくPPPoEへ渡す。
以下はmwan3とluci-app-mwan3がインストールされている前提で進める。また、MAP-E側は “wan” 、PPPoE側は今回 “biglobe” という名前のインターフェースで存在している前提とする。
ちなみに、IPoEのwan6はmwan3を導入した場合、”インターフェース” タブで “wan6” を有効化しないとOpenWrtのLAN側からIPv6の疎通が通らない。

  1. MAP-Eインターフェースのメトリックをネットワーク設定でPPPoEより上に設定
  2. mwan3の “インターフェース” タブで “biglobe” の名前で新規インターフェースを追加
    この時のインターフェース名は既存のインターフェース名と同じものである必要がある。トラッキングの相手先アドレスは入力後右の+ボタンを押してボックスを増やしておかないと保存されないので注意。一番最初の “有効” にチェックを入れておく。
  3. “メンバー” タブで “biglobe_m1_w3” の名前で作成し、
    • インターフェース: “biglobe”
    • メトリック: 1
    • ウェイト: 3

    として保存。

  4. “ポリシー” タブで “biglobe_only” の名前で作成し、
    • 使用メンバー: “biglobe_m1_w3”
    • 最終手段: unreachable (reject)(任意で良い)

    として保存。

  5. “ルール” タブで “srv_httphttps1” の名前で作成、
    • プロトコル: IPv4のみ
    • 送信元アドレス:(Webサーバのアドレス)
    • 送信元ポート: 80,443
    • 宛先アドレス: !192.168.0.0/16
    • 宛先ポート:(空)
    • プロトコル: tcp
    • sticky: はい
    • sticky タイムアウト:(空)
    • IPset:(空)
    • ロギング:(空)
    • アサイン済みポリシー: “biglobe_only”

    として保存。TCPとUDP同時に指定出来れば楽だけれども、いずれか一つしか許容されない模様。
    元々存在する “default_rule_v*” を残して置く場合は、今回作成したルールをそれらより上にした方が良さそう。

  6. 同じく “ルール” タブで “srv_httphttps2” の名前でプロトコルを “udp” に設定したほぼ同じ内容で作成

以上でポリシーベースルーティングの設定はOK。

お名前DDNS自動更新スクリプト

前の記事の通り、WebサーバをWindows Server 2012 R2のIIS 8.5からUbuntu Server 20.04 LTS環境のNginxに移行したため、それまで使用していたお名前.comの公式DDNSクライアントが使用できなくなった。
しかし手動で更新するとなるとかなりの手間だし、外出しているときなどはVPN環境も無く更新が厳しいので、調べて見つけたopensslを用いる方法によって、今回置き換えたサーバ用ルータにやってもらうことにした。
OpenWrtには既にDDNSの更新環境を提供する “ddns-scripts” パッケージとWebUIのLuCIでそのUIを提供する “luci-app-ddns” が存在するため、そこで使用できるお名前.comのDDNS用パッケージを作成した。スクリプトは2021年年明け早々元日から書き始めた。
taiha-pkgs/ddns-scripts-onamae at master · taiha/taiha-pkgs
このパッケージをビルドするか、もしくは ddns-scripts パッケージがインストール済みならスクリプトを /usr/lib/ddns/ に、jsonを /usr/share/ddns/default に置くことでも使用可。依存として “openssl-utils” パッケージが必要。
まだエラー処理が怪しい点があるにはあるので、自己責任で使用すること。

実環境で使用しているconfigは以下の通り。(ドメインごとの定義のみ抜粋、ユーザー名とパスワードは伏せた)
IDNの場合はpunycodeを指定する。usernameとpasswordはそれぞれお名前.comのアカウントのものを指定。
アドレス設定が伝播する遅延を考慮して、ddns-scripts パッケージがDNSに設定済みのアドレスを調べるDNSサーバは、お名前.comで通常ネームサーバとして使用される 01.dnsv.jp とした。

config service 'taiha_net'
        option service_name 'onamae.com'
        option use_ipv6 '0'
        option enabled '1'
        option lookup_host 'taiha.net'
        option domain 'taiha.net'
        option username '*******'
        option password '***************'
        option ip_source 'network'
        option ip_network 'biglobe'
        option interface 'biglobe'
        option dns_server '01.dnsv.jp'
        option use_syslog '2'
        option check_interval '30'
        option check_unit 'minutes'
        option force_interval '0'
        option force_unit 'minutes'
        option retry_count '1'
        option retry_interval '60'
        option retry_unit 'seconds'

config service 'mstdn_taiha_net'
        option service_name 'onamae.com'
        option use_ipv6 '0'
        option enabled '1'
        option lookup_host 'mstdn.taiha.net'
        option domain 'mstdn.taiha.net'
        option username '*******'
        option password '***************'
        option ip_source 'network'
        option ip_network 'biglobe'
        option interface 'biglobe'
        option dns_server '01.dnsv.jp'
        option use_syslog '2'
        option check_interval '30'
        option check_unit 'minutes'
        option force_interval '0'
        option force_unit 'minutes'
        option retry_count '1'
        option retry_interval '60'
        option retry_unit 'seconds'

config service 'wiki_taiha_net'
        option service_name 'onamae.com'
        option use_ipv6 '0'
        option enabled '1'
        option lookup_host 'wiki.taiha.net'
        option domain 'wiki.taiha.net'
        option username '*******'
        option password '***************'
        option ip_source 'network'
        option ip_network 'biglobe'
        option interface 'biglobe'
        option dns_server '01.dnsv.jp'
        option use_syslog '2'
        option check_interval '30'
        option check_unit 'minutes'
        option force_interval '0'
        option force_unit 'minutes'
        option retry_count '1'
        option retry_interval '60'
        option retry_unit 'seconds'

config service 'xn_psso63e_net'
        option service_name 'onamae.com'
        option use_ipv6 '0'
        option enabled '1'
        option lookup_host 'xn--psso63e.net'
        option domain 'xn--psso63e.net'
        option username '*******'
        option password '***************'
        option ip_source 'network'
        option ip_network 'biglobe'
        option interface 'biglobe'
        option dns_server '01.dnsv.jp'
        option use_syslog '2'
        option check_unit 'minutes'
        option force_interval '0'
        option force_unit 'minutes'
        option retry_count '1'
        option retry_interval '60'
        option retry_unit 'seconds'
        option check_interval '10'

とりあえずは、今回行った諸々で上手く行って欲しい。今回外したWRC-300GHBK2-Iは、今度WN-AC1600DGR3のファームウェアを更新する際の代替として使用するために、mwan3とddns-scripts絡みを含めてビルド用configを組み直した。
これで、おおよそのやりたかった旧環境の刷新作業は大体終わり。

サーバ環境の大掃除をした

年末年始でサーバ周りの古くなった環境の整理や移行をいくつか行ったので、備忘録を兼ねてその記録。もう何年も前からやろうと思いつつ後回しになっていたものも実施。
この記事で出てくるサーバは以下の通り。

大破鯖
Web, Jenkins(Web側), Wiki.js, Mastodonが動作するVMを抱える物理ホストで常時稼働。OSはWindows Server 2012 R2。
ビルド鯖
Jenkins(ビルド側)のVMを抱える物理ホストで普段は必要時のみ起動。OSはHyper-V Server 2019。

Jenkinsビルドスレーブ OS更新

2020/11/08 頃
普段ビルドを行うJenkinsの、SSHスレーブプラグインによって接続しに行くビルドを実際に行うサーバのOSをUbuntu Server 18.04 LTSから20.04 LTSに更新。
Jenkins自体は別の物理ホスト上の仮想マシン上で動作しており、ビルド側はSSHスレーブプラグインのエージェントが動いて制御するのみであることからあまり苦労する点は無かった。

  1. ビルド鯖上にUbuntu Server 20.04 LTSで新規にVMを作成
  2. OpenWrt公式の [OpenWrt Wiki] Build system setup に従って必要なホストパッケージをインストール
  3. softethervpnのビルドもする場合は libreadline-dev もインストールする、あとJenkinsのエージェントの動作に必要なopenjdk-11-jdk-headlessも入れておく
  4. Jenkinsの本体側が動作する仮想マシンの “jenkins” アカウントとメイン機 (Windows)のアカウントのSSH公開鍵をそれぞれ新規ビルド用VMのアカウントに登録
  5. JenkinsのWeb上で
    • Jenkinsの管理
    • Manage Credentials
    • (Stores scoped to Jenkinsの)Jenkins
    • グローバルドメイン

    と辿って “認証情報の追加” を開き、

    • 種類:SSHユーザー名と秘密鍵
    • スコープ: グローバル
    • ID: (空、保存すると自動設定される)
    • 説明: (適当に)
    • ユーザー名: ビルド側で使用するアカウントのユーザー名
    • 秘密鍵: 直接入力(接続に使用するSSH秘密鍵の内容をコピペ)
    • パスフレーズ: 秘密鍵のパスワード

    で保存

  6. JenkinsのWeb上で “Jenkinsの管理” –> “ノードの管理” と辿り、新規ノード作成を開いて
    • ノード名: (任意)
    • Permanent Agent: チェック(あるいはノードをコピーにチェックしてコピー元を入力)

    でOKし

    • ノード名: (任意)
    • 説明: (適当に)
    • 同時ビルド数: 1(余裕があるなら適当に増やす)
    • リモートFSルート: (ビルド側でJenkinsがルートとして使用する場所、制御用のエージェントとかが自動的に置かれる  /openwrt/jenkins/ とか適当に)
    • ラベル: (適当に)
    • 用途:このエージェントをできるだけ利用する(特に制限しないなら)
    • 起動方法: SSH経由でUnixマシンのスレーブエージェントを起動
    • ホスト: ビルド側のIPアドレスかホスト名、あるいはFQDN
    • 認証情報: Credentialsに登録したビルド側のものを選択
    • Host Key Verification Strategy: Manually provided key Verification Strategy
      (known_hosts依存だと何か変わった時とか面倒なのでこれにした)
    • SSH Key: ビルド側にあるホスト公開鍵から使用するSSH暗号アルゴリズム(RSA, Ed25519とか)のものを選んで貼り付け (/etc/ssh/ssh_host_*_key.pub)
    • ポート: 22(任意、環境に合わせる)
    • Javaのパス: (空、その場合自動的に検出される)
    • 可用性: Keep this agent online as much as possible
      (ビルド側をシャットダウンしてる時以外は自動的にオンラインにしておくならこれ、ビルド終わったら一定時間後オフラインにするなら “Bring this agent online when in demand, …”)

    ノードプロパティの “環境変数” を設定しておくと、ビルド中に ${VAR} として参照できる。makeの -j オプションに付ける数字を予め設定するとか、ツイート投稿する時のノード別のハッシュタグを設定しておくとか。

設定終わったら Launch Agent から接続確認して試運転。

大破鯖ディスク使用方法変更

2020/12/01, 2020/12/02 頃
Web, Jenkins, Wiki.js, Mastodonの各VMをホストしている物理ホスト “大破鯖” で、VMにSSHで接続した際などディスクI/Oが詰まってコンソール表示されるまでに若干時間を要する雰囲気があった。この時物理ホストのシステム用に使用していたNVMe SSDをVMのシステム用VHDを置く用途に変更し、それまでVMのシステム用VHDを置いていたSATA SSD 2つのうち片方を物理ホストのシステム用へ入れ替え、物理ホストのOS (Windows Server 2012 R2) を入れ直した。
各VMは一旦ビルド鯖へ移動。

  1. Webサーバ (Windows Server 2012 R2) のVMをビルド鯖へ移動
  2. MastodonサーバのVMをビルド鯖へ移動
  3. 下記のJenkins(Web側)とWiki.jsの作業を実施
    (新規VMはビルド鯖上へ作成)
  4. Windows Server 2012 R2を大破鯖に再インストール
    インストール中、旧環境のNVMe SSDに代えて今度はSATA SSDにインストール。
  5. Windows Server 2012 R2のWindows Update地獄
    WS12R2は発売が2013年10月半ば過ぎであり、長期間経過していることからアップデートも大量に(120件以上)存在しており地獄と化した。全部まとめてインストールしようとすると間違いなく途中で失敗し延々と巻き戻し作業が発生する。あまりにも地獄。痺れを切らして再びOSごとインストールし直すことを繰り返し、なんとか10個単位くらいで適用を続けてやり終わった。
    もう2度とやりたくない。
  6. 退避したVMを大破鯖へ移動
    一旦ビルド鯖に退避していた各VMを大破鯖へ移動。ネットワーク経由でVMと構成情報をコピーした。
    ビルド鯖上で新規に作成したJenkinsとWiki.jsのVMは、ビルド鯖がHyper-V Server 2019、大破鯖がWindows Server 2012 R2であることからHyper-V構成バージョンの不一致による非互換が発生したため、構成ファイルは破棄してVHDのみ使用し、大破鯖上のHyper-VにVMを作り直した。

Jenkins(Web側)とWiki.jsをVM統合の上OS更新

2020/12/01 頃
個々の仮想マシンで走らせていたJenkinsのWeb側とWiki.js 2.xを、仮想マシン統合したうえでこれもUbuntu Server 18.04 LTSから20.04 LTSへ移行。Wiki.jsはあまり問題無かったがJenkinsであまりにもネット上の情報が錯綜してる箇所があり、かなり手間取った。
この作業は上記の大破鯖におけるディスク使用の変更内で同時に行っているので、VMの新規作成先はビルド鯖。

  1. Wiki.jsのディレクトリをバックアップ
    ひとまずWiki.jsのバージョン更新はせずそのまま移すためバックアップ。DBはSQLiteを使用している為、DBファイルをサービス停止の後そのままコピー。
  2. Jenkinsの全jobディレクトリをバックアップ
    Jenkinsのジョブというかプロジェクトは結構独立性が高いらしく、jobs/ 以下をコピーしてくるだけで移せる。package_lock.jsonファイルは除外。Jenkins自体の設定はまっさらな環境から組み直すためバックアップ無し。
  3. ビルド鯖上に新規にUbuntu Server 20.04 LTSでVM作成
  4. Jenkinsに必要なパッケージとJenkins本体をインストール
    公式ドキュメントに従う。Dockerは使わなかった。前にWeeklyで壊れたことがあったのでLTSを使用。
  5. Jenkinsのポートとかパスの設定
    これが一番Jenkinsのセットアップの中で手間取った。Jenkinsは taiha.net の下に jenkins/ としてぶら下げて動かしている為パスの設定が必要であるものの、ポートと一緒に設定出来た記憶があることからポートの設定方法で検索したが、xmlを編集するとか(そのxmlだけでも複数種類挙げられているのが見つかったりする)、起動用スクリプトで設定するとか錯綜しており、かつて旧環境で行ったはずの設定ファイルに辿り着くまでにかなり時間を要した。Ubuntu Server 20.04 LTSでの正解は /etc/default/jenkins
    JENKINS_ARGS の末尾に --prefix=$PREFIX を足し込む。
  6. JenkinsがJavaのバージョンエラーで弾かれて死ぬ
    この当時、最新のOpenJDK 11.0.9.1をインストールしているとJenkinsの起動スクリプトでバージョン文字列が期待されるとおりに取れず、エラーで死ぬ問題があった。その際は、期待される文字列のリストに11.0.9.1で取れていた文字列を加えることで雑に対処。その後Jenkins公式で修正されたため、バージョン更新時に自前の修正はrevert。
  7. JenkinsのWebからセットアップ
    サービス起動すると指定されたポートで起動してくるのでIPアドレスで直接アクセスしてセットアップを済ませる。おすすめプラグインはそのまま適当にインストールさせた。
  8. Jenkinsの権限絡み設定
    旧環境と同様に、非ログインユーザーとかの権限を詳細に設定。自分のアカウントには全部の権限を付加。ちなみにここで自分のアカウントの権限設定を間違えたまま保存すると何もできなくなったりする。その時はUbuntu上でJenkinsの権限関連設定を削除してやり直す。
  9. SSHビルドスレーブ再設定
    これ自体は11月上旬に行ったビルド側移行の登録と同じ。
  10. Wiki.jsを復元して起動
    バックアップを旧環境と同じ場所に再配置してサービス起動。ディレクトリのパーミッションは注意すること。
  11. Webサーバのリバースプロキシを新環境へ切り替え
    同じ物理ホストの別VM上で稼働するWebサーバ(この当時はWindows Server 2012 R2のIIS)のリバースプロキシを旧環境のIPアドレスから新環境のものへJenkinsとWiki.jsのそれぞれで切り替え。全てが正しく機能しているか確認。

Mastodon環境 OS更新

2020/12/28 頃
Mastodonの稼働するVMのOSをUbuntu Server 18.04 LTSから20.04 LTSに移行。長らく前からやろうとは思いつつ後回しにしていたが、この間サーバ周りを色々弄っていたことと、Mastodonで使用するPostgreSQLのglibcによるindex corruption問題に絡み諸々解決しようということで作業決定。

  1. MastodonのDBをバックアップ
    RedisとPostgreSQLをバックアップする。Redisはサービス止めた後にDB本体をそのままコピー、PostgreSQLではglibcによる問題の対処の際、DBファイルそのままコピーではデータが破壊されるということから論理バックアップ(pg_dump使用)を実施。

    pg_dump mastodon > db_mastodon.dump
    

  2. 大破鯖にUbuntu Server 20.04 LTSで新規VM作成
    移行先のVMを新たに作成。旧環境は移行失敗時のバックアップ目的などとして一旦残す。
  3. 公式ドキュメントに従って新環境をセットアップ
    ドキュメントに従って、必要なパッケージ類をインストールしたりする。メインの設定ファイル (.env.production) は最新の .env.production.sample を利用したうえで旧設定ファイルから必要事項を書き写した。手動で設定ファイルを書いたので、Mastodonのセットアップコマンドは実行しない。
  4. RedisとPostgreSQLのDBを復元する
    Redisは旧環境から取り出したパスと同じ場所にパーミッション注意の上配置(一度パーミッション設定し忘れでRedisが起動失敗した)、PostgreSQLはpsqlのコマンドラインから

    CREATE DATABASE mastodon OWNER = mastodon;
    


    として作成し、bashに戻って

    psql mastodon < db_mastodon.dump
    


    した。

  5. Mastodonのfix-duplicatesタスクを実施
    PostgreSQLのindex corruption問題に絡んでそれを修正するMastodonタスクが追加されており、それを実行。詳しくは公式ドキュメントを参照。
  6. 警告解消のためデータベース爆破して作り直し
    fix-duplicatesタスクを実行した後もdb:migrateタスクがindex corruption絡みの警告を吐き続けるため、データベースの照合順序を変更して警告が吐かれないようにしてしまうことを決定。
    PostgreSQLの “mastodon” データベースを爆破

    DROP DATABASE mastodon;
    


    し、照合順序を指定してデータベースを作成し直し。

    CREATE DATABASE mastodon OWNER = mastodon TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'C' LC_CTYPE = 'C';
    


    そうしたら、再度バックアップから復元。

    psql mastodon < db_mastodon.dump
    


    ただ、記事を書きつつ検索してみたら新環境へのマイグレーションについてのMastodon公式ドキュメントがあり、結構やり方が違う。まあ動いてるしいいか。

  7. 画像データ保存用の system/ ディレクトリを設定
    旧環境のMastodonディレクトリ内 public/system/ 保存用VHDをコピーの上新環境のVMに接続してマウントし、 public/ 内に マウント先へのsymlinkを作成。Mastodonの設定ファイルにおける PAPERCLIP_ROOT_PATHPAPERCLIP_ROOT_URL がそれっぽいものの、だいぶ前に設定してみたとき保存はされても読み出しが上手くいかなかったのでsymlinkを使うようになった。Nginxでsymlinkを追うように設定が必要。
  8. Mastodonシステムメール配信用のGmailを復旧
    Mailgunなどが制限厳しいゆえにGmailを新規にアカウント作成してメール配信用に利用していたものの、パスワードログインにしていたところ以前有効化したはずが何故か無効化されてしまっていて、ログインが蹴られメールが配信されていない状態になっていた。この際だからとアカウントの2段階認証を有効化してアプリパスワードを発行、それをMastodonの設定ファイルに記載してログインできるようにし復旧。
  9. Nginxセットアップとか
    残りの作業を片付け。Nginxはさらに上位に居るIISがhttpsを受けてNginxにリバースプロキシで飛ばすため、Nginxは公式の設定例からhttpのserverブロックを全てコメントアウトの上httpsのserverブロックで443番ポートのバインドをコメントアウトし80番ポートのバインドを追加。これで基本的にIISから飛ばされたのを受けてさらにMastodonのWebとStreamingに繋げられる。
  10. Webサーバからのリバースプロキシを新環境へ切り替え
    上位に居るIISのリバースプロキシでの転送先を新環境のIPアドレスに切り替える。特段問題無く接続できればOK。Mastodonの環境側で、ufwのポート開放は予めIIS環境のアドレスに対して行っておく。

WebサーバのIIS廃止とMastodon環境への統合

2020/12/30 頃
もう数年来の悲願となっていたタスク。Webサーバの環境もWindows Server 2012 R2を用いてIIS 8.5を利用していたため、サポート期限とか再セットアップの労力(主にWindows Update)を考えるともういい加減に捨てたいという気持ちが大きくなりつつあった。
年の末も末ながら、いくつか大きい作業が続いているこの勢いのままやってしまいたかったので決行。

  1. Windows版NginxとMastodon環境のNginxでテストを繰り返す
    Windows版のNginxをconfigのテスト用にダウンロードし、Mastodonのconfigを流用してIISが現在ホストしているWebサイトのうち

    • メインのサイト
    • Wiki.js用サイト

    の2つのconfigを作成。Mastodon環境へ統合するので、Mastodonについては現在80番ポートで定義している構成を後で書き換える。
    ディレクトリパスの類は一旦WindowsとLinuxでそれぞれ別のものを仮で用意し、上記2つ各バーチャルホストの構成を書いてテストを繰り返して通るようにする。途中Mastodon環境に持って行って何度か試す。

  2. WebサーバをIISからNginxに切り替え
    configを大体書き終わったら、各バーチャルホストのhttps用serverセクションは一旦全てコメントアウトするか80番ポートへのバインドに切り替えるなどしてNginx上で有効化し開始。アクセスできるかどうか確認する。
  3. certbotでLet’s Encryptの証明書を取得
    80番ポートだけ動かしていてもしょうがないので証明書を取得。
    当初certbotのnginxモードで試したが、複数あるバーチャルホスト

    • taiha.net, xn--psso63e.net
    • wiki.taiha.net
    • mstdn.taiha.net

    のうち、何故か taiha.net がcertbotから認識されずリストに現れないために残り2つの証明書しか取得できなかった。色々試したけどどうにもダメなので、結局

    certbot certonly --nginx -d taiha.net -d xn--psso63e.net -d wiki.taiha.net -d mstdn.taiha.net
    


    として手動で全てのドメインを指定して証明書を取得した。
    ネット上で検索すると自動更新についてはcertbotのrenewをcronに登録するという方法が大量に出てくるが、見かけた情報によると証明書が取得された後はcertbotによってsystemdのtimerが自動的に設定され自動更新が行われるようで、cronへの登録は必要なさそう。

  4. 証明書割り当てとhttps有効化
    certbotで取得した証明書を各バーチャルホストに設定してhttpsのserverセクションを有効化。その後アクセスできるか確認。

あとは新年一発目からのルータの置き換えに続く。

NCP-HG100

以前WXR-2533DHPやR7800、BUFFALOの旧型機たくさんなど提供して頂いた方より再び提供頂いたもの。本当に感謝。界隈で話題になり技術的な興味はありながらも、手元で作業中の機種が多い為に購入の優先度は上がらず後回しになっていた。
ひとまず、今回頂いたことで弄れるようになったのでメモ。

MAC

  • LAN: 5C:FF:35:**:**:ED (ART, 0x6 (hex))
  • WAN: 5C:FF:35:**:**:EF (ART, 0x0 (hex))
  • 2.4G: 5C:FF:35:**:**:ED (ART, 0x1006)
  • 5G: 5C:FF:35:**:**:EE (ART, 0x5006)

U-Boot

  • help
    (IPQ40xx) # help
    ?       - alias for 'help'
    base    - print or set address offset
    bootipq - bootipq from flash device
    bootm   - boot application image from memory
    bootp   - boot image via network using BOOTP/TFTP protocol
    chpart  - change active partition
    cmp     - memory compare
    cp      - memory copy
    crc32   - checksum calculation
    dhcp    - boot image via network using DHCP/TFTP protocol
    dumpipq_data- dumpipq_data crashdump collection from memory
    dumpipq_flash_data- dumpipq_flash_data crashdump collection and storing in flash
    echo    - echo args to console
    env     - environment handling commands
    exit    - exit script
    false   - do nothing, unsuccessfully
    fdt     - flattened device tree utility commands
    fuseipq - fuse QFPROM registers from memory
    
    go      - start application at address 'addr'
    help    - print command description/usage
    i2c     - I2C sub-system
    imxtract- extract a part of a multi-image
    loop    - infinite loop on address range
    md      - memory display
    mii     - MII utility commands
    mm      - memory modify (auto-incrementing address)
    mmc     - MMC sub system
    mmcinfo - display MMC info
    mtdparts- define flash/nand partitions
    mtest   - simple RAM read/write test
    mw      - memory write (fill)
    nand    - NAND sub-system
    nboot   - boot from NAND device
    nm      - memory modify (constant address)
    pci     - list and access PCI Configuration Space
    ping    - send ICMP ECHO_REQUEST to network host
    printenv- print environment variables
    reset   - Perform RESET of the CPU
    run     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    sf      - SPI flash sub-system
    showvar - print local hushshell variables
    smeminfo- print SMEM FLASH information
    source  - run script from memory
    test    - minimal test like /bin/sh
    tftpboot- boot image via network using TFTP protocol
    tftpput - TFTP put command, for uploading files to a server
    true    - do nothing, successfully
    uartrd  - uartrd read from second UART
    uartwr  - uartwr to second UART
    ubi     - ubi commands
    usb     - USB sub-system
    usbboot - boot from USB device
    version - print monitor, compiler and linker version
    

  • help
    (IPQ40xx) # version
    
    U-Boot 2012.07 [Chaos Calmer 15.05.1,r48067] (Dec 19 2018 - 08:16:11)
    arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 5.3.0 r48067) 5.3.0
    GNU ld (GNU Binutils) 2.24.0
    

  • printenv
    (IPQ40xx) # printenv
    baudrate=115200
    bootcmd=bootipq
    bootdelay=2
    eth1addr=5c:ff:35:**:**:ed
    ethact=eth0
    ethaddr=5c:ff:35:**:**:ef
    fileaddr=88000000
    filesize=1AC
    flash_type=1
    ipaddr=192.168.132.1
    machid=8010301
    serverip=192.168.132.100
    stderr=serial
    stdin=serial
    stdout=serial
    
    Environment size: 286/262140 bytes
    

  • mmcinfo
    (IPQ40xx) # mmcinfo
    Device: qca_mmc
    Manufacturer ID: 11
    OEM: 100
    Name: 004GA
    Tran Speed: 25000000
    Rd Block Len: 512
    MMC version 4.0
    High Capacity: Yes
    Capacity: 3.7 GiB
    Bus Width: 8-bit
    

  • mmc part
    (IPQ40xx) # mmc part
    
    Partition Map for MMC device 0  --   Partition Type: EFI
    
    Part    Name                    Start LBA       End LBA
    1     0:SBL1                  0x00000022      0x00000421
    2     0:BOOTCONFIG            0x00000422      0x00000821
    3     0:QSEE                  0x00000822      0x00000C21
    4     0:QSEE_1                0x00000C22      0x00001021
    5     0:CDT                   0x00001022      0x00001221
    6     0:CDT_1                 0x00001222      0x00001421
    7     0:BOOTCONFIG1           0x00001422      0x00001821
    8     0:APPSBLENV             0x00001822      0x00001A21
    9     0:APPSBL                0x00001A22      0x00002221
    10     0:APPSBL_1              0x00002222      0x00002A21
    11     0:ART                   0x00002A22      0x00002C21
    12     0:HSEE                  0x00002C22      0x00002E21
    13     0:HLOS                  0x00002E22      0x00006E21
    14     0:HLOS_1                0x00006E22      0x0000AE21
    15     rootfs                  0x0000AE22      0x0004AE21
    16     rootfs_1                0x0004AE22      0x0008AE21
    17     rootfs_data             0x0008AE22      0x003C6531
    

  • help
    
    

  • help
    
    

  • help
    
    

Kernel

  • uname -a
    root@OpenWrt:/# uname -a
    Linux OpenWrt 4.4.60 #3 SMP PREEMPT Thu Mar 21 15:55:35 CST 2019 armv7l GNU/Linux
    

  • cat /proc/version
    root@OpenWrt:/# cat /proc/version
    Linux version 4.4.60 (android@androidbuildmachine) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 r48067) ) #3 SMP PREEMPT Thu Mar 21 15:55:35 CST 2019
    

  • cat /proc/cpuinfo
    root@OpenWrt:/# cat /proc/cpuinfo
    processor       : 0
    model name      : ARMv7 Processor rev 5 (v7l)
    BogoMIPS        : 26.81
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xc07
    CPU revision    : 5
    
    processor       : 1
    model name      : ARMv7 Processor rev 5 (v7l)
    BogoMIPS        : 26.81
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xc07
    CPU revision    : 5
    
    processor       : 2
    model name      : ARMv7 Processor rev 5 (v7l)
    BogoMIPS        : 26.81
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xc07
    CPU revision    : 5
    
    processor       : 3
    model name      : ARMv7 Processor rev 5 (v7l)
    BogoMIPS        : 26.81
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xc07
    CPU revision    : 5
    
    Hardware        : Qualcomm (Flattened Device Tree)
    Revision        : 0000
    Serial          : 0000000000000000
    

  • cat /proc/meminfo
    root@OpenWrt:/# cat /proc/meminfo
    MemTotal:         495112 kB
    MemFree:          304600 kB
    MemAvailable:     378476 kB
    Buffers:           18092 kB
    Cached:            61008 kB
    SwapCached:            0 kB
    Active:            41468 kB
    Inactive:          45156 kB
    Active(anon):       7736 kB
    Inactive(anon):      152 kB
    Active(file):      33732 kB
    Inactive(file):    45004 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    HighTotal:             0 kB
    HighFree:              0 kB
    LowTotal:         495112 kB
    LowFree:          304600 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                16 kB
    Writeback:             0 kB
    AnonPages:          7452 kB
    Mapped:            18848 kB
    Shmem:               368 kB
    Slab:              68408 kB
    SReclaimable:       5352 kB
    SUnreclaim:        63056 kB
    KernelStack:        1840 kB
    PageTables:          696 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:      247556 kB
    Committed_AS:      24048 kB
    VmallocTotal:     507904 kB
    VmallocUsed:           0 kB
    VmallocChunk:          0 kB
    

  • cat /proc/mtd
    root@OpenWrt:/# cat /proc/mtd
    dev:    size   erasesize  name
    

  • i2cdetect -y -r 1
    root@OpenWrt:/# cat /tmp/i2c_detect.txt
    _____0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:          -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- 14 UU -- -- UU -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- UU UU -- -- -- -- -- -- -- -- -- -- -- --
    40: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --
    

  • mount
    root@OpenWrt:/# mount
    /dev/root on /rom type squashfs (ro,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
    cgroup on /sys/fs/cgroup type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
    /dev/mmcblk0p17 on /overlay type ext4 (rw,noatime,data=ordered)
    overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
    tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
    debugfs on /sys/kernel/debug type debugfs (rw,noatime)
    

  • df -h
    root@OpenWrt:/# df -h
    Filesystem                Size      Used Available Use% Mounted on
    /dev/root                35.3M     35.3M         0 100% /rom
    tmpfs                   241.8M    376.0K    241.4M   0% /tmp
    /dev/mmcblk0p17           1.6G     10.3M      1.5G   1% /overlay
    overlayfs:/overlay        1.6G     10.3M      1.5G   1% /
    tmpfs                   512.0K         0    512.0K   0% /dev
    

  • ps -w
    root@OpenWrt:/# ps -w
    PID USER       VSZ STAT COMMAND
    1 root      1368 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u8:0]
    7 root         0 SW   [rcu_preempt]
    8 root         0 SW   [rcu_sched]
    9 root         0 SW   [rcu_bh]
    10 root         0 SW   [migration/0]
    11 root         0 SW   [watchdog/0]
    12 root         0 SW   [watchdog/1]
    13 root         0 SW   [migration/1]
    14 root         0 SW   [ksoftirqd/1]
    16 root         0 SW<  [kworker/1:0H]
    17 root         0 SW   [watchdog/2]
    18 root         0 SW   [migration/2]
    19 root         0 SW   [ksoftirqd/2]
    20 root         0 SW   [kworker/2:0]
    21 root         0 SW<  [kworker/2:0H]
    22 root         0 SW   [watchdog/3]
    23 root         0 SW   [migration/3]
    24 root         0 SW   [ksoftirqd/3]
    26 root         0 SW<  [kworker/3:0H]
    27 root         0 SW<  [netns]
    28 root         0 SW<  [writeback]
    29 root         0 SW<  [crypto]
    30 root         0 SW<  [bioset]
    31 root         0 SW<  [kblockd]
    32 root         0 SW<  [ata_sff]
    33 root         0 SW   [kworker/0:1]
    34 root         0 SW   [kswapd0]
    35 root         0 SW<  [vmstat]
    36 root         0 SW   [fsnotify_mark]
    60 root         0 SW   [kworker/1:1]
    61 root         0 SW<  [glink_ssr_wq]
    62 root         0 SW<  [glink_pkt_wq]
    63 root         0 SW<  [glink_xprt_wq]
    64 root         0 SW<  [msm_ipc_router]
    65 root         0 SW<  [MHI_XPRT10:11]
    66 root         0 SW<  [bioset]
    67 root         0 SW<  [bioset]
    68 root         0 SW<  [bioset]
    69 root         0 SW<  [bioset]
    70 root         0 SW<  [bioset]
    71 root         0 SW<  [bioset]
    72 root         0 SW<  [bioset]
    73 root         0 SW<  [bioset]
    74 root         0 SW<  [bioset]
    75 root         0 SW<  [bioset]
    76 root         0 SW<  [bioset]
    77 root         0 SW<  [bioset]
    78 root         0 SW<  [bioset]
    79 root         0 SW<  [bioset]
    80 root         0 SW<  [bioset]
    81 root         0 SW<  [bioset]
    88 root         0 SW<  [qmi_svc_event_w]
    89 root         0 SW   [irq/30-7824900.]
    90 root         0 SW   [irq/29-mmc0]
    91 root         0 SW   [irq/123-7824900]
    92 root         0 SW<  [bioset]
    93 root         0 SW   [mmcqd/0]
    94 root         0 SW<  [bioset]
    95 root         0 SW   [mmcqd/0rpmb]
    97 root         0 SW<  [ipv6_addrconf]
    98 root         0 SW<  [deferwq]
    100 root         0 SW   [kworker/u8:3]
    101 root         0 SW<  [kworker/1:1H]
    102 root         0 SW<  [kworker/3:1H]
    104 root         0 SW<  [kworker/0:1H]
    105 root         0 SW   [kworker/3:1]
    106 root         0 SW   [kworker/3:2]
    109 root         0 SW<  [kworker/2:1H]
    131 root         0 SW   [jbd2/mmcblk0p17]
    132 root         0 SW<  [ext4-rsv-conver]
    245 root       840 S    /sbin/ubusd
    835 root         0 SW   [ocf_0]
    836 root         0 SW   [ocf_ret_0]
    837 root         0 SW   [ocf_1]
    838 root         0 SW   [ocf_ret_1]
    839 root         0 SW   [ocf_2]
    840 root         0 SW   [ocf_ret_2]
    841 root         0 SW   [ocf_3]
    842 root         0 SW   [ocf_ret_3]
    843 root         0 SW<  [qcrypto_seq_res]
    865 root         0 SW   [kworker/0:2]
    877 root         0 SW<  [gmac_workqueue]
    895 root         0 SW<  [bond0]
    1243 root         0 SW<  [alloc_task_wque]
    1251 root         0 SW<  [alloc_task_wque]
    1398 root      1244 S    /bin/ash --login
    1440 root      1052 S    /sbin/logd -S 64
    1460 root      1288 S    {network_manager} /bin/ash /bin/network_manager.sh
    1469 root      1280 S    /sbin/rpcd
    1483 root      1852 S    /sbin/modemproxyd
    1639 root      1864 S    hostapd -g /var/run/hostapd/global -B -P /var/run/hostapd-global.pid
    1643 root      3664 S    wpa_supplicant -g /var/run/wpa_supplicantglobal -B -P /var/run/wpa_supplicant-global.pid
    1696 root         0 SW   [ECM_wifi_event]
    1715 root      1544 S    /sbin/netifd
    1752 root      1228 S    {sysledsd_safe} /bin/sh /sbin/sysledsd_safe
    1762 root      1628 S    /sbin/sysledsd
    1894 root      1344 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -u /ubus -t 120 -T 30 -k 20 -A 1 -n 3 -N 100 -R -p 0.0
    1937 root      1348 S    /usr/sbin/dbus-daemon --system
    1974 root      1128 S    /usr/sbin/odhcpd
    2003 root      1228 S    udhcpc -p /var/run/udhcpc-wwan0.pid -s /lib/netifd/dhcp.script -f -t 0 -i wwan0 -C -O 212
    2039 nobody    1748 S    avahi-daemon: running [OpenWrt.local]
    2082 root         0 SW   [rfs_wxt]
    2151 root       752 S    odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth0
    2152 root      1228 S    udhcpc -p /var/run/udhcpc-eth0.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0 -C -O 212
    2284 root         0 SW   [kworker/2:2]
    2289 root      1008 S    hostapd_cli -i ath0 -P /var/run/hostapd_cli-ath0.pid -a /lib/wifi/wps-hostapd-update-uci -p /var/run/host
    2621 root      1008 S    hostapd_cli -i ath1 -P /var/run/hostapd_cli-ath1.pid -a /lib/wifi/wps-hostapd-update-uci -p /var/run/host
    2742 root       916 S    /usr/sbin/mcsd -d -C /tmp/mcs.conf
    2747 dnsmasq   1216 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
    2776 root       992 S    /usr/sbin/miniupnpd -f /var/etc/miniupnpd.conf
    3023 root      1232 S    /usr/sbin/ntpd -n -S /usr/sbin/ntpd-hotplug -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.open
    3196 root      1228 S    {HeliosAVS.sh} /bin/sh /root/avs/tools/HeliosAVS.sh
    3222 root      1228 S    {HeliosAVSLog.sh} /bin/sh /root/avs/tools/HeliosAVSLog.sh
    3228 root     22420 S    /root/avs/tools/HeliosAVS
    3229 root      1228 S    tee -a /root/avs/avs.log
    3290 root      1252 S    {Helios_Thermal_} /bin/ash /bin/Helios_Thermal_Policy.sh
    3646 root         0 Z    [sh]
    3699 root     16824 S    /opt/reach/bin/reach_app
    3750 root         0 SW   [kworker/1:2]
    15269 root       744 S    /sbin/rngd -r /dev/hwrng -W 2048 -s 256
    15993 root      1228 S    sleep 30
    16216 root      1228 S    sleep 15
    16299 root      1228 S    sleep 5
    16324 root      1228 S    sleep 3
    16325 root      1228 R    ps -w
    

  • ubus call system board
    root@OpenWrt:/# ubus call system board
    {
    "kernel": "4.4.60",
    "hostname": "OpenWrt",
    "system": "ARMv7 Processor rev 5 (v7l)",
    "model": "Qualcomm Technologies, Inc. IPQ4019\/AP-DK04.1-C4",
    "release": {
    "distribution": "OpenWrt",
    "version": "Chaos Calmer",
    "revision": "r48067",
    "codename": "chaos_calmer",
    "target": "ipq806x\/generic",
    "description": "OpenWrt Chaos Calmer 15.05.1"
    }
    }
    

  • swconfig list
    root@OpenWrt:/# swconfig list
    Found: switch0 - QCA AR8327 AR8337
    

  • swconfig dev switch0 show
    root@OpenWrt:/# swconfig dev switch0 show
    Global attributes:
    _        enable_vlan: 1
    _        max_frame_size: 1518
    _        dump_arl: MAC: 5c:ff:35:95:2e:ed PORTMAP: 0x01 VID: 0x1 STATUS: 0x0
    MAC: 34:76:c5:ac:5f:08 PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: 5c:ff:35:95:2e:ef PORTMAP: 0x01 VID: 0x2 STATUS: 0x0
    MAC: a8:a1:59:38:38:56 PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: a0:36:9f:a1:22:15 PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: 34:9f:7b:b7:4c:3f PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: bc:5c:4c:c8:ef:6f PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: b8:87:1e:03:b6:fa PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: 50:7b:9d:d7:f0:15 PORTMAP: 0x10 VID: 0x1 STATUS: 0x0
    MAC: 48:43:dd:c0:0f:bb PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: bc:5c:4c:0d:af:53 PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: 00:25:36:14:e9:8c PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: ac:84:c6:30:db:cc PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: 48:45:20:10:ae:cd PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    MAC: 04:ab:18:08:79:cb PORTMAP: 0x20 VID: 0x2 STATUS: 0x0
    
    _        switch_ext: ???
    Port 0:
    _        mib: Port 0 MIB counters
    RxBroad     : 105
    RxPause     : 0
    RxMulti     : 4613
    RxFcsErr    : 0
    RxAlignErr  : 0
    RxRunt      : 0
    RxFragment  : 0
    Rx64Byte    : 0
    Rx128Byte   : 4167
    Rx256Byte   : 369
    Rx512Byte   : 2282
    Rx1024Byte  : 2661
    Rx1518Byte  : 55
    RxMaxByte   : 0
    RxTooLong   : 0
    RxGoodByte  : 2883801
    RxBadByte   : 0
    RxOverFlow  : 0
    Filtered    : 2740
    TxBroad     : 2630
    TxPause     : 0
    TxMulti     : 2895
    TxUnderRun  : 0
    Tx64Byte    : 1209
    Tx128Byte   : 4643
    Tx256Byte   : 1439
    Tx512Byte   : 2091
    Tx1024Byte  : 171
    Tx1518Byte  : 1962
    TxMaxByte   : 0
    TxOverSize  : 0
    TxByte      : 4486582
    TxCollision : 0
    TxAbortCol  : 0
    TxMultiCol  : 0
    TxSingleCol : 0
    TxExcDefer  : 0
    TxDefer     : 0
    TxLateCol   : 0
    RxUniCast   : 4816
    TxUniCast   : 5990
    
    _        pvid: 0
    _        link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
    Port 1:
    _        mib: Port 1 MIB counters
    RxBroad     : 0
    RxPause     : 0
    RxMulti     : 0
    RxFcsErr    : 0
    RxAlignErr  : 0
    RxRunt      : 0
    RxFragment  : 0
    Rx64Byte    : 0
    Rx128Byte   : 0
    Rx256Byte   : 0
    Rx512Byte   : 0
    Rx1024Byte  : 0
    Rx1518Byte  : 0
    RxMaxByte   : 0
    RxTooLong   : 0
    RxGoodByte  : 0
    RxBadByte   : 0
    RxOverFlow  : 0
    Filtered    : 0
    TxBroad     : 0
    TxPause     : 0
    TxMulti     : 0
    TxUnderRun  : 0
    Tx64Byte    : 0
    Tx128Byte   : 0
    Tx256Byte   : 0
    Tx512Byte   : 0
    Tx1024Byte  : 0
    Tx1518Byte  : 0
    TxMaxByte   : 0
    TxOverSize  : 0
    TxByte      : 0
    TxCollision : 0
    TxAbortCol  : 0
    TxMultiCol  : 0
    TxSingleCol : 0
    TxExcDefer  : 0
    TxDefer     : 0
    TxLateCol   : 0
    RxUniCast   : 0
    TxUniCast   : 0
    
    _        pvid: 1
    _        link: port:1 link:down
    Port 2:
    _        mib: Port 2 MIB counters
    RxBroad     : 0
    RxPause     : 0
    RxMulti     : 0
    RxFcsErr    : 0
    RxAlignErr  : 0
    RxRunt      : 0
    RxFragment  : 0
    Rx64Byte    : 0
    Rx128Byte   : 0
    Rx256Byte   : 0
    Rx512Byte   : 0
    Rx1024Byte  : 0
    Rx1518Byte  : 0
    RxMaxByte   : 0
    RxTooLong   : 0
    RxGoodByte  : 0
    RxBadByte   : 0
    RxOverFlow  : 0
    Filtered    : 0
    TxBroad     : 0
    TxPause     : 0
    TxMulti     : 0
    TxUnderRun  : 0
    Tx64Byte    : 0
    Tx128Byte   : 0
    Tx256Byte   : 0
    Tx512Byte   : 0
    Tx1024Byte  : 0
    Tx1518Byte  : 0
    TxMaxByte   : 0
    TxOverSize  : 0
    TxByte      : 0
    TxCollision : 0
    TxAbortCol  : 0
    TxMultiCol  : 0
    TxSingleCol : 0
    TxExcDefer  : 0
    TxDefer     : 0
    TxLateCol   : 0
    RxUniCast   : 0
    TxUniCast   : 0
    
    _        pvid: 1
    _        link: port:2 link:down
    Port 3:
    _        mib: Port 3 MIB counters
    RxBroad     : 0
    RxPause     : 0
    RxMulti     : 0
    RxFcsErr    : 0
    RxAlignErr  : 0
    RxRunt      : 0
    RxFragment  : 0
    Rx64Byte    : 0
    Rx128Byte   : 0
    Rx256Byte   : 0
    Rx512Byte   : 0
    Rx1024Byte  : 0
    Rx1518Byte  : 0
    RxMaxByte   : 0
    RxTooLong   : 0
    RxGoodByte  : 0
    RxBadByte   : 0
    RxOverFlow  : 0
    Filtered    : 0
    TxBroad     : 0
    TxPause     : 0
    TxMulti     : 0
    TxUnderRun  : 0
    Tx64Byte    : 0
    Tx128Byte   : 0
    Tx256Byte   : 0
    Tx512Byte   : 0
    Tx1024Byte  : 0
    Tx1518Byte  : 0
    TxMaxByte   : 0
    TxOverSize  : 0
    TxByte      : 0
    TxCollision : 0
    TxAbortCol  : 0
    TxMultiCol  : 0
    TxSingleCol : 0
    TxExcDefer  : 0
    TxDefer     : 0
    TxLateCol   : 0
    RxUniCast   : 0
    TxUniCast   : 0
    
    _        pvid: 1
    _        link: port:3 link:down
    Port 4:
    _        mib: Port 4 MIB counters
    RxBroad     : 200
    RxPause     : 0
    RxMulti     : 516
    RxFcsErr    : 0
    RxAlignErr  : 0
    RxRunt      : 0
    RxFragment  : 0
    Rx64Byte    : 163
    Rx128Byte   : 687
    Rx256Byte   : 63
    Rx512Byte   : 30
    Rx1024Byte  : 31
    Rx1518Byte  : 11
    RxMaxByte   : 0
    RxTooLong   : 0
    RxGoodByte  : 127843
    RxBadByte   : 0
    RxOverFlow  : 0
    Filtered    : 0
    TxBroad     : 4
    TxPause     : 0
    TxMulti     : 1769
    TxUnderRun  : 0
    Tx64Byte    : 64
    Tx128Byte   : 109
    Tx256Byte   : 103
    Tx512Byte   : 925
    Tx1024Byte  : 809
    Tx1518Byte  : 44
    TxMaxByte   : 0
    TxOverSize  : 0
    TxByte      : 958918
    TxCollision : 0
    TxAbortCol  : 0
    TxMultiCol  : 0
    TxSingleCol : 0
    TxExcDefer  : 0
    TxDefer     : 0
    TxLateCol   : 0
    RxUniCast   : 269
    TxUniCast   : 281
    
    _        pvid: 1
    _        link: port:4 link:up speed:1000baseT full-duplex txflow rxflow
    Port 5:
    _        mib: Port 5 MIB counters
    RxBroad     : 2435
    RxPause     : 0
    RxMulti     : 2388
    RxFcsErr    : 0
    RxAlignErr  : 0
    RxRunt      : 0
    RxFragment  : 0
    Rx64Byte    : 1943
    Rx128Byte   : 3073
    Rx256Byte   : 1382
    Rx512Byte   : 2064
    Rx1024Byte  : 142
    Rx1518Byte  : 1955
    RxMaxByte   : 0
    RxTooLong   : 0
    RxGoodByte  : 4351229
    RxBadByte   : 0
    RxOverFlow  : 0
    Filtered    : 0
    TxBroad     : 101
    TxPause     : 0
    TxMulti     : 107
    TxUnderRun  : 0
    Tx64Byte    : 1306
    Tx128Byte   : 2646
    Tx256Byte   : 245
    Tx512Byte   : 538
    Tx1024Byte  : 4
    Tx1518Byte  : 12
    TxMaxByte   : 0
    TxOverSize  : 0
    TxByte      : 534152
    TxCollision : 0
    TxAbortCol  : 0
    TxMultiCol  : 0
    TxSingleCol : 0
    TxExcDefer  : 0
    TxDefer     : 0
    TxLateCol   : 0
    RxUniCast   : 5736
    TxUniCast   : 4543
    
    _        pvid: 2
    _        link: port:5 link:up speed:1000baseT full-duplex
    Port 6:
    _        mib: Port 6 MIB counters
    RxBroad     : 0
    RxPause     : 0
    RxMulti     : 0
    RxFcsErr    : 0
    RxAlignErr  : 0
    RxRunt      : 0
    RxFragment  : 0
    Rx64Byte    : 0
    Rx128Byte   : 0
    Rx256Byte   : 0
    Rx512Byte   : 0
    Rx1024Byte  : 0
    Rx1518Byte  : 0
    RxMaxByte   : 0
    RxTooLong   : 0
    RxGoodByte  : 0
    RxBadByte   : 0
    RxOverFlow  : 0
    Filtered    : 0
    TxBroad     : 0
    TxPause     : 0
    TxMulti     : 0
    TxUnderRun  : 0
    Tx64Byte    : 0
    Tx128Byte   : 0
    Tx256Byte   : 0
    Tx512Byte   : 0
    Tx1024Byte  : 0
    Tx1518Byte  : 0
    TxMaxByte   : 0
    TxOverSize  : 0
    TxByte      : 0
    TxCollision : 0
    TxAbortCol  : 0
    TxMultiCol  : 0
    TxSingleCol : 0
    TxExcDefer  : 0
    TxDefer     : 0
    TxLateCol   : 0
    RxUniCast   : 0
    TxUniCast   : 0
    
    _        pvid: 0
    _        link: ???
    VLAN 1:
    _        vid: 1
    _        ports: 0t 1 2 3 4
    VLAN 2:
    _        vid: 2
    _        ports: 0t 5
    

  • cat /sys/kernel/debug/pinctrl/1000000.pinctrl/pinmux-pins
    root@OpenWrt:/# cat /sys/kernel/debug/pinctrl/1000000.pinctrl/pinmux-pins
    Pinmux settings per pin
    Format: pin (name): mux_owner gpio_owner hog?
    pin 0 (GPIO_0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 1 (GPIO_1): (MUX UNCLAIMED) 1000000.pinctrl:1
    pin 2 (GPIO_2): 1000000.pinctrl 1000000.pinctrl:2 (HOG) function gpio group gpio2
    pin 3 (GPIO_3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 4 (GPIO_4): 1000000.pinctrl 1000000.pinctrl:4 (HOG) function gpio group gpio4
    pin 5 (GPIO_5): (MUX UNCLAIMED) 1000000.pinctrl:5
    pin 6 (GPIO_6): 90000.mdio (GPIO UNCLAIMED) function mdio0 group gpio6
    pin 7 (GPIO_7): 90000.mdio (GPIO UNCLAIMED) function mdc group gpio7
    pin 8 (GPIO_8): 78b0000.serial (GPIO UNCLAIMED) function blsp_uart1 group gpio8
    pin 9 (GPIO_9): 78b0000.serial (GPIO UNCLAIMED) function blsp_uart1 group gpio9
    pin 10 (GPIO_10): 78b0000.serial (GPIO UNCLAIMED) function blsp_uart1 group gpio10
    pin 11 (GPIO_11): 78b0000.serial (GPIO UNCLAIMED) function blsp_uart1 group gpio11
    pin 12 (GPIO_12): 78b8000.i2c (GPIO UNCLAIMED) function blsp_i2c1 group gpio12
    pin 13 (GPIO_13): 78b8000.i2c (GPIO UNCLAIMED) function blsp_i2c1 group gpio13
    pin 14 (GPIO_14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 15 (GPIO_15): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function gpio group gpio15
    pin 16 (GPIO_16): 78af000.serial (GPIO UNCLAIMED) function blsp_uart0 group gpio16
    pin 17 (GPIO_17): 78af000.serial (GPIO UNCLAIMED) function blsp_uart0 group gpio17
    pin 18 (GPIO_18): (MUX UNCLAIMED) 1000000.pinctrl:18
    pin 19 (GPIO_19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 20 (GPIO_20): 1000000.pinctrl 1000000.pinctrl:20 (HOG) function gpio group gpio20
    pin 21 (GPIO_21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 22 (GPIO_22): (MUX UNCLAIMED) 1000000.pinctrl:22
    pin 23 (GPIO_23): 7824900.sdhci (GPIO UNCLAIMED) function sdio0 group gpio23
    pin 24 (GPIO_24): 7824900.sdhci (GPIO UNCLAIMED) function sdio1 group gpio24
    pin 25 (GPIO_25): 7824900.sdhci (GPIO UNCLAIMED) function sdio2 group gpio25
    pin 26 (GPIO_26): 7824900.sdhci (GPIO UNCLAIMED) function sdio3 group gpio26
    pin 27 (GPIO_27): 7824900.sdhci (GPIO UNCLAIMED) function sdio_clk group gpio27
    pin 28 (GPIO_28): 7824900.sdhci (GPIO UNCLAIMED) function sdio_cmd group gpio28
    pin 29 (GPIO_29): 7824900.sdhci (GPIO UNCLAIMED) function sdio4 group gpio29
    pin 30 (GPIO_30): 7824900.sdhci (GPIO UNCLAIMED) function sdio5 group gpio30
    pin 31 (GPIO_31): 7824900.sdhci (GPIO UNCLAIMED) function sdio6 group gpio31
    pin 32 (GPIO_32): 7824900.sdhci (GPIO UNCLAIMED) function sdio7 group gpio32
    pin 33 (GPIO_33): (MUX UNCLAIMED) 1000000.pinctrl:33
    pin 34 (GPIO_34): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 35 (GPIO_35): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function gpio group gpio35
    pin 36 (GPIO_36): 1000000.pinctrl 1000000.pinctrl:36 (HOG) function gpio group gpio36
    pin 37 (GPIO_37): a000000.wifi (GPIO UNCLAIMED) function wcss0_dbg16 group gpio37
    pin 38 (GPIO_38): (MUX UNCLAIMED) 1000000.pinctrl:38
    pin 39 (GPIO_39): soc:gpio_input_keys 1000000.pinctrl:39 function gpio group gpio39
    pin 40 (GPIO_40): soc:gpio_input_keys 1000000.pinctrl:40 function gpio group gpio40
    pin 41 (GPIO_41): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 42 (GPIO_42): soc:gpio_input_keys 1000000.pinctrl:42 function gpio group gpio42
    pin 43 (GPIO_43): a000000.wifi (GPIO UNCLAIMED) function wifi_wci1 group gpio43
    pin 44 (GPIO_44): 1-0018 1000000.pinctrl:44 function gpio group gpio44
    pin 45 (GPIO_45): 1-0018 1000000.pinctrl:45 function gpio group gpio45
    pin 46 (GPIO_46): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 47 (GPIO_47): soc:gpio_input_keys 1000000.pinctrl:47 function gpio group gpio47
    pin 48 (GPIO_48): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function aud_pin group gpio48
    pin 49 (GPIO_49): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function aud_pin group gpio49
    pin 50 (GPIO_50): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function aud_pin group gpio50
    pin 51 (GPIO_51): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function aud_pin group gpio51
    pin 52 (GPIO_52): a000000.wifi (GPIO UNCLAIMED) function gpio group gpio52
    pin 53 (GPIO_53): soc:sound@0 (GPIO UNCLAIMED) function i2s_tx_bclk group gpio53
    pin 54 (GPIO_54): soc:sound@0 (GPIO UNCLAIMED) function i2s_td1 group gpio54
    pin 55 (GPIO_55): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 56 (GPIO_56): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 57 (GPIO_57): soc:sound@0 (GPIO UNCLAIMED) function i2s_tx_fsync group gpio57
    pin 58 (GPIO_58): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 59 (GPIO_59): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function gpio group gpio59
    pin 60 (GPIO_60): soc:sound@0 (GPIO UNCLAIMED) function i2s_rx_bclk group gpio60
    pin 61 (GPIO_61): soc:sound@0 (GPIO UNCLAIMED) function i2s_rx_fsync group gpio61
    pin 62 (GPIO_62): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 63 (GPIO_63): soc:sound@0 (GPIO UNCLAIMED) function i2s_rxd group gpio63
    pin 64 (GPIO_64): 1-0041 (GPIO UNCLAIMED) function gpio group gpio64
    pin 65 (GPIO_65): 1-0041 1000000.pinctrl:65 function gpio group gpio65
    pin 66 (GPIO_66): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function gpio group gpio66
    pin 67 (GPIO_67): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 68 (GPIO_68): 1000000.pinctrl (GPIO UNCLAIMED) (HOG) function gpio group gpio68
    pin 69 (GPIO_69): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 70 (GPIO_70): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 71 (GPIO_71): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 72 (GPIO_72): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 73 (GPIO_73): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 74 (GPIO_74): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 75 (GPIO_75): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 76 (GPIO_76): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 77 (GPIO_77): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 78 (GPIO_78): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 79 (GPIO_79): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 80 (GPIO_80): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 81 (GPIO_81): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 82 (GPIO_82): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 83 (GPIO_83): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 84 (GPIO_84): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 85 (GPIO_85): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 86 (GPIO_86): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 87 (GPIO_87): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 88 (GPIO_88): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 89 (GPIO_89): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 90 (GPIO_90): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 91 (GPIO_91): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 92 (GPIO_92): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 93 (GPIO_93): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 94 (GPIO_94): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 95 (GPIO_95): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 96 (GPIO_96): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 97 (GPIO_97): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 98 (GPIO_98): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 99 (GPIO_99): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    

  • cat /sys/kernel/debug/gpio
    root@OpenWrt:/# cat /sys/kernel/debug/gpio
    GPIOs 0-99, platform/1000000.pinctrl, 1000000.pinctrl:
    gpio0   : in  0 2mA keeper
    gpio1   : out 0 2mA no pull
    gpio2   : in  0 2mA keeper
    gpio3   : in  0 2mA no pull
    gpio4   : in  0 2mA keeper
    gpio5   : out 0 2mA no pull
    gpio6   : in  1 2mA keeper
    gpio7   : in  1 2mA keeper
    gpio8   : out 1 2mA no pull
    gpio9   : out 1 2mA no pull
    gpio10  : in  1 2mA no pull
    gpio11  : in  1 2mA no pull
    gpio12  : in  2 2mA no pull
    gpio13  : in  2 2mA no pull
    gpio14  : in  0 2mA pull down
    gpio15  : out 0 2mA keeper
    gpio16  : out 1 2mA no pull
    gpio17  : out 1 2mA no pull
    gpio18  : in  0 2mA pull down
    gpio19  : in  1 2mA pull down
    gpio20  : in  0 2mA keeper
    gpio21  : in  0 2mA keeper
    gpio22  : in  1 2mA keeper
    gpio23  : in  1 4mA keeper
    gpio24  : in  1 4mA keeper
    gpio25  : in  1 4mA keeper
    gpio26  : in  1 4mA keeper
    gpio27  : in  1 16mA keeper
    gpio28  : in  1 4mA keeper
    gpio29  : in  1 4mA keeper
    gpio30  : in  1 4mA keeper
    gpio31  : in  1 4mA keeper
    gpio32  : in  1 4mA keeper
    gpio33  : out 0 2mA no pull
    gpio34  : in  0 2mA keeper
    gpio35  : in  0 2mA keeper
    gpio36  : out 0 2mA pull down
    gpio37  : in  7 6mA pull down
    gpio38  : out 0 2mA no pull
    gpio39  : in  0 2mA no pull
    gpio40  : in  0 2mA no pull
    gpio41  : out 0 2mA pull down
    gpio42  : in  0 2mA no pull
    gpio43  : in  2 6mA pull down
    gpio44  : out 0 2mA no pull
    gpio45  : out 0 2mA no pull
    gpio46  : in  0 2mA pull down
    gpio47  : in  0 2mA no pull
    gpio48  : in  2 2mA pull down
    gpio49  : in  2 2mA pull down
    gpio50  : in  2 2mA keeper
    gpio51  : in  2 2mA pull down
    gpio52  : out 0 6mA keeper
    gpio53  : out 3 2mA keeper
    gpio54  : out 3 2mA pull down
    gpio55  : in  0 2mA pull down
    gpio56  : in  0 2mA pull down
    gpio57  : out 3 2mA pull down
    gpio58  : in  0 2mA keeper
    gpio59  : out 0 2mA keeper
    gpio60  : out 7 2mA pull down
    gpio61  : out 7 2mA pull down
    gpio62  : in  2 2mA pull down
    gpio63  : out 6 2mA pull down
    gpio64  : in  0 2mA no pull
    gpio65  : out 0 2mA no pull
    gpio66  : out 0 2mA pull down
    gpio67  : in  0 2mA pull down
    gpio68  : out 0 2mA pull down
    gpio69  : in  0 2mA pull down
    gpio70  : in  0 2mA pull down
    gpio71  : in  0 2mA pull down
    gpio72  : in  0 2mA pull down
    gpio73  : in  0 2mA pull down
    gpio74  : in  0 2mA pull down
    gpio75  : in  0 2mA pull down
    gpio76  : in  0 2mA pull down
    gpio77  : in  0 2mA pull down
    gpio78  : in  0 2mA pull down
    gpio79  : in  0 2mA pull down
    gpio80  : in  0 2mA pull down
    gpio81  : in  0 2mA pull down
    gpio82  : in  0 2mA pull down
    gpio83  : in  0 2mA pull down
    gpio84  : in  0 2mA pull down
    gpio85  : in  0 2mA pull down
    gpio86  : in  0 2mA pull down
    gpio87  : in  0 2mA pull down
    gpio88  : in  0 2mA pull down
    gpio89  : in  0 2mA pull down
    gpio90  : in  0 2mA pull down
    gpio91  : in  0 2mA pull down
    gpio92  : in  0 2mA pull down
    gpio93  : in  0 2mA pull down
    gpio94  : in  0 2mA pull down
    gpio95  : in  0 2mA pull down
    gpio96  : in  0 2mA pull down
    gpio97  : in  0 2mA pull down
    gpio98  : in  0 2mA pull down
    gpio99  : in  0 2mA pull down
    

  • uname -a
    
    

  • bootlog(set bootargs console=ttyMSM0,115200n8
    
    Format: Log Type - Time(microsec) - Message - Optional Info
    Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
    S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00120
    S - IMAGE_VARIANT_STRING=DAAAANAZA
    S - OEM_IMAGE_VERSION_STRING=CRM
    S - Boot Config, 0x000000a3
    S - Reset status Config, 0x00000000
    S - Core 0 Frequency, 0 MHz
    B -       262 - PBL, Start
    B -      5154 - bootable_media_detect_entry, Start
    B -     33447 - bootable_media_detect_success, Start
    B -     33453 - elf_loader_entry, Start
    B -     35364 - auth_hash_seg_entry, Start
    B -    783746 - auth_hash_seg_exit, Start
    B -    799893 - elf_segs_hash_verify_entry, Start
    B -    844412 - PBL, End
    B -    844425 - SBL1, Start
    B -    920803 - pm_device_init, Start
    D -         4 - pm_device_init, Delta
    B -    921567 - boot_flash_init, Start
    D -     17412 - boot_flash_init, Delta
    B -    943510 - boot_config_data_table_init, Start
    D -      1642 - boot_config_data_table_init, Delta - (419 Bytes)
    B -    951500 - clock_init, Start
    D -      3289 - clock_init, Delta
    B -    958325 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:3,Subtype:1
    B -    964646 - sbl1_ddr_set_params, Start
    B -    968989 - cpr_init, Start
    D -         2 - cpr_init, Delta
    B -    973588 - Pre_DDR_clock_init, Start
    D -         4 - Pre_DDR_clock_init, Delta
    D -     13390 - sbl1_ddr_set_params, Delta
    B -    986894 - pm_driver_init, Start
    D -         2 - pm_driver_init, Delta
    B -   1058094 - sbl1_wait_for_ddr_training, Start
    D -        28 - sbl1_wait_for_ddr_training, Delta
    B -   1075529 - Image Load, Start
    D -   1203225 - QSEE Image Loaded, Delta - (304152 Bytes)
    B -   2279182 - Image Load, Start
    D -       946 - SEC Image Loaded, Delta - (0 Bytes)
    B -   2288962 - Image Load, Start
    D -   1264048 - APPSBL Image Loaded, Delta - (435807 Bytes)
    B -   3553437 - QSEE Execution, Start
    D -        60 - QSEE Execution, Delta
    B -   3559611 - SBL1, End
    D -   2717299 - SBL1, Delta
    S - Flash Throughput, 25031 KB/s  (740730 Bytes,  29592 us)
    S - DDR Frequency, 672 MHz
    
    U-Boot 2012.07 [Chaos Calmer 15.05.1,r48067] (Mar 21 2019 - 14:16:48)
    
    smem ram ptable found: ver: 1 len: 3
    DRAM:  512 MiB
    machid : 0x8010301
    MMC:   qca_mmc: 0
    In:    serial
    Out:   serial
    Err:   serial
    machid: 8010301
    flash_type: 1
    MAC0 : 5CFF35952EEF
    MAC1 : 5CFF35952EED
    Hit any key to stop autoboot:  0
    Net:   MAC0 addr:5c:ff:35:95:2e:ef
    PHY ID1: 0x4d
    PHY ID2: 0xd0b2
    ipq40xx_ess_sw_init done
    eth0
    
    (IPQ40xx) # set bootargs console=ttyMSM0,115200n8
    (IPQ40xx) # bootipq
    
    MMC read: dev # 0, block # 28194, count 16384 ... 16384 blocks read: OK
    ## Booting kernel from FIT Image at 84000028 ...
    Using 'config@ap.dk04.1-c4' configuration
    Trying 'kernel@1' kernel subimage
    Description:  ARM OpenWrt Linux-4.4.60
    Type:         Kernel Image
    Compression:  gzip compressed
    Data Start:   0x8400010c
    Data Size:    3706933 Bytes = 3.5 MiB
    Architecture: ARM
    OS:           Linux
    Load Address: 0x80208000
    Entry Point:  0x80208000
    Hash algo:    crc32
    Hash value:   3f3888ec
    Hash algo:    sha1
    Hash value:   b89e736642f09d638741a2ac0e176a822d8b62f8
    Verifying Hash Integrity ... crc32+ sha1+ OK
    ## Flattened Device Tree from FIT Image at 84000028
    Using 'config@ap.dk04.1-c4' configuration
    Trying 'fdt@ap.dk04.1-c4' FDT blob subimage
    Description:  ARM OpenWrt qcom-ipq40xx-ap.dkxx device tree blob
    Type:         Flat Device Tree
    Compression:  uncompressed
    Data Start:   0x843c5534
    Data Size:    33755 Bytes = 33 KiB
    Architecture: ARM
    Hash algo:    crc32
    Hash value:   496024b9
    Hash algo:    sha1
    Hash value:   54c3f8319be5d79c5cb16de0ccbaf6000a93b38c
    Verifying Hash Integrity ... crc32+ sha1+ OK
    Booting using the fdt blob at 0x843c5534
    Uncompressing Kernel Image ... OK
    Loading Device Tree to 86ff4000, end 86fff3da ... OK
    Using machid 0x8010301 from environment
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.4.60 (android@androidbuildmachine) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 r48067) ) #3 SMP PREEMPT Thu Mar 21 15:55:35 CST 2019
    [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1-C4
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] PERCPU: Embedded 12 pages/cpu @dfb2b000 s18560 r8192 d22400 u49152
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 125824
    [    0.000000] Kernel command line: console=ttyMSM0,115200n8 rootfsname=rootfs_1 rootwait clk_ignore_unused
    [    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: 494884K/507904K available (5184K kernel code, 309K rwdata, 1760K rodata, 228K init, 268K bss, 13020K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0208000 - 0xc08d03b8   (6945 kB)
    [    0.000000]       .init : 0xc08d1000 - 0xc090a000   ( 228 kB)
    [    0.000000]       .data : 0xc090a000 - 0xc0957428   ( 310 kB)
    [    0.000000]        .bss : 0xc095a000 - 0xc099d1dc   ( 269 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] Architected cp15 timer(s) running at 48.00MHz (virt).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
    [    0.000007] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
    [    0.000023] Switching to timer-based delay loop, resolution 20ns
    [    0.000344] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
    [    0.000362] pid_max: default: 32768 minimum: 301
    [    0.000487] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000500] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.001195] Initializing cgroup subsys memory
    [    0.001248] CPU: Testing write buffer coherency: ok
    [    0.001581] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.001668] Setting up static identity map for 0x80208280 - 0x802082d8
    [    0.052816] MSM Memory Dump base table set up
    [    0.052857] MSM Memory Dump apps data table set up
    [    0.090972] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.121024] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [    0.151083] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [    0.151173] Brought up 4 CPUs
    [    0.151203] SMP: Total of 4 processors activated (384.00 BogoMIPS).
    [    0.151213] CPU: All CPU(s) started in SVC mode.
    [    0.164232] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
    [    0.164688] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.164721] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.165050] pinctrl core: initialized pinctrl subsystem
    [    0.166637] NET: Registered protocol family 16
    [    0.168249] DMA: preallocated 2048 KiB pool for atomic coherent allocations
    [    0.190326] cpuidle: using governor ladder
    [    0.220362] cpuidle: using governor menu
    [    0.238490]  glink_init: IPC Logging Disabled
    [    0.239383] IPC logging disabled
    [    0.239394] IPC logging disabled
    [    0.239400] IPC logging disabled
    [    0.239407] IPC logging disabled
    [    0.239413] IPC logging disabled
    [    0.239685] sps:sps is ready.
    [    0.273086] SCSI subsystem initialized
    [    0.275294] Advanced Linux Sound Architecture Driver Initialized.
    [    0.276327] clocksource: Switched to clocksource arch_sys_counter
    [    0.278102] NET: Registered protocol family 2
    [    0.279084] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.279162] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.279251] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.279316] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.279348] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.279605] NET: Registered protocol family 1
    [    0.290988] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.291018] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.295860] Key type asymmetric registered
    [    0.295888] Asymmetric key parser 'x509' registered
    [    0.295947] io scheduler noop registered
    [    0.295966] io scheduler deadline registered (default)
    [    0.297915] 40000000.pci supply vdda not found, using dummy regulator
    [    0.297993] 40000000.pci supply vdda_phy not found, using dummy regulator
    [    0.298055] 40000000.pci supply vdda_refclk not found, using dummy regulator
    [    0.298393] PCI host bridge /soc/pci@40000000 ranges:
    [    0.298428]    IO 0x40200000..0x402fffff -> 0x40200000
    [    0.298450]   MEM 0x48000000..0x57ffffff -> 0x48000000
    [    1.363785] qcom-pcie 40000000.pci: phy link never came up
    [    1.401445] qcom-pcie 40000000.pci: hostinit failed
    [    1.401460] qcom-pcie 40000000.pci: cannot initialize host
    [    1.401683] qcom-pcie: probe of 40000000.pci failed with error -110
    [    1.402143] MDSS QPIC HW Base phy_Address=0x7980000 virt=0xe0e40000
    [    1.402535] mdss_qpic_panel_probe: Panel Name = qpic lcd panel
    [    1.405301] mdss_fb_register: FrameBuffer[0] 800x480 registered successfully!
    [    1.410393] NET: Registered protocol family 27
    [    1.410412] IPC_RTR: ipc_router_create_log_ctx: IPC Logging disabled
    [    1.410432] qmi_log_init: IPC Logging disabled
    [    1.410441] qmi_log_init: IPC Logging disabled
    [    1.411368] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
    [    1.411434] tcsr 1953000.ess_tcsr: setting ess interface select = 0
    [    1.411509] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
    [    1.411569] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
    [    1.412506] msm_serial: driver initialized
    [    1.412824] msm_serial_hsl_probe: detected port #0 (ttyMSM0)
    [    1.412859] msm_serial_hsl_probe: Bus scaling is disabled
    [    1.412999] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 25, base_baud = 115200) is a MSM
    [    1.413098] msm_hsl_console_setup: console setup on port #0
    [    2.030274] console [ttyMSM0] enabled
    [    2.034360] msm_serial_hsl_probe: detected port #1 (ttyMSM1)
    [    2.039578] msm_serial_hsl_probe: Bus scaling is disabled
    [    2.045029] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 26, base_baud = 115200) is a MSM
    [    2.054015] msm_serial_hsl_init: driver initialized
    [    2.072399] brd: module loaded
    [    2.074738] [--------- HELIOS MISC ---------]HELIOS_MISC driver probe
    [    2.688657] libphy: Fixed MDIO Bus: probed
    [    2.912514] ipq40xx-mdio 90000.mdio: Could not find phy-reset-gpio
    [    2.917866] libphy: ipq40xx_mdio: probed
    [    2.925165] ipq40xx-mdio 90000.mdio: ipq40xx-mdio driver was registered
    [    2.930944] cnss: Unable to create IPC log context!
    [    2.936084] cnss: Platform driver probed successfully.
    [    2.940932] i2c /dev entries driver
    [    2.945986] mcu 1-0015: #####MCU driver probe start!
    [    3.116967] mcu 1-0015: #####MCU driver probed
    [    3.122965] sdhci: Secure Digital Host Controller Interface driver
    [    3.128173] sdhci: Copyright(c) Pierre Ossman
    [    3.132466] sdhci-pltfm: SDHCI platform and OF driver helper
    [    3.139169] sdhci_msm 7824900.sdhci: Got SD LDO GPIO #33
    [    3.243484] sdhci_msm 7824900.sdhci: No vreg data found for vdd
    [    3.248391] sdhci_msm 7824900.sdhci: No vreg data found for vdd-io
    [    3.267376] sdhci_msm 7824900.sdhci: No vmmc regulator found
    [    3.316532] mmc0: SDHCI controller on 7824900.sdhci [7824900.sdhci] using ADMA 64-bit
    [    3.409297] mmc0: MAN_BKOPS_EN bit is not set
    [    3.414790] lp5523x 1-0032: lp55231 Programmable led chip found
    [    3.425825] mmc0: new HS200 MMC card at address 0001
    [    3.440531] mmcblk0: mmc0:0001 004GA0 3.69 GiB
    [    3.444306] mmcblk0rpmb: mmc0:0001 004GA0 partition 3 512 KiB
    [    3.451245] Alternate GPT is invalid, using primary GPT.
    [    3.455605] GPT: device [179:16] (rootfs_1) set to be root filesystem
    [    3.461990]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17
    [    3.509836] lp5523x 1-0033: lp55231 Programmable led chip found
    [    3.519984]
    [    3.519984] Version Rollback Feature Disabled
    [    3.582266] gpio-reset=65
    [    3.584836] ipq_audio soc:sound@0: ASoC: CPU DAI qca-i2s-dai not registered
    [    3.590930] ipq_audio soc:sound@0: snd_soc_register_card() failed:-517
    [    3.601390] NET: Registered protocol family 10
    [    3.605904] NET: Registered protocol family 17
    [    3.609453] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
    [    3.621971] Bridge firewalling registered
    [    3.625904] 8021q: 802.1Q VLAN Support v1.8
    [    3.630242] Registering SWP/SWPB emulation handler
    [    3.637422] RT5628 Audio Codec probed
    [    3.640057] [hp_depop_mode2]
    [    3.940424] [rt5628_set_bias_level] SND_SOC_BIAS_OFF
    [    4.246294] cx2092x 1-0041: codec driver version: 03,08,00,21
    [    4.252068] ipq_audio soc:sound@0: qca-i2s-codec-dai <-> qca-i2s-dai mapping ok
    [    4.258972] ipq_audio soc:sound@0: qca-i2s-conexant-dai <-> qca-i2s-dai mapping ok
    [    4.282427] hctosys: unable to open rtc device (rtc0)
    [    4.292090] clk: Not disabling unused clocks
    [    4.295339] ALSA device list:
    [    4.298412]   #0: ipq4019_snd_card
    [    4.306087] VFS: Mounted root (squashfs filesystem) readonly on device 179:16.
    [    4.313042] Freeing unused kernel memory: 228K (c08d1000 - c090a000)
    [    4.813839] init: Console is alive
    [    4.816495] init: - watchdog -
    [    6.659525] usbcore: registered new interface driver usbfs
    [    6.664070] usbcore: registered new interface driver hub
    [    6.669497] usbcore: registered new device driver usb
    [    6.677368] Button Hotplug driver version 0.4.1
    [    7.218728] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    7.223226] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [    7.231130] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x00010010
    [    7.239605] xhci-hcd xhci-hcd.0.auto: irq 233, io mem 0x08a00000
    [    7.246527] hub 1-0:1.0: USB hub found
    [    7.249292] hub 1-0:1.0: 1 port detected
    [    7.253639] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    7.258722] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [    7.266391] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    7.275216] hub 2-0:1.0: USB hub found
    [    7.278174] hub 2-0:1.0: 1 port detected
    [    7.282542] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    7.287506] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
    [    7.295337] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x00010010
    [    7.303847] xhci-hcd xhci-hcd.1.auto: irq 234, io mem 0x06000000
    [    7.310724] hub 3-0:1.0: USB hub found
    [    7.313522] hub 3-0:1.0: 1 port detected
    [    7.317911] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    7.322868] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
    [    7.330633] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
    [    7.339495] hub 4-0:1.0: USB hub found
    [    7.342340] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
    [    7.353579] input: soc:gpio_input_keys as /devices/platform/soc/soc:gpio_input_keys/input/input0
    [    7.364274] usbcore: registered new interface driver usb-storage
    [    7.820131] init: - preinit -
    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
    Before mount_root
    [   10.301490] EXT4-fs (mmcblk0p17): mounted filesystem with ordered data mode. Opts: (null)
    [   10.303396] random: procd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
    [   10.319231] mount_root: overlay filesystem has not been fully initialized yet
    [   10.328495] mount_root: switching to jffs2 overlay
    - config restore -
    After mount_root
    377+0 records in
    377+0 records out
    12064 bytes (11.8KB) copied, 0.004392 seconds, 2.6MB/s
    377+0 records in
    377+0 records out
    12064 bytes (11.8KB) copied, 0.003995 seconds, 2.9MB/s
    reason hw reset
    reason factory reset2
    [   10.517187] procd: - early -
    [   10.519110] procd: - watchdog -
    [   11.217692] procd: - ubus -
    [   12.220889] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
    [   12.229105] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
    [   12.237836] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
    [   12.251731] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
    [   12.259737] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
    [   12.268763] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
    [   12.277684] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
    [   12.286746] procd: - init -
    CY8C bootloader I2C update utility v1.4 bundled FW:(V14 released on 2018-08-27), Wistron Corp.
    Checking current firmware...
    Firmware Version is V14
    Current firmware is greater than or equal to version:V14 (V14 released on 2018-08-27)
    CY8C bootloader I2C update utility v1.4 bundled FW:(V14 released on 2018-08-27), Wistron Corp.
    Restart successed
    [   15.487112] QCE50: __qce_get_device_tree_data: BAM Apps EE is not defined, setting to default 1
    [   15.495198] QCE50: __qce_init_clk: Unable to get CE core src clk, set to NULL
    [   15.502034] qcrypto 8e20000.qcrypto: Qualcomm Crypto 5.3.1 device found @0x8e20000
    [   15.509483] qcrypto 8e20000.qcrypto: CE device = 0x0
    [   15.509483] , IO base, CE = 0xe1780000
    [   15.509483] , Consumer (IN) PIPE 2,    Producer (OUT) PIPE 3
    [   15.509483] IO base BAM = 0x  (null)
    [   15.509483] BAM IRQ 24
    [   15.509483] Engines Availability = 0x2010453
    [   15.534078] sps_register_bam_device : unable to create IPC Logging 0 for bam 0x08e04000
    [   15.541830] sps_register_bam_device : unable to create IPC Logging 1 for bam 0x08e04000sps_register_bam_device : unable to create IPC Logging 2 for bam 0x08e04000
    [   15.556241] sps_register_bam_device : unable to create IPC Logging 3 for bam 0x08e04000sps_register_bam_device : unable to create IPC Logging 4 for bam 0x08e04000
    [   15.570753] sps:BAM 0x08e04000 is registered.[   15.575264] sps:BAM 0x08e04000 (va:0xe1800000) enabled: ver:0x27, number of pipes:4
    [   15.582986] QCE50: qce_sps_init:  Qualcomm MSM CE-BAM at 0x0000000008e04000 irq 24
    [   15.592495] bus_scale_table is NULL
    [   15.595155] qcrypto 8e20000.qcrypto: qcrypto-ecb-aes
    [   15.600052] qcrypto 8e20000.qcrypto: qcrypto-cbc-aes
    [   15.604961] qcrypto 8e20000.qcrypto: qcrypto-ctr-aes
    [   15.609947] qcrypto 8e20000.qcrypto: qcrypto-ecb-des
    [   15.614857] qcrypto 8e20000.qcrypto: qcrypto-cbc-des
    [   15.619838] qcrypto 8e20000.qcrypto: qcrypto-ecb-3des
    [   15.624843] qcrypto 8e20000.qcrypto: qcrypto-cbc-3des
    [   15.629903] qcrypto 8e20000.qcrypto: qcrypto-xts-aes
    [   15.634826] qcrypto 8e20000.qcrypto: qcrypto-sha1
    [   15.639540] qcrypto 8e20000.qcrypto: qcrypto-sha256
    [   15.644381] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-aes
    [   15.650648] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-des
    [   15.656903] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-3des
    [   15.663212] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-aes
    [   15.669660] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-des
    [   15.676068] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-3des
    [   15.682594] qcrypto 8e20000.qcrypto: qcrypto-hmac-sha1
    [   15.687713] qcrypto 8e20000.qcrypto: qcrypto-hmac-sha256
    [   15.692983] qcrypto 8e20000.qcrypto: qcrypto-aes-ccm
    [   15.697957] qcrypto 8e20000.qcrypto: qcrypto-rfc4309-aes-ccm
    [   15.718977] nf_conntrack version 0.5.0 (7736 buckets, 30944 max)
    [   15.733138] ntfs: driver 2.1.32 [Flags: R/O MODULE].
    [   15.747065] Initializing XFRM netlink socket
    [   15.752086] NET: Registered protocol family 15
    [   15.759242] PPP generic driver version 2.4.2
    [   17.146623] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
    [   17.199553] usb 2-1: USB disconnect, device number 2
    [   17.435735] ssdk_alloc_priv[4390]:INFO:ess-switch dts node number: 1
    [   17.441122] ssdk_dt_parse[2642]:INFO:ess-switch DT exist!
    [   17.446494] ssdk_dt_parse[2671]:INFO:switch_access_mode: local bus
    [   17.452600] ssdk_dt_parse_mac_mode[2270]:INFO:mac mode = 0x0
    [   17.458243] ssdk_dt_parse_mac_mode[2276]:INFO:mac mode1 doesn't exit!
    [   17.464667] ssdk_dt_parse_mac_mode[2285]:INFO:mac mode2 doesn't exit!
    [   17.471117] ssdk_dt_parse_uniphy[2304]:INFO:ess-uniphy DT doesn't exist!
    [   17.477806] ssdk_dt_parse_scheduler_cfg[2494]:ERROR:cannot find port_scheduler_resource node
    [   17.486195] ssdk_dt_parse_phy_info[2537]:INFO:qcom,port_phyinfo DT doesn't exist!
    [   17.493679] ssdk_dt_parse_mdio[2574]:INFO:mdio DT exist!
    [   17.498966] ssdk_dt_parse[2697]:INFO:switchreg_base_addr: 0xc000000
    [   17.505200] ssdk_dt_parse[2698]:INFO:switchreg_size: 0x80000
    [   17.510865] ssdk_dt_parse[2707]:INFO:ess-psgmii DT exist!
    [   17.516251] ssdk_dt_parse[2764]:INFO:current dts led_source_num is 5
    [   17.522563] ssdk_plat_init start
    [   17.525972] enable ess clk
    [   17.593085] malibu_phy_api_ops_init[2505]:INFO:qca probe malibu phy driver succeeded!
    [   17.646066] regi_init[4495]:INFO:Initializing DESS!!
    [   19.402336] ssdk_switch_register[1587]:INFO:Chip version 0x1401
    [   19.407274] qca_link_polling_select[1281]:INFO:link-polling-required node does not exist
    [   19.415293] ssdk_switch_register[1610]:INFO:polling is selected
    [   19.421198] regi_init[4504]:INFO:Initializing DESS Done!!
    [   19.426668] regi_init[4528]:INFO:qca-ssdk module init succeeded!
    [   19.447326] tun: Universal TUN/TAP device driver, 1.6
    [   19.451349] tun: (C) 1999-2004 Max Krasnyansky
    [   19.466103] **********************************************************
    [   19.471838] * Driver    :NSS GMAC Driver for RTL v(3.72a)
    [   19.477021] * Version   :1.0
    [   19.479846] * Copyright :Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
    [   19.488255] **********************************************************
    [   19.520820] l2tp_core: L2TP core driver, V2.0
    [   19.525549] l2tp_netlink: L2TP netlink interface
    [   19.571165] qca-nss-drv.ko is loaded for symbol link
    [   19.577388] sit: IPv6 over IPv4 tunneling driver
    [   19.585642] nat46: module (version 8ff2ae59ec9840a7b8b45f976c51cae80abe0226) loaded.
    [   19.598315] gre: GRE over IPv4 demultiplexor driver
    [   19.604266] ip_gre: GRE over IPv4 tunneling driver
    [   19.626264] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    [   19.644204] QCA multicast snooping installed successfully
    [   19.653424] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [   22.007357] nss_lag_init[345]:LAG Manager Installed
    [   22.336503] usb 2-1: new SuperSpeed USB device number 3 using xhci-hcd
    [   22.467514] NET: Registered protocol family 24
    [   22.472565] PPTP driver version 0.8.5
    [   22.689356] :module loaded (platform - IPQ806x, build - Build_ID - 03/21/19, 15:50:09)
    [   22.697514] :qca-nss-crypto.ko is loaded for symbol link
    [   22.893572] Not a bridge device, or device not found: br-lan
    [   22.970227] crypto bench loaded - Build_ID - 03/21/19, 15:50:14
    [   22.975160] nss_crypto_register_user[151]:bf6a340c: Crypto Device is not ready
    [   23.244784] nss_macsec init success
    [   23.669438] nss is not enabled on this platform
    [   23.672940] nss_ipsecmgr_init[977]:NSS is not enabled in this platform
    [   24.077812] nss_crypto_register_user[151]:bf6a340c: Crypto Device is not ready
    [   24.268097] nss_crypto_register_user[151]:bf6a340c: Crypto Device is not ready
    [   26.297471] u32 classifier
    [   26.299148]     input device check on
    [   26.302854]     Actions configured
    [   26.697392] Mirror/redirect action on
    [   31.374298] fuse init (API version 7.23)
    [   31.581667] arp_tables: (C) 2002 David S. Miller
    [   31.589871] usbcore: registered new interface driver cdc_wdm
    [   31.598937] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   31.611395] l2tp_ppp: PPPoL2TP kernel driver, V2.0
    [   31.699841] nf_conntrack_rtsp v0.6.21 loading
    [   31.943432] nf_nat_rtsp v0.6.21 loading
    [   31.955354] PPP MPPE Compression module registered
    [   31.977865] usbcore: registered new interface driver usbserial
    [   31.982848] usbcore: registered new interface driver usbserial_generic
    [   31.989450] usbserial: USB Serial support registered for generic
    [   32.041773] xt_time: kernel timezone is -0000
    [   32.046882] usbcore: registered new interface driver cp210x
    [   32.051608] usbserial: USB Serial support registered for cp210x
    [   32.059836] usbcore: registered new interface driver ftdi_sio
    [   32.064744] usbserial: USB Serial support registered for FTDI USB Serial Device
    [   32.097784] usbcore: registered new interface driver pl2303
    [   32.102537] usbserial: USB Serial support registered for pl2303
    [   32.131802] qmi_wwan 2-1:1.1: cdc-wdm0: USB WDM device
    [   32.137715] qmi_wwan 2-1:1.1 wwan0: register 'qmi_wwan' at usb-xhci-hcd.0.auto-1, WWAN/QMI device, b6:55:d2:df:4b:19
    [   32.148259] usbcore: registered new interface driver qmi_wwan
    [   32.163164] usbcore: registered new interface driver option
    [   32.168111] usbserial: USB Serial support registered for GSM modem (1-port)
    [   32.175110] option 2-1:1.0: GSM modem (1-port) converter detected
    [   32.182683] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
    [   32.188820] option 2-1:1.2: GSM modem (1-port) converter detected
    [   32.195724] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
    [   32.202369] option 2-1:1.3: GSM modem (1-port) converter detected
    [   32.208821] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
    [   32.214822] option 2-1:1.4: GSM modem (1-port) converter detected
    [   32.222648] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
    WLAN 2 interfaces not ready, failed
    [   33.488802] Not a bridge device, or device not found: br-lan
    [   38.571649] mem_manager: module license 'unspecified' taints kernel.
    [   38.577039] Disabling lock debugging due to kernel taint
    [   38.627746] ath_dfs: Version 2.0.0
    [   38.627746] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
    [   38.650452] ath_spectral: Version 2.0.0
    [   38.650452] Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved
    [   40.508595] ath_hal: 0.9.17.1 (AR5416, AR9380, WRITE_EEPROM, 11D)
    [   40.526046] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
    [   40.543730] ath_tx99: Version 2.0
    [   40.543730] Copyright (c) 2010 Atheros Communications, Inc, All Rights Reserved
    [   40.612660] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
    [   40.657662] ath_da_pci:  (Atheros/multi-bss)
    [   41.392359] vmap allocation for size 1036288 failed: use vmalloc= to increase size.
    [   41.437813]  *********** IPQ4019  *************Wifi0 CPU frequency 250000000
    [   41.463900] hif_target_sync_ahb: Got FW signal, retries = 1hif_ahb_enable_bus: X - hif_type = 0xd, target_type = 0xbhif_config_ce: ce_init donehif_config_ce: X, ret = 0hif_set_hia: Ehif_pci_bus_configure: hif_set_hia donehif_configure_irq: Ehif_enable: X OKhif_napi_create: NAPI structures initializedhif_napi_create: NAPI id 6 created for pipe 5qca_napi_create: napi instance 32 created on pipe 4
    [   41.502044] hif_napi_event: received evnt: CONF cmd; v = 1 (state=0x1)hif_napi_event: setting configuration to ON
    __ol_ath_attach() Allocated scn dc300500
    [   41.516008] nss is not enabled on this platform
    [   41.520470] nss register id -1 offload mode enabled = 0 nss config 0 Target Type b
    [   41.528125] __ol_ath_attach: dev name wifi0
    [   41.532256] ol_ath_attach interface_id 0
    [   41.536412] ol_target_init() BMI inited.
    [   41.540162] ol_target_init() BMI Get Target Info.
    [   41.544752] Chip id: 0xb, chip version: 0x1000000
    [   41.549469]
    [   41.549469]  CE WAR Disabled
    [   41.553913] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
    [   41.559365] ol_target_init() configure Target .
    [   41.563756]
    [   41.563756]  Target Version is 1000000
    [   41.568909]
    [   41.568909]  Flash Download Address  c0000
    [   41.574525] ol_transfer_bin_file: flash data file defined
    [   41.579931] ol_transfer_bin_file[3769] Get Caldata for wifi0.
    [   41.585690] qdf_fs_read[59], Open File /tmp/wifi0.caldata SUCCESS!!file system magic:16914836super blocksize:4096inode 2287file size:12064qc98xx_verify_checksum: flash checksum passed: 0xd34c
    [   41.602652] ol_transfer_bin_file 3830: Download Flash data len 12064
    [   41.609385] Board extended Data download address: 0x0
    [   41.633571]
    [   41.633571]  Board data initialized
    [   41.637583] ol_ath_download_firmware: Download OTP, flash download ADDRESS 0xc0000
    [   41.645060]
    [   41.645060]  Selecting  OTP binary for CHIP Version -509479380
    [   41.666773] ol_transfer_bin_file 3650: downloading file 0, Download data len 4676
    [   41.689667]
    [   41.689667]  First OTP send param 8000
    [   41.698527] ol_ath_download_firmware :First OTP download and Execute is good address:0x5000 return param 4660
    [   41.707439] ol_ath_download_firmware:##Board Id 20 , CHIP Id 0
    [   41.713308] ol_ath_download_firmware: BOARDDATA DOWNLOAD TO address 0xc0000
    [   41.720208]
    [   41.720208]  wifi0: Selecting board data file name boardData_1_0_IPQ4019_DK04_2G.bin
    [   41.729392] ol_transfer_bin_file: Board Data File download to address=0xc0000 file name=IPQ4019/hw.1/boardData_1_0_IPQ4019_DK04_2G.bin
    [   41.802784] ol_transfer_bin_file 3650: downloading file 3, Download data len 12064
    [   41.809773] Board extended Data download address: 0x0
    [   41.834096] ol_ath_download_firmware: Using 0x1234 for the remainder of init
    [   41.840142]
    [   41.840142]  Selecting  OTP binary for CHIP Version -509479380
    [   41.847589] ol_transfer_bin_file 3650: downloading file 0, Download data len 4676
    [   41.871251]
    [   41.871251]  [Flash] : Ignore Module param
    [   41.875791]
    [   41.875791]  Second otp download Param 10000
    [   41.891860] ol_ath_download_firmware : Second OTP download and Execute is good, param=0x0
    [   41.899119]
    [   41.899119]  Mission mode: Firmware CHIP Version -509479380
    [   41.907471] ol_swap_seg_alloc: Successfully allocated memory for SWAP size=262144
    [   41.914452] ol_swap_wlan_memory_expansion: length:185067 size_left:185087 dma_size_left:262144 fw_temp:e1729004 fw_entry_size:185091
    [   41.925967] ol_swap_wlan_memory_expansion: dma_virt_addr :e1459000 fw_temp: e1729008 length: 185067
    [   41.935177] Swap: bytes_left to copy: fw:16; dma_page:77077
    [   41.940533] ol_swap_wlan_memory_expansion: length:0 size_left:12 dma_size_left:77077 fw_temp:e17562f7 fw_entry_size:185091
    [   41.951543] Swap: wrong length read:0
    [   41.955158] ol_swap_wlan_memory_expansion: Swap total_bytes copied: 185067 Target address 4180b0
    [   41.964150] scn=dc300500  target_write_addr=4180b0 seg_info=dd334d10
    [   41.970474] ol_transfer_swap_struct:Code swap structure successfully downloaded for bin type =2
    [   41.979219] bin_filename=IPQ4019/hw.1/athwlan.bin swap_filename=/lib/firmware/IPQ4019/hw.1/athwlan.codeswap.bin
    [   41.989461] ol_transfer_bin_file: Downloading firmware file: IPQ4019/hw.1/athwlan.bin
    [   42.163743] ol_transfer_bin_file 3650: downloading file 1, Download data len 378640
    [   43.426883] ol_target_init() Download FW done.
    [   43.430490]
    [   43.430490] ol_ath_copy_tgt_iram() iram read paddr: 0x980000 host paddr 0x87500000 Radio id 0
    [   43.605619] ol_ath_attach() WMI attached. wmi_handle de68e000
    [   43.610445] wmi_unified_register_event_handler: Event id 62 is unavailable
    [   43.617298] +htc_create ..  HIF :dc7a8000-htc_create: (0xde675000)
    [   43.623267] htc_wmi_init() HT Create . de675000
    [   43.628043] htc_wmi_init 7754 host_enable 0 nss_nwifi_offload 0
    [   43.633856] ol_ath_set_default_tgt_config : AC Minfree buffer allocation through module param (umac.ko)
    [   43.643250]  OL_ACBKMinfree : 0
    [   43.646367]  OL_ACBEMinfree : 0
    [   43.649478]  OL_ACVIMinfree : 0
    [   43.652603]  OL_ACVOMinfree : 0
    [   43.655732] hif_enable_fastpath, Enabling fastpath mode
    [   43.660779] +HWT
    [   43.662768] hif_completion_thread_startup: pipe_num:0 pipe_info:0xdc7acb78hif_completion_thread_startup: pipe_num:3 pipe_info:0xdc7acc50hif_completion_thread_startup: pipe_num:4 pipe_info:0xdc7acc98
    [   43.684761] -HWT
    [   43.685803] Startup Mode-0 set
    [   43.688807] pdev attach   (null) -1
    [   43.692334]
    [   43.692334] <=== cfg max peer id 1056 ====>
    [   43.698712] htt_peer_map_timer_init Enter pdev db4b0000 hrtimer db4b4948
    [   43.704664]
    [   43.704664]  htt_alloc_peer_map_mem : Alloc Success : host q vaddr db4f8000 paddr 9b4f8000
    [   43.714420]
    [   43.714420]  htt_alloc_peer_map_mem : Flush Interval Configured to 256 pkts
    [   43.725991] ol_txrx_pdev_attach: 2500 tx desc's allocated ; range starts from db140000
    [   43.735086] Firmware_Build_Number:50
    [   43.737760] FW wireless modes: 0x680c
    [   43.741367] num_rf_chain:0x00000002  ht_cap_info:0x0000085b  vht_cap_info:0x339959b2  vht_supp_mcs:0x0000fffa
    [   43.751274] btcoex_support 1, wlan_prio_gpio 52, coex_gpio_pin 0 0 0
    [   43.757616] wmi_service_coex_gpio 1, wmi_service_4_wire_coex_support 1, coex_version 2
    [   43.765501]
    [   43.765501] Sending Ext resource cfg: HOST PLATFORM as 0
    [   43.765501] fw_feature_bitmap as 52 to TGT
    [   43.776421] ol_ath_service_ready_event: tt_support: 1
    [   43.781383] ol_ath_service_ready_event: periodic_chan_stats: 1
    [   43.787217] ol_ath_service_ready_event: sw_cal_support_check_flag: 1
    [   43.793539] Peer Caching Enabled ; num_peers = 530, num_active_peers = 52 num_tids = 104, num_vdevs = 17
    [   43.803051] EXT NSS Supported
    [   43.805962] idx 1 req 2  num_units 1 num_unit_info 12 unit size 256 actual units 53
    [   43.813742] ol_ath_alloc_host_mem_chunk req_id 2 idx 0 num_units 53 unit_len 256,
    [   43.821159] idx 2 req 3  num_units 1 num_unit_info 12 unit size 1024 actual units 53
    [   43.829027] ol_ath_alloc_host_mem_chunk req_id 3 idx 1 num_units 53 unit_len 1024,
    [   43.836524] idx 3 req 4  num_units 1 num_unit_info 12 unit size 4096 actual units 53
    [   43.844498] ol_ath_alloc_host_mem_chunk req_id 4 idx 2 num_units 53 unit_len 4096,
    [   43.851889] idx 0 req 1  num_units 0 num_unit_info 2 unit size 744 actual units 531
    [   43.859916] ol_ath_alloc_host_mem_chunk req_id 1 idx 3 num_units 531 unit_len 744,
    [   43.867164] idx 4 req 6  num_units 35 num_unit_info 0 unit size 3072 actual units 35
    [   43.875063] ol_ath_alloc_host_mem_chunk req_id 6 idx 4 num_units 35 unit_len 3072,
    [   43.882529] idx 5 req 7  num_units 1 num_unit_info 0 unit size 6144 actual units 1
    [   43.890182] ol_ath_alloc_host_mem_chunk req_id 7 idx 5 num_units 1 unit_len 6144,
    [   43.897631] idx 6 req 5  num_units 0 num_unit_info 2 unit size 2052 actual units 531
    [   43.906414] ol_ath_alloc_host_mem_chunk req_id 5 idx 6 num_units 531 unit_len 2052,
    [   43.913067] Support not added yet for Service 91
    [   43.917693] Support not added yet for Service 92
    [   43.922265] No EXT_MSG send INIT now
    [   43.925832] chunk 0 len 13568 requested , ptr  0x9c7c4000
    [   43.931225] chunk 1 len 54272 requested , ptr  0x9b130000
    [   43.936604] chunk 2 len 217088 requested , ptr  0x9b1c0000
    [   43.942059] chunk 3 len 395064 requested , ptr  0x9b200000
    [   43.947541] chunk 4 len 107520 requested , ptr  0x9b1a0000
    [   43.952996] chunk 5 len 6144 requested , ptr  0x9c5ea000
    [   43.958307] chunk 6 len 1089612 requested , ptr  0x9ac00000
    [   43.963847] chunk 7 len 0 requested , ptr  0x87500000
    [   43.968986] Set  btcoex_enable:0
    [   43.972180] ol_ath_service_ready_event[4251] WAPI MBSSID 2
    [   43.977882] smart_log_init: Smart logging Enabled buf=dad40000 (size=65536)
    [   44.012330] Version = 16777216 3  status = 0
    [   44.015599] ol_ath_connect_htc() WMI is ready
    [   44.019968] htt_h2t_frag_desc_bank_cfg_msg - HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG sent to FW for radio ID = 0
    [   44.019980] target uses HTT version 2.2; host uses 2.2
    [   44.039879] ol_ath_attach() connect HTC.
    [   44.042856] bypasswmi : 0
    [   44.045469] ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
    [   44.057214] ol_regdmn_init_channels: !avail mode 0x680c (0x2) flags 0x2150
    [   44.064041] ol_regdmn_init_channels: !avail mode 0x680c (0x1) flags 0x140
    [   44.070854] ol_regdmn_init_channels: !avail mode 0x680c (0x20) flags 0xd0
    [   44.077594] ol_regdmn_init_channels: !avail mode 0x680c (0x40) flags 0x150
    [   44.084475] ol_regdmn_init_channels: !avail mode 0x680c (0x1000) flags 0x10100
    [   44.091655] ol_regdmn_init_channels: !avail mode 0x680c (0x8000) flags 0x20100
    [   44.098859] ol_regdmn_init_channels: !avail mode 0x680c (0x10000) flags 0x40100
    [   44.106140] ol_regdmn_init_channels: !avail mode 0x680c (0x20000) flags 0x100100
    [   44.113529] ol_regdmn_init_channels: !avail mode 0x680c (0x40000) flags 0x200100
    [   44.120906] ol_regdmn_init_channels: !avail mode 0x680c (0x80000) flags 0x400100
    [   44.128284] ol_regdmn_init_channels: !avail mode 0x680c (0x100000) flags 0x800100
    [   44.135741] ol_regdmn_init_channels: !avail mode 0x680c (0x200000) flags 0x4000100
    [   44.143302] ol_regdmn_init_channels: !avail mode 0x680c (0x400000) flags 0x8000100
    [   44.151080] OL Resmgr Init-ed
    [   44.153955] ieee80211_bsteering_attach: Band steering initialized
    [   44.159949] acfg_attach: 3013: Netlink socket created:de7ff800
    [   44.165726] SPECTRAL : get_capability not registered
    [   44.170650] HAL_CAP_PHYDIAG : Capable
    [   44.174281] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237)
    [   44.182361] SPECTRAL : get_capability not registered
    [   44.187308] HAL_CAP_RADAR   : Capable
    [   44.190948] SPECTRAL : Need to fix the capablity check for SPECTRAL
    [   44.190948]  (spectral_attach : 242)
    [   44.200765] SPECTRAL : get_capability not registered
    [   44.205701] HAL_CAP_SPECTRAL_SCAN : Capable
    [   44.209879] SPECTRAL : get_tsf64 not registered
    [   44.214396] spectral_init_netlink 78 NULL SKB
    [   44.218749] Green-AP : Green-AP : Attached
    [   44.218749]
    [   44.224282] Green-AP : Attached
    [   44.227416] rate power table override is only supported for AR98XX
    [   44.233629] ol_ath_smart_ant_attach: Hardware doest not support Smart Antenna.
    [   44.240844] ol_if_dfs_attach: called; ptr=db1f998c, radar_info=defb9ba8
    [   44.247381] dfs_attach: event log enabled by default
    [   44.253269] >>>> CB Set   (null)
    [   44.255867] ol_ath_attach() UMAC attach .
    [   44.259640]
    [   44.259640]  BURSTING enabled by default
    [   44.265067] ol_ath_attach: Set global_ic[1] ..ptr:bfcd35b8
    [   44.270522] ath_lowi_if_netlink_init LOWI Netlink successfully created
    [   44.277016] osif_wrap_attach:444 osif wrap attached
    [   44.281854] osif_wrap_devt_init:405 osif wrap dev table init done
    [   44.287923]  Wrap Attached: Wrap_com =dcbaac00 ic->ic_wrap_com=dcbaac00 &wrap_com->wc_devt=dcbaac00
    [   44.297036] __ol_ath_attach: needed_headroom reservation 60
    [   44.304042] ol_ath_thermal_mitigation_attach: --
    [   44.307707] ol_ath_ahb_probe num_radios=0, wifi_radios[0].sc = dc300500 wifi_radio_type = 2
    [   44.316017] ath_sysfs_diag_init: diag_fsattr
    [   44.320818]  *********** IPQ4019  *************Wifi1 CPU frequency 250000000
    [   44.347517] hif_target_sync_ahb: Got FW signal, retries = 1hif_ahb_enable_bus: X - hif_type = 0xd, target_type = 0xbhif_config_ce: ce_init donehif_config_ce: X, ret = 0hif_set_hia: Ehif_pci_bus_configure: hif_set_hia donehif_configure_irq: Ehif_enable: X OKhif_napi_create: NAPI structures initializedhif_napi_create: NAPI id 6 created for pipe 5qca_napi_create: napi instance 32 created on pipe 4
    [   44.385695] hif_napi_event: received evnt: CONF cmd; v = 1 (state=0x1)hif_napi_event: setting configuration to ON
    __ol_ath_attach() Allocated scn db300500
    [   44.399680] nss is not enabled on this platform
    [   44.404100] nss register id -1 offload mode enabled = 0 nss config 0 Target Type b
    [   44.411754] __ol_ath_attach: dev name wifi1
    [   44.415909] ol_ath_attach interface_id 1
    [   44.420071] ol_target_init() BMI inited.
    [   44.423821] ol_target_init() BMI Get Target Info.
    [   44.428423] Chip id: 0xb, chip version: 0x1000000
    [   44.433089]
    [   44.433089]  CE WAR Disabled
    [   44.437581] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
    [   44.442994] ol_target_init() configure Target .
    [   44.447428]
    [   44.447428]  Target Version is 1000000
    [   44.452533]
    [   44.452533]  Flash Download Address  c0000
    [   44.458190] ol_transfer_bin_file: flash data file defined
    [   44.463561] ol_transfer_bin_file[3769] Get Caldata for wifi1.
    [   44.469354] qdf_fs_read[59], Open File /tmp/wifi1.caldata SUCCESS!!file system magic:16914836super blocksize:4096inode 1075file size:12064qc98xx_verify_checksum: flash checksum passed: 0x318c
    [   44.486325] ol_transfer_bin_file 3830: Download Flash data len 12064
    [   44.493014] Board extended Data download address: 0x0
    [   44.517244]
    [   44.517244]  Board data initialized
    [   44.521228] ol_ath_download_firmware: Download OTP, flash download ADDRESS 0xc0000
    [   44.528757]
    [   44.528757]  Selecting  OTP binary for CHIP Version -509479380
    [   44.536188] ol_transfer_bin_file 3650: downloading file 0, Download data len 4676
    [   44.559902]
    [   44.559902]  First OTP send param 8000
    [   44.568764] ol_ath_download_firmware :First OTP download and Execute is good address:0x5400 return param 4660
    [   44.577663] ol_ath_download_firmware:##Board Id 21 , CHIP Id 0
    [   44.583554] ol_ath_download_firmware: BOARDDATA DOWNLOAD TO address 0xc0000
    [   44.590429]
    [   44.590429]  wifi1: Selecting board data file name boardData_1_0_IPQ4019_DK04_5G.bin
    [   44.599625] ol_transfer_bin_file: Board Data File download to address=0xc0000 file name=IPQ4019/hw.1/boardData_1_0_IPQ4019_DK04_5G.bin
    [   44.611961] ol_transfer_bin_file 3650: downloading file 3, Download data len 12064
    [   44.619613] Board extended Data download address: 0x0
    [   44.636992] [wifi0] FWLOG: [68457] WAL_DBGID_RST_STATS ( 0x1, 0x1, 0x96c, 0x0 )
    [   44.643286] [wifi0] FWLOG: [68497] WAL_DBGID_TX_AC_BUFFER_SET ( 0x3, 0x1e, 0x94c, 0x94c, 0x0 )
    [   44.651879] [wifi0] FWLOG: [68498] WAL_DBGID_TX_AC_BUFFER_SET ( 0x12[   44.657727] ol_ath_download_firmware: Using 0x1234 for the remainder of init
    [   44.657732]
    [   44.657732]  Selecting  OTP binary for CHIP Version -509479380
    [   44.657876] ol_transfer_bin_file 3650: downloading file 0, Download data len 4676
    
    [   44.679852] , 0x1e, 0x94c, 0x94c, 0x0 )
    [   44.683802] [wifi0] FWLOG: [68498] WAL_DBGID_TX_AC_BUFFER_SET ( 0x45, 0x1e, 0x94c, 0x94c, 0x0 )
    [   44.692481] [wifi0] FWLOG: [68498] WAL_DBGID_TX_AC_BUFFER_SET ( 0x67, 0x1e, 0x94c, 0x94c, 0x0 )
    [   44.701184] [wifi0] FWLOG: [68643] WAL_DBGID_PDEV_INFO_PRINT ( [   44.703198]
    [   44.703198]  [Flash] : Ignore Module param
    [   44.703204]
    [   44.703204]  Second otp download Param 10000
    
    [   44.718300] 0x3aol_ath_download_firmware : Second OTP download and Execute is good, param=0x0
    [   44.718313]
    [   44.718313]  Mission mode: Firmware CHIP Version -509479380
    [   44.719025] ol_swap_seg_alloc: Successfully allocated memory for SWAP size=262144
    [   44.719423] ol_swap_wlan_memory_expansion: length:185067 size_left:185087 dma_size_left:262144 fw_temp:e2481004 fw_entry_size:185091
    [   44.719430] ol_swap_wlan_memory_expansion: dma_virt_addr :e220d000 fw_temp: e2481008 length: 185067
    [   44.719649] Swap: bytes_left to copy: fw:16; dma_page:77077
    [   44.719657] ol_swap_wlan_memory_expansion: length:0 size_left:12 dma_size_left:77077 fw_temp:e24ae2f7 fw_entry_size:185091
    [   44.719660] Swap: wrong length read:0
    [   44.719666] ol_swap_wlan_memory_expansion: Swap total_bytes copied: 185067 Target address 4180b0
    [   44.720143] scn=db300500  target_write_addr=4180b0 seg_info=de7cdb10
    [   44.720152] ol_transfer_swap_struct:Code swap structure successfully downloaded for bin type =2
    [   44.720157] bin_filename=IPQ4019/hw.1/athwlan.bin swap_filename=/lib/firmware/IPQ4019/hw.1/athwlan.codeswap.bin
    [   44.720197] ol_transfer_bin_file: Downloading firmware file: IPQ4019/hw.1/athwlan.bin
    [   44.721056] ol_transfer_bin_file 3650: downloading file 1, Download data len 378640
    [   44.832449] , 0xa10, 0x160, 0x0, 0x12 )
    [   44.836258] [wifi0] FWLOG: [68643] WAL_DBGID_PDEV_INFO_PRINT ( 0x3a, 0x0, 0x12, 0x10, 0x12 )
    [   46.077431] ol_target_init() Download FW done.
    [   46.081045]
    [   46.081045] ol_ath_copy_tgt_iram() iram read paddr: 0x980000 host paddr 0x87700000 Radio id 1
    [   46.256153] ol_ath_attach() WMI attached. wmi_handle db4fc000
    [   46.260985] wmi_unified_register_event_handler: Event id 62 is unavailable
    [   46.267832] +htc_create ..  HIF :dad60000-htc_create: (0xde677800)
    [   46.273808] htc_wmi_init() HT Create . de677800
    [   46.278579] htc_wmi_init 7754 host_enable 0 nss_nwifi_offload 0
    [   46.284400] ol_ath_set_default_tgt_config : AC Minfree buffer allocation through module param (umac.ko)
    [   46.293785]  OL_ACBKMinfree : 0
    [   46.296903]  OL_ACBEMinfree : 0
    [   46.300019]  OL_ACVIMinfree : 0
    [   46.303142]  OL_ACVOMinfree : 0
    [   46.306273] hif_enable_fastpath, Enabling fastpath mode
    [   46.311315] +HWT
    [   46.313307] hif_completion_thread_startup: pipe_num:0 pipe_info:0xdad64b78hif_completion_thread_startup: pipe_num:3 pipe_info:0xdad64c50hif_completion_thread_startup: pipe_num:4 pipe_info:0xdad64c98
    [   46.335327] -HWT
    [   46.336411] Startup Mode-0 set
    [   46.339350] pdev attach   (null) -1
    [   46.342906]
    [   46.342906] <=== cfg max peer id 1056 ====>
    [   46.349299] htt_peer_map_timer_init Enter pdev daad0000 hrtimer daad4948
    [   46.355243]
    [   46.355243]  htt_alloc_peer_map_mem : Alloc Success : host q vaddr dc3e6000 paddr 9c3e6000
    [   46.364982]
    [   46.364982]  htt_alloc_peer_map_mem : Flush Interval Configured to 256 pkts
    [   46.376597] ol_txrx_pdev_attach: 2500 tx desc's allocated ; range starts from da760000
    [   46.385674] Firmware_Build_Number:50
    [   46.388349] FW wireless modes: 0x1f9001
    [   46.392130] num_rf_chain:0x00000002  ht_cap_info:0x0000085b  vht_cap_info:0x339959b2  vht_supp_mcs:0x0000fffa
    [   46.402026] wmi_service_coex_gpio 0, wmi_service_4_wire_coex_support 0, coex_version 0
    [   46.409939]
    [   46.409939] Sending Ext resource cfg: HOST PLATFORM as 0
    [   46.409939] fw_feature_bitmap as 50 to TGT
    [   46.420841] ol_ath_service_ready_event: tt_support: 1
    [   46.425808] ol_ath_service_ready_event: periodic_chan_stats: 1
    [   46.431642] ol_ath_service_ready_event: sw_cal_support_check_flag: 1
    [   46.437978] Peer Caching Enabled ; num_peers = 530, num_active_peers = 52 num_tids = 104, num_vdevs = 17
    [   46.447479] EXT NSS Supported
    [   46.450389] idx 1 req 2  num_units 1 num_unit_info 12 unit size 256 actual units 53
    [   46.458162] ol_ath_alloc_host_mem_chunk req_id 2 idx 0 num_units 53 unit_len 256,
    [   46.465570] idx 2 req 3  num_units 1 num_unit_info 12 unit size 1024 actual units 53
    [   46.473456] ol_ath_alloc_host_mem_chunk req_id 3 idx 1 num_units 53 unit_len 1024,
    [   46.480950] idx 3 req 4  num_units 1 num_unit_info 12 unit size 4096 actual units 53
    [   46.488943] ol_ath_alloc_host_mem_chunk req_id 4 idx 2 num_units 53 unit_len 4096,
    [   46.496299] idx 0 req 1  num_units 0 num_unit_info 2 unit size 744 actual units 531
    [   46.504340] ol_ath_alloc_host_mem_chunk req_id 1 idx 3 num_units 531 unit_len 744,
    [   46.511592] idx 4 req 6  num_units 35 num_unit_info 0 unit size 3072 actual units 35
    [   46.519654] ol_ath_alloc_host_mem_chunk req_id 6 idx 4 num_units 35 unit_len 3072,
    [   46.526971] idx 5 req 7  num_units 1 num_unit_info 0 unit size 6144 actual units 1
    [   46.534610] ol_ath_alloc_host_mem_chunk req_id 7 idx 5 num_units 1 unit_len 6144,
    [   46.542064] idx 6 req 5  num_units 0 num_unit_info 2 unit size 2052 actual units 531
    [   46.550850] ol_ath_alloc_host_mem_chunk req_id 5 idx 6 num_units 531 unit_len 2052,
    [   46.557521] Support not added yet for Service 91
    [   46.562090] Support not added yet for Service 92
    [   46.566710] No EXT_MSG send INIT now
    [   46.570261] chunk 0 len 13568 requested , ptr  0x9ad54000
    [   46.575634] chunk 1 len 54272 requested , ptr  0x9a750000
    [   46.581033] chunk 2 len 217088 requested , ptr  0x9a7c0000
    [   46.586500] chunk 3 len 395064 requested , ptr  0x9a000000
    [   46.591954] chunk 4 len 107520 requested , ptr  0x9a080000
    [   46.597501] chunk 5 len 6144 requested , ptr  0x9c384000
    [   46.602717] chunk 6 len 1089612 requested , ptr  0x9a200000
    [   46.608297] chunk 7 len 0 requested , ptr  0x87700000
    [   46.613375] ol_ath_service_ready_event[4251] WAPI MBSSID 2
    [   46.619034] smart_log_init: Smart logging Enabled buf=da340000 (size=65536)
    [   46.657929] Version = 16777216 3  status = 0
    [   46.661194] ol_ath_connect_htc() WMI is ready
    [   46.665553] htt_h2t_frag_desc_bank_cfg_msg - HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG sent to FW for radio ID = 1
    [   46.665567] target uses HTT version 2.2; host uses 2.2
    [   46.685485] ol_ath_attach() connect HTC.
    [   46.688472] bypasswmi : 0
    [   46.691075] ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
    [   46.702816] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
    [   46.709868] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
    [   46.716689] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
    [   46.723535] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
    [   46.730488] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
    [   46.737519] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
    [   46.744803] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
    [   46.752189] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
    [   46.759673] Add VHT80 channel: 5210
    [   46.763030] Add VHT80 channel: 5290
    [   46.766512] Add VHT80 channel: 5530
    [   46.769972] Add VHT80 channel: 5610
    [   46.773442] Add VHT80 channel: 5690
    [   46.776927] Add VHT80 channel: 5775
    [   46.780419] Skipping VHT80 channel 5825
    [   46.784213] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x200000) flags 0x4000100
    [   46.791948] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x400000) flags 0x8000100
    [   46.800714] freq=58
    [   46.801869] freq=106
    [   46.804124] freq=122
    [   46.806406] freq=138
    [   46.808676] OL Resmgr Init-ed
    [   46.811750] ieee80211_bsteering_attach: Band steering initialized
    [   46.817697] acfg_attach: Offload using existing sock de7ff800
    [   46.823436] SPECTRAL : get_capability not registered
    [   46.828357] HAL_CAP_PHYDIAG : Capable
    [   46.831993] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237)
    [   46.840074] SPECTRAL : get_capability not registered
    [   46.845012] HAL_CAP_RADAR   : Capable
    [   46.848669] SPECTRAL : Need to fix the capablity check for SPECTRAL
    [   46.848669]  (spectral_attach : 242)
    [   46.858474] SPECTRAL : get_capability not registered
    [   46.863413] HAL_CAP_SPECTRAL_SCAN : Capable
    [   46.867592] SPECTRAL : get_tsf64 not registered
    [   46.872100] spectral_init_netlink 78 NULL SKB
    [   46.876451] Green-AP : Green-AP : Attached
    [   46.876451]
    [   46.881990] Green-AP : Attached
    [   46.885115] rate power table override is only supported for AR98XX
    [   46.891349] ol_ath_smart_ant_attach: Hardware doest not support Smart Antenna.
    [   46.898552] ol_if_dfs_attach: called; ptr=da7f998c, radar_info=defb9ba8
    [   46.905086] dfs_attach: event log enabled by default
    [   46.911047] >>>> CB Set   (null)
    [   46.914029] ol_ath_attach() UMAC attach .
    [   46.917353]
    [   46.917353]  BURSTING enabled by default
    [   46.922786] ol_ath_attach: Set global_ic[2] ..ptr:bfcd35b8
    [   46.928205] ath_lowi_if_netlink_init Incremented LOWI netlink ref count: 2
    [   46.935043] osif_wrap_attach:444 osif wrap attached
    [   46.939931] osif_wrap_devt_init:405 osif wrap dev table init done
    [   46.945974]  Wrap Attached: Wrap_com =da062200 ic->ic_wrap_com=da062200 &wrap_com->wc_devt=da062200
    [   46.955097] __ol_ath_attach: needed_headroom reservation 60
    [   46.962126] ol_ath_thermal_mitigation_attach: --
    [   46.965755] ol_ath_ahb_probe num_radios=1, wifi_radios[1].sc = db300500 wifi_radio_type = 2
    [   46.974144] ath_sysfs_diag_init: diag_fsattr
    [   46.978852] ath_ol_pci:  (Atheros/multi-bss)
    [   46.993780]  pktlog_init: Initializing Pktlog for AR900B, pktlog_hdr_size = 16
    [   47.000017] +hif_update_pipe_callback pipeid 8
    [   47.004407] -hif_update_pipe_callback
    [   47.007140] Switching to Tx Mode-1 Threshold 280
    [   47.012707]  pktlog_init: Initializing Pktlog for AR900B, pktlog_hdr_size = 16
    [   47.019877] +hif_update_pipe_callback pipeid 8
    [   47.024286] -hif_update_pipe_callback
    [   47.038147] __sa_init_module
    No Direct-Attach chipsets found.
    [   47.093899] Removing athdebug proc file
    [   47.096763] ath_dev: driver unloaded
    [   47.133842] ath_tx99: driver unloaded
    [   47.183833] ath_rate_atheros: driver unloaded
    [   47.233757] ath_hal: driver unloaded
    [   47.287548] [wifi1] FWLOG: [71167] WAL_DBGID_RST_STATS ( 0x1, 0x1, 0x1464, 0x0 )
    [   47.293909] [wifi1] FWLOG: [71208] WAL_DBGID_TX_AC_BUFFER_SET ( 0x3, 0x1e, 0x94c, 0x94c, 0x0 )
    [   47.302504] [wifi1] FWLOG: [71208] WAL_DBGID_TX_AC_BUFFER_SET ( 0x12, 0x1e, 0x94c, 0x94c, 0x0 )
    [   47.311185] [wifi1] FWLOG: [71208] WAL_DBGID_TX_AC_BUFFER_SET ( 0x45, 0x1e, 0x94c, 0x94c, 0x0 )
    [   47.319866] [wifi1] FWLOG: [71208] WAL_DBGID_TX_AC_BUFFER_SET ( 0x67, 0x1e, 0x94c, 0x94c, 0x0 )
    [   47.328546] [wifi1] FWLOG: [71358] WAL_DBGID_PDEV_INFO_PRINT ( 0x3a, 0xa10, 0x160, 0x10, 0x0 )
    [   47.337144] [wifi1] FWLOG: [71358] WAL_DBGID_PDEV_INFO_PRINT ( 0x3a, 0x10, 0x0, 0x10, 0x12 )
    
    (none) login: [   48.687519] random: jshn: uninitialized urandom read (4 bytes read, 111 bits of entropy available)
    [   48.753041] random: ubusd: uninitialized urandom read (4 bytes read, 111 bits of entropy available)
    [   48.844874] Unsafe core_pattern used with suid_dumpable=2. Pipe handler or fully qualified core dump path required.
    [   49.652756] Switching to Tx Mode-1 Threshold 280
    [   52.066448] ECM init
    [   52.067675] ECM database jhash random seed: 0xaa78b273
    [   52.074588] ECM init complete
    [   52.966023] Not a bridge device, or device not found: br-lan
    mac80211 qcawifi disable radio wifi0
    mac80211 qcawifi disable radio wifi1
    mac80211 qcawifi: enable radio wifi0
    [   53.544667] isCountryCodeValid: EEPROM regdomain 0x0
    [   53.548757] ol_regdmn_init_channels: !avail mode 0x680c (0x2) flags 0x2150
    [   53.555500] ol_regdmn_init_channels: !avail mode 0x680c (0x1) flags 0x140
    [   53.562660] ol_regdmn_init_channels: !avail mode 0x680c (0x20) flags 0xd0
    [   53.569205] ol_regdmn_init_channels: !avail mode 0x680c (0x40) flags 0x150
    [   53.575947] ol_regdmn_init_channels: !avail mode 0x680c (0x1000) flags 0x10100
    [   53.583666] ol_regdmn_init_channels: !avail mode 0x680c (0x8000) flags 0x20100
    [   53.590465] ol_regdmn_init_channels: !avail mode 0x680c (0x10000) flags 0x40100
    [   53.597788] ol_regdmn_init_channels: !avail mode 0x680c (0x20000) flags 0x100100
    [   53.604993] ol_regdmn_init_channels: !avail mode 0x680c (0x40000) flags 0x200100
    [   53.612580] ol_regdmn_init_channels: !avail mode 0x680c (0x80000) flags 0x400100
    [   53.620133] ol_regdmn_init_channels: !avail mode 0x680c (0x100000) flags 0x800100
    [   53.627362] ol_regdmn_init_channels: !avail mode 0x680c (0x200000) flags 0x4000100
    [   53.634751] ol_regdmn_init_channels: !avail mode 0x680c (0x400000) flags 0x8000100
    [   53.671701] device eth1 entered promiscuous mode
    [   53.679725] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
    [   53.695750] set TXBF_SND_PERIOD: value 100 wmi_status 0
    [   53.731822]  Disconnect_timeout value entered:10
    [   53.757482] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   53.772222]  reconfiguration_timeout value entered:60
    [   54.114871] wlan_vap_create : enter. devhandle=0xdc300500, opmode=IEEE80211_M_HOSTAP, flags=0x1
    [   54.122719] send_vdev_create_cmd_non_tlv: ID = 0 Type = 1, Subtype = 0 VAP Addr = 5c:ff:35:95:2e:ed:
    [   54.131889] ieee80211_mbo_vattach:MBO Initialized
    [   54.136499] ieee80211_oce_vattach: OCE Initialized
    [   54.141591] wlan_vap_create : exit. devhandle=0xdc300500, vap=0xd95f0000, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    [   54.151475] __ieee80211_smart_ant_init: Smart Antenna is not supported
    [   54.158049] Enabling TX checksum bit for the vap ath0 features 4000
    [   54.164311] Enabling SG bit for the vap ath0 features 4000
    [   54.169977] Enabling SG bit for the vap ath0 features 4000
    [   54.175420] Enabling TSO bit for the vap ath0 features 4000
    [   54.181152] Enabling LRO bit for the vap ath0 features 4000
    [   54.188019] VAP device ath0 created osifp: (d9662500) os_if: (d95f0000)
    [   54.198677] 8021q: adding VLAN 0 to HW filter on device ath0
    [   54.207137] device ath0 entered promiscuous mode
    [   54.211911] br-lan: port 2(ath0) entered forwarding state
    [   54.216445] br-lan: port 2(ath0) entered forwarding state
    [   54.223472] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
    [   54.252756] siwfreq
    [   54.253839] Set freq vap 0 stop send + d95f0000
    [   54.259624] Set freq vap 0 stop send -d95f0000
    [   54.286447] Set wait done --d95f0000
    [   54.373227] [DEBUG] vap-0(ath0):set SIOC80211NWID, 16 characters
    [   54.378597]
    [   54.378597]  DES SSID SET=NCP-HG100-2eed-b
    [   54.407168] Sending SCAN START cmd
    [   54.411236] netlink: 12 bytes leftover after parsing attributes in process `ip'.
    [   54.417682] netlink: 12 bytes leftover after parsing attributes in process `ip'.
    [   54.547636] ess_edma c080000.edma: eth0: GMAC Link is up with phy_speed=1000
    [   54.553707] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   54.632349] [wifi0] FWLOG: [78369] WAL_DBGID_PDEV_INFO_PRINT ( 0x88, 0xa50, 0x540, 0x0, 0x42 )
    [   54.639938] [wifi0] FWLOG: [78409] WAL_DBGID_RST_STATS ( 0x2, 0x2, 0x96c
    [   54.656852] br-lan: port 1(eth1) entered forwarding state
    [   54.661514] br-lan: port 1(eth1) entered forwarding state
    [   54.666144] , 0x0 )
    [   54.666172] [wifi0] FWLOG: [79157] WAL channel change freq=2412, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   55.086469]  ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
    [   55.093596] [UNSPECIFIED] ol_scan_unregister_event_handler: Failed to unregister evhandler=bfc03548 arg=dad20000
    [   55.093596]
    [   55.106122] osif_vap_stop: Scan in progress.. Cancelling it. vap: 0xd95f0000
    [   55.115405] send_vdev_down_cmd_non_tlv for vap 0
    [   55.121033] br-lan: port 2(ath0) entered disabled state
    [   55.176944]  DEVICE IS DOWN ifname=ath0
    [   55.179882]  DEVICE IS DOWN ifname=ath0
    [   55.436827] Sending SCAN START cmd
    [   55.439547] br-lan: port 2(ath0) entered forwarding state
    [   55.444683] br-lan: port 2(ath0) entered forwarding state
    [   55.450182] 8021q: adding VLAN 0 to HW filter on device ath0
    [   55.631816] [wifi0] FWLOG: [79472] WAL channel change freq=2417, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   55.639587] [wifi0] FWLOG: [79786] WAL channel change freq=2422, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   55.648230] [wifi0] FWLOG: [79881] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   55.654671] [wifi0] FWLOG: [79881] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   55.661183] [wifi0] FWLOG: [80178] WAL_DBGID_SECURITY_ENCR_EN (  )
    [   55.667347] [wifi0] FWLOG: [80178] WAL_DBGID_SECURITY_MCAST_KEY_SET ( 0x1 )
    [   55.674293] [wifi0] FWLOG: [80210] WAL channel change freq=2412, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   55.813339] __mc_netlink_receive: Disable bridge snooping!
    mac80211 qcawifi: enable radio wifi1
    [   56.193188] isCountryCodeValid: EEPROM regdomain 0x0
    [   56.197429] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
    [   56.204259] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
    [   56.211192] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
    [   56.218096] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
    [   56.224870] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
    [   56.231972] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
    [   56.239291] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
    [   56.246595] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
    [   56.254014] Add VHT80 channel: 5210
    [   56.257500] Add VHT80 channel: 5290
    [   56.260858] Add VHT80 channel: 5530
    [   56.264408] Add VHT80 channel: 5610
    [   56.267872] Skipping VHT80 channel 5660
    [   56.271603] Skipping VHT80 channel 5680
    [   56.275422] Skipping VHT80 channel 5700
    [   56.279321] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x200000) flags 0x4000100
    [   56.287075] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x400000) flags 0x8000100
    [   56.295970] freq=58
    [   56.297222] freq=106
    [   56.299391] freq=122
    [   56.344202] set TXBF_SND_PERIOD: value 100 wmi_status 0
    [   56.377003]  Disconnect_timeout value entered:10
    [   56.387592]  reconfiguration_timeout value entered:60
    [   56.592463] wlan_vap_create : enter. devhandle=0xdb300500, opmode=IEEE80211_M_HOSTAP, flags=0x1
    [   56.601848] send_vdev_create_cmd_non_tlv: ID = 0 Type = 1, Subtype = 0 VAP Addr = 5c:ff:35:95:2e:ee:
    [   56.610394] ieee80211_mbo_vattach:MBO Initialized
    [   56.615552] ieee80211_oce_vattach: OCE Initialized
    [   56.620032] wlan_vap_create : exit. devhandle=0xdb300500, vap=0xd8530000, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    [   56.630140] __ieee80211_smart_ant_init: Smart Antenna is not supported
    [   56.636490] [wifi0] FWLOG: [80525] WAL channel change freq=2417, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   56.644947] [wifi0]
    [   56.647722] Enabling TX checksum bit for the vap ath1 features 4000
    [   56.653526] FWLOG: [80839] WAL channel change freq=2422, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   56.656359] br-lan: port 1(eth1) entered forwarding state
    [   56.662343] Enabling SG bit for the vap ath1 features 4000
    [   56.662348] Enabling SG bit for the vap ath1 features 4000
    [   56.662352] Enabling TSO bit for the vap ath1 features 4000
    [   56.662356] Enabling LRO bit for the vap ath1 features 4000
    [   56.666978] VAP device ath1 created osifp: (d8529500) os_if: (d8530000)
    [   56.675042] 8021q: adding VLAN 0 to HW filter on device ath1
    [   56.678391] device ath1 entered promiscuous mode
    [   56.678780] br-lan: port 3(ath1) entered forwarding state
    [   56.678850] br-lan: port 3(ath1) entered forwarding state
    [   56.715263] siwfreq
    [   56.715276] Set freq vap 0 stop send + d8530000
    [   56.715468] Set freq vap 0 stop send -d8530000
    [   56.727908] [wifi0] FWLOG: [81153] WAL channel change freq=2427, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   56.736385] Set wait done --d8530000
    [   56.808026] [DEBUG] vap-0(ath1):set SIOC80211NWID, 16 characters
    [   56.813009]
    [   56.813009]  DES SSID SET=NCP-HG100-2eee-a
    [   56.847161] Sending SCAN START cmd
    [   57.282691] [wifi1] FWLOG: [81086] WAL_DBGID_PDEV_INFO_PRINT ( 0x88, 0xa50, 0x540, 0x40, 0x0 )
    [   57.290271] [wifi1] FWLOG: [81087] WAL_DBGID_PDEV_INFO_PRINT ( 0x88, 0x40, 0x0, 0x40, 0x0 )
    [   57.298604] [wifi1] FWLOG: [81131] WAL_DBGID_RST_STATS ( 0x2, 0x2, 0x1464, 0x0 )
    [   57.306054] [wifi1]
    [   57.308332]  ieee80211_ioctl_siwmode: imr.ifm_active=66176, new mode=3, valid=1
    [   57.315875] [UNSPECIFIED] ol_scan_unregister_event_handler: Failed to unregister evhandler=bfc03548 arg=da320000
    [   57.315875]
    [   57.327547] FWLOG: [81656] WAL channel change freq=5180, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   57.335161] [wifi1] FWLOG: [81970] WAL channel change freq=5200, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   57.339237] osif_vap_stop: Scan in progress.. Cancelling it. vap: 0xd8530000
    [   57.343937] send_vdev_down_cmd_non_tlv for vap 0
    [   57.370931] br-lan: port 3(ath1) entered disabled state
    [   57.383177]  DEVICE IS DOWN ifname=ath1
    [   57.386267]  DEVICE IS DOWN ifname=ath1
    [   57.436359] br-lan: port 2(ath0) entered forwarding state
    [   57.628095] Sending SCAN START cmd
    [   57.633038] [wifi0] FWLOG: [81467] WAL channel change freq=2432, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   57.640775] [wifi0] FWLOG: [81782] [   57.643713] br-lan: port 3(ath1) entered forwarding state
    [   57.643806] br-lan: port 3(ath1) entered forwarding state
    [   57.644053] 8021q: adding VLAN 0 to HW filter on device ath1
    
    [   57.660491] WAL channel change freq=2437, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   57.667320] [wifi0] FWLOG: [82096] WAL channel change freq=2442, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   57.675954] [wifi0] FWLOG: [82409] WAL channel change freq=2447, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   58.282218] [wifi1] FWLOG: [82161] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   58.287718] [wifi1] FWLOG: [82161] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   58.294223] [wifi1] FWLOG: [82423] WAL_DBGID_SECURITY_ENCR_EN (  )
    [   58.300901] [wifi1] FWLOG: [82423] WAL_DBGID_SECURITY_MCAST_KEY_SET ( 0x1 )
    [   58.307333] [wifi1] FWLOG: [82456] WAL channel change freq=5180, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   58.316089] [wifi1] FWLOG: [82770] WAL channel change freq=5200, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   58.324849] [wifi1] FWLOG: [83085] WAL channel change freq=5220, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   58.630776] [wifi0] FWLOG: [82724] WAL channel change freq=2452, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   58.638761] [wifi0] FWLOG: [83038] WAL channel change freq=2457, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   58.648406] [wifi0] FWLOG: [83352] WAL channel change freq=2462, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   58.655869] __mc_netlink_receive: Enable bridge snooping!
    [   58.699865] random: nonblocking pool is initialized
    [   59.103647] mcu 1-0015: Firmware current version =25
    [   59.107661] mcu 1-0015: Firmware bin file version =25
    [   59.281701] [wifi1] FWLOG: [83399] WAL channel change freq=5240, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   59.289455] [wifi1] FWLOG: [83713] WAL channel change freq=5260, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   59.298142] [wifi1] FWLOG: [84027] WAL channel change freq=5280, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   59.425930] send_vdev_down_cmd_non_tlv for vap 0
    [   59.429865] OL vap_start +
    [   59.432223] VDEV START
    [   59.434588] OL vap_start -
    [   59.437352] ol_ath_vap_set_param: Now supported MGMT RATE is 1000(kbps) and rate code: 0x43
    [   59.636360] br-lan: port 3(ath1) entered forwarding state
    [   59.645438] ol_vdev_start_resp_ev for vap 0 (de68e000)
    [   59.649608] send_wmm_update_cmd_non_tlv:
    [   59.653672] su bfee 1 mu bfee 0 su bfer 1 mu bfer 1 impl bf 0 sounding dim 1
    [   59.660535] send_vdev_up_cmd_non_tlv for vap 0
    [   59.664937] Beacon mode set to staggered. Cannot enable FD
    [   59.670398] __ieee80211_smart_ant_init: Smart Antenna is not supported
    [   59.677335] [wifi0] FWLOG: [83666] WAL channel change freq=2467, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   59.685656] [wifi0] FWLOG: [83981] WAL channel change freq=2472, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   59.694567] [wifi0] FWLOG: [84298] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   59.700851] [wifi0] FWLOG: [84298] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   59.707466] [wifi0] FWLOG: [84303] vap-0 VDEV_MGR_VDEV_START ( 0x985, 0x2, 0x0, 0x0 )
    [   59.715171] [wifi0] FWLOG: [84303] WAL channel change freq=2437, mode=5 flags=0 rx_ok=1 tx_ok=1
    [   59.724045] [wifi0] FWLOG: [84303] WAL_DBGID_RST_STATS ( 0x2, 0x80, 0x985, 0x1 )
    [   60.282813] [wifi1] FWLOG: [84342] WAL channel change freq=5300, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   60.290723] [wifi1] FWLOG: [84656] WAL channel change freq=5320, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   60.301479] [wifi1] FWLOG: [84969] WAL channel change freq=5500, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   60.644956] [wifi0] FWLOG: [84519] VDEV_MGR_VDEV_START_RESP ( 0x0 )
    [   60.650201] [wifi0] FWLOG: [84540] VDEV_MGR_HP_START_TIME ( 0x0, 0x985, 0xef1001 )
    [   60.657755] [wifi0] FWLOG: [84540] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x1 )
    [   60.664691] [wifi0] FWLOG: [84540] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   60.671006] [wifi0] FWLOG: [84540] VDEV_MGR_AP_TBTT_CONFIG ( 0x0, 0x985, 0x0, 0x0 )
    [   61.280786] [wifi1] FWLOG: [85283] WAL channel change freq=5520, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   61.288594] [wifi1] FWLOG: [85598] WAL channel change freq=5540, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   61.297969] [wifi1] FWLOG: [85912] WAL channel change freq=5560, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   62.280543] [wifi1] FWLOG: [86227] WAL channel change freq=5580, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   62.288419] [wifi1] FWLOG: [86541] WAL channel change freq=5600, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   62.297100] [wifi1] FWLOG: [86854] WAL channel change freq=5620, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   62.305613] [wifi1] FWLOG: [87169] WAL channel change freq=5640, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   63.279861] [wifi1] FWLOG: [87484] WAL channel change freq=5660, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   63.287774] [wifi1] FWLOG: [87798] WAL channel change freq=5680, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   63.296291] [wifi1] FWLOG: [88112] WAL channel change freq=5700, mode=0 flags=0 rx_ok=1 tx_ok=1
    [   63.458216] send_vdev_down_cmd_non_tlv for vap 0
    [   63.462123] OL vap_start +
    [   63.464504] VDEV START
    [   63.466895] OL vap_start -
    [   63.469553] ol_ath_vap_set_param: Now supported MGMT RATE is 6000(kbps) and rate code: 0x3
    [   63.686738] ol_vdev_start_resp_ev for vap 0 (db4fc000)
    [   63.690869] send_wmm_update_cmd_non_tlv:
    [   63.694794] ol_if_dfs_configure: MKK4 domain
    [   63.699218]
    [   63.699218]  ieee80211_random_channel -- MMK4 domain, search for lower 5G (less than 5490 MHz) channels
    [   63.699218]
    [   64.279333] [wifi1] FWLOG: [88429] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   64.284832] [wifi1] FWLOG: [88429] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   64.291341] [wifi1] FWLOG: [88434] vap-0 VDEV_MGR_VDEV_START ( 0x14b4, 0x2, 0x0, 0x1 )
    [   64.299241] [wifi1] FWLOG: [88435] WAL channel change freq=5300, mode=8 flags=0 rx_ok=1 tx_ok=1
    [   64.308098] [wifi1] FWLOG: [88435] WAL_DBGID_RST_STATS ( 0x2, 0x80, 0x14b4, 0x1 )
    [   64.315386] [wifi1] FWLOG: [88660] VDEV_MGR_VDEV_START_RESP ( 0x0 )
    [   89.849624] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
    
    OpenWrt login: root
    === IMPORTANT ============================
    Use 'passwd' to set your login password
    this will disable telnet and enable SSH
    ------------------------------------------
    
    BusyBox v1.25.1 (2019-03-21 15:49:42 CST) built-in shell (ash)
    
    MM           NM                    MMMMMMM          M       M
    $MMMMM        MMMMM                MMMMMMMMMMM      MMM     MMM
    MMMMMMMM     MM MMMMM.              MMMMM:MMMMMM:   MMMM   MMMMM
    MMMM= MMMMMM  MMM   MMMM       MMMMM   MMMM  MMMMMM   MMMM  MMMMM'
    MMMM=  MMMMM MMMM    MM       MMMMM    MMMM    MMMM   MMMMNMMMMM
    MMMM=   MMMM  MMMMM          MMMMM     MMMM    MMMM   MMMMMMMM
    MMMM=   MMMM   MMMMMM       MMMMM      MMMM    MMMM   MMMMMMMMM
    MMMM=   MMMM     MMMMM,    NMMMMMMMM   MMMM    MMMM   MMMMMMMMMMM
    MMMM=   MMMM      MMMMMM   MMMMMMMM    MMMM    MMMM   MMMM  MMMMMM
    MMMM=   MMMM   MM    MMMM    MMMM      MMMM    MMMM   MMMM    MMMM
    MMMM$ ,MMMMM  MMMMM  MMMM    MMM       MMMM   MMMMM   MMMM    MMMM
    MMMMMMM:      MMMMMMM     M         MMMMMMMMMMMM  MMMMMMM MMMMMMM
    MMMMMM       MMMMN     M           MMMMMMMMM      MMMM    MMMM
    MMMM          M                    MMMMMMM        M       M
    M
    ---------------------------------------------------------------
    For those about to rock... (Chaos Calmer, r48067)
    Product Name: SHH-001       Image Version: 1.4.46.5
    ---------------------------------------------------------------
    root@OpenWrt:/etc/uci-defaults#
    

  • bootlog(UART設定無し)
    途中で途切れる
    UARTを共用するZWave絡みか?

    
    Format: Log Type - Time(microsec) - Message - Optional Info
    Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
    S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00120
    S - IMAGE_VARIANT_STRING=DAAAANAZA
    S - OEM_IMAGE_VERSION_STRING=CRM
    S - Boot Config, 0x00000023
    S - Reset status Config, 0x00000000
    S - Core 0 Frequency, 0 MHz
    B -       262 - PBL, Start
    B -      1342 - bootable_media_detect_entry, Start
    B -     40122 - bootable_media_detect_success, Start
    B -     40137 - elf_loader_entry, Start
    B -     44549 - auth_hash_seg_entry, Start
    B -   1426048 - auth_hash_seg_exit, Start
    B -   1461181 - elf_segs_hash_verify_entry, Start
    B -   1577030 - PBL, End
    B -   1577055 - SBL1, Start
    B -   1670483 - pm_device_init, Start
    D -         6 - pm_device_init, Delta
    B -   1671993 - boot_flash_init, Start
    D -     29661 - boot_flash_init, Delta
    B -   1706058 - boot_config_data_table_init, Start
    D -      2722 - boot_config_data_table_init, Delta - (419 Bytes)
    B -   1713730 - clock_init, Start
    D -      7544 - clock_init, Delta
    B -   1725042 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:3,Subtype:1
    B -   1728448 - sbl1_ddr_set_params, Start
    B -   1733543 - cpr_init, Start
    D -         2 - cpr_init, Delta
    B -   1737926 - Pre_DDR_clock_init, Start
    D -         4 - Pre_DDR_clock_init, Delta
    D -     13172 - sbl1_ddr_set_params, Delta
    B -   1751232 - pm_driver_init, Start
    D -         2 - pm_driver_init, Delta
    B -   1822474 - sbl1_wait_for_ddr_training, Start
    D -        28 - sbl1_wait_for_ddr_training, Delta
    B -   1839909 - Image Load, Start
    D -   1202192 - QSEE Image Loaded, Delta - (304152 Bytes)
    B -   3042528 - Image Load, Start
    D -       944 - SEC Image Loaded, Delta - (0 Bytes)
    B -   3052411 - Image Load, Start
    D -   1263428 - APPSBL Image Loaded, Delta - (435807 Bytes)
    B -   4316263 - QSEE Execution, Start
    D -        60 - QSEE Execution, Delta
    B -   4322436 - SBL1, End
    D -   2747494 - SBL1, Delta
    S - Flash Throughput, 24306 KB/s  (740730 Bytes,  30475 us)
    S - DDR Frequency, 672 MHz
    
    U-Boot 2012.07 [Chaos Calmer 15.05.1,r48067] (Dec 19 2018 - 08:16:11)
    
    smem ram ptable found: ver: 1 len: 3
    DRAM:  512 MiB
    machid : 0x8010301
    MMC:   qca_mmc: 0
    In:    serial
    Out:   serial
    Err:   serial
    machid: 8010301
    flash_type: 1
    MAC0 : 5CFF35952EEF
    MAC1 : 5CFF35952EED
    Hit any key to stop autoboot:  0
    
    MMC read: dev # 0, block # 11810, count 16384 ... 16384 blocks read: OK
    ## Booting kernel from FIT Image at 84000028 ...
    Using 'config@ap.dk04.1-c4' configuration
    Trying 'kernel@1' kernel subimage
    Description:  ARM OpenWrt Linux-4.4.60
    Type:         Kernel Image
    Compression:  gzip compressed
    Data Start:   0x8400010c
    Data Size:    3706964 Bytes = 3.5 MiB
    Architecture: ARM
    OS:           Linux
    Load Address: 0x80208000
    Entry Point:  0x80208000
    Hash algo:    crc32
    Hash value:   000297e1
    Hash algo:    sha1
    Hash value:   92e1ced760a10a46b0acc07508bdd40c3b41420d
    Verifying Hash Integrity ... crc32+ sha1+ OK
    ## Flattened Device Tree from FIT Image at 84000028
    Using 'config@ap.dk04.1-c4' configuration
    Trying 'fdt@ap.dk04.1-c4' FDT blob subimage
    Description:  ARM OpenWrt qcom-ipq40xx-ap.dkxx device tree blob
    Type:         Flat Device Tree
    Compression:  uncompressed
    Data Start:   0x843c5550
    Data Size:    33755 Bytes = 33 KiB
    Architecture: ARM
    Hash algo:    crc32
    Hash value:   496024b9
    Hash algo:    sha1
    Hash value:   54c3f8319be5d79c5cb16de0ccbaf6000a93b38c
    Verifying Hash Integrity ... crc32+ sha1+ OK
    Booting using the fdt blob at 0x843c5550
    Uncompressing Kernel Image ... OK
    Loading Device Tree to 86ff4000, end 86fff3da ... OK
    Using machid 0x8010301 from environment
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.4.60 (android@androidbuildmachine) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 r48067) ) #7 SMP PREEMPT Thu Dec 20 16:40:33 CST 2018
    [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1-C4
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] PERCPU: Embedded 12 pages/cpu @dfb2b000 s18560 r8192 d22400 u49152
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 125824
    [    0.000000] Kernel command line: rootfsname=rootfs rootwait clk_ignore_unused
    [    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: 494884K/507904K available (5184K kernel code, 309K rwdata, 1760K rodata, 228K init, 268K bss, 13020K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0208000 - 0xc08d03b8   (6945 kB)
    [    0.000000]       .init : 0xc08d1000 - 0xc090a000   ( 228 kB)
    [    0.000000]       .data : 0xc090a000 - 0xc0957428   ( 310 kB)
    [    0.000000]        .bss : 0xc095a000 - 0xc099d1dc   ( 269 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] Architected cp15 timer(s) running at 48.00MHz (virt).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
    [    0.000007] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
    [    0.000021] Switching to timer-based delay loop, resolution 20ns
    [    0.000340] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
    [    0.000356] pid_max: default: 32768 minimum: 301
    [    0.000480] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000494] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.001194] Initializing cgroup subsys memory
    [    0.001250] CPU: Testing write buffer coherency: ok
    [    0.001579] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.001664] Setting up static identity map for 0x80208280 - 0x802082d8
    [    0.052816] MSM Memory Dump base table set up
    [    0.052857] MSM Memory Dump apps data table set up
    [    0.090971] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.121030] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [    0.151081] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [    0.151170] Brought up 4 CPUs
    [    0.151201] SMP: Total of 4 processors activated (384.00 BogoMIPS).
    [    0.151211] CPU: All CPU(s) started in SVC mode.
    [    0.164173] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
    [    0.164622] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.164652] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.164988] pinctrl core: initialized pinctrl subsystem
    [    0.166569] NET: Registered protocol family 16
    [    0.168167] DMA: preallocated 2048 KiB pool for atomic coherent allocations
    [    0.190327] cpuidle: using governor ladder
    [    0.220357] cpuidle: using governor menu
    [    0.238441]  glink_init: IPC Logging Disabled
    [    0.239334] IPC logging disabled
    [    0.239345] IPC logging disabled
    [    0.239352] IPC logging disabled
    [    0.239358] IPC logging disabled
    [    0.239364] IPC logging disabled
    [    0.239634] sps:sps is ready.
    [    0.273111] SCSI subsystem initialized
    [    0.275323] Advanced Linux Sound Architecture Driver Initialized.
    [    0.276348] clocksource: Switched to clocksource arch_sys_counter
    [    0.278157] NET: Registered protocol family 2
    [    0.279141] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.279216] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.279306] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.279369] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.279402] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.279653] NET: Registered protocol family 1
    [    0.291060] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.291086] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.295935] Key type asymmetric registered
    [    0.295960] Asymmetric key parser 'x509' registered
    [    0.296021] io scheduler noop registered
    [    0.296040] io scheduler deadline registered (default)
    [    0.297981] 40000000.pci supply vdda not found, using dummy regulator
    [    0.298059] 40000000.pci supply vdda_phy not found, using dummy regulator
    [    0.298124] 40000000.pci supply vdda_refclk not found, using dummy regulator
    [    0.298462] PCI host bridge /soc/pci@40000000 ranges:
    [    0.298497]    IO 0x40200000..0x402fffff -> 0x40200000
    [    0.298519]   MEM 0x48000000..0x57ffffff -> 0x48000000
    [    1.363804] qcom-pcie 40000000.pci: phy link never came up
    [    1.401469] qcom-pcie 40000000.pci: hostinit failed
    [    1.401483] qcom-pcie 40000000.pci: cannot initialize host
    [    1.401704] qcom-pcie: probe of 40000000.pci failed with error -110
    [    1.402168] MDSS QPIC HW Base phy_Address=0x7980000 virt=0xe0e40000
    [    1.402564] mdss_qpic_panel_probe: Panel Name = qpic lcd panel
    [    1.405326] mdss_fb_register: FrameBuffer[0] 800x480 registered successfully!
    [    1.410416] NET: Registered protocol family 27
    [    1.410433] IPC_RTR: ipc_router_create_log_ctx: IPC Logging disabled
    [    1.410453] qmi_log_init: IPC Logging disabled
    [    1.410461] qmi_log_init: IPC Logging disabled
    [    1.411360] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
    [    1.411428] tcsr 1953000.ess_tcsr: setting ess interface select = 0
    [    1.411505] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
    [    1.411566] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
    [    1.412518] msm_serial: driver initialized
    [    1.412833] msm_serial_hsl_probe: detected port #0 (ttyMSM0)
    [    1.412868] msm_serial_hsl_probe: Bus scaling is disabled
    [    1.413008] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 25, base_baud = 115200) is a MSM
    [    1.413106] msm_hsl_console_setup: console setup on port #0
    [    2.027938] console [ttyMSM0] enabled
    [    2.032018] msm_serial_hsl_probe: detected port #1 (ttyMSM1)
    [    2.037238] msm_serial_hsl_probe: Bus scaling is disabled
    [    2.042692] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 26, base_baud = 115200) is a MSM
    [    2.051660] msm_serial_hsl_init: driver initialized
    [    2.070043] brd: module loaded
    [    2.072389] [--------- HELIOS MISC ---------]HELIOS_MISC driver probe
    [    2.368676] libphy: Fixed MDIO Bus: probed
    [    2.592537] ipq40xx-mdio 90000.mdio: Could not find phy-reset-gpio
    [    2.597895] libphy: ipq40xx_mdio: probed
    [    2.605196] ipq40xx-mdio 90000.mdio: ipq40xx-mdio driver was registered
    [    2.610975] cnss: Unable to create IPC log context!
    [    2.616115] cnss: Platform driver probed successfully.
    [    2.620959] i2c /dev entries driver
    [    2.625993] mcu 1-0015: #####MCU driver probe start!
    [    2.796536] i2c_qup 78b8000.i2c: NACK from 15
    [    2.799870] mcu 1-0015: ####Init LED patern failed -5
    [    2.805165] mcu 1-0015: #####MCU driver probed
    [    2.811936] sdhci: Secure Digital Host Controller Interface driver
    [    2.817141] sdhci: Copyright(c) Pierre Ossman
    [    2.821438] sdhci-pltfm: SDHCI platform and OF driver helper
    [    2.828139] sdhci_msm 7824900.sdhci: Got SD LDO GPIO #33
    [    2.932450] sdhci_msm 7824900.sdhci: No vreg data found for vdd
    [    2.937358] sdhci_msm 7824900.sdhci: No vreg data found for vdd-io
    [    2.956380] sdhci_msm 7824900.sdhci: No vmmc regulator found
    [    3.006547] mmc0: SDHCI controller on 7824900.sdhci [7824900.sdhci] using ADMA 64-bit
    [    3.099297] mmc0: MAN_BKOPS_EN bit is not set
    [    3.104985] lp5523x 1-0032: lp55231 Programmable led chip found
    [    3.118071] mmc0: new HS200 MMC card at address 0001
    [    3.122703] mmcblk0: mmc0:0001 004GA0 3.69 GiB
    [    3.126839] mmcblk0rpmb: mmc0:0001 004GA0 partition 3 512 KiB
    [    3.133725] Alternate GPT is invalid, using primary GPT.
    [    3.138127] GPT: device [179:15] (rootfs) set to be root filesystem
    [    3.144269]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17
    [    3.206045] lp5523x 1-0033: lp55231 Programmable led chip found
    [    3.216230]
    [    3.216230] Version Rollback Feature Disabled
    [    3.278487] gpio-reset=65
    [    3.281062] ipq_audio soc:sound@0: ASoC: CPU DAI qca-i2s-dai not registered
    [    3.287149] ipq_audio soc:sound@0: snd_soc_register_card() failed:-517
    [    3.297645] NET: Registered protocol family 10
    [    3.302165] NET: Registered protocol family 17
    [    3.305653] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
    [    3.318265] Bridge firewalling registered
    [    3.322167] 8021q: 802.1Q VLAN Support v1.8
    [    3.326493] Registering SWP/SWPB emulation handler
    [    3.333645] RT5628 Audio Codec probed
    [    3.336279] [hp_depop_mode2]
    [    3.640464] [rt5628_set_bias_level] SND_SOC_BIAS_OFF
    [    3.946345] cx2092x 1-0041: codec driver version: 03,08,00,21
    [    3.952093] ipq_audio soc:sound@0: qca-i2s-codec-dai <-> qca-i2s-dai mapping ok
    [    3.959009] ipq_audio soc:sound@0: qca-i2s-conexant-dai <-> qca-i2s-dai mapping ok
    [    3.982441] hctosys: unable to open rtc device (rtc0)
    [    3.992051] clk: Not disabling unused clocks
    [    3.995297] ALSA device list:
    [    3.998371]   #0: ipq4019_snd_card
    [    4.006064] VFS: Mounted root (squashfs filesystem) readonly on device 179:15.
    [    4.012999] Freeing unused kernel memory: 228K (c08d1000 - c090a000)
    [    4.514502] init: Console is alive
    [    4.517136] init: - watchdog -
    [    6.352764] usbcore: registered new interface driver usbfs
    [    6.357377] usbcore: registered new interface driver hub
    [    6.362659] usbcore: registered new device driver usb
    [    6.370569] Button Hotplug driver version 0.4.1
    [    6.908749] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    6.913232] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [    6.921151] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x00010010
    [    6.929630] xhci-hcd xhci-hcd.0.auto: irq 233, io mem 0x08a00000
    [    6.936547] hub 1-0:1.0: USB hub found
    [    6.939313] hub 1-0:1.0: 1 port detected
    [    6.943693] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    6.948752] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [    6.956416] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    6.965236] hub 2-0:1.0: USB hub found
    [    6.968197] hub 2-0:1.0: 1 port detected
    [    6.972619] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    6.977528] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
    [    6.985348] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x00010010
    [    6.993862] xhci-hcd xhci-hcd.1.auto: irq 234, io mem 0x06000000
    [    7.000732] hub 3-0:1.0: USB hub found
    [    7.003538] hub 3-0:1.0: 1 port detected
    [    7.007972] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    7.012888] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
    [    7.020682] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
    [    7.029501] hub 4-0:1.0: USB hub found
    [    7.032363] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
    [    7.043599] input: soc:gpio_input_keys as /devices/platform/soc/soc:gpio_input_keys/input/input0
    [    7.054292] usbcore: registered new interface driver usb-storage
    [    7.366572] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
    [    7.520806] init: - preinit -
    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
    Before mount_root
    [   10.019272] EXT4-fs (mmcblk0p17): recovery complete
    [   10.022673] random: procd: uninitialized urandom read (4 bytes read, 53 bits of entropy available)
    [   10.032945] EXT4-fs (mmcblk0p17): mounted filesystem with ordered data mode. Opts: (null)
    [   10.041348] mount_root: switching to jffs2 overlay
    After mount_root
    377+0 records in
    377+0 records out
    12064 bytes (11.8KB) copied, 0.004286 seconds, 2.7MB/s
    377+0 records in
    377+0 records out
    12064 bytes (11.8KB) copied, 0.004057 seconds, 2.8MB/s
    reason hw reset
    [   10.147429] procd: - early -
    [   10.149353] procd: - watchdog -
    [   10.842327] procd: - ubus -
    [   11.844994] random: ubusd: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
    [   11.853220] random: ubusd: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
    [   11.861946] random: ubusd: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
    [   11.871912] random: ubusd: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
    [   11.879913] random: ubusd: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
    [   11.888939] random: ubusd: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
    [   11.897869] random: ubusd: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
    [   11.906930] procd: - init -
    CY8C bootloader I2C update utility v1.4 bundled FW:(V14 relea   14.334649] i2c_qup 78b8000.i2c: NACK from 14
    on 2018-08-27), Wistron Corp.
    Checking current firmware...
    [   14.343255] i2c_qup 78b8000.i2c: NACK from 8
    Error: Transaction failed !
    I2C communication failed error=0x20[   14.352817] i2c_qup 78b8000.i2c: NACK from 14
    00, checking if touch MCU in bootload mode...
    Error: Transaction failed
    Programing image to version V14 (V14 released on 2018-08-27)...
    Error: Transaction failed !
    Enter bootloader failed! error = 0x2000
    [   14.986187] QCE50: __qce_get_device_tree_data: BAM Apps EE is not defined, setting to default 1
    [   14.994368] QCE50: __qce_init_clk: Unable to get CE core src clk, set to NULL
    [   15.001101] qcrypto 8e20000.qcrypto: Qualcomm Crypto 5.3.1 device found @0x8e20000
    [   15.008713] qcrypto 8e20000.qcrypto: CE device = 0x0
    [   15.008713] , IO base, CE = 0xe17c0000
    [   15.008713] , Consumer (IN) PIPE 2,    Producer (OUT) PIPE 3
    [   15.008713] IO base BAM = 0x  (null)
    [   15.008713] BAM IRQ 24
    [   15.008713] Engines Availability = 0x2010453
    [   15.033088] sps_register_bam_device : unable to create IPC Logging 0 for bam 0x08e04000
    [   15.040856] sps_register_bam_device : unable to create IPC Logging 1 for bam 0x08e04000sps_register_bam_device : unable to create IPC Logging 2 for bam 0x08e04000
    [   15.055317] sps_register_bam_device : unable to create IPC Logging 3 for bam 0x08e04000sps_register_bam_device : unable to create IPC Logging 4 for bam 0x08e04000
    [   15.069838] sps:BAM 0x08e04000 is registered.[   15.074345] sps:BAM 0x08e04000 (va:0xe1840000) enabled: ver:0x27, number of pipes:4
    [   15.082054] QCE50: qce_sps_init:  Qualcomm MSM CE-BAM at 0x0000000008e04000 irq 24
    [   15.091581] bus_scale_table is NULL
    [   15.094270] qcrypto 8e20000.qcrypto: qcrypto-ecb-aes
    [   15.099145] qcrypto 8e20000.qcrypto: qcrypto-cbc-aes
    [   15.104047] qcrypto 8e20000.qcrypto: qcrypto-ctr-aes
    [   15.109023] qcrypto 8e20000.qcrypto: qcrypto-ecb-des
    [   15.113936] qcrypto 8e20000.qcrypto: qcrypto-cbc-des
    [   15.118908] qcrypto 8e20000.qcrypto: qcrypto-ecb-3des
    [   15.123915] qcrypto 8e20000.qcrypto: qcrypto-cbc-3des
    [   15.128994] qcrypto 8e20000.qcrypto: qcrypto-xts-aes
    [   15.133896] qcrypto 8e20000.qcrypto: qcrypto-sha1
    [   15.138634] qcrypto 8e20000.qcrypto: qcrypto-sha256
    [   15.143445] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-aes
    [   15.149730] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-des
    [   15.155953] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-3des
    [   15.162320] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-aes
    [   15.168736] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-des
    [   15.175136] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-3des
    [   15.181672] qcrypto 8e20000.qcrypto: qcrypto-hmac-sha1
    [   15.186789] qcrypto 8e20000.qcrypto: qcrypto-hmac-sha256
    [   15.192063] qcrypto 8e20000.qcrypto: qcrypto-aes-ccm
    [   15.197036] qcrypto 8e20000.qcrypto: qcrypto-rfc4309-aes-ccm
    [   15.216859] nf_conntrack version 0.5.0 (7736 buckets, 30944 max)
    [   15.230594] ntfs: driver 2.1.32 [Flags: R/O MODULE].
    [   15.243394] Initializing XFRM netlink socket
    [   15.248308] NET: Registered protocol family 15
    [   15.254945] PPP generic driver version 2.4.2
    [   16.914564] ssdk_alloc_priv[4390]:INFO:ess-switch dts node number: 1
    [   16.919951] ssdk_dt_parse[2642]:INFO:ess-switch DT exist!
    [   16.925287] ssdk_dt_parse[2671]:INFO:switch_access_mode: local bus
    [   16.931430] ssdk_dt_parse_mac_mode[2270]:INFO:mac mode = 0x0
    [   16.937093] ssdk_dt_parse_mac_mode[2276]:INFO:mac mode1 doesn't exit!
    [   16.943495] ssdk_dt_parse_mac_mode[2285]:INFO:mac mode2 doesn't exit!
    [   16.949947] ssdk_dt_parse_uniphy[2304]:INFO:ess-uniphy DT doesn't exist!
    [   16.956628] ssdk_dt_parse_scheduler_cfg[2494]:ERROR:cannot find port_scheduler_resource node
    [   16.965025] ssdk_dt_parse_phy_info[2537]:INFO:qcom,port_phyinfo DT doesn't exist!
    [   16.972509] ssdk_dt_parse_mdio[2574]:INFO:mdio DT exist!
    [   16.977796] ssdk_dt_parse[2697]:INFO:switchreg_base_addr: 0xc000000
    [   16.984029] ssdk_dt_parse[2698]:INFO:switchreg_size: 0x80000
    [   16.989696] ssdk_dt_parse[2707]:INFO:ess-psgmii DT exist!
    [   16.995080] ssdk_dt_parse[2764]:INFO:current dts led_source_num is 5
    [   17.001394] ssdk_plat_init start
    [   17.004802] enable ess clk
    [   17.070448] malibu_phy_api_ops_init[2505]:INFO:qca probe malibu phy driver succeeded!
    [   17.123495] regi_init[4495]:INFO:Initializing DESS!!
    [   18.879838] ssdk_switch_register[1587]:INFO:Chip version 0x1401
    [   18.884746] qca_link_polling_select[1281]:INFO:link-polling-required node does not exist
    [   18.892797] ssdk_switch_register[1610]:INFO:polling is selected
    [   18.898703] regi_init[4504]:INFO:Initializing DESS Done!!
    [   18.904147] regi_init[4528]:INFO:qca-ssdk module init succeeded!
    [   18.922255] tun: Universal TUN/TAP device driver, 1.6
    [   18.926279] tun: (C) 1999-2004 Max Krasnyansky
    [   18.940206] **********************************************************
    [   18.945704] * Driver    :NSS GMAC Driver for RTL v(3.72a)
    [   18.951150] * Version   :1.0
    [   18.953948] * Copyright :Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
    [   18.962303] **********************************************************
    [   18.991566] l2tp_core: L2TP core driver, V2.0
    [   18.996212] l2tp_netlink: L2TP netlink interface
    [   19.041790] qca-nss-drv.ko is loaded for symbol link
    [   19.047847] sit: IPv6 over IPv4 tunneling driver
    [   19.055076] nat46: module (version 8ff2ae59ec9840a7b8b45f976c51cae80abe0226) loaded.
    [   19.066757] gre: GRE over IPv4 demultiplexor driver
    [   19.072906] ip_gre: GRE over IPv4 tunneling driver
    [   19.093212] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    [   19.112529] QCA multicast snooping installed successfully
    [   19.121082] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [   21.337388] nss_lag_init[345]:LAG Manager Installed
    [   21.697534] NET: Registered protocol family 24
    [   21.702580] PPTP driver version 0.8.5
    [   21.899379] :module loaded (platform - IPQ806x, build - Build_ID - 12/20/18, 16:35:04)
    [   21.907584] :qca-nss-crypto.ko is loaded for symbol link
    [   22.107528] crypto bench loaded - Build_ID - 12/20/18, 16:35:07
    [   22.112445] nss_crypto_register_user[151]:bf6a33cc: Crypto Device is not ready
    [   22.294346] Not a bridge device, or device not found: br-lan
    [   22.505451] nss_macsec init success
    [   22.959300] nss is not enabled on this platform
    [   22.962803] nss_ipsecmgr_init[977]:NSS is not enabled in this platform
    [   23.377807] nss_crypto_register_user[151]:bf6a33cc: Crypto Device is not ready
    [   23.578133] nss_crypto_register_user[151]:bf6a33cc: Crypto Device is not ready
    [   25.637618] u32 classifier
    [   25.639294]     input device check on
    [   25.642937]     Actions configured
    [   26.017558] Mirror/redirect action on
    [   30.054146] fuse init (API version 7.23)
    [   30.251483] arp_tables: (C) 2002 David S. Miller
    [   30.259184] usbcore: registered new interface driver cdc_wdm
    [   30.267865] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   30.279664] l2tp_ppp: PPPoL2TP kernel driver, V2.0
    [   30.358803] nf_conntrack_rtsp v0.6.21 loading
    [   30.582620] nf_nat_rtsp v0.6.21 loading
    [   30.593652] PPP MPPE Compression module registered
    [   30.615038] usbcore: registered new interface driver usbserial
    [   30.620089] usbcore: registered new interface driver usbserial_generic
    [   30.626499] usbserial: USB Serial support registered for generic
    [   30.673245] xt_time: kernel timezone is -0000
    [   30.678287] usbcore: registered new interface driver cp210x
    [   30.682930] usbserial: USB Serial support registered for cp210x
    [   30.690988] usbcore: registered new interface driver ftdi_sio
    [   30.695826] usbserial: USB Serial support registered for FTDI USB Serial Device
    [   30.726932] usbcore: registered new interface driver pl2303
    [   30.731575] usbserial: USB Serial support registered for pl2303
    [   30.765728] qmi_wwan 2-1:1.1: cdc-wdm0: USB WDM device
    [   30.772212] qmi_wwan 2-1:1.1 wwan0: register 'qmi_wwan' at usb-xhci-hcd.0.auto-1, WWAN/QMI device, ce:ba:07:1f:02:fc
    [   30.782002] usbcore: registered new interface driver qmi_wwan
    [   30.799647] usbcore: registered new interface driver option
    [   30.806633] usbserial: USB Serial support registered for GSM modem (1-port)
    [   30.813002] option 2-1:1.0: GSM modem (1-port) converter detected
    [   30.819331] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
    [   30.825739] option 2-1:1.2: GSM modem (1-port) converter detected
    [   30.832183] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
    [   30.838663] option 2-1:1.3: GSM modem (1-port) converter detected
    [   30.844788] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
    [   30.851491] option 2-1:1.4: GSM modem (1-port) converter detected
    [   30.857889] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
    WLAN 2 interfaces not ready, failed
    [   32.895424] Not a bridge device, or device not found: br-lan
    [   37.213220] mem_manager: module license 'unspecified' taints kernel.
    [   37.218585] Disabling lock debugging due to kernel taint
    [   37.268949] ath_dfs: Version 2.0.0
    [   37.268949] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
    [   37.291531] ath_spectral: Version 2.0.0
    [   37.291531] Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved
    [   39.147257] ath_hal: 0.9.17.1 (AR5416, AR9380, WRITE_EEPROM, 11D)
    [   39.164703] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
    [   39.182431] ath_tx99: Version 2.0
    [   39.182431] Copyright (c) 2010 Atheros Communications, Inc, All Rights Reserved
    [   39.251405] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
    [   39.297101] ath_da_pci:  (Atheros/multi-bss)
    [   40.029515] vmap allocation for size 1036288 failed: use vmalloc= to increase size.
    [   40.075209]  *********** IPQ4019  *************Wifi0 CPU frequency 250000000
    [   40.101292] hif_target_sync_ahb: Got FW signal, retries = 1hif_ahb_enable_bus: X - hif_type = 0xd, target_type = 0xbhif_config_ce: ce_init donehif_config_ce: X, ret = 0hif_set_hia: Ehif_pci_bus_configure: hif_set_hia donehif_configure_irq: Ehif_enable: X OKhif_napi_create: NAPI structures initializedhif_napi_create: NAPI id 6 created for pipe 5qca_napi_create: napi instance 32 created on pipe 4
    [   40.139466] hif_napi_event: received evnt: CONF cmd; v = 1 (state=0x1)hif_napi_event: setting configuration to ON
    __ol_ath_attach() Allocated scn dbec0500
    [   40.153417] nss is not enabled on this platform
    [   40.157876] nss register id -1 offload mode enabled = 0 nss config 0 Target Type b
    [   40.165518] __ol_ath_attach: dev name wifi0
    [   40.169680] ol_ath_attach interface_id 0
    [   40.173848] ol_target_init() BMI inited.
    [   40.177603] ol_target_init() BMI Get Target Info.
    [   40.182160] Chip id: 0xb, chip version: 0x1000000
    [   40.186865]
    [   40.186865]  CE WAR Disabled
    [   40.191329] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
    [   40.196771] ol_target_init() configure Target .
    [   40.201171]
    [   40.201171]  Target Version is 1000000
    [   40.206291]
    [   40.206291]  Flash Download Address  c0000
    [   40.211986] ol_transfer_bin_file: flash data file defined
    [   40.217332] ol_transfer_bin_file[3769] Get Caldata for wifi0.
    [   40.223098] qdf_fs_read[59], Open File /tmp/wifi0.caldata SUCCESS!!file system magic:16914836super blocksize:4096inode 2116file size:12064qc98xx_verify_checksum: flash checksum passed: 0xd34c
    [   40.240078] ol_transfer_bin_file 3830: Download Flash data len 12064
    [   40.246795] Board extended Data download address: 0x0
    [   40.270986]
    [   40.270986]  Board data initialized
    [   40.274969] ol_ath_download_firmware: Download OTP, flash download ADDRESS 0xc0000
    [   40.282495]
    [   40.282495]  Selecting  OTP binary for CHIP Version -509221332
    [   40.304097] ol_transfer_bin_file 3650: downloading file 0, Download data len 4676
    [   40.327093]
    [   40.327093]  First OTP send param 8000
    [   40.335960] ol_ath_download_firmware :First OTP download and Execute is good address:0x5000 return param 4660
    [   40.344859] ol_ath_download_firmware:##Board Id 20 , CHIP Id 0
    [   40.350763] ol_ath_download_firmware: BOARDDATA DOWNLOAD TO address 0xc0000
    [   40.357622]
    [   40.357622]  wifi0: Selecting board data file name boardData_1_0_IPQ4019_DK04_2G.bin
    [   40.366817] ol_transfer_bin_file: Board Data File download to address=0xc0000 file name=IPQ4019/hw.1/boardData_1_0_IPQ4019_DK04_2G.bin
    [   40.440287] ol_transfer_bin_file 3650: downloading file 3, Download data len 12064
    [   40.447280] Board extended Data download address: 0x0
    [   40.471594] ol_ath_download_firmware: Using 0x1234 for the remainder of init
    [   40.477638]
    [   40.477638]  Selecting  OTP binary for CHIP Version -509221332
    [   40.485058] ol_transfer_bin_file 3650: downloading file 0, Download data len 4676
    [   40.508783]
    [   40.508783]  [Flash] : Ignore Module param
    [   40.513324]
    [   40.513324]  Second otp download Param 10000
    [   40.529390] ol_ath_download_firmware : Second OTP download and Execute is good, param=0x0
    [   40.536640]
    [   40.536640]  Mission mode: Firmware CHIP Version -509221332
    [   40.544985] ol_swap_seg_alloc: Successfully allocated memory for SWAP size=262144
    [   40.552075] ol_swap_wlan_memory_expansion: length:185067 size_left:185087 dma_size_left:262144 fw_temp:e1abc004 fw_entry_size:185091
    [   40.563474] ol_swap_wlan_memory_expansion: dma_virt_addr :e1459000 fw_temp: e1abc008 length: 185067
    [   40.572706] Swap: bytes_left to copy: fw:16; dma_page:77077
    [   40.578048] ol_swap_wlan_memory_expansion: length:0 size_left:12 dma_size_left:77077 fw_temp:e1ae92f7 fw_entry_size:185091
    [   40.589056] Swap: wrong length read:0
    [   40.592674] ol_swap_wlan_memory_expansion: Swap total_bytes copied: 185067 Target address 4180b0
    [   40.601669] scn=dbec0500  target_write_addr=4180b0 seg_info=dd2d5210
    [   40.607991] ol_transfer_swap_struct:Code swap structure successfully downloaded for bin type =2
    [   40.616735] bin_filename=IPQ4019/hw.1/athwlan.bin swap_filename=/lib/firmware/IPQ4019/hw.1/athwlan.codeswap.bin
    [   40.626978] ol_transfer_bin_file: Downloading firmware file: IPQ4019/hw.1/athwlan.bin
    [   40.801040] ol_transfer_bin_file 3650: downloading file 1, Download data len 378640
    [   42.063944] ol_target_init() Download FW done.
    [   42.067588]
    [   42.067588] ol_ath_copy_tgt_iram() iram read paddr: 0x980000 host paddr 0x87500000 Radio id 0
    [   42.242673] ol_ath_attach() WMI attached. wmi_handle dd36e000
    [   42.247513] wmi_unified_register_event_handler: Event id 62 is unavailable
    [   42.254332] +htc_create ..  HIF :dc740000-htc_create: (0xdd053000)
    [   42.260319] htc_wmi_init() HT Create . dd053000
    [   42.265080] htc_wmi_init 7754 host_enable 0 nss_nwifi_offload 0
    [   42.270948] ol_ath_set_default_tgt_config : AC Minfree buffer allocation through module param (umac.ko)
    [   42.280303]  OL_ACBKMinfree : 0
    [   42.283404]  OL_ACBEMinfree : 0
    [   42.286547]  OL_ACVIMinfree : 0
    [   42.289658]  OL_ACVOMinfree : 0
    [   42.292785] hif_enable_fastpath, Enabling fastpath mode
    [   42.297838] +HWT
    [   42.299820] hif_completion_thread_startup: pipe_num:0 pipe_info:0xdc744b78hif_completion_thread_startup: pipe_num:3 pipe_info:0xdc744c50hif_completion_thread_startup: pipe_num:4 pipe_info:0xdc744c98
    [   42.321835] -HWT
    [   42.322878] Startup Mode-0 set
    [   42.325847] pdev attach   (null) -1
    [   42.329461]
    [   42.329461] <=== cfg max peer id 1056 ====>
    [   42.335762] htt_peer_map_timer_init Enter pdev db4a0000 hrtimer db4a4948
    [   42.341776]
    [   42.341776]  htt_alloc_peer_map_mem : Alloc Success : host q vaddr db4e8000 paddr 9b4e8000
    [   42.351486]
    [   42.351486]  htt_alloc_peer_map_mem : Flush Interval Configured to 256 pkts
    [   42.363052] ol_txrx_pdev_attach: 2500 tx desc's allocated ; range starts from db120000
    [   42.372179] Firmware_Build_Number:50
    [   42.374814] FW wireless modes: 0x680c
    [   42.378490] num_rf_chain:0x00000002  ht_cap_info:0x0000085b  vht_cap_info:0x339959b2  vht_supp_mcs:0x0000fffa
    [   42.388383] btcoex_support 1, wlan_prio_gpio 52, coex_gpio_pin 0 0 0
    [   42.394692] wmi_service_coex_gpio 1, wmi_service_4_wire_coex_support 1, coex_version 2
    [   42.402608]
    [   42.402608] Sending Ext resource cfg: HOST PLATFORM as 0
    [   42.402608] fw_feature_bitmap as 52 to TGT
    [   42.413509] ol_ath_service_ready_event: tt_support: 1
    [   42.418490] ol_ath_service_ready_event: periodic_chan_stats: 1
    [   42.424291] ol_ath_service_ready_event: sw_cal_support_check_flag: 1
    [   42.430642] Peer Caching Enabled ; num_peers = 530, num_active_peers = 52 num_tids = 104, num_vdevs = 17
    [   42.440145] EXT NSS Supported
    [   42.443059] idx 1 req 2  num_units 1 num_unit_info 12 unit size 256 actual units 53
    [   42.450838] ol_ath_alloc_host_mem_chunk req_id 2 idx 0 num_units 53 unit_len 256,
    [   42.458252] idx 2 req 3  num_units 1 num_unit_info 12 unit size 1024 actual units 53
    [   42.466122] ol_ath_alloc_host_mem_chunk req_id 3 idx 1 num_units 53 unit_len 1024,
    [   42.473617] idx 3 req 4  num_units 1 num_unit_info 12 unit size 4096 actual units 53
    [   42.481612] ol_ath_alloc_host_mem_chunk req_id 4 idx 2 num_units 53 unit_len 4096,
    [   42.488979] idx 0 req 1  num_units 0 num_unit_info 2 unit size 744 actual units 531
    [   42.497016] ol_ath_alloc_host_mem_chunk req_id 1 idx 3 num_units 531 unit_len 744,
    [   42.504242] idx 4 req 6  num_units 35 num_unit_info 0 unit size 3072 actual units 35
    [   42.512171] ol_ath_alloc_host_mem_chunk req_id 6 idx 4 num_units 35 unit_len 3072,
    [   42.519626] idx 5 req 7  num_units 1 num_unit_info 0 unit size 6144 actual units 1
    [   42.527282] ol_ath_alloc_host_mem_chunk req_id 7 idx 5 num_units 1 unit_len 6144,
    [   42.534709] idx 6 req 5  num_units 0 num_unit_info 2 unit size 2052 actual units 531
    [   42.543499] ol_ath_alloc_host_mem_chunk req_id 5 idx 6 num_units 531 unit_len 2052,
    [   42.550177] Support not added yet for Service 91
    [   42.554759] Support not added yet for Service 92
    [   42.559372] No EXT_MSG send INIT now
    [   42.562928] chunk 0 len 13568 requested , ptr  0x9c714000
    [   42.568316] chunk 1 len 54272 requested , ptr  0x9b180000
    [   42.573683] chunk 2 len 217088 requested , ptr  0x9b1c0000
    [   42.579162] chunk 3 len 395064 requested , ptr  0x9b200000
    [   42.584621] chunk 4 len 107520 requested , ptr  0x9b1a0000
    [   42.590102] chunk 5 len 6144 requested , ptr  0x9c762000
    [   42.595384] chunk 6 len 1089612 requested , ptr  0x9ac00000
    [   42.600961] chunk 7 len 0 requested , ptr  0x87500000
    [   42.606042] Set  btcoex_enable:0
    [   42.609291] ol_ath_service_ready_event[4251] WAPI MBSSID 2
    [   42.614953] smart_log_init: Smart logging Enabled buf=dad40000 (size=65536)
    [   42.649613] Version = 16777216 3  status = 0
    [   42.652884] ol_ath_connect_htc() WMI is ready
    [   42.657271] htt_h2t_frag_desc_bank_cfg_msg - HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG sent to FW for radio ID = 0
    [   42.657284] target uses HTT version 2.2; host uses 2.2
    [   42.677158] ol_ath_attach() connect HTC.
    [   42.680136] bypasswmi : 0
    [   42.682746] ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
    [   42.694498] ol_regdmn_init_channels: !avail mode 0x680c (0x2) flags 0x2150
    [   42.701340] ol_regdmn_init_channels: !avail mode 0x680c (0x1) flags 0x140
    [   42.708144] ol_regdmn_init_channels: !avail mode 0x680c (0x20) flags 0xd0
    [   42.714859] ol_regdmn_init_channels: !avail mode 0x680c (0x40) flags 0x150
    [   42.721766] ol_regdmn_init_channels: !avail mode 0x680c (0x1000) flags 0x10100
    [   42.728940] ol_regdmn_init_channels: !avail mode 0x680c (0x8000) flags 0x20100
    [   42.736127] ol_regdmn_init_channels: !avail mode 0x680c (0x10000) flags 0x40100
    [   42.743437] ol_regdmn_init_channels: !avail mode 0x680c (0x20000) flags 0x100100
    [   42.750812] ol_regdmn_init_channels: !avail mode 0x680c (0x40000) flags 0x200100
    [   42.758192] ol_regdmn_init_channels: !avail mode 0x680c (0x80000) flags 0x400100
    [   42.765553] ol_regdmn_init_channels: !avail mode 0x680c (0x100000) flags 0x800100
    [   42.773035] ol_regdmn_init_channels: !avail mode 0x680c (0x200000) flags 0x4000100
    [   42.780588] ol_regdmn_init_channels: !avail mode 0x680c (0x400000) flags 0x8000100
    [   42.788360] OL Resmgr Init-ed
    [   42.791233] ieee80211_bsteering_attach: Band steering initialized
    [   42.797210] acfg_attach: 3013: Netlink socket created:dcb6e400
    [   42.803004] SPECTRAL : get_capability not registered
    [   42.807938] HAL_CAP_PHYDIAG : Capable
    [   42.811561] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237)
    [   42.819643] SPECTRAL : get_capability not registered
    [   42.824578] HAL_CAP_RADAR   : Capable
    [   42.828245] SPECTRAL : Need to fix the capablity check for SPECTRAL
    [   42.828245]  (spectral_attach : 242)
    [   42.838050] SPECTRAL : get_capability not registered
    [   42.842981] HAL_CAP_SPECTRAL_SCAN : Capable
    [   42.847164] SPECTRAL : get_tsf64 not registered
    [   42.851677] spectral_init_netlink 78 NULL SKB
    [   42.856010] Green-AP : Green-AP : Attached
    [   42.856010]
    [   42.861576] Green-AP : Attached
    [   42.864683] rate power table override is only supported for AR98XX
    [   42.870912] ol_ath_smart_ant_attach: Hardware doest not support Smart Antenna.
    [   42.878127] ol_if_dfs_attach: called; ptr=db1f998c, radar_info=dc781ba8
    [   42.884653] dfs_attach: event log enabled by default
    [   42.890577] >>>> CB Set   (null)
    [   42.893152] ol_ath_attach() UMAC attach .
    [   42.896940]
    [   42.896940]  BURSTING enabled by default
    [   42.902343] ol_ath_attach: Set global_ic[1] ..ptr:bfcd3338
    [   42.907820] ath_lowi_if_netlink_init LOWI Netlink successfully created
    [   42.914280] osif_wrap_attach:444 osif wrap attached
    [   42.919155] osif_wrap_devt_init:405 osif wrap dev table init done
    [   42.925193]  Wrap Attached: Wrap_com =dcb8d200 ic->ic_wrap_com=dcb8d200 &wrap_com->wc_devt=dcb8d200
    [   42.934324] __ol_ath_attach: needed_headroom reservation 60
    [   42.942299] ol_ath_thermal_mitigation_attach: --
    [   42.945928] ol_ath_ahb_probe num_radios=0, wifi_radios[0].sc = dbec0500 wifi_radio_type = 2
    [   42.954322] ath_sysfs_diag_init: diag_fsattr
    [   42.959066]  *********** IPQ4019  *************Wifi1 CPU frequency 250000000
    [   42.985704] hif_target_sync_ahb: Got FW signal, retries = 1hif_ahb_enable_bus: X - hif_type = 0xd, target_type = 0xbhif_config_ce: ce_init donehif_config_ce: X, ret = 0hif_set_hia: Ehif_pci_bus_configure: hif_set_hia donehif_configure_irq: Ehif_enable: X OKhif_napi_create: NAPI structures initializedhif_napi_create: NAPI id 6 created for pipe 5qca_napi_create: napi instance 32 created on pipe 4
    [   43.023884] hif_napi_event: received evnt: CONF cmd; v = 1 (state=0x1)hif_napi_event: setting configuration to ON
    __ol_ath_attach() Allocated scn db280500
    [   43.037878] nss is not enabled on this platform
    [   43.042291] nss register id -1 offload mode enabled = 0 nss config 0 Target Type b
    [   43.049951] __ol_ath_attach: dev name wifi1
    [   43.054098] ol_ath_attach interface_id 1
    [   43.058298] ol_target_init() BMI inited.
    [   43.062004] ol_target_init() BMI Get Target Info.
    [   43.066619] Chip id: 0xb, chip version: 0x1000000
    [   43.071277]
    [   43.071277]  CE WAR Disabled
    [   43.075751] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
    [   43.081216] ol_target_init() configure Target .
    [   43.085599]
    [   43.085599]  Target Version is 1000000
    [   43.090748]
    [   43.090748]  Flash Download Address  c0000
    [   43.096380] ol_transfer_bin_file: flash data file defined
    [   43.101749] ol_transfer_bin_file[3769] Get Caldata for wifi1.
    [   43.107554] qdf_fs_read[59], Open File /tmp/wifi1.caldata SUCCESS!!file system magic:16914836super blocksize:4096inode 4125file size:12064qc98xx_verify_checksum: flash checksum passed: 0x318c
    [   43.124492] ol_transfer_bin_file 3830: Download Flash data len 12064
    [   43.131214] Board extended Data download address: 0x0
    [   43.155415]
    [   43.155415]  Board data initialized
    [   43.159419] ol_ath_download_firmware: Download OTP, flash download ADDRESS 0xc0000
    [   43.166927]
    [   43.166927]  Selecting  OTP binary for CHIP Version -509221332
    [   43.174349] ol_transfer_bin_file 3650: downloading file 0, Download data len 4676
    [   43.198084]
    [   43.198084]  First OTP send param 8000
    [   43.206946] ol_ath_download_firmware :First OTP download and Execute is good address:0x5400 return param 4660
    [   43.215832] ol_ath_download_firmware:##Board Id 21 , CHIP Id 0
    [   43.221750] ol_ath_download_firmware: BOARDDATA DOWNLOAD TO address 0xc0000
    [   43.228622]
    [   43.228622]  wifi1: Selecting board data file name boardData_1_0_IPQ4019_DK04_5G.bin
    [   43.237812] ol_transfer_bin_file: Board Data File download to address=0xc0000 file name=IPQ4019/hw.1/boardData_1_0_IPQ4019_DK04_5G.bin
    [   43.250111] ol_transfer_bin_file 3650: downloading file 3, Download data len 12064
    [   43.257820] Board extended Data download address: 0x0
    [   43.274071] [wifi0] FWLOG: [52800] WAL_DBGID_RST_STATS ( 0x1, 0x1, 0x96c, 0x0 )
    [   43.280363] [wifi0] FWLOG: [52840] WAL_DBGID_TX_AC_BUFFER_SET ( 0x3, 0x1e, 0x94c, 0x94c, 0x0 )
    [   43.288956] [wifi0] FWLOG: [52840] WAL_DBGID_TX_AC_BUFFER_SET ( 0x12, 0x1e,
    [   43.295650] ol_ath_download_firmware: Using 0x1234 for the remainder of init
    [   43.295656]
    [   43.295656]  Selecting  OTP binary for CHIP Version -509221332
    [   43.295801] ol_transfer_bin_file 3650: downloading file 0, Download data len 4676
    [   43.317795] 0x94c, 0x94c, 0x0 )
    [   43.320881] [wifi0] FWLOG: [52840] WAL_DBGID_TX_AC_BUFFER_SET ( 0x45, 0x1e, 0x94c, 0x94c, 0x0 )
    [   43.329583] [wifi0] FWLOG: [52840] WAL_DBGID_TX_AC_BUFFER_SET ( 0x67, 0x1e, 0x94c, 0x94c, 0x0 )
    [   43.338263] [wifi0] FWLOG: [52986] WAL_DBGID_PDEV_INFO_PRINT ( [   43.340302]
    [   43.340302]  [Flash] : Ignore Module param
    [   43.340309]
    [   43.340309]  Second otp download Param 10000
    
    [   43.355367] 0x3aol_ath_download_firmware : Second OTP download and Execute is good, param=0x0
    [   43.355380]
    [   43.355380]  Mission mode: Firmware CHIP Version -509221332
    [   43.356098] ol_swap_seg_alloc: Successfully allocated memory for SWAP size=262144
    [   43.356576] ol_swap_wlan_memory_expansion: length:185067 size_left:185087 dma_size_left:262144 fw_temp:e2581004 fw_entry_size:185091
    [   43.356583] ol_swap_wlan_memory_expansion: dma_virt_addr :e2210000 fw_temp: e2581008 length: 185067
    [   43.356789] Swap: bytes_left to copy: fw:16; dma_page:77077
    [   43.356800] ol_swap_wlan_memory_expansion: length:0 size_left:12 dma_size_left:77077 fw_temp:e25ae2f7 fw_entry_size:185091
    [   43.356803] Swap: wrong length read:0
    [   43.356809] ol_swap_wlan_memory_expansion: Swap total_bytes copied: 185067 Target address 4180b0
    [   43.357245] scn=db280500  target_write_addr=4180b0 seg_info=dd2d5410
    [   43.357252] ol_transfer_swap_struct:Code swap structure successfully downloaded for bin type =2
    [   43.357257] bin_filename=IPQ4019/hw.1/athwlan.bin swap_filename=/lib/firmware/IPQ4019/hw.1/athwlan.codeswap.bin
    [   43.357298] ol_transfer_bin_file: Downloading firmware file: IPQ4019/hw.1/athwlan.bin
    [   43.358201] ol_transfer_bin_file 3650: downloading file 1, Download data len 378640
    [   43.469529] , 0xa10, 0x160, 0x0, 0x12 )
    [   43.473334] [wifi0] FWLOG: [52986] WAL_DBGID_PDEV_INFO_PRINT ( 0x3a, 0x0, 0x12, 0x10, 0x12 )
    [   44.714465] ol_target_init() Download FW done.
    [   44.718111]
    [   44.718111] ol_ath_copy_tgt_iram() iram read paddr: 0x980000 host paddr 0x87700000 Radio id 1
    [   44.893196] ol_ath_attach() WMI attached. wmi_handle db4ec000
    [   44.898038] wmi_unified_register_event_handler: Event id 62 is unavailable
    [   44.904864] +htc_create ..  HIF :dad60000-htc_create: (0xdd056000)
    [   44.910850] htc_wmi_init() HT Create . dd056000
    [   44.915623] htc_wmi_init 7754 host_enable 0 nss_nwifi_offload 0
    [   44.921471] ol_ath_set_default_tgt_config : AC Minfree buffer allocation through module param (umac.ko)
    [   44.930831]  OL_ACBKMinfree : 0
    [   44.933935]  OL_ACBEMinfree : 0
    [   44.937127]  OL_ACVIMinfree : 0
    [   44.940190]  OL_ACVOMinfree : 0
    [   44.943314] hif_enable_fastpath, Enabling fastpath mode
    [   44.948365] +HWT
    [   44.950351] hif_completion_thread_startup: pipe_num:0 pipe_info:0xdad64b78hif_completion_thread_startup: pipe_num:3 pipe_info:0xdad64c50hif_completion_thread_startup: pipe_num:4 pipe_info:0xdad64c98
    [   44.972371] -HWT
    [   44.973413] Startup Mode-0 set
    [   44.976422] pdev attach   (null) -1
    [   44.979952]
    [   44.979952] <=== cfg max peer id 1056 ====>
    [   44.986322] htt_peer_map_timer_init Enter pdev daa70000 hrtimer daa74948
    [   44.992283]
    [   44.992283]  htt_alloc_peer_map_mem : Alloc Success : host q vaddr db306000 paddr 9b306000
    [   45.002022]
    [   45.002022]  htt_alloc_peer_map_mem : Flush Interval Configured to 256 pkts
    [   45.013591] ol_txrx_pdev_attach: 2500 tx desc's allocated ; range starts from da700000
    [   45.022778] Firmware_Build_Number:50
    [   45.025413] FW wireless modes: 0x1f9001
    [   45.029262] num_rf_chain:0x00000002  ht_cap_info:0x0000085b  vht_cap_info:0x339959b2  vht_supp_mcs:0x0000fffa
    [   45.039130] wmi_service_coex_gpio 0, wmi_service_4_wire_coex_support 0, coex_version 0
    [   45.047044]
    [   45.047044] Sending Ext resource cfg: HOST PLATFORM as 0
    [   45.047044] fw_feature_bitmap as 50 to TGT
    [   45.057949] ol_ath_service_ready_event: tt_support: 1
    [   45.062910] ol_ath_service_ready_event: periodic_chan_stats: 1
    [   45.068741] ol_ath_service_ready_event: sw_cal_support_check_flag: 1
    [   45.075066] Peer Caching Enabled ; num_peers = 530, num_active_peers = 52 num_tids = 104, num_vdevs = 17
    [   45.084577] EXT NSS Supported
    [   45.087508] idx 1 req 2  num_units 1 num_unit_info 12 unit size 256 actual units 53
    [   45.095248] ol_ath_alloc_host_mem_chunk req_id 2 idx 0 num_units 53 unit_len 256,
    [   45.102688] idx 2 req 3  num_units 1 num_unit_info 12 unit size 1024 actual units 53
    [   45.110555] ol_ath_alloc_host_mem_chunk req_id 3 idx 1 num_units 53 unit_len 1024,
    [   45.118050] idx 3 req 4  num_units 1 num_unit_info 12 unit size 4096 actual units 53
    [   45.126031] ol_ath_alloc_host_mem_chunk req_id 4 idx 2 num_units 53 unit_len 4096,
    [   45.133415] idx 0 req 1  num_units 0 num_unit_info 2 unit size 744 actual units 531
    [   45.141454] ol_ath_alloc_host_mem_chunk req_id 1 idx 3 num_units 531 unit_len 744,
    [   45.148693] idx 4 req 6  num_units 35 num_unit_info 0 unit size 3072 actual units 35
    [   45.156613] ol_ath_alloc_host_mem_chunk req_id 6 idx 4 num_units 35 unit_len 3072,
    [   45.164042] idx 5 req 7  num_units 1 num_unit_info 0 unit size 6144 actual units 1
    [   45.171727] ol_ath_alloc_host_mem_chunk req_id 7 idx 5 num_units 1 unit_len 6144,
    [   45.179201] idx 6 req 5  num_units 0 num_unit_info 2 unit size 2052 actual units 531
    [   45.187946] ol_ath_alloc_host_mem_chunk req_id 5 idx 6 num_units 531 unit_len 2052,
    [   45.194597] Support not added yet for Service 91
    [   45.199212] Support not added yet for Service 92
    [   45.203795] No EXT_MSG send INIT now
    [   45.207375] chunk 0 len 13568 requested , ptr  0x9ad78000
    [   45.212736] chunk 1 len 54272 requested , ptr  0x9a6f0000
    [   45.218132] chunk 2 len 217088 requested , ptr  0x9a780000
    [   45.223588] chunk 3 len 395064 requested , ptr  0x9a000000
    [   45.229067] chunk 4 len 107520 requested , ptr  0x9a760000
    [   45.234522] chunk 5 len 6144 requested , ptr  0x9ad7e000
    [   45.239842] chunk 6 len 1089612 requested , ptr  0x9a200000
    [   45.245375] chunk 7 len 0 requested , ptr  0x87700000
    [   45.250486] ol_ath_service_ready_event[4251] WAPI MBSSID 2
    [   45.256116] smart_log_init: Smart logging Enabled buf=da310000 (size=65536)
    [   45.294966] Version = 16777216 3  status = 0
    [   45.298230] ol_ath_connect_htc() WMI is ready
    [   45.302593] htt_h2t_frag_desc_bank_cfg_msg - HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG sent to FW for radio ID = 1
    [   45.302605] target uses HTT version 2.2; host uses 2.2
    [   45.322524] ol_ath_attach() connect HTC.
    [   45.325500] bypasswmi : 0
    [   45.328135] ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
    [   45.339866] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
    [   45.346919] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
    [   45.353720] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
    [   45.360588] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
    [   45.367539] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
    [   45.374550] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
    [   45.381860] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
    [   45.389236] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
    [   45.396719] Add VHT80 channel: 5210
    [   45.400072] Add VHT80 channel: 5290
    [   45.403539] Add VHT80 channel: 5530
    [   45.407030] Add VHT80 channel: 5610
    [   45.410484] Add VHT80 channel: 5690
    [   45.413955] Add VHT80 channel: 5775
    [   45.417474] Skipping VHT80 channel 5825
    [   45.421256] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x200000) flags 0x4000100
    [   45.428998] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x400000) flags 0x8000100
    [   45.437751] freq=58
    [   45.438913] freq=106
    [   45.441164] freq=122
    [   45.443417] freq=138
    [   45.445707] OL Resmgr Init-ed
    [   45.448825] ieee80211_bsteering_attach: Band steering initialized
    [   45.454718] acfg_attach: Offload using existing sock dcb6e400
    [   45.460489] SPECTRAL : get_capability not registered
    [   45.465387] HAL_CAP_PHYDIAG : Capable
    [   45.469053] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237)
    [   45.477119] SPECTRAL : get_capability not registered
    [   45.482049] HAL_CAP_RADAR   : Capable
    [   45.485696] SPECTRAL : Need to fix the capablity check for SPECTRAL
    [   45.485696]  (spectral_attach : 242)
    [   45.495518] SPECTRAL : get_capability not registered
    [   45.500466] HAL_CAP_SPECTRAL_SCAN : Capable
    [   45.504622] SPECTRAL : get_tsf64 not registered
    [   45.509149] spectral_init_netlink 78 NULL SKB
    [   45.513480] Green-AP : Green-AP : Attached
    [   45.513480]
    [   45.519044] Green-AP : Attached
    [   45.522152] rate power table override is only supported for AR98XX
    [   45.528390] ol_ath_smart_ant_attach: Hardware doest not support Smart Antenna.
    [   45.535577] ol_if_dfs_attach: called; ptr=da06998c, radar_info=dc781ba8
    [   45.542144] dfs_attach: event log enabled by default
    [   45.548084] >>>> CB Set   (null)
    [   45.551068] ol_ath_attach() UMAC attach .
    [   45.554367]
    [   45.554367]  BURSTING enabled by default
    [   45.559858] ol_ath_attach: Set global_ic[2] ..ptr:bfcd3338
    [   45.565227] ath_lowi_if_netlink_init Incremented LOWI netlink ref count: 2
    [   45.572113] osif_wrap_attach:444 osif wrap attached
    [   45.576975] osif_wrap_devt_init:405 osif wrap dev table init done
    [   45.583014]  Wrap Attached: Wrap_com =db1f7000 ic->ic_wrap_com=db1f7000 &wrap_com->wc_devt=db1f7000
    [   45.592144] __ol_ath_attach: needed_headroom reservation 60
    [   45.599143] ol_ath_thermal_mitigation_attach: --
    [   45.602780] ol_ath_ahb_probe num_radios=1, wifi_radios[1].sc = db280500 wifi_radio_type = 2
    [   45.611172] ath_sysfs_diag_init: diag_fsattr
    [   45.615872] ath_ol_pci:  (Atheros/multi-bss)
    [   45.632716]  pktlog_init: Initializing Pktlog for AR900B, pktlog_hdr_size = 16
    [   45.638943] +hif_update_pipe_callback pipeid 8
    [   45.643333] -hif_update_pipe_callback
    [   45.647029] Switching to Tx Mode-1 Threshold 280
    [   45.651620]  pktlog_init: Initializing Pktlog for AR900B, pktlog_hdr_size = 16
    [   45.658889] +hif_update_pipe_callback pipeid 8
    [   45.663212] -hif_update_pipe_callback
    [   45.676939] __sa_init_module
    No Direct-Attach chipsets found.
    [   45.733903] Removing athdebug proc file
    [   45.736776] ath_dev: driver unloaded
    [   45.784037] ath_tx99: driver unloaded
    [   45.823832] ath_rate_atheros: driver unloaded
    [   45.873794] ath_hal: driver unloaded
    [   45.924581] [wifi1] FWLOG: [55509] WAL_DBGID_RST_STATS ( 0x1, 0x1, 0x1464, 0x0 )
    [   45.930945] [wifi1] FWLOG: [55551] WAL_DBGID_TX_AC_BUFFER_SET ( 0x3, 0x1e, 0x94c, 0x94c, 0x0 )
    [   45.939540] [wifi1] FWLOG: [55551] WAL_DBGID_TX_AC_BUFFER_SET ( 0x12, 0x1e, 0x94c, 0x94c, 0x0 )
    [   45.948223] [wifi1] FWLOG: [55551] WAL_DBGID_TX_AC_BUFFER_SET ( 0x45, 0x1e, 0x94c, 0x94c, 0x0 )
    [   45.956900] [wifi1] FWLOG: [55551] WAL_DBGID_TX_AC_BUFFER_SET ( 0x67, 0x1e, 0x94c, 0x94c, 0x0 )
    [   45.965577] [wifi1] FWLOG: [55701] WAL_DBGID_PDEV_INFO_PRINT ( 0x3a, 0xa10, 0x160, 0x10, 0x0 )
    [   45.974171] [wifi1] FWLOG: [55701] WAL_DBGID_PDEV_INFO_PRINT ( 0x3a, 0x10, 0x0, 0x10, 0x12 )
    [   46.639339] random: jshn: uninitialized urandom read (4 bytes read, 120 bits of entropy available)
    [   46.704695] random: ubusd: uninitialized urandom read (4 bytes read, 120 bits of entropy available)
    [   46.794613] Unsafe core_pattern used with suid_dumpable=2. Pipe handler or fully qualified core dump path required.
    [   48.289841] Switching to Tx Mode-1 Threshold 280
    [   50.042384] ECM init
    [   50.043615] ECM database jhash random seed: 0xc9d954f4
    [   50.050462] ECM init complete
    [   50.880076] Not a bridge device, or device not found: br-lan
    mac80211 qcawifi disable radio wifi0
    mac80211 qcawifi disable radio wifi1
    mac80211 qcawifi: enable radio wifi0
    [   51.373830] isCountryCodeValid: EEPROM regdomain 0x0
    [   51.377871] ol_regdmn_init_channels: !avail mode 0x680c (0x2) flags 0x2150
    [   51.384623] ol_regdmn_init_channels: !avail mode 0x680c (0x1) flags 0x140
    [   51.391491] ol_regdmn_init_channels: !avail mode 0x680c (0x20) flags 0xd0
    [   51.398205] ol_regdmn_init_channels: !avail mode 0x680c (0x40) flags 0x150
    [   51.405069] ol_regdmn_init_channels: !avail mode 0x680c (0x1000) flags 0x10100
    [   51.412276] ol_regdmn_init_channels: !avail mode 0x680c (0x8000) flags 0x20100
    [   51.419486] ol_regdmn_init_channels: !avail mode 0x680c (0x10000) flags 0x40100
    [   51.426779] ol_regdmn_init_channels: !avail mode 0x680c (0x20000) flags 0x100100
    [   51.434104] ol_regdmn_init_channels: !avail mode 0x680c (0x40000) flags 0x200100
    [   51.441517] ol_regdmn_init_channels: !avail mode 0x680c (0x80000) flags 0x400100
    [   51.448910] ol_regdmn_init_channels: !avail mode 0x680c (0x100000) flags 0x800100
    [   51.456366] ol_regdmn_init_channels: !avail mode 0x680c (0x200000) flags 0x4000100
    [   51.463877] ol_regdmn_init_channels: !avail mode 0x680c (0x400000) flags 0x8000100
    [   51.505655] set TXBF_SND_PERIOD: value 100 wmi_status 0
    [   51.525872]  Disconnect_timeout value entered:10
    [   51.534058]  reconfiguration_timeout value entered:60
    [   51.550640] device eth1 entered promiscuous mode
    [   51.558902] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
    [   51.617335] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   51.849147] wlan_vap_create : enter. devhandle=0xdbec0500, opmode=IEEE80211_M_HOSTAP, flags=0x1
    [   51.856968] send_vdev_create_cmd_non_tlv: ID = 0 Type = 1, Subtype = 0 VAP Addr = 5c:ff:35:95:2e:ed:
    [   51.866093] ieee80211_mbo_vattach:MBO Initialized
    [   51.870795] ieee80211_oce_vattach: OCE Initialized
    [   51.875785] wlan_vap_create : exit. devhandle=0xdbec0500, vap=0xd91a8000, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    [   51.885718] __ieee80211_smart_ant_init: Smart Antenna is not supported
    [   51.892333] Enabling TX checksum bit for the vap ath0 features 4000
    [   51.898639] Enabling SG bit for the vap ath0 features 4000
    [   51.904142] Enabling SG bit for the vap ath0 features 4000
    [   51.909745] Enabling TSO bit for the vap ath0 features 4000
    [   51.915344] Enabling LRO bit for the vap ath0 features 4000
    [   51.922275] VAP device ath0 created osifp: (da1ee500) os_if: (d91a8000)
    [   51.931241] 8021q: adding VLAN 0 to HW filter on device ath0
    [   51.938673] device ath0 entered promiscuous mode
    [   51.943301] br-lan: port 2(ath0) entered forwarding state
    [   51.947818] br-lan: port 2(ath0) entered forwarding state
    [   51.956583] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
    [   51.967942] siwfreq
    [   51.969222] Set freq vap 0 stop send + d91a8000
    [   51.973847] Set freq vap 0 stop send -d91a8000
    [   52.006452] Set wait done --d91a8000
    [   52.080982] [DEBUG] vap-0(ath0):set SIOC80211NWID, 16 characters
    [   52.086054]
    [   52.086054]  DES SSID SET=NCP-HG100-2eed-b
    [   52.116883] Sending SCAN START cmd
    [   52.269668] [wifi0] FWLOG: [61883] WAL_DBGID_PDEV_INFO_PRINT ( 0x88, 0xa50, 0x540, 0x0, 0x42 )
    [   52.277347] [wifi0] FWLOG: [61918] WAL_DBGID_RST_STATS ( 0x2, 0x2, 0x96c, 0x0 )
    [   52.284552] [wifi0] FWLOG: [62548] WAL channel change freq=2412, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   52.437870] netlink: 12 bytes leftover after parsing attributes in process `ip'.
    [   52.444314] netlink: 12 bytes leftover after parsing attributes in process `ip'.
    [   52.536470] br-lan: port 1(eth1) entered forwarding state
    [   52.540954] br-lan: port 1(eth1) entered forwarding state
    [   52.697819]  ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
    [   52.708513] [UNSPECIFIED] ol_scan_unregister_event_handler: Failed to unregister evhandler=bfc03548 arg=dad20000
    [   52.708513]
    [   52.719898] osif_vap_stop: Scan in progress.. Cancelling it. vap: 0xd91a8000
    [   52.729267] send_vdev_down_cmd_non_tlv for vap 0
    [   52.737732] br-lan: port 2(ath0) entered disabled state
    [   52.751907]  DEVICE IS DOWN ifname=ath0
    [   52.754813]  DEVICE IS DOWN ifname=ath0
    sysledsd is crashed, restart it
    [   53.026834] Sending SCAN START cmd
    [   53.029392] br-lan: port 2(ath0) entered forwarding state
    [   53.034654] br-lan: port 2(ath0) entered forwarding state
    [   53.040116] 8021q: adding VLAN 0 to HW filter on device ath0
    [   53.269137] [wifi0] FWLOG: [62862] WAL channel change freq=2417, mode=1 flags=0 rx_ok=1 tx_ok=1
    [   53.276836] [wifi0] FWLOG: [63175] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   53.283324] [wifi0] FWLOG: [63175] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
    [   53.289835] [wifi0] FWLOG: [63448] WAL_DBGID_SECURITY_ENCR_EN (  )
    [   53.295988] [wifi0] FWLOG: [63448] WAL_DBGID_SECURITY_MCAST_KEY_SET ( 0x1 )
    [   53.302942] [wifi0] FWLOG: [63480] WAL channel change freq=2412, mode=1 flags=0 rx_ok=1 tx_ok=1
    mac80211 qcawifi: enable radio wifi1
    [   53.604535] isCountryCodeValid: EEPROM regdomain 0x0
    [   53.608543] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
    [   53.615534] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
    [   53.622621] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
    [   53.629340] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
    [   53.636162] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
    [   53.643355] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
    [   53.650785] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
    [   53.658093] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
    [   53.665334] Add VHT80 channel: 5210
    [   53.668873] Add VHT80 channel: 5290
    [   53.672183] Add VHT80 channel: 5530
    [   53.675654] Add VHT80 channel: 5610
    [   53.679308] Skipping VHT80 channel 5660
    [   53.682946] Skipping VHT80 channel 5680
    [   53.686810] Skipping VHT80 channel 5700
    [   53.691088] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x200000) flags 0x4000100
    [   53.698370] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x400000) flags 0x8000100
    [   53.707698] freq=58
    [   53.708859] freq=106
    [   53.711120] freq=122
    [   53.740376] __mc_netlink_receive: Disable bridge snooping!
    [   53.742321] set TXBF_SND_PERIOD: value 100 wmi_status 0
    [   53.757227]  Disconnect_timeout value entered:10
    [   53.766143]  reconfiguration_timeout value entered:60
    [   53.920748] [wifi1] FWLOG: [64173] WAL_DBGID_PDEV_INFO_PRINT ( 0x88, 0xa50, 0x540, 0x40, 0x0 )
    [   53.928344] [wifi1] FWLOG: [64173] WAL_DBGID_PDEV_INFO_PRINT ( 0x88, 0x40, 0x0, 0x40, 0x0 )
    [   53.936712] [wifi1] FWLOG: [64210] WAL_DBGID_RST_STATS ( 0x2, 0x2, 0x1464, 0x0 )
    [   53.985568] wlan_vap_create : enter. devhandle=0xdb280500, opmode=IEEE80211_M_HOSTAP, flags=0x1
    [   53.994164] send_vdev_create_cmd_non_tlv: ID = 0 Type = 1, Subtype = 0 VAP Addr = 5c:ff:35:95:2e:ee:
    [   54.002617] ieee80211_mbo_vattach:MBO Initialized
    [   54.007628] ieee80211_oce_vattach: OCE Initialized
    [   54.012241] wlan_vap_create : exit. devhandle=0xdb280500, vap=0xd9300000, opmode=IEEE80211_M_HOSTAP, flags=0x1.
    [   54.023177] __ieee80211_smart_ant_init: Smart Antenna is not supported
    [   54.028960] Enabling TX checksum bit for the vap ath1 features 4000
    [   54.035150] Enabling SG bit for the vap ath1 features 4000
    [   54.040771] Enabling SG bit for the vap ath1 features 4000
    [   54.046251] Enabling TSO bit for the vap ath1 features 4000
    [   54.052395] Enabling LRO bit for the vap ath1 features 4000
    [   54.061914] VAP device ath1 cr
    

WRC-2533GHBK-I

数日前、久しぶりに春日部のハードオフへ行った際に確保。しばらく前にこの店舗に行った際からあったものの、その際は見送っていたが今度はなんとなく購入。
MT7621であることは予め把握しており、サポート投げ込みのため弄っていくのでメモ。

Switch

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

MAC

  • LAN: BC:5C:4C:xx:xx:89 (Config, ethaddr (text))
  • WAN: BC:5C:4C:xx:xx:88 (Config, wanaddr (text))
  • 2.4G: BC:5C:4C:xx:xx:8A (Factory, 0x4 (hex))
  • 5G: BC:5C:4C:xx:xx:8B (Factory, 0x8004 (hex))

U-Boot

  • help
    MT7621 # help
    ?       - alias for 'help'
    bootm   - boot application image from memory
    elx_check      - check ELX image
    go      - start application at address 'addr'
    help    - print online help
    md      - memory display
    mdio   - Ralink PHY register R/W command !!
    mm      - memory modify (auto-incrementing)
    mw      - memory write (fill)
    nm      - memory modify (constant address)
    printenv- print environment variables
    reset   - Perform RESET of the CPU
    rf      - read/write rf register
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version
    

  • version
    MT7621 # version
    
    U-Boot 1.1.3 (Jan 19 2016 - 10:46:13)
    

  • printenv
    MT7621 # printenv
    bootcmd=tftp
    baudrate=57600
    ethaddr="BC:5C:4C:**:**:**"
    ramargs=setenv bootargs root=/dev/ram rw
    addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off
    addmisc=setenv bootargs $(bootargs) console=ttyS0,$(baudrate) ethaddr=$(ethaddr) panic=1
    flash_self=run ramargs addip addmisc;bootm $(kernel_addr) $(ramdisk_addr)
    kernel_addr=BFC40000
    u-boot=u-boot.bin
    load=tftp 8A100000 $(u-boot)
    u_b=protect off 1:0-1;era 1:0-1;cp.b 8A100000 BC400000 $(filesize)
    loadfs=tftp 8A100000 root.cramfs
    u_fs=era bc540000 bc83ffff;cp.b 8A100000 BC540000 $(filesize)
    test_tftp=tftp 8A100000 root.cramfs;run test_tftp
    ethact=Eth0 (10/100-M)
    language_code=jp
    hw_id=0107002d
    domain=1
    pincode=********
    wlanaddr=BC:5C:4C:**:**:**
    kver=1.20.0
    sn=12345678901234567890123456789012
    usboot=0
    bver=4.0.1.5
    dom2=1
    wanaddr=BC:5C:4C:**:**:**
    bootdelay=2
    filesize=52a000
    fileaddr=80A00000
    ipaddr=192.168.99.9
    serverip=192.168.99.8
    autostart=no
    bootfile=uImage_ELECOM-WRC-2533GHBK-I
    op_mode=0
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 1051/4092 bytes
    

  • tftpboot
    MT7621 # tftpboot
    
    netboot_common, argc= 1
    
    NetTxPacket = 0x87FE42C0
    
    KSEG1ADDR(NetTxPacket) = 0xA7FE42C0
    
    NetLoop,call eth_halt !
    
    NetLoop,call eth_init !
    Trying Eth0 (10/100-M)
    
    Waitting for RX_DMA_BUSY status Start... done
    
    ETH_STATE_ACTIVE!!
    Using Eth0 (10/100-M) device
    TFTP from server 192.168.99.8; our IP address is 192.168.99.9
    Filename 'uImage_ELECOM-WRC-2533GHBK-I'.
    
    TIMEOUT_COUNT=10,Load address: 0x80100000
    Loading: *
    

  • help elx_check
    MT7621 # help elx_check
    elx_check usage:
    elx_check <addr>        - check image in <addr>
    

Kernel

パスワードが掛けられている

  • uname -a
    # uname -a
    Linux localhost.localdomain 3.2.9 #3 SMP Wed Jan 25 16:24:22 CST 2017 mips GNU/Linux
    

  • cat /proc/version
    # cat /proc/version
    Linux version 3.2.9 (root@ubuntu) (gcc version 4.6.4 (Buildroot 2013.05) ) #3 SMP Wed Jan 25 16:24:22 CST 2017
    

  • cat /proc/cpuinfo
    # cat /proc/cpuinfo
    system type             : Mediatek MT7621 ver:1 eco:3
    machine                 : Ralink MT7621
    processor               : 0
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 583.68
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented        : mips16 dsp mt
    shadow register sets    : 1
    kscratch registers      : 0
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
    processor               : 1
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 583.68
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented        : mips16 dsp mt
    shadow register sets    : 1
    kscratch registers      : 0
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
    processor               : 2
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 583.68
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented        : mips16 dsp mt
    shadow register sets    : 1
    kscratch registers      : 0
    core                    : 1
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
    processor               : 3
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 583.68
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0000, 0x0000]
    ASEs implemented        : mips16 dsp mt
    shadow register sets    : 1
    kscratch registers      : 0
    core                    : 1
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/meminfo
    # cat /proc/meminfo
    MemTotal:         125868 kB
    MemFree:           82984 kB
    Buffers:            2820 kB
    Cached:            10300 kB
    SwapCached:            0 kB
    Active:             4272 kB
    Inactive:          11020 kB
    Active(anon):       2200 kB
    Inactive(anon):     1212 kB
    Active(file):       2072 kB
    Inactive(file):     9808 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:          2260 kB
    Mapped:             1864 kB
    Shmem:              1240 kB
    Slab:              15580 kB
    SReclaimable:        868 kB
    SUnreclaim:        14712 kB
    KernelStack:         808 kB
    PageTables:          400 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       62932 kB
    Committed_AS:     349940 kB
    VmallocTotal:    1048372 kB
    VmallocUsed:        7108 kB
    VmallocChunk:    1038468 kB
    

  • cat /proc/mtd
    # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 01000000 00010000 "ALL"
    mtd1: 00030000 00010000 "Bootloader"
    mtd2: 00010000 00010000 "Config"
    mtd3: 00010000 00010000 "Factory"
    mtd4: 009a0000 00010000 "Kernel"
    mtd5: 007d0000 00010000 "user"
    mtd6: 00200000 00010000 "TM_1"
    mtd7: 00200000 00010000 "TM_2"
    mtd8: 00180000 00010000 "manufacture"
    mtd9: 00010000 00010000 "backup"
    mtd10: 00080000 00010000 "storage"
    

  • ls -al /sys/class/leds/
    # ls -al /sys/class/leds/
    lrwxrwxrwx    1         0 Sep  1 00:10 PoE -> ../../devices/platform/leds-gpio/leds/PoE
    lrwxrwxrwx    1         0 Sep  1 00:00 2g_led -> ../../devices/platform/leds-gpio/leds/2g_led
    lrwxrwxrwx    1         0 Sep  1 00:00 5g_led -> ../../devices/platform/leds-gpio/leds/5g_led
    lrwxrwxrwx    1         0 Sep  1 00:00 wps_led -> ../../devices/platform/leds-gpio/leds/wps_led
    lrwxrwxrwx    1         0 Sep  1 00:00 power_led -> ../../devices/platform/leds-gpio/leds/power_led
    drwxr-xr-x   20         0 Sep  1 00:00 ..
    drwxr-xr-x    2         0 Sep  1 00:00 .
    

  • elecom_header –help
    # elecom_header --help
    usage:    head    [-h?]      -h This help
    -s    Source filename
    -d    Destination filename
    -x    Remove ELECOM Header
    -c    Customer Name
    -p    Product Name
    -v    Version
    

  • header –help
    # header --help
    usage:    head    [-h?]      -h This help
    -s    Source filename
    -d    Destination filename
    -a    Auto set parameter
    -t    Types:
    bootloader (1)
    kernel (3)
    apps (5)
    factoryapps (11)
    userconfig (7)
    langpack (13)
    cust_logo (15)
    cust_apps (17)
    -v    Version
    -x    Recovery MD5 file [-u Magickey]
    -r    Vendor ID
    -p    Product ID
    -m    Magic Key(32 bits)
    -c    Code Version
    

  • elecom_header -x wrc-2533ghbk-i_v1.20.bin
    header -x wrc-2533ghbk-i_v1.20.bin

    # elecom_header -x wrc-2533ghbk-i_v1.20.bin
    ### Remove Customer Header ####
    ------- Customer Header Info -------
    Customer Name : ELECOM
    Product  Name : WRC-2533GHBK-I
    Product  Version : 1.20
    ------------------------------
    Header-Remove finished, got file [wrc-2533ghbk-i_v1.20.bin] with size 5496960 bytes
    header: Return OK
    # header -x wrc-2533ghbk-i_v1.20.bin
    ### Decoding  image ####
    Decode source file [wrc-2533ghbk-i_v1.20.bin]
    ------- Header Info -------
    Vendor  id:  0x0107
    Product id:  0x002d
    Hardware id:  0x0107002d
    Version id:  3047
    Code Version:  1.20.0
    Type: 0x3 [kernel]
    comp_file_len:  5496832
    comp_file_sum:  0x0
    Header sum:  0x231
    Magic key:  0x30471688
    MD5 chksum:  82aceff9d45fa388673d28e1182f
    ------------------------------
    Decode finished, got file [wrc-2533ghbk-i_v1.20.bin.bin] with size 5496832 bytes
    header: Return OK
    

  • bootlog
    ===================================================================
    MT7621   stage1 code Mar 12 2015 14:43:30 (ASIC)
    CPU=500000000 HZ BUS=125000000 HZ
    ==================================================================
    Change MPLL source from XTAL to CR...
    do MEMPLL setting..
    MEMPLL Config : 0x11000000
    3PLL mode + External loopback
    === XTAL-40Mhz === DDR-1200Mhz ===
    PLL4 FB_DL: 0x7, 1/0 = 545/479 1D000000
    PLL2 FB_DL: 0xc, 1/0 = 531/493 31000000
    PLL3 FB_DL: 0xd, 1/0 = 514/510 35000000
    do DDR setting..[01F40000]
    Apply DDR3 Setting...(use default AC)
    0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
    --------------------------------------------------------------------------------
    0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1    1
    000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
    000F:|    0    0    0    0    1    1    1    1    1    1    1    1    1    1    0    0
    0010:|    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0
    0011:|    1    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0
    0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    DRAMC_DQSCTL1[0e0]=13000000
    DRAMC_DQSGCTL[124]=80000033
    rank 0 coarse = 15
    rank 0 fine = 72
    B:|    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0    0
    opt_dle value:8
    DRAMC_DDR2CTL[07c]=C287220D
    DRAMC_PADCTL4[0e4]=000022B3
    DRAMC_DQIDLY1[210]=0B0A080D
    DRAMC_DQIDLY2[214]=060A070A
    DRAMC_DQIDLY3[218]=0E090908
    DRAMC_DQIDLY4[21c]=0B090E0A
    DRAMC_R0DELDLY[018]=00001F1E
    ==================================================================
    RX      DQS perbit delay software calibration
    ==================================================================
    1.0-15 bit dq delay value
    ==================================================================
    bit|     0  1  2  3  4  5  6  7  8  9
    --------------------------------------
    0 |    11 6 9 9 8 6 9 6 3 9
    10 |    7 10 7 11 6 9
    --------------------------------------
    
    ==================================================================
    2.dqs window
    x=pass dqs delay value (min~max)center
    y=0-7bit DQ of every group
    input delay:DQS0 =30 DQS1 = 31
    ==================================================================
    bit     DQS0     bit      DQS1
    0  (1~56)28  8  (1~52)26
    1  (1~56)28  9  (2~60)31
    2  (1~58)29  10  (2~56)29
    3  (1~56)28  11  (1~54)27
    4  (1~56)28  12  (1~56)28
    5  (1~58)29  13  (1~56)28
    6  (1~57)29  14  (1~56)28
    7  (1~60)30  15  (1~57)29
    ==================================================================
    3.dq delay value last
    ==================================================================
    bit|    0  1  2  3  4  5  6  7  8   9
    --------------------------------------
    0 |    13 8 10 11 10 7 10 6 8 9
    10 |    9 14 10 14 9 11
    ==================================================================
    ==================================================================
    TX  perbyte calibration
    ==================================================================
    DQS loop = 15, cmp_err_1 = ffff0000
    dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
    dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
    DQ loop=15, cmp_err_1 = ffff01aa
    DQ loop=14, cmp_err_1 = ffff00aa
    dqs_perbyte_dly.last_dqdly_pass[1]=14,  finish count=1
    DQ loop=13, cmp_err_1 = ffff0082
    DQ loop=12, cmp_err_1 = ffff0000
    dqs_perbyte_dly.last_dqdly_pass[0]=12,  finish count=2
    byte:0, (DQS,DQ)=(9,8)
    byte:1, (DQS,DQ)=(8,8)
    DRAMC_DQODLY1[200]=88888888
    DRAMC_DQODLY2[204]=88888888
    20,data:89
    [EMI] DRAMC calibration passed
    
    ===================================================================
    MT7621   stage1 code done
    CPU=500000000 HZ BUS=125000000 HZ
    ===================================================================
    
    U-Boot 1.1.3 (Jan 19 2016 - 10:46:13)
    
    Board: Ralink APSoC DRAM:  128 MB
    relocate_code Pointer at: 87fb8000
    
    Config XHCI 40M PLL
    flash manufacture id: c2, device id 20 18
    find flash: MX25L12805D
    ============================================
    Ralink UBoot Version: 4.0.1.0
    ELX UBoot Version: 1.0.2
    --------------------------------------------
    ASIC 7621_MP (MAC to MT7530 Mode)
    DRAM_CONF_FROM: Auto-Detection
    DRAM_TYPE: DDR3
    DRAM bus: 16 bit
    Xtal Mode=3 OCP Ratio=1/4
    Flash component: SPI Flash
    Date:Jan 19 2016  Time:10:46:13
    ============================================
    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
    
    Please choose the operation:
    1: Load system code to SDRAM via TFTP.
    2: Load system code then write to Flash via TFTP.
    3: Boot system code via Flash (default).
    4: Entr boot command line interface.
    9: Load Boot Loader code then write to Flash via TFTP.                                                                                           0
    
    3: System Boot system code via Flash.
    ## Booting image at bfc50000 ...
    Image Name:   Linux Kernel Image
    Image Type:   MIPS Linux Kernel Image (lzma compressed)
    Data Size:    1852551 Bytes =  1.8 MB
    Load Address: 80001000
    Entry Point:  803027c0
    Verifying Checksum ... OK
    Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 803027c0) ...
    ## Giving linux memsize in MB, 128
    
    Starting kernel ...
    
    Linux version 3.2.9 (root@ubuntu) (gcc version 4.6.4 (Buildroot 2013.05) ) #3 SMP Wed Jan 25 16:24:22 CST 2017
    GCMP present
    bootconsole [early0] enabled
    CPU revision is: 0001992f (MIPS 1004Kc)
    Mediatek MT7621 ver:1 eco:3 running at 880.00 MHz
    Software DMA cache coherency
    Determined physical RAM map:
    memory: 08000000 @ 00000000 (usable)
    Initrd not found or empty - disabling initrd
    Zone PFN ranges:
    Normal   0x00000000 -> 0x00008000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00008000
    Detected 3 available secondary CPU(s)
    PERCPU: Embedded 7 pages/cpu @81103000 s4800 r8192 d15680 u32768
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
    Kernel command line:  console=ttyS0,57600 root=/dev/ram0 rootfstype=squashfs,jffs2
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    Writing ErrCtl register=00016041
    Readback ErrCtl register=00016041
    Memory: 124076k/131072k available (3122k kernel code, 6996k reserved, 703k data, 1792k init, 0k highmem)
    SLUB: Genslabs=9, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    Hierarchical RCU implementation.
    NR_IRQS:128
    gic: revision 3.0
    CPU0: status register was 11000000
    CPU0: status register now 11001800
    CPU0: status register frc 1100dc00
    console [ttyS0] enabled, bootconsole disabled
    console [ttyS0] enabled, bootconsole disabled
    Calibrating delay loop... 574.46 BogoMIPS (lpj=1148928)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU revision is: 0001992f (MIPS 1004Kc)
    Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    CPU revision is: 0001992f (MIPS 1004Kc)
    Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    CPU revision is: 0001992f (MIPS 1004Kc)
    Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    Brought up 4 CPUs
    Synchronize counters across 4 CPUs: done.
    NET: Registered protocol family 16
    MIPS: machine is Ralink MT7621
    before gpio setting:407ac
    after gpio setting:405ac
    release PCIe RST: RALINK_RSTCTRL = 3000000
    PCIE PHY initialize
    ***** Xtal 40MHz *****
    start MT7621 PCIe register access
    RALINK_RSTCTRL = 3000000
    RALINK_CLKCFG1 = 77ffeff8
    
    *************** MT7621 PCIe RC mode *************
    pcie_link status = 0x3
    RALINK_RSTCTRL= 3000000
    *** Configure Device number setting of Virtual PCI-PCI bridge ***
    RALINK_PCI_PCICFG_ADDR = 21007f2 -> 21007f2
    PCIE0 enabled
    PCIE1 enabled
    interrupt enable status: 300000
    Port 1 N_FTS = 1b105000
    Port 0 N_FTS = 1b105000
    config reg done
    init_rt2880pci done
    bio: create slab  at 0
    SCSI subsystem initialized
    pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
    pci 0000:00:01.0: BAR 0: can't assign mem (size 0x80000000)
    pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
    pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
    pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
    pci 0000:00:00.0: BAR 1: set to [mem 0x60200000-0x6020ffff] (PCI address [0x60200000-0x6020ffff])
    pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
    pci 0000:00:01.0: BAR 1: set to [mem 0x60210000-0x6021ffff] (PCI address [0x60210000-0x6021ffff])
    pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
    pci 0000:01:00.0: BAR 0: set to [mem 0x60000000-0x600fffff 64bit] (PCI address [0x60000000-0x600fffff])
    pci 0000:00:00.0: PCI bridge to [bus 01-01]
    pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
    pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
    pci 0000:02:00.0: BAR 0: set to [mem 0x60100000-0x601fffff 64bit] (PCI address [0x60100000-0x601fffff])
    pci 0000:00:01.0: PCI bridge to [bus 02-02]
    pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
    PCI: Enabling device 0000:00:00.0 (0004 -> 0006)
    PCI: Enabling device 0000:00:01.0 (0004 -> 0006)
    BAR0 at slot 0 = 0
    bus=0x0, slot = 0x0
    res[0]->start = 0
    res[0]->end = 0
    res[1]->start = 60200000
    res[1]->end = 6020ffff
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    BAR0 at slot 1 = 0
    bus=0x0, slot = 0x1
    res[0]->start = 0
    res[0]->end = 0
    res[1]->start = 60210000
    res[1]->end = 6021ffff
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    bus=0x1, slot = 0x0, irq=0x4
    res[0]->start = 60000000
    res[0]->end = 600fffff
    res[1]->start = 0
    res[1]->end = 0
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    bus=0x2, slot = 0x1, irq=0x18
    res[0]->start = 60100000
    res[0]->end = 601fffff
    res[1]->start = 0
    res[1]->end = 0
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    Switching to clocksource MIPS
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    UDP hash table entries: 128 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    4 CPUs re-calibrate udelay(lpj = 1167360)
    Load Ralink Timer0 Module
    Load Ralink Timer1 Module
    Load Ralink Timer2 Module
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    JFFS2 version 2.2 (NAND) (SUMMARY) (ZLIB) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    msgmni has been set to 242
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    serial8250: ttyS0 at MMIO 0x1e000c00 (irq = 26) is a 16550A
    serial8250: ttyS1 at MMIO 0x1e000e00 (irq = 28) is a 16550A
    loop: module loaded
    flash manufacture id: c2, device id 20 18
    MX25L12805D(c2 2018c220) (16384 Kbytes)
    mtd .name = raspi, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
    Creating 11 MTD partitions on "raspi":
    0x000000000000-0x000001000000 : "ALL"
    0x000000000000-0x000000030000 : "Bootloader"
    0x000000030000-0x000000040000 : "Config"
    0x000000040000-0x000000050000 : "Factory"
    0x000000050000-0x0000009f0000 : "Kernel"
    0x000000220000-0x0000009f0000 : "user"
    0x0000009f0000-0x000000bf0000 : "TM_1"
    0x000000bf0000-0x000000df0000 : "TM_2"
    0x000000df0000-0x000000f70000 : "manufacture"
    0x000000f70000-0x000000f80000 : "backup"
    0x000000f80000-0x000001000000 : "storage"
    rdm_major = 253
    IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
    Hooking IMQ after NAT on PREROUTING.
    Hooking IMQ before NAT on POSTROUTING.
    GMAC1_MAC_ADRH -- : 0x0000000c
    GMAC1_MAC_ADRL -- : 0x43288052
    Ralink APSoC Ethernet Driver Initilization. v3.1  512 rx/tx descriptors allocated, mtu = 1500!
    GMAC1_MAC_ADRH -- : 0x0000000c
    GMAC1_MAC_ADRL -- : 0x43288025
    PROC INIT OK!
    PPP generic driver version 2.4.2
    PPP BSD Compression module registered
    PPP Deflate Compression module registered
    PPP MPPE Compression module registered
    NET: Registered protocol family 24
    Registered button device:reset, gpio:16,code:408,index:10
    Registered button device:wps, gpio:18,code:529,index:12
    Registered button device:op_mode_1, gpio:13,code:263,index:7
    GACT probability on
    Mirror/redirect action on
    Simple TC action Loaded
    netem: version 1.3
    u32 classifier
    Performance counters on
    input device check on
    Actions configured
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (3750 buckets, 26250 max, 3750 max0, 30000 reserved)
    xt_time: kernel timezone is -0000
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP westwood registered
    NET: Registered protocol family 10
    ip6_tables: (C) 2000-2006 Netfilter Core Team
    IPv6 over IPv4 tunneling driver
    NET: Registered protocol family 17
    NET: Registered protocol family 2
    L2TP core driver, V2.0
    8021q: 802.1Q VLAN Support v1.8
    Freeing unused kernel memory: 1792k freed
    System Init version: 1.1 date: 1
    Setting up file systems ...
    Setting up /mnt/tmpfs directory with tmpfs/16384KB
    Setting up FLASH storage partition ...
    JFFS2 notice: (343) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    Setting up /apps directory ...apps is in FLASH ...
    Setting up loopback device ...
    FINISHED
    Start Normal Operation Mode ...
    ************************************************************************
    *                                ---ELX---                             *
    ************************************************************************
    
    KernelApp version: 1.20.0 build date: 2017/01/25 build time: 16:20:28
    cmd> ln: /sbin/./start_all: File exists
    Share memory created:  keyid 6888 shm_id 0 size 279(KB)
    Warning: dbox_destroy_share_memory p_dbox_cfg is NULL!
    nat_session_manager: module license 'unspecified' taints kernel.
    Disabling lock debugging due to kernel taint
    Start nat_session_reservation_init_driver
    __create_share_mem keyid 6888 shm_id 0
    FFFFFFFF:FFFFFFFF:FFFFFFFF:FFFFFFFF:FFFFFFFF:FFFFFFFF
    Raeth v3.1 (Tasklet)
    phy_free_head is 0x6c04000!!!
    phy_free_tail_phy is 0x6c05ff0!!!
    txd_pool=a73e4000 phy_txd_pool=073E4000
    ei_local->skb_free start address is 0x8703145c.
    free_txd: 073e4010, ei_local->cpu_ptr: 073E4000
    POOL  HEAD_PTR | DMA_PTR | CPU_PTR
    ----------------+---------+--------
    0xa73e4000 0x073E4000 0x073E4000
    
    phy_qrx_ring = 0x073c9000, qrx_ring = 0xa73c9000
    
    phy_rx_ring0 = 0x07332000, rx_ring0 = 0xa7332000
    GMAC1_MAC_ADRH -- : 0x0000000c
    GMAC1_MAC_ADRL -- : 0x43288025
    GDMA2_MAC_ADRH -- : 0x000000aa
    GDMA2_MAC_ADRL -- : 0xbbccdd20
    eth3: ===> VirtualIF_open
    CDMA_CSG_CFG = 81000000
    GDMA1_FWD_CFG = 20710000
    GDMA2_FWD_CFG = 20710000
    ra2880stop()...Done
    eth3: ===> VirtualIF_close
    Free TX/RX Ring Memory!
    FFFFFFFF:FFFFFFFF:FFFFFFFF:FFFFFFFF:FFFFFFFF:FFFFFFFF
    Raeth v3.1 (Tasklet)
    phy_free_head is 0x6d14000!!!
    phy_free_tail_phy is 0x6d15ff0!!!
    txd_pool=a6d10000 phy_txd_pool=06D10000
    ei_local->skb_free start address is 0x8703145c.
    free_txd: 06d10010, ei_local->cpu_ptr: 06D10000
    POOL  HEAD_PTR | DMA_PTR | CPU_PTR
    ----------------+---------+--------
    0xa6d10000 0x06D10000 0x06D10000
    
    phy_qrx_ring = 0x073e4000, qrx_ring = 0xa73e4000
    
    phy_rx_ring0 = 0x06d12000, rx_ring0 = 0xa6d12000
    GMAC1_MAC_ADRH -- : 0x0000bc5c
    GMAC1_MAC_ADRL -- : 0x4c****89
    eth3: ===> VirtualIF_open
    CDMA_CSG_CFG = 81000000
    GDMA1_FWD_CFG = 20710000
    GDMA2_FWD_CFG = 20710000
    GDMA2_MAC_ADRH -- : 0x0000bc5c
    GDMA2_MAC_ADRL -- : 0x4c****88
    eth3: ===> VirtualIF_open
    eth3: ===> VirtualIF_close
    GDMA2_MAC_ADRH -- : 0x0000bc5c
    GDMA2_MAC_ADRL -- : 0x4c****88
    eth3: ===> VirtualIF_open
    ADDRCONF(NETDEV_UP): br0: link is not ready
    device br_t.1 entered promiscuous mode
    device br_t entered promiscuous mode
    br0: port 1(br_t.1) entering forwarding state
    br0: port 1(br_t.1) entering forwarding state
    ADDRCONF(NETDEV_CHANGE): br0: link becomes ready
    br0: port 1(br_t.1) entering forwarding state
    device eth2 entered promiscuous mode
    br0: port 2(eth2) entering forwarding state
    br0: port 2(eth2) entering forwarding state
    br0: port 1(br_t.1) entering forwarding state
    br0: port 1(br_t.1) entering forwarding state
    device eth3 entered promiscuous mode
    br0: port 3(eth3) entering forwarding state
    br0: port 3(eth3) entering forwarding state
    
    ********************
    Initialize Radio_(24G) setting ...
    rd[0]==1
    OK
    
    Configuring Ralink WiFi device ...Wlan is in
    AP Mode
    CMD[insmod /lib/rlt_wifi.ko]
    ChipOpsMCUHook
    create [wsc_24g] proc!
    ChipOpsMCUHook
    create [wsc_5g] proc!
    CMD[cp /lib/7615_SingleSKU.dat /etc/Wireless/RT2860/7615_SingleSKU.dat]
    Copy single SKU file for 7615...
    CMD[cp /lib/7615_SingleSKU_BF.dat /etc/Wireless/RT2860/7615_SingleSKU_BF.dat]
    Copy single SKU BF file for 7615...
    CMD[ifconfig ra0 0.0.0.0 up]
    efuse_probe: efuse = 10000212
    MT7615BBPInit():BBP Initialization.....
    Band 0: valid=1, isDBDC=0, Band=2, CBW=1, CentCh/PrimCh=1/1, prim_ch_idx=0, txStream=2
    Band 1: valid=0, isDBDC=0, Band=0, CBW=0, CentCh/PrimCh=0/0, prim_ch_idx=0, txStream=0
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=1, LED_CMD=2!
    AndesLedEnhanceOP: Success!
    CMD[iwpriv ra0 set RadioOn=0]
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=0, LED_CMD=0!
    AndesLedEnhanceOP: Success!
    CMD[brctl addif br0 ra0]
    device ra0 entered promiscuous mode
    br0: port 4(ra0) entering forwarding state
    br0: port 4(ra0) entering forwarding state
    CMD[brctl addif br0 ra1]
    can't add ra1 to bridge br0: Invalid argument
    CMD[mkdir -p /etc/wsc_xml]
    CMD[ln -s /apps/etc/xml/* /etc/wsc_xml]
    CMD[route add -net 239.0.0.0 netmask 255.0.0.0 br0]
    CMD[wscd -i ra0 -m 1 -w /etc/wsc_xml -a 192.168.2.1&]
    CMD[iwpriv ra0 set RadioOn=1]
    br0: port 2(eth2) entering forwarding state
    br0: port 1(br_t.1) entering forwarding state
    br0: port 3(eth3) entering forwarding state
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=1, LED_CMD=2!
    AndesLedEnhanceOP: Success!
    CMD[iwpriv ra0 set WscConfMode=7]
    CMD[iwpriv ra0 set WscSetupLock=0]
    CMD[iwpriv ra0 set WscMaxPinAttack=5]
    CMD[iwpriv ra0 set HtMIMOPS=3]
    CMD[iwpriv ra0 set TxPowerFeatureCtrl=1:0:15]
    Interface doesn't accept private ioctl...
    set (8BE2): Invalid argument
    CMD[iwpriv ra0 set ChannRTMPSetLEDStatus: before AndesLedEnhanceOP , status=0, LED_CMD=0!
    el=11]
    AndesLedEnhanceOP: Success!
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=1, LED_CMD=2!
    AndesLedEnhanceOP: Success!
    Reload iwevent...
    send 15 to pid:682
    CMD[iwevent &]
    Waiting for Wireless Events from interfaces...
    
    ********************
    Initialize Radio_(5G) setting ...
    rd[1]==1
    OK
    Configuring 5G radio setting ...
    
    Configuring Ralink WiFi device ...Wlan is in
    AP Mode
    CMD[cp /lib/7615_SingleSKU.dat /etc/Wireless/RT2860/7615_SingleSKU.dat]
    Copy single SKU file for 7615...
    CMD[cp /lib/7615_SingleSKU_BF.dat /etc/Wireless/RT2860/7615_SingleSKU_BF.dat]
    Copy single SKU BF file for 7615...
    CMD[ifconfig rai0 0.0.0.0 up]
    efuse_probe: efuse = 10000212
    MT7615BBPInit():BBP Initialization.....
    Band 0: valid=1, isDBDC=0, Band=2, CBW=1, CentCh/PrimCh=1/1, prim_ch_idx=0, txStream=2
    Band 1: valid=0, isDBDC=0, Band=0, CBW=0, CentCh/PrimCh=0/0, prim_ch_idx=0, txStream=0
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=1, LED_CMD=2!
    AndesLedEnhanceOP: Success!
    br0: port 4(ra0) entering forwarding state
    CMD[iwpriv rai0 set RadioOn=0]
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=0, LED_CMD=0!
    AndesLedEnhanceOP: Success!
    CMD[brctl addif br0 rai0]
    device rai0 entered promiscuous mode
    br0: port 5(rai0) entering forwarding state
    br0: port 5(rai0) entering forwarding state
    CMD[mkdir -p /etc/wsc_xml]
    CMD[ln -s /apps/etc/xml/* /etc/wsc_xml]
    ln: /etc/wsc_xml/WFAWLANConfigSCPD.xml: File exists
    CMD[route add -net 239.0.0.0 netmask 255.0.0.0 br0]
    route: SIOCADDRT: File exists
    CMD[wscd -i rai0 -m 1 -w /etc/wsc_xml -a 192.168.2.1&]
    CMD[iwpriv rai0 set RadioOn=1]
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=1, LED_CMD=2!
    AndesLedEnhanceOP: Success!
    CMD[iwpriv rai0 set WscConfMode=7]
    CMD[iwpriv rai0 set WscSetupLock=0]
    CMD[iwpriv rai0 set WscMaxPinAttack=5]
    CMD[iwpriv rai0 set HtMIMOPS=3]
    CMD[iwpriv rai0 set TxPowerFeatureCtrl=1:0:15]
    Interface doesn't accept private ioctl...
    set (8BE2): Invalid argument
    CMD[iwpriv rai0 set Channel=36]
    Reload iwevent...
    send 15 to pid:985
    CMD[iwevent &]
    Waiting for Wireless Events from interfaces...
    
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=0, LED_CMD=0!
    AndesLedEnhanceOP: Success!
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=1, LED_CMD=2!
    AndesLedEnhanceOP: Success!
    Start wps_led driver
    Ebtables v2.0 registered
    __create_share_mem keyid 6888 shm_id 0
    __create_share_mem keyid 6888 shm_id 0
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=0, LED_CMD=0!
    AndesLedEnhanceOP: Success!
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=1, LED_CMD=2!
    AndesLedEnhanceOP: Success!
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=0, LED_CMD=0!
    AndesLedEnhanceOP: Success!
    RTMPSetLEDStatus: before AndesLedEnhanceOP , status=1, LED_CMD=2!
    AndesLedEnhanceOP: Success!
    br0: port 5(rai0) entering forwarding state
    

2020年買ったもの

2020年買ったもの

これは mstdn.maud.io Advent Calendar 2020 5日目の記事です。
最近記事書いてなかったこともあり、何か書きたいなーと思っていたところにMastodonでアドカレの話が出ていたので参加させていただくことにしました。
何を書くか、OpenWrtその他で迷っていましたが今年買ったものを書いていきます。見直したら結構買っていた。
一部細々したものは省いてます。
MastodonのTootを埋め込みできなかった(WordPress側の問題)ので文字ばかりなのは勘弁…

雑多

Lenovo X250(中古)

2月半ば、秋葉原のPCショップ キャプテンで別途ACアダプタと併せて購入。
既存のX230(これも中古)のバッテリがかなり消耗しており、30分程度しかもたない状況になっていたため購入。当日4万程度の予算で秋葉原を徘徊して決めた。

miniDP – VGA/HDMI/DVI変換アダプタ

これ
2月半ば購入。
当時OSC 2020 Tokyo/Springが開催目前に迫っており、その前の東京開催の時に東海道らぐのLTでX230をプロジェクタに繋げられずアダプタを急遽拝借して発表したため、今度は自前で用意しようと確保。
しかし、その直後新型コロナウイルスの影響でOSCは開催中止に…。

Corsair ML120 Pro (Red) x2個

これ
2月半ば過ぎ購入。
メイン機ケース (Sharkoon BD28) のリアファンが既に死にかけていて、まともに回らない上に大きいノイズを発するため交換。ついでに見た目を揃えるためフロント側のファンも交換した。

GeForce GTX1660Super (ZOTAC)

これ
2月末購入。
メイン機で使用していたGTX960が少々厳しく感じるようになっていたため、思い切って購入。GTX960はそこそこカードが長かったが、今度のものは比較的短いので扱いやすい。性能的にもいくらか向上して満足。

I-O DATA KH2750V-UHD

これ
3月末購入。
それまで手持ちのモニタがAcer G245HAbmid(24インチFHD)とIIYAMA PLE2008HDS(20インチWXGA++)で使用していたものの、さらに大きいモニタへの憧れがあり思い切って購入。FHD超を求めつつ特に4K UHDである必要はなかったものの、秋葉原で徘徊して考えた結果このモニタに。
これと24インチの構成に置き換え、20インチはサーバ専用モニタになった。

Logicool G502RGB + BUFFALO BSKBCG305BK

これこれ
4月末購入。
それまで使用していた旧G502が頻繁にチャタリングによる誤クリックを起こすようになっていたことと、BUFFALOの同シリーズ旧モデルのキーボードが酷使で多数のキートップが削れていたので更新。
ちなみに、新しいG502の裏面のフタが何故か平らではなく机の上でフラフラするため、旧G502からフタを流用した。

Logicool G633s

これ
4月末購入。
長らくG430を使用していたものの、6年経過してイヤーパッドも本体プラ部分もボロボロになっており、さすがに買い替えようとなったもの。
当初は高音域が硬い感じがしたものの、イコライザの調整と使用時間を重ねたことでいい感じに。
購入前はG430と同様のUSBドングルが付属すると勝手に思い込んでいた(実際はUSBで本体直結)。

DELL P2720D

これ
5月初め購入。
3月購入のKH2750V-UHDをメインのモニタとして使っていたものの、27インチでは4Kのメリットがあまり無く、漫画サイトなどブラウザで開くコンテンツによっては大量のメモリを取られること、Windows側の文字などの大きさ設定に絡んでか不穏な挙動をすることがあることから、WQHD程度が妥当と判断して新たに確保。
その後KH2750V-UHDは一旦放出を考えたものの、その後机を買い替えた際にサブモニタとして再度活用(後述)。

Panasonic DMP-BD90(BDプレーヤー)

これ
5月末購入。
この頃からアニメのBDなど購入するようになり、同時に再生用として確保したもの。PC用のBDドライブと少し迷ったものの、DRM絡みでソフト買い替えなどが面倒に思えたので単体のプレーヤーを選択。

HDMI音声分離器

これ
6月末購入。
前述の通りBDプレーヤーを購入してスピーカーを搭載するG245HAbmidに繋いで視聴していたものの、どうしてもヘッドホンで聞きたいため確保。USB電源であるものの、PanasonicのプレーヤーがUSB端子を搭載しているので丁度良い。
ちなみに、3.5mmジャックの出力は本来LINE出力的なものであってヘッドホンの直接駆動は想定しておらず、その場合の音量は小さめ。

Anker PowerPort I PD + ELECOM USB-PD対応C-Cケーブル(0.5m)

これこれ
6月末購入。
それまではスマホをPCからUSB miniBケーブルなどで充電していたものの、どうしても充電速度が遅かったりするのでそろそろまともな充電器にしようと思い立って確保。

謎の激安1602 LCD(5個セット)

これ
7月初め購入。
あまりにも安いので以前から興味があり、思い切って確保。購入したのは黄緑で、今はI2C変換基板もセットらしいが当時はLCD単体。SunlikeのSC1602AではなくZettlerのACM1602Kの寸法と大体同じ模様。
ちなみに仕様書なんてものは無い。
記事トップの写真はこのLCDで表示させたもの。

メイン機新パーツ(CPU, MB, RAM, SSD)

これこれこれこれ
7月末購入。
Skylakeだったメイン機の組み換えをついに思い立って確保。どうせならということで第10世代Core i。
当初はそれまでCore i7 6700だったので同じくi7を考えていたものの、末代 (mstdn.maud.io) で「第10世代Core i7価格が高すぎるし、パフォーマンス的にCore i5くらいで問題ない」というような趣旨のアドバイスをもらったのでCore i5 10500を選定。結果として、コア数もスレッド数も増えたし体感的に快適そのもので、かなり満足。
CPUクーラーは過去にビルド鯖用として購入した後Ryzen環境に組み替えお役御免となっていた、サイズの白虎を流用。メモリは8GB x2をそれまで使っていたものの、どうせならとこれも16GB x2にした。
旧構成はほぼそのまま大破鯖へ。

島忠 スライド書棚 プラス 80M NA(本棚)

これ
9月初め購入。
念願の本棚。金欠もあり長らく保留していたものの、新型コロナウイルスに絡んだ特別給付金が入ったことで思い切って購入。それまで段ボール箱に押し込んだままだった大量の本がようやく解放された。
コンパクトながら、スライド棚がある隣のデッドスペースになりやすい空間には扉裏にも棚があるので大容量。

KLEVV DDR4-2666 16GB x2

これ
9月初め購入。
大破鯖(Web, Mastodon, Jenkins, Wiki, 録画)用。それまではメイン機の更改の際に押し出された8GB x2を使用していたものの、VMが増えてきて逼迫してきたため確保。一気に容量2倍で精神的な安心も2倍。
KLEVVのRAMは初めてだったものの、現在安定稼働中。ただしCPU (Core i7 6700) 側の制限によりDDR4-2133動作。

家族用PCのパーツ一式
(CPU, MB, SSD, HDD, ケース, モニタ, 電源タップ, GbEスイッチ)

9月末購入。
色々なノリとかで、自分で費用持って家族用PC組もうと思い立ったもの。両親はそれぞれノートPCを持っているものの、第2世代や第3世代のCore i故に既に性能的に買い替え目前となっているのと、どうせ家で使うのなら大きいモニタがいいのではと。置き場所はあまりスペースを取りたくないだろうということ、圧迫感がない方が良いだろうということでスリムケースを選択。このケースは少々クセがあったので、後日別途記事を書きたい。
RAMとOS (Windows 10 Pro)は手元に余りがあるので流用してそれ以外を購入。CPUクーラーは当初CPU付属のリテールクーラーを使ったものの、静音化と冷却力向上のため後日サイズの手裏剣2へ交換。CPUソケット周辺のヒートシンクやメモリとの干渉は無く良い感じ。ついでにフロントの9cm角ファンも交換した。
モニタはDPケーブルが付属しなかったため、急遽別途購入。設置予定の場所は3口の電源タップをいくつも組み合わせるなどしてぐちゃぐちゃになっていたので、10口のタップを確保して整理。また、両親が以前NASを買ってきた際一緒に購入したスイッチがFEのものだったので、今回GbEのものに交換。
組立とWindowsのセットアップはこちらで済ませたが、初代Core i3を使った身からすると現行Core i3はもう別物としか言いようが無かった。コア数とスレッド数はそれぞれ2倍だし体感的な性能も大きく違う…。原神も30fpsで設定詰めればそれなりに動いた。


システムデスク ブリザ12059ヒキダシ MBR(机)+サンワサプライ CB-CT7(配線トレイ)

これこれ
10月末購入。
これも念願だった新しい机。それまで小学生の頃から使い続けた学習机だった(そもそもは父親氏の伝手からのもらい物)が、27+24インチのモニタ2台でもかなり狭かった為、臨時で多少の収入があったことから思い立って購入した。
当初島忠の机で考えたりしていたものの、配線を収納できる場所が裏面からしかアクセスできないなどの問題から、配線トレイを別途取り付けて対処することにして、ニトリのこのシリーズになった。ただ、当初はブラウンで引き出し無し、奥行59cmのものを考えていたが売り切れで購入できず、残っていたのが引き出し付きで奥行70cmという一番上の(価格が高い)バージョンのみだった。白は目が疲れるので避けたかった。
シリーズ内のワゴンも一緒に購入。
組み立ては一人で行ったけど、天板部分があまりにも重くてかなりしんどかった。マニュアルには2人組立と書かれているのでそりゃそう。
せっかく広くなったからと、27インチモニタ2枚にするために一旦箱に片付けていたKH2750V-UHDを引っ張り出してサブモニタとして4K UHDではなくWQHDで使うことにした。
配線トレイは当初机の幅が大きいことからLサイズを考えていたものの、価格の関係でSサイズを購入。結果的に、Lサイズだとワゴンがぶつかる可能性がある為Sサイズが丁度良かった。

書籍 / ディスク

ちょっと量が多いのでリストで。
ダンまちは今年ゼロから一気にハマりました。盾の勇者の成り上がりとOnly Sense Onlineは長らく購入途絶えていたのを再開。大体本棚が無くて段ボールに詰め込んだままだったせい。

書籍

  • ダンジョンに出会いを求めるのは間違っているだろうか 1~16(5月末, 6月初め, 7月初め)
  • ダンジョンに出会いを求めるのは間違っているだろうか 外伝 ソード・オラトリア10~12(6月初め)
  • 盾の勇者の成り上がり 15~17(9月半ば, 9月末)
  • Only Sense Online 12, 14~19(9月初め, 12月初め)
  • ソードアート・オンライン 24, 25(8月半ば, 12月初め)
  • 左手のための二重奏 1, 2(8月半ば)
  • アクタージュ 1~12(8月半ば過ぎ)
  • 蒼き鋼のアルペジオ 18~20(12月初め)
  • q.天上の音楽 1(12月初め)
  • 君は冥土様。 1(10月末)

ディスク

  • Kalafina 光の旋律(11月半ば)
  • RAISE A SUILEN Sacred world(11月半ば)
  • ダンジョンに出会いを求めるのは間違っているだろうか(アニメ2期)BD 1~4(5月末)
  • ダンジョンに出会いを求めるのは間違っているだろうか オリオンの矢 BD(6月末)
  • 劇場版ハイスクール・フリート 完全生産限定版 BD(11月半ば)

ルータ

これも量が多いのでリストで。
圧倒的ELECOM率。TL-R600VPN v4以外は全て中古。

  • tp-link TL-R600VPN v4(2月末)
  • ELECOM WRC-1167GS2-B(3月初め)
  • ELECOM WRC-2533GST2(5月半ば)
  • ELECOM WRC-1167GST2(6月末)
  • ELECOM WRC-1750GHBK(7月初め)
  • ELECOM WRC-1750GS/GSV(7月半ば)
  • ELECOM WAB-I1750-PS(7月末)



最後に

最初に書いたとおり、いざ見直してみたら結構な量を買っていました。
来年は机とか本棚などが無いとはいえ、多少押さえて貯金に回したいところ。
アドカレ、明日は xnuꝿɐℲ 氏です。

TL-R600VPN v4 GPIOメモ

# kernel
18040000: 00AAFDC4
0: O	1: O	2: I	3: O	4: O	5: O	6: I	7: I	8: I	9: O	10-15: I	16: O	17: I	18: O	19: I	20: O	21: I	22: O
18040008: 00BFFFD4
0: 0	1: 0			3: O	4: 1	5: 0							9: 1				16: 1			18: 1			20: 1			22: 0

# u-boot
1804002C: 21000073
0: ?		1: GPIO		2: GPIO		3: MDC (33)
18040030: 00000020
4: MDO (32)	5: GPIO		6: GPIO		7: GPIO
18040034: 00000000
8: GPIO		9: GPIO		10: GPIO	11: GPIO
18040038: 00000000
12: GPIO	13: GPIO	14: GPIO	15: GPIO
1804003C: 00000016
16: SOUT (22)	17: GPIO	18: GPIO	19: GPIO
18040040: 00000000
20: GPIO	21: GPIO	22: GPIO	23: GPIO
18040044: 00000f80
RES		RES		UART_SIN: 15	SPI_DATA_IN: -
18040048: 80808080

1804004C: 80808080
RES
18040050: 00048080
RES		MII_GE1_MDI: 4
18040054: 80808080

18040058: 80808080

1804005C: 80808080

18040060: 80808080
18040064: 80808080
18040068: 80808080
1804006C: 00000082
DISABLE_JTAG: y

WXR-2533DHP2 pinmux ctl_reg

確認の為取得 devmem2コマンドがメーカーファームに存在してはいたが何となくBusyBoxをipq806xのSDKを使用してコンパイルし投入して使用した

WXR-2533DHPは以下の記事を参照
WXR-2533DHP pinmux ctl_reg

root@AP6084BD****28:~# echo -e "pin\treg\t\tval"; for p in $(seq 0 68); do print
f "%2d\t0x801%02x0\t" $p $p; ./busybox devmem 0x801$(printf "%02x" $p)0; done
pin	reg			val
0	0x801000	0x000000C0
1	0x801010	0x000002C0
2	0x801020	0x000000C0
3	0x801030	0x00000200
4	0x801040	0x00000001
5	0x801050	0x00000001
6	0x801060	0x00000003
7	0x801070	0x00000203
8	0x801080	0x00000203
9	0x801090	0x00000203
10	0x8010a0	0x00000344
11	0x8010b0	0x00000344
12	0x8010c0	0x00000144
13	0x8010d0	0x00000144
14	0x8010e0	0x000000C5
15	0x8010f0	0x00000203
16	0x801100	0x00000203
17	0x801110	0x00000003
18	0x801120	0x00000105
19	0x801130	0x00000105
20	0x801140	0x00000107
21	0x801150	0x00000145
22	0x801160	0x00000203
23	0x801170	0x00000203
24	0x801180	0x00000203
25	0x801190	0x00000203
26	0x8011a0	0x00000200
27	0x8011b0	0x000000C8
28	0x8011c0	0x000000C8
29	0x8011d0	0x000000C8
30	0x8011e0	0x000000C8
31	0x8011f0	0x000000C8
32	0x801200	0x000000C8
33	0x801210	0x00000301
34	0x801220	0x00000304
35	0x801230	0x00000304
36	0x801240	0x00000304
37	0x801250	0x00000304
38	0x801260	0x00000304
39	0x801270	0x00000307
40	0x801280	0x00000306
41	0x801290	0x00000306
42	0x8012a0	0x00000306
43	0x8012b0	0x00000306
44	0x8012c0	0x00000306
45	0x8012d0	0x00000306
46	0x8012e0	0x00000306
47	0x8012f0	0x00000306
48	0x801300	0x00000200
49	0x801310	0x00000001
50	0x801320	0x00000001
51	0x801330	0x000000C8
52	0x801340	0x000000C8
53	0x801350	0x00000200
54	0x801360	0x00000003
55	0x801370	0x00000003
56	0x801380	0x00000003
57	0x801390	0x00000003
58	0x8013a0	0x00000003
59	0x8013b0	0x000000C8
60	0x8013c0	0x000000C8
61	0x8013d0	0x000000C8
62	0x8013e0	0x000000C8
63	0x8013f0	0x00000200
64	0x801400	0x00000003
65	0x801410	0x00000003
66	0x801420	0x00000001
67	0x801430	0x00000003
68	0x801440	0x00000203