HDL2-AAX

メルカリにおいて適当にI-O DATAのNASを眺めていたところ、ジャンクとして出品されていたのを見つけたもの。
2ドライブ対応で、なおかつ2.5GbE対応であることから惹かれたものの、当初は自室に置き場所が無いなどの理由から見送るつもりであった。が、徐々に価格設定が落ち、3k落ちたところでかなり悩んだ末に購入してしまった。自室スペースの死。
弄っていくのでメモ。

U-Boot

この機種はHDL-A/HDL2-Aと異なり、U-Bootのブート中断が消されておらず止めることが可能だった。

  • help
    HDL-AA>> help
    ?       - alias for 'help'
    Creset  - Creset        - Run 'reset' or boot command in a loop, while counting.
    
    SatR    - Sample At Reset sub-system
    active_units- print active units on board
    base    - print or set address offset
    bdinfo  - print Board Info structure
    boot    - boot default, i.e., run 'bootcmd'
    boot_menu- command allows to select boot script from boot device
    example: boot_menu
    bootd   - boot default, i.e., run 'bootcmd'
    bootelf - Boot from an ELF image in memory
    bootm   - boot application image from memory
    bootp   - boot image via network using BOOTP/TFTP protocol
    bootvx  - Boot vxWorks from an ELF image
    bootz   - boot Linux zImage image from memory
    bubt    - bubt  - Burn an image on the Boot flash device.
    
    chpart  - change active partition
    cmp     - memory compare
    coninfo - print console devices and information
    cp      - memory copy
    cpss_env- set cpss environment variables permanently
    
    crc32   - checksum calculation
    date    - get/set/reset date & time
    ddrPhyRead- ddrPhyRead - Read DDR PHY register
    
    ddrPhyWrite- ddrPhyWrite - Write DDR PHY register
    
    dhcp    - boot image via network using DHCP/TFTP protocol
    diskboot- diskboot- boot from IDE device
    
    dma     - dma   - Perform DMA using the XOR engine
    
    echo    - echo args to console
    editenv - edit environment variable
    eeprom  - EEPROM sub-system
    env     - environment handling commands
    exit    - exit script
    ext2load- load binary file from a Ext2 filesystem
    ext2ls  - list files in a directory (default /)
    ext4load- load binary file from a Ext4 filesystem
    ext4ls  - list files in a directory (default /)
    ext4write- create a file in the root directory
    false   - do nothing, unsuccessfully
    fatinfo - print information about filesystem
    fatload - load binary file from a dos filesystem
    fatls   - list files in a directory (default /)
    fdt     - flattened device tree utility commands
    flash_part_print- flash_part_print  - print spi/nand FLASH memory information
    
    fsinfo  - print information about filesystems
    fsload  - load binary file from a filesystem image
    go      - start application at address 'addr'
    hdl     - HDL command
    help    - print command description/usage
    hwreset - turn RTS/CTS hardware flow control in serial line on/off
    i2c     - I2C sub-system
    ide     - ide     - IDE sub-system
    
    iminfo  - print header information for application image
    imxtract- extract a part of a multi-image
    ir      - ir    - reading and changing MV internal register values.
    
    itest   - return true/false on integer compare
    loadb   - load binary file over serial line (kermit mode)
    loads   - load S-Record file over serial line
    loadx   - load binary file over serial line (xmodem mode)
    loady   - load binary file over serial line (ymodem mode)
    loop    - infinite loop on address range
    ls      - list files in a directory (default /)
    map     - map   - Display address decode windows
    
    md      - memory display
    me      - me    - PCIe master enable
    
    mm      - memory modify (auto-incrementing address)
    mmc     - MMC sub system
    mmcinfo - display MMC info
    mp      - mp    - map PCIe BAR
    
    mtdburn - Burn a Linux image and Filesystem` on the NAND/SPI flash.
    
    mtdparts- define flash/nand partitions
    mtest   - simple RAM read/write test
    mvsource- mvsource      - Burn a script image on flash device.
    
    mw      - memory write (fill)
    nand    - NAND sub-system
    nboot   - boot from NAND device
    nfs     - boot image via network using NFS protocol
    nm      - memory modify (constant address)
    pci     - list and access PCI Configuration Space
    pciePhyRead- phyRead    - Read PCI-E Phy register
    
    pciePhyWrite- pciePhyWrite      - Write PCI-E Phy register
    
    phyRead - phyRead       - Read Phy register
    
    phyWrite- phyWrite      - Write Phy register
    
    ping    - send ICMP ECHO_REQUEST to network host
    printenv- print environment variables
    pxe     - commands to get and boot from pxe files
    qsgmii_sel-  Select SFP or QSGMII modes on bc2.
    
    rcvr    - rcvr  - Start recovery process (with TFTP server)
    
    reset   - Perform RESET of the CPU
    resetenv- resetenv      - Erase environment sector to reset all variables to default.
    
    run     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    scsi    - SCSI sub-system
    scsiboot- boot from SCSI device
    se      - se    - PCIe Slave enable
    
    setenv  - set environment variables
    sf      - SPI flash sub-system
    sg      - sg    - scanning the PHYs status
    
    showvar - print local hushshell variables
    sleep   - delay execution for some time
    smiscan - smiscan - Scan for marvell smi devices.
    
    source  - run script from memory
    sp      - scan and detect all devices on PCI-e interface
    sspi    - SPI utility command
    stage_boot- command to load script/image from different devices
    example: stage_boot hd_img pxe
    switchCountersRead- switchCntPrint      - Read switch port counters.
    
    switchPhyRegRead- - Read switch register
    
    switchPhyRegWrite- - Write switch register
    
    switchRegRead- switchRegRead    - Read switch register
    
    switchRegWrite- switchRegWrite  - Write switch register
    
    sys_restore- sys_restore        - Search for install script on USB DOK and start installation of linux kernel and rootfs.
    
    sysboot - command to get and boot from syslinux files
    temp    - temp  - Display the device temperature.
    
    tempCmd0- tempCmd - This command allocated for monitor extinction
    
    tempCmd1- tempCmd - This command allocated for monitor extinction
    
    tempCmd2- tempCmd - This command allocated for monitor extinction
    
    tempCmd3- tempCmd - This command allocated for monitor extinction
    
    test    - minimal test like /bin/sh
    tftpboot- boot image via network using TFTP protocol
    training- training      - prints the results of the DDR3 Training.
    
    trainingStability- training     - prints the results of the DDR3 Training.
    
    true    - do nothing, successfully
    ts_report- ts_report    - report touch screen coordinate
    
    ts_test - ts_test       - test touch screen
    
    ubi     - ubi commands
    ubifsload- load file from an UBIFS filesystem
    ubifsls - list files in a directory
    ubifsmount- mount UBIFS volume
    ubifsumount- unmount UBIFS volume
    usb     - USB sub-system
    usbboot - boot from USB device
    version - print monitor, compiler and linker version
    whoAmI  - - reading CPU ID
    

  • version
    HDL-AA>> version
    
    U-Boot 2013.01 (Oct 25 2019 - 09:26:29) MV: 2015_T1.0p16 I-O: 0.47
    arm-marvell-linux-gnueabi-gcc (Marvell GCC release 20160226-c4af733b 64K MAXPAGESIZE ALIGN) 4.6.4
    GNU ld (Marvell GCC release 20160226-c4af733b 64K MAXPAGESIZE ALIGN) 2.22.0.20120801
    

  • printenv
    HDL-AA>> printenv
    CASset=max
    MALLOC_len=5
    MPmode=SMP
    autoload=no
    baudrate=115200
    boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
    bootargs=console=ttyS0,115200 mtdparts=spi0.0:960k(boot),64k(env),-(system) initrd=0x3000040 rw root=/dev/md2 rootfstype=ext4 rw rootdelay=2 init=/lib/sysvinit/init
    bootargs_dflt=$console $nandEcc $mtdparts_lgcy $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
    bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
    bootargs_root=root=/dev/sda1 rw rootdelay=2
    bootcmd=hdl init; sleep 10; if scsi reset;then ext4load scsi 0:1 $kernel_addr $image_name && ext4load scsi 0:1 $fdt_addr $fdtfile && ext4load scsi 0:1 $initrd_addr $initrd_name && bootz $kernel_addr $initrd_addr $fdt_addr;ext4load scsi 1:1 $kernel_addr $image_name && ext4load scsi 1:1 $fdt_addr $fdtfile && ext4load scsi 1:1 $initrd_addr $initrd_name && bootz $kernel_addr $initrd_addr $fdt_addr;fi;fsload $kernel_addr $image_name && fsload $fdt_addr $fdtfile && fsload $initrd_addr $initrd_name && bootz $kernel_addr $initrd_addr $fdt_addr;echo giveup...
    bootcmd_auto=stage_boot $boot_order
    bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
    bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
    bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
    bootcmd_lgcy=tftpboot 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts_lgcy $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end  video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel;  bootm $loadaddr;
    bootdelay=0
    cacheShare=no
    console=console=ttyS0,115200
    device_partition=0:1
    disaMvPnp=no
    eeeEnable=no
    enaClockGating=no
    enaCpuStream=no
    enaFPU=yes
    enaMonExt=no
    enaWrAllo=no
    eth1addr=00:50:43:e8:55:52
    eth1mtu=1500
    eth2addr=00:50:43:e8:8e:52
    eth2mtu=1500
    eth3addr=00:50:43:55:8e:e8
    eth3mtu=1500
    ethact=egiga0
    ethaddr=34:76:C5:xx:xx:05
    ethmtu=1500
    ethprime=egiga0
    fdt_addr=0x1000000
    fdt_flash_addr=0x6f0000
    fdt_flash_size=0x10000
    fdt_size=0x10000
    fdt_skip_update=yes
    fdtaddr=0x1000000
    fdtfile=/hdl-aa.dtb
    filesize=0x1000000
    ide_path=/
    image_name=/zImage
    initrd_addr=0x3000000
    initrd_addr_entry=0x3000040
    initrd_flash_addr=0x700000
    initrd_flash_size=0x900000
    initrd_name=/uInitrd
    initrd_size=0x900000
    ipaddr=192.168.1.100
    kernel_addr=0x2000000
    kernel_addr_r=2080000
    kernel_flash_addr=0x100000
    kernel_flash_size=0x5f0000
    kernel_size=0x5f0000
    lcd0_enable=0
    lcd0_params=640x480-16@60
    lcd_panel=0
    limit_dram_size=yes
    loadaddr=0x02000000
    loads_echo=0
    mtddevname=jffs2
    mtddevnum=2
    mtdids=nor1=spi_flash
    mtdparts=mtdparts=spi_flash:960k(u-boot),64k(env),-(jffs2)
    mtdparts_lgcy=mtdparts=spi_flash:4m(boot),-(spi-rootfs)
    mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
    mv_pon_addr=00:50:43:52:8e:e8
    nandEcc=nfcConfig=8bitecc
    netbsd_en=no
    netmask=255.255.255.0
    netretry=no
    partition=nor1,2
    pcieTune=no
    pexMode=RC
    pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
    pxefile_addr_r=3100000
    ramdisk_addr_r=2880000
    rootpath=/srv/nfs/
    run_script=no
    sata_delay_reset=0
    sata_dma_mode=yes
    script_addr_r=3000000
    script_name=boot.scr
    scsidevs=0
    sd_detection_dat3=no
    serverip=192.168.1.1
    standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts_lgcy root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
    stderr=serial
    stdin=serial
    stdout=serial
    usb0Mode=host
    usb1Mode=host
    usbActive=1
    usbType=3
    vxworks_en=no
    yuk_ethaddr=00:00:00:EE:51:81
    zhcc=G82573813
    
    Environment size: 4339/65532 bytes
    

    bootcmd整形:

    hdl init;
    sleep 10;
    # SCSI (SATA) リセットOK
    if scsi reset;then
        # SCSI 0:1 (SATA0) からブート試行
        ext4load scsi 0:1 $kernel_addr $image_name && \
            ext4load scsi 0:1 $fdt_addr $fdtfile && \
            ext4load scsi 0:1 $initrd_addr $initrd_name && \
            bootz $kernel_addr $initrd_addr $fdt_addr;
        # SCSI 1:1 (SATA1) からブート試行
        ext4load scsi 1:1 $kernel_addr $image_name && \
            ext4load scsi 1:1 $fdt_addr $fdtfile && \
            ext4load scsi 1:1 $initrd_addr $initrd_name && \
            bootz $kernel_addr $initrd_addr $fdt_addr;
    fi;
    # SPI-NOR Flashからブート試行
    fsload $kernel_addr $image_name && \
        fsload $fdt_addr $fdtfile && \
        fsload $initrd_addr $initrd_name && \
        bootz $kernel_addr $initrd_addr $fdt_addr;
    echo giveup...
    

  • tftpboot
    何故か死ぬ

    HDL-AA>> tftpboot
    mvEgigaInit: egiga0 mvNetaPortEnable failed (error)
    mvEgigaInit: egiga0 failed
    

  • bdinfo
    HDL-AA>> bdinfo
    arch_number = 0x00000210
    boot_params = 0x00000100
    DRAM bank   = 0x00000000
    -> start    = 0x00000000
    -> size     = 0x20000000
    DRAM bank   = 0x00000001
    -> start    = 0x00000000
    -> size     = 0x00000000
    ethaddr     = 34:76:C5:xx:xx:05
    ip_addr     = 192.168.1.100
    baudrate    = 115200 bps
    TLB addr    = 0x1FFF0000
    relocaddr   = 0x1FECF000
    reloc off   = 0x1FECF000
    irq_sp      = 0x1F9BEF30
    sp start    = 0x1F9BEF20
    FB base     = 0x00000000
    

Kernel

ファームウェアインストール済みのHDDは無い為、SPI-NOR Flash内に格納されているファームウェアで確認

  • uname -a
    / # uname -a
    Linux landisk 3.10.70 #1 SMP Thu Nov 26 18:11:41 JST 2020 armv7l GNU/Linux
    

  • cat /proc/version
    / # cat /proc/version
    Linux version 3.10.70 (root@buildarmsrv) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Thu Nov 26 18:11:41 JST 2020
    

  • cat /proc/cpuinfo
    / # cat /proc/cpuinfo
    processor       : 0
    model name      : ARMv7 Processor rev 1 (v7l)
    BogoMIPS        : 2655.84
    Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x4
    CPU part        : 0xc09
    CPU revision    : 1
    
    processor       : 1
    model name      : ARMv7 Processor rev 1 (v7l)
    BogoMIPS        : 2655.84
    Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x4
    CPU part        : 0xc09
    CPU revision    : 1
    
    Hardware        : Marvell Armada 380/381/382/383/384/385/388 (Device Tree)
    Revision        : 0000
    Serial          : 0000000000000000
    

  • cat /proc/meminfo
    / # cat /proc/meminfo
    MemTotal:         509448 kB
    MemFree:          469432 kB
    Buffers:               0 kB
    Cached:             8340 kB
    SwapCached:            0 kB
    Active:             4160 kB
    Inactive:           4964 kB
    Active(anon):        784 kB
    Inactive(anon):       92 kB
    Active(file):       3376 kB
    Inactive(file):     4872 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    HighTotal:             0 kB
    HighFree:              0 kB
    LowTotal:         509448 kB
    LowFree:          469432 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:           756 kB
    Mapped:              912 kB
    Shmem:                92 kB
    Slab:              27440 kB
    SReclaimable:       3304 kB
    SUnreclaim:        24136 kB
    KernelStack:         488 kB
    PageTables:           52 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:      254724 kB
    Committed_AS:       1980 kB
    VmallocTotal:     515072 kB
    VmallocUsed:        5520 kB
    VmallocChunk:     484348 kB
    

  • cat /proc/mtd
    / # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 000f0000 00010000 "boot"
    mtd1: 00010000 00010000 "env"
    mtd2: 00f00000 00010000 "system"
    

  • ls -alh /proc/nas_ctrl/
    / # ls -alh /proc/nas_ctrl/
    total 0
    dr-xr-xr-x    2 0        0              0 Jun 18 06:05 .
    dr-xr-xr-x   76 0        0              0 Jan  1  1970 ..
    -rw-rw-rw-    1 0        0              0 Jun 18 06:05 boardmodel
    -rw-rw-rw-    1 0        0              0 Jun 18 06:05 btnled
    -rw-rw-rw-    1 0        0              0 Jun 18 06:05 melody
    

  • cat /proc/nas_ctrl/btnled
    / # cat /proc/nas_ctrl/btnled
    led_green       off
    led_orange      off
    led_red blink
    led_hdd1green   off
    led_hdd1red     off
    led_hdd2green   off
    led_hdd2red     off
    led_brightness  high
    btn_power       off
    btn_power_state state_off
    btn_reset       off
    btn_reset_state state_off
    

  • bootlog
    ファームウェアインストール用USBフラッシュメモリとHDDを接続していない為、途中で止まる

    
    BootROM - 1.73
    Booting from SPI flash
    
    
    General initialization - Version: 1.0.0
    AVS selection from EFUSE disabled (Skip reading EFUSE values)
    Overriding default AVS value to: 0x23
    Detected Device ID 6811
    High speed PHY - Version: 2.0
    
    Init HDL board board SerDes lanes topology details:
     | Lane # | Speed|    Type     |
     ------------------------------|
     |   0    |  0   |  SGMII0     |
     |   1    |  6   |  SATA0      |
     |   2    |  6   |  SATA1      |
     |   3    |  5   |  USB3 HOST1 |
     -------------------------------
    High speed PHY - Ended Successfully
    DDR3 Training Sequence - Ver TIP-1.46.0
    DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
    DDR3 Training Sequence - Ended Successfully
    Not detected suspend to RAM indication
    BootROM: Image checksum verification PASSED
    
    ============================================================
      HDL-AA series Initial boot loader
    
      Copyright (C) 2015-2017 I-O DATA DEVICE, INC.
    ============================================================
     ** LOADER **
    
    
    U-Boot 2013.01 (Oct 25 2019 - 09:26:29) MV: 2015_T1.0p16 I-O: 0.47
    
    Board: HDL-AA
    SoC:   MV88F6811 Rev A0
           running 2 CPUs
    CPU:   ARM Cortex A9 MPCore (Rev 1) LE
           CPU 0
           CPU    @ 1332 [MHz]
           L2     @ 666 [MHz]
           TClock @ 200 [MHz]
           DDR3    @ 666 [MHz]
           DDR3 16 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
    DRAM:  512 MiB
    NAND:  mvNfcInit() failed.
    0 MiB
    SPI:  SF: Detected W25Q128 with page size 64 KiB, total 16 MiB
    MMC:   mv_sdh: 0
    SF: Detected W25Q128 with page size 64 KiB, total 16 MiB
    USB3.0 1: Host Mode
    
    Map:   Code:                    0x1fecf000:0x1ff96474
           BSS:                     0x1ffefdac
           Stack:                   0x1f9bef20
           Heap:                    0x1f9bf000:0x1fecf000
           U-Boot Environment:      0x000f0000:0x00100000 (SPI)
    
    Board configuration detected:
    mvBoardEgigaPhyInit in 
    Net:   
    |  port  | Interface | PHY address  |
    |--------|-----------|--------------|
    | egiga0 |   SGMII   |   In-Band    |
    egiga0 [PRIME]
    Hit any key to stop autoboot:  0 
    failed to read mcu workaround for reset address.
    boot by AC.
    setting is not boot by AC.
    phy: page = 0
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 1
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 2
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 3
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 4
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 5
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 6
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 7
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 8
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 9
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 10
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 11
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 12
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 13
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 14
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 15
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 16
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 17
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0000 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    iodata GPIO power off.
    BootROM - 1.73
    Booting from SPI flash
    
    
    General initialization - Version: 1.0.0
    AVS selection from EFUSE disabled (Skip reading EFUSE values)
    Overriding default AVS value to: 0x23
    Detected Device ID 6811
    High speed PHY - Version: 2.0
    
    Init HDL board board SerDes lanes topology details:
     | Lane # | Speed|    Type     |
     ------------------------------|
     |   0    |  0   |  SGMII0     |
     |   1    |  6   |  SATA0      |
     |   2    |  6   |  SATA1      |
     |   3    |  5   |  USB3 HOST1 |
     -------------------------------
    High speed PHY - Ended Successfully
    DDR3 Training Sequence - Ver TIP-1.46.0
    DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
    DDR3 Training Sequence - Ended Successfully
    Not detected suspend to RAM indication
    BootROM: Image checksum verification PASSED
    
    ============================================================
      HDL-AA series Initial boot loader
    
      Copyright (C) 2015-2017 I-O DATA DEVICE, INC.
    ============================================================
     ** LOADER **
    
    
    U-Boot 2013.01 (Oct 25 2019 - 09:26:29) MV: 2015_T1.0p16 I-O: 0.47
    
    Board: HDL-AA
    SoC:   MV88F6811 Rev A0
           running 2 CPUs
    CPU:   ARM Cortex A9 MPCore (Rev 1) LE
           CPU 0
           CPU    @ 1332 [MHz]
           L2     @ 666 [MHz]
           TClock @ 200 [MHz]
           DDR3    @ 666 [MHz]
           DDR3 16 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
    DRAM:  512 MiB
    NAND:  mvNfcInit() failed.
    0 MiB
    SPI:  SF: Detected W25Q128 with page size 64 KiB, total 16 MiB
    MMC:   mv_sdh: 0
    SF: Detected W25Q128 with page size 64 KiB, total 16 MiB
    USB3.0 1: Host Mode
    
    Map:   Code:                    0x1fecf000:0x1ff96474
           BSS:                     0x1ffefdac
           Stack:                   0x1f9bef20
           Heap:                    0x1f9bf000:0x1fecf000
           U-Boot Environment:      0x000f0000:0x00100000 (SPI)
    
    Board configuration detected:
    mvBoardEgigaPhyInit in 
    Net:   
    |  port  | Interface | PHY address  |
    |--------|-----------|--------------|
    | egiga0 |   SGMII   |   In-Band    |
    egiga0 [PRIME]
    Hit any key to stop autoboot:  0 
    failed to read mcu workaround for reset address.
    
    Reset SCSI
    AHCI init for unit0
    SATA link 0 timeout.
    SATA link 1 timeout.
    
    Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
    scanning bus for devices...
    Found 0 device(s).
    ** Bad device scsi 0 **
    ** Bad device scsi 1 **
    ### JFFS2 loading '/zImage' to 0x2000000
    Scanning JFFS2 FS:   SF: Detected W25Q128 with page size 64 KiB, total 16 MiB                                                                  . 
    done.
    ### JFFS2 load complete: 3535504 bytes loaded to 0x2000000
    ### JFFS2 loading '/hdl-aa.dtb' to 0x1000000
    ### JFFS2 load complete: 14041 bytes loaded to 0x1000000
    ### JFFS2 loading '/uInitrd' to 0x3000000
    ### JFFS2 load complete: 3329208 bytes loaded to 0x3000000
    ## Loading init Ramdisk from Legacy Image at 03000000 ...
       Image Name:   HDL-AAX
       Created:      2022-05-09   0:42:20 UTC
       Image Type:   ARM Linux RAMDisk Image (uncompressed)
       Data Size:    3329144 Bytes = 3.2 MiB
       Load Address: 00000000
       Entry Point:  00000000
    ## Flattened Device Tree blob at 01000000
       Booting using the fdt blob at 0x01000000
       Loading Ramdisk to 1f690000, end 1f9bcc78 ... OK
       Loading Device Tree to 00ff9000, end 00fff6d8 ... OK
    
       Skipping Device Tree update ('fdt_skip_update' = yes)
    
    Limit DDR size at 3GB due to power of 2 requirement of Address decoding
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0x0
    Linux version 3.10.70 (root@buildarmsrv) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Thu Nov 26 18:11:41 JST 2020
    CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: HDL-AA
    Memory policy: ECC disabled, Data cache writealloc
    PERCPU: Embedded 9 pages/cpu @c0e4e000 s12544 r8192 d16128 u36864
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    Kernel command line: console=ttyS0,115200 mtdparts=spi0.0:960k(boot),64k(env),-(system) initrd=0x3000040 rw root=/dev/md2 rootfstype=ext4 rw rootdelay=2 init=/lib/sysvinit/init
    PID hash table entries: 2048 (order: 1, 8192 bytes)
    Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Memory: 512MB = 512MB total
    Memory: 505868k/505868k available, 18420k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xe0800000 - 0xfff00000   ( 503 MB)
        lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .text : 0xc0008000 - 0xc08fa7a8   (9162 kB)
          .init : 0xc08fb000 - 0xc094e100   ( 333 kB)
          .data : 0xc0950000 - 0xc09b5d00   ( 408 kB)
           .bss : 0xc09b5d00 - 0xc0a440a4   ( 569 kB)
    Hierarchical RCU implementation.
            RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
    NR_IRQS:16 nr_irqs:16 16
    
      LSP version: linux-3.10.70-2015_T1.1p7
    
    sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    L310 cache controller enabled
    l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
    Console: colour dummy device 80x30
    Calibrating delay loop... 2655.84 BogoMIPS (lpj=13279232)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    Setting up static identity map for 0xc067e628 - 0xc067e680
    mvebu-pmsu: Initializing Power Management Service Unit
    Initializing CPU Reset module
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    Brought up 2 CPUs
    SMP: Total of 2 processors activated (5311.69 BogoMIPS).
    CPU: All CPU(s) started in SVC mode.
    devtmpfs: initialized
    mvebu-soc-id: MVEBU SoC ID=0x6811, Rev=0x4
    xor: measuring software checksum speed
       arm4regs  :  2366.000 MB/sec
       8regs     :  1630.000 MB/sec
       32regs    :  1658.400 MB/sec
    xor: using function: arm4regs (2366.000 MB/sec)
    pinctrl core: initialized pinctrl subsystem
    regulator-dummy: no parameters
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
    irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
    bio: create slab  at 0
    raid6: int32x1    199 MB/s
    raid6: int32x2    274 MB/s
    raid6: int32x4    274 MB/s
    raid6: int32x8    302 MB/s
    raid6: using algorithm int32x8 (302 MB/s)
    raid6: using intx1 recovery algorithm
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti 
    PTP clock support registered
    Switching to clocksource armada_370_xp_clocksource
    FS-Cache: Loaded
    NET: Registered protocol family 2
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP: reno registered
    UDP hash table entries: 256 (order: 1, 8192 bytes)
    UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    Trying to unpack rootfs image as initramfs...
    Freeing initrd memory: 3248K (df690000 - df9bc000)
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    FS-Cache: Netfs 'nfs' registered for caching
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    Key type cifs.spnego registered
    Key type cifs.idmap registered
    NTFS driver 2.1.30 [Flags: R/O].
    jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    fuse init (API version 7.22)
    SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
    msgmni has been set to 994
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
    gpio-mcu: gmcu_dev = f800000 (M: 248, m: 0)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
    console [ttyS0] enabled
    brd: module loaded
    ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
    ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
    scsi0 : ahci_mv_platform
    scsi1 : ahci_mv_platform
    ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
    ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
    m25p80 spi0.0: found w25q128, expected mx25l12805d
    m25p80 spi0.0: w25q128 (16384 Kbytes)
    3 cmdlinepart partitions found on MTD device spi0.0
    Creating 3 MTD partitions on "spi0.0":
    0x000000000000-0x0000000f0000 : "boot"
    0x0000000f0000-0x000000100000 : "env"
    0x000000100000-0x000001000000 : "system"
    bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    errlp [mv_plat_data_get:4663] phy addr:0
    errlp [mv_plat_data_get:4692] phy_mode:6
    SoC: model = 0x6811, revision = 0x4
    mvPncVirtBase = 0xe1400000, pncTcamSize = 1024
      o 3 Giga ports supported
      o SKB recycle supported for SWF (Disabled)
      o NETA acceleration mode 4
      o BM supported for CPU: 4 BM pools
      o PnC supported (Enabled)
      o RX Queue support: 8 Queues * 256 Descriptors
      o TX Queue support: 8 Queues * 532 Descriptors
      o GSO supported
      o GRO supported
      o Receive checksum offload supported
      o Transmit checksum offload supported
      o Driver ERROR statistics enabled
      o Driver INFO statistics enabled
      o Driver DEBUG statistics enabled
    
    port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
      o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
    
      o Port 0 is connected to Linux netdevice
        o eth0, ifindex = 3, GbE port = 0
            giga p=0: mtu=1500, mac=34:76:c5:xx:xx:05 (env config)
    
    libphy: orion_mdio_bus: probed
    phy int status:0x0, global phy int status:0x0
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-pci: EHCI PCI platform driver
    ehci-orion: EHCI orion driver
    orion-ehci f1058000.usb: EHCI Host Controller
    orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
    orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
    orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: EHCI Host Controller
    usb usb1: Manufacturer: Linux 3.10.70 ehci_hcd
    usb usb1: SerialNumber: f1058000.usb
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    xhci-hcd f10f0000.usb3: xHCI Host Controller
    xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
    xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: xHCI Host Controller
    usb usb2: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb2: SerialNumber: f10f0000.usb3
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    xhci-hcd f10f0000.usb3: xHCI Host Controller
    xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
    usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
    usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb3: Product: xHCI Host Controller
    usb usb3: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb3: SerialNumber: f10f0000.usb3
    hub 3-0:1.0: USB hub found
    hub 3-0:1.0: 1 port detected
    xhci-hcd f10f8000.usb3: xHCI Host Controller
    xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
    xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
    usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb4: Product: xHCI Host Controller
    usb usb4: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb4: SerialNumber: f10f8000.usb3
    hub 4-0:1.0: USB hub found
    hub 4-0:1.0: 1 port detected
    xhci-hcd f10f8000.usb3: xHCI Host Controller
    xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
    usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
    usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb5: Product: xHCI Host Controller
    ata2: SATA link down (SStatus 0 SControl 300)
    ata1: SATA link down (SStatus 0 SControl 300)
    usb usb5: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb5: SerialNumber: f10f8000.usb3
    hub 5-0:1.0: USB hub found
    hub 5-0:1.0: 1 port detected
    usbcore: registered new interface driver usblp
    usbcore: registered new interface driver usb-storage
    usbcore: registered new interface driver ums-alauda
    usbcore: registered new interface driver ums-cypress
    usbcore: registered new interface driver ums-datafab
    usbcore: registered new interface driver ums_eneub6250
    usbcore: registered new interface driver ums-freecom
    usbcore: registered new interface driver ums-isd200
    usbcore: registered new interface driver ums-jumpshot
    usbcore: registered new interface driver ums-realtek
    usbcore: registered new interface driver ums-sddr09
    usbcore: registered new interface driver ums-sddr55
    usbcore: registered new interface driver ums-usbat
    usb 2-1: new high-speed USB device number 2 using xhci-hcd
    usb 2-1: New USB device found, idVendor=05e3, idProduct=0608
    usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    usb 2-1: Product: USB2.0 Hub
    hub 2-1:1.0: USB hub found
    hub 2-1:1.0: 4 ports detected
    mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
    i2c /dev entries driver
    armada_thermal f10e4078.thermal: Overheat threshold between 92..107
    orion_wdt: Initial timeout 171 sec
    md: raid0 personality registered for level 0
    md: raid1 personality registered for level 1
    md: raid10 personality registered for level 10
    md: raid6 personality registered for level 6
    md: raid5 personality registered for level 5
    md: raid4 personality registered for level 4
    md: multipath personality registered for level -4
    device-mapper: uevent: version 1.0.3
    device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
    dm_crypt using the OCF package.
    cpuidle: using governor ladder
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
    mvCesaInit: channels=2, session=640, queue=256
    armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
    cesadev_init(c092e7f8)
    hidraw: raw HID events driver (C) Jiri Kosina
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    drop_monitor: Initializing network drop monitor service
    TCP: cubic registered
    NET: Registered protocol family 10
    NET: Registered protocol family 17
    Key type dns_resolver registered
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    NAS Controller 1.00
    regulator-dummy: disabling
    mvebu-rtc f10a3800.rtc: setting system clock to 2022-06-18 06:34:33 UTC (1655534073)
    Freeing unused kernel memory: 332K (c08fb000 - c094e000)
    Loading, please wait...
    systemd-udevd[94]: starting version 215
    Begin: Loading essential drivers ... done.
    ### probing disks #######################################################
    MODEL: HDL2-AAX
    SATA:
      D1=         D2=        
    USB:
      D1=         D2=         D3=        
    ### check F/W installer #################################################
    firminstall: probe: SATA:
      D1=         D2=        
    USB:
      D1=         D2=         D3=        
    NG_NO_USB_DEVICE
    ### check USB installer #################################################
    usbinstall: probe: SATA:
      D1=         D2=        
    USB:
      D1=         D2=         D3=        
    NG_NO_USB_DEVICE
    ### check initialization ################################################
    ### assemble / volume ###################################################
    
    
    BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    /bin/sh: can't access tty; job control turned off
    / # 
    

  • bootlog(HDL2-AAX0/Eファームウェアインストール → ブート)
    HDL2-AAX0/E用ファームウェアのインストールからHDDブート実施まで

    BootROM - 1.73
    Booting from SPI flash
    
    
    General initialization - Version: 1.0.0
    AVS selection from EFUSE disabled (Skip reading EFUSE values)
    Overriding default AVS value to: 0x23
    Detected Device ID 6811
    High speed PHY - Version: 2.0
    
    Init HDL board board SerDes lanes topology details:
     | Lane # | Speed|    Type     |
     ------------------------------|
     |   0    |  0   |  SGMII0     |
     |   1    |  6   |  SATA0      |
     |   2    |  6   |  SATA1      |
     |   3    |  5   |  USB3 HOST1 |
     -------------------------------
    High speed PHY - Ended Successfully
    DDR3 Training Sequence - Ver TIP-1.46.0
    DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
    DDR3 Training Sequence - Ended Successfully
    Not detected suspend to RAM indication
    BootROM: Image checksum verification PASSED
    
    ============================================================
      HDL-AA series Initial boot loader
    
      Copyright (C) 2015-2017 I-O DATA DEVICE, INC.
    ============================================================
     ** LOADER **
    
    
    U-Boot 2013.01 (Oct 25 2019 - 09:26:29) MV: 2015_T1.0p16 I-O: 0.47
    
    Board: HDL-AA
    SoC:   MV88F6811 Rev A0
           running 2 CPUs
    CPU:   ARM Cortex A9 MPCore (Rev 1) LE
           CPU 0
           CPU    @ 1332 [MHz]
           L2     @ 666 [MHz]
           TClock @ 200 [MHz]
           DDR3    @ 666 [MHz]
           DDR3 16 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
    DRAM:  512 MiB
    NAND:  mvNfcInit() failed.
    0 MiB
    SPI:  SF: Detected W25Q128 with page size 64 KiB, total 16 MiB
    MMC:   mv_sdh: 0
    SF: Detected W25Q128 with page size 64 KiB, total 16 MiB
    USB3.0 1: Host Mode
    
    Map:   Code:                    0x1fecf000:0x1ff96474
           BSS:                     0x1ffefdac
           Stack:                   0x1f9bef20
           Heap:                    0x1f9bf000:0x1fecf000
           U-Boot Environment:      0x000f0000:0x00100000 (SPI)
    
    Board configuration detected:
    mvBoardEgigaPhyInit in 
    Net:   
    |  port  | Interface | PHY address  |
    |--------|-----------|--------------|
    | egiga0 |   SGMII   |   In-Band    |
    egiga0 [PRIME]
    Hit any key to stop autoboot:  0 
    failed to read mcu workaround for reset address.
    
    Reset SCSI
    AHCI init for unit0
    Target spinup took 0 ms.
    Target spinup took 0 ms.
    
    Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
    scanning bus for devices...
      Device 0: (0:0) Vendor: ATA Prod.: Hitachi HDP72505 Rev: GM4O
                Type: Hard Disk
                Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
      Device 1: (1:0) Vendor: ATA Prod.: SAMSUNG HD502HI Rev: 1AG0
                Type: Hard Disk
                Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
    Found 2 device(s).
    ** No partition table - scsi 0 **
    Failed to mount ext2 filesystem...
    ** Unrecognized filesystem type **
    ### JFFS2 loading '/zImage' to 0x2000000
    Scanning JFFS2 FS:   SF: Detected W25Q128 with page size 64 KiB, total 16 MiB                                                                  . 
    done.
    ### JFFS2 load complete: 3535504 bytes loaded to 0x2000000
    ### JFFS2 loading '/hdl-aa.dtb' to 0x1000000
    ### JFFS2 load complete: 14041 bytes loaded to 0x1000000
    ### JFFS2 loading '/uInitrd' to 0x3000000
    ### JFFS2 load complete: 3329208 bytes loaded to 0x3000000
    ## Loading init Ramdisk from Legacy Image at 03000000 ...
       Image Name:   HDL-AAX
       Created:      2022-05-09   0:42:20 UTC
       Image Type:   ARM Linux RAMDisk Image (uncompressed)
       Data Size:    3329144 Bytes = 3.2 MiB
       Load Address: 00000000
       Entry Point:  00000000
    ## Flattened Device Tree blob at 01000000
       Booting using the fdt blob at 0x01000000
       Loading Ramdisk to 1f690000, end 1f9bcc78 ... OK
       Loading Device Tree to 00ff9000, end 00fff6d8 ... OK
    
       Skipping Device Tree update ('fdt_skip_update' = yes)
    
    Limit DDR size at 3GB due to power of 2 requirement of Address decoding
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0x0
    Linux version 3.10.70 (root@buildarmsrv) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Thu Nov 26 18:11:41 JST 2020
    CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: HDL-AA
    Memory policy: ECC disabled, Data cache writealloc
    PERCPU: Embedded 9 pages/cpu @c0e4e000 s12544 r8192 d16128 u36864
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    Kernel command line: console=ttyS0,115200 mtdparts=spi0.0:960k(boot),64k(env),-(system) initrd=0x3000040 rw root=/dev/md2 rootfstype=ext4 rw rootdelay=2 init=/lib/sysvinit/init
    PID hash table entries: 2048 (order: 1, 8192 bytes)
    Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Memory: 512MB = 512MB total
    Memory: 505868k/505868k available, 18420k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xe0800000 - 0xfff00000   ( 503 MB)
        lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .text : 0xc0008000 - 0xc08fa7a8   (9162 kB)
          .init : 0xc08fb000 - 0xc094e100   ( 333 kB)
          .data : 0xc0950000 - 0xc09b5d00   ( 408 kB)
           .bss : 0xc09b5d00 - 0xc0a440a4   ( 569 kB)
    Hierarchical RCU implementation.
            RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
    NR_IRQS:16 nr_irqs:16 16
    
      LSP version: linux-3.10.70-2015_T1.1p7
    
    sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    L310 cache controller enabled
    l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
    Console: colour dummy device 80x30
    Calibrating delay loop... 2655.84 BogoMIPS (lpj=13279232)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    Setting up static identity map for 0xc067e628 - 0xc067e680
    mvebu-pmsu: Initializing Power Management Service Unit
    Initializing CPU Reset module
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    Brought up 2 CPUs
    SMP: Total of 2 processors activated (5311.69 BogoMIPS).
    CPU: All CPU(s) started in SVC mode.
    devtmpfs: initialized
    mvebu-soc-id: MVEBU SoC ID=0x6811, Rev=0x4
    xor: measuring software checksum speed
       arm4regs  :  2366.000 MB/sec
       8regs     :  1630.000 MB/sec
       32regs    :  1658.400 MB/sec
    xor: using function: arm4regs (2366.000 MB/sec)
    pinctrl core: initialized pinctrl subsystem
    regulator-dummy: no parameters
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
    irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
    bio: create slab <bio-0> at 0
    raid6: int32x1    199 MB/s
    raid6: int32x2    274 MB/s
    raid6: int32x4    274 MB/s
    raid6: int32x8    302 MB/s
    raid6: using algorithm int32x8 (302 MB/s)
    raid6: using intx1 recovery algorithm
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    PTP clock support registered
    Switching to clocksource armada_370_xp_clocksource
    FS-Cache: Loaded
    NET: Registered protocol family 2
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP: reno registered
    UDP hash table entries: 256 (order: 1, 8192 bytes)
    UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    Trying to unpack rootfs image as initramfs...
    Freeing initrd memory: 3248K (df690000 - df9bc000)
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    FS-Cache: Netfs 'nfs' registered for caching
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    Key type cifs.spnego registered
    Key type cifs.idmap registered
    NTFS driver 2.1.30 [Flags: R/O].
    jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    fuse init (API version 7.22)
    SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
    msgmni has been set to 994
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
    gpio-mcu: gmcu_dev = f800000 (M: 248, m: 0)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
    console [ttyS0] enabled
    brd: module loaded
    ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
    ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
    scsi0 : ahci_mv_platform
    scsi1 : ahci_mv_platform
    ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
    ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
    m25p80 spi0.0: found w25q128, expected mx25l12805d
    m25p80 spi0.0: w25q128 (16384 Kbytes)
    3 cmdlinepart partitions found on MTD device spi0.0
    Creating 3 MTD partitions on "spi0.0":
    0x000000000000-0x0000000f0000 : "boot"
    0x0000000f0000-0x000000100000 : "env"
    0x000000100000-0x000001000000 : "system"
    bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    errlp [mv_plat_data_get:4663] phy addr:0
    errlp [mv_plat_data_get:4692] phy_mode:6
    SoC: model = 0x6811, revision = 0x4
    mvPncVirtBase = 0xe1400000, pncTcamSize = 1024
      o 3 Giga ports supported
      o SKB recycle supported for SWF (Disabled)
      o NETA acceleration mode 4
      o BM supported for CPU: 4 BM pools
      o PnC supported (Enabled)
      o RX Queue support: 8 Queues * 256 Descriptors
      o TX Queue support: 8 Queues * 532 Descriptors
      o GSO supported
      o GRO supported
      o Receive checksum offload supported
      o Transmit checksum offload supported
      o Driver ERROR statistics enabled
      o Driver INFO statistics enabled
      o Driver DEBUG statistics enabled
    
    port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
      o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
    
      o Port 0 is connected to Linux netdevice
        o eth0, ifindex = 3, GbE port = 0
            giga p=0: mtu=1500, mac=34:76:c5:xx:xx:05 (env config)
    
    libphy: orion_mdio_bus: probed
    phy int status:0x0, global phy int status:0x0
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-pci: EHCI PCI platform driver
    ehci-orion: EHCI orion driver
    orion-ehci f1058000.usb: EHCI Host Controller
    orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
    orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
    orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: EHCI Host Controller
    usb usb1: Manufacturer: Linux 3.10.70 ehci_hcd
    usb usb1: SerialNumber: f1058000.usb
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    xhci-hcd f10f0000.usb3: xHCI Host Controller
    xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
    xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: xHCI Host Controller
    usb usb2: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb2: SerialNumber: f10f0000.usb3
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    xhci-hcd f10f0000.usb3: xHCI Host Controller
    xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
    usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
    usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb3: Product: xHCI Host Controller
    usb usb3: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb3: SerialNumber: f10f0000.usb3
    hub 3-0:1.0: USB hub found
    hub 3-0:1.0: 1 port detected
    xhci-hcd f10f8000.usb3: xHCI Host Controller
    xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
    xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
    usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb4: Product: xHCI Host Controller
    usb usb4: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb4: SerialNumber: f10f8000.usb3
    hub 4-0:1.0: USB hub found
    hub 4-0:1.0: 1 port detected
    xhci-hcd f10f8000.usb3: xHCI Host Controller
    xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
    usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
    usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb5: Product: xHCI Host Controller
    usb usb5: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb5: SerialNumber: f10f8000.usb3
    hub 5-0:1.0: USB hub found
    hub 5-0:1.0: 1 port detected
    usbcore: registered new interface driver usblp
    usbcore: registered new interface driver usb-storage
    usbcore: registered new interface driver ums-alauda
    usbcore: registered new interface driver ums-cypress
    usbcore: registered new interface driver ums-datafab
    usbcore: registered new interface driver ums_eneub6250
    usbcore: registered new interface driver ums-freecom
    usbcore: registered new interface driver ums-isd200
    usbcore: registered new interface driver ums-jumpshot
    usbcore: registered new interface driver ums-realtek
    usbcore: registered new interface driver ums-sddr09
    usbcore: registered new interface driver ums-sddr55
    usbcore: registered new interface driver ums-usbat
    ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata1.00: ATA-8: Hitachi HDP725050GLA360, GM4OA52A, max UDMA/133
    ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    usb 2-1: new high-speed USB device number 2 using xhci-hcd
    ata2.00: ATA-7: SAMSUNG HD502HI, 1AG01118, max UDMA7
    ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    ata1.00: configured for UDMA/133
    scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDP72505 GM4O PQ: 0 ANSI: 5
    usb 2-1: New USB device found, idVendor=05e3, idProduct=0608
    usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    usb 2-1: Product: USB2.0 Hub
    ata2.00: configured for UDMA/133
    hub 2-1:1.0: USB hub found
    hub 2-1:1.0: 4 ports detected
    sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG HD502HI  1AG0 PQ: 0 ANSI: 5
    sd 1:0:0:0: Attached scsi generic sg1 type 0
    sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
    sd 1:0:0:0: [sdb] Write Protect is off
    sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
     sda: unknown partition table
    sd 0:0:0:0: [sda] Attached SCSI disk
     sdb: sdb1 sdb2
    sd 1:0:0:0: [sdb] Attached SCSI disk
    usb 2-1.2: new high-speed USB device number 3 using xhci-hcd
    usb 2-1.2: New USB device found, idVendor=30de, idProduct=6544
    usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 2-1.2: Product: TransMemory     
    usb 2-1.2: Manufacturer: KIOXIA  
    usb 2-1.2: SerialNumber: 0022CFF6B8BBC540E88C0355
    usb 2-1.2: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
    usb 2-1.2: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
    usb-storage 2-1.2:1.0: USB Mass Storage device detected
    scsi2 : usb-storage 2-1.2:1.0
    mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
    i2c /dev entries driver
    armada_thermal f10e4078.thermal: Overheat threshold between 92..107
    orion_wdt: Initial timeout 171 sec
    md: raid0 personality registered for level 0
    md: raid1 personality registered for level 1
    md: raid10 personality registered for level 10
    md: raid6 personality registered for level 6
    md: raid5 personality registered for level 5
    md: raid4 personality registered for level 4
    md: multipath personality registered for level -4
    device-mapper: uevent: version 1.0.3
    device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
    dm_crypt using the OCF package.
    cpuidle: using governor ladder
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
    mvCesaInit: channels=2, session=640, queue=256
    armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
    cesadev_init(c092e7f8)
    hidraw: raw HID events driver (C) Jiri Kosina
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    drop_monitor: Initializing network drop monitor service
    TCP: cubic registered
    NET: Registered protocol family 10
    NET: Registered protocol family 17
    Key type dns_resolver registered
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    NAS Controller 1.00
    regulator-dummy: disabling
    mvebu-rtc f10a3800.rtc: setting system clock to 2022-06-18 12:54:09 UTC (1655556849)
    Freeing unused kernel memory: 332K (c08fb000 - c094e000)
    Loading, please wait...
    systemd-udevd[96]: starting version 215
    scsi 2:0:0:0: Direct-Access     KIOXIA   TransMemory      1.00 PQ: 0 ANSI: 4
    sd 2:0:0:0: Attached scsi generic sg2 type 0
    sd 2:0:0:0: [sdc] 30274560 512-byte logical blocks: (15.5 GB/14.4 GiB)
    sd 2:0:0:0: [sdc] Write Protect is off
    sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
     sdc: sdc1
    sd 2:0:0:0: [sdc] Attached SCSI removable disk
    Begin: Loading essential drivers ... done.
    ### probing disks #######################################################
    MODEL: HDL2-AAX
     sda: unknown partition table
     sdc: sdc1
     sda: unknown partition table
     sdb: sdb1 sdb2
     sdb: sdb1 sdb2
     sdc: sdc1
     sdc: sdc1
    SATA:
      D1=/dev/sdb D2=/dev/sda
    USB:
      D1=/dev/sdc D2=         D3=        
    ### check F/W installer #################################################
    ### USB install start ####################################################
    ###### install from /mnt/usb1/firmware/2aax/script.sh ######
    OPTIONS: 
      O_SHELL=
      O_SHORTP=
      O_NOFLASH=
      O_NOEPCLEAN=
      O_NOSMART=1
      O_NOHDDCHK=1
      O_ACLEAN=
      O_RESETRTC=
    ### USBINSTALL: check internal HDDs ######################################
    ###### check internal HDD existence ######
    OK
    ###### check internal HDD size ######
    OK
    ###### enable S.M.A.R.T. ######
    OK
    ### USBINSTALL: create internal volumes ##################################
    ###### partition internal disks ######
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: unknown partition table
     sda: sda1 sda2 sda3 sda4 sda5 sda6
    MODEL: HDL2-AAX
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
    SATA:
      D1=/dev/sdb D2=/dev/sda
    USB:
      D1=/dev/sdc D2=         D3=        
    OK
    ###### create volume 1 ######
    EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
    OK
    ###### create volume 2 ######
    md: bind<sdb2>
    md: bind<sda2>
    md/raid1:md2: not clean -- starting background reconstruction
    md/raid1:md2: active with 2 out of 3 mirrors
    md2: detected capacity change from 0 to 2145386496
    md: resync of RAID array md2
    md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
    md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
    md: using 128k window, over a total of 2095104k.
     md2: unknown partition table
    ###### wait for resync md2 ######
    md: md2: resync done.
    ###### resync md2 complete ######
    OK
    ###### create volume 3 ######
    OK
    ###### create volume 4 ######
    EXT4-fs (sdb4): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
    OK
    ###### create volume 5 ######
    md: bind<sdb5>
    md: bind<sda5>
    md/raid1:md5: not clean -- starting background reconstruction
    md/raid1:md5: active with 2 out of 3 mirrors
    md5: detected capacity change from 0 to 1072693248
    md: resync of RAID array md5
     md5: unknown partition table
    md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
    md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
    md: using 128k window, over a total of 1047552k.
    ###### wait for resync md5 ######
    md: md5: resync done.
    ###### resync md5 complete ######
    OK
    ###### create volume 6 ######
    ##### create vfsext ######
    ##### format satad1p6 ######
    ##### format satad2p6 ######
    OK
    ### USBINSTALL: install files ############################################
    EXT4-fs (md2): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (md5): mounted filesystem with ordered data mode. Opts: (null)
    XFS (sdb6): Mounting Filesystem
    XFS (sdb6): Ending clean mount
    XFS (sda6): Mounting Filesystem
    XFS (sda6): Ending clean mount
    Create signature - 3F33B879
    vfsext signature - 3F33B879
    vfsext: assume all device is new.
    OK
    ### USBINSTALL: install files for boot ###################################
    EXT4-fs (md2): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
    OK
    ### USBINSTALL: initialize board config ##################################
    ##### initialize flash #####
    FLASH0 Comparing...
    FLASH0 no change
    FLASH1 Writing...
    done.
    FLASH1 Comparing...
    OK
    OK
    ##### initialize MCU #####
    OK
    ###### disable RTC alarm ######
    OK
    ###### reset EEPROM ######
    .......W...W...W
    ...W..........WW
    W...............
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    
    OK
    ##### disable AC auto power on #####
    OK
    ###### enable WoL ######
    OK
    ##### enable buzzer #####
    OK
    ##### set LED brightness #####
    OK
    ### USB install end ######################################################
    sd 1:0:0:0: [sdb] Synchronizing SCSI cache
    sd 1:0:0:0: [sdb] Stopping disk
    sd 0:0:0:0: [sda] Synchronizing SCSI cache
    sd 0:0:0:0: [sda] Stopping disk
    xhci-hcd f10f8000.usb3: remove, state 4
    usb usb5: USB disconnect, device number 1
    xhci-hcd f10f8000.usb3: USB bus 5 deregistered
    xhci-hcd f10f8000.usb3: remove, state 4
    usb usb4: USB disconnect, device number 1
    xhci-hcd f10f8000.usb3: USB bus 4 deregistered
    xhci-hcd f10f0000.usb3: remove, state 4
    usb usb3: USB disconnect, device number 1
    xhci-hcd f10f0000.usb3: USB bus 3 deregistered
    xhci-hcd f10f0000.usb3: remove, state 1
    usb usb2: USB disconnect, device number 1
    usb 2-1: USB disconnect, device number 2
    usb 2-1.2: USB disconnect, device number 3
    xhci-hcd f10f0000.usb3: USB bus 2 deregistered
    Shutting Down Marvell Ethernet Driver
    Power down.
    Wake On LAN Enable by ethtool.
    status reg@0xf040:0x0
    status reg@0xf042:0x0
    status reg@0xf06f:0x0
    iodata GPIO power off...
    
    BootROM - 1.73
    Booting from SPI flash
    
    
    General initialization - Version: 1.0.0
    AVS selection from EFUSE disabled (Skip reading EFUSE values)
    Overriding default AVS value to: 0x23
    Detected Device ID 6811
    High speed PHY - Version: 2.0
    
    Init HDL board board SerDes lanes topology details:
     | Lane # | Speed|    Type     |
     ------------------------------|
     |   0    |  0   |  SGMII0     |
     |   1    |  6   |  SATA0      |
     |   2    |  6   |  SATA1      |
     |   3    |  5   |  USB3 HOST1 |
     -------------------------------
    High speed PHY - Ended Successfully
    DDR3 Training Sequence - Ver TIP-1.46.0
    DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
    DDR3 Training Sequence - Ended Successfully
    Not detected suspend to RAM indication
    BootROM: Image checksum verification PASSED
    
    ============================================================
      HDL-AA series Initial boot loader
    
      Copyright (C) 2015-2017 I-O DATA DEVICE, INC.
    ============================================================
     ** LOADER **
    
    
    U-Boot 2013.01 (Oct 25 2019 - 09:26:29) MV: 2015_T1.0p16 I-O: 0.47
    
    Board: HDL-AA
    SoC:   MV88F6811 Rev A0
           running 2 CPUs
    CPU:   ARM Cortex A9 MPCore (Rev 1) LE
           CPU 0
           CPU    @ 1332 [MHz]
           L2     @ 666 [MHz]
           TClock @ 200 [MHz]
           DDR3    @ 666 [MHz]
           DDR3 16 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
    DRAM:  512 MiB
    NAND:  mvNfcInit() failed.
    0 MiB
    SPI:  SF: Detected W25Q128 with page size 64 KiB, total 16 MiB
    MMC:   mv_sdh: 0
    SF: Detected W25Q128 with page size 64 KiB, total 16 MiB
    USB3.0 1: Host Mode
    
    Map:   Code:                    0x1fecf000:0x1ff96474
           BSS:                     0x1ffefdac
           Stack:                   0x1f9bef20
           Heap:                    0x1f9bf000:0x1fecf000
           U-Boot Environment:      0x000f0000:0x00100000 (SPI)
    
    Board configuration detected:
    mvBoardEgigaPhyInit in 
    Net:   
    |  port  | Interface | PHY address  |
    |--------|-----------|--------------|
    | egiga0 |   SGMII   |   In-Band    |
    egiga0 [PRIME]
    Hit any key to stop autoboot:  0 
    failed to read mcu workaround for reset address.
    
    Reset SCSI
    AHCI init for unit0
    Target spinup took 0 ms.
    Target spinup took 0 ms.
    
    Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
    scanning bus for devices...
      Device 0: (0:0) Vendor: ATA Prod.: Hitachi HDP72505 Rev: GM4O
                Type: Hard Disk
                Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
      Device 1: (1:0) Vendor: ATA Prod.: SAMSUNG HD502HI Rev: 1AG0
                Type: Hard Disk
                Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
    Found 2 device(s).
    3535504 bytes read in 142 ms (23.7 MiB/s)
    14041 bytes read in 21 ms (652.3 KiB/s)
    3329208 bytes read in 129 ms (24.6 MiB/s)
    ## Loading init Ramdisk from Legacy Image at 03000000 ...
       Image Name:   HDL-AAX
       Created:      2022-06-18  12:56:29 UTC
       Image Type:   ARM Linux RAMDisk Image (uncompressed)
       Data Size:    3329144 Bytes = 3.2 MiB
       Load Address: 00000000
       Entry Point:  00000000
    ## Flattened Device Tree blob at 01000000
       Booting using the fdt blob at 0x01000000
       Loading Ramdisk to 1f690000, end 1f9bcc78 ... OK
       Loading Device Tree to 00ff9000, end 00fff6d8 ... OK
    
       Skipping Device Tree update ('fdt_skip_update' = yes)
    
    Limit DDR size at 3GB due to power of 2 requirement of Address decoding
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0x0
    Linux version 3.10.70 (root@buildarmsrv) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Thu Nov 26 18:11:41 JST 2020
    CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: HDL-AA
    Memory policy: ECC disabled, Data cache writealloc
    PERCPU: Embedded 9 pages/cpu @c0e4e000 s12544 r8192 d16128 u36864
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    Kernel command line: console=ttyS0,115200 mtdparts=spi0.0:960k(boot),64k(env),-(system) initrd=0x3000040 rw root=/dev/md2 rootfstype=ext4 rw rootdelay=2 init=/lib/sysvinit/init
    PID hash table entries: 2048 (order: 1, 8192 bytes)
    Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Memory: 512MB = 512MB total
    Memory: 505868k/505868k available, 18420k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xe0800000 - 0xfff00000   ( 503 MB)
        lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .text : 0xc0008000 - 0xc08fa7a8   (9162 kB)
          .init : 0xc08fb000 - 0xc094e100   ( 333 kB)
          .data : 0xc0950000 - 0xc09b5d00   ( 408 kB)
           .bss : 0xc09b5d00 - 0xc0a440a4   ( 569 kB)
    Hierarchical RCU implementation.
            RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
    NR_IRQS:16 nr_irqs:16 16
    
      LSP version: linux-3.10.70-2015_T1.1p7
    
    sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    L310 cache controller enabled
    l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
    Console: colour dummy device 80x30
    Calibrating delay loop... 2655.84 BogoMIPS (lpj=13279232)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    Setting up static identity map for 0xc067e628 - 0xc067e680
    mvebu-pmsu: Initializing Power Management Service Unit
    Initializing CPU Reset module
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    Brought up 2 CPUs
    SMP: Total of 2 processors activated (5311.69 BogoMIPS).
    CPU: All CPU(s) started in SVC mode.
    devtmpfs: initialized
    mvebu-soc-id: MVEBU SoC ID=0x6811, Rev=0x4
    xor: measuring software checksum speed
       arm4regs  :  2366.000 MB/sec
       8regs     :  1630.000 MB/sec
       32regs    :  1658.400 MB/sec
    xor: using function: arm4regs (2366.000 MB/sec)
    pinctrl core: initialized pinctrl subsystem
    regulator-dummy: no parameters
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
    irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
    bio: create slab <bio-0> at 0
    raid6: int32x1    199 MB/s
    raid6: int32x2    274 MB/s
    raid6: int32x4    274 MB/s
    raid6: int32x8    302 MB/s
    raid6: using algorithm int32x8 (302 MB/s)
    raid6: using intx1 recovery algorithm
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    PTP clock support registered
    Switching to clocksource armada_370_xp_clocksource
    FS-Cache: Loaded
    NET: Registered protocol family 2
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP: reno registered
    UDP hash table entries: 256 (order: 1, 8192 bytes)
    UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    Trying to unpack rootfs image as initramfs...
    Freeing initrd memory: 3248K (df690000 - df9bc000)
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    FS-Cache: Netfs 'nfs' registered for caching
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    Key type cifs.spnego registered
    Key type cifs.idmap registered
    NTFS driver 2.1.30 [Flags: R/O].
    jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    fuse init (API version 7.22)
    SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
    msgmni has been set to 994
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
    gpio-mcu: gmcu_dev = f800000 (M: 248, m: 0)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
    console [ttyS0] enabled
    brd: module loaded
    ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
    ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
    scsi0 : ahci_mv_platform
    scsi1 : ahci_mv_platform
    ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
    ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
    m25p80 spi0.0: found w25q128, expected mx25l12805d
    m25p80 spi0.0: w25q128 (16384 Kbytes)
    3 cmdlinepart partitions found on MTD device spi0.0
    Creating 3 MTD partitions on "spi0.0":
    0x000000000000-0x0000000f0000 : "boot"
    0x0000000f0000-0x000000100000 : "env"
    0x000000100000-0x000001000000 : "system"
    bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    errlp [mv_plat_data_get:4663] phy addr:0
    errlp [mv_plat_data_get:4692] phy_mode:6
    SoC: model = 0x6811, revision = 0x4
    mvPncVirtBase = 0xe1400000, pncTcamSize = 1024
      o 3 Giga ports supported
      o SKB recycle supported for SWF (Disabled)
      o NETA acceleration mode 4
      o BM supported for CPU: 4 BM pools
      o PnC supported (Enabled)
      o RX Queue support: 8 Queues * 256 Descriptors
      o TX Queue support: 8 Queues * 532 Descriptors
      o GSO supported
      o GRO supported
      o Receive checksum offload supported
      o Transmit checksum offload supported
      o Driver ERROR statistics enabled
      o Driver INFO statistics enabled
      o Driver DEBUG statistics enabled
    
    port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
      o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
    
      o Port 0 is connected to Linux netdevice
        o eth0, ifindex = 3, GbE port = 0
            giga p=0: mtu=1500, mac=34:76:c5:xx:xx:05 (env config)
    
    libphy: orion_mdio_bus: probed
    phy int status:0x0, global phy int status:0x0
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-pci: EHCI PCI platform driver
    ehci-orion: EHCI orion driver
    orion-ehci f1058000.usb: EHCI Host Controller
    orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
    orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
    orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: EHCI Host Controller
    usb usb1: Manufacturer: Linux 3.10.70 ehci_hcd
    usb usb1: SerialNumber: f1058000.usb
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    xhci-hcd f10f0000.usb3: xHCI Host Controller
    xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
    xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: xHCI Host Controller
    usb usb2: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb2: SerialNumber: f10f0000.usb3
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    xhci-hcd f10f0000.usb3: xHCI Host Controller
    xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
    usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
    usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb3: Product: xHCI Host Controller
    usb usb3: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb3: SerialNumber: f10f0000.usb3
    hub 3-0:1.0: USB hub found
    hub 3-0:1.0: 1 port detected
    xhci-hcd f10f8000.usb3: xHCI Host Controller
    xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
    xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
    usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb4: Product: xHCI Host Controller
    usb usb4: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb4: SerialNumber: f10f8000.usb3
    hub 4-0:1.0: USB hub found
    hub 4-0:1.0: 1 port detected
    xhci-hcd f10f8000.usb3: xHCI Host Controller
    xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
    usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
    usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb5: Product: xHCI Host Controller
    usb usb5: Manufacturer: Linux 3.10.70 xhci-hcd
    usb usb5: SerialNumber: f10f8000.usb3
    hub 5-0:1.0: USB hub found
    hub 5-0:1.0: 1 port detected
    usbcore: registered new interface driver usblp
    usbcore: registered new interface driver usb-storage
    usbcore: registered new interface driver ums-alauda
    usbcore: registered new interface driver ums-cypress
    usbcore: registered new interface driver ums-datafab
    usbcore: registered new interface driver ums_eneub6250
    usbcore: registered new interface driver ums-freecom
    usbcore: registered new interface driver ums-isd200
    usbcore: registered new interface driver ums-jumpshot
    usbcore: registered new interface driver ums-realtek
    usbcore: registered new interface driver ums-sddr09
    usbcore: registered new interface driver ums-sddr55
    usbcore: registered new interface driver ums-usbat
    ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata1.00: ATA-8: Hitachi HDP725050GLA360, GM4OA52A, max UDMA/133
    ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    usb 2-1: new high-speed USB device number 2 using xhci-hcd
    ata2.00: ATA-7: SAMSUNG HD502HI, 1AG01118, max UDMA7
    ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    ata1.00: configured for UDMA/133
    scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDP72505 GM4O PQ: 0 ANSI: 5
    usb 2-1: New USB device found, idVendor=05e3, idProduct=0608
    usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    usb 2-1: Product: USB2.0 Hub
    hub 2-1:1.0: USB hub found
    hub 2-1:1.0: 4 ports detected
    ata2.00: configured for UDMA/133
    sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG HD502HI  1AG0 PQ: 0 ANSI: 5
    sd 1:0:0:0: Attached scsi generic sg1 type 0
    sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
    sd 1:0:0:0: [sdb] Write Protect is off
    sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
    sd 1:0:0:0: [sdb] Attached SCSI disk
     sda: sda1 sda2 sda3 sda4 sda5 sda6
    sd 0:0:0:0: [sda] Attached SCSI disk
    mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
    i2c /dev entries driver
    armada_thermal f10e4078.thermal: Overheat threshold between 92..107
    orion_wdt: Initial timeout 171 sec
    md: raid0 personality registered for level 0
    md: raid1 personality registered for level 1
    md: raid10 personality registered for level 10
    md: raid6 personality registered for level 6
    md: raid5 personality registered for level 5
    md: raid4 personality registered for level 4
    md: multipath personality registered for level -4
    device-mapper: uevent: version 1.0.3
    device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
    dm_crypt using the OCF package.
    cpuidle: using governor ladder
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
    mvCesaInit: channels=2, session=640, queue=256
    armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
    cesadev_init(c092e7f8)
    hidraw: raw HID events driver (C) Jiri Kosina
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    drop_monitor: Initializing network drop monitor service
    TCP: cubic registered
    NET: Registered protocol family 10
    NET: Registered protocol family 17
    Key type dns_resolver registered
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    NAS Controller 1.00
    regulator-dummy: disabling
    mvebu-rtc f10a3800.rtc: setting system clock to 2022-06-18 12:58:35 UTC (1655557115)
    Freeing unused kernel memory: 332K (c08fb000 - c094e000)
    Loading, please wait...
    systemd-udevd[94]: starting version 215
    Begin: Loading essential drivers ... done.
    ### probing disks #######################################################
    MODEL: HDL2-AAX
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
    SATA:
      D1=/dev/sdb D2=/dev/sda
    USB:
      D1=         D2=         D3=        
    ### check F/W installer #################################################
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
    firminstall: probe: SATA:
      D1=/dev/sdb D2=/dev/sda
    USB:
      D1=         D2=         D3=        
    NG_NO_USB_DEVICE
    ### check USB installer #################################################
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sda: sda1 sda2 sda3 sda4 sda5 sda6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
     sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
    usbinstall: probe: SATA:
      D1=/dev/sdb D2=/dev/sda
    USB:
      D1=         D2=         D3=        
    NG_NO_USB_DEVICE
    ### check inEXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
    itialization ################################################
    EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
    ### assemble / volume ###################################################
    EXT4-fs (sdb4): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
    md: md2 stopped.
    md: bind<sda2>
    md: bind<sdb2>
    md/raid1:md2: active with 2 out of 3 mirrors
    md2: detected capacity change from 0 to 2145386496
     md2: unknown partition table
    EXT4-fs (md2): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sdb4): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
    md: md5 stopped.
    md: bind<sda5>
    md: bind<sdb5>
    md/raid1:md5: active with 2 out of 3 mirrors
    md5: detected capacity change from 0 to 1072693248
     md5: unknown partition table
    Begin: Running /scripts/init-bottom ... done.
    INIT: version 2.88 booting
    [info] Using makefile-style concurrent boot in runlevel S.
    [....] Starting the hotplug events dispatcher: udevdsystemd-udevd[1120]: starting version 215
    . ok 
    [ ok ] Synthesizing the initial hotplug events...done.
    [ ok ] Waiting for /dev to be fully populated...done.
    [ ok ] Setting preliminary keymap...done.
    [ ok ] Assembling MD arrays...done (no arrays found in config file or automatically).
    [ ok ] Setting parameters of disc: (none).
    [....] Activating swap...Adding 1048572k swap on /dev/sdb3.  Priority:-1 extents:1 across:1048572k 
    Adding 1048572k swap on /dev/sda3.  Priority:-2 extents:1 across:1048572k 
    done.
    EXT4-fs (md2): re-mounted. Opts: (null)
    [warn] Creating compatibility symlink from /etc/mtab to /proc/mounts. ... (warning).
    [ ok ] Cleaning up temporary files... /tmp.
    [ ok ] Starting early crypto disks...done.
    [ ok ] Starting remaining crypto disks...done.
    [ ok ] Activating lvm and md swap...done.
    [....] Checking file systems...fsck from util-linux 2.25.2
    done.
    EXT4-fs (md5): mounted filesystem with ordered data mode. Opts: (null)
    fsevsync: module license 'Proprietary' taints kernel.
    Disabling lock debugging due to kernel taint
    [info] Loading kernel module fsevsync.
    [info] Loading kernel module vfsext.
    [info] Loading kernel module fuse.
    [ ok ] Mounting local filesystems...done.
    [ ok ] Activating swapfile swap...done.
    EXT4-fs (sdb4): mounted filesystem with ordered data mode. Opts: (null)
    [ ok ] Cleaning up temporary files... /tmp.
    mtdLoadDriver successful.
    ATTEMPT failed at mtdSetMacInterfaceCopperOnlyPhy:346
    InitSystem fail,ret:1
    App code started.
    Firmware version: 8.0.5.0
    mtdLoadDriver successful.
    Firmware version: 8.0.5.0
    [info] Setting console screen modes.
    setterm: cannot (un)set powersave mode: Inappropriate ioctl for device
    [ ok ] Setting up console font and keymap...done.
    [ ok ] Setting kernel variables ...done.
    [ ok ] Setting sensors limits.
    [....] Configuring network interfaces...RTNETLINK answers: Network is down
    run-parts: /etc/network/if-up.d/avahi-autoipd exited with return code 2
    Failed to bring up eth0.
    RTNETLINK answers: No such process
    Stopping DHCPv6 client: dhcpc6.
    [ ok ] Starting web server: apache2.
    done.
    [ ok ] Starting rpcbind daemon....
    INIT: Entering runlevel: 2
    [info] Using makefile-style concurrent boot in runlevel 2.
    lm75 0-0049: hwmon1: sensor 'tmp75'
    i2c i2c-0: new_device: Instantiated device tmp75 at 0x49
    pool #0: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
    eth0: link up
    eth0: started
    eth0: link up, full duplex, speed 10 Mbps
    Not starting udftools packet writing: No devices listed in /etc/default/udftools
    [ ok ] Setting sysfs variables....
    [ ok ] Starting uuid generator: uuidd.
    [ ok ] Starting system logging: syslog-ng.
    APFFind for AirPort Finder/Magical Finder Device
    [ ok ] Network Interface Plugging Daemon...start eth0...done.
    [ ok ] Starting web server: apache2.
    /bin/cat: /mnt/data/conf/network/device_uuid: No such file or directory
    [ ok ] Starting CUPS Bonjour daemon: cups-browsed.
    [ ok ] Starting MD monitoring service: mdadm --monitor.
    [ ok ] Starting hdl-aa-buttond: buttond.
    [ ok ] Starting SMP IRQ Balancer: irqbalance.
    [ ok ] Starting periodic command scheduler: cron.
    [ ok ] Starting system message bus: dbus.
    [ ok ] saned disabled; edit /etc/default/saned.
    [....] Starting SNMP services::  snmpdEXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
    Creating hostname and hostdesc.
    Set firmware update notification time.
    Set packages update notification time.
    Creating device UUID.
    [ ok ] Restarting dpwsd: dpwsd.
    EXT4-fs (sdb4): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
    XFS (sda6): Mounting Filesystem
    XFS (sda6): Ending clean mount
    XFS (sda6): Quotacheck needed: Please wait.
    XFS (sda6): Quotacheck: Done.
    XFS (sdb6): Mounting Filesystem
    XFS (sdb6): Ending clean mount
    XFS (sdb6): Quotacheck needed: Please wait.
    XFS (sdb6): Quotacheck: Done.
    XFS (sda6): Mounting Filesystem
    XFS (sda6): Ending clean mount
    XFS (sdb6): Mounting Filesystem
    XFS (sdb6): Ending clean mount
    Signature 3F33B879 - count 2
    Signature 3F33B879 - count 2
    vfsext signature - 3F33B879
    EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (md2): re-mounted. Opts: (null)
    EXT4-fs (md2): re-mounted. Opts: (null)
    set count : 0
    INIT: no more processes left in this runlevel
    

  • version
    
    

  • version
    
    

  • version
    
    

  • version
    
    

kirkwoodはLinux Kernel 5.13までrestart_handlerを使えない

OpenWrtにおける “kirkwood” targetのデバイスにおいて、Linux Kernelは再起動 (reboot) を以下の通り実行する。
表題の件に関係しない呼び出しは省く。また以下でのリンクは5.10のものを使用する

  1. kernel/reboot.ckernel_restart を呼び出し(ここ
  2. arch/arm/kernel/reboot.cmachine_restart を呼び出し(ここ
  3. 上から呼ばれた machine_restart において、ARM特有の arm_pm_restart が登録されて(nullでない)いれば arm_pm_restart を呼び出し、未登録なら kernel/reboot.cdo_kernel_restart を呼び出し(ここ

ここで問題となるのが上記最後のステップにおける arm_pm_restart であり、これはブート時に arch/arm/kernel/setup.csetup_arch 内において、 mdesc->restart が登録されて(nullでない)いる場合それを arm_pm_restart に登録する(ここ)。
mdescarch/arm/ 内に存在する各プラットフォーム(mach-*)毎またはその中での系統毎に定義されるものをDeviceTreeと一致を取るなどして取り出したものであり(ここ)、OpenWrtにおける “kirkwood” target用のものは ここ で定義されている。
kirkwoodのデバイスではその中の .restart が登録されている為にそれが arm_pm_restart にも適用されてしまい、別途登録した restart_handler が使用できなくなってしまう。

なお、本来であればkirkwoodデバイスにおいてはこのrestartで足りるはずであるものの、I-O DATA HDL-AやHDL2-Aにおいてはreset周りをR8C/25マイコンが担当しており、それに対してコマンドを送らなければ正しく再起動を行えず、停止してしまう。

ちなみに、Linux Kernel 5.14以降では上記の arm_pm_restart が削除され、各プラットフォームまたは系統毎に定義されるrestartは restart_handler の一つとして登録するよう変更されている。この為、もし別途 restart_handler を使用したい場合、ARM側のハンドラよりも高い優先度(数字を大きくする)でハンドラを登録すれば、そちらが先に使用される。

HDL-A2.0

突然NASに興味を持った結果、まともに調べずHDL2-A2.0を確保し、HDD無しであった故に得られる情報が少なくドライバを書くにしても不足する部分があること、どうせなら共通化したサポートにしたいということもあり、シングルドライブモデルのこの機種も確保した(してしまった)。
弄っていくのでメモ。

ディスク

  • fdisk -l /dev/sdb -o +Name
    OpenWrtで得たもの

    root@OpenWrt:/# fdisk -l /dev/sdb -o +Name
    Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
    Disk model: ST2000DM001-9YN1
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: FA1AD617-84AC-4E0A-80D8-0797EDC9D88C
    
    Device       Start        End    Sectors  Size Type                 Name
    /dev/sdb1       40    1048623    1048584  512M Microsoft basic data primary
    /dev/sdb2  1048624    3145783    2097160    1G Microsoft basic data primary
    /dev/sdb3  3145784    7340095    4194312    2G Linux swap           primary
    /dev/sdb4  7340096    7602247     262152  128M Microsoft basic data primary
    /dev/sdb5  7602248    8650831    1048584  512M Microsoft basic data primary
    /dev/sdb6  8652800 3907028991 3898376192  1.8T Microsoft basic data
    

U-Boot

Kernel

  • bootlog
    
    ============================================================
      HDL2-A series Initial boot loader
    
      Copyright (C) 2008-2011 I-O DATA DEVICE, INC.
    ============================================================
     ** LOADER **
     ** MARVELL BOARD: HDL2A LE 
    
    U-Boot 1.1.4 (Aug 22 2013 - 10:19:57) MV : 3.5.9 I-O : 1.08
    
    U-Boot code: 00600000 -> 0066FFF0  BSS: -> 006BDAE0
    
    Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
    SysClock = 533Mhz , TClock = 200Mhz 
    
    DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
    DRAM CS[0] base 0x00000000   size 256MB 
    DRAM Total size 256MB  16bit width
    Addresses 8M - 0M are saved for the U-Boot usage.
    Mem malloc Initialization (8M - 7M): Done
    [512kB@f8000000] Flash: 512 kB
    
    CPU : Marvell Feroceon (Rev 1)
    
    Streaming disabled 
    Write allocate disabled
    
    
    USB 0: host mode
    PEX 0: interface detected no Link.
    PEX 1: interface detected no Link.
    Net:   egiga0 [PRIME]
    
    ============================================================
      HDL2-A series Initial boot loader
    
      Copyright (C) 2008-2011 I-O DATA DEVICE, INC.
    ============================================================
     ** LOADER **
     ** MARVELL BOARD: HDL2A LE 
    
    U-Boot 1.1.4 (Aug 22 2013 - 10:19:57) MV : 3.5.9 I-O : 1.08
    
    U-Boot code: 00600000 -> 0066FFF0  BSS: -> 006BDAE0
    
    Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
    SysClock = 533Mhz , TClock = 200Mhz 
    
    DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
    DRAM CS[0] base 0x00000000   size 256MB 
    DRAM Total size 256MB  16bit width
    Addresses 8M - 0M are saved for the U-Boot usage.
    Mem malloc Initialization (8M - 7M): Done
    [512kB@f8000000] Flash: 512 kB
    
    CPU : Marvell Feroceon (Rev 1)
    
    Streaming disabled 
    Write allocate disabled
    
    
    USB 0: host mode
    PEX 0: interface detected no Link.
    PEX 1: interface detected no Link.
    Net:   egiga0 [PRIME]
    
    Reset IDE: 
    Marvell Serial ATA Adapter
    Integrated Sata device found
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
     0 0 15: Status=0x80
    [0 0 0]: Enable DMA mode (6)
      Device 0 @ 0 0:
                Model: ST2000DM001-9YN164                      
                Firm: CC82    
                Ser#:             Z3402ALK
                Type: Hard Disk
                Supports 48-bit addressing
                Capacity: 1907729.0 MB = 1863.0 GB (0x00000000E8E088B0 x 512)
    
    
    3020072 bytes read
    
    5435264 bytes read
    ## Starting secure boot ...
    ## Starting application at 0x00100000 ...
    ## Application terminated, rc = 0x0
    ................
    ## Booting image at 00800000 ...
       Image Name:   Linux-2.6.31.8
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3020008 Bytes =  2.9 MB
       Load Address: 00008000
       Entry Point:  00008000
       Verifying Checksum ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux......................................................................................................................................................................................... done, booting the kernel.
    Linux version 2.6.31.8 (kodaka@devsrv2) (gcc version 4.2.4 (Debian 4.2.4-3)) #1 Mon Mar 11 15:24:22 JST 2013
    CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
    CPU: VIVT data cache, VIVT instruction cache
    Machine: Feroceon-KW
    Using UBoot passing parameters structure
    Memory policy: ECC disabled, Data cache writeback
    Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 65024
    Kernel command line: console=ttyS0,115200 mtdparts=spi_flash:448k(u-boot),64k@448k(env) root=/dev/sda2 initrd=0x2000040,16M rw model=HDL-A
    PID hash table entries: 1024 (order: 10, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 256MB = 256MB total
    Memory: 231100KB available (5484K code, 274K data, 136K init, 0K highmem)
    Hierarchical RCU implementation.
    NR_IRQS:128
    Console: colour dummy device 80x30
    Calibrating delay loop... 1599.07 BogoMIPS (lpj=7995392)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    xor: measuring software checksum speed
       arm4regs  :  1453.200 MB/sec
       8regs     :  1102.000 MB/sec
       32regs    :  1236.800 MB/sec
    xor: using function: arm4regs (1453.200 MB/sec)
    NET: Registered protocol family 16
    Feroceon L2: Enabling L2
    Feroceon L2: Cache support initialised.
    
    CPU Interface
    -------------
    SDRAM_CS0 ....base 00000000, size 256MB 
    SDRAM_CS1 ....disable
    SDRAM_CS2 ....disable
    SDRAM_CS3 ....disable
    PEX0_MEM ....base e0000000, size 128MB 
    PEX0_IO ....base f2000000, size   1MB 
    PEX1_MEM ....base e8000000, size 128MB 
    PEX1_IO ....base f2100000, size   1MB 
    INTER_REGS ....base f1000000, size   1MB 
    NFLASH_CS ....base fa000000, size   2MB 
    SPI_CS ....base f4000000, size  16MB 
    BOOT_ROM_CS ....no such
    DEV_BOOTCS ....no such
    CRYPT_ENG ....base f0000000, size   2MB 
    
      Marvell Development Board (LSP Version KW_LSP_5.1.3_patch34)-- I-O DATA HDL2-A  Soc: MV88F6282 Rev 1 LE
    
     Detected Tclk 200000000 and SysClk 533333333 
    mv_init: modified I2C divisor.
    MV Buttons Device Load
    Marvell USB EHCI Host controller #0: c8039680
    PEX0 interface detected no Link.
    PEX1 interface detected no Link.
    PCI: bus0: Fast back to back transfers enabled
    PCI: bus1: Fast back to back transfers enabled
    R8 power off hook registered.
    bio: create slab  at 0
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    raid6: int32x1    146 MB/s
    raid6: int32x2    181 MB/s
    raid6: int32x4    171 MB/s
    raid6: int32x8    152 MB/s
    raid6: using algorithm int32x2 (181 MB/s)
    Slow work thread pool: Starting up
    Slow work thread pool: Ready
    FS-Cache: Loaded
    NET: Registered protocol family 2
    IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    TCP reno registered
    NET: Registered protocol family 1
    Trying to unpack rootfs image as initramfs...
    rootfs image is not initramfs (no cpio magic); looks like an initrd
    Freeing initrd memory: 16384K
    iodata_boardmodel_init: 223
    XOR registered 4 channels
    XOR 2nd invalidate WA enabled
    mvCesaInit: sessions=640, queue=64, pSram=f0000000
    MV Buttons Driver Load
    NetWinder Floating Point Emulator V0.97 (double precision)
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    FS-Cache: Netfs 'nfs' registered for caching
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    NTFS driver 2.1.29 [Flags: R/O].
    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    fuse init (API version 7.12)
    SGI XFS with security attributes, large block/inode numbers, no debug enabled
    SGI XFS Quota Management subsystem
    msgmni has been set to 484
    alg: No test for cipher_null (cipher_null-generic)
    alg: No test for ecb(cipher_null) (ecb-cipher_null)
    alg: No test for digest_null (digest_null-generic)
    alg: No test for compress_null (compress_null-generic)
    alg: No test for fcrypt (fcrypt-generic)
    alg: No test for stdrng (krng)
    alg: No test for hmac(digest_null) (hmac(digest_null-generic))
    async_tx: api initialized (sync-only)
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
    io scheduler noop registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
    console [ttyS0] enabled
    serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
    brd: module loaded
    loop: module loaded
    Integrated Sata device found
    IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
    scsi0 : Marvell SCSI to SATA adapter
    scsi1 : Marvell SCSI to SATA adapter
    scsi 0:0:0:0: Direct-Access     Seagate  ST2000DM001-9YN1 CC82 PQ: 0 ANSI: 5
    sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
    sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
    sd 0:0:0:0: [sda] 0-byte physical blocks
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    phy: page = 0
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 1140 7949 0141 0e90 01e1 0000 0004 2001
    0008: 0000 0300 0000 0000 0000 0000 0000 3000
    0010: 3860 8040 0000 0040 0020 0000 0000 0000
    0018: 0000 0000 0040 0000 0000 0000 0000 0000
    phy: page = 1
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0001 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 2
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0748 0000 0000 0000 0000 1070 0002 0000
    0018: 5001 0022 0000 0000 0000 0000 0000 0000
    phy: page = 3
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0177 4415 4905 0073 0000 0000 0003 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 4
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0004 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 5
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 2400 0006 0053 208a 0000 2000 0005 0603
    0018: 0000 0104 0f12 0a0c 0c06 0000 0000 0000
    phy: page = 6
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0200 0000 0006 0000
    0018: 0000 0000 1908 0000 0000 0000 0000 0000
    phy: page = 7
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0007 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 8
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 1000 020c 0000 0080 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0008 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 9
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0009 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 10
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 000a 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 11
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 000b 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 12
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 1f40 0000 0000 0000 f000 f186 1388
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 000c 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 13
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 000d 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 14
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 88f7 0000 0000 0001 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 000e 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 15
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 000f 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 16
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0000 0000 0000 0000 0000 0000 0010 0000
    0018: 0000 0000 0000 0000 0000 0000 0000 0000
    phy: page = 17
    addr    +0   +1   +2   +3   +4   +5   +6   +7
    0000: 0000 0000 0000 0000 0000 0000 0000 0000
    0008: 0000 0000 0000 0000 0000 0000 0000 0000
    0010: 0500 0000 3fff 3fff 3fff 007f 0011 0000
    0018: 0000 0000 0000 0000 0000 0014 0000 0000
    Loading Marvell Ethernet Driver:
      o Cached descriptors in DRAM
      o DRAM SW cache-coherency
      o 1 Giga ports supported
      o Single RX Queue support - ETH_DEF_RXQ=0
      o Single TX Queue support - ETH_DEF_TXQ=0
      o TCP segmentation offload (TSO) supported
      o Large Receive offload (LRO) supported
      o Receive checksum offload supported
      o Transmit checksum offload supported
      o Driver ERROR statistics enabled
      o Proc tool API enabled
      o SKB Reuse supported - (Disabled)
      o SKB Recycle supported - (Disabled)
      o Rx descripors: q0=128
      o Tx descripors: q0=532
      o Loading network interface(s):
         o register under mv88fx_eth platform
    sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
         o eth0, ifindex = 2, GbE port = 0
    
    ipddp.c:v0.01 8/28/97 Bradford W. Johnson 
    ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson 
    SPI Serial flash detected @ 0xf4000000, 512KB (8sec x 64KB)
    2 cmdlinepart partitions found on MTD device spi_flash
    Creating 2 MTD partitions on "spi_flash":
    0x000000000000-0x000000070000 : "u-boot"
    
    Notice: Serial SPI flash (spi_flash) unlock per sector is not supported!
            Unlocking the whole device.
     sda:
    0x000000070000-0x000000080000 : "env"
    
    Notice: Serial SPI flash (spi_flash) unlock per sector is not supported!
            Unlocking the whole device.
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
    ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
    ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
     sda1 sda2 sda3 sda4 sda5 sda6
    sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
    sd 0:0:0:0: [sda] Attached SCSI disk
    ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    usbcore: registered new interface driver libusual
    mice: PS/2 mouse device common for all mice
    i2c /dev entries driver
    I2C: RS5C372A RTC driver successfully loaded
    md: linear personality registered for level -1
    md: raid0 personality registered for level 0
    md: raid1 personality registered for level 1
    md: raid6 personality registered for level 6
    md: raid5 personality registered for level 5
    md: raid4 personality registered for level 4
    md: faulty personality registered for level -5
    device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
    dm_crypt using the OCF package.
    cpuidle: using governor ladder
    cpuidle: using governor menu
    TCP cubic registered
    NET: Registered protocol family 17
    NET: Registered protocol family 5
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    md: Waiting for all devices to be available before autodetect
    md: If you don't use raid, use raid=noautodetect
    md: Autodetecting RAID arrays.
    md: Scanned 0 and added 0 devices.
    md: autorun ...
    md: ... autorun DONE.
    RAMDISK: gzip image found at block 0
    usb 1-1: new high speed USB device using ehci_marvell and address 2
    usb 1-1: configuration #1 chosen from 1 choice
    hub 1-1:1.0: USB hub found
    hub 1-1:1.0: 2 ports detected
    VFS: Mounted root (ext2 filesystem) on device 1:0.
    
    === START /initrd/linuxrc ===
    
    === VERSION: Mon Apr 26 11:05:02 JST 2021 ===
    
    === SET SYSTEM CLOCK ===
    
    === READ SUB ROUTINES ===
    
    === MOUNT /proc, /sys ===
    
    === LOAD R8contd ===
    mount: mounting /dev/root.old on / failed
    overrun: 0
    R8contd [model:HDL-A-0] [ver1.07]
    
    === INITIALIZE STATUS LED ===
    
    === CHECK SYSTEM PARTITIONS ===
    SOC_ARCH:88FR131
    DISK1:sda
    DISK2:
    USB1:
    USB2:
    --- set latest clock ---
    tune2fs: Bad magic number in super-block while trying to open /dev/sda2
    Couldn't find valid filesystem superblock.
    ===== Last write sda2 : =====
    tune2fs: Bad magic number in super-block while trying to open /dev/sda5
    Couldn't find valid filesystem superblock.
    ===== Last write sda5 : =====
    --- check DISK ---
    SOC_ARCH:88FR131
    DISK1:sda
    DISK2:
    USB1:
    USB2:
    VOL1:sda1
    VOL2:sda2
    VOL5:sda5
    VOL6:sda6
    ROOT_DEVICE:2050
    
    === CRYPT SYSTEM PARTITIONS ===
    
    ### FIXME!!: linuxrc: norootfskey for develop kernel ###
    ## Error: "fakerootfskey" not defined
    bio: create slab  at 1
    
    === MKHDDMODE=0 ===
    
    === PROBE DEVICES ===
    SOC_ARCH:88FR131
    DISK1:sda
    DISK2:
    USB1:
    USB2:
    VOL1:sda1
    VOL2:mapper/sda2
    VOL5:mapper/sda5
    VOL6:sda6
    ROOT_DEVICE:64768
    
    === CURRENT ROOT DEVICE:2050 ===
    
    === SET ROOT DEVICE:64768 ===
    
    === CURRENT ROOT DEVICE:64768 ===
    
    === SOC_ARCH=88FR131, ROOT_DEV=/dev/mapper/sda2 ===
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    
    === CHECK INSTALL MEDIA ===
    SOC_ARCH:88FR131
    DISK1:sda
    DISK2:
    USB1:
    USB2:
    VOL1:sda1
    VOL2:mapper/sda2
    VOL5:mapper/sda5
    VOL6:sda6
    ROOT_DEVICE:64768
    
    === cheking usb memory including installer. ===
    
    === not found. ===
    umount: cannot umount /mnt/usb1/l2a: No such file or directory
    umount: cannot umount /mnt/usb1: Invalid argument
    umount: cannot umount /mnt/usb1: Invalid argument
    
    *** ERROR: umount failed. ignore. ***
    mount: mounting /dev/scd0 on /mnt/usb1 failed
    umount: cannot umount /mnt/usb1/l2a: No such file or directory
    umount: cannot umount /mnt/usb1: Invalid argument
    umount: cannot umount /mnt/usb1: Invalid argument
    
    *** ERROR: umount failed. ignore. ***
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs: mounted filesystem with writeback data mode.
    umount: cannot umount /mnt/usb1/.landisk: Invalid argument
    
    === CHECKING VERIFY MODE ===
    
    === mounting volume 1 to check mode ===
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs: mounted filesystem with writeback data mode.
    
    === not verify mode ===
    
    === unmounting volume 1 ===
    
    ### FIXME!!: linuxrc: __unload_modules ###
    usb_storage 36556 0 - Live 0xbf000000
    usbcore: deregistering interface driver usb-storage
    Close R8contd. (15)
    mount: mounting /dev/root.old on / failed
    
    
    === END /initrd/linuxrc ===
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
    EXT3 FS on dm-0, internal journal
    EXT3-fs: mounted filesystem with writeback data mode.
    VFS: Mounted root (ext3 filesystem) on device 253:0.
    Trying to move old root to /initrd ... okay
    Freeing init memory: 136K
    INIT: version 2.86 booting
    Setting parameters of disc: (none).
    Activating swap...Adding 2097148k swap on /dev/sda3.  Priority:-1 extents:1 across:2097148k 
    done.
    Checking root file system...fsck 1.40-WIP (14-Nov-2006)
    e2fsck 1.40-WIP (14-Nov-2006)
    /lib/init/rw/rootdev has been mounted 28 times without being checked, check forced.
    Pass 1: Checking inodes, blocks, and sizes
    Pass 2: Checking directory structure                                           
    Pass 3: Checking directory connectivity                                        
    Pass 4: Checking reference counts                                              
    Pass 5: Checking group summary information
    /lib/init/rw/rootdev: 16330/131072 files (0.2% non-contiguous), 1EXT3 FS on dm-0, 06226/262144 blointernal journal
    cks
    done.
    Setting the system clock..
    Cleaning up ifupdown....
    Loading kernel modules...done.
    Loading device-mapper support.
    Checking file systems...fsck 1.40-WIP (14-Nov-2006)
    done.
    Setting kernel variables...done.
    Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
    EXT3-fs: mounted filesystem with writeback data mode.
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on dm-1, internal journal
    EXT3-fs: mounted filesystem with writeback data mode.
    Using fallback suid method
    done.
    Activating swapfile swap...done.
    console=ttyS0,115200 mtdparts=spi_flash:448k(u-boot),64k@448k(env) root=/dev/sda2 initrd=0x2000040,16M rw model=HDL-A
    Starting R8 control daemon: R8contdoverrun: 0
    R8contd [model:HDL-A-0] [ver1.07]
    .
    Setting up networking....
    Starting hotplug subsystem:
       pci     
    cat: /sys/bus/pci/devices/*/class: No such file or directory
    cat: /sys/bus/pci/devices/*/vendor: No such file or directory
    cat: /sys/bus/pci/devices/*/device: No such file or directory
    cat: /sys/bus/pci/devices/*/subsystem_vendor: No such file or directory
    cat: /sys/bus/pci/devices/*/subsystem_device: No such file or directory
    Bad PCI agent invocation
       pci      [success]
       usb     
       usb      [success]
       isapnp  
       isapnp   [success]
       ide     
       ide      [success]
       input   
       input    [success]
       scsi    
         sd_mod: can't be loaded (for disk)
       scsi     [success]
    done.
    Configuring network interfaces...eth0: started
    mv_eth_phy_init_hdl2_a: wol status = 0000
    Using fallback suid method
    info, udhcpc (v0.9.9-pre+autoip) started
    + RESOLV_ORG=/etc/resolv.conf
    + RESOLV_CONF=/var/tmp/resolv.conf
    + HOSTS_ORG=/etc/hosts
    + HOSTS_TMP=/var/tmp/hosts
    + DHCPINFOFILE=/var/run/udhcpc-eth0.info
    + CACHE_ORG=/etc/udhcpc.cache
    + CACHE_FILE=/var/tmp/udhcpc.cache
    + '[' -z deconfig ']'
    + '[' -n '' ']'
    + '[' -n '' ']'
    + case "$1" in
    + /sbin/ifconfig eth0 0.0.0.0
    + exit 0
    debug, Sending discover...
    debug, Sending discover...
    info, No lease, try autoip. discover garbage count was 0
    + RESOLV_ORG=/etc/resolv.conf
    + RESOLV_CONF=/var/tmp/resolv.conf
    + HOSTS_ORG=/etc/hosts
    + HOSTS_TMP=/var/tmp/hosts
    + DHCPINFOFILE=/var/run/udhcpc-eth0.info
    + CACHE_ORG=/etc/udhcpc.cache
    + CACHE_FILE=/var/tmp/udhcpc.cache
    + '[' -z deconfig ']'
    + '[' -n '' ']'
    + '[' -n '' ']'
    + case "$1" in
    + /sbin/ifconfig eth0 0.0.0.0
    + exit 0
    + RESOLV_ORG=/etc/resolv.conf
    + RESOLV_CONF=/var/tmp/resolv.conf
    + HOSTS_ORG=/etc/hosts
    + HOSTS_TMP=/var/tmp/hosts
    + DHCPINFOFILE=/var/run/udhcpc-eth0.info
    + CACHE_ORG=/etc/udhcpc.cache
    + CACHE_FILE=/var/tmp/udhcpc.cache
    + '[' -z renew ']'
    + '[' -n 169.254.255.255 ']'
    + BROADCAST='broadcast 169.254.255.255'
    + '[' -n 255.255.0.0 ']'
    + NETMASK='netmask 255.255.0.0'
    + case "$1" in
    + /sbin/ifconfig eth0 169.254.148.111 broadcast 169.254.255.255 netmask 255.255.0.0
    + '[' -n '' ']'
    + root_is_rw=0
    + '[' -f /var/lock/lanicn/.boot-done ']'
    + root_is_rw=1
    + '[' -f /var/tmp/resolv.conf ']'
    + touch /var/tmp/resolv.conf.1
    + echo -n
    + '[' -n '' ']'
    + write_hdd=0
    + cmp -s /var/tmp/resolv.conf /var/tmp/resolv.conf.1
    + '[' 0 -ne 0 ']'
    + '[' -f /var/tmp/hosts ']'
    + touch /var/tmp/hosts.1
    ++ hostname
    + HOSTNAME=LANDISK-F2262E
    + HOSTNAME=LANDISK-F2262E
    + '[' -n '' ']'
    + hostname LANDISK-F2262E
    + cat
    + cmp -s /var/tmp/hosts /var/tmp/hosts.1
    + '[' 1 -ne 0 ']'
    + write_hdd=1
    + rm -rf /var/run/udhcpc-eth0.info
    + echo IPADDR=169.254.148.111
    + echo NETMASK=255.255.0.0
    + echo BROADCAST=169.254.255.255
    + echo GATEWAY=
    + echo DOMAIN=
    + echo DNS=
    + echo DHCPSIADDR=
    + echo LEASETIME=
    + '[' 169.254.255.255 = 169.254.255.255 ']'
    + '[' -f /var/lock/lanicn/.boot-done ']'
    + mount -o remount,rw /
    + cp -pf /var/tmp/resolv.conf /etc/resolv.conf
    + cp -pf /var/tmp/hosts /etc/hosts
    + '[' -f /var/tmp/udhcpc.cache ']'
    + rm -f /mnt/hda5/info/IPAddress:192.168.1.190.mpg
    + ln -s /usr/local/share/dms/sample.mpg /mnt/hda5/info/IPAddress:169.254.148.111.mpg
    + sync
    + /usr/bin/php /usr/local/bin/port_update.php
    done.
    + '[' 1 -eq 0 ']'
    + mount -o remount,rw /
    EXT3 FS on dm-0, internal journal
    + regist_slpd
    + '[' '!' -f /var/run/slpd.pid ']'
    + echo 'regist_slpd: slpd not running'
    regist_slpd: slpd not running
    + return
    + exit 0
    INIT: Entering runlevel: 2
    Starting system message bus: dbus.
    Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonwarning: `avahi-daemon' uses 32-bit capabilities (legacy support in use)
    .
    Starting OpenSLP server: slpd.
    Starting network management services: snmpd.
    starting syslogd ...Using fallback suid method
    done.
    Starting periodic command scheduler: crond.
    Starting web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 169.254.148.111 for ServerName
    debug, Sending discover...
    .
    
    Starting HDLFind: 
    HDLFind for HDL-GS
    Starting HDLFind_port65: 
    HDLFind_port65 for HDL-GS
    Checking version: release
    smartctl-bin
    smartctl-bin
    smartctl-bin
    smartctl-bin
    smartctl-bin
    smartctl-bin
    check hda6 superblock...
    mdadm: No md superblock detected on /dev/sda6.
    check hdb6 superblock...
    mdadm: cannot open /dev/sdb6: No such device or address
    EXT3 FS on dm-0, internal journal
    XFS mounting filesystem sda6
    Restarting network management services:debug, Sending discover...
     snmpd.
    *** RAID Initialization : share service start
    usbmodule startdev HDL-A
    usbcore: registered new interface driver hiddev
    usbcore: registered new interface driver usbhid
    usbhid: v2.6:USB HID core driver
    usbcore: registered new interface driver usblp
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    Error : Temporary failure in name resolution
    27 Feb 13:36:31 ntpdate[1739]: can't find host ntp.nict.jp
    
    27 Feb 13:36:31 ntpdate[1739]: no servers can be used, exiting
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    info, No lease, go back to autoip. discover garbage count was 0
    ssl server key no need to update.
    *** RAID Initialization : share service start
    apache2: Could not reliably determine the server's fully qualified domain name, using 169.254.148.111 for ServerName
    iface eth0 inet dhcp
    /dev/sda6 on /mnt/sataraid1 type xfs (rw,relatime,attr2,noquota)
    nasdsync:clear_notify
    nasdsync:clear_notify
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    debug, Sending discover...
    info, No lease, go back to autoip. discover garbage count was 0
    EXT3 FS on dm-0, internal journal
    Usage:
      kill pid ...              Send SIGTERM to every process listed.
      kill signal pid ...       Send a signal to every process listed.
      kill -s signal pid ...    Send a signal to every process listed.
      kill -l                   List all signal names.
      kill -L                   List all signal names in a nice table.
      kill -l signal            Convert between signal numbers and names.
    
    
  • df
    ファームウェア更新試行時に現れるもの

    /usr/local/bin/getfwver.sh:df min
    Filesystem           1K-blocks      Used Available Use% Mounted on
    rootfs                 1032088    408420    613184  40% /
    /dev/root              1032088    408420    613184  40% /
    tmpfs                   123972       688    123284   1% /mnt/tmpfs
    tmpfs                   123972         0    123972   0% /lib/init/rw
    tmpfs                   123972         0    123972   0% /dev/shm
    tmpfs                   123972         0    123972   0% /dev/mapper
    /dev/sda1               516040    345380    144448  71% /boot
    /dev/mapper/sda5        511720    107312    378196  23% /mnt/hda5
    /dev/sda6            1949057024      4980 1949052044   1% /mnt/sataraid1
    /usr/local/bin/getfwver.sh:df max
    Filesystem           1K-blocks      Used Available Use% Mounted on
    rootfs                 1032088    408420    613184  40% /
    /dev/root              1032088    408420    613184  40% /
    tmpfs                   123972       720    123252   1% /mnt/tmpfs
    tmpfs                   123972         0    123972   0% /lib/init/rw
    tmpfs                   123972         0    123972   0% /dev/shm
    tmpfs                   123972         0    123972   0% /dev/mapper
    /dev/sda1               516040    345380    144448  71% /boot
    /dev/mapper/sda5        511720    181944    303564  38% /mnt/hda5
    /dev/sda6            1949057024      4980 1949052044   1% /mnt/sataraid1
    

