はてなブログに移行しました

メインのブログと同様、WordPress.comが近年技術ブログ用途として著しく不適格となってきている為、雑記であるこちらもはてなブログに移行しました。

大破雑記帳 – https://memo205.hatenablog.jp

既にこちらのブログの更新は打ち切っており、移行先での投稿を始めています。
なお、特段の理由が無い限り、今後こちらのブログは一切更新しません。

当初こちらもメインと同じく全ての記事を移行しようと考えていましたが、メインのブログに比べて雑記という特性上非常に記事が多くなっており、全てを手直しの上公開するのは現実的ではないと判断しました。2021年半ばの記事まで移行したところでひとまず打ち止めとし、そこまでは移行先のブログで、それ以前の記事はこの旧ブログで公開するということにしました。

移行先のブログでは、これまでと変わらずメモ代わりに書き散らしていく予定です。
今後もよろしくお願いします。

TS3400D メモ

マイコンとのやり取りがバイナリデータなのが面倒。ASCIIベースなら楽だったのだが

コンソール

  • フロントのシリアルコンソールは内蔵しているマイコンによって入力が無効化されている
    有効化するには既定で “serialmode_ups” に設定されているモードを “serialmode_console” に変更する必要がある
    参考:

    root@OpenWrt:~# stty -F /dev/ttyS3 38400 parenb      # ttyS3のbaudrateを38400bpsに、パリティを有効にセット
    root@OpenWrt:~# echo -e "\x00\x0f\xf1" > /dev/ttyS3  # シリアルポートのモードを "serialmode_console" にセット
    root@OpenWrt:~# echo -e "\x00\x0f\xf1" > /dev/ttyS3  # 1回では正しく機能していないようなので再度送出
    

    で可。

TS3400D

HDL2-A/HDL-A, HDL2-AAXに続いてNASを探していた際、ヤフオクで見付けて悩んだ末に落札したもの。
これまで弄ってきた機種よりも多いストレージ4台を格納することができ、使い方の幅も広がるのではと興味を惹かれた。
弄っていくのでメモ。

MAC

確認中

  • LAN: 00:E0:4D:xx:xx:19 (?)
  • WAN: 00:E0:4D:xx:xx:18 (board_info, 0x6 (hex))
  • 2.4G: 84:25:3F:xx:xx:xx (Mini PCIe Card)
  • 5G: 84:25:3F:xx:xx:xx (Mini PCIe Card)

Bootloader

フロントのコンソールポートからログは出力されるが入力が無効化されている為、ブート中断は不可

Kernel

