作者別: とーふ

WN-AX1167GR2 bootnum, debugflagメモ

WN-DX1167Rとそれぞれ格納場所が同じ

root@WN-AX1167GR2:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 07f80000 00020000 "ALL"
mtd1: 00100000 00020000 "Bootloader"
mtd2: 00100000 00020000 "Ubootenv"
mtd3: 00100000 00020000 "Factory"
mtd4: 03200000 00020000 "firmware"
mtd5: 00100000 00020000 "Config"
mtd6: 03200000 00020000 "firmware_2"
mtd7: 03078908 00020000 "rootfs"
mtd8: 00100000 00020000 "Config_2"
mtd9: 00100000 00020000 "persist"
mtd10: 01480000 00020000 "Backup"
mtd11: 00100000 00020000 "SecondBoot"

bootnum

0x4

root@WN-AX1167GR2:~# mstc_persist read bootnum
2
root@WN-AX1167GR2:~# hexdump -n 128 -C /dev/mtd9
00000000  1b 05 ce 17 02 00 00 00  5d 4b 00 00 66 11 c7 bc  |........]K..f...|
00000010  5d 4b 00 00 66 11 c7 bc  00 00 00 00 00 00 00 00  |]K..f...........|
00000020  00 00 00 00 00 00 00 00  ff ff ff ff ff ff ff ff  |................|
00000030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000080
root@WN-AX1167GR2:~# mstc_persist write bootnum 1
Unlocking persist ...
root@WN-AX1167GR2:~# hexdump -n 128 -C /dev/mtd9
00000000  1b 05 ce 17 01 00 00 00  5d 4b 00 00 66 11 c7 bc  |........]K..f...|
00000010  5d 4b 00 00 66 11 c7 bc  00 00 00 00 00 00 00 00  |]K..f...........|
00000020  00 00 00 00 00 00 00 00  ff ff ff ff ff ff ff ff  |................|
00000030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000080

debugflag

0xFE75

root@WN-AX1167GR2:~# sys debugflag
DebugFlag: 0
root@WN-AX1167GR2:~# hexdump -n 128 -C -s $((0xFE00)) /dev/mtd3
0000fe00  4d 69 74 72 61 73 74 61  72 00 54 65 63 68 6e 6f  |Mitrastar.Techno|
0000fe10  6c 6f 67 79 20 43 6f 72  70 2e 00 00 00 00 00 00  |logy Corp.......|
0000fe20  4d 69 43 41 50 2d 33 33  34 30 43 00 00 00 00 00  |MiCAP-3340C.....|
0000fe30  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0000fe40  31 39 35 36 30 35 32 37  00 00 00 00 00 00 00 00  |19560527........|
0000fe50  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0000fe60  53 30 39 30 59 30 30 30  30 30 30 30 30 00 00 13  |S090Y00000000...|
0000fe70  49 55 aa 00 04 00 ff ff  5a 59 ff ff 00 00 00 00  |IU......ZY......|
0000fe80
root@WN-AX1167GR2:~# sys debugflag 1
PASS
root@WN-AX1167GR2:~# hexdump -n 128 -C -s $((0xFE00)) /dev/mtd3
0000fe00  4d 69 74 72 61 73 74 61  72 00 54 65 63 68 6e 6f  |Mitrastar.Techno|
0000fe10  6c 6f 67 79 20 43 6f 72  70 2e 00 00 00 00 00 00  |logy Corp.......|
0000fe20  4d 69 43 41 50 2d 33 33  34 30 43 00 00 00 00 00  |MiCAP-3340C.....|
0000fe30  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0000fe40  31 39 35 36 30 35 32 37  00 00 00 00 00 00 00 00  |19560527........|
0000fe50  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0000fe60  53 30 39 30 59 30 30 30  30 30 30 30 30 00 00 13  |S090Y00000000...|
0000fe70  49 55 aa 00 04 01 ff ff  5a 59 ff ff 00 00 00 00  |IU......ZY......|
0000fe80
広告

WN-AX1167GR2

I-O DATAのMT7621を搭載する(と予想される)現行ミドルレンジ機として、以前より気になっていたもの。某所で2k弱の出品があり、衝動的に購入してしまった。

Switch

zone WAN LAN
port
(WN-AX1167GR2)
インターネット (LAN番号刻印無し)
port
(MT7530)
port0 port1 port2 port3 port4

MAC

  • LAN: 34:76:C5:xx:xx:B0 (Ubootenv, ethaddr (text) / Factory, 0xE000 (hex))
  • WAN: 34:76:C5:xx:xx:B2 (Factory, 0xE006 (hex))
  • 2.4G: 34:76:C5:xx:xx:B0 (Factory, 0x4 (hex))
  • 5G: 34:76:C5:xx:xx:B1 (Factory, 0x8004 (hex))

U-Boot

5chの情報を参考に強引にKernelへログインしたうえでブート時のmtdロックを回避、
sys debugflag 1
を設定してデバッグモードを有効化しZ-Loaderを停止できるように変更。再度ブート時にZ-Loaderに入り、
ATGU
でU-Bootへ移動する

log:

U-Boot 1.1.3 (Dec  9 2016 - 10:20:35)

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

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

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


Z-LOADER V1.24 | 12/09/2016 10:20:37


..Hit ESC key to stop autoboot: 1
ZLB> 
ATGO              boot up the whole system
ATGU              go back to U-Boot command line
ATUR              upgrade ras image by console
ATUF              upgrade factory by console
ATNR    x,y       upgrade image by TFTP (x=type[1:ras, 2:bootloader, 3:config, 4:romd 6:factory], y=filename)
ATUX              upgrade bootloader
ATBT    x         block0 write enable (1=enable, 0=disable)
ATEN    x,(y)     set BootExtension Debug Flag (y=password)
ATSE    x         show the seed of password generator
ATWZ    a,(b,c,d) write MAC , Country code, EngDbgFlag, MAC Quantity to FLASH
ATSH              dump manufacturer related data in FLASH
ATBU              dump manufacturer related data in working buffer
ATCB              copy FLASH MRD to working buffer
ATSN    x         set serial number to flash
ATSB              save working buffer to FLASH
ATQY    x         set MAC Quantity to working buffer
ATFL    x         set EngDebugFlag to working buffer
ATCO    x         set country code to working buffer
ATSR              reset
ATRT    (x,y,z,u) RAM read/write test (x=level, y=start addr, z=end addr, u=interations)
ATRM              restore default MRD
ATBR              reset to default Romfile
ATER              erase ROM-D data
ATHV    x         set hardware version to flash
ATGP    x,y       led control
ZLB> ATGU


=>## Application terminated, rc = 0x0

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.                                                                  4 
You choosed 4
                                                                                                                           0 

   
4: System Enter Boot Command Line Interface.

U-Boot 1.1.3 (Dec  9 2016 - 10:20:35)
MSTC #

help

MSTC # help
Unknown command 'help' - try 'help'

version

MSTC # version
Unknown command 'version' - try 'help'

printenv

MSTC # printenv
bootcmd=tftp
ipaddr=10.10.10.123
serverip=10.10.10.3
serialnum=BCV0003117O5
countrycode=EA
ethaddr=34:76:C5:**:**:B0
nfLicense=************
wifi2ssid1=IODATA-****b0-2G
wifi2ssid2=IO-Guest-****b0-2G
wifi1ssid1=IODATA-****b0-5G
wifiwpapsk=*************
wifiwpspin=********
wifi1ssid2=IO-Guest-****b0-5G
stdin=serial
stdout=serial
stderr=serial
ethact=Eth0 (10/100-M)

Environment size: 365/131068 bytes

tftp

MSTC # tftp

 KSEG1ADDR(NetTxPacket) = 0xA7FE2FC0 

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 
Trying Eth0 (10/100-M)

 ETH_STATE_ACTIVE!! 
*** Warning: no boot file name; using 'test.bin'
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80200000
Loading: *
Abort

Kernel

パスワードが設定されており、ログイン不可。
5chの情報を基に強引にログインし、情報を引き出し。

uname -a

root@WN-AX1167GR2:~# uname -a
Linux WN-AX1167GR2 3.10.14 #1 SMP Mon Jun 24 12:41:36 CST 2019 mips GNU/Linux

cat /proc/version

root@WN-AX1167GR2:~# cat /proc/version
Linux version 3.10.14 (*******@srv17) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 SMP Mon Jun 24 12:41:36 CST 2019

cat /proc/cpuinfo

root@WN-AX1167GR2:~# cat /proc/cpuinfo
system type             : MT7621
machine                 : Unknown
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: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VPE                     : 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: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VPE                     : 1
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: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 1
VPE                     : 0
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: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
core                    : 1
VPE                     : 1
VCED exceptions         : not available
VCEI exceptions         : not available

cat /proc/meminfo

root@WN-AX1167GR2:~# cat /proc/meminfo
MemTotal:         125220 kB
MemFree:           72232 kB
Buffers:            5508 kB
Cached:            17316 kB
SwapCached:            0 kB
Active:             8824 kB
Inactive:          16244 kB
Active(anon):       3172 kB
Inactive(anon):     1248 kB
Active(file):       5652 kB
Inactive(file):    14996 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          2272 kB
Mapped:             2476 kB
Shmem:              2168 kB
Slab:              12016 kB
SReclaimable:       1820 kB
SUnreclaim:        10196 kB
KernelStack:         528 kB
PageTables:          328 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       62608 kB
Committed_AS:       7996 kB
VmallocTotal:    1048372 kB
VmallocUsed:       11356 kB
VmallocChunk:     987852 kB

cat /proc/mtd

root@WN-AX1167GR2:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 07f80000 00020000 "ALL"
mtd1: 00100000 00020000 "Bootloader"
mtd2: 00100000 00020000 "Ubootenv"
mtd3: 00100000 00020000 "Factory"
mtd4: 03200000 00020000 "firmware"
mtd5: 00100000 00020000 "Config"
mtd6: 03200000 00020000 "firmware_2"
mtd7: 03078908 00020000 "rootfs"
mtd8: 00100000 00020000 "Config_2"
mtd9: 00100000 00020000 "persist"
mtd10: 01480000 00020000 "Backup"
mtd11: 00100000 00020000 "SecondBoot"

ubus call system board

root@WN-AX1167GR2:~# ubus call system board
{
        "kernel": "3.10.14",
        "hostname": "WN-AX1167GR2",
        "system": "MT7621",
        "model": "MiCAP-3323C",
        "release": {
                "distribution": "OpenWrt",
                "version": "1.21.001",
                "revision": "unknown",
                "codename": "barrier_breaker",
                "target": "ramips\/generic",
                "description": "OpenWrt Barrier Breaker 1.21.001"
        }
}

fw_printenv

root@WN-AX1167GR2:~# fw_printenv
bootcmd=tftp
ipaddr=10.10.10.123
serverip=10.10.10.3
stdin=serial
stdout=serial
stderr=serial
serialnum=BCV0003117O5
countrycode=EA
ethaddr=34:76:C5:**:**:B0
nfLicense=************
wifi2ssid1=IODATA-****b0-2G
wifi2ssid2=IO-Guest-****b0-2G
wifi1ssid1=IODATA-****b0-5G
wifiwpapsk=*************
wifiwpspin=********
wifi1ssid2=IO-Guest-****b0-5G

switch –help

root@WN-AX1167GR2:~# switch --help
Usage:
 switch acl etype add [ethtype] [portmap]              - drop etherytype packets
 switch acl dip add [dip] [portmap]                    - drop dip packets
 switch acl dip meter [dip] [portmap][meter:kbps]      - rate limit dip packets
 switch acl dip trtcm [dip] [portmap][CIR:kbps][CBS][PIR][PBS] - TrTCM dip packets
 switch acl port add [sport] [portmap]           - drop src port packets
 switch acl L4 add [2byes] [portmap]             - drop L4 packets with 2bytes payload
 switch add [mac] [portmap]                  - add an entry to switch table
 switch add [mac] [portmap] [vlan id]        - add an entry to switch table
 switch add [mac] [portmap] [vlan id] [age]  - add an entry to switch table
 switch clear                                - clear switch table
 switch del [mac]                            - delete an entry from switch table
 switch del [mac] [fid]                  - delete an entry from switch table
 switch dip add [dip] [portmap]                  - add a dip entry to switch table
 switch dip del [dip]                        - del a dip entry to switch table
 switch dip dump                                 - dump switch dip table
 switch dip clear                                - clear switch dip table
 switch dump            - dump switch table
 switch ingress-rate on [port] [Kbps]        - set ingress rate limit on port 0~4 
 switch egress-rate on [port] [Kbps]         - 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 a SA filtering entry (with portmap 1111111) to switch table
 switch filt [mac] [portmap]                 - add a SA filtering entry to switch table
 switch filt [mac] [portmap] [vlan id]       - add a SA filtering entry to switch table
 switch filt [mac] [portmap] [vlan id] [age] - add a SA filtering entry to switch table
 switch igmpsnoop on [Query Interval] [default router portmap] - turn on IGMP snoop and  router port learning (Query Interval 1~255)
 switch igmpsnoop off                                  - turn off IGMP snoop and router port learning
 switch igmpsnoop enable [port#]                       - enable IGMP HW leave/join/Squery/Gquery
 switch igmpsnoop disable [port#]                      - disable IGMP HW leave/join/Squery/Gquery
 switch mymac [mac] [portmap]                  - add a mymac entry to switch table
 switch mirror monitor [portnumber]            - enable port mirror and indicate monitor port number
 switch mirror target [portnumber] [0:off, 1:rx, 2:tx, 3:all]  - set port mirror target
 switch phy [phy_addr]                   - dump phy register of specific port
 switch phy mt7530                       - dump mt7530 phy registers
 switch phy                                      - dump all phy registers
 switch pvid [port] [pvid]                - set pvid on port 0~4 
 switch reg r [offset]                       - register read from offset
 switch reg w [offset] [value]               - register write value to offset
 switch reg d [offset]                       - register dump
 switch sip add [sip] [dip] [portmap]            - add a sip entry to switch table
 switch sip del [sip] [dip]                          - del a sip entry to switch table
 switch sip dump                                 - dump switch sip table
 switch sip clear                                - clear switch sip table
 switch tag on [port]                        - keep vlan tag for egress packet on prot 0~4
 switch tag off [port]                       - remove vlan tag for egress packet on port 0~4
 switch vlan dump                            - dump switch table
 switch vlan set [vlan idx (NULL)][vid] [portmap]  - set vlan id and associated member

switch vlan dump

root@WN-AX1167GR2:~# switch vlan dump
  vid  fid  portmap    s-tag
    1    0  -1111-11       0
    2    0  1----1--       0
    3    0  invalid
    4    0  invalid
    5    0  invalid
    6    0  invalid
    7    0  invalid
    8    0  invalid
    9    0  invalid
   10    0  invalid
   11    0  invalid
   12    0  invalid
   13    0  invalid
   14    0  invalid
   15    0  invalid
   16    0  invalid

sys

root@WN-AX1167GR2:~# sys
Usage:
         sys atsh 
         sys atwz  []
         sys atsn 
         sys athwver 
         sys debugflag 
         sys ledctl 
         sys loadrom 
         sys mrd [0:Check default MRD(default option) | 1:Reset default MRD]
         sys romreset 

sys atsh

root@WN-AX1167GR2:~# sys atsh
Firmware Version              : 3.10(XBC.2)b10                
Boot Version                  : 1.24.06 | 12/09/2016 10:20:37 
Product Model                 : WN-AX1167GR2                  
First MAC Address             : 34:76:C5:**:**:B0             
MAC Quantity                  : 4                             
Serial Number                 : BCV0003117O5                  
firmware Checksum             : 7cbe484e                      
Kernel2 Checksum              : 6c4b3062                      
RomFile Checksum              : bcc71166                      
Country Code                  : EA                            
Boot Number                   : 2

mstc_persist

root@WN-AX1167GR2:~# mstc_persist 
Usage: mstc_persist read  ; mstc_persist write  

mstc_persist read/write recognizes these parameters in persist partition:
        magic_num          magic num
        bootnum            boot from which partition
        cfgapply           config apply flag
        fwapply            firmware apply flag
        padding            padding
        cfg1Size           configuration 1 size
        cfg1Chksum         configuration 1 checksum
        cfg2Size           configuration 2 size
        cfg2Chksum         configuration 2 checksum
        fw1Size            firmware 1 size
        fw1Chksum          firmware 1 checksum
        fw2Size            firmware 2 size
        fw2Chksum          firmware 2 checksum

Example: Read bootnum from persist partition.
         mstc_persist read bootnum

Example: Write bootnum with value 2 to persist partition.
         mstc_persist write bootnum 2

mstc_persist read bootnum

root@WN-AX1167GR2:~# mstc_persist read bootnum
2

bootlog

===================================================================
                MT7621   stage1 code 10:33:11 (ASIC)
                CPU=50000000 HZ BUS=16666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL3 FB_DL: 0x4, 1/0 = 576/448 11000000
PLL4 FB_DL: 0x7, 1/0 = 552/472 1D000000
PLL2 FB_DL: 0x18, 1/0 = 609/415 61000000
do DDR setting..[00320381]
Apply DDR3 Setting...(use customer 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    0    0
000E:|    0    0    0    0    0    0    0    0    0    0    0    1    1    1    1    1
000F:|    0    0    0    0    0    0    1    1    1    1    1    1    1    1    1    1
0010:|    1    1    1    1    1    1    1    1    1    1    1    0    0    0    0    0
0011:|    1    1    1    1    1    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
rank 0 coarse = 16
rank 0 fine = 40
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_R0DELDLY[018]=00002121
==================================================================
                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 |    9 9 9 10 6 7 8 6 7 6 
10 |    9 8 9 10 7 9 
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center 
y=0-7bit DQ of every group
input delay:DQS0 =33 DQS1 = 33
==================================================================
bit     DQS0     bit      DQS1
0  (0~64)32  8  (1~64)32
1  (1~66)33  9  (1~60)30
2  (1~64)32  10  (1~63)32
3  (1~65)33  11  (1~61)31
4  (1~64)32  12  (1~65)33
5  (1~66)33  13  (1~63)32
6  (1~64)32  14  (1~64)32
7  (1~66)33  15  (1~65)33
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    10 9 10 10 7 7 9 6 8 9 
10 |    10 10 9 11 8 9 
==================================================================
==================================================================
     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 = ffff0082
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=1 
DQ loop=14, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=14,  finish count=2 
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
20,data:88
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done 
                CPU=50000000 HZ BUS=16666666 HZ
===================================================================


U-Boot 1.1.3 (Dec  9 2016 - 10:20:35)

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

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

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


Z-LOADER V1.24 | 12/09/2016 10:20:37


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

Starting kernel ...


LINUX started...

 THIS IS ASIC

SDK 5.0.S.0
[    0.000000] Linux version 3.10.14 (*******@srv17) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 SMP Mon Jun 24 12:41:36 CST 2019
[    0.000000] 
[    0.000000]  The CPU feqenuce set to 880 MHz
[    0.000000] GCMP present
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] Software DMA cache coherency
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Detected 3 available secondary CPU(s)
[    0.000000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] PERCPU: Embedded 7 pages/cpu @81103000 s6464 r8192 d14016 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS1,57600n8 BootImage=2 root=/dev/mtdblock7 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0002e000
[    0.000000] Readback ErrCtl register=0002e000
[    0.000000] Memory: 125008k/131072k available (3536k kernel code, 6064k reserved, 852k data, 212k init, 0k highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:128
[    0.000000] console [ttyS1] enabled
[    0.116000] Calibrating delay loop... 562.17 BogoMIPS (lpj=1124352)
[    0.148000] pid_max: default: 32768 minimum: 301
[    0.152000] Mount-cache hash table entries: 512
[    0.156000] launch: starting cpu1
[    0.160000] launch: cpu1 gone!
[    0.160000] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.160000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
[    0.160000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.160000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.192000] Synchronize counters for CPU 1: done.
[    0.200000] launch: starting cpu2
[    0.204000] launch: cpu2 gone!
[    0.204000] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.204000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
[    0.204000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.204000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.232000] Synchronize counters for CPU 2: done.
[    0.240000] launch: starting cpu3
[    0.244000] launch: cpu3 gone!
[    0.244000] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.244000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
[    0.244000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.244000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.272000] Synchronize counters for CPU 3: done.
[    0.280000] Brought up 4 CPUs
[    0.284000] NET: Registered protocol family 16
[    0.576000] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.580000] PCIE PHY initialize
[    0.584000] ***** Xtal 40MHz *****
[    0.588000] start MT7621 PCIe register access
[    1.164000] RALINK_RSTCTRL = 7000000
[    1.168000] RALINK_CLKCFG1 = 77ffeff8
[    1.172000] 
[    1.172000] *************** MT7621 PCIe RC mode *************
[    1.652000] PCIE0 no card, disable it(RST&CLK)
[    1.656000] PCIE2 no card, disable it(RST&CLK)
[    1.660000] pcie_link status = 0x2
[    1.664000] RALINK_RSTCTRL= 2000000
[    1.668000] *** Configure Device number setting of Virtual PCI-PCI bridge ***
[    1.672000] RALINK_PCI_PCICFG_ADDR = 21007f2 -> 20107f2
[    1.676000] PCIE1 enabled
[    1.680000] interrupt enable status: 200000
[    1.684000] Port 0 N_FTS = 1b105000
[    1.688000] config reg done
[    1.692000] init_rt2880pci done
[    1.712000] bio: create slab  at 0
[    1.716000] SCSI subsystem initialized
[    1.720000] usbcore: registered new interface driver usbfs
[    1.724000] usbcore: registered new interface driver hub
[    1.728000] usbcore: registered new device driver usb
[    1.732000] PCI host bridge to bus 0000:00
[    1.736000] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.740000] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.744000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.748000] pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
[    1.752000] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.756000] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[    1.760000] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    1.764000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.768000] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.772000] BAR0 at slot 0 = 0
[    1.776000] bus=0x0, slot = 0x0
[    1.780000] res[0]->start = 0
[    1.784000] res[0]->end = 0
[    1.788000] res[1]->start = 60100000
[    1.792000] res[1]->end = 6010ffff
[    1.796000] res[2]->start = 0
[    1.800000] res[2]->end = 0
[    1.804000] res[3]->start = 0
[    1.808000] res[3]->end = 0
[    1.812000] res[4]->start = 0
[    1.816000] res[4]->end = 0
[    1.820000] res[5]->start = 0
[    1.824000] res[5]->end = 0
[    1.828000] bus=0x1, slot = 0x0, irq=0x18
[    1.832000] res[0]->start = 60000000
[    1.836000] res[0]->end = 600fffff
[    1.840000] res[1]->start = 0
[    1.844000] res[1]->end = 0
[    1.848000] res[2]->start = 0
[    1.852000] res[2]->end = 0
[    1.856000] res[3]->start = 0
[    1.860000] res[3]->end = 0
[    1.864000] res[4]->start = 0
[    1.868000] res[4]->end = 0
[    1.872000] res[5]->start = 0
[    1.876000] res[5]->end = 0
[    1.880000] Switching to clocksource MIPS
[    1.884000] NET: Registered protocol family 2
[    1.892000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    1.908000] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    1.920000] TCP: Hash tables configured (established 1024 bind 1024)
[    1.932000] TCP: reno registered
[    1.940000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.952000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.964000] NET: Registered protocol family 1
[    2.060000] 4 CPUs re-calibrate udelay(lpj = 1167360)
[    2.072000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.084000] jffs2: version 2.2. (NAND) (SUMMARY)  (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.108000] io scheduler noop registered (default)
[    2.116000] reg_int_mask=0, INT_MASK= 0 
[    2.124000] HSDMA_init
[    2.128000] 
[    2.128000]  hsdma_phy_tx_ring0 = 0x0fe38000, hsdma_tx_ring0 = 0xafe38000
[    2.148000] 
[    2.148000]  hsdma_phy_rx_ring0 = 0x0fe34000, hsdma_rx_ring0 = 0xafe34000
[    2.164000] TX_CTX_IDX0 = 0
[    2.168000] TX_DTX_IDX0 = 0
[    2.172000] RX_CRX_IDX0 = 3ff
[    2.180000] RX_DRX_IDX0 = 0
[    2.184000] set_fe_HSDMA_glo_cfg
[    2.192000] HSDMA_GLO_CFG = 465
[    2.204000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    2.216000] serial8250: ttyS0 at MMIO 0x1e000d00 (irq = 27) is a 16550A
[    2.228000] serial8250: ttyS1 at MMIO 0x1e000c00 (irq = 26) is a 16550A
[    2.244000] Ralink gpio driver initialized
[    2.252000] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.264000] Allocate 16 byte aligned buffer: 80491c20
[    2.276000] Enable NFI Clock
[    2.280000] # MTK NAND # : Use HW ECC
[    2.288000] NAND ID [01 F1 80 1D 01, 00801d01]
[    2.296000] Device found in MTK table, ID: 1f1, EXT_ID: 801d01
[    2.308000] Support this Device in MTK table! 1f1 
[    2.320000] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD/Spansion NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[    2.344000] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.356000] Scanning device for bad blocks
[    2.652000] Signature matched and data read!
[    2.660000] load_fact_bbt success 1023
[    2.668000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.688000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.708000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.728000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.748000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.768000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.788000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.804000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[    2.824000] Creating 11 MTD partitions on "MT7621-NAND":
[    2.836000] 0x000000000000-0x000007f80000 : "ALL"
[    2.848000] 0x000000000000-0x000000100000 : "Bootloader"
[    2.860000] 0x000000100000-0x000000200000 : "Ubootenv"
[    2.868000] 0x000000200000-0x000000300000 : "Factory"
[    2.880000] 0x000000400000-0x000003600000 : "firmware"
[    2.892000] 0x000003600000-0x000003700000 : "Config"
[    2.904000] 0x000003700000-0x000006900000 : "firmware_2"
[    2.916000] 0x0000038876f8-0x000006900000 : "rootfs"
[    2.928000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    2.960000] 0x000006900000-0x000006a00000 : "Config_2"
[    2.972000] 0x000006a00000-0x000006b00000 : "persist"
[    2.984000] 0x000006b00000-0x000007f80000 : "Backup"
[    2.996000] 0x000000300000-0x000000400000 : "SecondBoot"
[    3.008000] [mtk_nand] probe successfully!
[    3.016000] rootfs = 38876f8 to 4020000
[    3.024000] PPP generic driver version 2.4.2
[    3.032000] NET: Registered protocol family 24
[    3.040000] PPTP driver version 0.8.5
[    3.048000] rdm_major = 253
[    3.052000] GMAC1_MAC_ADRH -- : 0x00003476
[    3.064000] GMAC1_MAC_ADRL -- : 0xc59ba0b0
[    3.072000] Ralink APSoC Ethernet Driver Initilization. v3.1  1024 rx/tx descriptors allocated, mtu = 1500!
[    3.088000] GMAC1_MAC_ADRH -- : 0x00003476
[    3.096000] GMAC1_MAC_ADRL -- : 0xc59ba0b0
[    3.108000] register mt7530
[    3.112000] PROC INIT OK!
[    3.116000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.132000] ehci-pci: EHCI PCI platform driver
[    3.140000] *****run project phy.
[    3.160000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.176000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.196000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.216000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.236000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.256000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.276000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.296000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.316000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.336000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.380000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.400000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.420000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.440000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.460000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.480000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.500000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.520000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.540000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.560000] FM_OUT value: u4FmOut = 0(0x00000000)
[    3.700000] xhci-hcd xhci-hcd: xHCI Host Controller
[    3.708000] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
[    3.724000] xhci-hcd xhci-hcd: irq 22, io mem 0x1e1c0000
[    3.736000] hub 1-0:1.0: USB hub found
[    3.744000] hub 1-0:1.0: 2 ports detected
[    3.752000] xhci-hcd xhci-hcd: xHCI Host Controller
[    3.760000] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
[    3.776000] hub 2-0:1.0: USB hub found
[    3.784000] hub 2-0:1.0: 1 port detected
[    3.792000] usbcore: registered new interface driver usb-storage
[    3.804000] gre: GRE over IPv4 demultiplexor driver
[    3.812000] TCP: cubic registered
[    3.820000] NET: Registered protocol family 10
[    3.832000] NET: Registered protocol family 17
[    3.840000] Bridge firewalling registered
[    3.848000] 8021q: 802.1Q VLAN Support v1.8
[    3.864000] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    3.880000] Freeing unused kernel memory: 212K (8044b000 - 80480000)
procd: Console is alive
procd: - preinit -
[    5.200000] 34:76:FFFFFFC5:FFFFFF9B:FFFFFFA0:FFFFFFB0
[    5.212000] Raeth v3.1 (Tasklet)
[    5.220000] set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
[    5.236000] phy_free_head is 0xf732000!!!
[    5.244000] phy_free_tail_phy is 0xf733ff0!!!
[    5.252000] txd_pool=af740000 phy_txd_pool=0F740000
[    5.260000] ei_local->skb_free start address is 0x87eca6dc.
[    5.272000] free_txd: 0f740010, ei_local->cpu_ptr: 0F740000
[    5.284000]  POOL  HEAD_PTR | DMA_PTR | CPU_PTR 
[    5.292000] ----------------+---------+--------
[    5.300000]      0xaf740000 0x0F740000 0x0F740000
[    5.312000] 
[    5.312000] phy_qrx_ring = 0x0f6e5000, qrx_ring = 0xaf6e5000
[    5.328000] 
[    5.328000] phy_rx_ring0 = 0x0f734000, rx_ring0 = 0xaf734000
[    5.364000] MT7530 Reset Completed!!
[    5.376000] change HW-TRAP to 0x117c8f
[    5.384000] set LAN/WAN WLLLL
[    5.396000] GMAC1_MAC_ADRH -- : 0x00003476
[    5.404000] GMAC1_MAC_ADRL -- : 0xc59ba0b0
[    5.412000] GDMA2_MAC_ADRH -- : 0x00003476
[    5.420000] GDMA2_MAC_ADRL -- : 0xc59ba0b2
[    5.428000] eth1: ===> VirtualIF_open
[    5.436000] MT7621 GE2 link rate to 1G
[    5.436000] CDMA_CSG_CFG = 81000000
[    5.436000] GDMA1_FWD_CFG = 20710000
[    5.436000] GDMA2_FWD_CFG = 20710000
[    5.560000] led=9, on=1, off=1, blinks,=1, reset=1, time=4000 low_trigger=1
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.668000] led=9, on=1, off=1, blinks,=1, reset=1, time=4000 low_trigger=1
Could not open mtd device: /dev/mtd7
reading ro[    8.780000] ra2880stop()...otfs failed
mouDone
[    8.792000] eth1: ===> VirtualIF_close