HDL2-A R8C/25メモ

HDL2-Aに搭載されているRenesas R8C/25マイコンの制御メモ
現状HDL-XRから引用している為多少の差異が存在する可能性有

HDL2-A公式ファームウェア上では、Linux Kernelにpoweroffとresetのハンドラの登録のみドライバで行い、それ以外のLEDやブザー、ボタン類等はユーザースペースのコマンドにより制御していると思われる。

root@OpenWrt:/# stty -F /dev/ttyS1
speed 9600 baud; line = 0;
-brkint -imaxbel
root@OpenWrt:/# stty -F /dev/ttyS1 57600       # HDL2-A上のR8C/25マイコンはbaudrate 57600bpsで通信する必要有
root@OpenWrt:/# echo ":sts on" > /dev/ttyS1    # STATUS LED点灯(点滅停止)
root@OpenWrt:/# echo ":mml a" > /dev/ttyS1     # ブザー単音
root@OpenWrt:/# echo ":hdd 0 5" > /dev/ttyS1   # HDD1 赤点灯

STATUS LED

橙点灯, 赤点滅は現状引数が不明

mode(内部名称) stock(取扱説明書における名称) 備考
on 緑点灯 点滅等せず同じ輝度で点灯
blink 緑点滅 輝度の減少または増加無く完全に0/1で点滅
notify 緑点滅(ゆっくり) 輝度を多段階で調整されての点滅
err 赤点灯 点滅等せず同じ輝度で点灯