Kernelにおいてもコンソールポートの入力が無効化されている為、ブート完了後も操作不可
ドライブベイのストレージからブートできない場合、NAND Flashからブートされる

  • bootlog
    
    
    BootROM 1.20
    Booting from SPI flash
    MARU_DEBUG_RESET
    High speed PHY - Ver 1.6.0 (COM-PHY-V20)
    Read  Reg: 0x00020868= 01022200
    Write Reg: 0x00020868= 01022000
    Step 1: First phase of PEX-PIPE Configuration
    Write Reg: 0x00041B00= 00C10025
    Write Reg: 0x00041B00= 00C20200
    Write Reg: 0x00041B00= 00C5011F
    Write Reg: 0x00081B00= 00C10025
    Write Reg: 0x00081B00= 00C3000F
    Write Reg: 0x00081B00= 00C5011F
    Step 2: Configure the desire PIN_PHY_GEN
    Read  Reg: 0x000A4058= 00000227
    Write Reg: 0x000A4058= 00000220
    Read  Reg: 0x000A2058= 00000227
    Write Reg: 0x000A2058= 00000220
    Step 3 QSGMII enable
    Step 4: Configure SERDES MUXes
    Write Reg: 0x00018270= 02211111
    Write Reg: 0x00018274= 00000000
    Step 5: Activate the RX High Impedance Mode
    Write Reg: 0x00041B00= 00481084
    Write Reg: 0x00081B00= 00489084
    Write Reg: 0x000A4920= 00008084
    Write Reg: 0x000A2920= 00008084
    Step 6: [PEX-Only] PEX-Main configuration (X4 or X1)
    Write Reg: 0x00018204= 00000200
    Read  Reg: 0x00018204= 00000200
    Write Reg: 0x00018204= 00000330
    Step 6.2: [PEX-Only] PCI Express Link Capabilities
    Read  Reg: 0x0004006C= 0007AC42
    Write Reg: 0x0004006C= 0007AC42
    Read  Reg: 0x0008006C= 0007AC12
    Write Reg: 0x0008006C= 0007AC12
    Step 7: [PEX-X4 Only] To create PEX-Link
    Read  Reg: 0x000182F8= FFFF0000
    Write Reg: 0x000182F8= FFFF000F
    Steps 7,8,9,10 and 11
    Write Reg: 0x00041B00= 0001FC60
    Write Reg: 0x00081B00= 0001FC60
    Write Reg: 0x000A4804= 0000F801
    Write Reg: 0x000A488C= 00000400
    Write Reg: 0x000A4918= 00000400
    Read  Reg: 0x000A4058= 00000220
    Write Reg: 0x000A4058= 00000227
    Write Reg: 0x000A2804= 0000F801
    Write Reg: 0x000A288C= 00000400
    Write Reg: 0x000A2918= 00000400
    Read  Reg: 0x000A2058= 00000220
    Write Reg: 0x000A2058= 00000227
    Steps 12: [PEX-Only] Last phase of PEX-PIPE ConfigurationWrite Reg: 0x00041B00= 00C10024
    Write Reg: 0x00081B00= 00C10024
    Steps 13: Wait 15ms before checking resultsRead  Reg: 0x000A405C= 00013007
    Read  Reg: 0x000A205C= 00003007
    Steps 14: [PEX-Only]  In order to configureRead  Reg: 0x00040060= 00420010
    Write Reg: 0x00040060= 00420010
    Read  Reg: 0x00080060= 00420010
    Write Reg: 0x00080060= 00420010
    Steps 15: [PEX-Only]  In order to configureWrite Reg: 0x00041B00= 000F2A21
    Write Reg: 0x00041B00= 004F6219
    Write Reg: 0x00081B00= 000F2A21
    Write Reg: 0x00081B00= 004F6219
    Write Reg: 0x000A483C= 00008A31
    Write Reg: 0x000A4834= 0000C928
    Write Reg: 0x000A4838= 000030F0
    Write Reg: 0x000A4840= 000030F5
    Write Reg: 0x000A283C= 00008A31
    Write Reg: 0x000A2834= 0000C928
    Write Reg: 0x000A2838= 000030F0
    Write Reg: 0x000A2840= 000030F5
    Steps 16: [PEX-Only] Training EnableRead  Reg: 0x00018204= 00000330
    Write Reg: 0x00018204= 00000333
    DDR3 Init. -  SPD_SUPPORT: UNDEFINED
    DDR3 Init. - defined(MV88F78X60) && !defined(MV88F78X60_Z1) : True
                                                                      DDR3 Training Sequence - Ver 3.0.0
    DDR3 Init. - uiFabOpt : 5
    DDR3 Init. - socNum : 00000001
    DDR3 Traning Squence - Stage 0
    DDR3 Init. - uiCpuFreq : 00000003
    DDR3 Init. -  ECC_SUPPORT: UNDEFINED
    DDR3 Init. -  DQS_CLK_ALIGNED: UNDEFINED
    DDR3 Traning Squence - Stage 1
    DDR3 Training Sequence - Static MC Init
    DDR3 Init.[ddr3GetStaticDdrMode()] - chipBoardRev : 5
     * DDR3 Init.[ddr3GetStaticDdrMode()] - if chipBoardRev = A0 : 3
     * DDR3 Init.[ddr3GetStaticDdrMode()] - if chipBoardRev = B0 : 5
     * DDR3 Init.[ddr3GetStaticDdrMode()] - if chipBoardRev = Z1 : 0
    DDR3 Init.[ddr3GetStaticDdrMode()] - ddr3GetCpuFreq() : 3
    DDR3 Init.[ddr3GetStaticDdrMode()] - ddr3GetFabOpt() : 5
            i=0:ddr_modes[i]:cpuFreq[0003] fabFreq[0005] chipBoardRev[0005]
    DDR3 Init. -  DUNIT_STATIC: DEFINED
    DDR3 Init. -  AUTO_DETECTION_SUPPORT: UNDEFINED
    DDR3 Init. -  MV88F78X60: DEFINED
    DDR3 Init. -  DUNIT_SPD: UNDEFINED
    DDR3 Training Sequence - HW Training Procedure
    DDR3 Training Sequence - Switching XBAR Window to FastPath Window
    Buffalo : Over write the parameter 0x1538 -> 0x00000009
    Buffalo : Over write the parameter 0x153C -> 0x0000000f
    DDR3 Training Sequence - Ended Successfully
    BootROM: Image checksum verification PASSED
    
    U-Boot 2011.12 (Oct 18 2013 - 04:32:11) Marvell version: 2012_Q4.2
    
    Board: BUFFALO TeraStation =TS3400D=
    SoC:   MV78230 B0
           running 2 CPUs
           Custom configuration
    CPU:   Marvell PJ4B (584) v7 (Rev 2) LE
           CPU 0
           CPU    @ 1333 [MHz]
           L2     @ 667 [MHz]
           TClock @ 250 [MHz]
           DDR    @ 667 [MHz]
           DDR 32Bit Width, FastPath Memory Access
           DDR ECC Disabled
    DRAM:  1024 MiB
    
    Map:   Code:            0x3fee9000:0x3ff9df78
           BSS:             0x3ffef960
           Stack:           0x3f9d8ef8
           PageTable:       0x003e0000
           Heap:            0x3f9d9000:0x3fee9000
    
    NAND:  512 MiB
    MMC:   MRVL_MMC: 0
    SF: Detected MX25L8006E with page size 64 KiB, total 1 MiB
    PEX 0.0(0): Root Complex Interface, Detected Link X4, GEN 1.1
    PEX 1.0(1): Root Complex Interface, Detected Link X1, GEN 2.0
    u-boot envinit tval=fef96294
    BOOTVER=0.17
    FPU initialized to Run Fast Mode.
    USB 0: Host Mode
    USB 1: Host Mode
    USB 2: Host Mode
    sending BOOT_START
    Late init
    UCOM ID= 0
    boardId=4
    boot trigger=normal
    
    Marvell Serial ATA Adapter
    Integrated Sata device found
    Found adapter at bus 0, device 1 ... Scanning channels
    
    MAC Address : 10:6F:3F:xx:xx:8F
    boot drive not found.
    Net:   egiga0 [PRIME], egiga1
    Hit any key to stop autoboot:  0
    ** Bad partition 1 **
    ** Bad partition 1 **
    <>
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    
    device nand0 , # parts = 1
     #: name                size            offset          mask_flags
     0: nandubifs           0x000020000000          0x000000000000          0
    
    active partition: nand0,0 - (nandubifs) 0x000020000000 @ 0x000000000000
    
    defaults:
    mtdids  : none
    mtdparts: none
    Creating 1 MTD partitions on "nand0":
    0x000000000000-0x000020000000 : "mtd=0"
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    UBI: attaching mtd1 to ubi0
    UBI: physical eraseblock size:   131072 bytes (128 KiB)
    UBI: logical eraseblock size:    126976 bytes
    UBI: smallest flash I/O unit:    2048
    UBI: VID header offset:          2048 (aligned 2048)
    UBI: data offset:                4096
    UBI: attached mtd1 to ubi0
    UBI: MTD device name:            "mtd=0"
    UBI: MTD device size:            512 MiB
    UBI: number of good PEBs:        4088
    UBI: number of bad PEBs:         8
    UBI: max. allowed volumes:       128
    UBI: wear-leveling threshold:    4096
    UBI: number of internal volumes: 1
    UBI: number of user volumes:     1
    UBI: available PEBs:             0
    UBI: total number of reserved PEBs: 4088
    UBI: number of PEBs reserved for bad PEB handling: 40
    UBI: max/mean erase counter: 1/0
    UBIFS: recovery needed
    UBIFS: recovery deferred
    UBIFS: mounted UBI device 0, volume 0, name "nandubifs"
    UBIFS: mounted read-only
    UBIFS: file system size:   511586304 bytes (499596 KiB, 487 MiB, 4029 LEBs)
    UBIFS: journal size:       25649152 bytes (25048 KiB, 24 MiB, 202 LEBs)
    UBIFS: media format:       w4/r0 (latest is w4/r0)
    UBIFS: default compressor: LZO
    UBIFS: reserved for root:  5182151 bytes (5060 KiB)
    Loading file 'uImage.buffalo' to addr 0x01200000 with size 3628464 (0x00375db0)...
    Done
    Loading file 'initrd.buffalo' to addr 0x02600000 with size 24320911 (0x01731b8f)...
    Done
    <>
    ## Booting kernel from Legacy Image at 01200000 ...
       Image Name:   Linux-3.3.4
       Created:      2014-11-10  20:24:08 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3628400 Bytes = 3.5 MiB
       Load Address: 00008000
       Entry Point:  00008000
       Verifying Checksum ... OK
    ## Loading init Ramdisk from Legacy Image at 02600000 ...
       Image Name:   initramfs.cpio
       Created:      2014-11-10  20:30:14 UTC
       Image Type:   ARM Linux RAMDisk Image (gzip compressed)
       Data Size:    24320847 Bytes = 23.2 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0
    Initializing cgroup subsys cpu
    Linux version 3.3.4 (jenkins@tsbuild@buffalotech.com) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC release 201307-2123.0cc69bb4 ) ) #1 SMP Mon Nov 10 14:24:03 CST 2014
    CPU: Marvell - PJ4Bv7 Processor [562f5842] revision 2 (ARMv7), cr=10c53c7d
    CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    Machine: Marvell Armada XP Development Board
    Using UBoot passing parameters structure
    Memory policy: ECC disabled, Data cache writealloc
    SMP: init cpus
    PERCPU: Embedded 7 pages/cpu @c0eee000 s6560 r8192 d13920 u32768
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 243839
    Kernel command line: console=ttyS0,115200 panic=5 mtdparts=armada-nand:-(nandubifs) ubi.mtd=1 BOOTVER=0.17 UBOOT_DATE=2013/10/18 nandboot=yes earlyprintk
    PID hash table entries: 4096 (order: 2, 16384 bytes)
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    Memory: 959MB = 959MB total
    Memory: 943140k/943140k available, 39896k reserved, 114684K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xf5800000 - 0xff000000   ( 152 MB)
        lowmem  : 0xc0000000 - 0xf5000000   ( 848 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .text : 0xc0008000 - 0xc06b5000   (6836 kB)
          .init : 0xc06b5000 - 0xc06eb9a0   ( 219 kB)
          .data : 0xc06ec000 - 0xc0726f00   ( 236 kB)
           .bss : 0xc0726f24 - 0xc0767838   ( 259 kB)
    SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    Hierarchical RCU implementation.
    NR_IRQS:211
    Initializing ArmadaXP SOC Timer 0
    sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    Initializing cgroup subsys blkio
    CPU: Testing write buffer coherency: ok
    CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    SMP: prepare CPUs (2 cores)
    SMP: CPU 0 Waking up CPU 1
    Armada-XP Performance Monitor Unit detected (Marvell ID)!!!
    hw perfevents: enabled with Armada PJ4 PMU driver, 7 counters available
    Setting up static identity map for 0x4efe90 - 0x4efed4
    CPU1: Booted secondary processor
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    Brought up 2 CPUs
    SMP: Total of 2 processors activated (2664.03 BogoMIPS).
    devtmpfs: initialized
    xor: measuring software checksum speed
       arm4regs  :  1087.200 MB/sec
       8regs     :   957.600 MB/sec
       32regs    :  1184.000 MB/sec
    xor: using function: 32regs (1184.000 MB/sec)
    NET: Registered protocol family 16
    L0 cache Enabled
    Speculative Prefetch Disabled
    aurora_l2_init
    Aurora: Enabling L2
    Support IO coherency.
    
      Marvell Armada-XP BUFFALO TeraStation =TS3400D= Board -  Soc: MV88F7823 Rev 2 LE
      Detected Tclk 250000000, SysClk 667000000, FabricClk 667000000, PClk 1333000000
      LSP version: AXP_2.0.6
    
    gpiochip_add: registered GPIOs 0 to 67 on device: mv_gpio
    LCD 0 disabled (0).
    registered dev#0 asa ehci_marvell
    Marvell USB EHCI Host controller #0: f4827f00
    registered dev#1 asa ehci_marvell
    Marvell USB EHCI Host controller #1: f48b3000
    registered dev#2 asa ehci_marvell
    Marvell USB EHCI Host controller #2: f48b3100
    PCI-E: Cheking physical bus #0 (controller #0): Enabled - Link UP
    PCI-E: Cheking physical bus #1 (controller #4): Enabled - Link UP
    PCI host bridge to bus 0000:00
    pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe1ffffff]
    PCI: bus0: Fast back to back transfers disabled
    PCI host bridge to bus 0000:01
    pci_bus 0000:01: root bus resource [mem 0xe8000000-0xe9ffffff]
    PCI: bus1: Fast back to back transfers disabled
    pci 0000:01:01.0: BAR 0: assigned [mem 0xe8000000-0xe8001fff 64bit]
    pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
    pci 0000:00:01.0: BAR 2: can't assign io (size 0x100)
    bio: create slab  at 0
    raid6: int32x1    153 MB/s
    raid6: int32x2    235 MB/s
    raid6: int32x4    220 MB/s
    raid6: int32x8    255 MB/s
    raid6: using algorithm int32x8 (255 MB/s)
    vgaarb: loaded
    SCSI subsystem initialized
    Switching to clocksource axp_clocksource
    NET: Registered protocol family 2
    IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
    TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
    TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
    TCP: Hash tables configured (established 131072 bind 65536)
    TCP reno registered
    UDP hash table entries: 512 (order: 2, 16384 bytes)
    UDP-Lite hash table entries: 512 (order: 2, 16384 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: 23748K
    CESA test started: bufNum = 1, bufSize = 20000
    Cesa Test Start: pMbufSrc=f4900000, pFragsSrc=f485c000, pMbufDst=f4900800, pFragsDst=f485e000
    mvCesaInit: channels=2, session=32, queue=256
    cesadev_init(c06bea24)
    Armada XP hwmon thermal sensor initialized.
    ArmadaXP Power Managament Suspend Operations Initialized
    Initializing Armada-XP CPU power management  (WFI)
    MICON ctrl (C) BUFFALO INC. V.1.00 installed.
    Kernel event proc (C) BUFFALO INC. V.1.00 installed.
    MICON V2 (C) BUFFALO INC. V.2.00 installed.(IRQ=168)
    Error : NAK or Illegal Data Recived
    Error : NAK or Illegal Data Recived
    Error : NAK or Illegal Data Recived
    Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.1.00 installed.
    Buffalo CPU Inerupts Driver (C) BUFFALO INC. Ver.0.01 alpha1 installed.
    initial_polarity_val = 0x00000000
    initial_polarity_val_high = 0x0000090f
    Buffalo GPIO SATA Hotplug Event Driver (C) BUFFALO INC. Ver.1.00 installed.-Polling mode-
    UPSDRV (C) BUFFALO INC. V.1.00 installed.
    BUFFALO UPS Recover Function Initialized.
      OMRON contact type ups shutdown support enabled!
    highmem bounce pool size: 64 pages
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    NTFS driver 2.1.30 [Flags: R/O].
    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    fuse init (API version 7.18)
    SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
    SGI XFS Quota Management subsystem
    msgmni has been set to 1664
    async_tx: api initialized (async)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Initializing ths8200_init
    Initializing dove_adi9889_init
    mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
    mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
    mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
    mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
    mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
    mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
    Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0xd0012000 (irq = 41) is a 16550A
    console [ttyS0] enabled
    serial8250.3: ttyS1 at MMIO 0xd0012300 (irq = 44) is a 16550A
    serial8250.1: ttyS2 at MMIO 0xd0012100 (irq = 42) is a 16550A
    serial8250.2: ttyS3 at MMIO 0xd0012200 (irq = 43) is a 16550A
    brd: module loaded
    loop: module loaded
    ** BUFFALO Disable Command Queuing Function [sata_mv 0000:00:01.0] **
    704211ab 00100146 01000002 00000008
    e0000004 00000000 ffffff01 00000000
    00000000 00000000 00000000 11ab11ab
    00000000 00000040 00000000 0000013a
    00025001 00000000 00000000 00000000
    00806005 00000000 00000000 00000000
    00110010 00000081
    sata_mv 0000:00:01.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
    scsi0 : sata_mv
    scsi1 : sata_mv
    scsi2 : sata_mv
    scsi3 : sata_mv
    ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000 irq 58
    ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000 irq 58
    ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000 irq 58
    ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000 irq 58
    sata_mv sata_mv.0: cannot get clkdev
    ** BUFFALO Disable Command Queuing Function [sata_mv sata_mv.0] **
    sata_mv sata_mv.0: slots 32 ports 2
    scsi4 : sata_mv
    scsi5 : sata_mv
    ata5: SATA max UDMA/133 irq 55
    ata6: SATA max UDMA/133 irq 55
    
    INFO: Found spi_flash 0 - base 0xf0000000, size 0x1000000
    INFO: flashInfoFill - Found 1 Flash Devices
    INFO: flash_map_init - detected 1 devices
    MTD: Initialize the spi_flash device at address 0xf0000000
    
    INFO: Io remapped successfully - phy addr = 0xf0000000, virt addr = 0xfab00000
    INFO: Using sflash to probe spi_flash at address 0xf0000000, size 0x1000000, width 2mSPI Serial flash detected @ 0xf0000000, 1024KB (16sec x 64KB)
     - detected OK - OK.
    armada-nand armada-nand.0: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
    NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    1 cmdlinepart partitions found on MTD device armada-nand
    Creating 1 MTD partitions on "armada-nand":
    0x000000000000-0x000020000000 : "nandubifs"
    UBI: attaching mtd1 to ubi0
    UBI: physical eraseblock size:   131072 bytes (128 KiB)
    UBI: logical eraseblock size:    126976 bytes
    UBI: smallest flash I/O unit:    2048
    UBI: VID header offset:          2048 (aligned 2048)
    UBI: data offset:                4096
    ata1: SATA link down (SStatus 0 SControl 300)
    ata5: SATA link down (SStatus 0 SControl F300)
    ata2: SATA link down (SStatus 0 SControl 300)
    ata3: SATA link down (SStatus 0 SControl 300)
    UBI: max. sequence number:       3359
    UBI: attached mtd1 to ubi0
    UBI: MTD device name:            "nandubifs"
    UBI: MTD device size:            512 MiB
    UBI: number of good PEBs:        4088
    UBI: number of bad PEBs:         8
    UBI: number of corrupted PEBs:   0
    UBI: max. allowed volumes:       128
    UBI: wear-leveling threshold:    4096
    UBI: number of internal volumes: 1
    UBI: number of user volumes:     1
    UBI: available PEBs:             0
    UBI: total number of reserved PEBs: 4088
    UBI: number of PEBs reserved for bad PEB handling: 40
    UBI: max/mean erase counter: 1/0
    UBI: image sequence number:  596401107
    UBI: background thread "ubi_bgt0d" started, PID 471
    mv_eth_probe: port_mask=0xf, cpu_mask=0x3
    0 - Base 0x00000000 , Size = 0x40000000.
    4 - Base 0xf4000000 , Size = 0x00100000.
    8 - Base 0xe0000000 , Size = 0x02000000.
    10 - Base 0xe2000000 , Size = 0x02000000.
    12 - Base 0xe4000000 , Size = 0x02000000.
    14 - Base 0xe6000000 , Size = 0x02000000.
    16 - Base 0xe8000000 , Size = 0x02000000.
    20 - Base 0xea000000 , Size = 0x02000000.
    24 - Base 0xec000000 , Size = 0x02000000.
    26 - Base 0xee000000 , Size = 0x02000000.
    28 - Base 0xd0000000 , Size = 0x00100000.
    30 - Base 0xf0000000 , Size = 0x01000000.
    38 - Base 0xfff00000 , Size = 0x00100000.
    39 - Base 0xf2000000 , Size = 0x02000000.
    41 - Base 0xc8010000 , Size = 0x00010000.
    42 - Base 0xf4480000 , Size = 0x00010000.
    43 - Base 0xf4500000 , Size = 0x00100000.
      o 2 Giga ports supported
      o NETA acceleration mode 2
      o BM supported for CPU: 4 BM pools
      o RX Queue support: 1 Queues * 128 Descriptors
      o TX Queue support: 1 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 Loading network interface(s)
    
      o Port 0 is connected to Linux netdevice
    link down
            giga p=0: mtu=1500, mac=f483be6c
    ata4: SATA link down (SStatus 0 SControl 300)
        o eth0, ifindex = 2, GbE port = 0
    
      o Port 1 is connected to Linux netdevice
    link down
            giga p=1: mtu=1500, mac=f483be6c
        o eth1, ifindex = 3, GbE port = 1
    
    e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k
    e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
    PPP generic driver version 2.4.2
    NET: Registered protocol family 24
    i2c /dev entries driver
    rtc-rs5c372 0-0032: rs5c372a found, 24hr, driver version 0.6
    rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
    md: linear personality registered for level -1
    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
    device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
    cpuidle: using governor ladder
    cpuidle: using governor menu
    mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
    Netfilter messages via NETLINK v0.30.
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP cubic registered
    NET: Registered protocol family 17
    NET: Registered protocol family 5
    Registering the dns_resolver key type
    VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
    ata6: SATA link down (SStatus 0 SControl F300)
    Freeing init memory: 216K
    /init: line 9: /usr/sbin/depmod: No such file or directory
    ====== Entering initramfs(/init) ======
    grep: /var/tmp/signatureinfo: No such file or directory
    grep: /var/tmp/signatureinfo: No such file or directory
    grep: /var/tmp/signatureinfo: No such file or directory
    grep: /var/tmp/signatureinfo: No such file or directory
    grep: /var/tmp/signatureinfo: No such file or directory
    grep: /var/tmp/signatureinfo: No such file or directory
    grep: /var/tmp/signatureinfo: No such file or directory
    grep: /var/tmp/signatureinfo: No such file or directory
    CANDIDATE_NUM=0 : CANDIDATE_LIST=
    Selecting disk with not considering signature
    CANDIDATE_NUM=0 : CANDIDATE_LIST=
    libsys: nas_feature : using /root/.nas_features/JP/0x0000201E
    Checking the existance of micon ...
    #[miconapl.mcon_get_version]
    mcon_version=TS-M  Series V1.03
    libsys: /etc/sysctl.conf : using /root/.params/sysctl/0x0000201E
    ls: /dev/rtc: No such file or directory
    libsys: /dev/rtc was updated : /dev/rtc 254 0
    Wed Nov 14 00:15:54 2007  -0.991086 seconds
    Wed Nov 14 00:15:54 JST 2007
    LibSys_GetUsbDiskStartNum : Usb device not found(/sys/block/sda/device). Returning 1
    grep: /var/tmp/devlink: No such file or directory
    create_devlink:Using new routine.
    console
    panic
    mtdparts
    ubi.mtd
    BOOTVER
    UBOOT_DATE
    nandboot
    linuxrc:choose operation (timeout 4[s])
     1:RamRoot 2:NfsRoot 3:sda1 4:sda2 other:HddRoot  ? 
    
           ***** USB or NAND boot detected.   *****
           ***** Entering EM mode forcefully  *****
    
    -RamdiskRoot-
    --- rcStart (initrd) ---
    mount: mounting proc on /proc failed: Device or resource busy
    mount: mounting sysfs on /sys failed: Device or resource busy
    Cannot set device ring parameters: Operation not supported
    Cannot set device ring parameters: Operation not supported
    Cannot set device ring parameters: Operation not supported
    Cannot set device ring parameters: Operation not supported
    Cannot get device ring settings: No such device
    Cannot get device ring settings: No such device
    Cannot get device ring settings: No such device
    Cannot get device ring settings: No such device
    === checkroot.sh ===
    grep: /var/tmp/devlink: No such file or directory
    create_devlink:Using new routine.
    Unable to find swap-space signature
    swapon: /dev/md2: Invalid argument
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    create dir : /var/www
    === create_devlink.sh ===
    create_devlink:Using new routine.
    === startSysMd.sh ===
    -- rebuild mdadm.conf for BOOT, ROOTFS with Intelligent routine --
    checkDiskStatus : disk1 unplugged
    checkDiskStatus : disk2 unplugged
    checkDiskStatus : disk3 unplugged
    checkDiskStatus : disk4 unplugged
    checkDiskPerformanceParallel : disk1 unplugged
    checkDiskPerformanceParallel : disk2 unplugged
    checkDiskPerformanceParallel : disk3 unplugged
    checkDiskPerformanceParallel : disk4 unplugged
    checkDiskPerformanceParallel : Waiting for performance check will be done(timeout=20).
    checkDiskPerformanceParallel : Disk which has performance lower than 30 MB/s will be kicked out.
    checkDiskPerformanceParallel : disk1 performance test skipped(unplugged)
    checkDiskPerformanceParallel : disk2 performance test skipped(unplugged)
    checkDiskPerformanceParallel : disk3 performance test skipped(unplugged)
    checkDiskPerformanceParallel : disk4 performance test skipped(unplugged)
    mount: mounting /dev/disk1_1 on /tmp/boot_test failed: No such file or directory
    mount: mounting /dev/disk2_1 on /tmp/boot_test failed: No such file or directory
    mount: mounting /dev/disk3_1 on /tmp/boot_test failed: No such file or directory
    mount: mounting /dev/disk4_1 on /tmp/boot_test failed: No such file or directory
    libmd: GetMdBaseDisk : Selected 0
    mdadm: cannot open /dev/disk?_1: No such file or directory
    mdadm: cannot open /dev/disk??_1: No such file or directory
    mdadm: cannot open /dev/disk?_2: No such file or directory
    mdadm: cannot open /dev/disk??_2: No such file or directory
    mdadm: cannot open /dev/disk?_5: No such file or directory
    mdadm: cannot open /dev/disk??_5: No such file or directory
    mdadm: No devices listed in conf file were found.
    -- setup max error counts --
    /sys/block/md0/md/maxerr_cnt is setted to 1000
    /usr/local/lib/libmd: line 775: /sys/block/md0/md/maxerr_cnt: No such file or directory
    /sys/block/md1/md/maxerr_cnt is setted to 1000
    /usr/local/lib/libmd: line 775: /sys/block/md1/md/maxerr_cnt: No such file or directory
    /sys/block/md2/md/maxerr_cnt is setted to 1000
    /usr/local/bin/hdd_raid_syncspeed.sh: line 147: /sys/block/md0/md/sync_speed_max: No such file or directory
    /usr/local/bin/hdd_raid_syncspeed.sh: line 147: /sys/block/md1/md/sync_speed_max: No such file or directory
    /usr/local/bin/hdd_raid_syncspeed.sh: line 147: /sys/block/md2/md/sync_speed_max: No such file or directory
    === fwupdate.sh ===
    umount: can't umount /boot: Invalid argument
    mkdir: can't create directory '/boot': File exists
    EXT3-fs (md0): error: unable to read superblock
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    EXT2-fs (md0): error: unable to read superblock
    EXT4-fs (md0): unable to read superblock
    FAT-fs (md0): unable to read boot sector
    FAT-fs (md0): unable to read boot sector
    isofs_fill_super: bread failed, dev=md0, iso_blknum=16, block=32
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    mount: mounting /dev/md0 on /boot failed: Input/output error
    === closeSysMd.sh ===
    md: md0 stopped.
    mdadm: stopped /dev/md0
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    md: md1 stopped.
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    mdadm: stmd: md2 stopped.
    opped /dev/md1
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    mdadm: stopped /dev/md2
    === sethostname.sh ===
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    configure files from Buffalo parameters.
    === restore_config.sh ===
    -- rebuild mdadm.conf for BOOT --
    mdadm: cannot open /dev/disk?_1: No such file or directory
    mdadm: cannot open /dev/disk??_1: No such file or directory
    mdadm: No devices listed in conf file were found.
    -- setup max error cEXT3-fs (md0): error: unable to read superblock
    ounts --
    /sys/block/md0/md/maxerr_cnt is setted to 1000
    /usr/local/lib/libmd: line 775: /sys/block/md0/md/maxerr_cnt: No such file or directory
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    EXT2-fs (md0): error: unable to read superblock
    EXT4-fs (md0): unable to read superblock
    FAT-fs (md0): unable to read boot sector
    FAT-fs (md0): unable to read boot sector
    isofs_fill_super: bread failed, dev=md0, iso_blknum=16, block=32
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    mount: mounting /dev/md0 on /boot failed: Input/output error
    Restore previous configuration files
    tar (child): /boot/conf_save.tgz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    /bin/tar: Child returned status 2
    /bin/tar: Error is not recoverable: exiting now
    tar (child): /boot/conf_save.tgz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    /bin/tar: Child returned status 2
    /bin/tar:md: md0 stopped.
     Error is not recoverable: exiting now
    unzip  fail.
    /tmp/etc/localtime ->
    umount: can't umount /boot: Invalid argument
    rootfs on / type rootfs (rw,relatime)
    proc on /proc type proc (rw,relatime)
    sysfs on /sys type sysfs (rw,relatime)md: md1 stopped.
    
    devpts on /dev/pts type devpts (rw,relatime,gid=4,mode=620)
    /dev/ram1 on /mnt/ram type tmpfs (rw,relatime,size=15360k)
    PID   USER     COMMAND
        1 root     init
        2 root     [kthreadd]
        3 root     [ksoftirqd/0]
        4 root     [kworker/0:0]
        5 root     [kworker/u:0]
        6 root     [migration/0]
        7 root     [migramd: md2 stopped.
    tion/1]
        8 root     [kworker/1:0]
        9 root     [ksoftirqd/1]
       10 root     [khelper]
       11 root     [kdevtmpfs]
       12 root     [kworker/u:1]
      154 root     [sync_supers]
      156 root     [bdi-default]
      158 root     [kblockd]
      165 root     [ata_sff]
      175 root     [md]
      195 root     [rpciod]
      196 root     [kworker/0:1]
      212 root     [kswapd0]
      263 root     [fsnotify_mark]
      280 root     [nfsiod]
      299 root     [xfs_mru_cache]
      300 root     [xfslogd]
      301 root     [xfsdatad]
      302 root     [xfsconvertd]
      304 root     [crypto]
      415 root     [scsi_eh_0]
      418 root     [scsi_eh_1]
      421 root     [scsi_eh_2]
      424 root     [scsi_eh_3]
      427 root     [kworker/u:2]
      428 root     [kworker/u:3]
      429 root     [kworker/u:4]
      430 root     [kworker/u:5]
      438 root     [scsi_eh_4]
      441 root     [scsi_eh_5]
      444 root     [kworker/u:6]
      445 root     [kworker/u:7]
      456 root     [mtdblock0]
      462 root     [mtdblock1]
      468 root     [kworker/1:1]
      471 root     [ubi_bgt0d]
      742 root     {rcS} /bin/sh /etc/init.d/rcS
     1127 root     [kworker/0:2]
     1164 root     {restore_config.} /bin/sh /etc/init.d/restore_config.sh start
     1208 root     ps
    mdadm: stopped /dev/md0
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    mdadm: stopped /dev/md1
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    mdadm: stopped /dev/md2
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [block]
    /sbin/hotplug [bdi]
    grep: /etc/melco/iscsi_info: No such file or directory
    Can't open /etc/melco/iscsi_info: No such file or directory.
    === EnablingAutoip.sh ===
    === networking.sh ===
    /etc/init.d/networking.sh : Clear /etc/dhcpc/dhcpcd-eth0.pid eth0
    /etc/init.d/networking.sh : Clear /etc/dhcpc/dhcpcd-eth1.pid eth1
    /etc/init.d/networking.sh : Clear /etc/dhcpc/dhcpcd-bond0.pid bond0
    /etc/init.d/networking.sh : Read dhcpc file
    /etc/init.d/networking.sh : configure :
    create network files.. (eth0)
    IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[]
    create network files.. (eth1)
    IP=[dhcp], netmask=[], dgw=[]
    killall: dhcpcd: no process killed
    /etc/init.d/networking.sh: line 91: /etc/init.d/networking.sh : Delete /etc/dhcpc/dhcpcd-.pid: No such file or directory
    Configuration network interface: lo eth0 eth1
    /sbin/ifconfig eth0 mtu 1500 multicast
    /sbin/ifconfig eth1 mtu 1500 multicast
    requesting DHCP  tout=30[s]
    networking.sh: dhcp requesting...
    DontDownIfacepool #1: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
    
    alwaysFork
    eth1: started
    ** eth1 : networking.sh dhcp fin.
    requesting DHCP  tout=30[s]
    networking.sh: dhcp requesting...
    SIOCGIFADDR :Cannot assign requested address
    Dopool #0: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
    ntDownIface
    alweth0: started
    aysFork
    sendto:  count 6   sync 1
    sendto:  count 5   sync 1
    ** eth0 : networking.sh dhcp fin.
    Waiting 1294 ...sendto:  count 6   sync 1
    sendto:  count 4   sync 1
    sendto:  count 5   sync 1
    sendto:  count 3   sync 1
    sendto:  count 4   sync 1
    sendto:  count 2   sync 1
    sendto:  count 3   sync 1
    sendto:  count 1   sync 1
    sendto:  count 2   sync 1
    sendto:  count 0   sync 1
    dhcpInit call AutoipBound
    setAutoIP eth1 called
    MAC address = 10:6f:3f:xx:xx:8f
    file name /etc/dhcpc/autoip-eth1.info
    /sbin/ifconfig eth1 169.254.242.46 netmask 255.255.0.0 up
    sendto:  count 1   sync 1
    sendto:  count 0   sync 1
    dhcpInit call AutoipBound
    setAutoIP eth0 called
    MAC address = 10:6f:3f:xx:xx:8e
    file name /etc/dhcpc/autoip-eth0.info
    /sbin/ifconfig eth0 169.254.136.74 netmask 255.255.0.0 up
    Arp result 0
    /etc/init.d/rService
    finished.
    Waiting 1298 ...Arp result 0
    /etc/init.d/rService
    finished.
    Checking network address for each network device
    Warn!!! eth0 and eth1 has same network address!
    Waiting fot linkup detection
    ..........networking.sh: Each network is not same in physically(or virtually).
    networking.sh:         Shutting down eth1
    eth1: stopped
    eth1: started
    networking.sh: arp_newip_notify_sub : executing arping -A 169.254.136.74 -I eth0 -c 1
    networking.sh: arp_newip_notify_sub : Can't get ipaddr of eth1.
    add default if
    configure files from Buffalo parameters.
    === syslog.sh ===
    using /sbin/syslogd
    using /sbin/klogd
    Starting system logger: load_info ItemValue = off
    LoadConfFileStringEx:key=[ad_dns] not found in /etc/melco/info.
    LoadConfFileOnOffEx:key=[info_visible] not found in /etc/melco/info.
    LoadConfFileStringEx:key=[array2] not found in /etc/melco/diskinfo.
    LoadConfFileStringEx:key=[disk3] not found in /etc/melco/diskinfo.
    LoadConfFileStringEx:key=[disk4] not found in /etc/melco/diskinfo.
    LoadConfFileStringEx:key=[usb_disk3] not found in /etc/melco/diskinfo.
    LoadConfFileStringEx:key=[usb_disk4] not found in /etc/melco/diskinfo.
    LoadConfFileOnOffEx:key=[smb2] not found in /etc/melco/info.
    LoadConfFileOnOffEx:key=[recycle_admin] not found in /etc/melco/info.
    LoadConfFileOnOffEx:key=[recycle_macinfo] not found in /etc/melco/info.
    
    Starting kernel logger:
    === kernelmon.sh ===
    Starting kernelmon:=== miconmon.sh ===
    KERNELMOn (SATA 0 unplugged)
    KERNELMOn (SATA 1 unplugged)
    KERNELMOn (SATA 2 unplugged)
    KERNELMOn (SATA 3 unplugged)
    KERNELMOn (lanact 0 half eth0)
    === usb.sh ===
    /etc/init.d/usb.sh: line 97: depmod: command not found
    /sbin/hotplug [module]
    /sbin/hotplug [module]
    /sbin/hotplug [bus]
    usbcore: registered new interface driver usbfs
    /sbin/hotplug [drivers]
    /sbin/hotplug [class]
    usbcore: registered new interface driver hub
    /sbin/hotplug [drivers]
    KERNELMOn (lanacusbcore: registered new device driver usb
    t 0 half eth1)
    /sbin/hotplug [drivers]
    xhci_hcd 0000:01:01.0: xHCI Host Controller
    xhci_hcd 0000:01:01.0: new USB bus registered, assigned bus number 1
    /sbin/hotplug [module]
    xhci_hcd 0000:01:01.0: irq 62, io mem 0xe8000000
    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: xHCI Host Controller
    usb usb1: Manufacturer: Linux 3.3.4 xhci_hcd
    usb usb1: SerialNumber: 0000:01:01.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 2 ports detected
    /sbin/hotplug [usb]
    xhci_hcd 0000:01:01.0: xHCI Host Controller
    xhci_hcd 0000:01:01.0: new USB bus registered, assigned bus number 2
    /sbin/hotplug [uusb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    sb_device]
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: xHCI Host Controller
    usb usb2: Manufacturer: Linux 3.3.4 xhci_hcd
    /sbin/hotplug [uusb usb2: SerialNumber: 0000:01:01.0
    sb]
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 2 ports detected
    /sbin/hotplug [usb]
    /sbin/hotplug [usb]
    /sbin/hotplug [usb_device]
    /sbin/hotplug [drivers]
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci_marvell ehci_marvell.0: Marvell Orion EHCI
    ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 3
    /sbin/hotplug [module]
    ehci_marvell ehci_marvell.0: irq 45, io base 0xfbb50100
    ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00
    usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb3: Product: Marvell Orion EHCI
    usb usb3: Manufacturer: Linux 3.3.4 ehci_hcd
    usb usb3: SerialNumber: ehci_marvell.0
    hub 3-0:1.0: USB hub found
    hub 3-0:1.0: 1 port detected
    /sbin/hotplug [usb]
    /sbin/hotplug [usb]
    ehci_marvell ehci_marvell.1: Marvell Orion EHCI
    ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 4
    /sbin/hotplug [usb_device]
    ehci_marvell ehci_marvell.1: irq 46, io base 0xfbb51100
    ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00
    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: Marvell Orion EHCI
    usb usb4: Manufacturer: Linux 3.3.4 ehci_hcd
    usb usb4: SerialNumber: ehci_marvell.1
    hub 4-0:1.0: USB hub found
    hub 4-0:1.0: 1 port detected
    /sbin/hotplug [usb]
    /sbin/hotplug [usb]
    ehci_marvell ehci_marvell.2: Marvell Orion EHCI
    ehci_marvell ehci_marvell.2: new USB bus registered, assigned bus number 5
    /sbin/hotplug [usb_device]
    ehci_marvell ehci_marvell.2: irq 47, io base 0xfbb52100
    ehci_marvell ehci_marvell.2: USB 2.0 started, EHCI 1.00
    usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb5: Product: Marvell Orion EHCI
    usb usb5: Manufacturer: Linux 3.3.4 ehci_hcd
    usb usb5: SerialNumber: ehci_marvell.2
    hub 5-0:1.0: USB hub found
    hub 5-0:1.0: 1 port detected
    /sbin/hotplug [usb]
    /sbin/hotplug [usb]
    /sbin/hotplug [usb_device]
    /sbin/hotplug [drivers]
    /sbin/hotplug [drivers]
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    /sbin/hotplug [module]
    /sbin/hotplug [drivers]
    uhci_hcd: USB Universal Host Controller Interface driver
    /sbin/hotplug [module]
    /sbin/hotplug [drivers]
    usbcore: registered new interface driver libusual
    /sbin/hotplug [module]
    /sbin/hotplug [module]
    Initializing USB Mass Storage driver...
    
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    /sbin/hotplug [drivers]
    usbcore: registered new interface driver usblp
    /sbin/hotplug [module]
    /sbin/hotplug [drivers]
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    /sbin/hotplug [module]
    /sbin/hotplug [drivers]
    /sbin/hotplug [drivers]
    grep: /etc/melco/usbshareinfo: No such file or directory
    /usr/local/lib/libsys: line 1154: sqlite3: command not found
    grep: /etc/melco/usbshareinfo: No such file or directory
    /usr/local/lib/libsys: line 1154: sqlite3: command not found
    grep: /etc/melco/usbshareinfo: No such file or directory
    /usr/local/lib/libsys: line 1154: sqlite3: command not found
    grep: /etc/melco/usbshareinfo: No such file or directory
    /usr/local/lib/libsys: line 1154: sqlite3: command not found
    /usr/local/lib/libsys: line 1179: sqlite3: command not found
    /usr/local/lib/libsys: line 1179: sqlite3: command not found
    /usr/local/lib/libsys: line 1179: sqlite3: command not found
    /usr/local/lib/libsys: line 1179: sqlite3: command not found
    /usr/local/lib/libsys: line 1191: sqlite3: command not found
    /usr/local/lib/libsys: line 1191: sqlite3: command not found
    /usr/local/lib/libsys: line 1191: sqlite3: command not found
    /usr/local/lib/libsys: line 1191: sqlite3: command not found
    === clientUtil_servd.sh ===
    Starting clientUtil_server:
      ->Starting on eth1
      ->Starting on eth0
    === daemonwatch.sh ===
    === bootcomplete.sh ===
    No need to run drivecheck.sh
    BuffaloGpio_ChangePowerStatus > Writing 0x71
    /usr/local/bin/hdd_raid_syncspeed.sh: line 147: /sys/block/md0/md/sync_speed_max: No such file or directory
    /usr/local/bin/hdd_raid_syncspeed.sh: line 147: /sys/block/md1/md/sync_speed_max: No such file or directory
    /usr/local/bin/hdd_raid_syncspeed.sh: line 147: /sys/block/md2/md/sync_speed_max: No such file or directory
    hdd_raid_syncspeed.sh: Adding EDP md devices
    hdd_raid_syncspeed.sh: USERLAND_MD=md10 md11 md12 md13 md14 md20 md21 md22 md23 md24 md101 md102 md103 md104
    === micon_setup.sh ===
    SIOCGIFADDR :Cannot assign requested address
    /usr/local/bin/change_notify.sh:RAIDMODE on LCD is not supported on this model.
    === late_inspection_phase.sh ===
    === buffalo_rescue.sh ===
    BuffaloGpio_ChangePowerStatus > Writing 0x71
    shutdown_start.sh #4: miconapl -a shutdown_wait done.
    eth0: stopped
    eth1: stopped
    /sbin/hotplug [bdi]
    /sbin/hotplug [block]
    The system is going down NOW!
    Sent SIGTERM to all processes
    Sent SIGKILL to all processes
    Requesting system poweroff
    Shutting Down Marvell Ethernet Driver
    System halted.
    port 0 : Magic mode WoL disabled.
    port 1 : Magic mode WoL disabled.
    micon : Disabling WOL...
    >miconCntl_WolDisable
    >miconCntl_PowerOff
    >miconCntl_ShutdownWait
    
    

FortiGate 50Eメモ

ファームウェアヘッダ

gzip圧縮前のデータに付するヘッダ

  0x0 - 0xf  : ?
 0x10 - 0x2f : Image Name
 0x30 - 0x17f: ?
0x180 - 0x183: Kernel Offset*
0x184 - 0x187: Kernel Length*
0x188 - 0x18b: RootFS Offset (ext2)*
0x18c - 0x18f: RootFS Length (ext2)*
0x190 - 0x193: DTB Offset
0x194 - 0x197: DTB Length
0x198 - 0x19b: Data Offset (jffs2)
0x19c - 0x19f: Data Length (jffs2)
0x1a0 - 0x1ff: ?

*: required for bootloader tftp
  • initramfsイメージとして投入する場合、Kernel Offset/Length, RootFS Offset/Lengthのみでチェックを通せた。RootFSの値2つについては、initramfsイメージにおいてはデータが存在しない為、0xFFFF0000(LE値の為、実際の値は 0x0000FFFF (65535 bytes))を置くことで通せた。マイナスにすると恐らくデータが存在しない扱いになってエラーとなる。
  • DTBのOffset/Lengthが存在しない場合、ブートローダはTFTPで渡したイメージを直接ブートする際bootargsを渡さなくなる模様。

その他

  • ブートローダにTFTPで渡すデータはgzipで圧縮されている必要がある。gzip圧縮する際のファイル名もチェックされているようで、 “FGT50E-0.00-FW-build0000-000000-patch00” の名前で通ることを確認済み。恐らくいくらか短縮可能で、最初の “FGT50E-” くらいしか見ていないような気もする(未検証)。→ “FGT50E” だけでチェックを通せた。
  • フロントのLAN1-5のSPEED LED 2色(緑/橙)とWAN1, WAN2のSPEED LED 2色のうち緑の計12個のLEDは、PHYやSwitchの直接管理ではなくI2CのGPIOエキスパンダにより提供されている。OpenWrtにおいてはPHYやSwitchがリンクスピードによるLEDトリガを提供しない為、メーカーファームのような挙動は恐らく不可。
    尚、WAN1, WAN2のSPEED LEDのうち橙 (100Mbps)についてはPHYの直接管理となっている為、100Mbpsでリンクした際問題無く点灯する。
    また、LINK/ACT LEDは全てPHY/Switchによる管理である為、これも問題無く機能する。
  • フロントに存在するLEDのうち、1か所に2色を持つものは両方を同時に点灯させることはできない配線になっている模様。
    片方を点けた状態でもう片方を点けようとすると、先に点いていた方が消灯し、後に点けようとした方も点灯しない。

FortiGate 50E

ヤフオクでサポートできそうなデバイスを探していた際、商品説明の “get hardware status” に含まれていた “Network Card Chipset” の “Marvell NETA” を見て衝動的に確保したもの(netaはMarvell SoCのイーサネットアダプタ)。
サポートできるかわからないものの、弄っていくのでメモ。

Switch, PHY

zone WAN LAN (88E6176)
port
(FG-50E)
WAN2 WAN1 5 4 3 2 1
port (88E1512, addr:0x0) (88E1512, addr:0x1) port0 port1 port2 port3 port4

MAC

確認中

  • LAN: BC:5C:4C:xx:xx:FD (Config, ethaddr (text))
  • WAN: BC:5C:4C:xx:xx:FC (Config, wanaddr (text))
  • 2.4G: BC:5C:4C:xx:xx:FE (Factory, 0x4 (hex))
  • 5G: BC:5C:4C:xx:xx:FF (Factory, 0x8004 (hex))

U-Boot

Fortinetのブート用プログラム?が呼ばれてしまう為U-Boot本体では中断できず

  • (ブートメニュー)
    [C]: Configure TFTP parameters.
    [R]: Review TFTP parameters.
    [T]: Initiate TFTP firmware transfer.
    [F]: Format boot device.
    [I]: System information.
    [B]: Boot with backup firmware and set as default.
    [Q]: Quit menu and continue to boot.
    [H]: Display this list of options.
    

  • [I]: System information. -> [I]: Display system information.
    Vendor ID       : Fortinet
    CPU family      : Cortex
    CPU model       : Cortex-A9
    CPU MHz         : 1600 MHz
    Cache size      : 64 KB
    Memory          : DDR SDRAM 2GB
    Platform ID   : FGT50E
    Serial number : FGT50E3Uxxxxxxxx
    BIOS       Ver:05000016
    Restricted mode : Disable
    Menu timeout    : 60
    

  • [R]: Review TFTP parameters.
    Image download port:    WAN1
    DHCP status:            Disabled
    Local VLAN ID:
    Local IP address:       192.168.1.188
    Local subnet mask:      255.255.255.0
    Local gateway:          192.168.1.254
    TFTP server IP address: 192.168.1.168
    Firmware file name:     image.out
    

  • [T]: Initiate TFTP firmware transfer.
    Please connect TFTP server to Ethernet port 'WAN1'.
    
    MAC: 70:4c:a5:26:4d:7c
    
    Connect to tftp server 192.168.1.168 ...
    
    ###########
    Image Received.
    Checking image... OK
    Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?
    

Kernel

FortiGateとしてのコンソールが表示されるのみ(dmesg無し

  • bootlog
     
    
    FortiGate-50E (17:37-01.31.2017)
    Ver:05000016
    Serial number: FGT50E3Uxxxxxxxx
    CPU(00): 1600MHz
    Total RAM: 2GB
    Initializing boot device...
    Initializing MAC... egiga1
    Please wait for OS to boot, or press any key to display configuration menu..........
    
    Booting OS...
    
    Reading boot image... 2808320 bytes.
    Initializing firewall...
    
    
    
    
    
    
    
    System is starting...
    
    
    FGT50E3Uxxxxxxxx login: 
    

SA-W2 OpenWrt bootlog

コンソール出せるようになるまで散々手こずったのを解決して色々頑張った記念



General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  5   |  PCIe0      |
 |   5    |  5   |  PCIe2      |
 -------------------------------
:** Link is Gen1, check the EP capability 
PCIe, Idx 0: remains Gen1
:** Link is Gen1, check the EP capability 
PCIe, Idx 2: remains Gen1
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.39.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully

SA-W2 IPL Monitor version 1.20
Copyright 2003-2016 Internet Initiative Japan Inc.

boot: Boot from Flash... 
Reading FLASH. Done.
Firmware checksum is correct.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.92 (musashino205@TAIHA.NET) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.2.0 r21272+750-b97e5ac785) 12.2.0, GNU ld (GNU Binutils) 2.39) #0 SMP Sat Feb 11 07:41:35 2023
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: IIJ SA-W2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    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] percpu: Embedded 11 pages/cpu s14028 r8192 d22836 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200n8
[    0.000000] Bootloader command line not present
[    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: 246328K/262144K available (8192K kernel code, 631K rwdata, 1884K rodata, 1024K init, 232K bss, 15816K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000001] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.000022] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.000043] Switching to timer-based delay loop, resolution 1ns
[    0.000215] Ignoring duplicate/late registration of read_current_timer delay
[    0.000224] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000445] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.000458] pid_max: default: 32768 minimum: 301
[    0.000578] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000590] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001095] CPU: Testing write buffer coherency: ok
[    0.001115] CPU0: Spectre v2: using BPIALL workaround
[    0.001237] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001659] Setting up static identity map for 0x100000 - 0x100060
[    0.001762] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    0.001869] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001956] rcu: Hierarchical SRCU implementation.
[    0.002062] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.002123] smp: Bringing up secondary CPUs ...
[    0.002129] smp: Brought up 1 node, 1 CPU
[    0.002136] SMP: Total of 1 processors activated (1066.00 BogoMIPS).
[    0.002144] CPU: All CPU(s) started in SVC mode.
[    0.004466] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.004533] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004548] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.004618] pinctrl core: initialized pinctrl subsystem
[    0.005311] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005925] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.006484] thermal_sys: Registered thermal governor 'step_wise'
[    0.006542] cpuidle: using governor ladder
[    0.006700] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.006709] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.016828] cryptd: max_cpu_qlen set to 1000
[    0.018375] SCSI subsystem initialized
[    0.018594] usbcore: registered new interface driver usbfs
[    0.018624] usbcore: registered new interface driver hub
[    0.018647] usbcore: registered new device driver usb
[    0.019384] clocksource: Switched to clocksource arm_global_timer
[    0.019853] NET: Registered PF_INET protocol family
[    0.019961] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.020344] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.020373] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.020384] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.020404] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.020434] TCP: Hash tables configured (established 2048 bind 2048)
[    0.020476] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.020500] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.020624] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.020648] PCI: CLS 0 bytes, default 64
[    0.022327] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.025061] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.025069] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.027235] armada-38x-pinctrl d0018000.pinctrl: registered pinctrl driver
[    0.027748] gpio-2 (usb-hub-reset): hogged as output/high
[    0.027866] debugfs: Directory 'd0018100.gpio' with parent 'regmap' already present!
[    0.028192] debugfs: Directory 'd0018140.gpio' with parent 'regmap' already present!
[    0.028515] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    0.028549] mvebu-pcie soc:pcie:      MEM 0x00d0080000..0x00d0081fff -> 0x0000080000
[    0.028572] mvebu-pcie soc:pcie:      MEM 0x00d0040000..0x00d0041fff -> 0x0000040000
[    0.028592] mvebu-pcie soc:pcie:      MEM 0x00d0044000..0x00d0045fff -> 0x0000044000
[    0.028610] mvebu-pcie soc:pcie:      MEM 0x00d0048000..0x00d0049fff -> 0x0000048000
[    0.028628] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.028646] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.028663] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    0.028679] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    0.028696] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    0.028709] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    0.028867] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.028878] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.028890] pci_bus 0000:00: root bus resource [mem 0xd0080000-0xd0081fff] (bus address [0x00080000-0x00081fff])
[    0.028900] pci_bus 0000:00: root bus resource [mem 0xd0040000-0xd0041fff] (bus address [0x00040000-0x00041fff])
[    0.028909] pci_bus 0000:00: root bus resource [mem 0xd0044000-0xd0045fff] (bus address [0x00044000-0x00045fff])
[    0.028918] pci_bus 0000:00: root bus resource [mem 0xd0048000-0xd0049fff] (bus address [0x00048000-0x00049fff])
[    0.028927] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.028934] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.029028] pci 0000:00:01.0: [11ab:6810] type 01 class 0x060400
[    0.029279] pci 0000:00:03.0: [11ab:6810] type 01 class 0x060400
[    0.030432] PCI: bus0: Fast back to back transfers disabled
[    0.030443] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.030456] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.030552] pci 0000:01:00.0: [168c:002e] type 00 class 0x028000
[    0.030578] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[    0.030687] pci 0000:01:00.0: supports D1
[    0.030695] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[    0.031889] PCI: bus1: Fast back to back transfers disabled
[    0.031899] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.031988] pci 0000:02:00.0: [168c:003c] type 00 class 0x028000
[    0.032013] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.032047] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.032125] pci 0000:02:00.0: supports D1
[    0.032132] pci 0000:02:00.0: PME# supported from D0 D1 D3hot
[    0.033319] PCI: bus2: Fast back to back transfers disabled
[    0.033329] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.033370] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.033383] pci 0000:00:03.0: BAR 8: assigned [mem 0xe0200000-0xe04fffff]
[    0.033394] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    0.033410] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.033420] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.033439] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe03fffff 64bit]
[    0.033455] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0400000-0xe040ffff pref]
[    0.033464] pci 0000:00:03.0: PCI bridge to [bus 02]
[    0.033473] pci 0000:00:03.0:   bridge window [mem 0xe0200000-0xe04fffff]
[    0.033805] mv_xor d0060800.xor: Marvell shared XOR driver
[    0.099963] mv_xor d0060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.100144] mv_xor d0060900.xor: Marvell shared XOR driver
[    0.159958] mv_xor d0060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.160176] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.160558] printk: console [ttyS0] disabled
[    0.180673] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 29, base_baud = 15625000) is a 16550A
[    1.131419] printk: console [ttyS0] enabled
[    1.139287] loop: module loaded
[    1.147087] spi-nor spi1.0: w25q256 (32768 Kbytes)
[    1.152239] 5 fixed-partitions partitions found on MTD device spi1.0
[    1.158636] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    1.165067] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    1.171679] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    1.178073] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    1.184554] Creating 5 MTD partitions on "spi1.0":
[    1.189364] 0x000000000000-0x000000100000 : "bootloader"
[    1.195773] 0x000000100000-0x000000110000 : "bootloader-env"
[    1.201817] 0x000000110000-0x000000200000 : "board_info"
[    1.207838] 0x000000200000-0x000001100000 : "firmware"
[    1.213944] 2 seil-fw partitions found on MTD device firmware
[    1.219740] Creating 2 MTD partitions on "firmware":
[    1.224723] 0x000000000000-0x000000370000 : "kernel"
[    1.230260] 0x000000370000-0x000000f00000 : "rootfs"
[    1.235531] mtd: setting mtd5 (rootfs) as root device
[    1.240947] 1 squashfs-split partitions found on MTD device rootfs
[    1.247152] 0x000000800000-0x000000f00000 : "rootfs_data"
[    1.252952] 0x000001100000-0x000002000000 : "rescue"
[    1.265188] mv88e6085 d0072004.mdio-mii:00: switch 0x1720 detected: Marvell 88E6172, revision 1
[    1.443907] mvneta_bm d00c8000.bm: Buffer Manager for network controller enabled
[    1.454326] mvneta d0070000.ethernet eth0: Using device tree mac address 00:e0:4d:3c:b7:18
[    1.462841] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.469405] ehci-platform: EHCI generic platform driver
[    1.474747] ehci-orion: EHCI orion driver
[    1.478926] orion-ehci d0058000.usb: EHCI Host Controller
[    1.484369] orion-ehci d0058000.usb: new USB bus registered, assigned bus number 1
[    1.492027] orion-ehci d0058000.usb: irq 45, io mem 0xd0058000
[    1.519431] orion-ehci d0058000.usb: USB 2.0 started, EHCI 1.00
[    1.525752] hub 1-0:1.0: USB hub found
[    1.529746] hub 1-0:1.0: 1 port detected
[    1.534267] usbcore: registered new interface driver usb-storage
[    1.540841] armada38x-rtc d00a3800.rtc: registered as rtc0
[    1.546421] armada38x-rtc d00a3800.rtc: setting system clock to 2003-08-17T08:39:27 UTC (1061109567)
[    1.555777] i2c_dev: i2c /dev entries driver
[    1.562692] orion_wdt: Initial timeout 171 sec
[    1.567436] sdhci: Secure Digital Host Controller Interface driver
[    1.573674] sdhci: Copyright(c) Pierre Ossman
[    1.578170] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.589004] marvell-cesa d0090000.crypto: CESA device successfully registered
[    1.596809] NET: Registered PF_INET6 protocol family
[    1.603097] Segment Routing with IPv6
[    1.606809] In-situ OAM (IOAM) with IPv6
[    1.610835] NET: Registered PF_PACKET protocol family
[    1.616270] 8021q: 802.1Q VLAN Support v1.8
[    1.620542] Registering SWP/SWPB emulation handler
[    1.629518] mv88e6085 d0072004.mdio-mii:00: switch 0x1720 detected: Marvell 88E6172, revision 1
[    1.819390] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.020176] hub 1-1:1.0: USB hub found
[    2.024130] hub 1-1:1.0: 2 ports detected
[    2.085576] mv88e6085 d0072004.mdio-mii:00: configuring for fixed/rgmii-id link mode
[    2.096704] mv88e6085 d0072004.mdio-mii:00: Link is Up - 1Gbps/Full - flow control off
[    2.197108] mv88e6085 d0072004.mdio-mii:00 ge1_0 (uninitialized): PHY [mv88e6xxx-1:00] driver [Marvell 88E1540] (irq=62)
[    2.311352] mv88e6085 d0072004.mdio-mii:00 ge1_1 (uninitialized): PHY [mv88e6xxx-1:01] driver [Marvell 88E1540] (irq=63)
[    2.419169] mv88e6085 d0072004.mdio-mii:00 ge1_2 (uninitialized): PHY [mv88e6xxx-1:02] driver [Marvell 88E1540] (irq=64)
[    2.531349] mv88e6085 d0072004.mdio-mii:00 ge1_3 (uninitialized): PHY [mv88e6xxx-1:03] driver [Marvell 88E1540] (irq=65)
[    2.639227] mv88e6085 d0072004.mdio-mii:00 ge0 (uninitialized): PHY [mv88e6xxx-1:04] driver [Marvell 88E1540] (irq=66)
[    2.653419] DSA: tree 0 setup
[    2.680484] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.688365] Freeing unused kernel image (initmem) memory: 1024K
[    2.694575] Run /sbin/init as init process
[    3.567347] init: Console is alive
[    3.570927] init: - watchdog -
[    5.646326] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.743371] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.753290] init: - preinit -
[    7.835269] random: jshn: uninitialized urandom read (4 bytes read)
[    7.945738] random: jshn: uninitialized urandom read (4 bytes read)
[    7.965435] random: jshn: uninitialized urandom read (4 bytes read)
[    8.751669] mvneta d0070000.ethernet eth0: configuring for fixed/rgmii link mode
[    8.759699] mvneta d0070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    8.767585] mv88e6085 d0072004.mdio-mii:00 ge1_0: configuring for phy/gmii link mode
[    8.777979] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   10.980081] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   11.002544] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.122461] procd: - early -
[   11.125424] procd: - watchdog -
[   11.764857] procd: - watchdog -
[   11.768237] procd: - ubus -
[   11.876687] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.883810] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.975926] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.984184] procd: - init -
Please press Enter to activate this console.
[   12.912244] random: jshn: uninitialized urandom read (4 bytes read)
[   12.936750] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.949554] random: ubus: uninitialized urandom read (4 bytes read)
[   12.988966] urngd: v1.0.2 started.
[   13.044494] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.157079] random: crng init done
[   13.160530] random: 25 urandom warning(s) missed due to ratelimiting
[   13.252877] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[   13.260508] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[   13.687146] PPP generic driver version 2.4.2
[   13.692933] NET: Registered PF_PPPOX protocol family
[   13.707289] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x3c.
[   13.715488] pci 0000:00:03.0: enabling device (0140 -> 0142)
[   13.721222] ath10k_pci 0000:02:00.0: enabling device (0140 -> 0142)
[   13.727733] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   14.103519] ath10k_pci 0000:02:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   14.112845] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   14.122764] ath10k_pci 0000:02:00.0: firmware ver 10.1-ct-8x-__fW-022-ecad3248 api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp,txstatus-noack,wmi-10.x-CT,ratemask-CT,txrate-CT,get-temp-CT,tx-rc-CT,cust-stats-CT,retry-gt2-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT crc32 3e4cf97f
[   14.172961] ath10k_pci 0000:02:00.0: Loading BDF type 0
[   14.419606] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   15.279325] ath10k_pci 0000:02:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   15.296045] ath10k_pci 0000:02:00.0: wmi print 'P 128 V 8 T 410'
[   15.302123] ath10k_pci 0000:02:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   15.310165] ath10k_pci 0000:02:00.0: wmi print 'alloc rem: 24984 iram: 38672'
[   15.373658] ath10k_pci 0000:02:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[   15.383377] ath10k_pci 0000:02:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   15.532803] pci 0000:00:01.0: enabling device (0140 -> 0142)
[   15.538503] ath9k 0000:01:00.0: enabling device (0140 -> 0142)
[   15.644808] ieee80211 phy1: Atheros AR9287 Rev:2 mem=0xd0c80000, irq=81
[   15.654475] ath10k_pci 0000:02:00.0: DFS region 0x0 not supported, will trigger radar for every pulse
[   15.999865] kmodloader: done loading kernel modules from /etc/modules.d/*
[   33.774300] mvneta d0070000.ethernet eth0: Link is Down
[   33.795897] mvneta d0070000.ethernet eth0: configuring for fixed/rgmii link mode
[   33.803677] mvneta d0070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   33.826372] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   33.848491] mv88e6085 d0072004.mdio-mii:00 ge1_0: configuring for phy/gmii link mode
[   33.879970] br-lan: port 1(ge1_0) entered blocking state
[   33.885324] br-lan: port 1(ge1_0) entered disabled state
[   33.932226] device ge1_0 entered promiscuous mode
[   33.936961] device eth0 entered promiscuous mode
[   34.069910] mv88e6085 d0072004.mdio-mii:00 ge1_1: configuring for phy/gmii link mode
[   34.099026] br-lan: port 2(ge1_1) entered blocking state
[   34.104412] br-lan: port 2(ge1_1) entered disabled state
[   34.176390] device ge1_1 entered promiscuous mode
[   34.188374] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   34.215252] jffs2_build_filesystem(): unlocking the mtd device... 
[   34.215262] done.
[   34.223434] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   34.226063] mv88e6085 d0072004.mdio-mii:00 ge1_2: configuring for phy/gmii link mode
[   34.318906] br-lan: port 3(ge1_2) entered blocking state
[   34.324286] br-lan: port 3(ge1_2) entered disabled state
[   34.369661] device ge1_2 entered promiscuous mode
[   34.388467] mv88e6085 d0072004.mdio-mii:00 ge1_3: configuring for phy/gmii link mode
[   34.536144] br-lan: port 4(ge1_3) entered blocking state
[   34.541535] br-lan: port 4(ge1_3) entered disabled state
[   34.604326] device ge1_3 entered promiscuous mode
[   34.639419] mv88e6085 d0072004.mdio-mii:00 ge0: configuring for phy/gmii link mode
[   38.135669] mv88e6085 d0072004.mdio-mii:00 ge0: Link is Up - 1Gbps/Full - flow control rx/tx
[   38.144192] IPv6: ADDRCONF(NETDEV_CHANGE): ge0: link becomes ready
[   63.117643] done.
[   63.119596] jffs2: notice: (2257) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   63.272817] overlayfs: upper fs does not support tmpfile.



BusyBox v1.36.0 (2023-02-11 07:41:35 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r22041+7-b932285141
 -----------------------------------------------------
=== 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.15.92",
        "hostname": "OpenWrt",
        "system": "ARMv7 Processor rev 1 (v7l)",
        "model": "IIJ SA-W2",
        "board_name": "iij,sa-w2",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r22041+7-b932285141",
                "target": "mvebu/cortexa9",
                "description": "OpenWrt SNAPSHOT r22041+7-b932285141"
        }
}
root@OpenWrt:/# 

SA-W2 メモ

MPP

mpp00: uart0
mpp01: uart0
mpp02: usb(smsc_usb2514b_reset)
mpp03:
mpp04: mdio
mpp05: mdio
mpp06: ge0
mpp07: ge0
mpp08: ge0
mpp09: ge0
mpp10: ge0
mpp11: ge0
mpp12: ge0
mpp13: ge0
mpp14: ge0
mpp15: ge0
mpp16: ge0
mpp17: ge0
mpp18: key(init)
mpp19: led(green_wlan5g)
mpp20: led(red_wlan5g)
mpp21: ge1
mpp22:
mpp23:
mpp24: pcie(AR9287_reset)
mpp25:
mpp26:
mpp27: ge1
mpp28: ge1
mpp29: ge1
mpp30: ge1
mpp31: ge1
mpp32: ge1
mpp33: led(green_status)
mpp34: led(red_status)
mpp35: led(green_mobile)
mpp36: led(red_mobile)
mpp37: ge1
mpp38: ge1
mpp39: ge1
mpp40: ge1
mpp41: ge1
mpp42:
mpp43:
mpp44: led(green_wlan2g)
mpp45: led(red_wlan2g)
mpp46: led(green_power)
mpp47: led(red_power)
mpp48: usb(over current port0)
mpp49: usb(over current port1)
mpp50:
mpp51:
mpp52: usb(vbus_port0)
mpp53: usb(vbus_port1)
mpp54: led(green_usb1)
mpp55: led(green_usb0)
mpp56: spi1
mpp57: spi1
mpp58: spi1
mpp59: spi1

WXR-5950AX12メモ

“user_property” パーティション

このパーティション内のボリュームが削除されていた場合は、stockファームでのブート中に再構築される(再起動を挟む)

“user_property_ubi”
システム設定保存用(他の場所に無い個体情報の格納は恐らく無し)
“extra_property”
syslog保存用(gzip圧縮済)

stockにおける更新時の挙動

  1. 更新開始
  2. “rootfs_recovery” パーティションに書き込み
  3. 再起動
  4. U-Bootが “rootfs” と “rootfs_recovery” それぞれの “fw_hash” ボリュームに存在するMD5ハッシュを比較
  5. 比較したMD5ハッシュが同じならばそのまま “rootfs” に存在するkernelとrootfsでブート、異なるなら “rootfs_recovery” のkernelとrootfsでブート(以降 “rootfs_recovery” でブートしたものとする)
  6. ブート中にFSの正常性が確認できれば “rootfs_recovery” の中身を “rootfs” へ丸ごとコピー
  7. コピー実施前に取得したハッシュと比較し、一致していれば成功扱いで再起動
  8. U-Bootが “rootfs” と “rootfs_recovery” のMD5ハッシュを比較して一致していれば “rootfs” でブート
  9. ブート完了でファームウェアの更新も終了

主/副ファームウェアの状況によるU-Bootの挙動

WXR-2533DHP(2)と異なり、片方に問題があってもU-BootではなくOSにコピーなど復旧作業を任せている印象

# fw_hashボリューム

U-BootにおけるMD5ハッシュのチェックは単純にrootfsとrootfs_recoveryのものに対する文字列での比較のみである模様(ハッシュ文字列のサイズがMD5の長さでなくても問題無い)

ボリュームが存在しハッシュが rootfs != rootfs_recovery
rootfs_recoveryでブートされる
rootfsのボリュームが存在しない
rootfs_recoveryでブートされる
rootfs_recoveryのボリュームが存在しない
rootfsでブートされる
なお、この状態でstockファームがブートされても消えたrootfs_recoveryのfw_hashボリュームの復旧は行われない模様(rootfs → rootfs_recovery のコピーなどが発生しない)
rootfs, rootfs_recoveryのどちらにもボリュームが存在しない
rootfs_recoveryでブートされる
なお、この状態でstockファームがブートされた場合はrootfs_recovery → rootfsのコピーが発生するものの fw_hash ボリュームが欠落したまま復旧されない為、再起動毎にU-Bootが常にrootfs_recoveryをブートし続けbootloopに陥る

AOSSボタンを押しながらブート

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1-00147
S - IMAGE_VARIANT_STRING=HAACANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002e5
B -       201 - PBL, Start
B -      2734 - bootable_media_detect_entry, Start
B -      3441 - bootable_media_detect_success, Start
B -      3445 - elf_loader_entry, Start
B -      6108 - auth_hash_seg_entry, Start
B -      6351 - auth_hash_seg_exit, Start
B -     68463 - elf_segs_hash_verify_entry, Start
B -    131158 - PBL, End
B -    217739 - SBL1, Start
B -    297100 - GCC [RstStat:0x10, RstDbg:0x600000] WDog Stat : 0x4
B -    306982 - pm_device_init, Start
B -    488976 - PM_SET_VAL:Skip
D -    179889 - pm_device_init, Delta
B -    491233 - pm_driver_init, Start
D -      5337 - pm_driver_init, Delta
B -    497760 - clock_init, Start
D -      2104 - clock_init, Delta
B -    501786 - boot_flash_init, Start
D -     12474 - boot_flash_init, Delta
B -    517951 - boot_config_data_table_init, Start
D -      3080 - boot_config_data_table_init, Delta - (575 Bytes)
B -    525423 - Boot Setting :  0x00000618
B -    529358 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    536281 - sbl1_ddr_set_params, Start
B -    540094 - CPR configuration: 0x30c
B -    543449 - cpr_init, Start
B -    546316 - Rail:0 Mode: 5 Voltage: 800000
B -    551440 - CL CPR settled at 752000mV
B -    554276 - Rail:1 Mode: 5 Voltage: 880000
B -    558546 - Rail:1 Mode: 7 Voltage: 896000
D -     16531 - cpr_init, Delta
B -    565317 - Pre_DDR_clock_init, Start
B -    569435 - Pre_DDR_clock_init, End
B -    572729 - DDR Type : PCDDR3
B -    578493 - do ddr sanity test, Start
D -      1037 - do ddr sanity test, Delta
B -    583251 - DDR: Start of HAL DDR Boot Training
B -    587979 - DDR: End of HAL DDR Boot Training
B -    593682 - DDR: Checksum to be stored on flash is 1692210399
B -    603991 - Image Load, Start
D -    223931 - QSEE Image Loaded, Delta - (1373936 Bytes)
B -    828014 - Image Load, Start
D -        61 - SEC Image Loaded, Delta - (0 Bytes)
B -    835700 - Image Load, Start
D -     10705 - DEVCFG Image Loaded, Delta - (26004 Bytes)
B -    846497 - Image Load, Start
D -     25223 - RPM Image Loaded, Delta - (105964 Bytes)
B -    871812 - Image Load, Start
D -     96075 - APPSBL Image Loaded, Delta - (586920 Bytes)
B -    968009 - QSEE Execution, Start
D -        61 - QSEE Execution, Delta
B -    973804 - USB D+ check, Start
D -         0 - USB D+ check, Delta
B -    980209 - SBL1, End
D -    764788 - SBL1, Delta
S - Flash Throughput, 6728 KB/s  (2094071 Bytes,  311218 us)
S - DDR Frequency, 466 MHz
S - Core 0 Frequency, 1651 MHz

U-Boot 2016.01 [BUFFALO U-Boot Ver.1.01] (Jul 12 2019 - 17:37:52 +0900)

DRAM:  smem ram ptable found: ver: 1 len: 4
### Sys Mem Test Start: 41300000 - 4A900000
Memory Test start(0x41300000) end(0x4A900000) size(157286400)
Data line test start:0x41300000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
Address line test start:0x41300000 len:0x9600000 pattern 0xAAAAAAAA 0x55555555
Fill test patnum:2
fill Pattern 5555AAAA  Writing...   Reading...
fill Pattern AAAA5555  Writing...   Reading...
### System Memory Test OK
### Work Memory Test Start: 50000000 - 80000000
Memory Test start(0x50000000) end(0x80000000) size(805306368)
Data line test start:0x50000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
Address line test start:0x50000000 len:0x30000000 pattern 0xAAAAAAAA 0x55555555
Fill test patnum:2
fill Pattern 5555AAAA  Writing...   Reading...
fill Pattern AAAA5555  Writing...   Reading...
### Work Memory Test OK 40000000
1 GiB
NAND:  ONFI device found
ID = 1590aaef
Vendor = ef
Device = aa
SF: Unsupported flash IDs: manuf ff, jedec ffff, ext_jedec ffff
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
256 MiB
MMC:   : 0
In:    serial@78B3000
Out:   serial@78B3000
Err:   serial@78B3000
check product = WXR-5950AX12 / WXR-5950AX12 (32)
check ethaddr = 50:c4:dd:cb:ef:28 / 50:c4:dd:cb:ef:28 (6)
check wlan0addr = 50:c4:dd:cb:ef:30 / 50:c4:dd:cb:ef:30 (6)
check wlan1addr = 50:c4:dd:cb:ef:38 / 50:c4:dd:cb:ef:38 (6)
check wlan2addr = 00:00:00:00:00:00 / 00:00:00:00:00:00 (6)
check hw_rev = 0 / 0 (4)
check custom_id = 0 / 0 (4)
check melco_id = RD_18021 / RD_18021 (12)
check region = JP / JP (4)
check product_vendor = BUFFALO / BUFFALO (16)
check pincode = 98296002 / 98296002 (16)
check psk = hs54jg4775x44 / hs54jg4775x44 (16)
check admin_passwd = 7kam7e6h / 7kam7e6h (16)
machid: 8010000
Card did not respond to voltage select!
### AOSS check(51)  press!!

Net:   MAC0 addr:50:c4:dd:cb:ef:28
PHY ID1: 0x4d
PHY ID2: 0xd0b1

NAND read: Offset exceeds device limit
PHY ID1: 0x31c3
PHY ID2: 0x1c12

NAND read: Offset exceeds device limit
PHY ID1: 0x31c3
PHY ID2: 0x1c12
EDMA ver 1 hw init
Num rings - TxDesc:1 (0-0) TxCmpl:1 (7-7)
RxDesc:1 (15-15) RxFill:1 (7-7)
ipq807x_edma_alloc_rings: successfull
ipq807x_edma_setup_ring_resources: successfull
ipq807x_edma_configure_rings: successfull
ipq807x_edma_hw_init: successfull
eth0
ipq807x_eth_halt: done
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 up Speed :10 Full duplex
eth0 PHY4 Down Speed :10000 Full duplex
eth0 PHY5 Down Speed :10000 Full duplex
ipq807x_eth_init: done
Using eth0 device
TFTP from server 192.168.11.10; our IP address is 192.168.11.1
Filename 'WXR-5950AX12-initramfs.uImage'.
Load address: 0x44000000
Loading: *

MA-E350/N

もうだいぶ前に確保したものの、後回しにした結果すっかり書き忘れていたのでメモ。
ハードウェア自体はNXR-G100とほぼ同じと思われる

MAC

確認中

  • LAN: BC:5C:4C:xx:xx:FD (Config, ethaddr (text))
  • WAN: BC:5C:4C:xx:xx:FC (Config, wanaddr (text))
  • 2.4G: BC:5C:4C:xx:xx:FE (Factory, 0x4 (hex))
  • 5G: BC:5C:4C:xx:xx:FF (Factory, 0x8004 (hex))

Barebox

一般的なU-BootではなくBareboxが使用されている

  • help
    barebox@plum-ma[512MiB]:/ help
                        . - alias for source
                        ? - alias for help
                        [ - alias for test
                  addpart - adds a partition table to a device
                automount - automount [OPTIONS] <PATH> <cmd>
           barebox_update - update barebox
                 basename - strip directory and suffix from filenames
                     boot - boot the machine
                 bootinfo - bootinfo
                    bootm - boot an application image
                    bootu - start a raw linux image
                    bootz - start a zImage
                      cat - concatenate file(s)
                       cd - change working directory
                    clear - clear screen
                       cp - copy files
                  cpuinfo - Show info about CPU
                    crc32 - crc32 checksum calculation
                     date - date [MMDDhhmm[[CC]YY][.ss]]
                  delpart - delete partition(s)
                   detect - detect devices
                  devinfo - Show information about devices and drivers.
                     dhcp - invoke dhcp client to obtain ip/boot params
                    dipsw - dipsw
                  dirname - strip last component from file name
                     echo - echo args to console
                     edit - Usage: (s)edit <file>
                    erase - erase FLASH memory
                   ethact - set current ethernet device
                     exit - exit script
                   export - export environment variables
                    false - do nothing, unsuccessfully
                 filetype - detect file type
                 firminfo - firminfo
                   getopt - getopt <optstring> <var>
                   global - create or set global variables
                       go - start application at address or file
     gpio_direction_input - set direction of a gpio pin to input
    gpio_direction_output - set direction of a gpio pin to output
           gpio_get_value - return value of a gpio pin
           gpio_set_value - set a gpio's output value
                  gpiolib - dump current registered gpio
                     help - print online help
                i2c_probe - probe for an i2c device
                 i2c_read - read from an i2c device
                i2c_write - write to an i2c device
                    iomem - show iomem usage
                      led - led <led> <value>
                      let - evaluate arithmetic expressions
                    loadb - Load binary file over serial line (kermit mode)
                  loadenv - Load environment from ENVFS into DIRECTORY (default: /dev/env0 -> /env).
                    login - login
                       ls - list a file or directory
                 magicvar - List information about magic variables
                       md - memory display
                   md5sum - md5 checksum calculation
                   memcmp - memory compare
                   memcpy - memory copy
                  meminfo - print info about memory usage
                   memset - memory fill
                  memtest - Memory Test
                     menu - Menu Management
                  miitool - view media-independent interface status
                    mkdir - make directories
                       mm - memory modify write with mask
                  mmuinfo - mmuinfo <address>
                    mount - Mount a filesystem of a given type to a mountpoint or list mounted filesystems.
                   msleep - delay execution for n milliseconds
                 mtd_info - get information about MTD device.
                       mw - memory write (fill)
                     nand - NAND specific handling
                 nandtest - NAND Test
                      nfs - boot image via network using nfs protocol
                  of_node - handle of nodes
              of_property - handle of properties
                   oftree - handle devicetrees
                    param - param
                   passwd - passwd
                     ping - ping <destination>
                 printenv - Print value of one or all environment variables.
                  protect - enable flash write protection
                      pwd - print working directory
                 readline - prompt for user input
                 readlink - read value of a symbolic link
                    reset - Perform RESET of the CPU
                       rm - remove files
                    rmdir - remove directorie(s)
                  saveenv - save environment to persistent storage
                    sedit - alias for edit
                       sh - run shell script
                  sha1sum - sha1 checksum calculation
                sha256sum - sha256 checksum calculation
                    sleep - delay execution for n seconds
                   source - execute shell script in current shell environment
                      spi - write/read spi device
                     test - minimal test like /bin/sh
                     tftp - (up-)Load file using tftp protocol
                     time - measure execution time of a command
                  timeout - wait for a specified timeout
                  trigger - handle LED triggers
                     true - do nothing, successfully
                ubiattach - attach a mtd dev to ubi
                ubidetach - detach an ubi dev
                ubiformat - format an ubi volume
                 ubimkvol - create an ubi volume
                 ubirmvol - delete an ubi volume
                ubivolume - adds a UBI volume to a device
                   uimage - extract/verify uImage
                   umount - umount a filesystem
               uncompress - uncompress a compressed file
                unprotect - disable flash write protection
                  version - print monitor version
                   xio_id - xio_id
    
  • version
    barebox@plum-ma[512MiB]:/ version
    
    barebox 2013.12.0-00373-g5307ee1 #705 Wed Jun 3 15:27:29 JST 2015
    

  • printenv
    barebox@plum-ma[512MiB]:/ printenv
    locals:
    tmp=10
    firmware_pages=2
    overlay_driver=aufs
    usb_autosuspend=0
    dipsw=0
    console=ttyO1
    i=/env/init/timezone
    mtdparts=255M(nand0.UBI),1M(nand0.OOPS)
    NANDDEV=/dev/nand0.UBI
    UBIDEV=ubi0
    res=0
    pages=0
    key=
    autoboot=1
    globals:
    bootsource=spi
    bootsource_instance=0
    armlinux_architecture=3589
    PATH=/env/bin
    initsw=0
    PS1=\e[1;32mbarebox@\e[1;36m\h:\w\e[0m
    TZ=9
    

  • param
    barebox@plum-ma[512MiB]:/ param
    --- Hardware parameter(s) ---
    MAC Address(macaddr0):         00:80:6d:xx:xx:b0
    MAC Address(macaddr1):         00:80:6d:xx:xx:b1
    Manufacture date(mandate):     2014/10/21
    Serial No.(serial):            00020217
    Board No.(board_no):           01025
    Board Model(board_model):      00
    Board Revision(board_rev):     B
    Customer Code(customercode):   0000
    

  • devinfo
    barebox@plum-ma[512MiB]:/ devinfo
    devices:
    `---- global
    `---- platform
         `---- omap-gpio0
         `---- omap-gpio1
         `---- omap-gpio2
         `---- omap-gpio3
         `---- gpmc_nand0
              `---- nand0
                   `---- 0x00000000-0x0fffffff: /dev/nand0
                   `---- 0x00000000-0x107fffff: /dev/nand0.raw
                   `---- 0x00000000-0x007fffff: /dev/nand_oob0
                   `---- 0x00000000-0x0fefffff: /dev/nand0.UBI
                   `---- 0x0ff00000-0x0fffffff: /dev/nand0.OOPS
         `---- omap-uart1
              `---- cs0
         `---- mem0
              `---- 0x00000000-0x1fffffff: /dev/ram0
         `---- mem1
              `---- 0x00000000-0x0000659f: /dev/defaultenv
         `---- mem2
              `---- 0x00000000-0xfffffffe: /dev/mem
         `---- omap4-hsmmc0
              `---- mci0
         `---- omap4-spi0
              `---- m25p800
                   `---- m25p0
                        `---- 0x00000000-0x001fffff: /dev/m25p0
                        `---- 0x00000000-0x001fffff: /dev/m25p0.raw
                        `---- 0x00000000-0x0001ffff: /dev/spi.xload
                        `---- 0x00020000-0x0009ffff: /dev/spi.barebox
                        `---- 0x000a0000-0x000bffff: /dev/env0
                        `---- 0x000c0000-0x000dffff: /dev/spi.dtb.0
                        `---- 0x000e0000-0x000fffff: /dev/spi.dtb.1
                        `---- 0x00100000-0x0011ffff: /dev/spi.hist_firmup
                        `---- 0x00120000-0x001fffff: /dev/spi.hist_boot
         `---- i2c-am33xx0
              `---- i2c0
                   `---- tps652170
                   `---- tca65070
                   `---- lm750
                   `---- dummy0
                   `---- dummy1
                   `---- dummy2
                   `---- dummy3
                   `---- dummy4
                   `---- dummy5
                   `---- dummy6
                   `---- 24c160
                        `---- 0x00000000-0x000007ff: /dev/eeprom0
                   `---- ds13070
                        `---- 0x00000000-0xffffffffffffffff: /dev/rtc
         `---- cpsw0
              `---- miibus0
              `---- eth0
              `---- eth1
    `---- mdio_bus
    `---- spi
    `---- i2c
    `---- fs
         `---- ramfs0
         `---- devfs0
    `---- net
    
    drivers:
    ns16550_serial
    basic-mmio-gpio
    omap-gpio
    ext4
    ramfs
    devfs
    fat
    ubifs
    tftp
    nfs
    uimagefs
    zipfs
    Micrel KS8737
    Micrel KSZ8021
    Micrel KSZ8031
    Micrel KSZ8041
    Micrel KSZ8051
    Micrel KSZ8001 or KS8721
    Micrel KSZ9021 Gigabit PHY
    Micrel KSZ9031 Gigabit PHY
    Micrel KSZ8873MLL Switch
    cpsw
    Generic PHY
    gpmc_nand
    m25p80
    omap-spi
    i2c-omap
    omap-hsmmc
    gpio-leds
    tca6507
    at24
    gpio_keys
    ds1307
    mem
    cramfs
    
  • (vars +) tftp <filename>
    barebox@plum-ma[512MiB]:/ eth0.ipaddr=192.168.0.1
    barebox@plum-ma[512MiB]:/ eth0.serverip=192.168.0.111
    barebox@plum-ma[512MiB]:/ tftp 0101A8C0.img
    [#################################################################]
    

  • uimage -i/-v <filename>
    barebox@plum-ma[512MiB]:/ uimage -i 0101A8C0.img 
    Image at 0101A8C0.img:
       Image Name:   MIPS OpenWrt Linux-5.15.85
       Created:      2022-12-27  18:10:05 UTC
       OS:           Linux
       Architecture: MIPS
       Type:         Kernel Image
       Compression:  gzip compressed
       Data Size:    7724139 Bytes = 7.4 MiB
       Load Address: 80000000
       Entry Point:  80000400
    barebox@plum-ma[512MiB]:/ uimage -v 0101A8C0.img 
    verifying data crc... ok
    
  • help elx_check
    
    

Kernel

LinuxディストリビューションはDebian

  • uname -a
    user1@plum:~$ uname -a
    Linux plum 3.14.57+ #106 PREEMPT Wed Nov 11 14:07:58 JST 2015 armv7l armv7l armv7l GNU/Linux
    

  • cat /proc/version
    user1@plum:~$ cat /proc/version
    Linux version 3.14.57+ (root@jetson) (gcc version 4.9.3 (Ubuntu/Linaro 4.9.3-5ubuntu1~14.04) ) #106 PREEMPT Wed Nov 11 14:07:58 JST 2015
    

  • cat /proc/cpuinfo
    user1@plum:~$ cat /proc/cpuinfo
    processor       : 0
    model name      : ARMv7 Processor rev 2 (v7l)
    BogoMIPS        : 995.32
    Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x3
    CPU part        : 0xc08
    CPU revision    : 2
    
    Hardware        : Generic AM33XX (Flattened Device Tree)
    Revision        : 0000
    Serial          : 0000000000000000
    

  • cat /proc/meminfo
    user1@plum:~$ cat /proc/meminfo
    MemTotal:         507436 kB
    MemFree:            9796 kB
    MemAvailable:     105820 kB
    Buffers:           23824 kB
    Cached:           339580 kB
    SwapCached:            0 kB
    Active:           241260 kB
    Inactive:         224220 kB
    Active(anon):     203360 kB
    Inactive(anon):   162812 kB
    Active(file):      37900 kB
    Inactive(file):    61408 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    HighTotal:             0 kB
    HighFree:              0 kB
    LowTotal:         507436 kB
    LowFree:            9796 kB
    SwapTotal:        253716 kB
    SwapFree:         253716 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:        102092 kB
    Mapped:            16456 kB
    Shmem:            264096 kB
    Slab:              20768 kB
    SReclaimable:       7780 kB
    SUnreclaim:        12988 kB
    KernelStack:        1336 kB
    PageTables:         1564 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:      507432 kB
    Committed_AS:     536840 kB
    VmallocTotal:     499712 kB
    VmallocUsed:       15584 kB
    VmallocChunk:     402728 kB
    

  • cat /proc/mtd
    user1@plum:~$ cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 0ff00000 00020000 "UBI"
    mtd1: 00100000 00020000 "OOPS"
    mtd2: 0040f800 0001f800 "kernel.0"
    mtd3: 0040f800 0001f800 "kernel.1"
    mtd4: 00217800 0001f800 "initramfs.0"
    mtd5: 00217800 0001f800 "initramfs.1"
    mtd6: 00217800 0001f800 "kmod.0"
    mtd7: 00217800 0001f800 "kmod.1"
    mtd8: 0501a800 0001f800 "rootfs.0"
    mtd9: 0501a800 0001f800 "rootfs.1"
    mtd10: 0191a000 0001f800 "opt"
    mtd11: 02bce000 0001f800 "overlay"
    mtd12: 00020000 00010000 "MLO"
    mtd13: 00080000 00010000 "barebox.bin"
    mtd14: 00020000 00010000 "barebox.env"
    mtd15: 00020000 00010000 "dtb.0"
    mtd16: 00020000 00010000 "dtb.1"
    mtd17: 00020000 00010000 "hist_firmup"
    mtd18: 000e0000 00010000 "hist_boot"
    

  • ubinfo -a
    user1@plum:~$ ubinfo -a
    UBI version:                    1
    Count of UBI devices:           1
    UBI control device major/minor: 10:59
    Present UBI devices:            ubi0
    
    ubi0
    Volumes count:                           10
    Logical eraseblock size:                 129024 bytes, 126.0 KiB
    Total amount of logical eraseblocks:     2040 (263208960 bytes, 251.0 MiB)
    Amount of available logical eraseblocks: 0 (0 bytes)
    Maximum count of volumes                 128
    Count of bad physical eraseblocks:       0
    Count of reserved physical eraseblocks:  40
    Current maximum erase counter value:     3
    Minimum input/output unit size:          2048 bytes
    Character device major/minor:            243:0
    Present volumes:                         0, 1, 2, 3, 4, 5, 6, 7, 8, 9
    
    Volume ID:   0 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        33 LEBs (4257792 bytes, 4.1 MiB)
    State:       OK
    Name:        kernel.0
    Character device major/minor: 243:1
    -----------------------------------
    Volume ID:   1 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        33 LEBs (4257792 bytes, 4.1 MiB)
    State:       OK
    Name:        kernel.1
    Character device major/minor: 243:2
    -----------------------------------
    Volume ID:   2 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        17 LEBs (2193408 bytes, 2.1 MiB)
    State:       OK
    Name:        initramfs.0
    Character device major/minor: 243:3
    -----------------------------------
    Volume ID:   3 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        17 LEBs (2193408 bytes, 2.1 MiB)
    State:       OK
    Name:        initramfs.1
    Character device major/minor: 243:4
    -----------------------------------
    Volume ID:   4 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        17 LEBs (2193408 bytes, 2.1 MiB)
    State:       OK
    Name:        kmod.0
    Character device major/minor: 243:5
    -----------------------------------
    Volume ID:   5 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        17 LEBs (2193408 bytes, 2.1 MiB)
    State:       OK
    Name:        kmod.1
    Character device major/minor: 243:6
    -----------------------------------
    Volume ID:   6 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        651 LEBs (83994624 bytes, 80.1 MiB)
    State:       OK
    Name:        rootfs.0
    Character device major/minor: 243:7
    -----------------------------------
    Volume ID:   7 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        651 LEBs (83994624 bytes, 80.1 MiB)
    State:       OK
    Name:        rootfs.1
    Character device major/minor: 243:8
    -----------------------------------
    Volume ID:   8 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        204 LEBs (26320896 bytes, 25.1 MiB)
    State:       OK
    Name:        opt
    Character device major/minor: 243:9
    -----------------------------------
    Volume ID:   9 (on ubi0)
    Type:        dynamic
    Alignment:   1
    Size:        356 LEBs (45932544 bytes, 43.8 MiB)
    State:       OK
    Name:        overlay
    Character device major/minor: 243:10
    

  • ls -al /sys/class/leds/
    user1@plum:~$ ls -al /sys/class/leds/
    total 0
    drwxr-xr-x  2 root root 0 Jan  2 00:21 .
    drwxr-xr-x 43 root root 0 Jan  2 00:13 ..
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 MobileLED_G1 -> ../../devices/leds_foma.7/leds/MobileLED_G1
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 MobileLED_G2 -> ../../devices/leds_foma.7/leds/MobileLED_G2
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 MobileLED_G3 -> ../../devices/leds_foma.7/leds/MobileLED_G3
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 MobileLED_R1 -> ../../devices/leds_foma.7/leds/MobileLED_R1
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 MobileLED_R2 -> ../../devices/leds_foma.7/leds/MobileLED_R2
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 MobileLED_R3 -> ../../devices/leds_foma.7/leds/MobileLED_R3
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 Mobile_Power -> ../../devices/leds_foma_ctrl.8/leds/Mobile_Power
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 Mobile_RESETN -> ../../devices/leds_foma_ctrl.8/leds/Mobile_RESETN
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 PowerLED -> ../../devices/leds_onboard.6/leds/PowerLED
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 power-stat:r -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/power-stat:r
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 system-status1:g -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status1:g
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 system-status1:r -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status1:r
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 system-status2:g -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status2:g
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 system-status2:r -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status2:r
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 system-status3:g -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status3:g
    lrwxrwxrwx  1 root root 0 Jan  2 00:13 system-status3:r -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status3:r
    

  • cat /sys/kernel/debug/gpio
    user1@plum:~$ sudo cat /sys/kernel/debug/gpio
    GPIOs 0-31, gpio:
    gpio-6   (phy_interrupt       ) in  hi IRQ
    gpio-20  (phy_interrupt       ) in  hi IRQ
    gpio-23  (sysfs               ) in  hi IRQ
    gpio-27  (omap-serial         ) in  hi IRQ
    
    GPIOs 32-63, gpio:
    gpio-44  (omap-serial         ) out lo
    gpio-45  (omap-serial         ) in  lo IRQ
    gpio-46  (omap-serial         ) in  lo IRQ
    gpio-47  (PowerLED            ) out lo
    gpio-60  (tca6507-reset       ) out hi
    
    GPIOs 64-95, gpio:
    gpio-78  (PHY_LED_100M        ) out hi
    gpio-79  (PHY_LED_1G          ) out hi
    gpio-80  (PHY_LED_100M        ) in  lo
    gpio-81  (PHY_LED_1G          ) in  lo
    gpio-86  (omap-serial         ) out hi
    gpio-87  (omap-serial         ) in  hi
    gpio-88  (omap-serial         ) in  hi
    
    GPIOs 96-127, gpio:
    gpio-96  (mmc_cd              ) in  hi IRQ
    gpio-113 (mmc_wp              ) in  hi
    gpio-114 (PHY-Reset           ) out hi
    gpio-115 (PHY-Reset           ) out hi
    gpio-116 (omap-serial         ) out lo
    gpio-117 (omap-serial         ) out lo
    
    GPIOs 456-463, platform/11000004.gpio, 11000004.gpio:
    gpio-456 (xio_PowerFail       ) in  lo
    gpio-457 (xio_RI              ) in  lo
    -----------------------------
    XIO ENABLE:  00
    XIO STATUS:  00
    -----------------------------
    
    GPIOs 464-471, platform/11000080.gpio, 11000080.gpio:
    
    GPIOs 472-479, platform/11000040.gpio, 11000040.gpio:
    gpio-472 (DI_00               ) in  lo
    gpio-473 (DI_01               ) in  lo
    gpio-474 (DI_02               ) in  lo
    gpio-475 (DI_03               ) in  lo
    gpio-476 (DI_04               ) in  lo
    gpio-477 (DI_05               ) in  lo
    gpio-478 (DI_06               ) in  lo
    gpio-479 (DI_07               ) in  lo
    -----------------------------
    DIN Pri L port status:  00
    DIN Pri L IRQ status:   00
    DIN Pri L IRQ enable:   00
    DIN Pri L IRQ polarity: 00
    DIN Filter select:      00
    -----------------------------
    
    GPIOs 480-487, platform/11000014.gpio, 11000014.gpio:
    gpio-482 (MobileLED_G3        ) out lo
    gpio-483 (MobileLED_G2        ) out lo
    gpio-484 (MobileLED_G1        ) out lo
    gpio-485 (MobileLED_R3        ) out lo
    gpio-486 (MobileLED_R2        ) out lo
    gpio-487 (MobileLED_R1        ) out hi
    
    GPIOs 488-495, platform/11000012.gpio, 11000012.gpio:
    gpio-488 (SIM_CD              ) in  hi
    gpio-489 (ModuleMainPowerGood ) in  hi
    gpio-490 (ModuleAvailable     ) in  hi
    
    GPIOs 496-503, platform/11000010.gpio, 11000010.gpio:
    gpio-496 (Mobile_Power        ) out hi
    gpio-502 (Mobile_RESETN       ) out hi
    
    GPIOs 504-511, platform/10000000.gpio, 10000000.gpio:
    

  • cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-pins
    user1@plum:~$ sudo cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-pins
    Pinmux settings per pin
    Format: pin (name): mux_owner gpio_owner hog?
    pin 0 (44e10800.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 1 (44e10804.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 2 (44e10808.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 3 (44e1080c.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 4 (44e10810.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 5 (44e10814.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 6 (44e10818.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 7 (44e1081c.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 8 (44e10820.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 9 (44e10824.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 10 (44e10828.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 11 (44e1082c.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 12 (44e10830.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 13 (44e10834.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 14 (44e10838.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 15 (44e1083c.0): leds_onboard.6 (GPIO UNCLAIMED) function pinmux_power_led_pins group pinmux_power_led_pins
    pin 16 (44e10840.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 17 (44e10844.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 18 (44e10848.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 19 (44e1084c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 20 (44e10850.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 21 (44e10854.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 22 (44e10858.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 23 (44e1085c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 24 (44e10860.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 25 (44e10864.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 26 (44e10868.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 27 (44e1086c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 28 (44e10870.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 29 (44e10874.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 30 (44e10878.0): 44e0b000.i2c (GPIO UNCLAIMED) function pinmux_i2c0_pins group pinmux_i2c0_pins
    pin 31 (44e1087c.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 32 (44e10880.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 33 (44e10884.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 34 (44e10888.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 35 (44e1088c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 36 (44e10890.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 37 (44e10894.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 38 (44e10898.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 39 (44e1089c.0): 50000000.gpmc (GPIO UNCLAIMED) function nandflash_pins_s0 group nandflash_pins_s0
    pin 40 (44e108a0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 41 (44e108a4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 42 (44e108a8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 43 (44e108ac.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 44 (44e108b0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 45 (44e108b4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 46 (44e108b8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 47 (44e108bc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 48 (44e108c0.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 49 (44e108c4.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 50 (44e108c8.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 51 (44e108cc.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 52 (44e108d0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 53 (44e108d4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 54 (44e108d8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 55 (44e108dc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 56 (44e108e0.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
    pin 57 (44e108e4.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
    pin 58 (44e108e8.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
    pin 59 (44e108ec.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 60 (44e108f0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 61 (44e108f4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 62 (44e108f8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 63 (44e108fc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 64 (44e10900.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 65 (44e10904.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 66 (44e10908.0): 48060000.mmc (GPIO UNCLAIMED) function pinmux_mmc1_pins group pinmux_mmc1_pins
    pin 67 (44e1090c.0): 48024000.serial (GPIO UNCLAIMED) function pinmux_uart2_pins group pinmux_uart2_pins
    pin 68 (44e10910.0): 48024000.serial (GPIO UNCLAIMED) function pinmux_uart2_pins group pinmux_uart2_pins
    pin 69 (44e10914.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 70 (44e10918.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 71 (44e1091c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 72 (44e10920.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 73 (44e10924.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 74 (44e10928.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 75 (44e1092c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 76 (44e10930.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 77 (44e10934.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 78 (44e10938.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 79 (44e1093c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 80 (44e10940.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
    pin 81 (44e10944.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 82 (44e10948.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 83 (44e1094c.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 84 (44e10950.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 85 (44e10954.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 86 (44e10958.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 87 (44e1095c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 88 (44e10960.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 89 (44e10964.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 90 (44e10968.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
    pin 91 (44e1096c.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
    pin 92 (44e10970.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
    pin 93 (44e10974.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
    pin 94 (44e10978.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 95 (44e1097c.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 96 (44e10980.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 97 (44e10984.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 98 (44e10988.0): 44e0b000.i2c (GPIO UNCLAIMED) function pinmux_i2c0_pins group pinmux_i2c0_pins
    pin 99 (44e1098c.0): 44e0b000.i2c (GPIO UNCLAIMED) function pinmux_i2c0_pins group pinmux_i2c0_pins
    pin 100 (44e10990.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 101 (44e10994.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 102 (44e10998.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 103 (44e1099c.0): 48060000.mmc (GPIO UNCLAIMED) function pinmux_mmc1_pins group pinmux_mmc1_pins
    pin 104 (44e109a0.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 105 (44e109a4.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 106 (44e109a8.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 107 (44e109ac.0): 48022000.serial (GPIO UNCLAIMED) function pinmux_uart1_pins group pinmux_uart1_pins
    pin 108 (44e109b0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 109 (44e109b4.0): 4a101000.mdio (GPIO UNCLAIMED) function davinci_mdio_default group davinci_mdio_default
    pin 110 (44e109b8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 111 (44e109bc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 112 (44e109c0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 113 (44e109c4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 114 (44e109c8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 115 (44e109cc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 116 (44e109d0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 117 (44e109d4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 118 (44e109d8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 119 (44e109dc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 120 (44e109e0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 121 (44e109e4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 122 (44e109e8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 123 (44e109ec.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 124 (44e109f0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 125 (44e109f4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 126 (44e109f8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 127 (44e109fc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 128 (44e10a00.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 129 (44e10a04.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 130 (44e10a08.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 131 (44e10a0c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 132 (44e10a10.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 133 (44e10a14.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 134 (44e10a18.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 135 (44e10a1c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 136 (44e10a20.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 137 (44e10a24.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 138 (44e10a28.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 139 (44e10a2c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 140 (44e10a30.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    pin 141 (44e10a34.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
    

  • ls -al /sys/class/leds/
    user1@plum:~$ sudo cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pins
    registered pins: 142
    pin 0 (44e10800.0) 00000028 pinctrl-single
    pin 1 (44e10804.0) 00000028 pinctrl-single
    pin 2 (44e10808.0) 00000028 pinctrl-single
    pin 3 (44e1080c.0) 00000028 pinctrl-single
    pin 4 (44e10810.0) 00000028 pinctrl-single
    pin 5 (44e10814.0) 00000028 pinctrl-single
    pin 6 (44e10818.0) 00000028 pinctrl-single
    pin 7 (44e1081c.0) 00000028 pinctrl-single
    pin 8 (44e10820.0) 00000027 pinctrl-single
    pin 9 (44e10824.0) 0000002f pinctrl-single
    pin 10 (44e10828.0) 00000027 pinctrl-single
    pin 11 (44e1082c.0) 0000002f pinctrl-single
    pin 12 (44e10830.0) 0000000f pinctrl-single
    pin 13 (44e10834.0) 0000002f pinctrl-single
    pin 14 (44e10838.0) 0000002f pinctrl-single
    pin 15 (44e1083c.0) 0000000f pinctrl-single
    pin 16 (44e10840.0) 00000002 pinctrl-single
    pin 17 (44e10844.0) 00000022 pinctrl-single
    pin 18 (44e10848.0) 00000002 pinctrl-single
    pin 19 (44e1084c.0) 00000002 pinctrl-single
    pin 20 (44e10850.0) 00000002 pinctrl-single
    pin 21 (44e10854.0) 00000002 pinctrl-single
    pin 22 (44e10858.0) 00000002 pinctrl-single
    pin 23 (44e1085c.0) 00000022 pinctrl-single
    pin 24 (44e10860.0) 00000022 pinctrl-single
    pin 25 (44e10864.0) 00000022 pinctrl-single
    pin 26 (44e10868.0) 00000022 pinctrl-single
    pin 27 (44e1086c.0) 00000022 pinctrl-single
    pin 28 (44e10870.0) 00000028 pinctrl-single
    pin 29 (44e10874.0) 0000000f pinctrl-single
    pin 30 (44e10878.0) 0000000f pinctrl-single
    pin 31 (44e1087c.0) 00000008 pinctrl-single
    pin 32 (44e10880.0) 00000008 pinctrl-single
    pin 33 (44e10884.0) 00000008 pinctrl-single
    pin 34 (44e10888.0) 00000037 pinctrl-single
    pin 35 (44e1088c.0) 0000002f pinctrl-single
    pin 36 (44e10890.0) 00000008 pinctrl-single
    pin 37 (44e10894.0) 00000008 pinctrl-single
    pin 38 (44e10898.0) 00000008 pinctrl-single
    pin 39 (44e1089c.0) 00000008 pinctrl-single
    pin 40 (44e108a0.0) 0000002f pinctrl-single
    pin 41 (44e108a4.0) 0000002f pinctrl-single
    pin 42 (44e108a8.0) 0000002f pinctrl-single
    pin 43 (44e108ac.0) 0000002f pinctrl-single
    pin 44 (44e108b0.0) 0000002f pinctrl-single
    pin 45 (44e108b4.0) 0000002f pinctrl-single
    pin 46 (44e108b8.0) 0000002f pinctrl-single
    pin 47 (44e108bc.0) 0000002f pinctrl-single
    pin 48 (44e108c0.0) 0000000f pinctrl-single
    pin 49 (44e108c4.0) 0000000f pinctrl-single
    pin 50 (44e108c8.0) 0000000f pinctrl-single
    pin 51 (44e108cc.0) 0000000f pinctrl-single
    pin 52 (44e108d0.0) 0000002f pinctrl-single
    pin 53 (44e108d4.0) 0000002f pinctrl-single
    pin 54 (44e108d8.0) 0000002f pinctrl-single
    pin 55 (44e108dc.0) 0000002f pinctrl-single
    pin 56 (44e108e0.0) 0000000f pinctrl-single
    pin 57 (44e108e4.0) 0000002f pinctrl-single
    pin 58 (44e108e8.0) 0000002f pinctrl-single
    pin 59 (44e108ec.0) 00000027 pinctrl-single
    pin 60 (44e108f0.0) 00000028 pinctrl-single
    pin 61 (44e108f4.0) 00000028 pinctrl-single
    pin 62 (44e108f8.0) 00000028 pinctrl-single
    pin 63 (44e108fc.0) 00000028 pinctrl-single
    pin 64 (44e10900.0) 00000028 pinctrl-single
    pin 65 (44e10904.0) 00000028 pinctrl-single
    pin 66 (44e10908.0) 0000002f pinctrl-single
    pin 67 (44e1090c.0) 0000000e pinctrl-single
    pin 68 (44e10910.0) 0000002e pinctrl-single
    pin 69 (44e10914.0) 00000002 pinctrl-single
    pin 70 (44e10918.0) 00000022 pinctrl-single
    pin 71 (44e1091c.0) 00000002 pinctrl-single
    pin 72 (44e10920.0) 00000002 pinctrl-single
    pin 73 (44e10924.0) 00000002 pinctrl-single
    pin 74 (44e10928.0) 00000002 pinctrl-single
    pin 75 (44e1092c.0) 00000002 pinctrl-single
    pin 76 (44e10930.0) 00000022 pinctrl-single
    pin 77 (44e10934.0) 00000022 pinctrl-single
    pin 78 (44e10938.0) 00000022 pinctrl-single
    pin 79 (44e1093c.0) 00000022 pinctrl-single
    pin 80 (44e10940.0) 00000022 pinctrl-single
    pin 81 (44e10944.0) 00000027 pinctrl-single
    pin 82 (44e10948.0) 00000068 pinctrl-single
    pin 83 (44e1094c.0) 00000008 pinctrl-single
    pin 84 (44e10950.0) 00000028 pinctrl-single
    pin 85 (44e10954.0) 00000028 pinctrl-single
    pin 86 (44e10958.0) 00000028 pinctrl-single
    pin 87 (44e1095c.0) 00000028 pinctrl-single
    pin 88 (44e10960.0) 0000002f pinctrl-single
    pin 89 (44e10964.0) 00000027 pinctrl-single
    pin 90 (44e10968.0) 00000028 pinctrl-single
    pin 91 (44e1096c.0) 00000008 pinctrl-single
    pin 92 (44e10970.0) 00000028 pinctrl-single
    pin 93 (44e10974.0) 00000008 pinctrl-single
    pin 94 (44e10978.0) 00000028 pinctrl-single
    pin 95 (44e1097c.0) 00000008 pinctrl-single
    pin 96 (44e10980.0) 00000028 pinctrl-single
    pin 97 (44e10984.0) 00000008 pinctrl-single
    pin 98 (44e10988.0) 00000030 pinctrl-single
    pin 99 (44e1098c.0) 00000030 pinctrl-single
    pin 100 (44e10990.0) 00000027 pinctrl-single
    pin 101 (44e10994.0) 00000027 pinctrl-single
    pin 102 (44e10998.0) 00000027 pinctrl-single
    pin 103 (44e1099c.0) 0000002f pinctrl-single
    pin 104 (44e109a0.0) 0000000f pinctrl-single
    pin 105 (44e109a4.0) 0000000f pinctrl-single
    pin 106 (44e109a8.0) 0000000f pinctrl-single
    pin 107 (44e109ac.0) 0000000f pinctrl-single
    pin 108 (44e109b0.0) 00000023 pinctrl-single
    pin 109 (44e109b4.0) 0000002f pinctrl-single
    pin 110 (44e109b8.0) 00000030 pinctrl-single
    pin 111 (44e109bc.0) 00000028 pinctrl-single
    pin 112 (44e109c0.0) 00000030 pinctrl-single
    pin 113 (44e109c4.0) 00000028 pinctrl-single
    pin 114 (44e109c8.0) 00000028 pinctrl-single
    pin 115 (44e109cc.0) 00000028 pinctrl-single
    pin 116 (44e109d0.0) 00000030 pinctrl-single
    pin 117 (44e109d4.0) 00000030 pinctrl-single
    pin 118 (44e109d8.0) 00000030 pinctrl-single
    pin 119 (44e109dc.0) 00000030 pinctrl-single
    pin 120 (44e109e0.0) 00000020 pinctrl-single
    pin 121 (44e109e4.0) 00000030 pinctrl-single
    pin 122 (44e109e8.0) 00000030 pinctrl-single
    pin 123 (44e109ec.0) 00000028 pinctrl-single
    pin 124 (44e109f0.0) 00000028 pinctrl-single
    pin 125 (44e109f4.0) 00000028 pinctrl-single
    pin 126 (44e109f8.0) 00000030 pinctrl-single
    pin 127 (44e109fc.0) 00000028 pinctrl-single
    pin 128 (44e10a00.0) 00000028 pinctrl-single
    pin 129 (44e10a04.0) 00000020 pinctrl-single
    pin 130 (44e10a08.0) 00000028 pinctrl-single
    pin 131 (44e10a0c.0) 00000028 pinctrl-single
    pin 132 (44e10a10.0) 00000028 pinctrl-single
    pin 133 (44e10a14.0) 00000028 pinctrl-single
    pin 134 (44e10a18.0) 00000028 pinctrl-single
    pin 135 (44e10a1c.0) 00000020 pinctrl-single
    pin 136 (44e10a20.0) 00000028 pinctrl-single
    pin 137 (44e10a24.0) 00000028 pinctrl-single
    pin 138 (44e10a28.0) 00000028 pinctrl-single
    pin 139 (44e10a2c.0) 00000028 pinctrl-single
    pin 140 (44e10a30.0) 00000028 pinctrl-single
    pin 141 (44e10a34.0) 00000020 pinctrl-single
    

  • ls -al /sys/class/leds/
    
    

  • ls -al /sys/class/leds/
    
    

  • bootlog
    barebox 2013.12.0-gc51c3f4 #3 Tue Mar 11 18:24:49 JST 2014
    
    
    Board: plum-ma[512MiB]
    m25p80 m25p800: m25p16 (2048 Kbytes)
    booting from SPI
    
    
    barebox 2013.12.0-00373-g5307ee1 #705 Wed Jun 3 15:27:29 JST 2015
    
    
    Board: plum-ma[512MiB]
    nand: ONFI param page 0 valid
    nand: ONFI flash detected
    nand: NAND device: Manufacturer ID: 0x01, Chip ID: 0xda (AMD/Spansion S34ML02G1), 256MiB, page size: 2048, OOB size: 64
    omap-hsmmc omap4-hsmmc0: registered as omap4-hsmmc0
    m25p80 m25p800: m25p16 (2048 Kbytes)
    i2c-omap i2c-am33xx0: bus 0 rev0.11 at 100 kHz
    cpsw cpsw0: detected phy mask 0xc
    mdio_bus: miibus0: probed
    eth0: got preset MAC address: D0:39:72:78:85:27
    malloc space: 0x8e000000 -> 0x9dffffff (size 256 MiB)
    Reset is caused by "PowerOnReset" (0x00000001).
    envfs: wrong magic on /dev/env0
    no valid environment found on /dev/env0. Using default environment
    running /env/bin/init...
    filetype: No such file or directory
    UBI: attaching mtd0 to ubi0
    UBI: scanning is finished
    registering /dev/ubi0
    registering kernel.0 as /dev/ubi0.kernel.0
    registering kernel.1 as /dev/ubi0.kernel.1
    registering initramfs.0 as /dev/ubi0.initramfs.0
    registering initramfs.1 as /dev/ubi0.initramfs.1
    registering kmod.0 as /dev/ubi0.kmod.0
    registering kmod.1 as /dev/ubi0.kmod.1
    registering rootfs.0 as /dev/ubi0.rootfs.0
    registering rootfs.1 as /dev/ubi0.rootfs.1
    registering opt as /dev/ubi0.opt
    registering overlay as /dev/ubi0.overlay
    UBI: attached mtd0 (name "nand0.UBI", size 255 MiB) to ubi0
    UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
    UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    UBI: VID header offset: 512 (aligned 512), data offset: 2048
    UBI: good PEBs: 2040, bad PEBs: 0, corrupted PEBs: 0
    UBI: user volume: 10, internal volumes: 1, max. volumes count: 128
    UBI: max/mean erase counter: 3/0, WL threshold: 4096, image sequence number: 204
    UBI: available PEBs: 0, total reserved PEBs: 2040, PEBs reserved for bad PEB handling: 40
    
    Hit m for menu or any other key to stop autoboot:  0
    booting nand
    firm_kind0:     1
    firm_area0:     0
    dipsw:          0
    xio_id:         8
    overlay:        tmpfs
    overlay_driver: aufs
    [5] boot with latest firmware succeeded.
    bootm.image:                /dev/ubi0.kernel.0
    bootm.oftree:               /dev/spi.dtb.0
    bootm.initrd:               /dev/ubi0.initramfs.0
    bootargs.dyn.root:          root=AREA=0
    bootargs.dyn.watchdog:      omap_wdt.start_at_boot=1 omap_wdt.timer_margin=180
    bootargs.dyn.console:       console=ttyO1,115200
    bootargs.dyn.cleanboot      
    bootargs.dyn.nojre          
    bootargs.dyn.overlay        overlay=tmpfs
    bootargs.dyn.overlay_driver overlay_driver=aufs
    bootargs.dyn.reset          reset_cause=POR
    bootargs.dyn.xio_id         xio_id=8
    boot_info:                  0x10
       Image Name:   Linux-3.14.57+
       Created:      2015-11-11   5:08:41 UTC
       OS:           Linux
       Architecture: ARM
       Type:         Kernel Image
       Compression:  uncompressed
       Data Size:    3508560 Bytes = 3.3 MiB
       Load Address: 80008000
       Entry Point:  80008000
    
    Loading OS U-Boot uImage '/dev/ubi0.kernel.0'
    Loading devicetree from '/dev/spi.dtb.0'
    plum_of_fixup: eXternal I/O board's ID is 0x08, fixup device-tree...
    commandline: ubi.mtd=UBI ubi.mtd=UBI0 mtdoops.mtddev=OOPS mtdoops.record_size=8192 zswap.enabled=1  root=AREA=0 omap_wdt.start_at_boot=1 omap_wdt.timer_margin=180 console=ttyO1,115200  overlay=tmpfs overlay_driver=aufs  rootdelay=1 reset_cause=POR usbcore.autosuspend=-1 xio_id=8
    booting kernel with devicetree
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 3.14.57+ (root@jetson) (gcc version 4.9.3 (Ubuntu/Linaro 4.9.3-5ubuntu1~14.04) ) #106 PREEMPT Wed Nov 11 14:07:58 JST 2015
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: Century Systems Plum-MA
    [    0.000000] cma: CMA: reserved 16 MiB at 9e800000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129792
    [    0.000000] Kernel command line: ubi.mtd=UBI ubi.mtd=UBI0 mtdoops.mtddev=OOPS mtdoops.record_size=8192 zswap.enabled=1  root=AREA=0 omap_wdt.start_at_boot=1 omap_wdt.timer_margin=180 console=ttyO1,115200  overlay=tmpfs overlay_driver=aufs  rootdelay=1 reset_cause=POR usbcore.autosuspend=-1 xio_id=8
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] allocated 1048576 bytes of page_cgroup
    [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [    0.000000] Memory: 488692K/523264K available (7016K kernel code, 309K rwdata, 2288K rodata, 222K init, 413K bss, 34572K reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc091e28c   (9305 kB)
    [    0.000000]       .init : 0xc091f000 - 0xc0956bcc   ( 223 kB)
    [    0.000000]       .data : 0xc0958000 - 0xc09a5518   ( 310 kB)
    [    0.000000]        .bss : 0xc09a5524 - 0xc0a0cb64   ( 414 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000018] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
    [    0.000042] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000313] Console: colour dummy device 80x30
    [    0.000351] Calibrating delay loop... 497.66 BogoMIPS (lpj=995328)
    [    0.027197] pid_max: default: 32768 minimum: 301
    [    0.027413] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.027431] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.043808] Initializing cgroup subsys memory
    [    0.043879] Initializing cgroup subsys devices
    [    0.043894] Initializing cgroup subsys freezer
    [    0.043915] Initializing cgroup subsys net_cls
    [    0.043927] Initializing cgroup subsys blkio
    [    0.043938] Initializing cgroup subsys net_prio
    [    0.044074] CPU: Testing write buffer coherency: ok
    [    0.044532] Setting up static identity map for 0x806b2d38 - 0x806b2d90
    [    0.046415] devtmpfs: initialized
    [    0.049793] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.062644] omap_hwmod: tptc0 using broken dt data from edma
    [    0.062777] omap_hwmod: tptc1 using broken dt data from edma
    [    0.062889] omap_hwmod: tptc2 using broken dt data from edma
    [    0.067996] omap_hwmod: debugss: _wait_target_disable failed
    [    0.124978] pinctrl core: initialized pinctrl subsystem
    [    0.125504] regulator-dummy: no parameters
    [    0.127293] NET: Registered protocol family 16
    [    0.130331] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.131147] cpuidle: using governor ladder
    [    0.131221] cpuidle: using governor menu
    [    0.140471] platform 49000000.edma: alias fck already exists
    [    0.140503] platform 49000000.edma: alias fck already exists
    [    0.140525] platform 49000000.edma: alias fck already exists
    [    0.141505] OMAP GPIO hardware version 0.1
    [    0.151350] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_s0, deferring probe
    [    0.151389] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    [    0.153046] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.166102] bio: create slab <bio-0> at 0
    [    0.177902] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.178624] vbat: 5000 mV 
    [    0.179043] vmmcsd_fixed: 3300 mV 
    [    0.179932] SCSI subsystem initialized
    [    0.180371] usbcore: registered new interface driver usbfs
    [    0.180479] usbcore: registered new interface driver hub
    [    0.180751] usbcore: registered new device driver usb
    [    0.181144] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [    0.181176] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.181319] media: Linux media interface: v0.10
    [    0.181406] Linux video capture interface: v2.00
    [    0.181472] pps_core: LinuxPPS API ver. 1 registered
    [    0.181484] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.181519] PTP clock support registered
    [    0.182403] Advanced Linux Sound Architecture Driver Initialized.
    [    0.183777] Switched to clocksource timer1
    [    0.184166] FS-Cache: Loaded
    [    0.184577] CacheFiles: Loaded
    [    0.200940] NET: Registered protocol family 2
    [    0.202354] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.202436] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.202507] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.202600] TCP: reno registered
    [    0.202620] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.202648] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.202965] NET: Registered protocol family 1
    [    0.203479] RPC: Registered named UNIX socket transport module.
    [    0.203497] RPC: Registered udp transport module.
    [    0.203506] RPC: Registered tcp transport module.
    [    0.203516] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.203994] Unpacking initramfs...
    [    1.693411] Initramfs unpacking failed: junk in compressed archive
    [    1.697596] Freeing initrd memory: 2140K (c4000000 - c4217000)
    [    1.698182] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
    [    1.700326] PM: Loading am335x-pm-firmware.bin
    [    1.702282] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    1.714305] zbud: loaded
    [    1.714982] VFS: Disk quotas dquot_6.5.2
    [    1.715277] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    1.718019] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    1.718620] Registering unionfs 2.6 (for 3.14.17)
    [    1.719295] FS-Cache: Netfs 'nfs' registered for caching
    [    1.721216] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    1.722078] fuse init (API version 7.22)
    [    1.723911] aufs 3.14.40+
    [    1.723953] msgmni has been set to 990
    [    1.728668] NET: Registered protocol family 38
    [    1.729048] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [    1.729068] io scheduler noop registered
    [    1.729079] io scheduler deadline registered
    [    1.729145] io scheduler cfq registered (default)
    [    1.730029] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    1.730949] HDLC line discipline maxframe=4096
    [    1.730965] N_HDLC line discipline registered.
    [    1.730978] Serial: 8250/16550 driver, 8 ports, IRQ sharing enabled
    [    1.736055] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    1.737357] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    2.508545] console [ttyO1] enabled
    [    2.513263] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    [    2.524738] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    2.537481] loop: module loaded
    [    2.541573] zram: Created 1 device(s) ...
    [    2.560746] tun: Universal TUN/TAP device driver, 1.6
    [    2.566197] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    [    2.573462] PPP generic driver version 2.4.2
    [    2.578326] PPP BSD Compression module registered
    [    2.583316] PPP Deflate Compression module registered
    [    2.588682] PPP MPPE Compression module registered
    [    2.593749] NET: Registered protocol family 24
    [    2.598462] PPTP driver version 0.8.5
    [    2.603262] usbcore: registered new interface driver cdc_acm
    [    2.609228] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    2.617724] usbcore: registered new interface driver usb-storage
    [    2.624231] usbcore: registered new interface driver usbserial
    [    2.630412] usbcore: registered new interface driver cp210x
    [    2.636332] usbserial: USB Serial support registered for cp210x
    [    2.642603] usbcore: registered new interface driver ftdi_sio
    [    2.648684] usbserial: USB Serial support registered for FTDI USB Serial Device
    [    2.656399] usbcore: registered new interface driver option
    [    2.662302] usbserial: USB Serial support registered for GSM modem (1-port)
    [    2.669658] usbcore: registered new interface driver pl2303
    [    2.675560] usbserial: USB Serial support registered for pl2303
    [    2.712945] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    2.719396] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    2.727914] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    2.735039] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.742608] usb usb1: Product: MUSB HDRC host driver
    [    2.747816] usb usb1: Manufacturer: Linux 3.14.57+ musb-hcd
    [    2.753654] usb usb1: SerialNumber: musb-hdrc.0.auto
    [    2.759905] hub 1-0:1.0: USB hub found
    [    2.763942] hub 1-0:1.0: 1 port detected
    [    2.804902] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [    2.811316] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [    2.819766] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    2.826901] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.834468] usb usb2: Product: MUSB HDRC host driver
    [    2.839672] usb usb2: Manufacturer: Linux 3.14.57+ musb-hcd
    [    2.845514] usb usb2: SerialNumber: musb-hdrc.1.auto
    [    2.851699] hub 2-0:1.0: USB hub found
    [    2.855716] hub 2-0:1.0: 1 port detected
    [    2.872122] i2c /dev entries driver
    [    2.877120] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 180 sec
    [    2.884475] omap_wdt: OMAP Watchdog started.
    [    2.925849] platform leds_foma.7: Driver leds-gpio requests probe deferral
    [    2.933197] platform leds_foma_ctrl.8: Driver leds-gpio requests probe deferral
    [    2.941113] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.947554] hidraw: raw HID events driver (C) Jiri Kosina
    [    2.953775] usbcore: registered new interface driver usbhid
    [    2.959642] usbhid: USB HID core driver
    [    2.967400] usbcore: registered new interface driver snd-usb-audio
    [    2.980140] Netfilter messages via NETLINK v0.30.
    [    2.987936] nfnl_acct: registering with nfnetlink.
    [    2.993132] nf_conntrack version 0.5.0 (7925 buckets, 31700 max)
    [    3.000532] ctnetlink v0.93: registering with nfnetlink.
    [    3.006343] ip_set: protocol 6
    [    3.009813] ipip: IPv4 over IPv4 tunneling driver
    [    3.015730] gre: GRE over IPv4 demultiplexor driver
    [    3.020929] ip_gre: GRE over IPv4 tunneling driver
    [    3.027683] IPv4 over IPSec tunneling driver
    [    3.033569] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    3.039520] TCP: cubic registered
    [    3.043067] Initializing XFRM netlink socket
    [    3.048494] NET: Registered protocol family 10
    [    3.055436] mip6: Mobile IPv6
    [    3.058661] NET: Registered protocol family 17
    [    3.063374] NET: Registered protocol family 15
    [    3.068293] Bridge firewalling registered
    [    3.072577] Ebtables v2.0 registered
    [    3.076471] l2tp_core: L2TP core driver, V2.0
    [    3.081123] l2tp_ppp: PPPoL2TP kernel driver, V2.0
    [    3.086177] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
    [    3.092077] l2tp_netlink: L2TP netlink interface
    [    3.097020] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
    [    3.103347] l2tp_debugfs: L2TP debugfs support
    [    3.108044] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
    [    3.115074] 8021q: 802.1Q VLAN Support v1.8
    [    3.120360] sctp: Hash tables configured (established 16384 bind 32768)
    [    3.127938] Key type dns_resolver registered
    [    3.133605] cpu cpu0: cpu0 regulator not ready, retry
    [    3.138969] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [    3.147226] MA-E3xx: Board Revision: B
    [    3.151430] PM: CM3 Firmware Version = 0x186
    [    3.156110] ThumbEE CPU extension supported.
    [    3.160635] Registering SWP/SWPB emulation handler
    [    3.166675] registered taskstats version 1
    [    3.171013] zswap: loading zswap
    [    3.174492] zswap: using lzo compressor
    [    3.179560] vmmcsd_fixed: disabling
    [    3.183267] vbat: disabling
    [    3.186259] regulator-dummy: disabling
    [    3.190751] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    3.197356] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
    [    3.204061] nand: AMD/Spansion S34ML02G1
    [    3.208180] nand: 256MiB, SLC, page size: 2048, OOB size: 64
    [    3.214107] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    3.219951] 2 ofpart partitions found on MTD device omap2-nand.0
    [    3.226265] Creating 2 MTD partitions on "omap2-nand.0":
    [    3.231845] 0x000000000000-0x00000ff00000 : "UBI"
    [    3.275855] usb 2-1: new high-speed USB device number 2 using musb-hdrc
    [    3.422260] usb 2-1: New USB device found, idVendor=1546, idProduct=1102
    [    3.435795] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    3.451792] usb 2-1: Product: u-blox Wireless Module
    [    3.463792] usb 2-1: Manufacturer: u-blox
    [    3.468004] usb 2-1: SerialNumber: 352648064948920
    [    3.486802] 0x00000ff00000-0x000010000000 : "OOPS"
    [    3.499962] cdc_acm 2-1:1.0: ttyACM0: USB ACM device
    [    3.516251] cdc_acm 2-1:1.2: ttyACM1: USB ACM device
    [    3.532221] cdc_acm 2-1:1.4: ttyACM2: USB ACM device
    [    3.548005] cdc_acm 2-1:1.6: ttyACM3: USB ACM device
    [    3.567073] mtdoops: Attached to MTD device 1
    [    3.573422] cdc_acm 2-1:1.8: ttyACM4: USB ACM device
    [    3.581145] omap-gpmc 50000000.gpmc: gpio using bootloader timings on CS1
    [    3.590125] cdc_acm 2-1:1.10: ttyACM5: USB ACM device
    [    3.596247] omap-gpmc 50000000.gpmc: gpio using bootloader timings on CS2
    [    3.604885] omap-gpmc 50000000.gpmc: gpio using bootloader timings on CS2
    [    3.615504] cdc_acm 2-1:1.12: ttyACM6: USB ACM device
    [    3.621586] omap-gpmc 50000000.gpmc: gpio using bootloader timings on CS2
    [    3.630253] omap-gpmc 50000000.gpmc: gpio using bootloader timings on CS2
    [    3.640732] omap-gpmc 50000000.gpmc: gpio using bootloader timings on CS2
    [    3.648454] omap-gpmc 50000000.gpmc: gpio using bootloader timings on CS2
    [    3.667903] DCDC1: at 1500 mV 
    [    3.672261] vdd_mpu: 925 <--> 1325 mV at 1100 mV 
    [    3.678268] vdd_core: 925 <--> 1150 mV at 1100 mV 
    [    3.684288] LDO1: at 1800 mV 
    [    3.688405] LDO2: at 3300 mV 
    [    3.692579] LDO3: at 1800 mV 
    [    3.696675] LDO4: at 3300 mV 
    [    3.700499] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    3.715464] lm75 0-0048: hwmon0: sensor 'lm75'
    [    3.730221] rtc-ds1307 0-0068: rtc core: registered m41t00 as rtc0
    [    3.748478] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    3.759569] UBI: attaching mtd0 to ubi0
    [    4.358963] UBI: scanning is finished
    [    4.371571] UBI: attached mtd0 (name "UBI", size 255 MiB) to ubi0
    [    4.378029] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
    [    4.385142] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    4.392070] UBI: VID header offset: 512 (aligned 512), data offset: 2048
    [    4.399086] UBI: good PEBs: 2040, bad PEBs: 0, corrupted PEBs: 0
    [    4.405376] UBI: user volume: 10, internal volumes: 1, max. volumes count: 128
    [    4.412939] UBI: max/mean erase counter: 3/0, WL threshold: 4096, image sequence number: 204
    [    4.421774] UBI: available PEBs: 0, total reserved PEBs: 2040, PEBs reserved for bad PEB handling: 40
    [    4.431436] UBI: background thread "ubi_bgt0d" started, PID 93
    [    4.445332] UBI error: ubi_init: cannot open mtd UBI0, error -2
    [    4.451611] console [netcon0] enabled
    [    4.455485] netconsole: network logging started
    [    4.507845] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    4.514252] davinci_mdio 4a101000.mdio: detected phy mask fffffff3
    [    4.520725] libphy: 4a101000.mdio: probed
    [    4.536297] davinci_mdio 4a101000.mdio: phy[2]: device 4a101000.mdio:02, driver Micrel KSZ9031 Gigabit PHY
    [    4.546593] davinci_mdio 4a101000.mdio: phy[3]: device 4a101000.mdio:03, driver Micrel KSZ9031 Gigabit PHY
    [    4.557263] Detected MACID = 00:80:6d:8d:81:b0
    [    4.562918] cpsw: Detected MACID = 00:80:6d:8d:81:b1
    [    4.569374] rtc-ds1307 0-0068: setting system clock to 2023-01-01 15:13:56 UTC (1672586036)
    [    4.580688] ALSA device list:
    [    4.583855]   No soundcards found.
    [    4.588185] Freeing unused kernel memory: 220K (c091f000 - c0956000)
    Loading, please wait...
    [    4.684163] systemd-udevd[125]: starting version 204
    Begin: Loading essential drivers ... done.
    Begin: Running /scripts/init-premount ... done.
    Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
    Begin: Running /scripts/local-premount ... done.
    Begin: Running /scripts/local-bottom ... done.
    done.
    Begin: Running /scripts/init-bottom ... 
           root-overlay:  Setting up aufs on /root as root file system 
    
    [    7.639860] UBIFS: background thread "ubifs_bgt0_9" started, PID 189
    [    7.668488] UBIFS: recovery needed
    [    7.745114] UBIFS: recovery completed
    [    7.749069] UBIFS: mounted UBI device 0, volume 9, name "overlay"
    [    7.755458] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    7.765028] UBIFS: FS size: 44642304 bytes (42 MiB, 346 LEBs), journal size 2193408 bytes (2 MiB, 17 LEBs)
    [    7.775137] UBIFS: reserved for root: 2108566 bytes (2059 KiB)
    [    7.781252] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 78144E9C-3101-4BA9-B8C6-5C027ED9E86B, small LPT model
    extracting overlays_log.tar.xz to /rw.tmpfs ... succeeded.
    extracting overlays_home.tar.xz to /rw ... succeeded.
    extracting overlays_other.tar.xz to /rw ... succeeded.
    extracting overlays_etc.tar.xz to /rw ... succeeded.
    [   32.165257] aufs test_add:292:busybox[222]: uid/gid/perm /ro/usr/lib/jvm 1000/100/0755, 0/0/0755
    done.
    [   33.206046] random: init urandom read with 109 bits of entropy available
    [   33.818447] random: nonblocking pool is initialized
    [   38.766469] UBI error: ubi_open_volume: cannot open device 0, volume 9, error -16
     * Setting sensors limits                                                [ OK ] 
     * Initializing random number generator...                               [ OK ] 
     * Setting up X socket directories...                                    [ OK ] 
     * Starting DNS forwarder and DHCP server dnsmasq                        [ OK ] 
     * CPUFreq Utilities: Setting performance CPUFreq governor...            [ OK ]  * CPU0...       
     * To run ddclient as a daemon, please set run_daemon to 'true' in /etc/default/ddclient 
       ...done.
     * Starting dynamic firewall daemon firewalld                                   [   65.623438] cdc_acm 2-1:1.4: failed to set dtr/rts
                                                                             [ OK ]
     * Starting nginx nginx                                                  [ OK ] 
     * Restoring resolver state...                                           [ OK ] 
     * Running local boot scripts (/etc/rc.local)                            [ OK ] 
    
    Ubuntu 14.04.3 LTS plum ttyO1
    
    plum login:
    

2022年やったこと

これは mstdn.maud.io Advent Calendar 2022 13日目の記事です。

さて、2022年も12月、去年はrealtek targetについての記事を書きましたが、早いもので1年が経ちました。
今年は2022年にやったことについて色々書き散らかしていきます。

NASにおけるOpenWrtサポート
国内メーカーが販売したNASをOpenWrtでサポートする為の作業を実施。
現時点では以下の4機種を有し、そのうちI-O DATAの3機種で作業が進行中。

  • BUFFALO TS3400D
  • I-O DATA HDL-A
  • I-O DATA HDL2-A
  • I-O DATA HDL2-AAX
ルータ / スイッチングハブにおけるOpenWrtサポート
いつも通り、ルータやスイッチングハブをOpenWrtでサポートする為の作業を実施。

新規確保

  • ELECOM WRC-2533GHBK2-T
  • IIJ SA-W2

上記のうち、SA-W2はどうにもブートできるところまで到達しない為、現在保留中。

確保済み機種

  • BUFFALO WCR-1166DS
  • ELECOM WRC-2533GS2
  • ELECOM WRC-X3200GST3
  • I-O DATA BSH-G24MB
  • Panasonic Switch-M*eG PN28xx0Kシリーズ (8/16/24/48)
  • Sony NCP-HG100/Cellular

上記のうち、WCR-1166DSは既存サポートの修正で、それ以外が新規サポートがマージされた機種。
それぞれ個別の記事がメインのブログに存在しているので、詳細についてはそちらを参照。

NetBSDなAtermにおけるOpenWrtサポート
U-Bootなど汎用的なものではない、独自らしきブートローダを採用していることから、これまでdirty hack無しでのOpenWrtサポートができず私的サポートに限定していた、NetBSDベースのAterm機のサポートをトライ。
これに該当する機種においては、Flash内のシステム領域(通常 0x40000 からFlash終端まで)に独自らしきファイルシステムが形成されており、その中にファイルとしてOSイメージ (kernel + rootfs) が存在している。これを上手いことファイルではなく生データとして扱うことで、OpenWrtとうかLinux Kernelから扱えるようにすることを目指した。

       0        0x20000  0x40000
       +--------+--------+--------------------------------+
       |        |        |                                |
 Flash |  Boot  | Config |             System             |
       |        |        |                                |
       +--------+--------+--------------------------------+
                         |                                |
       +-----------------+                                |
       |                                                  |
       v                                                  v
       +-----------+-----------+--------------------------+
       |           |           |                          |
System |   Data1   |   Data2   |         (unused)         |
       |           |           |                          |
       +-----------+-----------+--------------------------+
       |           |
       |           +--------------------------------------+
       |                                                  |
       v                                                  v
       +------+--------------+------+--------------+------+
       |      |              |      |              |      |
 Data1 |Header|     Data     |Header|     Data     | ...  |
       |(0x40)|   (0xFFC0)   |(0x40)|   (0xFFC0)   |      |
       +------+--------------+------+--------------+------+

現時点では、そのファイルシステム内のファイルを生データとして扱うことについてはおおよそ実現できており、あとは細かい取り扱いを行うドライバを用意すればおよそ正しい形でOpenWrtをブートできるようになると思われる。
ただし、該当するAtermにおいてはブート時にファームウェアデータに “TP” (Test Program?) が付けられていることが求められ、これ無しではブートに失敗する。現時点では一旦メーカーファームウェアのものを使用しているが、著作権やライセンスの関係でOpenWrt公式で使用することはできない為、ダミーのTPが必要であるものの、アセンブラについての知識に乏しく未だ作成できていない。

サーバ用ルータの置き換え
自室のサーバを管理しているルータ (WN-AC1600DGR3) において、導入しているOpenWrtファームウェアがビルドから1年以上経過していた為、新規にビルドしたものを別のルータ (WRC-2533GST2) に投入の上置き換えを実施。
前回設置してからOpenWrtにおいてfirewallがiptablesからnftablesに変更された関係か、大半の一般的なファイアウォール設定では問題無かったもののmwan3の仕様が少し変更されており、複数の回線に対するトラフィック振り分けルールで若干の書き換えが必要となった。
置き換え後は特に問題無く稼働中。
ビルド鯖のCPUをRyzen 5 5600Gへ更新
ビルド鯖のCPUを、Amazonのセールの際衝動的に購入したRyzen 5 5600Gに更新した。それまではRyzen 5 3400Gを使用していたものの、使用開始から数年経過したこと、MB等大規模な変更無しにCPUのみの変更で性能向上が見込めることから、多少悩んだ末に購入を決めた。
結果として。ほぼ同じ条件でのビルドに要する時間が半分近くになるなど、大幅な性能向上が見られた。
なお、同時にWebサーバ他を抱える大破鯖やメイン機のCPUクーラー交換も行っていたりする。

ThinkPad E15 Gen4 (Intel)を購入
これまで数年前に中古で確保したX250を使い続けていたものの、さすがにCPUやストレージの性能面で難が出始めていたこと、CPUなどの仕様上Windows 11には対応しないことなどから、思い切って新品で購入してしまうことにした。
元々はThinkPad E14など14インチ機で考えていたものの、コロナの関係などから外出機会が大きく減少し、出先で使う機会もほぼ無くなっていた為、どうせなら画面は大きい方が良いと判断してE15 Gen4 (Intel)を選定した。CPUとNVMe SSDは構成変更の上、RAMは自前で別途調達したものを増設して多少強化した。また、セカンダリのM.2スロット (2242)にも、データ用として自前調達のSSDを搭載した。モノは “SABRENT SSD 512GB“。
この機種に問題があるわけではないものの、Windows 11においてIntelがVLANのサポートを止めてしまった点について、どうしようかと思案中。ノートはOpenWrt作業中の機種でVLANのテストをする際重宝していた為、VLANが使えないとなると多少支障が出てしまう。
自室のモニタを更新
どうにもデスクのサブモニタとして使用していたI-O DATA KH2750V-UHDの遅延がわずかに大きく、メインのDELL P2720Dとの差が目立つこと、特定用途のサブPCで使用する際、KH2750V-UHD側の解像度を4KからWQHDに落としている関係かブラウザのクラッシュが頻発する為、置き換えを目的としてDELL S2721DGFを購入。
S2721DGFをデスクのメインとし、P2720Dをサブ、KH2750V-UHDをサーバ管理用としてそれなりの規模で入れ替えを実施。元々サーバ管理用で、購入から12年ほど経過していたiiyama PLE2008HDSはこれを以て使用終了となった。

2022年は、前年に引き続きコロナの関係で出掛ける機会がかなり少なく、必然的に自宅での話題ばかりとなりました。
mstdn.maud.io Advent Calendar 2022、明日14日は やさい 氏です。