[    8.800000] Free TX/RX Ring Memory!
procd: - early -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   10.696000] jffs2: notice: (757) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   10.828000] jffs2: notice: (760) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
##### Skip Checking Config. #####
Mode Switch: Router/AP
[   11.448000] Initializing XFRM netlink socket
[   11.460000] NET: Registered protocol family 15
[   11.468000] sbdev driver(major: 254) installed.
[   11.480000] wpdev driver(major: 250) installed.
[   11.500000] l2tp_core: L2TP core driver, V2.0
[   11.512000] l2tp_netlink: L2TP netlink interface
[   11.524000] ip_gre: GRE over IPv4 tunneling driver
[   11.544000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.552000] Type=Restricted Cone
[   11.564000] nf_conntrack version 0.5.0 (1956 buckets, 7824 max)
[   11.584000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.616000] ebt_time: kernel timezone is -0000
[   11.628000] Ebtables v2.0 registered
[   11.640000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   11.788000] Netfilter messages via NETLINK v0.30.
[   11.800000] PPP MPPE Compression module registered
[   11.812000] Ralink APSoC Hardware Watchdog Timer
[   11.844000] xt_time: kernel timezone is -0000
[   11.864000] ctnetlink v0.93: registering with nfnetlink.
[   14.764000] mtd: ALL locked
[   14.768000] mtd: Bootloader locked
[   14.776000] mtd: Ubootenv locked
[   14.780000] mtd: Factory locked
[   14.788000] mtd_locked init
[   16.276000] 34:76:FFFFFFC5:FFFFFF9B:FFFFFFA0:FFFFFFB0
[   16.288000] Raeth v3.1 (Tasklet)
[   16.296000] set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
[   16.312000] phy_free_head is 0xf31a000!!!
[   16.320000] phy_free_tail_phy is 0xf31bff0!!!
[   16.328000] txd_pool=af338000 phy_txd_pool=0F338000
[   16.336000] ei_local->skb_free start address is 0x87eca6dc.
[   16.348000] free_txd: 0f338010, ei_local->cpu_ptr: 0F338000
[   16.360000]  POOL  HEAD_PTR | DMA_PTR | CPU_PTR 
[   16.368000] ----------------+---------+--------
[   16.380000]      0xaf338000 0x0F338000 0x0F338000
[   16.388000] 
[   16.388000] phy_qrx_ring = 0x0f0e7000, qrx_ring = 0xaf0e7000
[   16.404000] 
[   16.404000] phy_rx_ring0 = 0x0f32c000, rx_ring0 = 0xaf32c000
[   16.448000] MT7530 Reset Completed!!
[   16.460000] change HW-TRAP to 0x117c8f
[   16.468000] set LAN/WAN WLLLL
[   16.480000] GMAC1_MAC_ADRH -- : 0x00003476
[   16.488000] GMAC1_MAC_ADRL -- : 0xc59ba0b0
[   16.496000] eth1: ===> VirtualIF_open
[   16.504000] MT7621 GE2 link rate to 1G
[   16.512000] CDMA_CSG_CFG = 81000000
[   16.520000] GDMA1_FWD_CFG = 20710000
[   16.528000] GDMA2_FWD_CFG = 20710000
[   16.536000] device eth0 entered promiscuous mode
[   16.548000] br-lan: port 1(eth0) entered forwarding state
[   16.560000] br-lan: port 1(eth0) entered forwarding state
[   16.572000] eth1: ===> VirtualIF_open
[   16.580000] device eth1 entered promiscuous mode
[   16.592000] br-lan: port 2(eth1) entered forwarding state
[   16.604000] br-lan: port 2(eth1) entered forwarding state
[   18.564000] br-lan: port 1(eth0) entered forwarding state
[   18.608000] br-lan: port 2(eth1) entered forwarding state
[   22.288000] register mt_drv
[   22.308000] 
[   22.308000] 
[   22.308000] === pAd = c2381000, size = 3627760 ===
[   22.308000] 
[   22.328000] PciHif.CSRBaseAddress =0xc2280000, csr_addr=0xc2280000!
[   22.356000] get_wdev_by_idx: invalid idx(0)
[   22.368000] RTMPInitPCIeDevice():device_id=0x7615
[   22.376000] DriverOwn()::Try to Clear FW Own...
[   22.716000] DriverOwn()::Success to clear FW Own
[   22.728000] mt_pci_chip_cfg(): HWVer=0x8a10, FWVer=0x8a10, pAd->ChipID=0x7615
[   22.740000] mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
[   22.752000] RtmpChipOpsHook(493): Not support for HIF_MT yet! MACVersion=0x0
[   22.764000] mt7615_init()-->
[   22.772000] Use the default ePAeLNA bin image!
[   22.780000] Use the default /etc_ro/wlan/MT7615E_EEPROM1.bin bin image!
[   22.792000] rxq = c26f26f4
[   24.272000] ctl->ackq = c26f2700
[   24.280000] ctl->kickq = c26f270c
[   24.288000] ctl->tx_doneq = c26f2718
[   24.292000] ctl->rx_doneq = c26f2724
[   24.300000] mt7615_fw_prepare():FW(8a10), HW(8a10), CHIPID(7615))
[   24.312000] mt7615_fw_prepare(2701): MT7615_E3, USE E3 patch and ram code binary image
[   24.328000] AndesMTLoadRomMethodFwDlRing(1036), cap->rom_patch_len(10206)
[   24.344000] AndesRestartCheck: Current TOP_MISC2(0x1)
[   24.352000] AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
[   24.368000] 20161013140927a
[   24.372000] 
[   24.376000] platform = 
[   24.380000] ALPS
[   24.384000] hw/sw version = 
[   24.388000] 8a108a10
[   24.396000] patch version = 
[   24.400000] 00000010
[   24.404000] Patch SEM Status=2
[   24.412000] MtCmdPatchSemGet:(ret = 0)
[   24.416000] 
[   24.416000] Patch is not ready && get semaphore success, SemStatus(2)
[   24.432000] EventGenericEventHandler: CMD Success
[   24.444000] MtCmdAddressLenReq:(ret = 0)
[   24.452000] MtCmdPatchFinishReq
[   24.468000] EventGenericEventHandler: CMD Success
[   24.480000] Send checksum req..
[   24.484000] Patch SEM Status=3
[   24.492000] MtCmdPatchSemGet:(ret = 0)
[   24.496000] 
[   24.496000] Release patch semaphore, SemStatus(3)
[   24.512000] AndesMTEraseRomPatch
[   24.516000] WfMcuHwInit: Before NICLoadFirmware, check IcapMode=0
[   24.528000] AndesMTLoadFwMethodFwDlRing(810), cap->fw_len(460360)
[   24.540000] Build Date:_201701111925
[   24.548000] Build Date:_201701111925
[   24.556000] AndesRestartCheck: Current TOP_MISC2(0x1)
[   24.564000] AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
[   24.580000] EventGenericEventHandler: CMD Success
[   24.588000] MtCmdAddressLenReq:(ret = 0)
[   24.600000] EventGenericEventHandler: CMD Success
[   24.612000] MtCmdAddressLenReq:(ret = 0)
[   24.620000] MtCmdFwStartReq: override = 1, address = 540672
[   24.628000] EventGenericEventHandler: CMD Success
[   24.640000] Build Date:_201612301011
[   24.648000] EventGenericEventHandler: CMD Success
[   24.656000] MtCmdAddressLenReq:(ret = 0)
[   24.664000] MtCmdFwStartReq: override = 4, address = 0
[   24.740000] EventGenericEventHandler: CMD Success
[   24.780000] WfMcuHwInit: NICLoadFirmware OK, Check IcapMode=0
[   24.792000] MCU Init Done!
[   24.796000]  MtCmdSetRlmPorCal: (ret = 0) 
[   24.804000] efuse_probe: efuse = 10000212
[   24.812000] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
[   24.824000] RtmpEepromGetDefault::e2p_dafault=1
[   24.832000] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
[   24.848000] NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
[   24.860000] NICReadEEPROMParameters():Calling eeinit
[   24.880000] NICReadEEPROMParameters: EEPROM 0x52 b317
[   24.896000] MtCmdSetTxLpfCal:(ret = 0)
[   24.904000] MtCmdSetTxIqCal:(ret = 0)
[   24.912000] MtCmdSetTxDcCal:(ret = 0)
[   24.920000] MtCmdSetRxFiCal:(ret = 0)
[   24.928000] MtCmdSetRxFdCal:(ret = 0)
[   24.932000] MtCmdSetRxFdCal:(ret = 0)
[   24.940000] MtCmdSetRxFdCal:(ret = 0)
[   24.948000] MtCmdSetRxFdCal:(ret = 0)
[   24.956000] MtCmdSetRxFdCal:(ret = 0)
[   24.964000] MtCmdSetRxFdCal:(ret = 0)
[   24.972000] MtCmdSetRxFdCal:(ret = 0)
[   24.976000] MtCmdSetRxFdCal:(ret = 0)
[   24.984000] MtCmdSetRxFdCal:(ret = 0)
[   24.992000] NICReadEEPROMParameters: EEPROM 0x52 b317
[   25.556000] Country Region from e2p = 101
[   25.564000] mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
[   25.580000] mt7615_antenna_default_reset(): DBDC 2G TxPath = 2, 2G RxPath = 2
[   25.592000] mt7615_antenna_default_reset(): DBDC 5G TxPath = 2, 2G RxPath = 2
[   25.608000] rtmp_read_txpwr_from_eeprom(235): Don't Support this now!
[   25.620000] RTMPReadTxPwrPerRate(1382): Don't Support this now!
[   25.632000] RcRadioInit(): DbdcMode=1, ConcurrentBand=2
[   25.640000] RcRadioInit(): pRadioCtrl=87563444,Band=0,rfcap=1,channel=1,PhyMode=2
[   25.656000] RcRadioInit(): pRadioCtrl=87563530,Band=1,rfcap=2,channel=36,PhyMode=1
[   25.672000] MtCmdSetDbdcCtrl:(ret = 0)
[   25.680000] Band Rf: 1, Phy Mode: 2
[   25.688000] Band Rf: 2, Phy Mode: 1
[   25.692000] AntCfgInit(2700): Not support for HIF_MT yet!
[   25.704000] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
[   25.716000] MtBfBackOffLoadTable: RF_LOCKDOWN Feature OFF !!!
[   25.728000] EEPROM Init Done!
[   25.736000] mt_mac_init()-->
[   25.740000] mt_mac_pse_init(2716): Don't Support this now!
[   25.752000] mt7615_init_mac_cr()-->
[   25.760000] mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
[   25.768000] mt7615_init_mac_cr(): TMAC_TRCR1=0x82783c8c
[   25.780000] MtAsicSetMacMaxLen(1290): Not finish Yet!
[   25.788000] 
[   25.952000] MtCmdSetMacTxRx:(ret = 0)
[   25.960000] MtCmdSetMacTxRx:(ret = 0)
[   25.968000] [DfsSwitchCheck]: DFS ByPass TX calibration.
[   25.980000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   26.000000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   26.008000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   26.028000] MtCmdGetTXDPDCalResult:(ret = 0)
[   26.036000] MtCmdChannelSwitch: control_chl = 36,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   26.052000] BW = 2,TXStream = 2, RXStream = 2, scan(1)
[   26.288000] [DfsSwitchCheck]: DFS ByPass TX calibration.
[   26.296000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   26.316000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   26.324000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   26.344000] MtCmdGetTXDPDCalResult:(ret = 0)
[   26.352000] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   26.372000] BW = 2,TXStream = 2, RXStream = 2, scan(1)
[   26.604000] [DfsSwitchCheck]: DFS ByPass TX calibration.
[   26.612000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   26.632000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   26.640000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   26.660000] MtCmdGetTXDPDCalResult:(ret = 0)
[   26.668000] MtCmdChannelSwitch: control_chl = 44,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   26.688000] BW = 2,TXStream = 2, RXStream = 2, scan(1)
[   26.976000] [DfsSwitchCheck]: DFS ByPass TX calibration.
[   26.984000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   27.004000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   27.012000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   27.032000] MtCmdGetTXDPDCalResult:(ret = 0)
[   27.040000] MtCmdChannelSwitch: control_chl = 48,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   27.060000] BW = 2,TXStream = 2, RXStream = 2, scan(1)
[   27.292000] ====================================================================
[   27.304000] Channel  36 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
[   27.320000] Channel  40 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
[   27.336000] Channel  44 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
[   27.348000] Channel  48 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
[   27.364000] ====================================================================
[   27.380000] Rule 3 Channel Busy time value : Select Primary Channel 36 
[   27.392000] Rule 3 Channel Busy time value : Min Channel Busy = 0
[   27.404000] Rule 3 Channel Busy time value : BW = 80
[   27.412000]  AutoChSelUpdateChannel(): Update channel for wdev0 for this band PhyMode = 49,Channel = 36  
[   27.436000]  AutoChSelUpdateChannel(): Update channel for wdev1 for this band PhyMode = 49,Channel = 36  
[   27.456000]  AutoChSelUpdateChannel(): Update channel for wdev2 for this band PhyMode = 49,Channel = 36  
[   27.476000]  AutoChSelUpdateChannel(): Update channel for wdev3 for this band PhyMode = 49,Channel = 36  
[   27.496000]  AutoChSelUpdateChannel(): Update channel for wdev4 for this band PhyMode = 14,Channel = 0  
[   27.516000]  AutoChSelUpdateChannel(): Update channel for wdev5 for this band PhyMode = 14,Channel = 0  
[   27.536000]  AutoChSelUpdateChannel(): Update channel for wdev6 for this band PhyMode = 14,Channel = 0  
[   27.556000]  AutoChSelUpdateChannel(): Update channel for wdev7 for this band PhyMode = 14,Channel = 0  
[   27.576000] mt7615_apply_dcoc() : reload Central CH [1] BW [0] from cetral freq [2417]  offset [2200] 
[   27.596000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   27.604000] mt7615_apply_dpd() : reload Central CH [1] BW [0] from cetral freq [2422] i[44] offset [4b20] 
[   27.624000] MtCmdGetTXDPDCalResult:(ret = 0)
[   27.632000] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0 
[   27.652000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   27.908000] mt7615_apply_dcoc() : reload Central CH [2] BW [0] from cetral freq [2417]  offset [2200] 
[   27.924000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   27.932000] mt7615_apply_dpd() : reload Central CH [2] BW [0] from cetral freq [2422] i[44] offset [4b20] 
[   27.952000] MtCmdGetTXDPDCalResult:(ret = 0)
[   27.960000] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0 
[   27.980000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   28.216000] mt7615_apply_dcoc() : reload Central CH [3] BW [0] from cetral freq [2417]  offset [2200] 
[   28.232000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   28.240000] mt7615_apply_dpd() : reload Central CH [3] BW [0] from cetral freq [2422] i[44] offset [4b20] 
[   28.260000] MtCmdGetTXDPDCalResult:(ret = 0)
[   28.268000] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0 
[   28.288000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   28.524000] mt7615_apply_dcoc() : reload Central CH [4] BW [0] from cetral freq [2432]  offset [2300] 
[   28.540000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   28.548000] mt7615_apply_dpd() : reload Central CH [4] BW [0] from cetral freq [2422] i[44] offset [4b20] 
[   28.568000] MtCmdGetTXDPDCalResult:(ret = 0)
[   28.576000] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0 
[   28.596000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   28.844000] mt7615_apply_dcoc() : reload Central CH [5] BW [0] from cetral freq [2432]  offset [2300] 
[   28.860000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   28.868000] mt7615_apply_dpd() : reload Central CH [5] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   28.888000] MtCmdGetTXDPDCalResult:(ret = 0)
[   28.896000] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0 
[   28.916000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.152000] mt7615_apply_dcoc() : reload Central CH [6] BW [0] from cetral freq [2432]  offset [2300] 
[   29.168000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   29.176000] mt7615_apply_dpd() : reload Central CH [6] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   29.196000] MtCmdGetTXDPDCalResult:(ret = 0)
[   29.204000] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0 
[   29.224000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.460000] mt7615_apply_dcoc() : reload Central CH [7] BW [0] from cetral freq [2447]  offset [2400] 
[   29.476000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   29.484000] mt7615_apply_dpd() : reload Central CH [7] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   29.504000] MtCmdGetTXDPDCalResult:(ret = 0)
[   29.512000] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0 
[   29.532000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   29.768000] mt7615_apply_dcoc() : reload Central CH [8] BW [0] from cetral freq [2447]  offset [2400] 
[   29.784000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   29.792000] mt7615_apply_dpd() : reload Central CH [8] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   29.812000] MtCmdGetTXDPDCalResult:(ret = 0)
[   29.820000] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0 
[   29.840000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.116000] mt7615_apply_dcoc() : reload Central CH [9] BW [0] from cetral freq [2447]  offset [2400] 
[   30.132000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   30.140000] mt7615_apply_dpd() : reload Central CH [9] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
[   30.160000] MtCmdGetTXDPDCalResult:(ret = 0)
[   30.168000] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0 
[   30.188000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.424000] mt7615_apply_dcoc() : reload Central CH [10] BW [0] from cetral freq [2467]  offset [2500] 
[   30.440000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   30.448000] mt7615_apply_dpd() : reload Central CH [10] BW [0] from cetral freq [2462] i[46] offset [4cd0] 
[   30.468000] MtCmdGetTXDPDCalResult:(ret = 0)
[   30.476000] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0 
[   30.496000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   30.732000] mt7615_apply_dcoc() : reload Central CH [11] BW [0] from cetral freq [2467]  offset [2500] 
[   30.748000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   30.756000] mt7615_apply_dpd() : reload Central CH [11] BW [0] from cetral freq [2462] i[46] offset [4cd0] 
[   30.776000] MtCmdGetTXDPDCalResult:(ret = 0)
[   30.784000] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0 
[   30.804000] BW = 0,TXStream = 2, RXStream = 2, scan(1)
[   31.040000] ====================================================================
[   31.052000] Channel   1 : Busy Time =   2279, Skip Channel = FALSE, BwCap = TRUE
[   31.068000] Channel   2 : Busy Time =     14, Skip Channel = FALSE, BwCap = TRUE
[   31.084000] Channel   3 : Busy Time =   6174, Skip Channel = FALSE, BwCap = TRUE
[   31.096000] Channel   4 : Busy Time =   1496, Skip Channel = FALSE, BwCap = TRUE
[   31.112000] Channel   5 : Busy Time =   3980, Skip Channel = FALSE, BwCap = TRUE
[   31.128000] Channel   6 : Busy Time =   2663, Skip Channel = FALSE, BwCap = TRUE
[   31.140000] Channel   7 : Busy Time =   6730, Skip Channel = FALSE, BwCap = TRUE
[   31.156000] Channel   8 : Busy Time =   8393, Skip Channel = FALSE, BwCap = TRUE
[   31.172000] Channel   9 : Busy Time =   4785, Skip Channel = FALSE, BwCap = TRUE
[   31.184000] Channel  10 : Busy Time =   3404, Skip Channel = FALSE, BwCap = TRUE
[   31.200000] Channel  11 : Busy Time =   8515, Skip Channel = FALSE, BwCap = TRUE
[   31.216000] ====================================================================
[   31.232000] Rule 3 Channel Busy time value : Select Primary Channel 2 
[   31.244000] Rule 3 Channel Busy time value : Min Channel Busy = 14
[   31.256000] Rule 3 Channel Busy time value : BW = 20
[   31.264000]  AutoChSelUpdateChannel(): Update channel for wdev0 for this band PhyMode = 49,Channel = 36  
[   31.288000]  AutoChSelUpdateChannel(): Update channel for wdev1 for this band PhyMode = 49,Channel = 36  
[   31.308000]  AutoChSelUpdateChannel(): Update channel for wdev2 for this band PhyMode = 49,Channel = 36  
[   31.328000]  AutoChSelUpdateChannel(): Update channel for wdev3 for this band PhyMode = 49,Channel = 36  
[   31.348000]  AutoChSelUpdateChannel(): Update channel for wdev4 for this band PhyMode = 14,Channel = 2  
[   31.368000]  AutoChSelUpdateChannel(): Update channel for wdev5 for this band PhyMode = 14,Channel = 2  
[   31.388000]  AutoChSelUpdateChannel(): Update channel for wdev6 for this band PhyMode = 14,Channel = 2  
[   31.408000]  AutoChSelUpdateChannel(): Update channel for wdev7 for this band PhyMode = 14,Channel = 2  
[   31.428000] ApAutoChannelAtBootUp<-----------------
[   31.440000] WifiSysOpen(), wdev idx = 0
[   31.448000] wdev_attr_update(): wdevId0 = 34:76:c5:9b:a0:b1
[   31.456000] MtCmdSetDbdcCtrl:(ret = 0)
[   31.468000] Current Channel is 36. DfsZeroWaitSupport=0
[   31.476000] MtAsicSetChBusyStat(842): Not support for HIF_MT yet!
[   31.488000] MtAsicSetChBusyStat(842): Not support for HIF_MT yet!
[   31.500000] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[   31.512000] [PMF]WPAMakeRsnIeCap: RSNIE Capability MFPC=0, MFPR=0
[   31.524000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:49,Channel=36
[   31.544000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=14/49, support 32 channels
[   31.560000] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
[   31.560000]  LinkToOmacIdx = 0, LinkToWdevType = 1
[   31.588000] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 8192,                 CmdBssInfoBmcRate.u2McTransmit = 8192
[   31.620000] MtCmdSetDbdcCtrl:(ret = 0)
[   31.720000] [RadarStateCheck]Set into RD_NORMAL_MODE
[   31.728000] MtCmdTxPowerSKUCtrl: fgTxPowerSKUEn: 1, BandIdx: 1
[   31.740000] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 1
[   31.752000] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 1
[   31.764000] mt7615_bbp_adjust():rf_bw=2, ext_ch=1, PrimCh=36, HT-CentCh=38, VHT-CentCh=42
[   31.784000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900] 
[   31.800000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   31.808000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98] 
[   31.828000] MtCmdGetTXDPDCalResult:(ret = 0)
[   31.836000] MtCmdChannelSwitch: control_chl = 36,control_ch2=0, central_chl = 42 DBDCIdx= 1, Band= 0 
[   31.856000] BW = 2,TXStream = 2, RXStream = 2, scan(0)
[   31.916000] ap_phy_rrm_init_byRf(): AP Set CentralFreq at 42(Prim=36, HT-CentCh=38, VHT-CentCh=42, BBP_BW=2)
[   31.948000] [WrapDfsRadarDetectStart]: Band0Ch is 36[WrapDfsRadarDetectStart]: Band1Ch is 0LeadTimeForBcn, OmacIdx = 0, WDEV_WITH_BCN_ABILITY
[   31.972000] MtAsicSetRalinkBurstMode(2595): Not support for HIF_MT yet!
[   31.984000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[   31.996000] MtAsicSetTxPreamble(2574): Not support for HIF_MT yet!
[   32.008000] Main bssid = 34:76:c5:9b:a0:b1
[   32.028000] AsicRadioOnOffCtrl(): DbdcIdx=1 RadioOn
[   32.040000] MtCmdSetMacTxRx:(ret = 0)
[   32.048000] MtCmdSetMacTxRx:(ret = 0)
[   32.052000] fdb_enable()
[   32.356000] MCS Set = ff ff 00 00 01
[   32.364000] <==== mt_wifi_init, Status=0
[   32.372000] MtCmdEDCCACtrl: BandIdx: 0, EDCCACtrl: 1 
[   32.384000] MtCmdEDCCACtrl: BandIdx: 1, EDCCACtrl: 1 
[   32.412000] WtcSetMaxStaNum: MaxStaNum:84, BssidNum:8, WdsNum:0, ApcliNum:2, MaxNumChipRept:32, MinMcastWcid:118
[   32.480000] red_is_enabled: set CR4/N9 RED Enable to 1.
[   32.492000] cp_support_is_enabled: set CR4 CP_SUPPORT to Mode 2.
[   32.504000] Correct apidx from 7 to 0 for WscUUIDInit
[   32.512000] Generate UUID for apidx(0)
[   32.520000] first MBSSID is 34 76 c5 9b a0 b0
[   32.528000] UUID: c23b3558, len = 16
[   32.536000] 0x0000 : bc 32 9e 00 1d d8 11 b2 86 01 34 76 c5 9b a0 b0 
[   32.548000] 
[   32.936000] :MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
[   33.016000] device rai0 entered promiscuous mode
[   33.028000] br-lan: port 3(rai0) entered forwarding state
[   33.036000] br-lan: port 3(rai0) entered forwarding state
[   33.572000] Device Instance
[   33.576000]  WDEV 00:
                Name:rai0
[   33.584000]          Wdev(list) Idx:0
[   33.588000]           Idx:8
[   33.592000]  WDEV 01:
                Name:rai1
[   33.600000]          Wdev(list) Idx:1
[   33.608000]           Idx:9
[   33.612000]  WDEV 02:
                Name:rai2
[   33.616000]          Wdev(list) Idx:2
[   33.624000]           Idx:10
[   33.628000]  WDEV 03:
                Name:rai3
[   33.636000]          Wdev(list) Idx:3
[   33.640000]           Idx:11
[   33.644000]  WDEV 04:
                Name:ra0
[   33.652000]          Wdev(list) Idx:4
[   33.660000]           Idx:12
[   33.664000]  WDEV 05:
                Name:ra1
[   33.668000]          Wdev(list) Idx:5
[   33.676000]           Idx:13
[   33.680000]  WDEV 06:
                Name:ra2
[   33.688000]          Wdev(list) Idx:6
[   33.692000]           Idx:14
[   33.696000]  WDEV 07:
                Name:ra3
[   33.704000]          Wdev(list) Idx:7
[   33.712000]           Idx:15
[   33.716000]  WDEV 08:
                Name:apclii0
[   33.724000]          Wdev(list) Idx:8
[   33.728000]           Idx:16
[   33.732000]  WDEV 09:
                Name:apcli0
[   33.740000]          Wdev(list) Idx:9
[   33.748000]           Idx:17
[   33.752000]  WDEV 10:
[   33.756000]  WDEV 11:
[   33.760000]  WDEV 12:
[   33.764000]  WDEV 13:
[   33.768000]  WDEV 14:
[   33.772000]  WDEV 15:
[   33.780000]  WDEV 16:
[   33.784000]  WDEV 17:
[   35.040000] br-lan: port 3(rai0) entered forwarding state
[   35.440000] WifiSysOpen(), wdev idx = 4
[   35.448000] wdev_attr_update(): wdevId4 = 34:76:c5:9b:a0:b0
[   35.460000] MtCmdSetDbdcCtrl:(ret = 0)
[   35.468000] [PMF]APPMFInit:: apidx=4, MFPC=0, MFPR=0, SHA256=0
[   35.480000] [PMF]WPAMakeRsnIeCap: RSNIE Capability MFPC=0, MFPR=0
[   35.492000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:14,Channel=2
[   35.512000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=14/49, support 32 channels
[   35.528000] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:126 for WDEV_TYPE:1
[   35.528000]  LinkToOmacIdx = 14, LinkToWdevType = 1
[   35.556000] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
[   35.588000] MtCmdSetDbdcCtrl:(ret = 0)
[   35.704000] [RadarStateCheck]Set into RD_NORMAL_MODE
[   35.712000] MtCmdTxPowerSKUCtrl: fgTxPowerSKUEn: 1, BandIdx: 0
[   35.724000] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
[   35.736000] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 0
[   35.748000] mt7615_bbp_adjust():rf_bw=1, ext_ch=1, PrimCh=2, HT-CentCh=4, VHT-CentCh=42
[   35.764000] mt7615_apply_dcoc() : reload Central CH [4] BW [1] from cetral freq [2432]  offset [2300] 
[   35.784000] MtCmdGetRXDCOCCalResult:(ret = 0)
[   35.792000] mt7615_apply_dpd() : reload Central CH [4] BW [1] from cetral freq [2422] i[44] offset [4b20] 
[   35.812000] MtCmdGetTXDPDCalResult:(ret = 0)
[   35.820000] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0 
[   35.840000] BW = 1,TXStream = 2, RXStream = 2, scan(0)
[   35.896000] ap_phy_rrm_init_byRf(): AP Set CentralFreq at 4(Prim=2, HT-CentCh=4, VHT-CentCh=42, BBP_BW=1)
[   35.928000] LeadTimeForBcn, OmacIdx = 14, WDEV_WITH_BCN_ABILITY
[   35.940000] Generate UUID for apidx(4)
[   35.948000] first MBSSID is 34 76 c5 9b a0 b0
[   35.960000] UUID: c23c11d8, len = 16
[   35.964000] 0x0000 : bc 32 9e 00 1d d8 11 b2 86 01 34 76 c5 9b a0 b0 
[   35.980000] 
start daemon 
[   36.296000] device ra0 entered promiscuous mode
[   36.304000] br-lan: port 4(ra0) entered forwarding state
[   36.316000] br-lan: port 4(ra0) entered forwarding state
[   36.464000] led=8, on=0, off=4000, blinks,=0, reset=0, time=1 low_trigger=1
[   36.560000] led=8, on=0, off=4000, blinks,=0, reset=0, time=1 low_trigger=0
[   36.648000] led=8, on=0, off=4000, blinks,=0, reset=0, time=1 low_trigger=1
[   36.696000] Device Instance
[   36.700000]  WDEV 00:
                Name:rai0
[   36.708000]          Wdev(list) Idx:0
[   36.716000]           Idx:8
[   36.720000]  WDEV 01:
                Name:rai1
[   36.728000]          Wdev(list) Idx:1
[   36.732000]           Idx:9
[   36.736000]  WDEV 02:
                Name:rai2
[   36.744000]          Wdev(list) Idx:2
[   36.748000]           Idx:10
[   36.756000]  WDEV 03:
                Name:rai3
[   36.760000]          Wdev(list) Idx:3
[   36.768000]           Idx:11
[   36.772000]  WDEV 04:
                Name:ra0
[   36.780000]          Wdev(list) Idx:4
[   36.784000]           Idx:12
[   36.788000]  WDEV 05:
                Name:ra1
[   36.796000]          Wdev(list) Idx:5
[   36.800000]           Idx:13
[   36.808000]  WDEV 06:
                Name:ra2
[   36.812000]          Wdev(list) Idx:6
[   36.820000]           Idx:14
[   36.824000]  WDEV 07:
                Name:ra3
[   36.832000]          Wdev(list) Idx:7
[   36.836000]           Idx:15
[   36.840000]  WDEV 08:
                Name:apclii0
[   36.848000]          Wdev(list) Idx:8
[   36.856000]           Idx:16
[   36.860000]  WDEV 09:
                Name:apcli0
[   36.868000]          Wdev(list) Idx:9
[   36.872000]           Idx:17
[   36.876000]  WDEV 10:
[   36.880000]  WDEV 11:
[   36.888000]  WDEV 12:
[   36.892000]  WDEV 13:
[   36.896000]  WDEV 14:
[   36.900000]  WDEV 15:
[   36.904000]  WDEV 16:
[   36.908000]  WDEV 17:
procd: - init complete -
[   38.320000] br-lan: port 4(ra0) entered forwarding state
switch_val: 1
ifce_automode: 
wan_link_stat: 0
[   48.176000] led=9, on=4000, off=0, blinks,=0, reset=0, time=1 low_trigger=0

firmware update log

### DO NOT set cfgapply ###
### Checksum is the same but commit does not change anything! Do nothing! ###
[  193.596000] led=9, on=1, off=1, blinks,=1, reset=0, time=4000 low_trigger=0
Unlocking firmware ...

Writing from /tmp/fw.bin to firmware ...     
Header checksum OK.
Data checksum OK
Unlocking persist ...
### Switch to bank 1 on next boot! ###
procd: - shutdown -
[  200.976000] eth1: ===> VirtualIF_close
[  201.912000] br-lan: port 3(ra0) entered disabled state
[  201.920000] br-lan: port 2(rai0) entered disabled state
[  201.932000] br-lan: port 1(eth0) entered disabled state
[  201.944000] device eth0 left promiscuous mode
[  201.952000] br-lan: port 1(eth0) entered disabled state
[  201.964000] ra2880stop()...Done
[  201.968000] eth1: ===> VirtualIF_close
[  201.980000] Free TX/RX Ring Memory!
[  201.988000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  202.000000] device ra0 left promiscuous mode
[  202.008000] br-lan: port 3(ra0) entered disabled state
[  202.016000] device rai0 left promiscuous mode
[  202.028000] br-lan: port 2(rai0) entered disabled state
[  203.560000] WifiSysClose(), wdev idx = 0
[  203.576000] WifiSysGetBssInfoState(): BssInfoIdx 0 not found!!!
[  203.588000] WifiSysUpdateBssInfoState(): BssInfoIdx 0 not found!!!
[  204.892000] Device Instance
[  204.900000]  WDEV 00:
                Name:rai0
[  204.904000]          Wdev(list) Idx:0
[  204.912000]           Idx:8
[  204.916000]  WDEV 01:
                Name:rai1
[  204.924000]          Wdev(list) Idx:1
[  204.928000]           Idx:9
[  204.932000]  WDEV 02:
                Name:rai2
[  204.940000]          Wdev(list) Idx:2
[  204.944000]           Idx:10
[  204.948000]  WDEV 03:
                Name:rai3
[  204.956000]          Wdev(list) Idx:3
[  204.964000]           Idx:11
[  204.968000]  WDEV 04:
                Name:ra0
[  204.972000]          Wdev(list) Idx:4
[  204.980000]           Idx:12
[  204.984000]  WDEV 05:
                Name:ra1
[  204.992000]          Wdev(list) Idx:5
[  204.996000]           Idx:13
[  205.000000]  WDEV 06:
                Name:ra2
[  205.008000]          Wdev(list) Idx:6
[  205.016000]           Idx:14
[  205.020000]  WDEV 07:
                Name:ra3
[  205.024000]          Wdev(list) Idx:7
[  205.032000]           Idx:15
[  205.036000]  WDEV 08:
                Name:apclii0
[  205.044000]          Wdev(list) Idx:8
[  205.048000]           Idx:16
[  205.052000]  WDEV 09:
                Name:apcli0
[  205.060000]          Wdev(list) Idx:9
[  205.068000]           Idx:17
[  205.072000]  WDEV 10:
[  205.076000]  WDEV 11:
[  205.080000]  WDEV 12:
[  205.084000]  WDEV 13:
[  205.088000]  WDEV 14:
[  205.096000]  WDEV 15:
[  205.100000]  WDEV 16:
[  205.104000]  WDEV 17:
[  205.112000] WifiSysClose(), wdev idx = 4
[  205.112000] WifiSysGetBssInfoState(): BssInfoIdx 1 not found!!!
[  205.112000] WifiSysUpdateBssInfoState(): BssInfoIdx 1 not found!!!
[  205.144000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[  205.156000] WifiSysClose(), wdev idx = 0
[  205.164000] WifiSysClose(), wdev idx = 1
[  205.172000] WifiSysClose(), wdev idx = 2
[  205.180000] WifiSysClose(), wdev idx = 3
[  205.212000] MtAsicSetPiggyBack(779): Not support for HIF_MT yet!
[  205.224000] WifiSysClose(), wdev idx = 4
[  205.232000] WifiSysClose(), wdev idx = 5
[  205.240000] WifiSysClose(), wdev idx = 6
[  205.248000] WifiSysClose(), wdev idx = 7
[  205.260000] kill LoopBackTxTask task failed!
[  205.272000] AndesRestartCheck: Current TOP_MISC2(0x7)
[  205.324000] CmdReStartDLRsp: Status Success!, Status(0)
[  205.336000] EventExtEventHandler: Unknown Ext Event(6f)
[  205.348000] AndesRestartCheck:  TOP_MISC2(1)
[  205.356000] RT28xxPciAsicRadioOff(): Not support for HIF_MT yet!
[  205.368000] RTMPDrvClose call RT28xxPciAsicRadioOff fail !!
[  205.380000] tx_kickout_fail_count = 0
[  205.384000] tx_timeout_fail_count = 0
[  205.392000] rx_receive_fail_count = 0
[  205.400000] alloc_cmd_msg = 1747
[  205.408000] free_cmd_msg = 1747
[  205.416000] cut_through_token_list_destroy(): 85854208,85854208
[  205.428000] cut_through_token_list_destroy(): 85854218,85854218
[  205.444000] FwOwn()::Set Fw Own
[  205.452000] RTMP_AllTimerListRelease: Size=0
[  205.464000] FwOwn()::Return since already in Fw Own...
[  205.472000] <---HwCtrlThread
procd: - reboot [  205.612000] Stopped WatchDog Timer.
-
[  205.620000] Restarting system.

WRC-733GHBK ブート時TFTP (RESETボタン)

WRC-733GHBKは、デバイスの電源投入時にRESETボタンを押しながら行うとTFTPサーバが開始される。
その時投入してみたログ。

U-Boot 1.1.3 (Jun  2 2015 - 17:05:47)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fac000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29 
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D
raspi_read: from:30000 len:1000 
*** Warning - bad CRC, using default environment

============================================ 
Ralink UBoot Version: 4.1.2.0
-------------------------------------------- 
ASIC 7620_MP (Port5GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jun  2 2015  Time:17:05:47
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 580 MHZ #### 
 estimate memory size =64 Mbytes

 Realtek giga Mac init!

 Realtek giga Mac done!

Please choose the operation: 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   5: Load ucos code to SDRAM via TFTP Client. 
   7: Load Boot Loader code then write to Flash via Serial. 
   9: Load Boot Loader code then write to Flash via TFTP. 

raspi_read: from:40028 len:6 

   
5: System Load Boot Loader | F/W  then write to Flash via TFTP Client. 
 Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
 Please Input new ones /or Ctrl-C to discard
        Input device IP (192.168.2.81)  Input server IP (192.168.2.89)  Input Linux Kernel filename () 
 netboot_common, argc= 3 

 NetTxPacket = 0x83FE3E80 

 KSEG1ADDR(NetTxPacket) = 0xA3FE3E80 

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 Realtek giga Mac init!
regData1 = 0000 regData2 = 0000, RTL8367R
(rtk_switch_init 11983) init_rgmii done 

 Realtek giga Mac support done

 ETH_STATE_ACTIVE!! 
(NetLoop 408) bd->bi_enetaddr = 00:00:aa:bb:cc:dd
(NetLoop 409) NetOurEther = 00:00:aa:bb:cc:dd
Select server or client model: 1/2
server model start
SERVER IP address : 192.168.1.6 port:69
Load address: 0x80a00000
Loading: checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
Got ARP REQUEST, return our IP
Peer IP:192.168.1.89
Got ARP REPLY, set server/gtwy eth addr (3c:97:0e:60:44:30)
Got it
Peer IP:192.168.1.89
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################
done
Bytes transferred = 5767953 (580311 hex)
NetBootFileXferSize= 00580311

****************Parse Head**************
signature=CSYS startAddr=0x01100000 burnAddr=0x00070000 nmodTag=RN62 len=0x0057ac72 

****************CheckSume**************
CheckSum ok!
****************Start Upgrade Kernel**************
raspi_erase_write: offs:70000, count:57ac86
raspi_erase: offs:70000 len:570000
.......................................................................................
raspi_write: to:70000 len:570000 
.......................................................................................
raspi_read: from:70000 len:10000 
raspi_read: from:80000 len:10000 
raspi_read: from:90000 len:10000 
raspi_read: from:a0000 len:10000 
raspi_read: from:b0000 len:10000 
raspi_read: from:c0000 len:10000 
raspi_read: from:d0000 len:10000 
raspi_read: from:e0000 len:10000 
raspi_read: from:f0000 len:10000 
raspi_read: from:100000 len:10000 
raspi_read: from:110000 len:10000 
raspi_read: from:120000 len:10000 
raspi_read: from:130000 len:10000 
raspi_read: from:140000 len:10000 
raspi_read: from:150000 len:10000 
raspi_read: from:160000 len:10000 
raspi_read: from:170000 len:10000 
raspi_read: from:180000 len:10000 
raspi_read: from:190000 len:10000 
raspi_read: from:1a0000 len:10000 
raspi_read: from:1b0000 len:10000 
raspi_read: from:1c0000 len:10000 
raspi_read: from:1d0000 len:10000 
raspi_read: from:1e0000 len:10000 
raspi_read: from:1f0000 len:10000 
raspi_read: from:200000 len:10000 
raspi_read: from:210000 len:10000 
raspi_read: from:220000 len:10000 
raspi_read: from:230000 len:10000 
raspi_read: from:240000 len:10000 
raspi_read: from:250000 len:10000 
raspi_read: from:260000 len:10000 
raspi_read: from:270000 len:10000 
raspi_read: from:280000 len:10000 
raspi_read: from:290000 len:10000 
raspi_read: from:2a0000 len:10000 
raspi_read: from:2b0000 len:10000 
raspi_read: from:2c0000 len:10000 
raspi_read: from:2d0000 len:10000 
raspi_read: from:2e0000 len:10000 
raspi_read: from:2f0000 len:10000 
raspi_read: from:300000 len:10000 
raspi_read: from:310000 len:10000 
raspi_read: from:320000 len:10000 
raspi_read: from:330000 len:10000 
raspi_read: from:340000 len:10000 
raspi_read: from:350000 len:10000 
raspi_read: from:360000 len:10000 
raspi_read: from:370000 len:10000 
raspi_read: from:380000 len:10000 
raspi_read: from:390000 len:10000 
raspi_read: from:3a0000 len:10000 
raspi_read: from:3b0000 len:10000 
raspi_read: from:3c0000 len:10000 
raspi_read: from:3d0000 len:10000 
raspi_read: from:3e0000 len:10000 
raspi_read: from:3f0000 len:10000 
raspi_read: from:400000 len:10000 
raspi_read: from:410000 len:10000 
raspi_read: from:420000 len:10000 
raspi_read: from:430000 len:10000 
raspi_read: from:440000 len:10000 
raspi_read: from:450000 len:10000 
raspi_read: from:460000 len:10000 
raspi_read: from:470000 len:10000 
raspi_read: from:480000 len:10000 
raspi_read: from:490000 len:10000 
raspi_read: from:4a0000 len:10000 
raspi_read: from:4b0000 len:10000 
raspi_read: from:4c0000 len:10000 
raspi_read: from:4d0000 len:10000 
raspi_read: from:4e0000 len:10000 
raspi_read: from:4f0000 len:10000 
raspi_read: from:500000 len:10000 
raspi_read: from:510000 len:10000 
raspi_read: from:520000 len:10000 
raspi_read: from:530000 len:10000 
raspi_read: from:540000 len:10000 
raspi_read: from:550000 len:10000 
raspi_read: from:560000 len:10000 
raspi_read: from:570000 len:10000 
raspi_read: from:580000 len:10000 
raspi_read: from:590000 len:10000 
raspi_read: from:5a0000 len:10000 
raspi_read: from:5b0000 len:10000 
raspi_read: from:5c0000 len:10000 
raspi_read: from:5d0000 len:10000 
raspi_read: from:5e0000 len:10000 
raspi_erase: offs:5e0000 len:10000
.
raspi_write: to:5e0000 len:10000 
.
raspi_read: from:5e0000 len:10000 
Done!
## Booting image at bc070000 ...
raspi_read: from:70000 len:40 
Magic number at 0xBC070000 
   Image Name:   MIPS OpenWrt Linux-4.14.138
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1670238 Bytes =  1.6 MB
   Load Address: 80000000
   Entry Point:  80000000
raspi_read: from:70054 len:197c5e 
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.14.138 (musashino205@Taiha.Net) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+10854-852f048b82)) #0 Fri Aug 23 16:55:26 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is ELECOM WRC-733GHBK
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a0 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=0007fabe
[    0.000000] Readback ErrCtl register=0007fabe
[    0.000000] Memory: 58360K/65536K available (3917K kernel code, 190K rwdata, 892K rodata, 1200K init, 213K bss, 7176K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015467] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087707] pid_max: default: 32768 minimum: 301
[    0.097160] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110182] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.131221] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.150708] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.162924] pinctrl core: initialized pinctrl subsystem
[    0.173787] NET: Registered protocol family 16
[    0.665950] PCI host bridge /pcie@10140000 ranges:
[    0.675350]  MEM 0x0000000020000000..0x000000002fffffff
[    0.685722]   IO 0x0000000010160000..0x000000001016ffff
[    0.714206] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.725244] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.737497] GPIO line 0 (rtl8367rb-reset) hogged as output/high
[    0.750035] PCI host bridge to bus 0000:00
[    0.758035] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.771751] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.783477] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.796976] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.813215] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830199] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.843254] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.857062] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    0.870562] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.884071] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[    0.897568] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[    0.911066] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.920917] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    0.938629] clocksource: Switched to clocksource systick
[    0.950480] NET: Registered protocol family 2
[    0.959938] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.973721] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.986303] TCP: Hash tables configured (established 1024 bind 1024)
[    0.999087] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.010614] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.023350] NET: Registered protocol family 1
[    1.035064] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    1.047873] Crashlog allocated RAM at address 0x3f00000
[    1.060080] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    1.080014] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.091518] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.124159] io scheduler noop registered
[    1.131868] io scheduler deadline registered (default)
[    1.142881] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.156522] console [ttyS0] disabled
[    1.163578] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    1.183243] console [ttyS0] enabled
[    1.183243] console [ttyS0] enabled
[    1.197059] bootconsole [early0] disabled
[    1.197059] bootconsole [early0] disabled
[    1.213531] cacheinfo: Failed to find cpu0 device node
[    1.223811] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.241020] spi spi0.0: force spi mode3
[    1.249524] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    1.259355] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.272021] Creating 6 MTD partitions on "spi0.0":
[    1.281598] 0x000000000000-0x000000030000 : "u-boot"
[    1.292477] 0x000000030000-0x000000040000 : "u-boot-env"
[    1.304022] 0x000000040000-0x000000050000 : "factory"
[    1.315022] 0x000000050000-0x000000070000 : "nvram"
[    1.325661] 0x000000070000-0x0000007f0000 : "firmware"
[    1.340588] 2 edimax-fw partitions found on MTD device firmware
[    1.352442] Creating 2 MTD partitions on "firmware":
[    1.362354] 0x000000000000-0x000000197cb2 : "kernel"
[    1.373202] 0x000000197cb2-0x000000780000 : "rootfs"
[    1.383991] mtd: device 6 (rootfs) set to be root filesystem
[    1.396927] 1 squashfs-split partitions found on MTD device rootfs
[    1.409321] 0x00000057b000-0x000000780000 : "rootfs_data"
[    1.421034] 0x0000007f0000-0x000000800000 : "hwconfig"
[    1.433043] libphy: Fixed MDIO Bus: probed
[    1.451060] gsw: setting port4 to ephy mode
[    1.459500] mtk_soc_eth 10100000.ethernet: generated random MAC address 62:be:ad:3f:f9:38
[    1.475838] mtk_soc_eth 10100000.ethernet: using fixed link parameters
[    1.488931] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.501443] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.518465] rt2880_wdt 10000120.watchdog: Initialized
[    1.529931] NET: Registered protocol family 10
[    1.542959] Segment Routing with IPv6
[    1.550459] NET: Registered protocol family 17
[    1.559409] 8021q: 802.1Q VLAN Support v1.8
[    1.578909] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    1.599546] Freeing unused kernel memory: 1200K
[    1.608595] This architecture does not have kernel memory protection.
[    2.623338] init: Console is alive
[    2.630457] init: - watchdog -
[    2.798590] random: fast init done
[    3.878900] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.104077] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.121329] init: - preinit -
[    5.573772] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
[    5.590196] 8021q: adding VLAN 0 to HW filter on device eth0
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3[    5.753384] random: procd: uninitialized urandom read (4 bytes read)
] or [4] key and hit [enter] to select the debug level
[    6.316998] mount_root: no usable overlay filesystem found, using tmpfs overlay
[    6.364486] urandom-seed: Seed file not found (/etc/urandom.seed)
[    6.461068] mtk_soc_eth 10100000.ethernet eth0: port 5 link down
[    6.485387] procd: - early -
[    6.491235] procd: - watchdog -
[    6.698076] procd: - watchdog -
[    6.704756] procd: - ubus -
[    6.862689] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.981070] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.994384] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.008207] procd: - init -
Please press Enter to activate this console.
[    7.922544] urandom_read: 5 callbacks suppressed
[    7.922555] random: jshn: uninitialized urandom read (4 bytes read)
[    8.361984] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.541834] urngd: jent-rng init failed, err: 2
[    8.652330] nat46: module (version 683fbd2b765506332a1af141545652bf58f03166) loaded.
[    8.675599] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.697423] rtl8367b rtl8367rb: cannot find mdio node phandle
[    8.708988] rtl8367b rtl8367rb: using GPIO pins 22 (SDA) and 23 (SCK)
[    8.722970] rtl8367b rtl8367rb: RTL8367RB chip found
[    9.966115] libphy: rtl8367rb: probed
[   10.083435] Loading modules backported from Linux version v5.3-rc4-0-gd45331b00ddb
[   10.098595] Backport generated by backports.git v5.3-rc4-1-0-g4ec72687
[   10.115153] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.136997] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   10.230487] xt_time: kernel timezone is -0000
[   10.404182] PPP generic driver version 2.4.2
[   10.415835] NET: Registered protocol family 24
[   10.440335] mt76x0e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[   10.452952] mt76x0e 0000:01:00.0: ASIC revision: 76100002
[   10.466491] mt76x0e 0000:01:00.0: Firmware Version: 0.1.00
[   10.507031] mt76x0e 0000:01:00.0: EEPROM ver:01 fae:00
[   10.568137] ieee80211 phy1: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'soc_wmac.eeprom'.
[   10.588143] rt2800_wmac 10180000.wmac: Direct firmware load for soc_wmac.eeprom failed with error -2
[   10.606373] rt2800_wmac 10180000.wmac: Falling back to user helper
[   11.536487] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   11.551999] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[   11.602846] kmodloader: done loading kernel modules from /etc/modules.d/*
[   51.845474] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
[   51.861628] 8021q: adding VLAN 0 to HW filter on device eth0
[   51.946429] device eth0 entered promiscuous mode
[   51.997223] br-lan: port 1(eth0.1) entered blocking state
[   52.008062] br-lan: port 1(eth0.1) entered disabled state
[   52.019216] device eth0.1 entered promiscuous mode
[   52.094894] br-lan: port 1(eth0.1) entered blocking state
[   52.105723] br-lan: port 1(eth0.1) entered forwarding state
[   52.117038] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   52.873138] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   55.379325] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[   55.396188] jffs2: empty_blocks 0, bad_blocks 0, c->nr_blocks 517
[   63.886220] random: crng init done



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

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

なんだかJFFS2周りがおかしいが、とりあえずこれで投入することが可能なことを確認。
JFFS2のエラーによりユーザー領域 (rootfs_data) が構築されない問題が発生するが、 firstboot 実施の上再起動することで正常に機能するようになった。

OpenWrtサポート作業状況+予定

WRC-733GHBK
factory投入テスト、最終的なコードチェックで投げ込み
 → 投げ込んだ
WRC-1167GHBK2-I
WRC-1167GHBK2, WRC-1167GHBK2-Cとの互換性をファームからのみ再調査、投げ込みはWRC-733GHBKの様子を見て判断
ただし、投げ込むとしてもWRC-1167GHBK2(-C)実機が手元で確認できない限り、WRC-1167GHBK2(-C)のサポートは含めない
WN-DX1167R
某フリマアプリにて購入済みのWN-AX1167GR2が届き次第、それのサポート作業と同時にDXとのDeviceTreeやsysupgrade周辺コード擦り合わせ実施
WNPR2600G
PRへのOpenWrtチームからの反応があまり無い
NetBSDなNEC機 (WR8750N, WR9500N, WG600HP)
通常のLinux機優先しているため投げ込みは保留中、自repo (musashino-build/openwrt) でのメンテナンスは継続
WR8175N, WG300HPはFlashが4MBのみのため、NetBSD機を投げ込むかどうかに関わらず独自のサポートに留める予定
WSR-2533DHPL
サポート作業は大体完了、あとはOpenWrt化のテストなどいくらか
WSR-2533DHP2
openwrt-devel MLに来ていたRTL8367Sドライバをウォッチ中、それの動向次第

作業予定

WCR-1166DS(入手予定)
MACアドレス構成コード周りの簡略化(mtd_get_mac_ascii へ置換), factoryのbrick問題検証
WSR-1166DHP(2)
MACアドレス構成コード周りの簡略化(mtd_get_mac_asciiへ置換)
git-bashから起動したVSCodeでもWindowsのssh.exeを使うメモ

git-bashから起動したVSCodeでもWindowsのssh.exeを使うメモ

2019/07/04 12:14 追記

Remote拡張で新たなウィンドウが起動された場合、そのウィンドウ内ではsettings.jsonの ${env: <var>} が展開されず、この文字列のままPATHに設定されてしまうことが判明。この結果、ウィンドウ内でSSHが使用できず接続に失敗する。
どうにもできないので、この記事のやり方は非推奨。2019/07/04現在、VSCode Insiders (バージョン: 1.36.0-insider) ではRemote拡張の設定でSSHコマンドへのパス指定が実装されているため、これを利用してしまうのが手っ取り早そう。リリース版 (バージョン: 1.35.1) にはこの設定は無し。
追記: リリース版 (バージョン: 1.36.0) からssh.exeへのパス指定が追加されていることを確認。

Windows 10にて、普段git-bashからVisual Studio Codeを起動して作業しているが、その際VSCodeへgit-bashからPATHが渡され、VSCode側の認識するssh.exeがgit-bash側のものとWindows側のもの2種類が存在してしまっていた。

PS C:\Users\tofu\git\musashino205\openwrt> cmd
Microsoft Windows [Version 10.0.18362.175]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\tofu\git\musashino205\openwrt>path
PATH=C:\Users\tofu\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\tofu\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Poedit;D:\Compiler\go\bin;D:\Compiler\GOPATH\bin;C:\Users\tofu\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl

C:\Users\tofu\git\musashino205\openwrt>where ssh.exe
C:\Program Files\Git\usr\bin\ssh.exe
C:\Windows\System32\OpenSSH\ssh.exe

C:\Users\tofu\git\musashino205\openwrt>

この結果、Remoting (SSH)などでgit-bash側のssh.exeが使用され、Windows側のssh-agentに登録した認証情報を使用して自動的にログインできず、毎回パスワードを聞かれて非常に面倒だった。

大体対処できたのでメモ。

Windowsの環境変数を追加登録
Windowsの環境変数を登録。ユーザー環境変数で問題ない。
名前は VSCPATH などとし、値は %PATH%
settings.jsonを編集
VSCodeのsettings.jsonを開き、以下を追加して保存(環境変数名は適宜合わせること)

    "terminal.integrated.env.windows": {
        "PATH": "${env:VSCPATH}"
    }

${env:<variable>} は環境変数を読み取って代入するもの。

以上。

PS C:\Users\tofu\git\musashino205\openwrt> cmd
Microsoft Windows [Version 10.0.18362.175]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\tofu\git\musashino205\openwrt>path
PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Poedit;D:\Compiler\go\bin;D:\Compiler\GOPATH\bin;C:\Users\tofu\AppData\Local\Microsoft\WindowsApps;

C:\Users\tofu\git\musashino205\openwrt>where ssh.exe
C:\Windows\System32\OpenSSH\ssh.exe

C:\Users\tofu\git\musashino205\openwrt>

WN-G300DGR

作業した時期が非常に古く、メモを取っていなかったので今更ながら書き出し。なお、既に散々弄った状態であるためオリジナルとは異なっていたり、破損個所が存在する可能性に注意すること。

MAC

  • LAN: 00:A0:B0:xx:xx:AC (u-boot-env, ethaddr (text))
  • WAN: 00:A0:B0:xx:xx:AB (u-boot-env, wanaddr (tex))
  • 2.4G: 00:A0:B0:xx:xx:AC (Factory, 0x4 (hex))

※Flash: Parallel-NOR (CFI) 4MiB (MX29LV320E)

U-Boot

  • help
    RT3052 # help
    rf      - read/write rf register
    ?       - alias for 'help'
    bootm   - boot application image from memory
    cp      - memory copy
    erase   - erase FLASH memory
    go      - start application at address 'addr'
    help    - print online help
    loadb   - load binary file over serial line (kermit mode)
    loopback   - Ralink eth loopback test !!
    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
    protect - enable or disable FLASH write protection
    reset   - Perform RESET of the CPU
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    spicmd  - read/write data from/to eeprom or vtss
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version
    

  • version

    RT3052 # version
    
    U-Boot 1.1.3 (Jun  1 2011 - 15:30:20)
    

  • printenv

    RT3052 # printenv
    bootcmd=tftp
    bootdelay=5
    baudrate=57600
    ethaddr="00:A0:B0:**:**:**"
    sn=00024936I
    hw_ver=1.0.0
    pro_id=000
    country=000
    domain=1
    wanaddr=00:A0:B0:**:**:**
    wlanaddr=00:AA:BB:CC:DD:12
    fwaddr=00:AA:BB:CC:DD:13
    eth_en=0
    snextra=00000000000000000000
    preboot=echo;echo
    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
    hw_id=030A003E
    ethact=Eth0 
    filesize=26c36d
    fileaddr=80800000
    ipaddr=192.168.99.9
    serverip=192.168.99.8
    autostart=no
    bootfile=uImageWN-G300DGR
    uboot_ver=1.0.6.20
    op_mode=1
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 1066/4092 bytes
    

Kernel

  • uname -a

    # uname -a
    Linux WN-G300DGR 2.6.21 #3 Tue Mar 17 09:25:56 CST 2015 mips unknown
    

  • cat /proc/version

    # cat /proc/version
    Linux version 2.6.21 (root@******-******-******-******) (gcc version 3.4.6) #3 Tue Mar 17 09:25:56 CST 2015
    

  • cat /proc/cpuinfo

    # cat /proc/cpuinfo
    system type             : Ralink SoC
    processor               : 0
    cpu model               : MIPS 24K V4.12
    BogoMIPS                : 255.48
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes
    ASEs implemented        : mips16 dsp
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/meminfo

    # cat /proc/meminfo
    MemTotal:        29696 kB
    MemFree:         15092 kB
    Buffers:          1096 kB
    Cached:           5616 kB
    SwapCached:          0 kB
    Active:           3860 kB
    Inactive:         4216 kB
    SwapTotal:           0 kB
    SwapFree:            0 kB
    Dirty:               0 kB
    Writeback:           0 kB
    AnonPages:        1372 kB
    Mapped:           1920 kB
    Slab:             3684 kB
    SReclaimable:      464 kB
    SUnreclaim:       3220 kB
    PageTables:        412 kB
    NFS_Unstable:        0 kB
    Bounce:              0 kB
    CommitLimit:     14848 kB
    Committed_AS:     3692 kB
    VmallocTotal:  1048404 kB
    VmallocUsed:     18468 kB
    VmallocChunk:  1029828 kB
    

  • cat /proc/mtd

    # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00020000 00010000 "Bootloader"
    mtd1: 00010000 00010000 "backup"
    mtd2: 00010000 00010000 "Config "
    mtd3: 00010000 00010000 "Factory"
    mtd4: 000b0000 00010000 "Kernel"
    mtd5: 002b0000 00010000 "app"
    mtd6: 001a0000 00010000 "cb-app"
    mtd7: 00040000 00010000 "manufacture"
    mtd8: 00010000 00002000 "storage"
    

  • bootlog

    U-boot Ver:1.0.6.20 2011/06/01
    
    
    Board: Ralink APSoC DRAM:  32 MB  2*16 MB
    ============================================ 
    ASIC 3052_MP2 (Port5GigaSW)
    Product Name: WN-G300DGR
    SDRAM CAS = 3(d1835272) 
    ============================================ 
    
    Please choose the operation: 
       1: Load system code to SDRAM via TFTP. 
    
    LINUX started...
    
     THIS IS ASIC
    init started: BusyBox v1.7.5 (2015-03-17 09:22:54 CST)
    starting pid 151, tty '/dev/console': '/sbin/config_init'
    mknod: /dev/ttyS0: File exists
    mknod: /dev/ttyS1: File exists
    Config Init version: 1.15.000.113 date: 2015/03/17
    Thu Jan  1 00:00:00 UTC 2015
    mount: can't find /sys in /etc/fstab or /etc/mtab
    ln: /lib/./modules: File exists
    switch reg write offset=94, value=7f00
    Could not find Watchdog driver (/apps/lib/modules/2.6.21/kernel/arch/mips/rt2880/rt_timer.ko)
    Application Ver:1.15.000.113             Date:2015/03/17
    
    starting pid 211, tty '/dev/ttyS1': '/sbin/config_term'
    ************************************************************************
    *                               WN-G300DGR                             *
    ************************************************************************
    
    KernelApp/Ramdisk Ver:1.15.000.113                       Date:2015/03/17
    cat: can't open '/apps/lib/modules/2.6.21/modulesApp.dep': No such file or directory
    ln: /sbin/apps_init: File exists
    ln: /sbin/opmode.sh: File exists
    password: createShareMem keyid 7001 shmId 0
    Set Int value 0 but not in rage 1000 to 50000
    checkpApCfg i=746 [wan2_dl_bw]
    Set Int value 0 but not in rage 1000 to 50000
    checkpApCfg i=762 [wan2_ul_bw]
    checkpApCfg error!!
    CTRL_INTERFACE:[/var/sysconfd_if]  CTRL_INTERFACE_IF:[if0]
    
    System Monitoring
    *********************************************************************
    Initializing system environment
    Setting up /tmp directory ...
    Setting up loopback device ...
    ***************************************************
    System is in    AP Router Mode [0]
    ***************************************************
    SEM_GETID got id -1
    Mac: 0, rtcTime:1420070401
    Starting system logging daemon ...OK
    Setting up Ethernet devices ...
    OK
    Configuring Bridge device ...          OK
    Setting the host&domain name ...Finished.
    Configuring net ...          OK
    Configuring LAN device ...          OK
    getRegularDomain,0
    Configuring RT28XX device ...Wlan is in AP Mode
    Using fixWDSLowTP function.
    sh: cannot create /proc/netpktconfig/config_interface: nonexistent directory
    Wan Manager...
    Configuring WAN device[WAN0] ...
    Obtaining IP address from DHCP ... 
    wan is Ready
    Set Domain Routing for FLET'S Square Connection...            
    Starting DNS Proxy ...            FAILED
    Starting DHCP(udhcpd) server ...            OK
    Starting ntpclient ...            
    Setup tc for QoS ... Disabled
    
    SCHEDULE, ServiceWlanLowRateInit ...service_index[0].
    
    SCHEDULE, ServiceWlsRadioOffInit ...service_index[1].
    
    SCHEDULE, ServiceLedOffInit ...service_index[2].
    
    SCHEDULE, ServiceLanOffInit ...service_index[3].
    
    SCHEDULE, ServiceWanOffInit ...service_index[4].
    
    SCHEDULE, ServiceLanLowRateInit ...service_index[5].
    
    SCHEDULE, ServicePowerLedInit ...service_index[6].
    
    
    Schedule starting  [scheduleOpen], ...wait result..
    Schedule result :[Disable (No rules)]. 
    Configuring network routing and filtering ...Iptable restart VPN ACL ...VPN ACL ...
    OK
    Starting SiteBlock server ...            
    Netpacket Filter Open ....              sysGetKernelInfo: netv :1.0
    Kernel netpkt ver netv: 1.0
    OK
    Starting DDNS  ...  Disabled
    Starting UPNPD  ...  WAN Speed = 10 Mbps
    FAILED
    Starting HTTPD server ...           OK
    Staring ALG...           OK
    Starting LLTD ...           OK
    Starting netbios daemon ...  OK
    Initialization has completed
    *We used 6.210000 seconds to initialize all modules*
    pSEM_GETID got id 32769
    [RMGMT DBG] RMGMT_VERSION: 3.42.32
    NewWAN0:[192.168.1.25]  LastWAN0:[0.0.0.0]
    wan0Configuring ...
    Wan IP was changed, Reload related module**
    *** PROCESS MANAGER Starts ***
    Processmanager update modules
    Restarting Iptables ....Clean iptable...OK
    Configuring network routing and filtering ...Iptable restart VPN ACL ...VPN ACL ...
    OK
    OK
    QoS, Stopping
    Setup tc for QoS ... Disabled
    Reloading dnsProxy ...            Stopping DNS Proxy ...            OK
    Set Domain Routing for FLET'S Square Connection...            
    Starting DNS Proxy ...            wan0Configuring ...
    OK
    Stopping igmpProxy ...            OK
    Starting IGMP Proxy ...  OK
    Starting UPNPD  ...  WAN Speed = 1000 Mbps
    OK
    RMMOD ALG H323 [ip_nat_h323]
    RMMOD ALG MMS [ip_nat_mms]
    RMMOD 2nd ALG TFTP [ip_nat_tftp]
    RMMOD ALG TFTP [ip_conntrack_tftp]
    RMMOD ALG Egg [ip_conntrack_egg]
    RMMOD ALG IRC [ip_nat_irc]
    RMMOD ALG Quake3 [ip_nat_quake3]
    RMMOD ALG Talk [ip_nat_talk]
    RMMOD ALG PPTP [ip_nat_pptp]
    RMMOD ALG SNMP [ip_nat_snmp_basic]
    RMMOD ALG FTP [ip_nat_ftp]
    RMMOD 2nd ALG SIP [ip_nat_sip]
    RMMOD ALG SIP [ip_conntrack_sip]
    RMMOD 2nd ALG RTSP [ip_nat_rtsp]
    RMMOD ALG RTSP [ip_conntrack_rtsp]
    Staring ALG...           OK
    Processmanager update modules
    VPN, WAN_IP_CHANGED event received ...Closing ntpclient ...            Starting ntpclient ...            
    Stopping DDNS ...            OK
    Starting DDNS  ...  Disabled
    
    SCHEDULE, ServiceWlanLowRateInit ...service_index[0].
    
    SCHEDULE, ServiceWlsRadioOffInit ...service_index[1].
    
    SCHEDULE, ServiceLedOffInit ...service_index[2].
    
    SCHEDULE, ServiceLanOffInit ...service_index[3].
    
    SCHEDULE, ServiceWanOffInit ...service_index[4].
    
    SCHEDULE, ServiceLanLowRateInit ...service_index[5].
    
    SCHEDULE, ServicePowerLedInit ...service_index[6].
    
    
    Schedule starting  [scheduleOpen], ...wait result..
    Schedule result :[Disable (No rules)]. 
    ==>error
    

検索ワード色々

適当にWordPressのダッシュボードやGoogle Webmasterの解析を眺め、拾い上げたワードについて色々。
雑記だけでなくメインのブログでの検索ワードについてもまとめる。

Q: 何故OpenWrt関係だけ?
A: BVEとかVostro 260sその他も色々あったけど、最近の記事の傾向的にOpenWrtが扱いやすいから。
wn-ac1167r openwrt
WN-AC1167″R” はRealtek SoC搭載と推測される。OpenWrtでは現在Realtek SoCのサポートが無く、搭載するルータもサポートできないためこの機種は未サポート。今後の作業予定も無し。
elecom wrc-1167ghbk2-s dd-wrt
WRC-1167GHBK2-S用のDD-WRTファームウェアは存在せず。DD-WRTはそもそもが過去のOpenWrtをベースとし海外機を中心とした国外のプロジェクトであり、日本のみで販売されている機種をプロジェクトが人的その他のリソースを割いてサポートしても現地方面にとってはメリットが皆無であるため、サポートされる可能性は限りなく低い。OpenWrtでは既にサポート済み。
なお、BUFFALOやPlanexの一部機種(古いものが中心)はDD-WRTでもサポートされている。
openwrt コマンド仕様書
基本的に openwrt.org の Technical Reference を参照。OpenWrtはLinuxをKernelに採用しており、Linuxで一般的なコマンドについてはそれぞれの開発元のドキュメントを参照。
openwrt nec
2019年6月現在、OpenWrtでサポートされているNEC製ルータは以下の通り。

model SoC target/subtarget Release
WG800HP QCA9563 ath79/generic snapshot
WG1200CR QCA9563 ath79/generic snapshot
WG2600HP/HP2 IPQ8064 ipq806x/generic OpenWrt 18.06

※WG2600HPxはHPのみサポート済みとなっているが、WG2600HP2にもHP用OpenWrtファームウェアを使用可。WG2600HP3は未サポート。
※他にサポートが可能と思われる機種はいくつかあるが、実機を確保できていないため、まだ。

openwrt 対応機種
wsr-1166dhp3 openwrt
WSR-1166DHP3はRealtek SoCを搭載する。このため、上で挙げたWN-AC1167Rと同様にOpenWrtでサポートされていないSoCであるため現在この機種もサポートされておらず、今後作業予定も無し。

WG2600HPx ファーム展開メモ (2)

続き的なもの。

前回OpenSSLによりdecryptしたファイルを用い、KernelとRootfsの取り出し。
ブートローダ用スクリプト, TP (TestProgram), Kernel (HLOS), RootFSの4つのイメージがFIT形式で格納されている。
余談: 以下は全てWindows 10環境(WSL含む)での作業。

バイナリエディタ等でdecryptしたファーム内のhexデータ d00dfeed (D00DFEED) を探し、

tofu@Tofu-H170W10 MINGW64 ~/router/nec/wg2600hp2/wg2600hp2_1_0_5
$ busybox hexdump -n 256 -C wg2600hp2_1_0_5.bin.pad.dec
00000000  55 53 42 20 41 54 45 52  4d 57 4c 33 30 35 30 00  |USB ATERMWL3050.|
00000010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00000020  00 00 ff ff 00 00 00 68  00 00 00 18 6a af 00 00  |.......h....j...|
00000030  00 00 00 00 00 00 00 00  56 45 52 53 49 4f 4e 3a  |........VERSION:|
00000040  20 33 2e 33 39 2e 32 30  0a 4f 45 4d 31 20 56 45  | 3.39.20.OEM1 VE|
00000050  52 53 49 4f 4e 3a 20 31  2e 30 2e 35 0a 43 6f 70  |RSION: 1.0.5.Cop|
00000060  79 72 69 67 68 74 28 63  29 20 4e 45 43 20 50 6c  |yright(c) NEC Pl|
00000070  61 74 66 6f 72 6d 73 2c  20 4c 74 64 2e 20 32 30  |atforms, Ltd. 20|
00000080  30 31 2d 32 30 31 35 0a  00 02 ff fd 00 f9 66 50  |01-2015.......fP|
00000090  00 00 00 18 ce 19 00 00  00 00 00 00 00 00 00 00  |................|
000000a0  d0 0d fe ed 00 f9 66 34  00 00 00 38 00 f9 64 64  |......f4...8..dd|
000000b0  00 00 00 28 00 00 00 11  00 00 00 10 00 00 00 00  |...(............|
000000c0  00 00 00 3c 00 f9 64 2c  00 00 00 00 00 00 00 00  |...<..d,........|
000000d0  00 00 00 00 00 00 00 00  00 00 00 01 00 00 00 00  |................|
000000e0  00 00 00 03 00 00 00 04  00 00 00 32 5c 41 a9 4f  |...........2\A.O|
000000f0  00 00 00 03 00 00 00 17  00 00 00 00 46 6c 61 73  |............Flas|
00000100

それが先頭に来るよう切り詰め。

tofu@Tofu-H170W10 MINGW64 ~/router/nec/wg2600hp2/wg2600hp2_1_0_5
$ busybox hexdump -n 256 -C wg2600hp2_1_0_5.bin.pad.dec.itb
00000000  d0 0d fe ed 00 f9 66 34  00 00 00 38 00 f9 64 64  |......f4...8..dd|
00000010  00 00 00 28 00 00 00 11  00 00 00 10 00 00 00 00  |...(............|
00000020  00 00 00 3c 00 f9 64 2c  00 00 00 00 00 00 00 00  |...<..d,........|
00000030  00 00 00 00 00 00 00 00  00 00 00 01 00 00 00 00  |................|
00000040  00 00 00 03 00 00 00 04  00 00 00 32 5c 41 a9 4f  |...........2\A.O|
00000050  00 00 00 03 00 00 00 17  00 00 00 00 46 6c 61 73  |............Flas|
00000060  68 69 6e 67 20 6e 6f 72  20 31 30 30 20 31 30 30  |hing nor 100 100|
00000070  30 30 00 00 00 00 00 01  69 6d 61 67 65 73 00 00  |00......images..|
00000080  00 00 00 01 73 63 72 69  70 74 00 00 00 00 00 03  |....script......|
00000090  00 00 00 0a 00 00 00 00  66 6c 61 73 68 2e 73 63  |........flash.sc|
000000a0  72 00 00 00 00 00 00 03  00 00 63 c7 00 00 00 0c  |r.........c.....|
000000b0  69 66 20 74 65 73 74 20  22 78 24 76 65 72 62 6f  |if test "x$verbo|
000000c0  73 65 22 20 3d 20 22 78  22 3b 20 74 68 65 6e 0a  |se" = "x"; then.|
000000d0  66 61 69 6c 65 64 6d 73  67 3d 27 5b 66 61 69 6c  |failedmsg='[fail|
000000e0  65 64 5d 27 0a 65 6c 73  65 0a 66 61 69 6c 65 64  |ed]'.else.failed|
000000f0  6d 73 67 3d 27 23 23 23  23 23 23 23 23 23 23 23  |msg='###########|
00000100

切り詰めたファイルを dumpimage コマンドでリスト表示。

tofu@Tofu-H170W10:/mnt/d/router/NEC/WG2600HP2/wg2600hp2_1_0_5$ dumpimage -l wg2600hp2_1_0_5.bin.pad.dec.itb
FIT description: Flashing nor 100 10000
Created:         Fri Jan 18 19:24:15 2019
 Image 0 (script)
  Description:  flash.scr
  Created:      Fri Jan 18 19:24:15 2019
  Type:         Script
  Compression:  uncompressed
  Data Size:    25543 Bytes = 24.94 KiB = 0.02 MiB
  Hash algo:    crc32
  Hash value:   fad97085
 Image 1 (tp-147c46b934f3a70b73abf2c62847c7685388b4b8)
  Description:  rotary-tp.bin
  Created:      Fri Jan 18 19:24:15 2019
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    66736 Bytes = 65.17 KiB = 0.06 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
  Hash algo:    crc32
  Hash value:   22f74fee
 Image 2 (hlos-894c257106b4e407230bdc07bedb9c44ce088f40)
  Description:  openwrt-ipq806x-3.4-uImage
  Created:      Fri Jan 18 19:24:15 2019
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    1925174 Bytes = 1880.05 KiB = 1.84 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
  Hash algo:    crc32
  Hash value:   7d55fcec
 Image 3 (fs-73be11f50c9325ae68c43b1ae01663c947d14314)
  Description:  openwrt-ipq806x-squashfs-root.img
  Created:      Fri Jan 18 19:24:15 2019
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    14325760 Bytes = 13990.00 KiB = 13.66 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
  Hash algo:    crc32
  Hash value:   bb43bd4c

再び dumpimage コマンドを用い、KernelとRootFSを取り出し。

-i: 入力ファイル
-p: FIT内の位置指定、上記リストの Image n
最後: 出力先ファイル名
tofu@Tofu-H170W10:/mnt/d/router/NEC/WG2600HP2/wg2600hp2_1_0_5$ dumpimage -T flat_dt -i wg2600hp2_1_0_5.bin.pad.dec.itb -p 2 wg2600hp2_1_0_5_kernel.bin
Extracted:
 Image 2 (hlos-894c257106b4e407230bdc07bedb9c44ce088f40)
  Description:  openwrt-ipq806x-3.4-uImage
  Created:      Fri Jan 18 19:24:15 2019
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    1925174 Bytes = 1880.05 KiB = 1.84 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
  Hash algo:    crc32
  Hash value:   7d55fcec
tofu@Tofu-H170W10:/mnt/d/router/NEC/WG2600HP2/wg2600hp2_1_0_5$ dumpimage -T flat_dt -i wg2600hp2_1_0_5.bin.pad.dec.itb -p 3 wg2600hp2_1_0_5_rootfs.bin
Extracted:
 Image 3 (fs-73be11f50c9325ae68c43b1ae01663c947d14314)
  Description:  openwrt-ipq806x-squashfs-root.img
  Created:      Fri Jan 18 19:24:15 2019
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    14325760 Bytes = 13990.00 KiB = 13.66 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
  Hash algo:    crc32
  Hash value:   bb43bd4c

WG2600HPx ファーム展開メモ

many thanks goroh_kun (@goroh_kun)

ヘッダ(0x0 – 0xF) 除去したものを32byte単位でpadding

tofu@Tofu-H170W10 MINGW64 ~/router/nec/wg2600hp/wg2600hp_1_0_13
$ dd if=wg2600hp_1_0_13_noheader.bin of=wg2600hp_1_0_13_noheader.bin.pad bs=32 conv=sync
396727+0 records in
396727+0 records out
12695264 bytes (13 MB, 12 MiB) copied, 2.89493 s, 4.4 MB/s

キーを32byteで作成してhexな文字列で取り出し

tofu@Tofu-H170W10 MINGW64 ~/router/nec/wg2600hp/wg2600hp_1_0_13
$ echo -n "rotary" | dd bs=32 count=1 conv=sync > key.bin
0+1 records in
1+0 records out
32 bytes copied, 0.0061302 s, 5.2 kB/s

tofu@Tofu-H170W10 MINGW64 ~/router/nec/wg2600hp/wg2600hp_1_0_13
$ busybox hexdump -v -e '1/1 "%02x"' key.bin
726f746172790000000000000000000000000000000000000000000000000000

バイナリファイルへの出力省略してワンライナーでも可。

tofu@Tofu-H170W10 MINGW64 ~/router/nec/wg2600hp2/wg2600hp2_1_0_5
$ echo -n "rotary" | dd bs=32 count=1 conv=sync 2> /dev/null | busybox hexdump -v -e '1/1 "%02x"'
726f746172790000000000000000000000000000000000000000000000000000

OpenSSLを用いてdecrypt

tofu@Tofu-H170W10 MINGW64 ~/router/nec/wg2600hp/wg2600hp_1_0_13
$ openssl enc -aes-256-cbc -d -in wg2600hp_1_0_13_noheader.bin.pad -out wg2600hp_1_0_13_noheader.bin.pad.dec -K 726f746172790000000000000000000000000000000000000000000000000000 -iv 0 -nopad

完了

tofu@Tofu-H170W10 MINGW64 ~/router/nec/wg2600hp/wg2600hp_1_0_13
$ busybox hexdump -n 128 -C wg2600hp_1_0_13_noheader.bin.pad.dec
00000000  55 53 42 20 41 54 45 52  4d 57 4c 33 30 35 30 00  |USB ATERMWL3050.|
00000010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00000020  00 00 ff ff 00 00 00 69  00 00 00 18 25 c3 00 00  |.......i....%...|
00000030  00 00 00 00 00 00 00 00  56 45 52 53 49 4f 4e 3a  |........VERSION:|
00000040  20 33 2e 32 30 2e 36 37  0a 4f 45 4d 31 20 56 45  | 3.20.67.OEM1 VE|
00000050  52 53 49 4f 4e 3a 20 31  2e 30 2e 31 33 0a 43 6f  |RSION: 1.0.13.Co|
00000060  70 79 72 69 67 68 74 28  63 29 20 4e 45 43 20 50  |pyright(c) NEC P|
00000070  6c 61 74 66 6f 72 6d 73  2c 20 4c 74 64 2e 20 32  |latforms, Ltd. 2|
00000080

WG2600HP2

某フリマアプリで、ブート不可のジャンクとして出品されていたものを購入。
説明を見た限りではブートローダは生きており、KernelかRootfsの破損によりブートできなくなっているものと思われた。

WG2600HP2のコードネームはWG2600HPと同じ “ROTARY” であり、ハードウェアの差異はほとんど無いと思われる。

U-Boot

  • help
    boot> help
    ?       - alias for 'help'
    additional- [NECPF] additional information read/write/erase command
    ar8xxx_dump- Dump ar8xxx registers
    base    - print or set address offset
    bdinfo  - print Board Info structure
    bootipq - bootipq from flash device
    bootm   - boot application image from memory
    bootp   - boot image via network using BOOTP/TFTP protocol
    bootz   - boot Linux zImage image from memory
    chpart  - change active partition
    ckcrc   - [NECPF] check the crc32 in RAM
    cmp     - memory compare
    configid- [NECPF] configid read/write command
    cp      - memory copy
    crc32   - checksum calculation
    debug   - [NECPF] debug command
    dhcp    - boot image via network using DHCP/TFTP protocol
    dumpipq_data- dumpipq_data crashdump collection from memory
    echo    - echo args to console
    env     - environment handling commands
    errorlog- [NECPF] errorlog command
    ethspeed- Force ethernet speed to 10/100/autoneg
    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
    iminfo  - print header information for application image
    imxtract- extract a part of a multi-image
    ipq_nand- Switch between SBL and Linux kernel page layout.
    loadb   - load binary file over serial line (kermit mode)
    loady   - load binary file over serial line (ymodem mode)
    loop    - infinite loop on address range
    macaddr - [NECPF] macaddr read/write command
    md      - memory display
    mii     - MII utility commands
    mm      - memory modify (auto-incrementing address)
    mmc     - MMC sub system
    mmcinfo - display MMC info
    mphyrd  - qca8511 packet processor PHY register display
    mphyrw  - qca8511 packet processor PHY register write (fill)
    mprd    - qca8511 packet processor register display
    mprw    - qca8511 packet processor register write (fill)
    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
    pkg_info- [NECPF] show package information
    presetid- [NECPF] presetid read/write/erase command
    printenv- print environment variables
    randomkey- [NECPF] randomkey read/write command
    reset   - Perform RESET of the CPU
    rf_regdmn- [NECPF] rf_regdmn read command
    rf_serial- [NECPF] rf_serial read command
    run     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    serial  - [NECPF] serial read/write/erase command
    setenv  - set environment variables
    sf      - SPI flash sub-system
    show_version- [NECPF] show boot/tp/system version
    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
    tftpsrv - act as a TFTP server and boot the first received file
    tp      - [NECPF] run test program
    true    - do nothing, successfully
    uartrd  - uartrd from flash device
    uartwr  - uartwr from flash device
    ubi     - ubi commands
    usb     - USB sub-system
    usbboot - boot from USB device
    version - print monitor, compiler and linker version
    

  • version

    boot> version
    
    
    U-Boot 2012.07 [Standard IPQ806X.LN,local] (May 20 2016 - 11:16:41)
    arm-openwrt-linux-uclibcgnueabi-gcc (Linaro GCC 4.6-2012.02) 4.6.3 20120201 (prerelease)
    GNU ld (GNU Binutils) 2.22
    

  • show_version

    boot> show_version
    TP Version = 2.0.0
    Boot Version = 2.0.0
    System (Kernel) Size : 1923472 Bytes (0x001d5990)
    NEC_VERSION=3.39.20
    OEM_VERSION=1.0.5
    

  • printenv

    boot> printenv
    baudrate=115200
    bootargs=console=ttyHSL1,115200n8
    bootcmd=bootipq
    bootdelay=2
    eth1addr=98:f1:99:**:**:**
    ethact=eth1
    ethaddr=98:f1:99:**:**:**
    ethrotate=no
    ipaddr=192.168.0.1
    machid=1260
    stderr=serial
    stdin=serial
    stdout=serial
    
    
    Environment size: 255/65532 bytes
    

  • pkg_info

    boot> pkg_info
    PKG NAME : ROTARY
    CPU : ARMv7 Processor [512f04d0] revision 0
    RAM : 510 MiB
    Flash : 32 MiB
    Device         : S25FL256S
    Sector size    : 64 KiB
    DIPSW : 0x3
    

  • mii device
    boot> mii device
    MII devices: 'IPQ MDIO1' 'IPQ MDIO2'
    Current device: 'IPQ MDIO2'
    

  • help debug
    boot> help debug
    debug - [NECPF] debug command
    
    
    Usage:
    debug - [NECPF] debug command
    debug watchdog enable  - Enable watchdog timer.
    debug watchdog disable - Disable watchdog timer.
    debug watchdog reboot  - Wait for a watchdog timer to expire.
    debug watchdog settime - Set a watchdog time. [sec]
    debug flash read  - flash read.
    debug flash write - flash write.
    debug flash erase - flash erase.
    debug flash info  - flash information.
    debug flash diag  - self diagnostic for flash device.
    debug l2sw read  - l2sw register read.
    debug l2sw write - l2sw register write.
    debug l2sw dump  - l2sw register dump.
    

  • debug l2sw dump

    boot> debug l2sw dump
    ### PHY ###
    
    
    ADDR : PHY0 PHY1 PHY2 PHY3 PHY4
    -----+-------------------------
    0 : 3100 1000 3100 3100 3100
    1 : 7949 7949 7949 7949 7949
    2 : 004d 004d 004d 004d 004d
    3 : d036 d036 d036 d036 d036
    4 : 1de1 1de1 1de1 1de1 1de1
    5 : 0000 0000 0000 0000 0000
    6 : 0004 0004 0004 0004 0004
    7 : 2801 2801 2801 2801 2801
    8 : 0000 0000 0000 0000 0000
    9 : 0200 0200 0200 0200 0200
    a : 0000 0000 0000 0000 0000
    b : 0000 0000 0000 0000 0000
    c : 0000 0000 0000 0000 0000
    d : 4007 4007 4007 4007 4007
    e : 0000 0000 0000 0000 0000
    f : 2000 2000 2000 2000 2000
    10 : 0862 0862 0862 0862 0862
    11 : 0010 0010 0010 0010 0010
    12 : 0000 0000 0000 0000 0000
    13 : 0000 0000 0000 0000 0000
    14 : 082c 082c 082c 082c 082c
    15 : 0000 0000 0000 0000 0000
    16 : 2400 2400 2400 2400 2400
    17 : 0000 0000 0000 0000 0000
    18 : 3200 3200 3200 3200 3200
    19 : 1000 1000 1000 1000 1000
    1a : 0000 0000 0000 0000 0000
    1b : 0000 0000 0000 0000 0000
    1c : 0000 0000 0000 0000 0000
    1d : 003f 003f 003f 003f 003f
    1e : 8000 8000 8000 8000 8000
    1f : 0000 0000 0000 0000 0000
    
    ### DEBUG ###
    
    ADDR : PHY0 PHY1 PHY2 PHY3 PHY4
    -----+-------------------------
    0 : 02ee 02ee 02ee 02ee 02ee
    1 : 02b2 01b1 01b1 01b1 02b2
    2 : 3220 3220 3220 3110 3220
    3 : 3f11 3f11 3f11 3f22 3f22
    4 : fbbb fbbb fbbb fbbb fbbb
    5 : 1c47 1c47 1c47 1c47 1c47
    6 : 0000 0000 0000 0000 0000
    7 : 0000 0000 0000 0000 0000
    8 : 1c00 1c00 1c00 1c00 1c00
    9 : 8000 8000 8000 8000 8000
    a : 3000 3000 3000 3000 3000
    b : bc40 bc40 bc40 bc40 bc40
    c : 6001 6001 6001 6001 6001
    d : 2820 a820 2820 2820 2820
    e : 0003 0003 0003 0003 0003
    f : 0030 0030 0030 0030 0030
    10 : 0000 0000 0000 0000 0000
    11 : 7552 7552 7552 7552 7552
    12 : 4c04 4c04 4c04 4c04 4c04
    13 : c01b c01b c01b c01b c01b
    14 : 0752 0752 0752 0752 0752
    15 : b220 b220 b220 b220 b220
    16 : 8000 8000 8000 8000 8000
    17 : 0000 0000 0000 0000 0000
    18 : 62ea 62ea 62ea 62ea 62ea
    19 : 01f4 01f4 01f4 01f4 01f4
    1a : 01d7 01d7 01d7 01d7 01d7
    1b : 0176 02ee 0176 0176 0176
    1c : 3cbb 3cbb 3cbb 3cbb 3cbb
    1d : 00ec 00ec 00ec 00ec 00ec
    1e : 0076 0076 0076 0076 0076
    1f : 0000 0000 0000 0000 0000
    20 : 0000 0000 0000 0000 0000
    21 : 2d15 2d15 2d15 2d15 2d15
    22 : 1f6a 1f6a 1f6a 1f6a 1f6a
    23 : a200 a200 a200 a200 a200
    24 : 1000 5000 1000 1000 1000
    25 : 0000 0000 0000 0000 0000
    26 : 0000 0000 0000 0002 0000
    27 : 1000 1000 1000 1000 1000
    28 : 0000 0000 0000 0000 0000
    29 : 36dd 36dd 36dd 36dd 36dd
    2a : 0000 0000 0000 0000 0000
    2b : 3a98 3a98 3a98 3a98 3a98
    2c : 0000 0000 0000 0000 0000
    2d : 0000 0000 0000 0000 0000
    2e : 0000 0000 0000 0000 0000
    2f : 0000 0000 0000 0000 0000
    30 : 0000 0000 0000 0000 0000
    31 : 0000 0000 0000 0000 0000
    32 : 2200 2200 2200 2200 2200
    33 : 2200 2200 2200 2200 2200
    34 : 2200 2200 2200 2200 2200
    35 : 0000 0000 0000 0000 0000
    36 : e1ec e1ec e1ec e1ec e1ec
    37 : 6000 6000 6000 6000 6000
    38 : 1111 1111 1111 1111 1111
    39 : 7359 7359 7359 7359 7359
    3a : ee6b ee6b ee6b ee6b ee6b
    3b : 5a5a 5a5a 5a5a 5a5a 5a5a
    3c : 5a5a 5a5a 5a5a 5a5a 5a5a
    3d : 6860 6860 6860 6860 6860
    3e : e0d8 e0d8 e0d8 e0d8 e0d8
    3f : 8000 8000 8000 8000 8000
    
    ### PHY MMD3 ###
    
    ADDR : PHY0 PHY1 PHY2 PHY3 PHY4
    -----+-------------------------
    0 : 0000 0000 0000 0000 0000
    1 : 0000 0000 0000 0000 0000
    2 : 0000 0000 0000 0000 0000
    3 : 0000 0000 0000 0000 0000
    4 : 0000 0000 0000 0000 0000
    5 : 0089 0089 0089 0089 0089
    6 : 0000 0000 0000 0000 0000
    7 : 0000 0000 0000 0000 0000
    8 : 0000 0000 0000 0000 0000
    9 : 0000 0000 0000 0000 0000
    a : 0000 0000 0000 0000 0000
    b : 0000 0000 0000 0000 0000
    c : 0000 0000 0000 0000 0000
    d : 0000 0000 0000 0000 0000
    e : 0000 0000 0000 0000 0000
    f : 0000 0000 0000 0000 0000
    10 : 0000 0000 0000 0000 0000
    11 : 0000 0000 0000 0000 0000
    12 : 0000 0000 0000 0000 0000
    13 : 0000 0000 0000 0000 0000
    14 : 0006 0006 0006 0006 0006
    15 : 0000 0000 0000 0000 0000
    16 : 0000 0000 0000 0000 0000
    17 : 0000 0000 0000 0000 0000
    18 : 0000 0000 0000 0000 0000
    19 : 0000 0000 0000 0000 0000
    1a : 0000 0000 0000 0000 0000
    1b : 0000 0000 0000 0000 0000
    1c : 0000 0000 0000 0000 0000
    1d : 0000 0000 0000 0000 0000
    1e : 0000 0000 0000 0000 0000
    1f : 0000 0000 0000 0000 0000
    20 : 0000 0000 0000 0000 0000
    21 : 0000 0000 0000 0000 0000
    22 : 0000 0000 0000 0000 0000
    23 : 0000 0000 0000 0000 0000
    24 : 0000 0000 0000 0000 0000
    25 : 0000 0000 0000 0000 0000
    26 : 0000 0000 0000 0000 0000
    27 : 0000 0000 0000 0000 0000
    28 : 0000 0000 0000 0000 0000
    29 : 0000 0000 0000 0000 0000
    2a : 0000 0000 0000 0000 0000
    2b : 0000 0000 0000 0000 0000
    2c : 0000 0000 0000 0000 0000
    2d : 0000 0000 0000 0000 0000
    2e : 0000 0000 0000 0000 0000
    2f : 0000 0000 0000 0000 0000
    30 : 0000 0000 0000 0000 0000
    31 : 0000 0000 0000 0000 0000
    32 : 0000 0000 0000 0000 0000
    33 : 0000 0000 0000 0000 0000
    34 : 0000 0000 0000 0000 0000
    35 : 0000 0000 0000 0000 0000
    36 : 0000 0000 0000 0000 0000
    37 : 0000 0000 0000 0000 0000
    38 : 0000 0000 0000 0000 0000
    39 : 0000 0000 0000 0000 0000
    3a : 0000 0000 0000 0000 0000
    3b : 0000 0000 0000 0000 0000
    3c : 0000 0000 0000 0000 0000
    3d : 0000 0000 0000 0000 0000
    3e : 0000 0000 0000 0000 0000
    3f : 0000 0000 0000 0000 0000
    40 : 0000 0000 0000 0000 0000
    41 : 0000 0000 0000 0000 0000
    42 : 0000 0000 0000 0000 0000
    43 : 0000 0000 0000 0000 0000
    44 : 0000 0000 0000 0000 0000
    45 : 0000 0000 0000 0000 0000
    46 : 0000 0000 0000 0000 0000
    47 : 0000 0000 0000 0000 0000
    48 : 0000 0000 0000 0000 0000
    49 : 0000 0000 0000 0000 0000
    4a : 0000 0000 0000 0000 0000
    4b : 0000 0000 0000 0000 0000
    4c : 0000 0000 0000 0000 0000
    4d : 0000 0000 0000 0000 0000
    4e : 0000 0000 0000 0000 0000
    4f : 0000 0000 0000 0000 0000
    50 : 0000 0000 0000 0000 0000
    51 : 0000 0000 0000 0000 0000
    52 : 0000 0000 0000 0000 0000
    53 : 0000 0000 0000 0000 0000
    54 : 0000 0000 0000 0000 0000
    55 : 0000 0000 0000 0000 0000
    56 : 0000 0000 0000 0000 0000
    57 : 0000 0000 0000 0000 0000
    58 : 0000 0000 0000 0000 0000
    59 : 0000 0000 0000 0000 0000
    5a : 0000 0000 0000 0000 0000
    5b : 0000 0000 0000 0000 0000
    5c : 0000 0000 0000 0000 0000
    5d : 0000 0000 0000 0000 0000
    5e : 0000 0000 0000 0000 0000
    5f : 0000 0000 0000 0000 0000
    60 : 0000 0000 0000 0000 0000
    61 : 0000 0000 0000 0000 0000
    62 : 0000 0000 0000 0000 0000
    63 : 0000 0000 0000 0000 0000
    64 : 0000 0000 0000 0000 0000
    65 : 0000 0000 0000 0000 0000
    66 : 0000 0000 0000 0000 0000
    67 : 0000 0000 0000 0000 0000
    68 : 0000 0000 0000 0000 0000
    69 : 0000 0000 0000 0000 0000
    6a : 0000 0000 0000 0000 0000
    6b : 0000 0000 0000 0000 0000
    6c : 0000 0000 0000 0000 0000
    6d : 0000 0000 0000 0000 0000
    6e : 0000 0000 0000 0000 0000
    6f : 0000 0000 0000 0000 0000
    70 : 0000 0000 0000 0000 0000
    71 : 0000 0000 0000 0000 0000
    72 : 0000 0000 0000 0000 0000
    73 : 0000 0000 0000 0000 0000
    74 : 0000 0000 0000 0000 0000
    75 : 0000 0000 0000 0000 0000
    76 : 0000 0000 0000 0000 0000
    77 : 0000 0000 0000 0000 0000
    78 : 0000 0000 0000 0000 0000
    79 : 0000 0000 0000 0000 0000
    7a : 0000 0000 0000 0000 0000
    7b : 0000 0000 0000 0000 0000
    7c : 0000 0000 0000 0000 0000
    7d : 0000 0000 0000 0000 0000
    7e : 0000 0000 0000 0000 0000
    7f : 0000 0000 0000 0000 0000
    8000 : 0000 0000 0000 0000 0000
    8001 : 8187 8187 8187 8187 8187
    8002 : 6a24 6a24 6a24 6a24 6a24
    8003 : 5d09 5d09 5d09 5d09 5d09
    8004 : 63f3 63f3 63f3 63f3 63f3
    8005 : 8b32 8b32 8b32 8b32 8b32
    8006 : c000 c000 c000 c000 c000
    8007 : 83f6 83f6 83f6 83f6 83f6
    8008 : 3030 3030 3030 3030 3030
    8009 : 00d1 00d1 00d1 00d1 00d1
    800a : 1040 1040 1040 1040 1040
    800b : 0094 0094 0094 0094 0094
    800c : 00eb 00eb 00eb 00eb 00eb
    800d : cb3f cb3f cb3f cb3f cb3f
    800e : 0000 0000 0000 0000 0000
    800f : 1000 1000 1000 1000 1000
    8010 : 0000 0000 0000 0000 0000
    8011 : 00c0 00c0 00c0 00c0 00c0
    8012 : 0000 0000 0000 0000 0000
    8013 : 0000 0000 0000 0000 0000
    8014 : 0000 0000 0000 0000 0000
    8015 : 0000 0000 0000 0000 0000
    8016 : 0000 0000 0000 0000 0000
    8017 : 0000 0000 0000 0000 0000
    8018 : 0000 0000 0000 0000 0000
    8019 : 0000 0000 0000 0000 0000
    801a : 0000 0000 0000 0000 0000
    801b : 0000 0000 0000 0000 0000
    801c : 0000 0000 0000 0000 0000
    801d : 0000 0000 0000 0000 0000
    801e : 0000 0000 0000 0000 0000
    801f : 0000 0000 0000 0000 0000
    8020 : 0000 0000 0000 0000 0000
    8021 : 0000 0000 0000 0000 0000
    8022 : 0000 0000 0000 0000 0000
    8023 : 0000 0000 0000 0000 0000
    8024 : 0000 0000 0000 0000 0000
    8025 : 0000 0000 0000 0000 0000
    8026 : 0000 0000 0000 0000 0000
    8027 : 0000 0000 0000 0000 0000
    8028 : 0000 0000 0000 0000 0000
    8029 : 0000 0000 0000 0000 0000
    802a : 0000 0000 0000 0000 0000
    802b : 0000 0000 0000 0000 0000
    802c : 0000 0000 0000 0000 0000
    802d : 0000 0000 0000 0000 0000
    802e : 0000 0000 0000 0000 0000
    802f : 0000 0000 0000 0000 0000
    8030 : 0000 0000 0000 0000 0000
    8031 : 0000 0000 0000 0000 0000
    8032 : 0000 0000 0000 0000 0000
    8033 : 0000 0000 0000 0000 0000
    8034 : 0000 0000 0000 0000 0000
    8035 : 0000 0000 0000 0000 0000
    8036 : 0000 0000 0000 0000 0000
    8037 : 0000 0000 0000 0000 0000
    8038 : 0000 0000 0000 0000 0000
    8039 : 0000 0000 0000 0000 0000
    803a : 0000 0000 0000 0000 0000
    803b : 0000 0000 0000 0000 0000
    803c : 0000 0000 0000 0000 0000
    803d : 0000 0000 0000 0000 0000
    803e : 0000 0000 0000 0000 0000
    803f : 0000 0000 0000 0000 0000
    8040 : 0000 0000 0000 0000 0000
    8041 : 0000 0000 0000 0000 0000
    8042 : 0000 0000 0000 0000 0000
    8043 : 0000 0000 0000 0000 0000
    8044 : 0000 0000 0000 0000 0000
    8045 : 0000 0000 0000 0000 0000
    8046 : 0000 0000 0000 0000 0000
    8047 : 0000 0000 0000 0000 0000
    8048 : 0000 0000 0000 0000 0000
    8049 : 0000 0000 0000 0000 0000
    804a : 0000 0000 0000 0000 0000
    804b : 0000 0000 0000 0000 0000
    804c : 0000 0000 0000 0000 0000
    804d : 0000 0000 0000 0000 0000
    804e : 0062 0062 0062 0062 0062
    804f : 07a7 07a7 07a7 07a7 07a7
    8050 : 2956 2956 2956 2956 2956
    8051 : 2e70 2e70 2e70 2e70 2e70
    8052 : 5580 5580 5580 5580 5580
    8053 : 005e 005e 005e 005e 005e
    8054 : 52b4 52b4 52b4 52b4 52b4
    8055 : 0e14 0e14 0e14 0e14 0e14
    8056 : 0148 0148 0148 0148 0148
    8057 : 06e2 06e2 06e2 06e2 06e2
    8058 : 0dbd 0dbd 0dbd 0dbd 0dbd
    8059 : 001d 001d 001d 001d 001d
    805a : 0000 0000 0000 0000 0000
    805b : 1917 1917 1917 1917 1917
    805c : 312c 312c 312c 312c 312c
    805d : 10b1 10b1 10b1 10b1 10b1
    805e : 000b 000b 000b 000b 000b
    805f : 480f 480f 480f 480f 480f
    8060 : 0175 0175 0175 0175 0175
    8061 : 2e2e 2e2e 2e2e 2e2e 2e2e
    8062 : 0000 0000 0000 0000 0000
    8063 : 4064 4064 4064 4064 4064
    8064 : 2222 1111 2222 2222 2222
    8065 : 0000 0000 0001 0000 0000
    8066 : 0001 0000 0001 0001 0000
    8067 : 0001 0000 0001 0001 0001
    8068 : 0001 0001 0000 0000 0001
    8069 : d0d0 d0d0 d0d0 d0d0 d0d0
    806a : d0d0 d0d0 d0d0 d0d0 d0d0
    806b : 0000 0000 0000 0000 0000
    806c : 1916 1916 1916 1916 1916
    806d : 0000 0000 0000 0000 0000
    806e : 888b 888b 888b 888b 888b
    806f : 67ef 67ef 67ef 67ef 67ef
    8070 : 0300 0300 0300 0300 0300
    8071 : 0000 0000 0000 0000 0000
    8072 : 0000 0000 0000 0000 0000
    8073 : 0000 0000 0000 0000 0000
    8074 : 0000 0000 0000 0000 0000
    8075 : 0000 0000 0000 0000 0000
    8076 : 0000 0000 0000 0000 0000
    8077 : 0000 0000 0000 0000 0000
    8078 : 0000 0000 0000 0000 0000
    8079 : 0000 0000 0000 0000 0000
    807a : 0000 0000 0000 0000 0000
    807b : 0000 0000 0000 0000 0000
    807c : 0000 0000 0000 0000 0000
    807d : 0000 0000 0000 0000 0000
    807e : 0000 0000 0000 0000 0000
    807f : 0000 0000 0000 0000 0000
    
    ### PHY MMD7 ###
    
    ADDR : PHY0 PHY1 PHY2 PHY3 PHY4
    -----+-------------------------
    0 : 2000 2000 2000 2000 2000
    1 : 0000 0000 0000 0000 0000
    2 : 0000 0000 0000 0000 0000
    3 : 0000 0000 0000 0000 0000
    4 : 0000 0000 0000 0000 0000
    5 : 0089 0089 0089 0089 0089
    6 : 0000 0000 0000 0000 0000
    7 : 0000 0000 0000 0000 0000
    8 : 0000 0000 0000 0000 0000
    9 : 0000 0000 0000 0000 0000
    a : 0000 0000 0000 0000 0000
    b : 0000 0000 0000 0000 0000
    c : 0000 0000 0000 0000 0000
    d : 0000 0000 0000 0000 0000
    e : 0000 0000 0000 0000 0000
    f : 0000 0000 0000 0000 0000
    10 : 0000 0000 0000 0000 0000
    11 : 0000 0000 0000 0000 0000
    12 : 0000 0000 0000 0000 0000
    13 : 0000 0000 0000 0000 0000
    14 : 0000 0000 0000 0000 0000
    15 : 0000 0000 0000 0000 0000
    16 : 0000 0000 0000 0000 0000
    17 : 0000 0000 0000 0000 0000
    18 : 0000 0000 0000 0000 0000
    19 : 0000 0000 0000 0000 0000
    1a : 0000 0000 0000 0000 0000
    1b : 0000 0000 0000 0000 0000
    1c : 0000 0000 0000 0000 0000
    1d : 0000 0000 0000 0000 0000
    1e : 0000 0000 0000 0000 0000
    1f : 0000 0000 0000 0000 0000
    20 : 0000 0000 0000 0000 0000
    21 : 0000 0000 0000 0000 0000
    22 : 0000 0000 0000 0000 0000
    23 : 0000 0000 0000 0000 0000
    24 : 0000 0000 0000 0000 0000
    25 : 0000 0000 0000 0000 0000
    26 : 0000 0000 0000 0000 0000
    27 : 0000 0000 0000 0000 0000
    28 : 0000 0000 0000 0000 0000
    29 : 0000 0000 0000 0000 0000
    2a : 0000 0000 0000 0000 0000
    2b : 0000 0000 0000 0000 0000
    2c : 0000 0000 0000 0000 0000
    2d : 0000 0000 0000 0000 0000
    2e : 0000 0000 0000 0000 0000
    2f : 0000 0000 0000 0000 0000
    30 : 0000 0000 0000 0000 0000
    31 : 0000 0000 0000 0000 0000
    32 : 0000 0000 0000 0000 0000
    33 : 0000 0000 0000 0000 0000
    34 : 0000 0000 0000 0000 0000
    35 : 0000 0000 0000 0000 0000
    36 : 0000 0000 0000 0000 0000
    37 : 0000 0000 0000 0000 0000
    38 : 0000 0000 0000 0000 0000
    39 : 0000 0000 0000 0000 0000
    3a : 0000 0000 0000 0000 0000
    3b : 0000 0000 0000 0000 0000
    3c : 0000 0000 0000 0000 0000
    3d : 0000 0000 0000 0000 0000
    3e : 0000 0000 0000 0000 0000
    3f : 0000 0000 0000 0000 0000
    40 : 0000 0000 0000 0000 0000
    41 : 0000 0000 0000 0000 0000
    42 : 0000 0000 0000 0000 0000
    43 : 0000 0000 0000 0000 0000
    44 : 0000 0000 0000 0000 0000
    45 : 0000 0000 0000 0000 0000
    46 : 0000 0000 0000 0000 0000
    47 : 0000 0000 0000 0000 0000
    48 : 0000 0000 0000 0000 0000
    49 : 0000 0000 0000 0000 0000
    4a : 0000 0000 0000 0000 0000
    4b : 0000 0000 0000 0000 0000
    4c : 0000 0000 0000 0000 0000
    4d : 0000 0000 0000 0000 0000
    4e : 0000 0000 0000 0000 0000
    4f : 0000 0000 0000 0000 0000
    50 : 0000 0000 0000 0000 0000
    51 : 0000 0000 0000 0000 0000
    52 : 0000 0000 0000 0000 0000
    53 : 0000 0000 0000 0000 0000
    54 : 0000 0000 0000 0000 0000
    55 : 0000 0000 0000 0000 0000
    56 : 0000 0000 0000 0000 0000
    57 : 0000 0000 0000 0000 0000
    58 : 0000 0000 0000 0000 0000
    59 : 0000 0000 0000 0000 0000
    5a : 0000 0000 0000 0000 0000
    5b : 0000 0000 0000 0000 0000
    5c : 0000 0000 0000 0000 0000
    5d : 0000 0000 0000 0000 0000
    5e : 0000 0000 0000 0000 0000
    5f : 0000 0000 0000 0000 0000
    60 : 0000 0000 0000 0000 0000
    61 : 0000 0000 0000 0000 0000
    62 : 0000 0000 0000 0000 0000
    63 : 0000 0000 0000 0000 0000
    64 : 0000 0000 0000 0000 0000
    65 : 0000 0000 0000 0000 0000
    66 : 0000 0000 0000 0000 0000
    67 : 0000 0000 0000 0000 0000
    68 : 0000 0000 0000 0000 0000
    69 : 0000 0000 0000 0000 0000
    6a : 0000 0000 0000 0000 0000
    6b : 0000 0000 0000 0000 0000
    6c : 0000 0000 0000 0000 0000
    6d : 0000 0000 0000 0000 0000
    6e : 0000 0000 0000 0000 0000
    6f : 0000 0000 0000 0000 0000
    70 : 0000 0000 0000 0000 0000
    71 : 0000 0000 0000 0000 0000
    72 : 0000 0000 0000 0000 0000
    73 : 0000 0000 0000 0000 0000
    74 : 0000 0000 0000 0000 0000
    75 : 0000 0000 0000 0000 0000
    76 : 0000 0000 0000 0000 0000
    77 : 0000 0000 0000 0000 0000
    78 : 0000 0000 0000 0000 0000
    79 : 0000 0000 0000 0000 0000
    7a : 0000 0000 0000 0000 0000
    7b : 0000 0000 0000 0000 0000
    7c : 0000 0000 0000 0000 0000
    7d : 0000 0000 0000 0000 0000
    7e : 0000 0000 0000 0000 0000
    7f : 0000 0000 0000 0000 0000
    8000 : 0000 0000 0000 0000 0000
    8001 : 0000 0000 0000 0000 0000
    8002 : 0000 0000 0000 0000 0000
    8003 : 0000 0000 0000 0000 0000
    8004 : 0000 0000 0000 0000 0000
    8005 : 0000 0000 0000 0000 0000
    8006 : 0000 0000 0000 0000 0000
    8007 : 0000 0000 0000 0000 0000
    8008 : 0000 0000 0000 0000 0000
    8009 : 0000 0000 0000 0000 0000
    800a : 0000 0000 0000 0000 0000
    800b : 0000 0000 0000 0000 0000
    800c : 0000 0000 0000 0000 0000
    800d : 0000 0000 0000 0000 0000
    800e : 0000 0000 0000 0000 0000
    800f : 0000 0000 0000 0000 0000
    8010 : 0000 0000 0000 0000 0000
    8011 : 0000 0000 0000 0000 0000
    8012 : 0000 0000 0000 0000 0000
    8013 : 0000 0000 0000 0000 0000
    8014 : 0000 0000 0000 0000 0000
    8015 : 0000 0000 0000 0000 0000
    8016 : 0000 0000 0000 0000 0000
    8017 : a000 a000 a000 a000 a000
    8018 : 0000 0000 0000 0000 0000
    8019 : 0000 0000 0000 0000 0000
    801a : 392a 392a 392a 392a 392a
    801b : 0000 0000 0000 0000 0000
    801c : 0000 0000 0000 0000 0000
    801d : 0000 0000 0000 0000 0000
    801e : 00c0 00c0 00c0 00c0 00c0
    801f : 0000 0000 0000 0000 0000
    8020 : 0000 0000 0000 0000 0000
    8021 : 0000 0000 0000 0000 0000
    8022 : 0000 0000 0000 0000 0000
    8023 : 0000 0000 0000 0000 0000
    8024 : 0d10 0d10 0d10 0d10 0d10
    8025 : 0d0d 0d0d 0d0d 0d0d 0d0d
    8026 : 0a0a 0a0a 0a0a 0a0a 0a0a
    8027 : 8a05 8a05 8a05 8a05 8a05
    8028 : 001f 001f 001f 001f 001f
    8029 : 0000 0000 0000 0000 0000
    802a : 0000 0000 0000 0000 0000
    802b : 0000 0000 0000 0000 0000
    802c : 0000 0000 0000 0000 0000
    802d : 0000 0000 0000 0000 0000
    802e : 0000 0000 0000 0000 0000
    802f : 0000 0000 0000 0000 0000
    8030 : 190f 190f 190f 190f 190f
    8031 : 0e05 0e05 0e05 0e05 0e05
    8032 : 0008 0008 0008 0008 0008
    8033 : 0400 0400 0400 0400 0400
    8034 : 0000 0000 0000 0000 0000
    8035 : 0000 0000 0000 0000 0000
    8036 : 0000 0000 0000 0000 0000
    8037 : 0000 0000 0000 0000 0000
    8038 : 026a 0000 0000 0000 0000
    8039 : 0cb9 0cb9 0cb9 0cb9 0cb9
    803a : 08a1 08a1 08a1 08a1 08a1
    803b : 0000 0000 0000 0000 0000
    803c : 0000 0000 0000 0000 0000
    803d : 0000 0000 0000 0000 0000
    803e : 0000 0000 0000 0000 0000
    803f : 0000 0000 0000 0000 0000
    8040 : 0000 0000 0000 0000 0000
    8041 : 0000 0000 0000 0000 0000
    8042 : 0000 0000 0000 0000 0000
    8043 : 0000 0000 0000 0000 0000
    8044 : 0000 0000 0000 0000 0000
    8045 : 0000 0000 0000 0000 0000
    8046 : 0000 0000 0000 0000 0000
    8047 : 0000 0000 0000 0000 0000
    8048 : 0000 0000 0000 0000 0000
    8049 : 0000 0000 0000 0000 0000
    804a : 0000 0000 0000 0000 0000
    804b : 00f0 00f0 00f0 00f0 00f0
    804c : 0007 0007 0007 0007 0007
    804d : 0000 0000 0000 0000 0000
    804e : 0000 0000 0000 0000 0000
    804f : 0000 0000 0000 0000 0000
    8050 : 0000 0000 0000 0000 0000
    8051 : 0000 0000 0000 0000 0000
    8052 : 0000 0000 0000 0000 0000
    8053 : 0000 0000 0000 0000 0000
    8054 : 0000 0000 0000 0000 0000
    8055 : 0000 0000 0000 0000 0000
    8056 : 0000 0000 0000 0000 0000
    8057 : 0000 0000 0000 0000 0000
    8058 : 0000 0000 0000 0000 0000
    8059 : 0000 0000 0000 0000 0000
    805a : 0000 0000 0000 0000 0000
    805b : 0000 0000 0000 0000 0000
    805c : 0000 0000 0000 0000 0000
    805d : 0000 0000 0000 0000 0000
    805e : 0000 0000 0000 0000 0000
    805f : 0000 0000 0000 0000 0000
    8060 : 0000 0000 0000 0000 0000
    8061 : 0000 0000 0000 0000 0000
    8062 : 0000 0000 0000 0000 0000
    8063 : 0000 0000 0000 0000 0000
    8064 : 0000 0000 0000 0000 0000
    8065 : 0000 0000 0000 0000 0000
    8066 : 0000 0000 0000 0000 0000
    8067 : 0000 0000 0000 0000 0000
    8068 : 0000 0000 0000 0000 0000
    8069 : 0000 0000 0000 0000 0000
    806a : 0000 0000 0000 0000 0000
    806b : 0000 0000 0000 0000 0000
    806c : 0000 0000 0000 0000 0000
    806d : 0000 0000 0000 0000 0000
    806e : 0000 0000 0000 0000 0000
    806f : 0000 0000 0000 0000 0000
    8070 : 0000 0000 0000 0000 0000
    8071 : 0000 0000 0000 0000 0000
    8072 : 0000 0000 0000 0000 0000
    8073 : 0000 0000 0000 0000 0000
    8074 : 0000 0000 0000 0000 0000
    8075 : 0000 0000 0000 0000 0000
    8076 : 0000 0000 0000 0000 0000
    8077 : 0000 0000 0000 0000 0000
    8078 : 0000 0000 0000 0000 0000
    8079 : 0000 0000 0000 0000 0000
    807a : 0000 0000 0000 0000 0000
    807b : 0000 0000 0000 0000 0000
    807c : 0000 0000 0000 0000 0000
    807d : 0000 0000 0000 0000 0000
    807e : 0000 0000 0000 0000 0000
    807f : 0000 0000 0000 0000 0000
    
    ### L2SW ###
    
    ADDR : +0       +4       +8       +c
    -----+------------------------------------
    0 : 00001302 80000080 01000000 06000000
    10 : 002613a0 f0107650 00002586 00003f1f
    20 : 3f000e00 0001008b 00000000 00000000
    30 : 80000700 00000000 0f000000 00000000
    40 : 20700aaa 00000000 000088a8 00000000
    50 : cc36cc36 ca36ca36 c936c936 03ffff00
    60 : 00000001 00000000 00000000 00000000
    70 : b00ee060 03707f07 000005ee 0000004e
    80 : 00001280 000012c2 00001280 00001280
    90 : 00001280 0000004e 00000000 00000000
    a0 : 00000000 00000000 00000000 00000000
    b0 : 00000000 00000000 00000000 00000608
    c0 : 00000000 00000000 80901040 00000000
    d0 : fffbff7e 00000001 00000100 000303ff
    e0 : c74164de
    
    100 : 00000000 00000000 00000000 00000000
    110 : 00000000 00000000 00000000 00000000
    120 : 00240024 00000000 00240024 00000000
    130 : 00110011 00000000 00240024 00000000
    140 : 00240024 00000000 00240024 00000000
    150 : 00240024 00000000 00240024 00000000
    160 : 00240024 00000000 00240024
    
    200 : 00000001 00005000 00400040 00000000
    210 : 00000000 00000000 00000000 00000000
    220 : 00000000 00000000 00000000 00000000
    230 : 00000000 00000000 00000000 00000000
    240 : 00000000 00000000 00000000 00000000
    250 : 00000000 00000000 00000000 00000000
    260 : 00000000 20000000 00000000 00000000
    270 : 0000000f
    
    400 : 00000000 00000000 00000000 00000000
    410 : 00000000 00000000 00000000 00000000
    420 : 00010001 00003040 00020001 00003040
    430 : 00010001 00003040 00010001 00003040
    440 : 00010001 00003040 00010001 00003040
    450 : 00020001 00003040
    
    600 : 00000000 00000000 00000000 00000000
    610 : 00000000 00000000 d0e8002b 00000000
    620 : 001000f0 007f7f7f 00000000 00000000
    630 : 00000000 11111111 22222222 33333333
    640 : 44444444 55555555 66666666 77777777
    650 : 76543210 00000000 00000000 00000000
    660 : 0014003c 00000018 00007000 00140040
    670 : 00000018 00007000 00140039 00000018
    680 : 00007000 00140035 00000018 00007000
    690 : 0014002d 00000018 00007000 0014001d
    6a0 : 00000018 00007000 00140002 00000018
    6b0 : 00007000 00000000 00000000 00000000
    6c0 : 00000000 00000000 00000000 00000000
    6d0 : 00000000 00000000 00000000 00000000
    6e0 : 00000000 00000000 00000000 00000000
    6f0 : 00000000 00000000 00000000 00000000
    700 : 00000000 00000000 00000000 00000000
    710 : ffffffff ffffffff ffffffff
    
    800 : 01200188 00000000 007f000e 00000000
    810 : 54332201 33221100 00000000 00000000
    820 : 00000000 00000000 00000000 00000000
    830 : 10841041 00041041 00041041 00041041
    840 : 00041041 10841041 10841041 00000000
    850 : 00000000 00000000 00000000 00000000
    860 : 00000000 00000000 00000000 00000000
    870 : 00000000 00000000 00000000 00000000
    880 : 00000000 00000000 00000000 00000000
    890 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff
    8a0 : 7fff7fff 7fff7fff 00000000 00000002
    8b0 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff
    8c0 : 7fff7fff 7fff7fff 00000000 00000002
    8d0 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff
    8e0 : 7fff7fff 7fff7fff 00000000 00000002
    8f0 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff
    900 : 7fff7fff 7fff7fff 00000000 00000002
    910 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff
    920 : 7fff7fff 7fff7fff 00000000 00000002
    930 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff
    940 : 7fff7fff 7fff7fff 00000000 00000002
    950 : 7fff7fff 7fff7fff 7fff7fff 7fff7fff
    960 : 7fff7fff 7fff7fff 00000000 00000002
    970 : 28000000 000001c0 28000000 000001c2
    980 : 28000000 000001c2 28000000 000001c2
    990 : 28000000 000001c2 28000000 000001c2
    9a0 : 28000000 000001c0 00000000 00000000
    9b0 : 003a004a 003a004a 003a004a 003a004a
    9c0 : 003a004a 003a004a 003a004a 00000000
    9d0 : 00000000 00000000 00000000 00000000
    9e0 : 00000000 00000000 00000000 00000000
    9f0 : 00000000 00000000 00000000 00000000
    a00 : 00007fff 00047fff 00007fff 00047fff
    a10 : 00007fff 00047fff 00007fff 00047fff
    a20 : 00007fff 00047fff 00007fff 00047fff
    a30 : 00007fff 00047fff 00007fff 00047fff
    a40 : 00007fff 00047fff 00007fff 00047fff
    a50 : 00007fff 00047fff 00007fff 00047fff
    a60 : 00007fff 00047fff 00007fff 00047fff
    a70 : 00007fff 00047fff 00007fff 00047fff
    a80 : 00007fff 00047fff 00007fff 00047fff
    a90 : 00007fff 00047fff 00007fff 00047fff
    aa0 : 00007fff 00047fff 00007fff 00047fff
    ab0 : 00007fff 00047fff 00007fff 00047fff
    ac0 : 00007fff 00047fff 00007fff 00047fff
    ad0 : 00007fff 00047fff 00007fff 00047fff
    ae0 : 00007fff 00047fff 00007fff 00047fff
    af0 : 00007fff 00047fff 00007fff 00047fff
    b00 : 18407fff 00047fff 00000000 00000000
    b10 : 18407fff 00047fff 00000000 00000000
    b20 : 18407fff 00047fff 00000000 00000000
    b30 : 18407fff 00047fff 00000000 00000000
    b40 : 18407fff 00047fff 00000000 00000000
    b50 : 18407fff 00047fff 00000000 00000000
    b60 : 18407fff 00047fff 00000000 00000000
    b70 : 00012345
    
    c00 : 00000000 00000000 00000000 00000000
    c10 : 00000000 00000000 00000000 00000000
    c20 : 00000000 00000000 00000000 00000000
    c30 : 00000000 0500015e 00000000 00000000
    c40 : 00000000 00000000 00000000 00000000
    c50 : 00000000 00000000 00000000 00000000
    c60 : 00000000 00000000 00000000 00000000
    c70 : 00010001 00010001 00010001 00000001
    c80 : 03333333
    

Kernel

RootFSのsquashfsを破損しており、マウントできずKernel Panicを起こしboot loop。

  • bootlog

    U-Boot 2012.07 [Standard IPQ806X.LN,local] (May 20 2016 - 11:16:41)
    
    smem ram ptable found: ver: 0 len: 5
    DRAM:  491 MiB
    NAND:  ipq_nand: unknown NAND device manufacturer: 0 device: 0
    ipq_nand: failed to identify device
    SF: Detected S25FL256S with page size 64 KiB, total 32 MiB
    ipq_spi: page_size: 0x100, sector_size: 0x10000, size: 0x2000000
    32 MiB
    MMC:   
    *** Warning - bad CRC, using default environment
    
    PCI0 Link Intialized
    PCI1 Link Intialized
    In:    serial
    Out:   serial
    Err:   serial
    PRODUCTDATA CRC Verify OK.
    Net:   MAC1 addr:98:f1:99:**:**:**
    athrs17_reg_init: complete
    athrs17_vlan_config ...done
    S17c init  done
    MAC2 addr:98:f1:99:**:**:**
    eth0, eth1
    now booting auto ...
    MMC Device 0 not found
    MMC Device 0 not found
    
    NAND read: device 1 offset 0x860000, size 0x200000
     2097152 bytes read: OK
       Image Name:   Linux-3.4.103
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1923472 Bytes = 1.8 MiB
       Load Address: 41508000
       Entry Point:  41508000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    info: "mtdparts" not set
    Using machid 0x1260 from environment
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0
    [    0.000000] Linux version 3.4.103 (araki@junmple-build) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 SMP PREEMPT Fri Jan 18 19:23:35 JST 2019
    [    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] Machine: NECPF Rotary board based Qualcomm Atheros AP148 reference board
    [    0.000000] msm_reserve_memory: 0x44000000, 0x600000
    [    0.000000] msm_reserve_memory: 0x44600000, 0x200000
    [    0.000000] memory pool 3 (start 5fc00000 size 400000) initialized
    [    0.000000] Memory policy: ECC disabled, Data cache writealloc
    [    0.000000] smem_find(137, 80): wrong size 72
    [    0.000000] socinfo_init: v6, id=202, ver=2.0, raw_id=2064, raw_ver=2064, hw_plat=0,  hw_plat_ver=65536
    [    0.000000]  accessory_chip=0 hw_plat_subtype=0
    [    0.000000] PERCPU: Embedded 8 pages/cpu @c0c67000 s10496 r8192 d14080 u32768
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 121642
    [    0.000000] Kernel command line: console=ttyHSL1,115200n8 root=mtd:rootfs rootfstype=squashfs restart.download_mode=0 reboot=1
    [    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: 43MB 436MB = 479MB total
    [    0.000000] Memory: 477300k/489588k available, 13196k reserved, 0K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xdf000000 - 0xff000000   ( 512 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xdeb00000   ( 491 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc053d938   (5335 kB)
    [    0.000000]       .init : 0xc0600000 - 0xc0702900   (1035 kB)
    [    0.000000]       .data : 0xc0704000 - 0xc07a1700   ( 630 kB)
    [    0.000000]        .bss : 0xc07a1724 - 0xc0863638   ( 776 kB)
    [    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000] NR_IRQS:1689
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 31240ns, wraps every 134175798ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.150390] Calibrating delay using timer specific routine.. 12.55 BogoMIPS (lpj=62795)
    [    0.150421] pid_max: default: 32768 minimum: 301
    [    0.150921] Mount-cache hash table entries: 512
    [    0.152483] CPU: Testing write buffer coherency: ok
    [    0.152702] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.152733] Setting up static identity map for 0x41870488 - 0x41870510
    [    0.155045] CPU1: Booted secondary processor
    [    0.155107] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.155201] Brought up 2 CPUs
    [    0.155232] SMP: Total of 2 processors activated (25.11 BogoMIPS).
    [    0.169728] dummy: 
    [    0.170446] NET: Registered protocol family 16
    [    0.171227] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
    [    0.173789] meminfo_init: smem ram ptable found: ver: 0 len: 5
    [    0.173820] Found 1 memory banks grouped into 8 memory regions
    [    0.174101] gpiochip_add: registered GPIOs 0 to 151 on device: msmgpio
    [    0.174789] smem_find(137, 80): wrong size 72
    [    0.174882] socinfo_init: v6, id=202, ver=2.0, raw_id=2064, raw_ver=2064, hw_plat=0,  hw_plat_ver=65536
    [    0.174882]  accessory_chip=0 hw_plat_subtype=0
    [    0.174945] msm_rpm_init: RPM firmware 3.0.16777371
    [    0.182255] clk_tbl_nss - loaded
    [    0.209559] msm_dmov_memcpy_init: Success
    [    0.216994] sps:BAM 0x12244000 enabled: ver:0x5, number of pipes:20
    [    0.217025] sps:BAM 0x12244000 is registered.
    [    0.217275] sps:sps is ready.
    [    0.250796] msm_pcie_setup: link initialized
    [    0.251171] PCI host bridge to bus 0000:00
    [    0.251202] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fefffff]
    [    0.251702] PCI: bus0: Fast back to back transfers disabled
    [    0.251702] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.252421] PCI: bus1: Fast back to back transfers disabled
    [    0.290909] msm_pcie_setup: link initialized
    [    0.291252] PCI host bridge to bus 0000:02
    [    0.291283] pci_bus 0000:02: root bus resource [mem 0x2e000000-0x31efffff]
    [    0.291721] PCI: bus2: Fast back to back transfers disabled
    [    0.291752] pci 0000:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.292564] PCI: bus3: Fast back to back transfers disabled
    [    0.411246] msm_pcie_setup: link initialization failed
    [    0.411465] pci 0000:02:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
    [    0.411496] pci 0000:03:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
    [    0.411527] pci 0000:02:00.0: PCI bridge to [bus 03-03]
    [    0.411558] pci 0000:02:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
    [    0.411621] PCI: enabling device 0000:02:00.0 (0140 -> 0143)
    [    0.411683] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
    [    0.411715] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
    [    0.411746] pci 0000:00:00.0: PCI bridge to [bus 01-01]
    [    0.411746] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
    [    0.411808] PCI: enabling device 0000:00:00.0 (0140 -> 0143)
    [    0.432521] bio: create slab  at 0
    [    0.434020] SCSI subsystem initialized
    [    0.435863] spi_qsd spi_qsd.5: master is unqueued, this is deprecated
    [    0.438519] spi_qsd spi_qsd.6: master is unqueued, this is deprecated
    [    0.442517] Switching to clocksource gp_timer
    [    0.463199] NET: Registered protocol family 2
    [    0.472602] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.473227] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.473414] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.473601] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.473633] TCP: reno registered
    [    0.473633] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.473664] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.474070] NET: Registered protocol family 1
    [    0.476194] Partition(from smem) SBL1 -- Offset:0 Size:20000
    [    0.476226] Partition(from smem) MIBIB -- Offset:20000 Size:20000
    [    0.476226] Partition(from smem) SBL2 -- Offset:40000 Size:40000
    [    0.476257] Partition(from smem) SBL3 -- Offset:80000 Size:80000
    [    0.476257] Partition(from smem) DDRCONFIG -- Offset:100000 Size:10000
    [    0.476288] Partition(from smem) SSD -- Offset:110000 Size:10000
    [    0.476288] Partition(from smem) TZ -- Offset:120000 Size:80000
    [    0.476319] Partition(from smem) RPM -- Offset:1a0000 Size:80000
    [    0.476319] Partition(from smem) APPSBL -- Offset:220000 Size:80000
    [    0.476351] Partition(from smem) APPSBLENV -- Offset:2a0000 Size:10000
    [    0.476382] Partition(from smem) PRODUCTDATA -- Offset:2b0000 Size:30000
    [    0.476382] Partition(from smem) ART -- Offset:2e0000 Size:40000
    [    0.476413] Partition(from smem) TP -- Offset:320000 Size:40000
    [    0.476413] Partition(from smem) TINY -- Offset:360000 Size:500000
    [    0.476444] Partition(from smem) HLOS -- Offset:860000 Size:200000
    [    0.476476] Partition(from smem) rootfs -- Offset:a60000 Size:0
    [    0.489347] acpuclk-ipq806x acpuclk-ipq806x: SPEED BIN: 0
    [    0.489347] acpuclk-ipq806x acpuclk-ipq806x: ACPU PVS: 1
    [    0.496376] acpuclk-ipq806x acpuclk-ipq806x: CPU0: 6 frequencies supported
    [    0.496376] acpuclk-ipq806x acpuclk-ipq806x: CPU1: 6 frequencies supported
    [    0.497875] msm_rpm_log_probe: OK
    [    0.519556] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.519587] jffs2: version 2.2. (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
    [    0.521493] msgmni has been set to 932
    [    0.523898] Asymmetric key parser 'x509' registered
    [    0.523961] io scheduler noop registered
    [    0.523992] io scheduler deadline registered (default)
    [    0.525710] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [    0.527835] msm_serial_hs: probe of msm_serial_hs.0 failed with error -2
    [    0.528147] msm_serial_hs module loaded
    [    0.528397] msm_serial_hsl: detected port #1
    [    0.528584] msm_serial_hsl.1: ttyHSL1 at MMIO 0x16340000 (irq = 184) is a MSM
    [    0.529053] msm_serial_hsl: console setup on port #1
    [    1.288566] console [ttyHSL1] enabled
    [    1.297282] msm_serial_hsl: driver initialized
    [    1.306060] ahci ahci.0: forcing PORTS_IMPL to 0x1
    [    1.309871] ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
    [    1.317775] ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc apst 
    [    1.326772] scsi0 : ahci_platform
    [    1.329803] ata1: SATA max UDMA/133 mmio [mem 0x29000000-0x2900017f] port 0x100 irq 241
    [    1.339643] m25p80 spi5.0: found s25fl256s1, expected s25fl512s
    [    1.344579] m25p80 spi5.0: s25fl256s1 (32768 Kbytes)
    [    1.350046] Creating 16 MTD partitions on "m25p80":
    [    1.354482] 0x000000000000-0x000000020000 : "SBL1"
    [    1.360980] 0x000000020000-0x000000040000 : "MIBIB"
    [    1.366604] 0x000000040000-0x000000080000 : "SBL2"
    [    1.372039] 0x000000080000-0x000000100000 : "SBL3"
    [    1.377569] 0x000000100000-0x000000110000 : "DDRCONFIG"
    [    1.383536] 0x000000110000-0x000000120000 : "SSD"
    [    1.388878] 0x000000120000-0x0000001a0000 : "TZ"
    [    1.393939] 0x0000001a0000-0x000000220000 : "RPM"
    [    1.399000] 0x000000220000-0x0000002a0000 : "APPSBL"
    [    1.404467] 0x0000002a0000-0x0000002b0000 : "APPSBLENV"
    [    1.410059] 0x0000002b0000-0x0000002e0000 : "PRODUCTDATA"
    [    1.415682] mtdoops: Attached to MTD device 10
    [    1.420368] 0x0000002e0000-0x000000320000 : "ART"
    [    1.426085] 0x000000320000-0x000000360000 : "TP"
    [    1.431583] 0x000000360000-0x000000860000 : "TINY"
    [    1.437425] 0x000000860000-0x000000a60000 : "HLOS"
    [    1.443236] 0x000000a60000-0x000002000000 : "rootfs"
    [    1.449109] mtd: partition "rootfs" set to be root filesystem
    [    1.455232] mtd: partition "rootfs_data" created automatically, ofs=1810000, len=7F0000 
    [    1.462324] 0x000001810000-0x000002000000 : "rootfs_data"
    [    1.501280] GPIO Bitbanged MDIO: probed
    [    1.504967] i2c /dev entries driver
    [    1.514557] cpuidle: using governor ladder
    [    1.517650] cpuidle: using governor menu
    [    1.522930] nf_conntrack version 0.5.0 (7457 buckets, 29828 max)
    [    1.529334] TCP: cubic registered
    [    1.531646] NET: Registered protocol family 17
    [    1.536488] Bridge firewalling registered
    [    1.540049] 8021q: 802.1Q VLAN Support v1.8
    [    1.545079] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
    [    1.551983] Registering SWP/SWPB emulation handler
    [    1.556794] clock_late_init: Removing enables held for handed-off clocks
    [    1.572852] no pmic restart interrupt specified
    [    1.682536] ata1: SATA link down (SStatus 0 SControl 300)
    [    1.690846] SQUASHFS error: unable to read id index table
    [    1.772539] List of all partitions:
    [    1.775007] 1f00             128 mtdblock0  (driver?)
    [    1.780037] 1f01             128 mtdblock1  (driver?)
    [    1.785067] 1f02             256 mtdblock2  (driver?)
    [    1.790096] 1f03             512 mtdblock3  (driver?)
    [    1.795126] 1f04              64 mtdblock4  (driver?)
    [    1.800156] 1f05              64 mtdblock5  (driver?)
    [    1.805217] 1f06             512 mtdblock6  (driver?)
    [    1.810246] 1f07             512 mtdblock7  (driver?)
    [    1.815276] 1f08             512 mtdblock8  (driver?)
    [    1.820306] 1f09              64 mtdblock9  (driver?)
    [    1.825335] 1f0a             192 mtdblock10  (driver?)
    [    1.830459] 1f0b             256 mtdblock11  (driver?)
    [    1.835582] 1f0c             256 mtdblock12  (driver?)
    [    1.840706] 1f0d            5120 mtdblock13  (driver?)
    [    1.845829] 1f0e            2048 mtdblock14  (driver?)
    [    1.850952] 1f0f           22144 mtdblock15  (driver?)
    [    1.856076] 1f10            8128 mtdblock16  (driver?)
    [    1.861199] No filesystem could mount root, tried:  squashfs
    [    1.866822] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,15)
    [    1.875257] Linux (none) 3.4.103 #1 SMP PREEMPT Fri Jan 18 19:23:35 JST 2019 armv7l
    [    1.882911] date: 1970-01-01 09:00:01
    [    1.886566] CPU0: stopping
    [    1.889253] [] (unwind_backtrace+0x0/0x124) from [] (handle_IPI+0x1a8/0x1dc)
    [    1.898000] [] (handle_IPI+0x1a8/0x1dc) from [] (gic_handle_irq+0xb0/0xbc)
    [    1.906591] [] (gic_handle_irq+0xb0/0xbc) from [] (__irq_svc+0x40/0x70)
    [    1.914932] Exception stack(0xc0705f30 to 0xc0705f78)
    [    1.919962] 5f20:                                     00000000 00000000 00000001 00000000
    [    1.928116] 5f40: 00000000 00000000 00000003 c0766aa4 4150406a 512f04d0 00000000 00000000
    [    1.936269] 5f60: a0a0a0a0 c0705f78 c009992c c0041594 60000013 ffffffff
    [    1.942892] [] (__irq_svc+0x40/0x70) from [] (msm_cpuidle_enter+0x68/0x78)
    [    1.951483] [] (msm_cpuidle_enter+0x68/0x78) from [] (cpuidle_enter+0x14/0x18)
    [    1.960418] [] (cpuidle_enter+0x14/0x18) from [] (cpuidle_idle_call+0xa0/0x140)
    [    1.969447] [] (cpuidle_idle_call+0xa0/0x140) from [] (cpu_idle+0x60/0xf4)
    [    1.978038] [] (cpu_idle+0x60/0xf4) from [] (rest_init+0x88/0xa0)
    [    1.985848] [] (rest_init+0x88/0xa0) from [] (start_kernel+0x338/0x444)
    [    1.994189] [] (start_kernel+0x338/0x444) from [] (0x41508040)
    [    2.451421] Rebooting in 5 seconds..
    [    7.451452] Going down for restart now