HDD LED

HDD毎のLED

設定値 stock(取扱説明書における名称) 備考
5 赤点灯 HDD未接続
1 / 2 / 3 / 4 赤点滅 HDD障害
(数字によって点滅スピードは変わらず)
0 消灯 HDD正常動作

ボタン

  • HDL2-Aが搭載するボタンのいずれかを押すと、対応するアルファベットがUARTで送信されてくる
    • down時に @<大文字>、up時に @<小文字> が送信される
      (例 (RESET): down: @R, up: @r
  • :btn で現在のボタンの状態が取得できる
    (例: ;crPwxyz(POWERボタンが押されている))
コンソール1

root@OpenWrt:~# echo ":btn" > /dev/ttyS1
root@OpenWrt:~# echo ":btn" > /dev/ttyS1

コンソール2

root@OpenWrt:/# cat /dev/ttyS1
@P    <-- POWER down
@p    <-- POWER up
@P
@p
@P
@p
@R    <-- RESET down
@r    <-- RESET up
@R
@r
@R
@r
;crpwxyz    <-- コンソール1 ":btn" 1回目
@P    <-- POWER down
@P    <-- 一定時間押下し続けた場合もう一度送信される
;crPwxyz    <-- コンソール1 ":btn" 2回目
@p    <-- POWER up

ブザー

  • 音程として指定できるアルファベットは a, b, c, d, e, f, g の7個
    • 個々に対応する音程は固定されず < で音程を一つ(?)上げ、 > で音程を一つ(?)下げる
  • t, q, l, o, vPWMか何かのパラメータと思われる
    • パラメータ設定後にパラメータ無しで音程単体の場合は最後に設定したパラメータが反映される
  • |; ;| で囲うと繰り返し
    • 囲われた中の最初の数字が繰り返し回数と思われる(0の場合は無限)
  • Twitterにて指摘を頂いた。どうもMMLの記法である模様。
設定値 stock(取扱説明書における名称) 備考
t150o6q7v8l16b>b ピポ ブート開始時
t120v8q7o7|;0b32.r32;| ピピピ(繰り返し) ブート不可時
|;0v1q8o6c4r8;| ピー(繰り返し) ファン故障/温度異常時
t120q8l4o6v8|;0bg;| HDL2-Aの取扱説明書には無し
ピーポー音(繰り返し)
r2c8r8c8r8g8r8g8r8a8r8a8r8g8
r4r8f8r8f8r8e8r8e8r8d8r8d8r8c8
HDL2-Aの説明書には無し
きらきら星(一部)

ファン

  • fancont コマンドにより制御
  • fancont を引数無しで実行時に返る値2桁のうち、1桁目は 0-> 自動, 1 -> 手動、2桁目は以下の表で1-3に対応
設定値 モード
0 自動制御
(R8C/25マイコンが計測した温度と設定されている閾値を基にHigh/Lowを決定, 初期値)
1 手動制御, Low
2 手動制御, High
3 手動制御, Stop

温度閾値

  • thset コマンドにより制御
  • 設定値のインデックスの大小関係は idx1 < idx0、idx2は0または1との大小関係なく設定できる模様
  • :thset <index> <temperature>(例: :thset 1 40
  • 閾値設定は再起動するとリセットされる
thget 時の
インデックス
初期値 概要
0 2d
(45℃)
(不明)
R8Cマイコンを搭載する機種によってはファン速度がHigh/Middle/Lowとなっており、インデックス0は3段階対応機種においてMiddle -> High遷移閾値と思われる。HDL-A/HDL2-Aにおいては2段階のみである為未使用と思われる。
1 28
(40℃)
ファン自動制御時Low -> High遷移閾値
(同値でHighへ遷移)
2 3c
(60℃)
温度異常閾値?
一定時間(不明)経過後にR8C/25マイコンにより自動シャットダウン

HDL2-A OpenWrtブートログメモ

現時点でのOpenWrtのブートログ

  • ファン制御
  • LED制御
  • スイッチ類
  • ビープスピーカー

は現状GPIO等不明の為未対応。フロントのSTATUS LEDは緑で点滅し続ける。
SATAやUSBに接続されたデバイスの取り扱いやそこからのブート、ネットワーク周りは動作。
SSDを使用したこととOpenWrtである故に軽量であることから、メーカーファームウェアよりも恐らくブート完了は早い。PCで廃した低用量SSDの活用手段として良いかもしれない。


============================================================
  HDL2-A series Initial boot loader

  Copyright (C) 2008-2011 I-O DATA DEVICE, INC.
============================================================
 ** LOADER **
 ** MARVELL BOARD: HDL2A LE 

U-Boot 1.1.4 (Aug 27 2011 - 16:33:44) MV : 3.5.9 I-O : 1.03

U-Boot code: 00600000 -> 0066FFF0  BSS: -> 006BDAE0

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[512kB@f8000000] Flash: 512 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
            Model: KLEVV SSD NEO N500 120GB                
            Firm: R1001C0 
            Ser#: E201904120051356    
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 114473.4 MB = 111.7 GB (0x000000000DF94BB0 x 512)


2746315 bytes read

65536 bytes read
## Starting secure boot ...
## Starting application at 0x00100000 ...
## Application terminated, rc = 0x0
................
## Booting image at 00800000 ...
   Image Name:   ARM OpenWrt Linux-5.10.100
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2746251 Bytes =  2.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.100 (musashino205@TAIHA.NET) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r18802-83c6e7a3a6) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Mon Feb 14 11:07:21 2022
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: I-O DATA HDL2-A (2.0/4.0/6.0)
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=spi_flash:448k(u-boot),64k@448k(env) root=/dev/md2 initrd=0x2000040,16M rw model=HDL2-A console=ttyS0,115200 root=PARTLABEL=rootfs fstools_use_partlabel=1
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 233136K/262144K available (5756K kernel code, 591K rwdata, 1492K rodata, 1024K init, 204K bss, 29008K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x330/0x560 with crng_init=0
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000032] Switching to timer-based delay loop, resolution 5ns
[    0.000090] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000110] pid_max: default: 32768 minimum: 301
[    0.000249] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000268] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000969] CPU: Testing write buffer coherency: ok
[    0.001666] Setting up static identity map for 0x100000 - 0x10003c
[    0.001848] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.001993] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.004351] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004377] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.004474] pinctrl core: initialized pinctrl subsystem
[    0.005232] NET: Registered protocol family 16
[    0.005597] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.006380] thermal_sys: Registered thermal governor 'step_wise'
[    0.006444] cpuidle: using governor ladder
[    0.006739] Feroceon L2: Enabling L2
[    0.006776] Feroceon L2: Cache support initialised.
[    0.012503] No ATAGs?
[    0.045377] SCSI subsystem initialized
[    0.046469] usbcore: registered new interface driver usbfs
[    0.046512] usbcore: registered new interface driver hub
[    0.046555] usbcore: registered new device driver usb
[    0.050768] clocksource: Switched to clocksource orion_clocksource
[    0.051443] NET: Registered protocol family 2
[    0.051550] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.052001] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.052039] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.052071] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.052100] TCP: Hash tables configured (established 2048 bind 2048)
[    0.052166] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.052189] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.052299] NET: Registered protocol family 1
[    0.052324] PCI: CLS 0 bytes, default 32
[    0.052848] Unpacking initramfs...
[    0.052866] Initramfs unpacking failed: invalid magic at start of compressed archive
[    0.099658] Freeing initrd memory: 16388K
[    0.103235] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.106154] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.106169] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.107948] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.109067] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.109504] printk: console [ttyS0] disabled
[    0.109575] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    0.557719] printk: console [ttyS0] enabled
[    0.562850] sata_mv f1080000.sata: slots 32 ports 2
[    0.572499] scsi host0: sata_mv
[    0.576568] scsi host1: sata_mv
[    0.579851] ata1: SATA max UDMA/133 irq 33
[    0.583995] ata2: SATA max UDMA/133 irq 33
[    0.591794] spi-nor spi0.0: w25x40 (512 Kbytes)
[    0.596373] 2 fixed-partitions partitions found on MTD device spi0.0
[    0.602783] Creating 2 MTD partitions on "spi0.0":
[    0.607597] 0x000000000000-0x000000070000 : "u-boot"
[    0.613678] 0x000000070000-0x000000080000 : "u-boot-env"
[    0.627639] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.637419] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:a0:b0:ca:71:c7
[    0.646367] i2c /dev entries driver
[    0.650969] orion_wdt: Initial timeout 21 sec
[    0.661488] marvell-cesa f1030000.crypto: CESA device successfully registered
[    0.669251] NET: Registered protocol family 10
[    0.675103] Segment Routing with IPv6
[    0.678837] NET: Registered protocol family 17
[    0.683461] 8021q: 802.1Q VLAN Support v1.8
[    1.080789] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    1.113059] ata1.00: ATA-9: KLEVV SSD NEO N500 120GB, R1001C0, max UDMA/133
[    1.120054] ata1.00: 234441648 sectors, multi 1: LBA48 NCQ (depth 31/32)
[    1.163044] ata1.00: configured for UDMA/133
[    1.167599] scsi 0:0:0:0: Direct-Access     ATA      KLEVV SSD NEO N5 1C0  PQ: 0 ANSI: 5
[    1.176644] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB)
[    1.184968] sd 0:0:0:0: [sda] Write Protect is off
[    1.189864] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.201290]  sda: sda1 sda2 sda3
[    1.205490] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.511994] ata2: SATA link down (SStatus 0 SControl F300)
[    1.519616] VFS: Mounted root (squashfs filesystem) readonly on device 8:2.
[    1.529588] Freeing unused kernel memory: 1024K
[    1.534176] Run /sbin/init as init process
[    1.640791] random: fast init done
[    1.686667] init: Console is alive
[    1.690252] init: - watchdog -
[    1.883525] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.941132] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.950197] ehci-fsl: Freescale EHCI Host controller driver
[    1.958667] ehci-orion: EHCI orion driver
[    1.962856] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.968397] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.976213] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    2.010786] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.017269] hub 1-0:1.0: USB hub found
[    2.021546] hub 1-0:1.0: 1 port detected
[    2.028338] ehci-platform: EHCI generic platform driver
[    2.041668] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    2.053814] rtc-rs5c372 0-0032: registered as rtc0
[    2.060424] rtc-rs5c372 0-0032: setting system clock to 2022-02-15T01:42:53 UTC (1644889373)
[    2.072652] usbcore: registered new interface driver usb-storage
[    2.081453] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.091066] init: - preinit -
[    2.330819] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.560533] random: jshn: uninitialized urandom read (4 bytes read)
[    2.567916] hub 1-1:1.0: USB hub found
[    2.602432] hub 1-1:1.0: 2 ports detected
[    2.633329] random: procd: uninitialized urandom read (4 bytes read)
[    2.645499] random: jshn: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.904894] mount_root: loading kmods from internal overlay
[    6.918571] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    6.926639] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    7.305673] block: attempting to load /etc/config/fstab
[    7.311148] block: unable to load configuration (fstab: Entry not found)
[    7.317957] block: no usable configuration
[    7.345971] EXT4-fs (sda3): recovery complete
[    7.352683] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[    7.656448] block: attempting to load /etc/config/fstab
[    7.661870] block: unable to load configuration (fstab: Entry not found)
[    7.668674] block: no usable configuration
[    7.673486] mount_root: switching to ext4 overlay
[    7.681825] urandom-seed: Seeding with /etc/urandom.seed
[    7.737676] procd: - early -
[    7.740678] procd: - watchdog -
[    8.305800] procd: - watchdog -
[    8.309498] procd: - ubus -
[    8.379630] procd: - init -
Please press Enter to activate this console.
[    9.026246] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.228383] PPP generic driver version 2.4.2
[    9.242748] NET: Registered protocol family 24
[    9.257928] urngd: v1.0.2 started.
[    9.281833] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.390311] random: crng init done
[    9.393761] random: 7 urandom warning(s) missed due to ratelimiting
[   14.840964] br-lan: port 1(eth0) entered blocking state
[   14.846224] br-lan: port 1(eth0) entered disabled state
[   14.851680] device eth0 entered promiscuous mode



BusyBox v1.35.0 (2022-02-13 13:45:08 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r18812-7cb70170c4
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# ubus call system board
{
        "kernel": "5.10.100",
        "hostname": "OpenWrt",
        "system": "Feroceon 88FR131 rev 1 (v5l)",
        "model": "I-O DATA HDL2-A (2.0/4.0/6.0)",
        "board_name": "iodata,hdl2-a",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r18812-7cb70170c4",
                "target": "kirkwood/generic",
                "description": "OpenWrt SNAPSHOT r18812-7cb70170c4"
        }
}
root@OpenWrt:/# ubus call system info
{
        "localtime": 1644889400,
        "uptime": 30,
        "load": [
                26688,
                6336,
                2080
        ],
        "memory": {
                "total": 256561152,
                "free": 234778624,
                "shared": 57344,
                "buffered": 2064384,
                "available": 214593536,
                "cached": 6520832
        },
        "root": {
                "total": 40973536,
                "free": 40973448,
                "used": 88,
                "avail": 38859912
        },
        "tmp": {
                "total": 125272,
                "free": 125216,
                "used": 56,
                "avail": 125216
        },
        "swap": {
                "total": 0,
                "free": 0
        }
}
root@OpenWrt:/# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/sda3 on /overlay type ext4 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.5M      3.5M         0 100% /rom
tmpfs                   122.3M     56.0K    122.3M   0% /tmp
/dev/sda3                39.1G     88.0K     37.1G   0% /overlay
overlayfs:/overlay       39.1G     88.0K     37.1G   0% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@OpenWrt:/# fdisk -l -o +Name /dev/sda
Disk /dev/sda: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk model: KLEVV SSD NEO N5
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1ADF7A04-3FA4-E744-BB96-5CAAA7727197

Device       Start      End  Sectors  Size Type             Name
/dev/sda1     2048   206847   204800  100M Linux filesystem kernel
/dev/sda2   206848  2303999  2097152    1G Linux filesystem rootfs
/dev/sda3  2304000 86190079 83886080   40G Linux filesystem rootfs_data

HDL2-A SATAブート関連メモ

SATAに接続されたストレージからのブートの場合、1つ目のパーティションのFS内に存在するKernelバイナリをU-Bootが読み出してブートする。2ドライブモデルのHDL2-Aにおいては、OSデータを持つストレージを接続するSATAポートはおそらくどちらでも良い。
FSはext2/3に対応していると思われ、ext4はU-BootでのマウントかKernelバイナリの読み出しに失敗している模様。

テストに使用したinitramfsイメージは下記にあるOpenWrt公式ビルドのもの
USBストレージからのブート時と同様、initrdバイナリも要求されるので適当に0埋めで0byteを超えるサイズで作成しておく。

tofu@Tofu-B460HVKU2004:/mnt/tmp$ ls -alh
合計 9.4M
drwxr-xr-x 3 root root 4.0K  2月 12 14:36 .
drwxr-xr-x 6 root root 4.0K  2月  8 15:33 ..
-rw-r--r-- 1 root root  64K  2月 12 14:37 initrd.l2a
drwx------ 2 root root  16K  2月 12 14:29 lost+found
-rw-r--r-- 1 root root 4.7M  2月 12 14:30 openwrt-kirkwood-netgear_readynas-duo-v2-initramfs-uImage
-rw-r--r-- 1 root root 4.7M  2月 12 14:31 uImage.l2a

bootlog

  • ext4の場合
    ============================================================
    HDL2-A series Initial boot loader
    
    Copyright (C) 2008-2011 I-O DATA DEVICE, INC.
    ============================================================
    ** LOADER **
    ** MARVELL BOARD: HDL2A LE
    
    U-Boot 1.1.4 (Aug 27 2011 - 16:33:44) MV : 3.5.9 I-O : 1.03
    
    U-Boot code: 00600000 -> 0066FFF0  BSS: -> 006BDAE0
    
    Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
    SysClock = 533Mhz , TClock = 200Mhz
    
    DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
    DRAM CS[0] base 0x00000000   size 256MB
    DRAM Total size 256MB  16bit width
    Addresses 8M - 0M are saved for the U-Boot usage.
    Mem malloc Initialization (8M - 7M): Done
    [512kB@f8000000] Flash: 512 kB
    
    CPU : Marvell Feroceon (Rev 1)
    
    Streaming disabled
    Write allocate disabled
    
    USB 0: host mode
    PEX 0: interface detected no Link.
    PEX 1: interface detected no Link.
    Net:   egiga0 [PRIME]
    
    Reset IDE:
    Marvell Serial ATA Adapter
    Integrated Sata device found
    [0 0 0]: Enable DMA mode (6)
    Device 0 @ 0 0:
    Model: KLEVV SSD NEO N500 120GB
    Firm: R1001C0
    Ser#: E201904120051356
    Type: Hard Disk
    Supports 48-bit addressing
    Capacity: 114473.4 MB = 111.7 GB (0x000000000DF94BB0 x 512)
    
    ** Unable to read "/uImage.l2a" from ide 0:1 **
    ** Bad partition 1 **
    (Re)start USB...
    USB:   scanning bus for devices... 2 USB Device(s) found
    Waiting for storage device(s) to settle before scanning...
    0 Storage Device(s) found
    ** Can't read from device 0 **
    
    ** Unable to use usb 0:0 for fatload **
    ** Can't read from device 0 **
    
    ** Unable to use usb 0:1 for fatload **
    
  • ext3の場合
    ============================================================
    HDL2-A series Initial boot loader
    
    Copyright (C) 2008-2011 I-O DATA DEVICE, INC.
    ============================================================
    ** LOADER **
    ** MARVELL BOARD: HDL2A LE
    
    U-Boot 1.1.4 (Aug 27 2011 - 16:33:44) MV : 3.5.9 I-O : 1.03
    
    U-Boot code: 00600000 -> 0066FFF0  BSS: -> 006BDAE0
    
    Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
    SysClock = 533Mhz , TClock = 200Mhz
    
    DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
    DRAM CS[0] base 0x00000000   size 256MB
    DRAM Total size 256MB  16bit width
    Addresses 8M - 0M are saved for the U-Boot usage.
    Mem malloc Initialization (8M - 7M): Done
    [512kB@f8000000] Flash: 512 kB
    
    CPU : Marvell Feroceon (Rev 1)
    
    Streaming disabled
    Write allocate disabled
    
    USB 0: host mode
    PEX 0: interface detected no Link.
    PEX 1: interface detected no Link.
    Net:   egiga0 [PRIME]
    
    ============================================================
    HDL2-A series Initial boot loader
    
    Copyright (C) 2008-2011 I-O DATA DEVICE, INC.
    ============================================================
    ** LOADER **
    ** MARVELL BOARD: HDL2A LE
    
    U-Boot 1.1.4 (Aug 27 2011 - 16:33:44) MV : 3.5.9 I-O : 1.03
    
    U-Boot code: 00600000 -> 0066FFF0  BSS: -> 006BDAE0
    
    Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
    SysClock = 533Mhz , TClock = 200Mhz
    
    DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
    DRAM CS[0] base 0x00000000   size 256MB
    DRAM Total size 256MB  16bit width
    Addresses 8M - 0M are saved for the U-Boot usage.
    Mem malloc Initialization (8M - 7M): Done
    [512kB@f8000000] Flash: 512 kB
    
    CPU : Marvell Feroceon (Rev 1)
    
    Streaming disabled
    Write allocate disabled
    
    USB 0: host mode
    PEX 0: interface detected no Link.
    PEX 1: interface detected no Link.
    Net:   egiga0 [PRIME]
    
    Reset IDE:
    Marvell Serial ATA Adapter
    Integrated Sata device found
    [0 0 0]: Enable DMA mode (6)
    Device 0 @ 0 0:
    Model: KLEVV SSD NEO N500 120GB
    Firm: R1001C0
    Ser#: E201904120051356
    Type: Hard Disk
    Supports 48-bit addressing
    Capacity: 114473.4 MB = 111.7 GB (0x000000000DF94BB0 x 512)
    
    4826230 bytes read
    
    65536 bytes read
    ## Starting secure boot ...
    ## Starting application at 0x00100000 ...
    ## Application terminated, rc = 0x0
    ................
    ## Booting image at 00800000 ...
    Image Name:   ARM OpenWrt Linux-5.10.96
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    4826166 Bytes =  4.6 MB
    Load Address: 00008000
    Entry Point:  00008000
    Verifying Checksum ... OK
    OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 5.10.96 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r18792-337e942290) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Fri Feb 11 13:30:04 2022
    [    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
    [    0.000000] CPU: VIVT data cache, VIVT instruction cache
    [    0.000000] OF: fdt: Machine model: NETGEAR ReadyNAS Duo v2
    ...
    

HDL2-A2.0

突然NASに興味を持ち、ヤフオクなど漁った結果安価な出品があったので確保したもの。
事前情報でシリアルコンソールの入力を受け付けないという話はあったが、とりあえずトライしていくことにした。
弄っていくのでメモ。

U-Boot

事前情報通り、U-Bootにおいて入力が受け付けられず(というより恐らくは中断プロンプトが無効化されている)ブートシーケンスを止めることができない。
ブートの際、まずSATAに接続されているストレージからのOS読み出しを試行し、SATAに接続されていない、あるいはOSデータが読み出せない場合は、USBポートに接続されているストレージから特定パスのOSデータ読み出しを試行する模様。

  • bootlog
    ============================================================
    HDL2-A series Initial boot loader
    
    Copyright (C) 2008-2011 I-O DATA DEVICE, INC.
    ============================================================
    ** LOADER **
    ** MARVELL BOARD: HDL2A LE
    
    U-Boot 1.1.4 (Aug 27 2011 - 16:33:44) MV : 3.5.9 I-O : 1.03
    
    U-Boot code: 00600000 -> 0066FFF0  BSS: -> 006BDAE0
    
    Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
    SysClock = 533Mhz , TClock = 200Mhz
    
    DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
    DRAM CS[0] base 0x00000000   size 256MB
    DRAM Total size 256MB  16bit width
    Addresses 8M - 0M are saved for the U-Boot usage.
    Mem malloc Initialization (8M - 7M): Done
    [512kB@f8000000] Flash: 512 kB
    
    CPU : Marvell Feroceon (Rev 1)
    
    Streaming disabled
    Write allocate disabled
    
    USB 0: host mode
    PEX 0: interface detected no Link.
    PEX 1: interface detected no Link.
    Net:   egiga0 [PRIME]
    
    Reset IDE:
    Marvell Serial ATA Adapter
    Integrated Sata device found
    
    ** Bad partition 1 **
    ** Bad partition 1 **
    (Re)start USB...
    USB:   scanning bus for devices... 2 USB Device(s) found
    Waiting for storage device(s) to settle before scanning...
    0 Storage Device(s) found
    ** Can't read from device 0 **
    
    ** Unable to use usb 0:0 for fatload **
    ** Can't read from device 0 **
    
    ** Unable to use usb 0:1 for fatload **
    

    HDL2-Aシリーズと同一のSoCを搭載し、既にOpenWrtでサポートされているNETGEAR ReadyNAS Duo v2のinitramfsイメージをHDL2-Aがブート時に読もうとするパスでダミーのinitrdと共にUSBフラッシュメモリ内に置いたところ、それを読み出してブートが行われた。
    なお、OpenWrtではinitrdは必要無い為当初0byteのinitrdファイルを置いたが蹴られ、/dev/zero を利用して64KB(サイズは適当)にしたところ通過してOpenWrtがブートされた。

    ============================================================
    HDL2-A series Initial boot loader
    
    Copyright (C) 2008-2011 I-O DATA DEVICE, INC.
    ============================================================
    ** LOADER **
    ** MARVELL BOARD: HDL2A LE
    
    U-Boot 1.1.4 (Aug 27 2011 - 16:33:44) MV : 3.5.9 I-O : 1.03
    
    U-Boot code: 00600000 -> 0066FFF0  BSS: -> 006BDAE0
    
    Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
    SysClock = 533Mhz , TClock = 200Mhz
    
    DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
    DRAM CS[0] base 0x00000000   size 256MB
    DRAM Total size 256MB  16bit width
    Addresses 8M - 0M are saved for the U-Boot usage.
    Mem malloc Initialization (8M - 7M): Done
    [512kB@f8000000] Flash: 512 kB
    
    CPU : Marvell Feroceon (Rev 1)
    
    Streaming disabled
    Write allocate disabled
    
    USB 0: host mode
    PEX 0: interface detected no Link.
    PEX 1: interface detected no Link.
    Net:   egiga0 [PRIME]
    
    Reset IDE:
    Marvell Serial ATA Adapter
    Integrated Sata device found
    [0 0 0]: Enable DMA mode (6)
    Device 0 @ 0 0:
    Model: KLEVV SSD NEO N500 120GB
    Firm: R1001C0
    Ser#: E201904120051356
    Type: Hard Disk
    Supports 48-bit addressing
    Capacity: 114473.4 MB = 111.7 GB (0x000000000DF94BB0 x 512)
    
    ** Bad partition 1 **
    ** Bad partition 1 **
    (Re)start USB...
    USB:   scanning bus for devices... 3 USB Device(s) found
    Waiting for storage device(s) to settle before scanning...
    1 Storage Device(s) found
    get_partition_info_efi: Invalid Argument(s)
    ** Partition 0 not valid on device 0 **
    
    ** Unable to use usb 0:0 for fatload **
    .
    reading l2a/uImage.l2a
    .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
    
    4825606 bytes read
    .
    reading l2a/initrd.l2a
    ......
    
    65536 bytes read
    ## Starting secure boot ...
    ## Starting application at 0x00100000 ...
    ## Application terminated, rc = 0x0
    ................
    ## Booting image at 00800000 ...
    Image Name:   ARM OpenWrt Linux-5.10.96
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    4825542 Bytes =  4.6 MB
    Load Address: 00008000
    Entry Point:  00008000
    Verifying Checksum ... OK
    OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 5.10.96 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r18780-73fd9f79ce) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Wed Feb 9 21:17:54 2022
    [    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
    [    0.000000] CPU: VIVT data cache, VIVT instruction cache
    [    0.000000] OF: fdt: Machine model: NETGEAR ReadyNAS Duo v2
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] Zone ranges:
    [    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=spi_flash:448k(u-boot),64k@448k(env) root=/dev/md2 initrd=0x2000040,16M rw model=HDL2-A
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 226956K/262144K available (5962K kernel code, 597K rwdata, 1544K rodata, 7168K init, 214K bss, 35188K reserved, 0K cma-reserved)
    [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] random: get_random_bytes called from start_kernel+0x330/0x55c with crng_init=0
    [    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
    [    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
    [    0.000033] Switching to timer-based delay loop, resolution 5ns
    [    0.000100] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
    [    0.000121] pid_max: default: 32768 minimum: 301
    [    0.000258] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.000278] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.000989] CPU: Testing write buffer coherency: ok
    [    0.001683] Setting up static identity map for 0x100000 - 0x10003c
    [    0.001875] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
    [    0.002015] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
    [    0.004783] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.004809] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [    0.004902] pinctrl core: initialized pinctrl subsystem
    [    0.005736] NET: Registered protocol family 16
    [    0.006068] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.006868] thermal_sys: Registered thermal governor 'step_wise'
    [    0.006940] cpuidle: using governor ladder
    [    0.007213] Feroceon L2: Enabling L2
    [    0.007249] Feroceon L2: Cache support initialised.
    [    0.015469] No ATAGs?
    [    0.050959] SCSI subsystem initialized
    [    0.052063] usbcore: registered new interface driver usbfs
    [    0.052107] usbcore: registered new interface driver hub
    [    0.052145] usbcore: registered new device driver usb
    [    0.056419] clocksource: Switched to clocksource orion_clocksource
    [    0.057048] NET: Registered protocol family 2
    [    0.057152] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [    0.057658] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [    0.057695] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [    0.057726] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [    0.057755] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.057820] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    0.057843] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    0.057950] NET: Registered protocol family 1
    [    0.057977] PCI: CLS 0 bytes, default 32
    [    0.114164] Unpacking initramfs...
    [    0.114189] Initramfs unpacking failed: invalid magic at start of compressed archive
    [    0.160974] Freeing initrd memory: 16388K
    [    0.162613] workingset: timestamp_bits=14 max_order=16 bucket_order=2
    [    0.165705] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.165721] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.166318] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
    [    0.167861] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
    [    0.168839] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
    [    0.168874] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
    [    0.168895] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
    [    0.168914] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
    [    0.168934] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
    [    0.168951] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
    [    0.168969] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
    [    0.168982] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
    [    0.169139] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
    [    0.169155] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    0.169168] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
    [    0.169179] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
    [    0.169190] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
    [    0.169200] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
    [    0.169209] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
    [    0.169290] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
    [    0.170256] PCI: bus0: Fast back to back transfers disabled
    [    0.170271] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.171082] PCI: bus1: Fast back to back transfers enabled
    [    0.171097] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
    [    0.171234] pci 0000:00:01.0: PCI bridge to [bus 01]
    [    0.171596] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
    [    0.172864] printk: console [ttyS0] disabled
    [    0.172941] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
    [    0.796333] printk: console [ttyS0] enabled
    [    0.801062] Loading iSCSI transport class v2.0-870.
    [    1.056431] nand: No NAND device found
    [    1.073233] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
    [    1.083027] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:a0:b0:ca:71:c7
    [    2.166424] rtc-mv f1010300.rtc: internal RTC not ticking
    [    2.171923] i2c /dev entries driver
    [    2.176730] orion_wdt: Initial timeout 21 sec
    [    2.188536] marvell-cesa f1030000.crypto: CESA device successfully registered
    [    2.196407] NET: Registered protocol family 10
    [    2.202447] Segment Routing with IPv6
    [    2.206180] NET: Registered protocol family 17
    [    2.210705] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [    2.223835] 8021q: 802.1Q VLAN Support v1.8
    [    2.252205] Freeing unused kernel memory: 7168K
    [    2.257579] Run /init as init process
    [    2.434484] init: Console is alive
    [    2.438200] init: - watchdog -
    [    2.447100] kmodloader: loading kernel modules from /etc/modules-boot.d/*
    [    2.453937] random: fast init done
    [    2.459077] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    2.468087] ehci-fsl: Freescale EHCI Host controller driver
    [    2.476511] ehci-orion: EHCI orion driver
    [    2.480690] orion-ehci f1050000.ehci: EHCI Host Controller
    [    2.486212] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
    [    2.494070] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
    [    2.526436] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
    [    2.532932] hub 1-0:1.0: USB hub found
    [    2.537217] hub 1-0:1.0: 1 port detected
    [    2.544011] ehci-platform: EHCI generic platform driver
    [    2.554977] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
    [    2.565042] init: - preinit -
    [    2.705898] random: jshn: uninitialized urandom read (4 bytes read)
    [    2.744255] random: jshn: uninitialized urandom read (4 bytes read)
    [    2.765404] random: jshn: uninitialized urandom read (4 bytes read)
    [    2.826467] usb 1-1: new high-speed USB device number 2 using orion-ehci
    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
    [    3.037406] hub 1-1:1.0: USB hub found
    [    3.041543] hub 1-1:1.0: 2 ports detected
    [    3.356428] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
    [    6.985392] procd: - early -
    [    6.988821] procd: - watchdog -
    [    7.537040] procd: - watchdog -
    [    7.540413] procd: - ubus -
    [    7.595565] procd: - init -
    Please press Enter to activate this console.
    [    7.939574] kmodloader: loading kernel modules from /etc/modules.d/*
    [    7.949893] urngd: v1.0.2 started.
    [    8.046273] PPP generic driver version 2.4.2
    [    8.057050] NET: Registered protocol family 24
    [    8.089007] kmodloader: done loading kernel modules from /etc/modules.d/*
    [    8.110257] random: crng init done
    [    8.113684] random: 7 urandom warning(s) missed due to ratelimiting
    [   36.644207] br-lan: port 1(eth0) entered blocking state
    [   36.649495] br-lan: port 1(eth0) entered disabled state
    [   36.654927] device eth0 entered promiscuous mode
    
    BusyBox v1.35.0 (2022-02-09 21:17:54 UTC) built-in shell (ash)
    
    _______                     ________        __
    |       |.-----.-----.-----.|  |  |  |.----.|  |_
    |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
    |_______||   __|_____|__|__||________||__|  |____|
    |__| W I R E L E S S   F R E E D O M
    -----------------------------------------------------
    OpenWrt SNAPSHOT, r18780-73fd9f79ce
    -----------------------------------------------------
    === WARNING! =====================================
    There is no root password defined on this device!
    Use the "passwd" command to set up a new password
    in order to prevent unauthorized SSH logins.
    --------------------------------------------------
    root@OpenWrt:/# ubus call system board
    {
    "kernel": "5.10.96",
    "hostname": "OpenWrt",
    "system": "Feroceon 88FR131 rev 1 (v5l)",
    "model": "NETGEAR ReadyNAS Duo v2",
    "board_name": "netgear,readynas-duo-v2",
    "rootfs_type": "initramfs",
    "release": {
    "distribution": "OpenWrt",
    "version": "SNAPSHOT",
    "revision": "r18780-73fd9f79ce",
    "target": "kirkwood/generic",
    "description": "OpenWrt SNAPSHOT r18780-73fd9f79ce"
    }
    }
    

WRC-2533GS2

某フリマサイトで眺めていたところ、”壊れて使えない” という出品を見つけて購入したもの。1,000円と少しであったことから、ダメならその時はその時と割り切って購入し取引中に詳しく症状を聞いてみたものの、特に知りたい詳細な点までは回答を引き出せず(こればかりはしょうがない)、結局のところ現物にあたってみるしかないということになった。状態によっては、WRC-1167GST2の時と同様にOpenWrtを仮組して復旧する必要があるかとも。
しかしながら、届いて確認したところ特段問題無くブートし、無線関連やネットワークへの疎通も特に問題は無く、確認した範囲では正常品であるように思えた。
弄っていくのでメモ。

Switch

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

MAC

  • LAN: 04:AB:18:xx:xx:FB (Factory, 0xFFF4 (hex))
  • WAN: 04:AB:18:xx:xx:FC (Factory, 0xFFFA (hex))
  • 2.4G: 04:AB:18:xx:xx:FD (Factory, 0x4 (hex))
  • 5G: 04:AB:18:xx:xx:FE (Factory, 0x8004 (hex))

U-Boot

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

  • version
    MT7621 # version
    
    U-Boot 1.1.3 (Apr 19 2019 - 17:51:16)
    

  • printenv
    MT7621 # printenv
    bootcmd=tftp
    bootdelay=5
    baudrate=57600
    ethaddr="00:AA:BB:CC:DD:10"
    model_id=WRC-2533GS2
    ethact=Eth0 (10/100-M)
    ipaddr=192.168.2.1
    serverip=192.168.2.2
    board_id=202070816933
    wlan0_guest_ssid=e-tomo-****fb
    wlan0_guest_key=********
    wlan0_ssid=elecom-****fb
    wlan1_ssid=elecom-****fb
    wlan0_key=************
    wlan1_key=************
    admin_password=********
    wps_pin=********
    hw_version=A1
    wlan0_domain=0x41
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 440/4092 bytes
    

  • tftpboot
    MT7621 # tftpboot
    
    KSEG1ADDR(NetTxPacket) = 0xA7FE6440
    
    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 192.168.2.2; our IP address is 192.168.2.1
    Filename 'test.bin'.
    
    TIMEOUT_COUNT=10,Load address: 0x80200000
    Loading: *
    

Kernel

  • uname -a
    root@MT7621:/# uname -a
    Linux MT7621 3.10.14 #30 SMP Mon Oct 25 17:14:35 CST 2021 mips GNU/Linux
    

  • cat /proc/version
    root@MT7621:/# cat /proc/version
    Linux version 3.10.14 (*****@*****) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r48067) ) #30 SMP Mon Oct 25 17:14:35 CST 2021
    

  • cat /proc/cpuinfo
    root@MT7621:/# cat /proc/cpuinfo
    system type             : MT7621
    machine                 : Unknown
    processor               : 0
    cpu model               : MIPS 1004Kc V2.15
    BogoMIPS                : 577.53
    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                : 577.53
    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                : 577.53
    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                : 577.53
    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@MT7621:/# cat /proc/meminfo
    MemTotal:         120276 kB
    MemFree:           96896 kB
    Buffers:            1432 kB
    Cached:             2704 kB
    SwapCached:            0 kB
    Active:             1588 kB
    Inactive:           3132 kB
    Active(anon):        588 kB
    Inactive(anon):        4 kB
    Active(file):       1000 kB
    Inactive(file):     3128 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:           552 kB
    Mapped:              592 kB
    Shmem:                 4 kB
    Slab:               8184 kB
    SReclaimable:        476 kB
    SUnreclaim:         7708 kB
    KernelStack:         376 kB
    PageTables:           96 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       60136 kB
    Committed_AS:       1752 kB
    VmallocTotal:    1048372 kB
    VmallocUsed:       10896 kB
    VmallocChunk:    1037284 kB
    

  • cat /proc/mtd
    root@MT7621:/# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 01000000 00010000 "ALL"
    mtd1: 00030000 00010000 "Bootloader"
    mtd2: 00010000 00010000 "Config"
    mtd3: 00010000 00010000 "Factory"
    mtd4: 00b00000 00010000 "firmware"
    mtd5: 00400000 00010000 "kernel"
    mtd6: 00700000 00010000 "rootfs"
    mtd7: 00380000 00010000 "tm_pattern"
    mtd8: 00080000 00010000 "tm_key"
    mtd9: 00030000 00010000 "nvram"
    mtd10: 00080000 00010000 "rootfs_data"
    

  • cat /sbin/mtk_led | head -n 10
    root@MT7621:/# cat /sbin/mtk_led | head -n 10
    #!/bin/sh
    
    PWR_LED_R=16
    PWR_LED_G=7
    PWR_LED_B=8
    WPS_LED=15
    DBDC=$(uci -q get qcawifi.wlan0.dbdc)
    DBDC_2G_LED=3
    DBDC_5G_LED=4
    

  • switch vlan dump
    root@MT7621:/# switch vlan dump
    vid  fid  portmap    s-tag
    1    0  -111111-       0
    2    0  1----11-       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
    

  • cat /etc/bulk/bulk | grep “C_Command1)” -A 10
    root@MT7621:/# cat /etc/bulk/bulk | grep "C_Command1)" -A 10
    C_Command1) # HW Mode
    # 44 = router, 41 = extension, 43 = repeater, 42 = ap
    #if [ "$(/sbin/gpio g 44 | sed 's/.*= //g')" = "0" ]; then
    #       echo "Mode=Router"
    #elif [ "$(/sbin/gpio g 43 | sed 's/.*= //g')" = "0" ]; then
    #       echo "Mode=Repeater"
    #elif [ "$(/sbin/gpio g 42 | sed 's/.*= //g')" = "0" ]; then
    #       echo "Mode=AP"
    #elif [ "$(/sbin/gpio g 41 | sed 's/.*= //g')" = "0" ]; then
    #       echo "Mode=Extension"
    #fi
    

  • bootlog
    
    ===================================================================
    MT7621   stage1 code 10:33:55 (ASIC)
    CPU=500000000 HZ BUS=166666666 HZ
    ==================================================================
    Change MPLL source from XTAL to CR...
    do MEMPLL setting..
    MEMPLL Config : 0x11100000
    3PLL mode + External loopback
    === XTAL-40Mhz === DDR-1200Mhz ===
    PLL2 FB_DL: 0xd, 1/0 = 530/494 35000000
    PLL3 FB_DL: 0xe, 1/0 = 680/344 39000000
    PLL4 FB_DL: 0x10, 1/0 = 656/368 41000000
    do DDR setting..[01F40000]
    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    1    1    1    1    1    1
    000F:|    0    0    0    0    1    1    1    1    1    1    1    1    1    1    1    0
    0010:|    1    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0
    0011:|    1    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0
    0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    rank 0 coarse = 15
    rank 0 fine = 72
    B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
    opt_dle value:9
    DRAMC_R0DELDLY[018]=00002221
    ==================================================================
    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 |    10 7 9 11 9 9 8 7 6 6
    10 |    9 9 9 10 9 9
    --------------------------------------
    
    ==================================================================
    2.dqs window
    x=pass dqs delay value (min~max)center
    y=0-7bit DQ of every group
    input delay:DQS0 =33 DQS1 = 34
    ==================================================================
    bit     DQS0     bit      DQS1
    0  (1~61)31  8  (1~60)30
    1  (1~62)31  9  (1~61)31
    2  (1~61)31  10  (1~65)33
    3  (1~65)33  11  (1~62)31
    4  (1~64)32  12  (2~66)34
    5  (1~64)32  13  (1~61)31
    6  (1~61)31  14  (1~65)33
    7  (2~65)33  15  (1~63)32
    ==================================================================
    3.dq delay value last
    ==================================================================
    bit|    0  1  2  3  4  5  6  7  8   9
    --------------------------------------
    0 |    12 9 11 11 10 10 10 7 10 9
    10 |    10 12 9 13 10 11
    ==================================================================
    ==================================================================
    TX  perbyte calibration
    ==================================================================
    DQS loop = 15, cmp_err_1 = ffff0000
    dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
    dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
    DQ loop=15, cmp_err_1 = ffff0000
    dqs_perbyte_dly.last_dqdly_pass[0]=15,  finish count=1
    dqs_perbyte_dly.last_dqdly_pass[1]=15,  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=500000000 HZ BUS=166666666 HZ
    ===================================================================
    
    U-Boot 1.1.3 (Apr 19 2019 - 17:51:16)
    
    Board: Ralink APSoC DRAM:  128 MB
    relocate_code Pointer at: 87fb4000
    
    Config XHCI 40M PLL
    flash manufacture id: c2, device id 20 18
    find flash: MX25L12805D
    ============================================
    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: SPI Flash
    Date:Apr 19 2019  Time:17:51:16
    ============================================
    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
    
    Please choose the operation:
    1: Load system code to SDRAM via TFTP.
    2: Load system code then write to Flash via TFTP.
    3: Boot system code via Flash (default).
    4: Entr boot command line interface.
    7: Load Boot Loader code then write to Flash via Serial.
    9: Load Boot Loader code then write to Flash via TFTP.                                                                                                              0
    
    3: System Boot system code via Flash.
    ## Booting image at bc050000 ...
    Image Name:   MIPS OpenWrt Linux-3.10
    Image Type:   MIPS Linux Kernel Image (lzma compressed)
    Data Size:    9830336 Bytes =  9.4 MB
    Load Address: 81001000
    Entry Point:  8162ee90
    Verifying Checksum ... OK
    Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 8162ee90) ...
    ## 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 (eason@eason) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r48067) ) #30 SMP Mon Oct 25 17:14:35 CST 2021
    [    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]   DMA      [mem 0x00000000-0x00ffffff]
    [    0.000000]   Normal   [mem 0x01000000-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 @81a92000 s6848 r8192 d13632 u32768
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
    [    0.000000] Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock6 init=/etc/preinit
    [    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=00041918
    [    0.000000] Readback ErrCtl register=00041918
    [    0.000000] Memory: 120024k/131072k available (6373k kernel code, 11048k reserved, 2265k data, 252k init, 0k highmem)
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000] NR_IRQS:128
    [    0.000000] console [ttyS1] enabled
    [    0.120000] Calibrating delay loop... 577.53 BogoMIPS (lpj=1155072)
    [    0.160000] pid_max: default: 32768 minimum: 301
    [    0.164000] Mount-cache hash table entries: 512
    [    0.168000] launch: starting cpu1
    [    0.172000] launch: cpu1 gone!
    [    0.172000] CPU1 revision is: 0001992f (MIPS 1004Kc)
    [    0.172000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
    [    0.172000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    [    0.172000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    [    0.204000] Synchronize counters for CPU 1: done.
    [    0.212000] launch: starting cpu2
    [    0.216000] launch: cpu2 gone!
    [    0.216000] CPU2 revision is: 0001992f (MIPS 1004Kc)
    [    0.216000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
    [    0.216000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    [    0.216000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    [    0.248000] Synchronize counters for CPU 2: done.
    [    0.256000] launch: starting cpu3
    [    0.260000] launch: cpu3 gone!
    [    0.260000] CPU3 revision is: 0001992f (MIPS 1004Kc)
    [    0.260000] Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
    [    0.260000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    [    0.260000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
    [    0.288000] Synchronize counters for CPU 3: done.
    [    0.296000] Brought up 4 CPUs
    [    0.300000] NET: Registered protocol family 16
    [    0.600000] release PCIe RST: RALINK_RSTCTRL = 7000000
    [    0.604000] PCIE PHY initialize
    [    0.608000] ***** Xtal 40MHz *****
    [    0.612000] start MT7621 PCIe register access
    [    1.204000] RALINK_RSTCTRL = 7000000
    [    1.208000] RALINK_CLKCFG1 = 77ffeff8
    [    1.212000]
    [    1.212000] *************** MT7621 PCIe RC mode *************
    [    1.708000] PCIE2 no card, disable it(RST&CLK)
    [    1.712000] pcie_link status = 0x3
    [    1.716000] RALINK_RSTCTRL= 3000000
    [    1.720000] *** Configure Device number setting of Virtual PCI-PCI bridge ***
    [    1.724000] RALINK_PCI_PCICFG_ADDR = 21007f2 -> 21007f2
    [    1.728000] PCIE0 enabled
    [    1.732000] PCIE1 enabled
    [    1.736000] interrupt enable status: 300000
    [    1.740000] Port 1 N_FTS = 1b105000
    [    1.744000] Port 0 N_FTS = 1b105000
    [    1.748000] config reg done
    [    1.752000] init_rt2880pci done
    [    1.768000] bio: create slab  at 0
    [    1.772000] vgaarb: loaded
    [    1.776000] SCSI subsystem initialized
    [    1.784000] PCI host bridge to bus 0000:00
    [    1.792000] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
    [    1.804000] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
    [    1.820000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
    [    1.836000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    1.852000] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    1.868000] pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
    [    1.880000] pci 0000:00:01.0: BAR 0: can't assign mem (size 0x80000000)
    [    1.896000] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
    [    1.908000] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
    [    1.920000] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
    [    1.936000] pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
    [    1.948000] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
    [    1.964000] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    1.972000] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
    [    1.988000] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
    [    2.000000] pci 0000:00:01.0: PCI bridge to [bus 02]
    [    2.012000] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
    [    2.024000] PCI: Enabling device 0000:00:00.0 (0004 -> 0006)
    [    2.036000] PCI: Enabling device 0000:00:01.0 (0004 -> 0006)
    [    2.048000] BAR0 at slot 0 = 0
    [    2.052000] bus=0x0, slot = 0x0
    [    2.060000] res[0]->start = 0
    [    2.064000] res[0]->end = 0
    [    2.072000] res[1]->start = 60200000
    [    2.076000] res[1]->end = 6020ffff
    [    2.084000] res[2]->start = 0
    [    2.088000] res[2]->end = 0
    [    2.096000] res[3]->start = 0
    [    2.100000] res[3]->end = 0
    [    2.108000] res[4]->start = 0
    [    2.112000] res[4]->end = 0
    [    2.120000] res[5]->start = 0
    [    2.124000] res[5]->end = 0
    [    2.128000] BAR0 at slot 1 = 0
    [    2.136000] bus=0x0, slot = 0x1
    [    2.144000] res[0]->start = 0
    [    2.148000] res[0]->end = 0
    [    2.152000] res[1]->start = 60210000
    [    2.160000] res[1]->end = 6021ffff
    [    2.168000] res[2]->start = 0
    [    2.172000] res[2]->end = 0
    [    2.180000] res[3]->start = 0
    [    2.184000] res[3]->end = 0
    [    2.192000] res[4]->start = 0
    [    2.196000] res[4]->end = 0
    [    2.200000] res[5]->start = 0
    [    2.208000] res[5]->end = 0
    [    2.212000] bus=0x1, slot = 0x0, irq=0x4
    [    2.220000] res[0]->start = 60000000
    [    2.228000] res[0]->end = 600fffff
    [    2.236000] res[1]->start = 0
    [    2.240000] res[1]->end = 0
    [    2.248000] res[2]->start = 0
    [    2.252000] res[2]->end = 0
    [    2.256000] res[3]->start = 0
    [    2.264000] res[3]->end = 0
    [    2.268000] res[4]->start = 0
    [    2.276000] res[4]->end = 0
    [    2.280000] res[5]->start = 0
    [    2.288000] res[5]->end = 0
    [    2.292000] bus=0x2, slot = 0x1, irq=0x18
    [    2.300000] res[0]->start = 60100000
    [    2.308000] res[0]->end = 601fffff
    [    2.312000] res[1]->start = 0
    [    2.320000] res[1]->end = 0
    [    2.324000] res[2]->start = 0
    [    2.332000] res[2]->end = 0
    [    2.336000] res[3]->start = 0
    [    2.344000] res[3]->end = 0
    [    2.348000] res[4]->start = 0
    [    2.352000] res[4]->end = 0
    [    2.360000] res[5]->start = 0
    [    2.364000] res[5]->end = 0
    [    2.372000] Switching to clocksource MIPS
    [    2.380000] NET: Registered protocol family 2
    [    2.388000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
    [    2.404000] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
    [    2.416000] TCP: Hash tables configured (established 1024 bind 1024)
    [    2.428000] TCP: reno registered
    [    2.436000] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    2.444000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    2.460000] NET: Registered protocol family 1
    [    2.468000] RPC: Registered named UNIX socket transport module.
    [    2.480000] RPC: Registered udp transport module.
    [    2.488000] RPC: Registered tcp transport module.
    [    2.500000] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    2.512000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    2.524000] jffs2: version 2.2. (NAND) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    2.544000] fuse init (API version 7.22)
    [    2.552000] msgmni has been set to 234
    [    2.560000] io scheduler noop registered (default)
    [    2.572000] reg_int_mask=0, INT_MASK= 0
    [    2.580000] HSDMA_init
    [    2.584000]
    [    2.584000]  hsdma_phy_tx_ring0 = 0x00c00000, hsdma_tx_ring0 = 0xa0c00000
    [    2.600000]
    [    2.600000]  hsdma_phy_rx_ring0 = 0x00c04000, hsdma_rx_ring0 = 0xa0c04000
    [    2.616000] TX_CTX_IDX0 = 0
    [    2.624000] TX_DTX_IDX0 = 0
    [    2.628000] RX_CRX_IDX0 = 3ff
    [    2.632000] RX_DRX_IDX0 = 0
    [    2.640000] set_fe_HSDMA_glo_cfg
    [    2.644000] HSDMA_GLO_CFG = 465
    [    2.652000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [    2.664000] serial8250: ttyS0 at MMIO 0x1e000d00 (irq = 27) is a 16550A
    [    2.680000] serial8250: ttyS1 at MMIO 0x1e000c00 (irq = 26) is a 16550A
    [    2.692000] Ralink gpio driver initialized
    [    2.704000] brd: module loaded
    [    2.712000] flash manufacture id: c2, device id 20 18
    [    2.720000] MX25L12805D(c2 2018c220) (16384 Kbytes)
    [    2.732000] mtd .name = raspi, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
    [    2.752000] Creating 11 MTD partitions on "raspi":
    [    2.760000] 0x000000000000-0x000001000000 : "ALL"
    [    2.772000] 0x000000000000-0x000000030000 : "Bootloader"
    [    2.780000] 0x000000030000-0x000000040000 : "Config"
    [    2.792000] 0x000000040000-0x000000050000 : "Factory"
    [    2.804000] 0x000000050000-0x000000b50000 : "firmware"
    [    2.812000] 0x000000050000-0x000000450000 : "kernel"
    [    2.824000] 0x000000450000-0x000000b50000 : "rootfs"
    [    2.836000] 0x000000b50000-0x000000ed0000 : "tm_pattern"
    [    2.844000] 0x000000ed0000-0x000000f50000 : "tm_key"
    [    2.856000] 0x000000f50000-0x000000f80000 : "nvram"
    [    2.864000] 0x000000f80000-0x000001000000 : "rootfs_data"
    [    2.876000] PPP generic driver version 2.4.2
    [    2.884000] PPP BSD Compression module registered
    [    2.896000] PPP MPPE Compression module registered
    [    2.904000] NET: Registered protocol family 24
    [    2.912000] PPTP driver version 0.8.5
    [    2.920000] register mt_drv
    [    2.936000]
    [    2.936000]
    [    2.936000] === pAd = c0201000, size = 3871424 ===
    [    2.936000]
    [    2.956000] <-- RTMPAllocAdapterBlock, Status=0
    [    2.964000] pAd->PciHif.CSRBaseAddress =0xc0100000, csr_addr=0xc0100000!
    [    2.980000] RTMPInitPCIeDevice():device_id=0x7615
    [    2.988000] DriverOwn()::Try to Clear FW Own...
    [    3.292000] DriverOwn()::Success to clear FW Own
    [    3.304000] mt_pci_chip_cfg(): HWVer=0x8a10, FWVer=0x8a10, pAd->ChipID=0x7615
    [    3.316000] mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
    [    3.328000] RtmpChipOpsHook(492): Not support for HIF_MT yet! MACVersion=0x0
    [    3.340000] mt7615_init()-->
    [    3.348000] Use 1st iPAiLNA default bin.
    [    3.356000] Use 0st /etc_ro/wlan/MT7615E_EEPROM1.bin default bin.
    [    3.368000] <--mt7615_init()
    [    3.372000] ChipOpsMCUHook
    [    3.384000] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    [    3.400000] cut_through_token_list_init(): 87725908,87725908
    [    3.412000] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    [    3.428000] cut_through_token_list_init(): 87725918,87725918
    [    3.436000] <-- RTMPAllocTxRxRingMemory, Status=0
    [    3.456000]
    [    3.456000]
    [    3.456000] === pAd = c0701000, size = 3871424 ===
    [    3.456000]
    [    3.476000] <-- RTMPAllocAdapterBlock, Status=0
    [    3.484000] pAd->PciHif.CSRBaseAddress =0xc0600000, csr_addr=0xc0600000!
    [    3.500000] RTMPInitPCIeDevice():device_id=0x7615
    [    3.508000] DriverOwn()::Try to Clear FW Own...
    [    3.816000] DriverOwn()::Success to clear FW Own
    [    3.824000] mt_pci_chip_cfg(): HWVer=0x8a10, FWVer=0x8a10, pAd->ChipID=0x7615
    [    3.836000] mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
    [    3.848000] RtmpChipOpsHook(492): Not support for HIF_MT yet! MACVersion=0x0
    [    3.860000] mt7615_init()-->
    [    3.868000] Use 2nd iPAiLNA default bin.
    [    3.876000] Use 1st /etc_ro/wlan/MT7615E_EEPROM2.bin default bin.
    [    3.888000] <--mt7615_init()
    [    3.892000] ChipOpsMCUHook
    [    3.904000] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    [    3.920000] cut_through_token_list_init(): 86cbfa88,86cbfa88
    [    3.932000] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
    [    3.948000] cut_through_token_list_init(): 86cbfa98,86cbfa98
    [    3.960000] <-- RTMPAllocTxRxRingMemory, Status=0
    [    3.968000] rdm_major = 253
    [    3.976000] GMAC1_MAC_ADRH -- : 0x000004ab
    [    3.984000] GMAC1_MAC_ADRL -- : 0x18xxxxfb
    [    3.992000] Ralink APSoC Ethernet Driver Initilization. v3.1  1024 rx/tx descriptors allocated, mtu = 1500!
    [    4.008000] [LOG]|WIRE| LAN Starting
    [    4.016000] GMAC1_MAC_ADRH -- : 0x000004ab
    [    4.024000] GMAC1_MAC_ADRL -- : 0x18xxxxfb
    [    4.032000] PROC INIT OK!
    [    4.040000] nf_conntrack version 0.5.0 (1875 buckets, 7500 max)
    [    4.052000] xt_time: kernel timezone is -0000
    [    4.060000] gre: GRE over IPv4 demultiplexor driver
    [    4.068000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    4.080000] Type=Restricted Cone
    [    4.088000] TCP: cubic registered
    [    4.092000] NET: Registered protocol family 10
    [    4.104000] sit: IPv6 over IPv4 tunneling driver
    [    4.112000] NET: Registered protocol family 17
    [    4.124000] Bridge firewalling registered
    [    4.132000] Ebtables v2.0 registered
    [    4.136000] l2tp_core: L2TP core driver, V2.0
    [    4.148000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
    [    4.156000] l2tp_netlink: L2TP netlink interface
    [    4.164000] 8021q: 802.1Q VLAN Support v1.8
    [    4.180000] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
    [    4.196000] Freeing unused kernel memory: 252K (81871000 - 818b0000)
    [    4.856000] init: Console is alive
    [    5.872000] init: - preinit -
    /etc/preinit: line 1: check_skip: not found
    /etc/preinit: line 210: ramips_board_detect: not found
    Press the [f] key and hit [enter] to enter failsafe mode
    Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
    Before mount_root
    [    8.428000] jffs2: notice: (100) jffs2_build_xattr_subsystem: complete building xattr subsystem, 2 of xdatum (0 unchecked, 1 orphan) and 31 of xref (0 dead, 21 orphan) found.
    [    8.460000] mount_root: switching to jffs2 overlay
    cp: can't stat '/etc/changemode': No such file or directory
    cp: can't stat '/etc/config/gxbk': [    8.508000] procd: - early -
    No such file or directory
    After mount_root
    [    9.120000] procd: - ubus -
    [   10.136000] procd: - init -
    Please press Enter to activate this console.
    [   15.324000] ip_gre: GRE over IPv4 tunneling driver
    [   15.348000] bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    [   15.560000] /proc/router_ip created
    [   15.804000] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [   15.824000] Netfilter messages via NETLINK v0.30.
    [   15.980000] ctnetlink v0.93: registering with nfnetlink.
    [   16.052000] u32 classifier
    [   16.056000]     Performance counters on
    [   16.064000]     Actions configured
    [   16.084000] Mirror/redirect action on
    [   16.104000] Failed to load ipt action
    [   18.612000]  4:FFFFFFAB:18:FFFFFF8B:77:FFFFFFFB
    [   18.620000] Raeth v3.1 (Tasklet)
    [   18.632000] set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
    [   18.644000] phy_free_head is 0xca8000!!!
    [   18.652000] phy_free_tail_phy is 0xca9ff0!!!
    [   18.660000] txd_pool=a0cb0000 phy_txd_pool=00CB0000
    [   18.672000] ei_local->skb_free start address is 0x86dea6cc.
    [   18.684000] free_txd: 00cb0010, ei_local->cpu_ptr: 00CB0000
    [   18.692000]  POOL  HEAD_PTR | DMA_PTR | CPU_PTR
    [   18.704000] ----------------+---------+--------
    [   18.712000]      0xa0cb0000 0x00CB0000 0x00CB0000
    [   18.720000]
    [   18.720000] phy_qrx_ring = 0x00caa000, qrx_ring = 0xa0caa000
    [   18.736000]
    [   18.736000] phy_rx_ring0 = 0x00cac000, rx_ring[0] = 0xa0cac000
    [   18.772000] MT7530 Reset Completed!!
    [   18.784000] change HW-TRAP to 0x117c8f
    [   18.796000] set LAN/WAN WLLLL
    [   18.804000] GMAC1_MAC_ADRH -- : 0x000004ab
    [   18.812000] GMAC1_MAC_ADRL -- : 0x18xxxxfb
    [   18.820000] GDMA2_MAC_ADRH -- : 0x000004ab
    [   18.828000] GDMA2_MAC_ADRL -- : 0x18xxxxfc
    [   18.840000] eth3: ===> VirtualIF_open
    [   18.848000] MT7621 GE2 link rate to 1G
    [   18.848000] CDMA_CSG_CFG = 81000000
    [   18.848000] GDMA1_FWD_CFG = 20710000
    [   18.848000] GDMA2_FWD_CFG = 20710000
    [   18.888000] eth3: ===> VirtualIF_open
    [   19.364000] eth3: ===> VirtualIF_close
    [   19.384000] ra2880stop()...Done
    [   19.388000] eth3: ===> VirtualIF_close
    [   19.400000] Free TX/RX Ring Memory!
    [   19.416000]  4:FFFFFFAB:18:FFFFFF8B:77:FFFFFFFB
    [   19.424000] Raeth v3.1 (Tasklet)
    [   19.436000] set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
    [   19.448000] phy_free_head is 0xca8000!!!
    [   19.456000] phy_free_tail_phy is 0xca9ff0!!!
    [   19.468000] txd_pool=a0cb0000 phy_txd_pool=00CB0000
    [   19.476000] ei_local->skb_free start address is 0x86dea6cc.
    [   19.488000] free_txd: 00cb0010, ei_local->cpu_ptr: 00CB0000
    [   19.500000]  POOL  HEAD_PTR | DMA_PTR | CPU_PTR
    [   19.508000] ----------------+---------+--------
    [   19.516000]      0xa0cb0000 0x00CB0000 0x00CB0000
    [   19.528000]
    [   19.528000] phy_qrx_ring = 0x00caa000, qrx_ring = 0xa0caa000
    [   19.544000]
    [   19.544000] phy_rx_ring0 = 0x00cac000, rx_ring[0] = 0xa0cac000
    [   19.576000] MT7530 Reset Completed!!
    [   19.592000] change HW-TRAP to 0x117c8f
    [   19.600000] set LAN/WAN WLLLL
    [   19.612000] GMAC1_MAC_ADRH -- : 0x000004ab
    [   19.620000] GMAC1_MAC_ADRL -- : 0x18xxxxfb
    [   19.628000] eth3: ===> VirtualIF_open
    [   19.636000] MT7621 GE2 link rate to 1G
    [   19.636000] CDMA_CSG_CFG = 81000000
    [   19.636000] GDMA1_FWD_CFG = 20710000
    [   19.636000] GDMA2_FWD_CFG = 20710000
    [   19.664000] device eth2 entered promiscuous mode
    [   19.676000] br-lan: port 1(eth2) entered forwarding state
    [   19.684000] br-lan: port 1(eth2) entered forwarding state
    [   19.708000] eth3: ===> VirtualIF_open
    dnsmasq
    dnsmasq [br-lan]
    [   21.688000] br-lan: port 1(eth2) entered forwarding state
    UHTTP crt Checked
    main init
    main init
    page=[/setup/index.html]
    page=[/setup/index.html]
    count=[43]
    count=[43]
    [   26.384000] Ralink HW NAT Module Enabled
    [   26.392000] Ralink HW NAT spin_lock_init
    [   26.400000] eth2 ifindex =4
    [   26.408000] eth3 ifindex =b
    [   30.496000] DriverOwn()::Return since already in Driver Own...
    [   30.508000] APWdsInitialize():WdsEntry[0]
    [   30.516000] APWdsInitialize():WdsEntry[1]
    [   30.524000] APWdsInitialize():WdsEntry[2]
    [   30.532000] APWdsInitialize():WdsEntry[3]
    [   30.544000]
    [   30.544000] [Force Roam] => Force Roam Support = 0
    [   30.556000] RT_CfgSetMacAddress : invalid length (0)
    [   30.568000] E2pAccessMode=2
    [   30.572000] SSID[0]=elecom-8b77fb, EdcaIdx=0
    [   30.580000] TriBandChGrp=0/0/0/0
    [   30.588000] cfg_mode=14
    [   30.592000] cfg_mode=14
    [   30.600000] wmode_band_equal(): Band Equal!
    [   30.608000] BandSteering=0
    [   30.612000] BndStrgBssIdx=
    [   30.620000] [TxPower] BAND0: 100
    [   30.628000] [SKUenable] BAND0: 1
    [   30.632000] [PERCENTAGEenable] BAND0: 1
    [   30.640000] [BFBACKOFFenable] BAND0: 1
    [   30.648000] CalCacheApply = 0
    [   30.656000] APEdca0
    [   30.660000] APEdca1
    [   30.664000] APEdca2
    [   30.668000] APEdca3
    [   30.676000] APSDCapable[0]=0
    [   30.680000] APSDCapable[1]=0
    [   30.688000] APSDCapable[2]=0
    [   30.692000] APSDCapable[3]=0
    [   30.700000] APSDCapable[4]=0
    [   30.704000] APSDCapable[5]=0
    [   30.712000] APSDCapable[6]=0
    [   30.716000] APSDCapable[7]=0
    [   30.720000] APSDCapable[8]=0
    [   30.728000] APSDCapable[9]=0
    [   30.732000] APSDCapable[10]=0
    [   30.740000] APSDCapable[11]=0
    [   30.744000] APSDCapable[12]=0
    [   30.752000] APSDCapable[13]=0
    [   30.756000] APSDCapable[14]=0
    [   30.764000] APSDCapable[15]=0
    [   30.768000] default ApCliAPSDCapable[0]=0
    [   30.776000] default ApCliAPSDCapable[1]=0
    [   30.788000] DfsZeroWait Support=0/0
    [   30.796000] DfsZeroWaitCacTime=0/0
    [   30.828000] rtmp_read_wds_from_file(): WDS Profile
    [   30.840000] APWdsInitialize():WdsEntry[0]
    [   30.848000] APWdsInitialize():WdsEntry[1]
    [   30.856000] APWdsInitialize():WdsEntry[2]
    [   30.864000] APWdsInitialize():WdsEntry[3]
    [   30.872000] WDS-Enable mode=0
    [   30.880000] AndesSendCmdMsg: Could not send in band command due to diablefRTMP_ADAPTER_MCU_SEND_IN_BAND_CMD
    [   30.900000] HT: WDEV[0] Ext Channel = ABOVE
    [   30.912000] HT: greenap_cap = 0
    [   30.948000] IcapMode = 0
    [   30.960000] WtcSetMaxStaNum: MaxStaNum:103, BssidNum:1, WdsNum:4, ApcliNum:2, MaxNumChipRept:16, MinMcastWcid:125
    [   30.980000] Top Init Done!
    [   30.988000] Use alloc_skb
    [   30.992000] RX[0] DESC a0ca4000 size = 16384
    [   31.004000] RX[1] DESC a0ca2000 size = 8192
    [   31.012000] Hif Init Done!
    [   31.020000] ctl->txq = c0aad2d4
    [   31.024000] ctl->rxq = c0aad2e0
    [   31.032000] ctl->ackq = c0aad2ec
    [   31.040000] ctl->kickq = c0aad2f8
    [   31.044000] ctl->tx_doneq = c0aad304
    [   31.052000] ctl->rx_doneq = c0aad310
    [   31.060000] mt7615_fw_prepare():FW(8a10), HW(8a10), CHIPID(7615))
    [   31.072000] mt7615_fw_prepare(2687): MT7615_E3, USE E3 patch and ram code binary image
    [   31.088000] AndesMTLoadRomMethodFwDlRing(1035), cap->rom_patch_len(11102)
    [   31.100000] AndesRestartCheck: Current TOP_MISC2(0x1)
    [   31.112000] AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
    [   31.124000] 20170809192718a
    [   31.132000]
    [   31.132000] platform =
    [   31.140000] ALPS
    [   31.144000] hw/sw version =
    [   31.148000] 8a108a10
    [   31.152000] patch version =
    [   31.160000] 00000010
    [   31.164000] Patch SEM Status=2
    [   31.168000] MtCmdPatchSemGet:(ret = 0)
    [   31.176000]
    [   31.176000] Patch is not ready && get semaphore success, SemStatus(2)
    [   31.192000] EventGenericEventHandler: CMD Success
    [   31.200000] MtCmdAddressLenReq:(ret = 0)
    [   31.208000] MtCmdPatchFinishReq
    [   31.228000] EventGenericEventHandler: CMD Success
    [   31.236000] Send checksum req..
    [   31.244000] Patch SEM Status=3
    [   31.248000] MtCmdPatchSemGet:(ret = 0)
    [   31.256000]
    [   31.256000] Release patch semaphore, SemStatus(3)
    [   31.268000] AndesMTEraseRomPatch
    [   31.276000] WfMcuHwInit: Before NICLoadFirmware, check IcapMode=0
    [   31.288000] AndesMTLoadFwMethodFwDlRing(809), cap->fw_len(462248)
    [   31.300000] Build Date:_201708190346
    [   31.308000] Build Date:_201708190346
    [   31.312000] AndesRestartCheck: Current TOP_MISC2(0x1)
    [   31.324000] AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
    [   31.336000] EventGenericEventHandler: CMD Success
    [   31.348000] MtCmdAddressLenReq:(ret = 0)
    [   31.360000] EventGenericEventHandler: CMD Success
    [   31.368000] MtCmdAddressLenReq:(ret = 0)
    [   31.376000] MtCmdFwStartReq: override = 1, address = 540672
    [   31.388000] EventGenericEventHandler: CMD Success
    [   31.396000] Build Date:_201707211524
    [   31.404000] EventGenericEventHandler: CMD Success
    [   31.416000] MtCmdAddressLenReq:(ret = 0)
    [   31.424000] MtCmdFwStartReq: override = 4, address = 0
    [   31.484000] EventGenericEventHandler: CMD Success
    [   31.536000] WfMcuHwInit: NICLoadFirmware OK, Check IcapMode=0
    [   31.548000] MCU Init Done!
    [   31.556000] efuse_probe: efuse = 10000212
    [   31.564000] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
    [   31.572000] RtmpEepromGetDefault::e2p_dafault=1
    [   31.580000] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
    [   31.596000] NVM is FLASH mode. dev_idx [1] FLASH OFFSET [0x8000]
    [   31.624000] NICReadEEPROMParameters: EEPROM 0x52 b317
    [   31.640000] MtCmdSetTxLpfCal:(ret = 0)
    [   31.648000] MtCmdSetTxIqCal:(ret = 0)
    [   31.656000] MtCmdSetTxDcCal:(ret = 0)
    [   31.660000] MtCmdSetRxFiCal:(ret = 0)
    [   31.668000] MtCmdSetRxFdCal:(ret = 0)
    [   31.676000] MtCmdSetRxFdCal:(ret = 0)
    [   31.684000] MtCmdSetRxFdCal:(ret = 0)
    [   31.692000] MtCmdSetRxFdCal:(ret = 0)
    [   31.700000] MtCmdSetRxFdCal:(ret = 0)
    [   31.704000] MtCmdSetRxFdCal:(ret = 0)
    [   31.712000] MtCmdSetRxFdCal:(ret = 0)
    [   31.720000] MtCmdSetRxFdCal:(ret = 0)
    [   31.728000] MtCmdSetRxFdCal:(ret = 0)
    [   31.736000] NICReadEEPROMParameters: EEPROM 0x52 b317
    [   32.288000] Country Region from e2p = 101
    [   32.296000] mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
    [   32.308000] mt7615_antenna_default_reset(): DBDC 2G TxPath = 2, 2G RxPath = 2
    [   32.320000] mt7615_antenna_default_reset(): DBDC 5G TxPath = 2, 2G RxPath = 2
    [   32.336000] rtmp_read_txpwr_from_eeprom(233): Don't Support this now!
    [   32.348000] RTMPReadTxPwrPerRate(1381): Don't Support this now!
    [   32.360000] RcRadioInit(): DbdcMode=0, ConcurrentBand=1
    [   32.372000] RcRadioInit(): pRadioCtrl=86cc0438,Band=0,rfcap=3,channel=1,PhyMode=2 extCha=0xf
    [   32.388000] Band Rf: 1, Phy Mode: 2
    [   32.396000] AntCfgInit(2766): Not support for HIF_MT yet!
    [   32.404000] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
    [   32.460000] MtBfBackOffLoadTable: RF_LOCKDOWN Feature OFF !!!
    [   32.472000] EEPROM Init Done!
    [   32.476000] mt_mac_init()-->
    [   32.484000] mt_mac_pse_init(2750): Don't Support this now!
    [   32.492000] mt7615_init_mac_cr()-->
    [   32.500000] mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
    [   32.512000] MtAsicSetMacMaxLen(1300): Not finish Yet!
    [   32.520000] <--mt_mac_init()
    [   32.528000] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   32.540000] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   32.552000] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   32.568000] MAC Init Done!
    [   32.572000] MT7615BBPInit():BBP Initialization.....
    [   32.580000]  Band 0: valid=1, isDBDC=0, Band=2, CBW=1, CentCh/PrimCh=1/1, prim_ch_idx=0, txStream=2
    [   32.600000]  Band 1: valid=0, isDBDC=0, Band=0, CBW=0, CentCh/PrimCh=0/0, prim_ch_idx=0, txStream=0
    [   32.620000] MT7615BBPInit() todo
    [   32.624000] PHY Init Done!
    [   32.632000] tx_pwr_comp_init():NotSupportYet!
    [   32.640000] MtCmdSetMacTxRx:(ret = 0)
    [   32.648000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=49/49, support 19 channels
    [   32.664000] ApAutoChannelAtBootUp----------------->
    [   32.676000] ApAutoChannelAtBootUp: AutoChannelBootup = 1, AutoChannelFlag = 1
    [   32.688000] MtCmdSetMacTxRx:(ret = 0)
    [   32.696000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900]
    [   32.716000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   32.724000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98]
    [   32.744000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   32.752000] MtCmdChannelSwitch: control_chl = 36,control_ch2=0, central_chl = 42 DBDCIdx= 0, Band= 0
    [   32.772000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   33.128000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900]
    [   33.144000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   33.152000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98]
    [   33.172000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   33.180000] MtCmdChannelSwitch: control_chl = 40,control_ch2=0, central_chl = 42 DBDCIdx= 0, Band= 0
    [   33.200000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   33.420000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900]
    [   33.436000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   33.444000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98]
    [   33.464000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   33.472000] MtCmdChannelSwitch: control_chl = 44,control_ch2=0, central_chl = 42 DBDCIdx= 0, Band= 0
    [   33.492000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   33.716000] mt7615_apply_dcoc() : reload Central CH [42] BW [2] from cetral freq [5210]  offset [1900]
    [   33.732000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   33.740000] mt7615_apply_dpd() : reload Central CH [42] BW [2] from cetral freq [5220] i[9] offset [2d98]
    [   33.760000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   33.768000] MtCmdChannelSwitch: control_chl = 48,control_ch2=0, central_chl = 42 DBDCIdx= 0, Band= 0
    [   33.788000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   34.016000] mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00]
    [   34.032000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   34.040000] mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8]
    [   34.060000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   34.068000] MtCmdChannelSwitch: control_chl = 52,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0
    [   34.088000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   34.320000] mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00]
    [   34.336000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   34.344000] mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8]
    [   34.364000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   34.372000] MtCmdChannelSwitch: control_chl = 56,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0
    [   34.392000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   34.612000] mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00]
    [   34.628000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   34.636000] mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8]
    [   34.656000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   34.664000] MtCmdChannelSwitch: control_chl = 60,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0
    [   34.684000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   34.912000] mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00]
    [   34.928000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   34.936000] mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8]
    [   34.956000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   34.964000] MtCmdChannelSwitch: control_chl = 64,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0
    [   34.984000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   35.208000] mt7615_apply_dcoc() : reload Central CH [106] BW [2] from cetral freq [5530]  offset [1d00]
    [   35.224000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   35.232000] mt7615_apply_dpd() : reload Central CH [106] BW [2] from cetral freq [5540] i[25] offset [3b18]
    [   35.252000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   35.264000] MtCmdChannelSwitch: control_chl = 100,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0
    [   35.280000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   35.500000] mt7615_apply_dcoc() : reload Central CH [106] BW [2] from cetral freq [5530]  offset [1d00]
    [   35.516000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   35.524000] mt7615_apply_dpd() : reload Central CH [106] BW [2] from cetral freq [5540] i[25] offset [3b18]
    [   35.544000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   35.552000] MtCmdChannelSwitch: control_chl = 104,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0
    [   35.572000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   35.792000] mt7615_apply_dcoc() : reload Central CH [106] BW [2] from cetral freq [5530]  offset [1d00]
    [   35.808000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   35.816000] mt7615_apply_dpd() : reload Central CH [106] BW [2] from cetral freq [5540] i[25] offset [3b18]
    [   35.836000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   35.848000] MtCmdChannelSwitch: control_chl = 108,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0
    [   35.864000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   36.084000] mt7615_apply_dcoc() : reload Central CH [106] BW [2] from cetral freq [5530]  offset [1d00]
    [   36.100000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   36.108000] mt7615_apply_dpd() : reload Central CH [106] BW [2] from cetral freq [5540] i[25] offset [3b18]
    [   36.128000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   36.136000] MtCmdChannelSwitch: control_chl = 112,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0
    [   36.156000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   36.376000] mt7615_apply_dcoc() : reload Central CH [122] BW [2] from cetral freq [5610]  offset [1e00]
    [   36.392000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   36.400000] mt7615_apply_dpd() : reload Central CH [122] BW [2] from cetral freq [5620] i[29] offset [3e78]
    [   36.420000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   36.428000] MtCmdChannelSwitch: control_chl = 116,control_ch2=0, central_chl = 122 DBDCIdx= 0, Band= 0
    [   36.448000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   36.668000] mt7615_apply_dcoc() : reload Central CH [122] BW [2] from cetral freq [5610]  offset [1e00]
    [   36.684000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   36.692000] mt7615_apply_dpd() : reload Central CH [122] BW [2] from cetral freq [5620] i[29] offset [3e78]
    [   36.712000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   36.720000] MtCmdChannelSwitch: control_chl = 120,control_ch2=0, central_chl = 122 DBDCIdx= 0, Band= 0
    [   36.740000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   36.960000] mt7615_apply_dcoc() : reload Central CH [122] BW [2] from cetral freq [5610]  offset [1e00]
    [   36.976000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   36.984000] mt7615_apply_dpd() : reload Central CH [122] BW [2] from cetral freq [5620] i[29] offset [3e78]
    [   37.004000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   37.016000] MtCmdChannelSwitch: control_chl = 124,control_ch2=0, central_chl = 122 DBDCIdx= 0, Band= 0
    [   37.032000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   37.252000] mt7615_apply_dcoc() : reload Central CH [122] BW [2] from cetral freq [5610]  offset [1e00]
    [   37.268000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   37.276000] mt7615_apply_dpd() : reload Central CH [122] BW [2] from cetral freq [5620] i[29] offset [3e78]
    [   37.296000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   37.304000] MtCmdChannelSwitch: control_chl = 128,control_ch2=0, central_chl = 122 DBDCIdx= 0, Band= 0
    [   37.324000] BW = 2,TXStream = 4, RXStream = 4, scan(1)
    [   37.544000] ====================================================================
    [   37.556000] Channel  36 : Busy Time =   3654, Skip Channel = FALSE, BwCap = TRUE
    [   37.572000] Channel  40 : Busy Time =  14529, Skip Channel = FALSE, BwCap = TRUE
    [   37.588000] Channel  44 : Busy Time =   1033, Skip Channel = FALSE, BwCap = TRUE
    [   37.600000] Channel  48 : Busy Time =    666, Skip Channel = FALSE, BwCap = TRUE
    [   37.616000] Channel  52 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   37.632000] Channel  56 : Busy Time =     31, Skip Channel = FALSE, BwCap = TRUE
    [   37.644000] Channel  60 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   37.660000] Channel  64 : Busy Time =      2, Skip Channel = FALSE, BwCap = TRUE
    [   37.676000] Channel 100 : Busy Time =   1355, Skip Channel = FALSE, BwCap = TRUE
    [   37.688000] Channel 104 : Busy Time =    138, Skip Channel = FALSE, BwCap = TRUE
    [   37.704000] Channel 108 : Busy Time =    145, Skip Channel = FALSE, BwCap = TRUE
    [   37.720000] Channel 112 : Busy Time =   1670, Skip Channel = FALSE, BwCap = TRUE
    [   37.732000] Channel 116 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   37.748000] Channel 120 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   37.764000] Channel 124 : Busy Time =      0, Skip Channel = FALSE, BwCap = TRUE
    [   37.776000] Channel 128 : Busy Time =     99, Skip Channel = FALSE, BwCap = TRUE
    [   37.792000] ====================================================================
    [   37.808000] Rule 3 Channel Busy time value : Select Primary Channel 52
    [   37.820000] Rule 3 Channel Busy time value : Min Channel Busy = 31
    [   37.832000] Rule 3 Channel Busy time value : BW = 80
    [   37.844000]  AutoChSelUpdateChannel(): Update channel for wdev0 for this band PhyMode = 49,Channel = 52
    [   37.864000] ApAutoChannelAtBootUp<-----------------
    [   37.872000] WifiSysOpen(), wdev idx = 0
    [   37.880000] wdev_attr_update(): wdevId0 = 04:ab:18:xx:xx:fe
    [   37.892000] Current Channel is 52. DfsZeroWaitSupport=0
    [   37.904000] MtAsicSetChBusyStat(840): Not support for HIF_MT yet!
    [   37.916000] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
    [   37.928000] [PMF]WPAMakeRsnIeCap: RSNIE Capability MFPC=0, MFPR=0
    [   37.940000]
    [   37.940000] [Force Roam] => Force Roam Support = 0
    [   37.952000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:49,Channel=52
    [   37.968000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=49/49, support 19 channels
    [   37.984000] Enable 20/40 BSSCoex Channel Scan(BssCoex=1)
    [   37.996000] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
    [   37.996000]  LinkToOmacIdx = 0, LinkToWdevType = 1
    [   38.028000] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 8192,                 CmdBssInfoBmcRate.u2McTransmit = 8196
    [   38.160000]  [RadarStateCheck]Set into RD_SILENCE_MODE!
    [   38.188000] MtCmdTxPowerSKUCtrl: fgTxPowerSKUEn: 1, BandIdx: 0
    [   38.196000] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
    [   38.212000] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 1, BandIdx: 0
    [   38.224000] mt7615_bbp_adjust():rf_bw=2, ext_ch=1, PrimCh=52, HT-CentCh=54, VHT-CentCh=58
    [   38.240000] mt7615_apply_dcoc() : reload Central CH [58] BW [2] from cetral freq [5290]  offset [1a00]
    [   38.260000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   38.268000] mt7615_apply_dpd() : reload Central CH [58] BW [2] from cetral freq [5300] i[13] offset [30f8]
    [   38.288000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   38.296000] MtCmdChannelSwitch: control_chl = 52,control_ch2=0, central_chl = 58 DBDCIdx= 0, Band= 0
    [   38.312000] BW = 2,TXStream = 4, RXStream = 4, scan(0)
    [   38.344000] ap_phy_rrm_init_byRf(): AP Set CentralFreq at 58(Prim=52, HT-CentCh=54, VHT-CentCh=58, BBP_BW=2)
    [   38.364000] [WrapDfsRadarDetectStart]: Band0Ch is 52
    [   38.372000] [WrapDfsRadarDetectStart]: Band1Ch is 0
    [   38.396000] LeadTimeForBcn, OmacIdx = 0, WDEV_WITH_BCN_ABILITY
    [   38.408000] MtAsicSetRalinkBurstMode(2605): Not support for HIF_MT yet!
    [   38.420000] MtAsicSetPiggyBack(777): Not support for HIF_MT yet!
    [   38.432000] MtAsicSetTxPreamble(2584): Not support for HIF_MT yet!
    [   38.444000] ap_ftkd> Initialize FT KDP Module...
    [   38.456000] Main bssid = 04:ab:18:xx:xx:fe
    [   38.464000] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
    [   38.472000] MtCmdSetMacTxRx:(ret = 0)
    [   38.480000] MCS Set = ff ff ff ff 01
    [   38.488000] <==== mt_wifi_init, Status=0
    [   38.496000] MtCmdEDCCACtrl: BandIdx: 0, EDCCACtrl: 1
    [   38.504000] WDS_Init():
    [   38.512000] The new WDS interface MAC = FF:FF:FF:FF:FF:FF
    [   38.520000]   MacTabMatchWCID = 0
    [   38.528000] The new WDS interface MAC = FF:FF:FF:FF:FF:FF
    [   38.540000]   MacTabMatchWCID = 0
    [   38.548000] The new WDS interface MAC = FF:FF:FF:FF:FF:FF
    [   38.560000]   MacTabMatchWCID = 0
    [   38.568000] The new WDS interface MAC = FF:FF:FF:FF:FF:FF
    [   38.580000]   MacTabMatchWCID = 0
    [   38.588000] Total allocated 4 WDS interfaces!
    [   38.600000] WtcSetMaxStaNum: MaxStaNum:103, BssidNum:1, WdsNum:4, ApcliNum:2, MaxNumChipRept:16, MinMcastWcid:125
    [   38.660000] red_is_enabled: set CR4/N9 RED Enable to 1.
    [   38.672000] cp_support_is_enabled: set CR4 CP_SUPPORT to Mode 2.
    [   38.684000] Correct apidx from 0 to 0 for WscUUIDInit
    [   38.692000] Generate UUID for apidx(0)
    [   38.700000] PpeDevRegHandler : ineterface rai0 register (0)
    [   38.780000] device rai0 entered promiscuous mode
    [   38.788000] br-lan: port 2(rai0) entered forwarding state
    [   38.800000] br-lan: port 2(rai0) entered forwarding state
    [   38.968000] DriverOwn()::Return since already in Driver Own...
    [   38.984000] APWdsInitialize():WdsEntry[0]
    [   38.992000] APWdsInitialize():WdsEntry[1]
    [   39.000000] APWdsInitialize():WdsEntry[2]
    [   39.008000] APWdsInitialize():WdsEntry[3]
    [   39.016000]
    [   39.016000] [Force Roam] => Force Roam Support = 0
    [   39.028000] RT_CfgSetMacAddress : invalid length (0)
    [   39.040000] E2pAccessMode=2
    [   39.044000] SSID[0]=elecom-8b77fb, EdcaIdx=0
    [   39.056000] TriBandChGrp=0/0/0/0
    [   39.060000] cfg_mode=9
    [   39.068000] cfg_mode=9
    [   39.072000] wmode_band_equal(): Band Equal!
    [   39.080000] BandSteering=0
    [   39.088000] BndStrgBssIdx=
    [   39.092000] [TxPower] BAND0: 100
    [   39.100000] [SKUenable] BAND0: 1
    [   39.104000] [PERCENTAGEenable] BAND0: 1
    [   39.112000] [BFBACKOFFenable] BAND0: 1
    [   39.120000] CalCacheApply = 0
    [   39.128000] APEdca0
    [   39.132000] APEdca1
    [   39.136000] APEdca2
    [   39.140000] APEdca3
    [   39.148000] APSDCapable[0]=0
    [   39.152000] APSDCapable[1]=0
    [   39.160000] APSDCapable[2]=0
    [   39.164000] APSDCapable[3]=0
    [   39.172000] APSDCapable[4]=0
    [   39.176000] APSDCapable[5]=0
    [   39.184000] APSDCapable[6]=0
    [   39.188000] APSDCapable[7]=0
    [   39.192000] APSDCapable[8]=0
    [   39.200000] APSDCapable[9]=0
    [   39.204000] APSDCapable[10]=0
    [   39.212000] APSDCapable[11]=0
    [   39.216000] APSDCapable[12]=0
    [   39.224000] APSDCapable[13]=0
    [   39.228000] APSDCapable[14]=0
    [   39.236000] APSDCapable[15]=0
    [   39.240000] default ApCliAPSDCapable[0]=0
    [   39.248000] default ApCliAPSDCapable[1]=0
    [   39.260000] DfsZeroWait Support=0/0
    [   39.264000] DfsZeroWaitCacTime=0/0
    [   39.300000] rtmp_read_wds_from_file(): WDS Profile
    [   39.312000] APWdsInitialize():WdsEntry[0]
    [   39.320000] APWdsInitialize():WdsEntry[1]
    [   39.328000] APWdsInitialize():WdsEntry[2]
    [   39.336000] APWdsInitialize():WdsEntry[3]
    [   39.344000] WDS-Enable mode=0
    [   39.348000] AndesSendCmdMsg: Could not send in band command due to diablefRTMP_ADAPTER_MCU_SEND_IN_BAND_CMD
    [   39.372000] HT: WDEV[0] Ext Channel = ABOVE
    [   39.380000] HT: greenap_cap = 0
    [   39.420000] IcapMode = 0
    [   39.432000] WtcSetMaxStaNum: MaxStaNum:103, BssidNum:1, WdsNum:4, ApcliNum:2, MaxNumChipRept:16, MinMcastWcid:125
    [   39.452000] Top Init Done!
    [   39.456000] Use alloc_skb
    [   39.464000] :MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
    [   39.464000] RX[0] DESC a0c14000 size = 16384
    [   39.468000] RX[1] DESC a0c12000 size = 8192
    [   39.468000] Hif Init Done!
    [   39.468000] ctl->txq = c05ad2d4
    [   39.468000] ctl->rxq = c05ad2e0
    [   39.468000] ctl->ackq = c05ad2ec
    [   39.468000] ctl->kickq = c05ad2f8
    [   39.468000] ctl->tx_doneq = c05ad304
    [   39.468000] ctl->rx_doneq = c05ad310
    [   39.468000] mt7615_fw_prepare():FW(8a10), HW(8a10), CHIPID(7615))
    [   39.468000] mt7615_fw_prepare(2687): MT7615_E3, USE E3 patch and ram code binary image
    [   39.468000] AndesMTLoadRomMethodFwDlRing(1035), cap->rom_patch_len(11102)
    [   39.468000] AndesRestartCheck: Current TOP_MISC2(0x1)
    [   39.468000] AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
    [   39.468000] 20170809192718a
    [   39.468000]
    [   39.468000] platform =
    [   39.468000] ALPS
    [   39.468000] hw/sw version =
    [   39.472000] 8a108a10
    [   39.472000] patch version =
    [   39.472000] 00000010
    [   39.472000] Patch SEM Status=2
    [   39.472000] MtCmdPatchSemGet:(ret = 0)
    [   39.472000]
    [   39.472000] Patch is not ready && get semaphore success, SemStatus(2)
    [   39.472000] EventGenericEventHandler: CMD Success
    [   39.472000] MtCmdAddressLenReq:(ret = 0)
    [   39.472000] MtCmdPatchFinishReq
    [   39.480000] EventGenericEventHandler: CMD Success
    [   39.480000] Send checksum req..
    [   39.480000] Patch SEM Status=3
    [   39.480000] MtCmdPatchSemGet:(ret = 0)
    [   39.480000]
    [   39.480000] Release patch semaphore, SemStatus(3)
    [   39.480000] AndesMTEraseRomPatch
    [   39.480000] WfMcuHwInit: Before NICLoadFirmware, check IcapMode=0
    [   39.480000] AndesMTLoadFwMethodFwDlRing(809), cap->fw_len(462248)
    [   39.480000] Build Date:_201708190346
    [   39.480000] Build Date:_201708190346
    [   39.480000] AndesRestartCheck: Current TOP_MISC2(0x1)
    [   39.480000] AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
    [   39.484000] EventGenericEventHandler: CMD Success
    [   39.484000] MtCmdAddressLenReq:(ret = 0)
    [   39.488000] EventGenericEventHandler: CMD Success
    [   39.488000] MtCmdAddressLenReq:(ret = 0)
    [   39.488000] MtCmdFwStartReq: override = 1, address = 540672
    [   39.488000] EventGenericEventHandler: CMD Success
    [   39.488000] Build Date:_201707211524
    [   39.488000] EventGenericEventHandler: CMD Success
    [   39.488000] MtCmdAddressLenReq:(ret = 0)
    [   39.492000] MtCmdFwStartReq: override = 4, address = 0
    [   39.544000] EventGenericEventHandler: CMD Success
    [   39.596000] WfMcuHwInit: NICLoadFirmware OK, Check IcapMode=0
    [   39.596000] MCU Init Done!
    [   39.596000] efuse_probe: efuse = 10000212
    [   39.596000] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
    [   39.596000] RtmpEepromGetDefault::e2p_dafault=1
    [   39.596000] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
    [   39.596000] NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
    [   39.608000] NICReadEEPROMParameters: EEPROM 0x52 b317
    [   39.616000] MtCmdSetTxLpfCal:(ret = 0)
    [   39.616000] MtCmdSetTxIqCal:(ret = 0)
    [   39.616000] MtCmdSetTxDcCal:(ret = 0)
    [   39.616000] MtCmdSetRxFiCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] MtCmdSetRxFdCal:(ret = 0)
    [   39.616000] NICReadEEPROMParameters: EEPROM 0x52 b317
    [   40.164000] Country Region from e2p = 101
    [   40.172000] mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
    [   40.184000] mt7615_antenna_default_reset(): DBDC 2G TxPath = 2, 2G RxPath = 2
    [   40.196000] mt7615_antenna_default_reset(): DBDC 5G TxPath = 2, 2G RxPath = 2
    [   40.212000] rtmp_read_txpwr_from_eeprom(233): Don't Support this now!
    [   40.224000] RTMPReadTxPwrPerRate(1381): Don't Support this now!
    [   40.236000] RcRadioInit(): DbdcMode=0, ConcurrentBand=1
    [   40.248000] RcRadioInit(): pRadioCtrl=87726438,Band=0,rfcap=3,channel=1,PhyMode=2 extCha=0xf
    [   40.264000] Band Rf: 1, Phy Mode: 2
    [   40.272000] AntCfgInit(2766): Not support for HIF_MT yet!
    [   40.280000] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
    [   40.296000] MtBfBackOffLoadTable: RF_LOCKDOWN Feature OFF !!!
    [   40.308000] EEPROM Init Done!
    [   40.312000] mt_mac_init()-->
    [   40.320000] mt_mac_pse_init(2750): Don't Support this now!
    [   40.328000] mt7615_init_mac_cr()-->
    [   40.336000] mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
    [   40.348000] MtAsicSetMacMaxLen(1300): Not finish Yet!
    [   40.356000] <--mt_mac_init()
    [   40.368000] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   40.380000] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   40.392000] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
    [   40.408000] MAC Init Done!
    [   40.412000] MT7615BBPInit():BBP Initialization.....
    [   40.420000]  Band 0: valid=1, isDBDC=0, Band=2, CBW=1, CentCh/PrimCh=1/1, prim_ch_idx=0, txStream=2
    [   40.440000]  Band 1: valid=0, isDBDC=0, Band=0, CBW=0, CentCh/PrimCh=0/0, prim_ch_idx=0, txStream=0
    [   40.456000] MT7615BBPInit() todo
    [   40.464000] PHY Init Done!
    [   40.472000] tx_pwr_comp_init():NotSupportYet!
    [   40.480000] MtCmdSetMacTxRx:(ret = 0)
    [   40.488000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=14/14, support 13 channels
    [   40.504000] ApAutoChannelAtBootUp----------------->
    [   40.516000] ApAutoChannelAtBootUp: AutoChannelBootup = 1, AutoChannelFlag = 1
    [   40.528000] MtCmdSetMacTxRx:(ret = 0)
    [   40.536000] mt7615_apply_dcoc() : reload Central CH [1] BW [0] from cetral freq [2417]  offset [2200]
    [   40.556000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   40.564000] mt7615_apply_dpd() : reload Central CH [1] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   40.584000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   40.592000] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0
    [   40.608000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   40.804000] br-lan: port 2(rai0) entered forwarding state
    [   40.840000] mt7615_apply_dcoc() : reload Central CH [2] BW [0] from cetral freq [2417]  offset [2200]
    [   40.856000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   40.864000] mt7615_apply_dpd() : reload Central CH [2] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   40.884000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   40.892000] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0
    [   40.912000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   41.132000] mt7615_apply_dcoc() : reload Central CH [3] BW [0] from cetral freq [2417]  offset [2200]
    [   41.148000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   41.156000] mt7615_apply_dpd() : reload Central CH [3] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   41.176000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   41.184000] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0
    [   41.204000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   41.424000] mt7615_apply_dcoc() : reload Central CH [4] BW [0] from cetral freq [2432]  offset [2300]
    [   41.440000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   41.448000] mt7615_apply_dpd() : reload Central CH [4] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   41.468000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   41.476000] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0
    [   41.496000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   41.716000] mt7615_apply_dcoc() : reload Central CH [5] BW [0] from cetral freq [2432]  offset [2300]
    [   41.732000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   41.740000] mt7615_apply_dpd() : reload Central CH [5] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   41.760000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   41.768000] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
    [   41.788000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   42.144000] mt7615_apply_dcoc() : reload Central CH [6] BW [0] from cetral freq [2432]  offset [2300]
    [   42.160000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   42.168000] mt7615_apply_dpd() : reload Central CH [6] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   42.188000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   42.196000] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0
    [   42.216000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   42.436000] mt7615_apply_dcoc() : reload Central CH [7] BW [0] from cetral freq [2447]  offset [2400]
    [   42.452000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   42.460000] mt7615_apply_dpd() : reload Central CH [7] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   42.480000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   42.488000] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0
    [   42.508000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   42.728000] mt7615_apply_dcoc() : reload Central CH [8] BW [0] from cetral freq [2447]  offset [2400]
    [   42.744000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   42.752000] mt7615_apply_dpd() : reload Central CH [8] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   42.772000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   42.780000] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
    [   42.800000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   43.020000] mt7615_apply_dcoc() : reload Central CH [9] BW [0] from cetral freq [2447]  offset [2400]
    [   43.036000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   43.044000] mt7615_apply_dpd() : reload Central CH [9] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   43.064000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   43.072000] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
    [   43.092000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   43.324000] mt7615_apply_dcoc() : reload Central CH [10] BW [0] from cetral freq [2467]  offset [2500]
    [   43.340000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   43.348000] mt7615_apply_dpd() : reload Central CH [10] BW [0] from cetral freq [2462] i[46] offset [4cd0]
    [   43.368000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   43.376000] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0
    [   43.396000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   43.616000] mt7615_apply_dcoc() : reload Central CH [11] BW [0] from cetral freq [2467]  offset [2500]
    [   43.632000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   43.640000] mt7615_apply_dpd() : reload Central CH [11] BW [0] from cetral freq [2462] i[46] offset [4cd0]
    [   43.660000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   43.668000] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0
    [   43.688000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   44.044000] ====================================================================
    [   44.056000] Channel   1 : Busy Time =   3711, Skip Channel = FALSE, BwCap = TRUE
    [   44.072000] Channel   2 : Busy Time =   3858, Skip Channel = FALSE, BwCap = TRUE
    [   44.088000] Channel   3 : Busy Time =   3177, Skip Channel = FALSE, BwCap = TRUE
    [   44.100000] Channel   4 : Busy Time =   5444, Skip Channel = FALSE, BwCap = TRUE
    [   44.116000] Channel   5 : Busy Time =  12774, Skip Channel = FALSE, BwCap = TRUE
    [   44.132000] Channel   6 : Busy Time =  16306, Skip Channel = FALSE, BwCap = TRUE
    [   44.144000] Channel   7 : Busy Time =  11009, Skip Channel = FALSE, BwCap = TRUE
    [   44.160000] Channel   8 : Busy Time =   6959, Skip Channel = FALSE, BwCap = TRUE
    [   44.176000] Channel   9 : Busy Time =   6311, Skip Channel = FALSE, BwCap = TRUE
    [   44.188000] Channel  10 : Busy Time =   4003, Skip Channel = FALSE, BwCap = TRUE
    [   44.204000] Channel  11 : Busy Time =  33557, Skip Channel = FALSE, BwCap = TRUE
    [   44.220000] ====================================================================
    [   44.232000] Rule 3 Channel Busy time value : Select Primary Channel 3
    [   44.248000] Rule 3 Channel Busy time value : Min Channel Busy = 3177
    [   44.260000] Rule 3 Channel Busy time value : BW = 20
    [   44.268000]  AutoChSelUpdateChannel(): Update channel for wdev0 for this band PhyMode = 14,Channel = 3
    [   44.288000] ApAutoChannelAtBootUp<-----------------
    [   44.300000] WifiSysOpen(), wdev idx = 0
    [   44.308000] wdev_attr_update(): wdevId0 = 04:ab:18:xx:xx:fd
    [   44.320000] Current Channel is 3. DfsZeroWaitSupport=0
    [   44.328000] MtAsicSetChBusyStat(840): Not support for HIF_MT yet!
    [   44.340000] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
    [   44.352000] [PMF]WPAMakeRsnIeCap: RSNIE Capability MFPC=0, MFPR=0
    [   44.364000]
    [   44.364000] [Force Roam] => Force Roam Support = 0
    [   44.376000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:14,Channel=3
    [   44.392000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=14/14, support 13 channels
    [   44.412000] Enable 20/40 BSSCoex Channel Scan(BssCoex=1)
    [   44.420000] MtCmdSetMacTxRx:(ret = 0)
    [   44.428000] mt7615_apply_dcoc() : reload Central CH [1] BW [0] from cetral freq [2417]  offset [2200]
    [   44.448000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   44.456000] mt7615_apply_dpd() : reload Central CH [1] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   44.476000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   44.484000] MtCmdChannelSwitch: control_chl = 1,control_ch2=0, central_chl = 1 DBDCIdx= 0, Band= 0
    [   44.500000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   44.524000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   44.844000] mt7615_apply_dcoc() : reload Central CH [2] BW [0] from cetral freq [2417]  offset [2200]
    [   44.860000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   44.868000] mt7615_apply_dpd() : reload Central CH [2] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   44.888000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   44.896000] MtCmdChannelSwitch: control_chl = 2,control_ch2=0, central_chl = 2 DBDCIdx= 0, Band= 0
    [   44.916000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   44.936000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   45.316000] :MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
    [   45.348000] mt7615_apply_dcoc() : reload Central CH [3] BW [0] from cetral freq [2417]  offset [2200]
    [   45.364000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   45.372000] mt7615_apply_dpd() : reload Central CH [3] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   45.392000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   45.400000] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0
    [   45.420000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   45.440000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   45.752000] mt7615_apply_dcoc() : reload Central CH [4] BW [0] from cetral freq [2432]  offset [2300]
    [   45.768000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   45.776000] mt7615_apply_dpd() : reload Central CH [4] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   45.796000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   45.804000] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0
    [   45.824000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   45.844000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   46.176000] mt7615_apply_dcoc() : reload Central CH [5] BW [0] from cetral freq [2432]  offset [2300]
    [   46.192000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   46.200000] mt7615_apply_dpd() : reload Central CH [5] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   46.220000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   46.228000] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
    [   46.248000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   46.268000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   46.808000] mt7615_apply_dcoc() : reload Central CH [6] BW [0] from cetral freq [2432]  offset [2300]
    [   46.824000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   46.832000] mt7615_apply_dpd() : reload Central CH [6] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   46.852000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   46.860000] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0
    [   46.880000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   46.900000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   47.208000] mt7615_apply_dcoc() : reload Central CH [7] BW [0] from cetral freq [2447]  offset [2400]
    [   47.224000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   47.232000] mt7615_apply_dpd() : reload Central CH [7] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   47.252000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   47.260000] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0
    [   47.280000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   47.300000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   47.856000] mt7615_apply_dcoc() : reload Central CH [8] BW [0] from cetral freq [2447]  offset [2400]
    [   47.872000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   47.880000] mt7615_apply_dpd() : reload Central CH [8] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   47.900000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   47.908000] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
    [   47.928000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   47.948000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   48.312000] mt7615_apply_dcoc() : reload Central CH [9] BW [0] from cetral freq [2447]  offset [2400]
    [   48.328000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   48.336000] mt7615_apply_dpd() : reload Central CH [9] BW [0] from cetral freq [2442] i[45] offset [4bf8]
    [   48.356000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   48.364000] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
    [   48.384000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   48.404000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   48.712000] mt7615_apply_dcoc() : reload Central CH [10] BW [0] from cetral freq [2467]  offset [2500]
    [   48.728000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   48.736000] mt7615_apply_dpd() : reload Central CH [10] BW [0] from cetral freq [2462] i[46] offset [4cd0]
    [   48.756000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   48.764000] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0
    [   48.784000] BW = 0,TXStream = 4, RXStream = 4, scan(1)
    [   48.804000] AP OBSS SYNC - BBP R4 to 20MHz.l
    [   49.112000] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
    [   49.112000]  LinkToOmacIdx = 0, LinkToWdevType = 1
    [   49.140000] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
    [   49.276000]  [RadarStateCheck]Set into RD_NORMAL_MODE
    [   49.288000] MtCmdTxPowerSKUCtrl: fgTxPowerSKUEn: 1, BandIdx: 0
    [   49.300000] MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
    [   49.312000] MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 1, BandIdx: 0
    [   49.324000] mt7615_bbp_adjust():rf_bw=0, ext_ch=0, PrimCh=3, HT-CentCh=3, VHT-CentCh=0
    [   49.340000] mt7615_apply_dcoc() : reload Central CH [3] BW [0] from cetral freq [2417]  offset [2200]
    [   49.360000] MtCmdGetRXDCOCCalResult:(ret = 0)
    [   49.368000] mt7615_apply_dpd() : reload Central CH [3] BW [0] from cetral freq [2422] i[44] offset [4b20]
    [   49.388000] MtCmdGetTXDPDCalResult:(ret = 0)
    [   49.396000] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0
    [   49.412000] BW = 0,TXStream = 4, RXStream = 4, scan(0)
    [   49.444000] ap_phy_rrm_init_byRf(): AP Set CentralFreq at 3(Prim=3, HT-CentCh=3, VHT-CentCh=0, BBP_BW=0)
    [   49.476000] LeadTimeForBcn, OmacIdx = 0, WDEV_WITH_BCN_ABILITY
    [   49.488000] MtAsicSetRalinkBurstMode(2605): Not support for HIF_MT yet!
    [   49.504000] MtAsicSetPiggyBack(777): Not support for HIF_MT yet!
    [   49.516000] MtAsicSetTxPreamble(2584): Not support for HIF_MT yet!
    [   49.528000] ap_ftkd> Initialize FT KDP Module...
    [   49.536000] Main bssid = 04:ab:18:xx:xx:fd
    [   49.544000] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
    [   49.556000] MtCmdSetMacTxRx:(ret = 0)
    [   49.560000] MCS Set = ff ff ff ff 01
    [   49.568000] <==== mt_wifi_init, Status=0
    [   49.576000] MtCmdEDCCACtrl: BandIdx: 0, EDCCACtrl: 1
    [   49.588000] WDS_Init():
    [   49.592000] The new WDS interface MAC = FF:FF:FF:FF:FF:FF
    [   49.604000]   MacTabMatchWCID = 0
    [   49.608000] wlan_operate_set_vht_bw(): new vht_bw:1 > cap_vht_bw: 0, correct to cap_vht_bw
    [   49.628000] The new WDS interface MAC = FF:FF:FF:FF:FF:FF
    [   49.636000]   MacTabMatchWCID = 0
    [   49.644000] wlan_operate_set_vht_bw(): new vht_bw:1 > cap_vht_bw: 0, correct to cap_vht_bw
    [   49.664000] The new WDS interface MAC = FF:FF:FF:FF:FF:FF
    [   49.672000]   MacTabMatchWCID = 0
    [   49.680000] wlan_operate_set_vht_bw(): new vht_bw:1 > cap_vht_bw: 0, correct to cap_vht_bw
    [   49.700000] The new WDS interface MAC = FF:FF:FF:FF:FF:FF
    [   49.708000]   MacTabMatchWCID = 0
    [   49.716000] wlan_operate_set_vht_bw(): new vht_bw:1 > cap_vht_bw: 0, correct to cap_vht_bw
    [   49.732000] Total allocated 4 WDS interfaces!
    [   49.744000] wlan_operate_set_vht_bw(): new vht_bw:1 > cap_vht_bw: 0, correct to cap_vht_bw
    [   49.760000] wlan_operate_set_vht_bw(): new vht_bw:1 > cap_vht_bw: 0, correct to cap_vht_bw
    [   49.780000] WtcSetMaxStaNum: MaxStaNum:103, BssidNum:1, WdsNum:4, ApcliNum:2, MaxNumChipRept:16, MinMcastWcid:125
    [   49.840000] red_is_enabled: set CR4/N9 RED Enable to 1.
    [   49.852000] cp_support_is_enabled: set CR4 CP_SUPPORT to Mode 2.
    [   49.864000] Correct apidx from 0 to 0 for WscUUIDInit
    [   49.876000] Generate UUID for apidx(0)
    [   49.884000] PpeDevRegHandler : ineterface ra0 register (1)
    [   49.956000] device ra0 entered promiscuous mode
    [   49.968000] br-lan: port 3(ra0) entered forwarding state
    [   49.976000] br-lan: port 3(ra0) entered forwarding state
    [   51.980000] br-lan: port 3(ra0) entered forwarding state
    [   52.304000] PpeDevRegHandler : ineterface apcli0 register (2)
    [   52.316000] wlan_operate_set_vht_bw(): new vht_bw:1 > cap_vht_bw: 0, correct to cap_vht_bw
    [   52.332000] WifiSysOpen(), wdev idx = 5
    [   52.340000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:14,Channel=3
    [   52.360000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:14,Channel=3
    [   52.376000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=14/14, support 13 channels
    [   52.396000] PpeDevRegHandler : ineterface apclii0 register (3)
    [   52.408000] WifiSysOpen(), wdev idx = 5
    [   52.416000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:49,Channel=52
    [   52.432000] HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:49,Channel=52
    [   52.452000] CountryCode(2.4G/5G)=1/1, RFIC=25, PHY mode(2.4G/5G)=49/49, support 19 channels
    dnsmasq
    dnsmasq [br-lan]
    [   53.112000]
    [   53.112000]  Set_Led_Proc ==> arg = 00-00-00-00-02-00-00-00
    [   53.124000]
    [   53.124000] Set_Led_Proc
    [   53.136000] 00
    [   53.136000] 00
    [   53.140000] 00
    [   53.144000] 00
    [   53.148000] 02
    [   53.152000] 00
    [   53.156000] 00
    [   53.156000] 00
    [   53.160000] AndesLedEnhanceOP: Success!
    [   53.224000]
    [   53.224000]  Set_Led_Proc ==> arg = 00-00-00-00-02-00-00-00
    [   53.240000]
    [   53.240000] Set_Led_Proc
    [   53.248000] 00
    [   53.248000] 00
    [   53.252000] 00
    [   53.256000] 00
    [   53.260000] 02
    [   53.264000] 00
    [   53.268000] 00
    [   53.272000] 00
    [   53.272000] AndesLedEnhanceOP: Success!
    start ddns
    
    add_cron
    add_cron data
    FC start
    FC Disable
    

RTL838xのサーマルメータと割り込み

RTL838xではSoC内にサーマルメータが内蔵されていて、レジスタを読み取ることで温度を知ることができる。1℃刻みと思われる。
このサーマルメータでは下限値と上限値を設定することができ、設定されたディレイ(恐らくms単位)毎の温度がもし設定された下限値を下回るか上限値を上回る場合は、割り込みを発生させるものと予想された。
RTL83xx/RTL93xxではSoCのレジスタには

  • SoC
  • Switch Core (swcore)

の2つのリージョンが存在しており、前者はGPIOやUART、WDTなどSoCとしてベーシックな機能が集まっている。後者はMACやPHYの他サーマルメータ等、スイッチングハブとして特化した機能が集まっている。

RTL83xxにおいては(RTL93xxはまだよく知らない)最上位の割り込みコントローラはMIPSのジェネリックなコントローラとなっており、それのみではピン数が足りないので上記のSoCリージョン内に既にLinux Kernelにドライバが有る(irq-realtek-rtl)割り込みコントローラが存在している。このコントローラ内に存在するビットの1つにswcoreがあり、どうもこれは上記Switch Core (swcore)リージョン側に存在する機能の割り込みをすべてまとめて出してくるビットである模様。

そしてSwitch Core (swcore)側にもその中の割り込みをとりまとめるコントローラが存在しているが、現状そちらのドライバは存在せず、このコントローラ内を構成する1つに過ぎないLink Change(RJ45ポートのリンクアップ/リンクダウン割り込み)のみが出て来、上位のSoCリージョン側のコントローラにあるswcoreビットに出て来るものとして扱っているようである。今のところサーマルメータのドライバは存在しないためにそれの割り込みも出て来るはずは無いので仕方無し。

その為、試しにサーマルメータを有効化して下限値を設定し下限値比較を有効にしたところ、下回った際に割り込みが発生したと思われるが、SoCリージョン側ではLink Changeとして検出してしまい、本来のサーマルメータの割り込みのstateをどうやっても解除できないために連続して大量にLink Change割り込みスレッドが呼ばれたうえで、WDTか何かによってLinux Kernelがリセットされ再起動された。
2022/01/14追記: 大量のログに埋もれて見逃していたが、WDTによってリセットされていた。

...(大量の同じログ)...
[81273.840209] RTL8380 Link change: status: 2000, ports 0
[81273.845971] RTL8380 Link change: status: 2000, ports 0
[81273.851792] RTL8380 Link change: status: 2000, ports 0
[81273.857552] RTL8380 Link change: status: 2000, ports 0
[81273.863373] RTL8380 Link change: statu

U-Boot Version 2.2.1 (Jan 18 2019 - 16:25:47)

Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHz
DRAM:  128 MB
SPI-F: 1x16 MB
Loading 65536B env. variables from offset 0x80000
Switch Model: BSH-G24MB (Port Count: 24)
Switch Chip: RTL8382M
####VERSION IS NEW ####
###START LED SETTING ###
**************************************************
#### RTL8218B config - MAC ID = 0 ####
Now External 8218B
**************************************************
#### RTL8218B config - MAC ID = 8 ####
Now Internal PHY
**************************************************
#### RTL8218B config - MAC ID = 16 ####
Now External 8218B

####-PHY POWER OFF-####

####-PHY POWER OFF-####
Net:   Net Initialization Skipped
rtl8380#0
Hit any key to stop autoboot:  0

本来Link changeログの ports はポート番号とビットの対応する形で値が現れるが、割り込みを発生させているのはLink changeではなくサーマルメータである為に、該当するポートが無くビットが立たず、0となっている。

RTL838x, RTL839x MODEL_NAME_INFO

Switch-M24eG PN28240KとSwitch-M48eG PN28480Kから取ったもの

# Switch-M24eG PN28240K

root@OpenWrt:/# devmem 0x1b0000d4 32
0x83826800
root@OpenWrt:/# devmem 0x1b0000d8 32
0x00000000
root@OpenWrt:/# devmem 0x1b000058 32 3
root@OpenWrt:/# devmem 0x1b0000d8 32 0xa0000000
root@OpenWrt:/# devmem 0x1b0000d8 32
0xA0036275

# Switch-M48eG PN28480K

root@OpenWrt:/# devmem 0x1b000ff0 32
0x83936802
root@OpenWrt:/# devmem 0x1b000ff4 32
0xA0016290