大破雑記帳

個人用メモな雑記ブログ いろんなことをざっくりと。

WG600HP & OpenWrt + mainline U-Boot

なんとかここまで来た

WR8750N, WR9500Nも同様にサポート

動作OK

  • SPI (+SPI-NOR)
  • GPIO
  • LED
    • 5カ所全10個全てath9kチップ (AR938x) に接続されている為、利用可能になるのは無線のprobeが走ってから
  • Ethernet
  • WLAN (PCIe)
    • 認識のみ確認
  • USB
    • ただし内部ハブのRESETがath9kチップ (AR938x) に接続されている関係上、ハブの認識されるタイミングが無線チップのprobe後になる

動作NG

  • WLAN (SoC)
    • 現状何故か機能せずブートが止まる

備考

  • U-BootはNetBSDAterm0x20000 (128KiB) しか無いブートローダ領域に収める為、ネットワークからSPIサポートまでや、コマンド類を最低限のもの以外全て切って徹底的にサイズを落とした。
    • 削る作業が滅茶苦茶キツかった
    • ブートは実質 bootm のみ、復旧の為にイメージを投入する手段は loadb, loadx, loady のみ
    • SPI-NOR内がメモリマップされるので、ファームウェア領域の始点に直接bootmする
    • LZMAGZIPのdecompressionサポートも切った為、LZMA圧縮済kernelの展開はlzma-loaderで実施してU-Bootには未圧縮として渡す
      • lzma-loaderのボードサポート部分では、U-Bootでサイズの関係上入れられていないネットワーク周りなどの構成を行う

bootlog

LuCIを日本語訳無し最低限、USBストレージドライバとvfatドライバを組み込んだビルド

U-Boot 2024.04-OpenWrt-r26058+21-f434643857 (Apr 27 2024 - 05:33:00 +0000)

DRAM:  128 MiB
Core:  5 devices, 4 uclasses, devicetree: separate
Loading Environment from <NULL>... OK
In:    uart@18020000
Out:   uart@18020000
Err:   uart@18020000
Hit any key to stop autoboot:  0 
## Booting kernel from Legacy Image at 9f040000 ...
   Image Name:   MIPS OpenWrt Linux-6.1.86
   Image Type:   MIPS Linux Kernel Image (uncompressed)
   Data Size:    1822573 Bytes = 1.7 MiB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Loading Kernel Image to 80060000
NEC Aterm series


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 6.1.86 (tofu@Tofu-B450HVUS20-Jenkins-Slave) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 13.2.0 r25996-e0363233c9) 13.2.0, GNU ld (GNU Binutils) 2.40.0) #0 Sat Apr 27 05:33:00 2024
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WG600HP
[    0.000000] SoC: Atheros AR9344 rev 1
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 122692K/131072K available (4515K kernel code, 543K rwdata, 716K rodata, 1192K init, 195K bss, 8380K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000001] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.008766] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.085702] pid_max: default: 32768 minimum: 301
[    0.091652] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.099850] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.111111] cblist_init_generic: Setting adjustable number of callback queues.
[    0.119180] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.131515] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.142555] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.150190] pinctrl core: initialized pinctrl subsystem
[    0.158093] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.168961] gpio-13 (switch-reset): hogged as output/high
[    0.187881] clocksource: Switched to clocksource MIPS
[    0.195343] NET: Registered PF_INET protocol family
[    0.201148] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.210419] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.219925] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.228603] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.237160] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.245071] TCP: Hash tables configured (established 1024 bind 1024)
[    0.252340] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.259707] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.267837] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.274256] PCI: CLS 0 bytes, default 32
[    0.282790] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.295625] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.302199] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.318869] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.326854] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.335052] printk: console [ttyS0] disabled
[    0.339994] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.349772] printk: console [ttyS0] enabled
[    0.349772] printk: console [ttyS0] enabled
[    0.358690] printk: bootconsole [early0] disabled
[    0.358690] printk: bootconsole [early0] disabled
[    0.383031] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    0.388326] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.394825] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.401611] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.408700] Creating 4 MTD partitions on "spi0.0":
[    0.413628] 0x000000000000-0x000000020000 : "bootloader"
[    0.425061] 0x000000020000-0x000000030000 : "config"
[    0.431427] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.438680] 0x000000030000-0x000000040000 : "art"
[    0.447422] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.454599] 0x000000040000-0x000000800000 : "firmware"
[    0.462587] 2 uimage-fw partitions found on MTD device firmware
[    0.468680] Creating 2 MTD partitions on "firmware":
[    0.473777] 0x000000000000-0x0000001bd000 : "kernel"
[    0.479926] 0x0000001bd000-0x0000007c0000 : "rootfs"
[    0.487923] mtd: setting mtd5 (rootfs) as root device
[    0.493153] 1 squashfs-split partitions found on MTD device rootfs
[    0.499454] 0x0000005ad000-0x0000007c0000 : "rootfs_data"
[    0.854883] switch0: Atheros AR8327 rev. 4 switch registered on mdio.0
[    1.508337] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    1.519805] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[    1.529271] NET: Registered PF_INET6 protocol family
[    1.543467] Segment Routing with IPv6
[    1.547297] In-situ OAM (IOAM) with IPv6
[    1.551526] NET: Registered PF_PACKET protocol family
[    1.557055] 8021q: 802.1Q VLAN Support v1.8
[    1.584051] PCI host bridge to bus 0000:00
[    1.588269] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.595269] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.600950] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.609053] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000
[    1.615196] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[    1.622162] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.629075] pci 0000:00:00.0: supports D1
[    1.633152] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.641245] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    1.648069] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    1.655526] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    1.678611] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.690866] Freeing unused kernel image (initmem) memory: 1192K
[    1.696890] This architecture does not have kernel memory protection.
[    1.703467] Run /sbin/init as init process
[    2.445694] init: Console is alive
[    2.449824] init: - watchdog -
[    4.125106] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.184077] usbcore: registered new interface driver usbfs
[    4.189813] usbcore: registered new interface driver hub
[    4.195325] usbcore: registered new device driver usb
[    4.232561] SCSI subsystem initialized
[    4.247677] ehci-platform 1b000000.usb: EHCI Host Controller
[    4.253597] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    4.261692] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    4.287909] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    4.295457] hub 1-0:1.0: USB hub found
[    4.300282] hub 1-0:1.0: 1 port detected
[    4.312686] usbcore: registered new interface driver usb-storage
[    4.322715] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.340767] init: - preinit -
[    7.847908] random: crng init done
[    9.466835] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 1 is up
[    9.475045] eth0: link up (1000Mbps/Full duplex)
[    9.488551] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    9.495559] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: 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
[   11.743579] jffs2_scan_eraseblock(): End of filesystem marker found at 0x2000
[   11.751088] jffs2_build_filesystem(): unlocking the mtd device... 
[   11.751122] done.
[   11.759363] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   14.588324] platform ath9k-leds: deferred probe pending
[   32.284545] done.
[   32.286550] jffs2: notice: (317) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   32.304234] mount_root: overlay filesystem has not been fully initialized yet
[   32.318036] mount_root: switching to jffs2 overlay
[   32.327393] overlayfs: upper fs does not support tmpfile.
- config restore -
[   32.962863] urandom-seed: Seed file not found (/etc/urandom.seed)
[   33.015838] eth0: link down
[   33.050443] procd: - early -
[   33.053767] procd: - watchdog -
[   33.687159] procd: - watchdog -
[   33.692076] procd: - ubus -
[   33.766942] procd: - init -
Please press Enter to activate this console.
[   35.089799] kmodloader: loading kernel modules from /etc/modules.d/*
[   35.749014] Loading modules backported from Linux version v6.6.15-0-g51f354b815c4
[   35.756632] Backport generated by backports.git 193becf2
[   36.251710] PPP generic driver version 2.4.2
[   36.270087] NET: Registered PF_PPPOX protocol family
[   36.388756] ath9k 0000:00:00.0: enabling device (0000 -> 0002)
[   36.412468] gpio-506 (usb-hub-reset): hogged as output/high
[   36.418595] ieee80211 phy0: Atheros AR9300 Rev:3 mem=0x48cb6d1b, irq=14
[   36.528417] kmodloader: done loading kernel modules from /etc/modules.d/*
[   36.787966] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   37.010556] hub 1-1:1.0: USB hub found
[   37.018677] hub 1-1:1.0: 4 ports detected
[   37.968478] urngd: v1.0.2 started.
[   63.604906] eth0: link up (1000Mbps/Full duplex)
[   63.632486] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   63.655958] br-lan: port 1(eth0.1) entered blocking state
[   63.661533] br-lan: port 1(eth0.1) entered disabled state
[   63.667398] device eth0.1 entered promiscuous mode
[   63.672353] device eth0 entered promiscuous mode
[   63.739486] br-lan: port 1(eth0.1) entered blocking state
[   63.745010] br-lan: port 1(eth0.1) entered forwarding state
[   64.668476] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.36.1 (2024-04-27 05:33:00 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r26058+21-f434643857
 -----------------------------------------------------
=== 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": "6.1.86",
        "hostname": "OpenWrt",
        "system": "Atheros AR9344 rev 1",
        "model": "NEC Aterm WG600HP",
        "board_name": "nec,wg600hp",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r26058+21-f434643857",
                "target": "ath79/tiny",
                "description": "OpenWrt SNAPSHOT r26058+21-f434643857"
        }
}
root@OpenWrt:/# ubus call system info
{
        "localtime": 1714198046,
        "uptime": 849,
        "load": [
                0,
                1376,
                2880
        ],
        "memory": {
                "total": 126857216,
                "free": 92286976,
                "shared": 184320,
                "buffered": 0,
                "available": 76427264,
                "cached": 16924672
        },
        "root": {
                "total": 2124,
                "free": 1984,
                "used": 140,
                "avail": 1984
        },
        "tmp": {
                "total": 61940,
                "free": 61760,
                "used": 180,
                "avail": 61760
        },
        "swap": {
                "total": 0,
                "free": 0
        }
}
root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.9M      3.9M         0 100% /rom
tmpfs                    60.5M    180.0K     60.3M   0% /tmp
/dev/mtdblock6            2.1M    140.0K      1.9M   7% /overlay
overlayfs:/overlay        2.1M    140.0K      1.9M   7% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@OpenWrt:/#

WR9500N GPIO/PLLメモ

結局未だに諦めが悪くNetBSDAterm弄ってる

GPIO

dump (メーカーブートローダからブートしたOpenWrt)

# for addr in $(seq 0 4 $((0x6f))); do ADDR=$((0x18040000 + addr)); ADDR=$(printf "0x%08x\n" $ADDR); VAL=$(devmem $ADDR 32); printf "$ADDR: $VAL\n"; done
0x18040000: 0x0003DB1F
0x18040004: 0x0017BA39
0x18040008: 0x00142000
0x1804000c: 0x00000000
0x18040010: 0x00000000
0x18040014: 0x00019808
0x18040018: 0x00000000
0x1804001c: 0x00000000
0x18040020: 0x00000000
0x18040024: 0x00019808
0x18040028: 0x000F8000
0x1804002c: 0x00000000
0x18040030: 0x0B0A0900
0x18040034: 0x00180000
0x18040038: 0x00000000
0x1804003c: 0x2F2E0000
0x18040040: 0x00000000
0x18040044: 0x00000908
0x18040048: 0x00000000
0x1804004c: 0x00000000
0x18040050: 0x00000C0B
0x18040054: 0x00000000
0x18040058: 0x00000000
0x1804005c: 0x00000000
0x18040060: 0x00000000
0x18040064: 0x0D0F110E
0x18040068: 0x00000000
0x1804006c: 0x00000002

GPIO_OE (0x0)

  • output: GPIO 5-7, 10, 13, 18-22
    • GPIO 18:
  • input : GPIO 0-4, 8, 9, 11, 12, 14-17

GPIO_IN (0x4)

  • val=0: 1, 2, 6-8, 10, 14, 19, 21, 22
  • val=1: 0, 3-5, 9, 11-13, 15-18, 20

GPIO_OUT (0x8)

  • val=0: 0-12, 14-17, 19, 21, 22
  • val=1: 13, 18, 20

GPIO_SET (0xc)

(write-only)

GPIO_CLEAR (0x10)

(write-only)

GPIO_INT (0x14)

  • enable : 3, 11, 12, 15, 16
  • disable: 0-2, 4-10, 13, 14, 17-22

GPIO_INT_TYPE (0x18)

  • edge : 0-22
  • level: (none)

GPIO_INT_POLARITY (0x1c)

  • LOW/FALLING: 0-22
  • HIGH/RISING: (none)

GPIO_INT_PENDING (0x20)

  • PENDING: (none)
  • NONE : 0-22

GPIO_INT_MASK (0x24)

  • mask: 3, 11, 12, 15, 16
  • none: 0-2, 4-10, 13, 14, 17-22

GPIO_IN_ETH_SWITCH_LED (0x28)

(保留)

GPIO_OUT_FUNCTION0 (0x2c)

  • gpio0: -
  • gpio1: -
  • gpio2: -
  • gpio3: -

GPIO_OUT_FUNCTION1 (0x30)

  • gpio4: -
  • gpio5: SPI_CS_0
  • gpio6: SPI_CLK
  • gpio7: SPI_MOSI

GPIO_OUT_FUNCTION2 (0x34)

  • gpio8: -
  • gpio9: -
  • gpio10: UART0_SOUT
  • gpio11: -

GPIO_OUT_FUNCTION3 (0x38)

  • gpio12: -
  • gpio13: -
  • gpio14: -
  • gpio15: -

GPIO_OUT_FUNCTION4 (0x3c)

  • gpio16: -
  • gpio17: -
  • gpio18: ATT_LED
  • gpio19: PWR_LED

GPIO_OUT_FUNCTION (0x40)

  • gpio20: -
  • gpio21: -
  • gpio22: -

GPIO_IN_ENABLE0 (0x44)

  • SPI_DATA_IN: gpio8
  • UART0_SIN : gpio9

GPIO_IN_ENABLE1 (0x48)

  • I2SEXT_MCLK: -
  • I2SEXTCLK : -
  • I2S0_MIC_SD: -
  • I2S0_WS : -

GPIO_IN_ENABLE2 (0x4c)

  • ETH_RX_CRS: -
  • ETH_RX_COL: -
  • ETH_RX_ERR: -

GPIO_IN_ENABLE3 (0x50)

  • BOOT_EXT_MDC: -
  • BOOT_EXT_MDO: -

GPIO_IN_ENABLE4 (0x54)

  • SLIC_PCM_FS_IN: -
  • SLIC_DATA_IN : -

GPIO_IN_ENABLE9 (0x68)

  • UART1_CTS: -
  • UART1_RD : -

GPIO_FUNCTION (0x6c)

DISABLE_JTAG: Yes

PLL

dump (メーカーブートローダからブートしたOpenWrt)

root@OpenWrt:/# for addr in $(seq 0 4 $((0x48))); do ADDR=$((0x18050000 + addr)); ADDR=$(printf "0x%08x\n" $ADDR); VAL=$(devmem $ADDR 32); printf "$ADDR: $VAL\n"; done
0x18050000: 0x40021380
0x18050004: 0x40213000
0x18050008: 0x01308000
0x1805000c: 0x00000000
0x18050010: 0x40000400
0x18050014: 0xC009FFFE
0x18050018: 0x0009F33A
0x1805001c: 0x00000014
0x18050020: 0x00000000
0x18050024: 0x00000530
0x18050028: 0x0009BA0B
0x1805002c: 0x06000000
0x18050030: 0x000010B3
0x18050034: 0x0A47F028
0x18050038: 0x00004000
0x1805003c: 0x0523F828
0x18050040: 0x41020CCC
0x18050044: 0x78100000
0x18050048: 0x003C1000

PCIE_PLL_CONFIG (0x10)

  • REFDIV : 1
  • BYPASS : 0
  • PLLPWD : 1
  • UPDATING: 0

PCIE_PLL_DITHER_DIV_MAX (0x14)

  • DIV_MAX_FRAC: 0x3FFF
  • DIV_MAX_INT : 0x13
  • USE_MAX : 1
  • EN_DITHER : 1

PCIE_PLL_DITHER_DIV_MIN (0x18)

  • DIV_MIN_FRAC: 0x399D
  • DIV_MIN_INT : 0x13

PCIE_PLL_DITHER_STEP (0x1c)

  • STEP_FRAC : 0xA
  • STEP_INT : 0
  • UPDATE_CNT: 0

Linux Kernel 6.6 rc1以降でblkdevpartsが壊れているメモ

きっかけ

Check Point V-80でOpenWrtをLinux Kernel 6.6を使用してビルドしブートした際、U-BootからLinux Kernel 6.1同様に正しく blkdevparts が渡っているにも関わらず、パースに失敗してeMMC内のパーティションテーブルにあるパーティション1つしか認識されなかった。

  • Linux Kernel 6.6

      [    0.000000] Linux version 6.6.25 (musashino205@TAIHA.NET) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.2.0 r25822-49e9adfdd0) 13.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Sat Apr 13 03:47:41 2024
      ...
      [    0.000000] Kernel command line: console=ttyS0,115200 earlycon=uart8250,mmio32,0xf0512000 crashkernel=30M mvpp2x.queue_mode=1 blkdevparts=mmcblk1:48M@10M(kernel-1),1M(dtb-1),720M(rootfs-1),48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage) maxcpus=4
      [    0.000000] Unknown kernel command line parameters "crashkernel=30M", will be passed to user space.
      ...
      [    0.884016] mmc1: new HS200 MMC card at address 0001
      [    0.889951] mmcblk1: mmc1:0001 004GA0 3.69 GiB
      [    0.895043] cmdline partition format is invalid.
      [    0.895704]  mmcblk1: p1
      [    0.903447] mmcblk1boot0: mmc1:0001 004GA0 2.00 MiB
      [    0.908667] mmcblk1boot1: mmc1:0001 004GA0 2.00 MiB
      [    0.913765] mmcblk1rpmb: mmc1:0001 004GA0 512 KiB, chardev (248:0)
    
  • Linux Kernel 6.1

      [    0.000000] Linux version 6.1.82 (musashino205@TAIHA.NET) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.2.0 r25822-49e9adfdd0) 13.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Sat Apr 13 03:47:41 2024
      ...
      [    0.000000] Kernel command line: console=ttyS0,115200 earlycon=uart8250,mmio32,0xf0512000 crashkernel=30M mvpp2x.queue_mode=1 blkdevparts=mmcblk1:48M@10M(kernel-1),1M(dtb-1),720M(rootfs-1),48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage) maxcpus=4
      ...
      [    0.953142] mmc1: new HS200 MMC card at address 0001
      [    0.959114] mmcblk1: mmc1:0001 004GA0 3.69 GiB 
      [    0.964259]  mmcblk1: p1(kernel-1) p2(dtb-1) p3(rootfs-1) p4(kernel-2) p5(dtb-2) 6(rootfs-2) p7(default_sw) p8(logs) p9(preset_cfg) p10(adsl) p11(storage)
      [    0.979174] mmcblk1boot0: mmc1:0001 004GA0 2.00 MiB 
      [    0.984674] mmcblk1boot1: mmc1:0001 004GA0 2.00 MiB 
      [    0.989926] mmcblk1rpmb: mmc1:0001 004GA0 512 KiB, chardev (248:0
    

調べた

blkdevparts をパースしてパーティションを構成しているのは block/partitions/cmdline.c であり、これにバグがあるかもしれないと仮定して調査。

ひとまずコードを辿って文字列を処理している辺り(parse_parts() 周辺)を眺めつつhistoryを漁ってみると、直近で文字列のコピーを strncpy() から strscpy() に変更しているコミットを発見。
これが最も怪しいので、コード弄って実機で試すこととした。

検証

とりあえず適当に文字列を吐かせてみる。

[    0.873842] parse_parts: newparts->name -> "mmcblk"
[    0.878764] parse_parts: "48M@10M(kernel-1),1M(dtb-1),720M(rootfs-1),48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    0.894274] parse_parts: length=17, strscpy ret=-7
[    0.899101] parse_subpart: "48M@10M(kernel-1"
[    0.903506] cmdline partition format is invalid.

どうやら parse_parts() には正しく blkdevparts のパラメータが渡っているものの、 parse_subpart() に渡った文字列が尻切れになり ) が欠落してエラーになっている模様。

strncpy()strscpy() の仕様を確認してみると、前者はNULL終端 '\0' をハンドルせず、コピー後にコピー先バッファがNULL終端されていようがいまいが指定した count で単純に終了して返るものの、後者はNULL終端をハンドルしており、指定した count はNULL終端分1文字を含む必要がある模様。
それ故に、cmdline.c で strncpy() で渡していたものと同じ count を渡した場合、渡される文字列が指定された count 内でNULL終端されておらず、コピーがNULL終端されないまま終わってしまうので dest[count - 1]'\0' がセットされ -E2BIG で返り、尻切れとなる模様。

対処

strscpy() に渡される count をNULL終端 '\0' 分 +1 してやる。

     length = (!next) ? (sizeof(buf) - 1) :
            min_t(int, next - bdevdef, sizeof(buf) - 1);

となっているので、

     length = (!next) ? (sizeof(buf) - 1) :
            min_t(int, next - bdevdef + 1, sizeof(buf));

に変更。

追記: min_t() で取っている2つのうち、後者の -1 は元々 strncpy() でコピーした後 '\0' を詰める為確保しているものなので、NULL終端をハンドルする strscpy() では不要なので削る。

そうすると、尻切れせずパースが正しく通るようになる。(しかしNULL終端せず strscpy() に渡るので -E2BIG が返っているのは同じ。でもこれは無視できる)

[    0.872571] mmc1: new HS200 MMC card at address 0001
[    0.879495] mmcblk1: mmc1:0001 004GA0 3.69 GiB
[    0.884674] parse_parts: newparts->name -> "mmcblk"
[    0.889592] parse_parts: "48M@10M(kernel-1),1M(dtb-1),720M(rootfs-1),48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    0.904995] parse_parts: length=18, strscpy ret=-7
[    0.909812] parse_subpart: "48M@10M(kernel-1)"
[    0.914287] parse_parts: "1M(dtb-1),720M(rootfs-1),48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    0.928095] parse_parts: length=10, strscpy ret=-7
[    0.932912] parse_subpart: "1M(dtb-1)"
[    0.936686] parse_parts: "720M(rootfs-1),48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    0.949616] parse_parts: length=15, strscpy ret=-7
[    0.954436] parse_subpart: "720M(rootfs-1)"
[    0.958640] parse_parts: "48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    0.970263] parse_parts: length=14, strscpy ret=-7
[    0.975082] parse_subpart: "48M(kernel-2)"
[    0.979199] parse_parts: "1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    0.989608] parse_parts: length=10, strscpy ret=-7
[    0.994428] parse_subpart: "1M(dtb-2)"
[    0.998196] parse_parts: "720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    1.007725] parse_parts: length=15, strscpy ret=-7
[    1.012539] parse_subpart: "720M(rootfs-2)"
[    1.016748] parse_parts: "300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    1.024969] parse_parts: length=17, strscpy ret=-7
[    1.029783] parse_subpart: "300M(default_sw)"
[    1.034167] parse_parts: "650M(logs),1M(preset_cfg),1M(adsl),-(storage)"
[    1.040900] parse_parts: length=11, strscpy ret=-7
[    1.045719] parse_subpart: "650M(logs)"
[    1.049575] parse_parts: "1M(preset_cfg),1M(adsl),-(storage)"
[    1.055353] parse_parts: length=15, strscpy ret=-7
[    1.060167] parse_subpart: "1M(preset_cfg)"
[    1.064375] parse_parts: "1M(adsl),-(storage)"
[    1.068841] parse_parts: length=9, strscpy ret=-7
[    1.073572] parse_subpart: "1M(adsl)"
[    1.077254] parse_parts: "-(storage)"
[    1.080934] parse_parts: length=67, strscpy ret=10
[    1.085753] parse_subpart: "-(storage)"
[    1.090231]  mmcblk1: p1
[    1.093727] mmcblk1boot0: mmc1:0001 004GA0 2.00 MiB
[    1.099531] mmcblk1boot1: mmc1:0001 004GA0 2.00 MiB
[    1.105090] mmcblk1rpmb: mmc1:0001 004GA0 512 KiB, chardev (248:0)

余談

ここまで来たが、パースはされているのに結局 mmcblk1パーティションが適用されていないことに気付いた。
よく確認したら newparts->name のパースも尻切れで正しく取れていないので、ここも要修正。あとたぶん parse_subpart()パーティション名取る箇所も要修正だと思う。

その後

とかいい感じに謎が解けたと思ったら、Mastodonで教えて頂いたところによれば既に大体同じ修正が投げられていた模様。ただし指摘が入りその後v2が投げられているものの、メンテナ等からの反応が皆無で止まってしまっている様子。

どうしたものか。

ethernetのDT labelからのリネーム思案メモ

Ethernetバイス(例: eth0)を、DeviceTreeの当該デバイスのノード内に存在する label プロパティに設定された値を基にしてリネームするpreinitスクリプトの案

_preinit_find_eth_from_node() {
    local devnode
    local netdev

    for netdev in $(ls -d /sys/class/net/*); do
        # "br-lan", "lo", etc...
        [ -L "$netdev/of_node" ] || continue

        devnode="$(readlink -f "$netdev/of_node")"
        [ "$devnode" = "$1" ] && \
            basename $netdev && \
            return 0
    done

    return 1
}

preinit_rename_eth_with_label() {
    local basepath="/sys/firmware/devicetree/base"
    local aliases="$basepath/aliases"
    local ethlist eth _eth
    local node
    local label
    local netdev
    local exists
    local state

    [ -d "$aliases" ] || return

    ethlist="$(ls $aliases/ethernet[0-9] 2>/dev/null)"

    for eth in $ethlist; do
        node="${basepath}$(cat $eth)"
        # skip disabled devices
        [ "$(cat $node/status)" = "disabled" ] && continue

        _eth="$(_preinit_find_eth_from_node "$node")" || continue

        [ ! -r "$node/label" ] && continue
        label="$(cat $node/label)"
        [ "$label" = "$_eth" ] && continue

        # check duplicates
        exists=0
        for netdev in $(ls -d /sys/class/net/*); do
            [ "${netdev/*\//}" = "$label" ] && \
                exists=1 && break
        done
        if [ "$exists" = "1" ]; then
            echo "\"$label\" already exists! (cannot rename from \"$_eth\")"
            continue
        fi

        state="$(ip link show dev $_eth | grep -o "state \(UP\|DOWN\)")"
        [ "${state#* }" = "UP" ] && \
            ip link set $_eth down
        if ip link set $_eth name $label; then
            [ "${state#* }" = "UP" ] && ip link set $label up
        else
            [ "${state#* }" = "UP" ] && ip link set $_eth up
        fi
    done
}

boot_hook_add preinit_main preinit_rename_eth_with_label

V-80メモ

ハードウェア

  • 内部にMicroSDスロットとMiniPCIeスロットを持つ個体とその2つを持たない個体の2種類が存在

    今のところ筐体ラベルに記載のある Version との対応は以下のようになっていると推測。
    無線を搭載しないV-80ではMiniPCIeは不要であり、MicroSDカードスロットはそもそも筐体に穴が無く利用不可なので削られた?
    非搭載のバージョンより後でも搭載するものがあるので謎

    • 1.0: 両方のスロットを搭載
    • 1.0.1: 両方とも非搭載
    • 1.0.3: 両方のスロットを搭載
      • OpenWrt Forumでの情報から

    当方で確保した個体は 1.0.1 でどちらも非搭載。

  • SoCにMarvell Armada 7040ではなくArmada 8040を搭載する個体が存在(?)

    現状外観の差異など何もかも不明。 現時点でのサポート作業では7040搭載版のみを対象としている。

    どうもArmada 8040を搭載しているのは 1570/1590 シリーズのV-81であるように思われる。

V-80 GPIOメモ

CP110ブロック側のGPIO

  • stockのdtsにはEthernet switchのINTらしきGPIOも定義されていたが、実際の動作見てみるとHIGH/LOWが変動しない
  • TPMはモジュール見付からないので非搭載かも
    • TPM無ければ同時にSPI1も未使用
  • SDのカード検出ピンはスロット未実装なので不使用
gpio00: 
gpio01: 
gpio02: I2C1 (sck)
gpio03: I2C1 (sda)
gpio04: SYS (board_id 1)
gpio05: 
gpio06: SD (card detect)
gpio07: TPM (reset)
gpio08: TPM (irq)
gpio09: 
gpio10: SYS (board_id 0)
gpio11: 
gpio12: Key (reset)
gpio13: 
gpio14: 
gpio15: 
gpio16: 
gpio17: 
gpio18: 
gpio19: 
gpio20: 
gpio21: 
gpio22: 
gpio23: LED (red:power)
gpio24: USB (Vbus)
gpio25: 
gpio26: LED (blue:wan-online)
gpio27: MDIO (mdio)
gpio28: MDIO (mdc)
gpio29: 
gpio30: 
gpio31: 
gpio32: 
gpio33: 
gpio34: LED (blue:power)
gpio35: 
gpio36: 
gpio37: I2C0 (sck)
gpio38: I2C0 (sda)
gpio39: 
gpio40: 
gpio41: 
gpio42: 
gpio43: 
gpio44: 
gpio45: 
gpio46: 
gpio47: SPI1 (clk)
gpio48: SPI1 (mosi)
gpio49: SPI1 (miso)
gpio50: SPI1 (csn0)
gpio51: LED (red:status)
gpio52: LED (blue:status)
gpio53: 
gpio54: LED (red:wan-online)
gpio55: 
gpio56: MMC (eMMC)
gpio57: MMC (eMMC)
gpio58: MMC (eMMC)
gpio59: MMC (eMMC)
gpio60: MMC (eMMC)
gpio61: MMC (eMMC)
gpio62: MMC (eMMC)

V-80

しばらく前からMarvellの64bit ARM搭載機であることを把握しており、少し気になっていたもの。
最近になってまた気になりだしてしまい、丁度中古で安価な出品もあったことから、結局確保してしまった。

サポートできるかわからないものの、弄っていくのでメモ。

Switch, PHY

未確認

zone WAN LAN
port (WSR-2533DHPLS) INTERNET LAN1 LAN2 LAN3
port (MT7530) port0 port1 port2 port3

MAC

mmcblk1boot0は少なくともU-Boot本体とU-Boot環境変数領域の2つを含んでいる領域

  • LAN: 00:1C:7F:9C:C5:4B (mmcblk1boot0, ethaddr (text))
  • WAN: 00:1C:7F:9C:C5:4A (mmcblk1boot0, eth1addr (text))

U-Boot

Ctrl + Cでブートメニューが表示できるのみで、U-Bootのコマンドラインに入ることは不可。

  • (bootmenu)

      ************ Hit 'Ctrl + C' for boot menu ************
                                                                                                                                                   0 
      Setting bootaddr to 0x6000200
      Enabling network ports...
      Done.
      init 88e6352 start
      init 88e6352 finish
    
    
      Welcome to Gaia Embedded Boot Menu :
    
              1.  Start in normal Mode
              2.  Start in debug Mode
              3.  Start in maintenance Mode
              4.  Restore to Factory Defaults (local)
              5.  Install/Update Image from Network
              6.  Restart Boot-Loader
              7.  Install/Update Image from USB
              8.  Upload preset configuration file from Network
              9.  Delete preset configuration file
              10. Change active ethernet port
              11.  Delete branding file
    
              Please enter your selection (press ENTER to finish) :
    

    リストに無い 0 が存在し選択することが可能であるものの、アクセスコードの入力を求められるので利用不可

      Welcome to Gaia Embedded Boot Menu :
    
              1.  Start in normal Mode
              2.  Start in debug Mode
              3.  Start in maintenance Mode
              4.  Restore to Factory Defaults (local)
              5.  Install/Update Image from Network
              6.  Restart Boot-Loader
              7.  Install/Update Image from USB
              8.  Upload preset configuration file from Network
              9.  Delete preset configuration file
              10. Change active ethernet port
              11.  Delete branding file
    
              Please enter your selection (press ENTER to finish) :0
    
      Please enter access code: (press ENTER to finish)
    
              Access Code:
    
  • help

    bootcmd を弄って強引に表示

      ?       - alias for 'help'
      avs     - Set/Get Adaptive Voltage Scaling (AVS) value
    
      base    - print or set address offset
      bdinfo  - print Board Info structure
      blkcache- block cache diagnostics and control
      boot    - boot default, i.e., run 'bootcmd'
      bootd   - boot default, i.e., run 'bootcmd'
      bootefi - Boots an EFI payload from memory
      bootelf - Boot from an ELF image in memory
      booti   - boot arm64 Linux Image image from memory
      bootm   - boot application image from memory
      bootp   - boot image via network using BOOTP/TFTP protocol
      bootvx  - Boot vxWorks from an ELF image
      bubt    - Burn a u-boot image to flash
      cmp     - memory compare
      coninfo - print console devices and information
      cp      - memory copy
      cp_blob_update- cp_blob_update  - set blob params from uboot enviroment.
    
      cp_reset_to_default- cp_reset_to_default - restore default image.
    
      crc32   - checksum calculation
      dcache  - enable or disable data cache
      dhcp    - boot image via network using DHCP/TFTP protocol
      dm      - Driver model low level access
      echo    - echo args to console
      editenv - edit environment variable
      env     - environment handling commands
      ethsw   - Ethernet l2 switch commands
      exit    - exit script
      ext2load- load binary file from a Ext2 filesystem
      ext2ls  - list files in a directory (default /)
      ext4load- load binary file from a Ext4 filesystem
      ext4ls  - list files in a directory (default /)
      ext4size- determine a file's size
      ext4write- create a file in the root directory
      false   - do nothing, unsuccessfully
      fatinfo - print information about filesystem
      fatload - load binary file from a dos filesystem
      fatls   - list files in a directory (default /)
      fatsize - determine a file's size
      fdt     - flattened device tree utility commands
      fstype  - Look up a filesystem type
      go      - start application at address 'addr'
      gpio    - query and control gpio pins
      gzwrite - unzip and write memory to block device
      help    - print command description/usage
      i2c     - I2C sub-system
      icache  - enable or disable instruction cache
      iminfo  - print header information for application image
      imxtract- extract a part of a multi-image
      init_88e6352- init 88e6352
      init_88e6352_factory- init 88e6352_factory
      ir      - ir    - Reading and changing internal register values.
    
      itest   - return true/false on integer compare
      ledCtl  - ledCtl <LED> <color> <blink>
    
      load    - load binary file from a filesystem
      loadb   - load binary file over serial line (kermit mode)
      loads   - load S-Record file over serial line
      loadx   - load binary file over serial line (xmodem mode)
      loady   - load binary file over serial line (ymodem mode)
      loop    - infinite loop on address range
      ls      - list files in a directory (default /)
      lzmadec - lzma uncompress a memory region
      map     - Display address decode windows
    
      md      - memory display
      mdio    - MDIO utility commands
      menu    - menu
    
      mii     - MII utility commands
      mm      - memory modify (auto-incrementing address)
      mmc     - MMC sub system
      mmcinfo - display MMC info
      mv_fw_info- Prints service CPU firmware information
      mv_get_counters- Get gop counters
      mvsw_reg- marvell 88e6352 switch register access
      mw      - memory write (fill)
      network - network [enable|disable|status]
    
      nfs     - boot image via network using NFS protocol
      nm      - memory modify (constant address)
      part    - disk partition related commands
      pci     - list and access PCI Configuration Space
      phy_fw_down- phy_fw_down - Downloads x3220/3310 Ethernet transceiver PHY firmware.
    
      ping    - send ICMP ECHO_REQUEST to network host
      printenv- print environment variables
      pxe     - commands to get and boot from pxe files
      regulator- uclass operations
      reset   - Perform RESET of the CPU
      run     - run commands in an environment variable
      sata    - SATA sub-system
      save    - save file to a filesystem
      saveenv - save environment variables to persistent storage
      scsi    - SCSI sub-system
      scsiboot- boot from SCSI device
      setenv  - set environment variables
      sf      - SPI flash sub-system
      showvar - print local hushshell variables
      size    - determine a file's size
      sleep   - delay execution for some time
      source  - run script from memory
      sspi    - SPI utility command
      switch  - Switch Access commands
      sysboot - command to get and boot from syslinux files
      test    - minimal test like /bin/sh
      tftpboot- boot image via network using TFTP protocol
      time    - run commands and summarize execution time
      true    - do nothing, successfully
      tsen    - tsen - Display the SoC temperature.
    
      unzip   - unzip a memory region
      usb     - USB sub-system
      usbboot - boot from USB device
      v0_eth_led_test- v0 eth led test tool
      version - print monitor, compiler and linker version
    
  • (空のUSBストレージ装着時ログ)

      ************ Hit 'Ctrl + C' for boot menu ************
                                                                                                                                                 0 1 
      USB0:   Register 2000120 NbrPorts 2
      Starting the controller
      USB XHCI 1.00
      scanning bus 0 for devices... 2 USB Device(s) found
             scanning usb for storage devices... 1 Storage Device(s) found
    
      Trying to load file "u-boot*v0.bin" from USB flash drive using FAT FS
      ** Unable to read file u-boot*v0.bin **
    
      Trying to load file "fw1*.img" from USB flash drive using FAT FS
      ** Unable to read file fw1*.img **
    
      Trying to load file "*.cfg" from USB flash drive using FAT FS
      ** Unable to read file *.cfg **
    

Kernel

expert コマンドでLinux Kernelのコマンドラインに入れる

  • uname -a

      [Expert@Gateway-ID-7Fxxxx4A]# uname -a
      Linux Gateway-ID-7Fxxxx4A 4.14.76-release-1.3.0 #1 SMP Sun Nov 1 10:59:50 IST 2020 aarch64 arm GNU/Linux
    
  • cat /proc/version

      [Expert@Gateway-ID-7Fxxxx4A]# cat /proc/version
      Linux version 4.14.76-release-1.3.0 (builder@xxxxxxxxxxxx) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #1 SMP Sun Nov 1 10:59:50 IST 2020
    
  • cat /proc/cmdline

      [Expert@Gateway-ID-7Fxxxx4A]# cat /proc/cmdline
      console=ttyS0,115200 earlycon=uart8250,mmio32,0xf0512000 crashkernel=30M mvpp2x.queue_mode=1 quiet blkdevparts=mmcblk1:48M@10M(kernel-1),1M(dtb-1),720M(rootfs-1),48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage) maxcpus=4
    
  • cat /proc/cpuinfo

      [Expert@Gateway-ID-7Fxxxx4A]# cat /proc/cpuinfo
      processor       : 0
      BogoMIPS        : 50.00
      Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
      CPU implementer : 0x41
      CPU architecture: 8
      CPU variant     : 0x0
      CPU part        : 0xd08
      CPU revision    : 1
    
      processor       : 1
      BogoMIPS        : 50.00
      Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
      CPU implementer : 0x41
      CPU architecture: 8
      CPU variant     : 0x0
      CPU part        : 0xd08
      CPU revision    : 1
    
      processor       : 2
      BogoMIPS        : 50.00
      Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
      CPU implementer : 0x41
      CPU architecture: 8
      CPU variant     : 0x0
      CPU part        : 0xd08
      CPU revision    : 1
    
      processor       : 3
      BogoMIPS        : 50.00
      Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
      CPU implementer : 0x41
      CPU architecture: 8
      CPU variant     : 0x0
      CPU part        : 0xd08
      CPU revision    : 1
    
  • cat /proc/meminfo

      [Expert@Gateway-ID-7Fxxxx4A]# cat /proc/meminfo
      MemTotal:        2000884 kB
      MemFree:         1113024 kB
      MemAvailable:    1211508 kB
      Buffers:            5740 kB
      Cached:           162632 kB
      SwapCached:            0 kB
      Active:           181628 kB
      Inactive:          49088 kB
      Active(anon):      71384 kB
      Inactive(anon):     6292 kB
      Active(file):     110244 kB
      Inactive(file):    42796 kB
      Unevictable:           0 kB
      Mlocked:               0 kB
      SwapTotal:             0 kB
      SwapFree:              0 kB
      Dirty:                 8 kB
      Writeback:             0 kB
      AnonPages:         62360 kB
      Mapped:            54204 kB
      Shmem:             15344 kB
      Slab:              32736 kB
      SReclaimable:      14788 kB
      SUnreclaim:        17948 kB
      KernelStack:        1936 kB
      PageTables:          972 kB
      NFS_Unstable:          0 kB
      Bounce:                0 kB
      WritebackTmp:          0 kB
      CommitLimit:     1000440 kB
      Committed_AS:     306512 kB
      VmallocTotal:   135290159040 kB
      VmallocUsed:           0 kB
      VmallocChunk:          0 kB
      AnonHugePages:     24576 kB
      ShmemHugePages:        0 kB
      ShmemPmdMapped:        0 kB
      CmaTotal:         262144 kB
      CmaFree:          242252 kB
      HugePages_Total:       0
      HugePages_Free:        0
      HugePages_Rsvd:        0
      HugePages_Surp:        0
      Hugepagesize:       2048 kB
    
  • cat /proc/mtd

      [Expert@Gateway-ID-7Fxxxx4A]# cat /proc/mtd
      dev:    size   erasesize  name
    
  • fdisk -l /dev/mmcblk1

      [Expert@Gateway-ID-7Fxxxx4A]# fdisk -l /dev/mmcblk1
      Disk /dev/mmcblk1: 3776 MB, 3959422976 bytes, 7733248 sectors
      120832 cylinders, 4 heads, 16 sectors/track
      Units: cylinders of 64 * 512 = 32768 bytes
    
      Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
      /dev/mmcblk1p1    320,0,1     1023,3,16        20480    7733247    7712768 3766M 83 Linux
    
  • cat /proc/partitions

    以下のmmcblk1のパーティションはbootargsで渡されたものを基にパースしていて、実際にeMMCのパーティションテーブルに記録されているのは上記fdiskの出力通り1パーティションのみであると思われる

      [Expert@Gateway-ID-7Fxxxx4A]# cat /proc/partitions
      major minor  #blocks  name
    
         1        0       4096 ram0
         1        1       4096 ram1
         1        2       4096 ram2
         1        3       4096 ram3
         1        4       4096 ram4
         1        5       4096 ram5
         1        6       4096 ram6
         1        7       4096 ram7
         1        8       4096 ram8
         1        9       4096 ram9
         1       10       4096 ram10
         1       11       4096 ram11
         1       12       4096 ram12
         1       13       4096 ram13
         1       14       4096 ram14
         1       15       4096 ram15
       179        0    3866624 mmcblk1
       179        1      49152 mmcblk1p1
       179        2       1024 mmcblk1p2
       179        3     737280 mmcblk1p3
       179        4      49152 mmcblk1p4
       179        5       1024 mmcblk1p5
       179        6     737280 mmcblk1p6
       179        7     307200 mmcblk1p7
       179        8     665600 mmcblk1p8
       179        9       1024 mmcblk1p9
       179       10       1024 mmcblk1p10
       179       11    1306624 mmcblk1p11
       179       96        512 mmcblk1rpmb
       179       64       2048 mmcblk1boot1
       179       32       2048 mmcblk1boot0
    
  • mount

      [Expert@Gateway-ID-7Fxxxx4A]# mount 
      rootfs on / type rootfs (rw,size=866040k,nr_inodes=216510)
      proc on /proc type proc (rw,relatime)
      devpts on /dev/pts type devpts (rw,relatime,gid=4,mode=620,ptmxmode=000)
      none on /sys type sysfs (rw,relatime)
      tmpfs on /tmp type tmpfs (rw,relatime,size=20480k)
      tmpfs on /fwtmp type tmpfs (rw,relatime,size=61440k)
      /dev/mmcblk1p8 on /logs type ext4 (rw,relatime,nodelalloc,commit=1)
      /dev/mmcblk1p11 on /storage type ext4 (rw,relatime,nodelalloc,commit=1)
      /dev/mmcblk1p3 on /pfrm2.0 type ext4 (rw,relatime,nodelalloc)
      tmpfs on /tmp/log/local type tmpfs (rw,relatime,size=20480k)
      tmpfs on /tetmp type tmpfs (rw,relatime,size=512000k)
      none on /sys/kernel/debug type debugfs (rw,relatime)
    
  • cat /proc/self/mountinfo

      [Expert@Gateway-ID-7Fxxxx4A]# cat /proc/self/mountinfo  
      1 1 0:2 / / rw - rootfs rootfs rw,size=866040k,nr_inodes=216510
      16 1 0:5 / /proc rw,relatime - proc proc rw
      17 1 0:16 / /dev/pts rw,relatime - devpts devpts rw,gid=4,mode=620,ptmxmode=000
      18 1 0:17 / /sys rw,relatime - sysfs none rw
      19 1 0:18 / /tmp rw,relatime - tmpfs tmpfs rw,size=20480k
      20 1 0:19 / /fwtmp rw,relatime - tmpfs tmpfs rw,size=61440k
      21 1 179:8 / /logs rw,relatime - ext4 /dev/mmcblk1p8 rw,nodelalloc,commit=1
      22 1 179:11 / /storage rw,relatime - ext4 /dev/mmcblk1p11 rw,nodelalloc,commit=1
      23 1 179:3 / /pfrm2.0 rw,relatime - ext4 /dev/mmcblk1p3 rw,nodelalloc
      24 19 0:20 / /tmp/log/local rw,relatime - tmpfs tmpfs rw,size=20480k
      25 1 0:21 / /tetmp rw,relatime - tmpfs tmpfs rw,size=512000k
      26 18 0:7 / /sys/kernel/debug rw,relatime - debugfs none rw
    
  • cat /sys/kernel/debug/gpio

      [Expert@Gateway-ID-7Fxxxx4A]# cat /sys/kernel/debug/gpio     
      gpiochip0: GPIOs 0-19, parent: platform/f06f4000.system-controller:gpio@1040, f06f4000.system-controller:gpio@1040:
    
      gpiochip1: GPIOs 32-63, parent: platform/f2440000.system-controller:gpio@100, f2440000.system-controller:gpio@100:
       gpio-36  (CP_V0_BOARD_ID_1    ) in  lo (act hi) - IRQ disabled
       gpio-38  (cd                  ) in  hi (act lo) - IRQ edge  (clear  )
       gpio-39  (CP_V0_TPM_RST       ) out hi 
       gpio-40  (CP_V0_TPM_PIRQ      ) in  hi (act hi) - IRQ disabled
       gpio-42  (CP_V0_BOARD_ID_0    ) in  lo (act hi) - IRQ disabled
       gpio-44  (Factory Reset       ) in  hi (act lo) - IRQ edge  (clear  )
       gpio-45  (gpio45              ) out hi 
       gpio-54  (switch_int          ) in  lo (act hi) - IRQ disabled
       gpio-55  (gpio55              ) out lo 
       gpio-56  (CP_V0_USB_PWR_EN    ) out hi 
       gpio-58  (gpio58              ) out hi 
    
      gpiochip2: GPIOs 64-94, parent: platform/f2440000.system-controller:gpio@140, f2440000.system-controller:gpio@140:
       gpio-65  (gpio65              ) out hi 
       gpio-66  (gpio66              ) out lo 
       gpio-83  (gpio83              ) out lo 
       gpio-84  (gpio84              ) out hi 
       gpio-86  (gpio86              ) out hi 
       gpio-87  (CP_V0_CPD_ROM_WP    ) out hi 
       gpio-94  (CP_V0_BOARD_ID_2    ) in  lo (act hi) - IRQ disabled
    
  • ls -alh /sys/kernel/debug/pinctrl/*/pinmux-pins
    cat /sys/kernel/debug/pinctrl/*/pinmux-pins

      [Expert@Gateway-ID-7Fxxxx4A]# ls -alh /sys/kernel/debug/pinctrl/*/pinmux-pins
      -r--r--r--    1 root     root           0 Jan  1  1970 /sys/kernel/debug/pinctrl/f06f4000.system-controller:pinctrl/pinmux-pins
      -r--r--r--    1 root     root           0 Jan  1  1970 /sys/kernel/debug/pinctrl/f2440000.system-controller:pinctrl/pinmux-pins
      [Expert@Gateway-ID-7Fxxxx4A]# cat /sys/kernel/debug/pinctrl/*/pinmux-pins
      Pinmux settings per pin
      Format: pin (name): mux_owner gpio_owner hog?
      pin 0 (PIN0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 1 (PIN1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 2 (PIN2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 3 (PIN3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 4 (PIN4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 5 (PIN5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 6 (PIN6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 7 (PIN7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 8 (PIN8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 9 (PIN9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 10 (PIN10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 11 (PIN11): f0512000.serial (GPIO UNCLAIMED) function uart0 group mpp11
      pin 12 (PIN12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 13 (PIN13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 14 (PIN14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 15 (PIN15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 16 (PIN16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 17 (PIN17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 18 (PIN18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 19 (PIN19): f0512000.serial (GPIO UNCLAIMED) function uart0 group mpp19
      Pinmux settings per pin
      Format: pin (name): mux_owner gpio_owner hog?
      pin 0 (PIN0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 1 (PIN1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 2 (PIN2): f2701100.i2c (GPIO UNCLAIMED) function i2c1 group mpp2
      pin 3 (PIN3): f2701100.i2c (GPIO UNCLAIMED) function i2c1 group mpp3
      pin 4 (PIN4): gpio_mpp_oem f2440000.system-controller:gpio@100:36 function gpio group mpp4
      pin 5 (PIN5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 6 (PIN6): (MUX UNCLAIMED) f2440000.system-controller:gpio@100:38
      pin 7 (PIN7): gpio_mpp_oem f2440000.system-controller:gpio@100:39 function gpio group mpp7
      pin 8 (PIN8): gpio_mpp_oem f2440000.system-controller:gpio@100:40 function gpio group mpp8
      pin 9 (PIN9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 10 (PIN10): gpio_mpp_oem f2440000.system-controller:gpio@100:42 function gpio group mpp10
      pin 11 (PIN11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 12 (PIN12): load_default_key f2440000.system-controller:gpio@100:44 function gpio group mpp12
      pin 13 (PIN13): leds f2440000.system-controller:gpio@100:45 function gpio group mpp13
      pin 14 (PIN14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 15 (PIN15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 16 (PIN16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 17 (PIN17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 18 (PIN18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 19 (PIN19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 20 (PIN20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 21 (PIN21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 22 (PIN22): (MUX UNCLAIMED) f2440000.system-controller:gpio@100:54
      pin 23 (PIN23): leds f2440000.system-controller:gpio@100:55 function gpio group mpp23
      pin 24 (PIN24): gpio_mpp_oem f2440000.system-controller:gpio@100:56 function gpio group mpp24
      pin 25 (PIN25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 26 (PIN26): leds f2440000.system-controller:gpio@100:58 function gpio group mpp26
      pin 27 (PIN27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 28 (PIN28): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 29 (PIN29): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 30 (PIN30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 31 (PIN31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 32 (PIN32): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 33 (PIN33): leds f2440000.system-controller:gpio@140:65 function gpio group mpp33
      pin 34 (PIN34): leds f2440000.system-controller:gpio@140:66 function gpio group mpp34
      pin 35 (PIN35): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 36 (PIN36): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 37 (PIN37): f2701000.i2c (GPIO UNCLAIMED) function i2c0 group mpp37
      pin 38 (PIN38): f2701000.i2c (GPIO UNCLAIMED) function i2c0 group mpp38
      pin 39 (PIN39): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 40 (PIN40): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 41 (PIN41): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 42 (PIN42): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 43 (PIN43): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 44 (PIN44): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 45 (PIN45): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 46 (PIN46): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 47 (PIN47): f2700680.spi (GPIO UNCLAIMED) function spi1 group mpp47
      pin 48 (PIN48): f2700680.spi (GPIO UNCLAIMED) function spi1 group mpp48
      pin 49 (PIN49): f2700680.spi (GPIO UNCLAIMED) function spi1 group mpp49
      pin 50 (PIN50): f2700680.spi (GPIO UNCLAIMED) function spi1 group mpp50
      pin 51 (PIN51): leds f2440000.system-controller:gpio@140:83 function gpio group mpp51
      pin 52 (PIN52): leds f2440000.system-controller:gpio@140:84 function gpio group mpp52
      pin 53 (PIN53): (MUX UNCLAIMED) (GPIO UNCLAIMED)
      pin 54 (PIN54): leds f2440000.system-controller:gpio@140:86 function gpio group mpp54
      pin 55 (PIN55): gpio_mpp_oem f2440000.system-controller:gpio@140:87 function gpio group mpp55
      pin 56 (PIN56): f2780000.sdhci (GPIO UNCLAIMED) function sdio group mpp56
      pin 57 (PIN57): f2780000.sdhci (GPIO UNCLAIMED) function sdio group mpp57
      pin 58 (PIN58): f2780000.sdhci (GPIO UNCLAIMED) function sdio group mpp58
      pin 59 (PIN59): f2780000.sdhci (GPIO UNCLAIMED) function sdio group mpp59
      pin 60 (PIN60): f2780000.sdhci (GPIO UNCLAIMED) function sdio group mpp60
      pin 61 (PIN61): f2780000.sdhci (GPIO UNCLAIMED) function sdio group mpp61
      pin 62 (PIN62): f2780000.sdhci f2440000.system-controller:gpio@140:94 function sdio group mpp62
    
  • ls -alh /sys/class/leds/

      [Expert@Gateway-ID-7Fxxxx4A]# ls -alh /sys/class/leds/
      drwxr-xr-x    2 root     root           0 Apr  6 15:22 .
      drwxr-xr-x   57 root     root           0 Apr  6 15:03 ..
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 gpio45 -> ../../devices/platform/leds/leds/gpio45
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 gpio55 -> ../../devices/platform/leds/leds/gpio55
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 gpio58 -> ../../devices/platform/leds/leds/gpio58
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 gpio65 -> ../../devices/platform/leds/leds/gpio65
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 gpio66 -> ../../devices/platform/leds/leds/gpio66
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 gpio83 -> ../../devices/platform/leds/leds/gpio83
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 gpio84 -> ../../devices/platform/leds/leds/gpio84
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 gpio86 -> ../../devices/platform/leds/leds/gpio86
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 mmc0:: -> ../../devices/platform/ap806/ap806:config-space@f0000000/f06e0000.sdhci/leds/mmc0::
      lrwxrwxrwx    1 root     root           0 Apr  6 15:22 mmc1:: -> ../../devices/platform/cp0/cp0:config-space/f2780000.sdhci/leds/mmc1::
    
  • ls -alh /sys/class/gpio/

      [Expert@Gateway-ID-7Fxxxx4A]# ls -alh /sys/class/gpio/
      drwxr-xr-x    2 root     root           0 Apr  6 15:22 .
      drwxr-xr-x   57 root     root           0 Apr  6 15:03 ..
      --w-------    1 root     root        4.0K Apr  6 15:40 export
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpio36 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@100/gpiochip1/gpio/gpio36
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpio39 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@100/gpiochip1/gpio/gpio39
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpio40 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@100/gpiochip1/gpio/gpio40
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpio42 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@100/gpiochip1/gpio/gpio42
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpio54 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@100/gpiochip1/gpio/gpio54
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpio56 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@100/gpiochip1/gpio/gpio56
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpio87 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@140/gpiochip2/gpio/gpio87
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpio94 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@140/gpiochip2/gpio/gpio94
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpiochip0 -> ../../devices/platform/ap806/ap806:config-space@f0000000/f06f4000.system-controller/f06f4000.system-controller:gpio@1040/gpio/gpiochip0
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpiochip32 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@100/gpio/gpiochip32
      lrwxrwxrwx    1 root     root           0 Apr  6 15:40 gpiochip64 -> ../../devices/platform/cp0/cp0:config-space/f2440000.system-controller/f2440000.system-controller:gpio@140/gpio/gpiochip64
      --w-------    1 root     root        4.0K Apr  6 15:40 unexport
    
  • cat /etc/fw_env.config

      [Expert@Gateway-ID-7Fxxxx4A]# cat /etc/fw_env.config    
      # Configuration file for fw_(printenv/setenv) utility.
      # Up to two entries are valid, in this case the redundant
      # environment sector is assumed present.
      # Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
      # Futhermore, if the Flash sector size is omitted, this value is assumed to
      # be the same as the Environment size, which is valid for NOR and SPI-dataflash
      # Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
    
      # NOR example
      # MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
      #/dev/mtd1              0x0000          0x4000          0x4000
      #/dev/mtd2              0x0000          0x4000          0x4000
    
      # V0
      /dev/mmcblk1boot0       0x1F0000        0x10000 
    
      # MTD SPI-dataflash example
      # MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
      #/dev/mtd5              0x4200          0x4200
      #/dev/mtd6              0x4200          0x4200
    
      # NAND example
      #/dev/mtd0              0x4000          0x4000          0x20000                 2
    
      # On a block device a negative offset is treated as a backwards offset from the
      # end of the device/partition, rather than a forwards offset from the start.
    
      # Block device example
      #/dev/mmcblk0           0xc0000         0x20000
      #/dev/mmcblk0           -0x20000        0x20000
    
      # VFAT example
      #/boot/uboot.env        0x0000          0x4000
    
      # UBI volume
      #/dev/ubi0_0            0x0             0x1f000         0x1f000
      #/dev/ubi0_1            0x0             0x1f000         0x1f000
    
      # UBI volume by name
      #/dev/ubi0:env          0x0             0x1f000         0x1f000
      #/dev/ubi0:env-redund   0x0             0x1f000         0x1f000
    
  • fw_printenv

      [Expert@Gateway-ID-7F9CC54A]# fw_printenv 
      activeConfig=1
      activePartition=1
      adsl_partition_mmc_blk=0x4E1800
      adsl_partition_mmc_blk_cnt=0x800
      adsl_reserved_space=1
      arch=arm
      baudrate=115200
      board=mvebu_armada-8k
      board_name=mvebu_armada-8k
      bootaddr=0x6000200
      bootcmd=run bootcmd_part${activePartition};
      bootcmd_legacy=run get_images; run set_bootargs; booti $kernel_addr $ramfs_addr $fdt_addr
      bootcmd_part1=run set_bootargs_vx; run cpboot_prim;
      bootcmd_part2=run set_bootargs_vx; run cpboot_sec;
      bootdelay=2
      bootfile=fw1_vx_dep_R80_992001653_20.img
      bootloader_version=992000129
      brandingFileExtracted=0
      burn_default=run set_mmc_internal ; mmc write ${kern_src_addr} ${def_kern_dest_mmc_blk} ${kern_blk_count}; mmc write ${dtb_src_addr} ${def_dtb_dest_mmc_blk} ${dtb_blk_count}; mmc write ${rootfs_src_addr} ${def_rootfs_dest_mmc_blk} ${rootfs_blk_count}; 
      burn_primary=run set_mmc_internal ; mmc write ${loadaddr} ${prim_header_mmc_blk} 1; mmc write ${kern_src_addr} ${prim_kern_dest_mmc_blk} ${kern_blk_count}; mmc write ${dtb_src_addr} ${prim_dtb_dest_mmc_blk} ${dtb_blk_count}; mmc erase ${prim_rootfs_dest_mmc_blk} ${min_erase_blk_cnt};
      change_config=run switch_config set_bootcmd_normal bootcmd
      confirm_boot=run set_bootcmd_normal bootcmd
      console=console=ttyS0,115200 earlycon=uart8250,mmio32,0xf0512000
      cp_boot_mode=1
      cp_quiet=quiet
      cp_uboot=true
      cpboot_prim=run set_mmc_internal; mmc read ${kernel_addr_r} ${prim_kern_dest_mmc_blk} ${kernel_partition_block_count}; mmc read ${fdt_addr_r} ${prim_dtb_dest_mmc_blk} ${dtb_partition_block_count}; booti ${kernel_addr_r} - ${fdt_addr_r}
      cpboot_sec=run set_mmc_internal; mmc read ${kernel_addr_r} ${secondary_kern_dest_mmc_blk} ${kernel_partition_block_count}; mmc read ${fdt_addr_r} ${secondary_dtb_dest_mmc_blk} ${dtb_partition_block_count}; booti ${kernel_addr_r} - ${fdt_addr_r}
      cpnumofcores=maxcpus=4
      cpu=armv8
      crash_kernel=crashkernel=30M
      def_rootfs_blk_offset=9960
      def_sw_blk_cnt=0x96000
      def_sw_dest_mmc_blk=0x306000
      default_sw_reserved_space=300
      dmz_mac_addr=00:00:00:00:00:00
      dsl2_mac_addr=00:00:00:00:00:00
      dsl3_mac_addr=00:00:00:00:00:00
      dsl_mac_addr=00:00:00:00:00:00
      dtb_blk_count=32
      dtb_partition_block_count=0x800
      dtb_reserved_space=1
      dtb_src_addr=f397fdb
      erase_default_sw=run set_mmc_internal; mmc erase ${def_sw_dest_mmc_blk} ${min_erase_blk_cnt}
      erase_primary_secondary=run primary_part_erase; run secondary_part_erase
      erase_storage=run set_mmc_internal; mmc erase ${storage_partition_mmc_blk} ${min_erase_blk_cnt}
      eth1addr=00:1C:7F:xx:xx:4A
      eth2addr=00:51:82:11:22:02
      eth3addr=00:51:82:11:22:03
      ethact=mvpp2-1
      ethaddr=00:1C:7F:xx:xx:4B
      ethprime=eth1
      extra_params=pci=pcie_bus_safe
      fdt_addr_r=0x6f00000
      fdt_high=0xffffffffffffffff
      fdt_name=fdt.dtb
      fdtcontroladdr=7f5cdcb0
      fileaddr=6000000
      filesize=93ae76c
      flash_erase=run erase_default_sw; run erase_storage
      flash_secondary_erase=run secondary_part_erase; run erase_storage; run logs_erase
      format_fs_parts=0
      format_pfrm_part=0
      fwtmp_dir_size=60
      gatewayip=10.4.50.254
      hardware_capabilities=0
      hostname=marvell
      hw_mac_addr=00:1C:7F:xx:xx:4A
      image_header_blk_cnt=0x1
      initrd_addr=0xa00000
      initrd_size=0x2000000
      ipaddr=192.168.1.1
      kern_blk_count=9959
      kern_reserved_space=48
      kern_src_addr=60003a0
      kernel_addr_r=0x7000000
      kernel_partition_block_count=0x18000
      lan1_mac_addr=00:1C:7F:xx:xx:4B
      lan2_mac_addr=00:1C:7F:xx:xx:4B
      lan3_mac_addr=00:1C:7F:xx:xx:4B
      lan4_mac_addr=00:1C:7F:xx:xx:4B
      lan5_mac_addr=00:1C:7F:xx:xx:4B
      loadaddr=0x6000000
      logs_erase=run set_mmc_internal; mmc erase ${logs_partition_mmc_blk} ${min_erase_blk_cnt}
      logs_partition_mmc_blk=0x39C000
      logs_partition_mmc_blk_cnt=0x145000
      logs_reserved_space=650
      marketing_capabilities=0
      marketing_name=1550
      mgmt_opq=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      mgmt_signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      mgmt_signature_ver=1
      min_erase_blk_cnt=0x400
      mmc_blk_dev=1
      mmc_load=ext4load mmc 1:1
      mmc_start_reserved_space=10
      netdev=eth1
      netmask=255.255.255.0
      preset=0
      preset_cfg_reserved_space=1
      prim_dtb_dest_mmc_blk=0x1D000
      prim_header_mmc_blk=0x5000
      prim_kern_dest_mmc_blk=0x5001
      prim_rootfs_dest_mmc_blk=0x1D800
      prim_rootfs_partition_size=0x168000
      primary_part_erase=run set_mmc_internal; mmc erase ${prim_header_mmc_blk} ${min_erase_blk_cnt}
      ramdisk_addr_r=0x8000000
      ramfs_name=-
      recoverFlag=0
      recover_boot=run switch_active ; run set_recover_flags ; run set_bootcmd_normal bootcmd
      reset_to_default_finalize=run secondary_part_erase; run erase_storage; run logs_erase
      return_to_default=cp_reset_to_default
      rootfs_blk_count=40366
      rootfs_reserved_space=720
      rootpath=/srv/nfs/
      secondary_dtb_dest_mmc_blk=0x19D800
      secondary_header_mmc_blk=0x185800
      secondary_kern_dest_mmc_blk=0x185801
      secondary_part_erase=run set_mmc_internal; mmc erase ${secondary_header_mmc_blk} ${min_erase_blk_cnt}
      serial_number=BA21102825
      serverip=192.168.0.2
      set_bootargs=setenv bootargs ttyS0,115200 earlycon=uart8250,mmio32,0xf0512000 earlyprink root=/dev/mmcblk1p1 rw rootwait
      set_bootargs_vx=run set_console ; setenv bootargs $console $crash_kernel mvpp2x.queue_mode=1 ${cp_quiet} blkdevparts=mmcblk${mmc_blk_dev}:${kern_reserved_space}M@${mmc_start_reserved_space}M(kernel-1),${dtb_reserved_space}M(dtb-1),${rootfs_reserved_space}M(rootfs-1),${kern_reserved_space}M(kernel-2),${dtb_reserved_space}M(dtb-2),${rootfs_reserved_space}M(rootfs-2),${default_sw_reserved_space}M(default_sw),${logs_reserved_space}M(logs),${preset_cfg_reserved_space}M(preset_cfg),${adsl_reserved_space}M(adsl),-(storage) ${cpnumofcores}
      set_bootcmd_normal=setenv bootcmd "run bootcmd_part$activePartition "; saveenv
      set_bootcmd_recover=setenv bootcmd run recover_boot ; saveenv
      set_console=setenv console console=ttyS0,${baudrate} earlycon=uart8250,mmio32,0xf0512000
      set_mmc_internal=mmc dev 1
      set_recover_flags=setenv recoverFlag 1 ; setenv upgradeFlag 0
      soc=mvebu
      stderr=serial@512000
      stdin=serial@512000
      stdout=serial@512000
      storage_partition_mmc_blk=0x4E2000
      storage_partition_mmc_blk_cnt=0x1F4000
      sub_hw_ver=MRV
      switch_active=run switch_active_from_$activePartition
      switch_active_from_1=setenv activePartition 2 ; saveenv
      switch_active_from_2=setenv activePartition 1 ; saveenv
      switch_config=run switch_config_from_$activeConfig
      switch_config_from_1=setenv activeConfig 2 ; saveenv
      switch_config_from_2=setenv activeConfig 1 ; saveenv
      tmp_dir_size=20
      unitModel=V0
      unitVer=1
      upgradeFlag=0
      upgrade_boot=run switch_active ; run set_bootcmd_recover ; setenv upgradeFlag 1 ; saveenv ; run bootcmd_part$activePartition
      usb_filename=fw1_vx_dep_R80_992001682_20.img
      vendor=Marvell
      num_of_flash_writes=1423595184
      cp_boot_no_console_output=0
      mtc_mode_rst_cnt=0
    
  • bootlog

    Linux Kernelのログがごく一部しか表示されないのは、恐らくbootargsの quiet によるもの

    
      BootROM - 2.03
      Starting CP-0 IOROM 1.07
      Booting from eMMC 0 (0x2B)
      Found valid image at boot postion 0x000
      lNOTICE:  Starting binary extension
      NOTICE:  SVC: DEV ID: 7040, FREQ Mode: 0x1a
      NOTICE:  SVC: AVS work point changed from 0x24 to 0x21
      mv_ddr: mv_ddr-release-19.06.3-g??? (Oct 11 2020 - 07:26:41 PM)
      mv_ddr: completed successfully
      NOTICE:  Cold boot
      NOTICE:  Booting Trusted Firmware
      NOTICE:  BL1: v1.5(debug): (Marvell-release-19.06.3)
      NOTICE:  BL1: Built : 19:26:53, Oct 11 2020
      NOTICE:  BL1: Booting BL2
      NOTICE:  BL2: v1.5(debug): (Marvell-release-19.06.3)
      NOTICE:  BL2: Built : 19:26:59, Oct 11 2020
      BL2: Initiating SCP_BL2 transfer to SCP
      NOTICE:  SCP_BL2 contains 5 concatenated images
      NOTICE:  Skipping MSS CP3 related image
      NOTICE:  Skipping MSS CP2 related image
      NOTICE:  Skipping MSS CP1 related image
      NOTICE:  Load image to CP0 MSS AP0
      NOTICE:  Loading MSS image from addr. 0x40286cc Size 0x1cd8 to MSS at 0xf2280000
      NOTICE:  Done
      NOTICE:  Load image to AP0 MSS
      NOTICE:  Loading MSS image from addr. 0x402a3a4 Size 0x5420 to MSS at 0xf0580000
      NOTICE:  Done
      NOTICE:  BL1: Booting BL31
      lNOTICE:  BL31: v1.5(debug): (Marvell-release-19.06.3)
      NOTICE:  BL31: Built : 19:27:09, Oct 11 2020
    
    
      U-Boot 2018.03-release-19.06.3 (Oct 11 2020 - 19:25:51 +0300)
    
      Model: Marvell Armada 7040 Sunspear V0 Software 0.0.6
      SoC: Armada7040-A2; AP806-A1; CP110-A2
      Clock:  CPU     1400 [MHz]
              DDR     800  [MHz]
              FABRIC  800  [MHz]
              MSS     200  [MHz]
      LLC Enabled (Exclusive Mode)
      DRAM:  2 GiB
    
       === V0 board_init (Check Point version: 992000129) ===
      Comphy chip #0:
      Comphy-0: SGMII1        1.25 Gbps 
      Comphy-1: USB3_HOST0   
      Comphy-2: SGMII0        1.25 Gbps 
      Comphy-3: UNCONNECTED  
      Comphy-4: UNCONNECTED  
      Comphy-5: PEX2         
      UTMI PHY 0 initialized to USB Host0
      PCIE-0: Link down
      MMC:   sdhci@6e0000: 0, sdhci@780000: 1
      Loading Environment from MMC... OK
      Model: Marvell Armada 7040 Sunspear V0 Software 0.0.6
      Net:   eth0: mvpp2-0, eth1: mvpp2-1 [PRIME]
      config_88E1512_init++
      m88e151x_config_leds(mvpp2-1)
      cp_set_board_vars started
      switch to partitions #0, OK
      mmc1(part 0) is current device
    
      MMC read: dev # 1, block # 4096, count 512 ... 512 blocks read: OK
      blob magic: a5a51234
      blob crc: 7d21bfc9
      Verifying CRC for settings area... Done
      cp_set_board_vars: dsl_annex is env_set to nothing
      Saving Environment to MMC... Writing to MMC(1)... OK
    
      ************ Hit 'Ctrl + C' for boot menu ************
                                                                                                                                                 0 1 
      USB0:   Register 2000120 NbrPorts 2
      Starting the controller
      USB XHCI 1.00
      scanning bus 0 for devices... 1 USB Device(s) found
             scanning usb for storage devices... 0 Storage Device(s) found
    
      USB storage device not found .. 
      switch to partitions #0, OK
      mmc1(part 0) is current device
    
      MMC read: dev # 1, block # 20481, count 98304 ... 98304 blocks read: OK
    
      MMC read: dev # 1, block # 118784, count 2048 ... 2048 blocks read: OK
      ## Flattened Device Tree blob at 06f00000
         Booting using the fdt blob at 0x6f00000
         Using Device Tree in place at 0000000006f00000, end 0000000006f09220
    
      Starting kernel ...
    
      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 4.14.76-release-1.3.0 (builder@xxxxxxxxxxxx) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #1 SMP Sun Nov 1 10:59:50 IST 2020
      [    0.000000] Boot CPU: AArch64 Processor [410fd081]
      [    0.000000] Machine model: Marvell Armada 7040 Sunspear V0 Software 0.0.4
      [    0.000000] earlycon: uart8250 at MMIO32 0x00000000f0512000 (options '')
      [    0.000000] bootconsole [uart8250] enabled
      [    0.378234] xenon-sdhci f06e0000.sdhci: AP SDHC is running in slow mode
      [    1.473712] armada8k-pcie f2640000.pcie: phy link never came up
      [    1.479672] armada8k-pcie f2640000.pcie: Link not up after reconfiguration
      INIT: version 2.88 booting
    
      Booting Check Point RD-6281-A User Space...
      INIT: Entering runlevel: 3
      ......................................................................................
      System Started...
      Appliance was not configured yet - Checking Zero Touch service...
    
      Gateway-ID-7Fxxxx4A login: 
    
  • dmesg

      [Expert@Gateway-ID-7Fxxxx4A]# dmesg
      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 4.14.76-release-1.3.0 (builder@lnx70bcccmp2) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #1 SMP Sun Nov 1 10:59:50 IST 2020
      [    0.000000] Boot CPU: AArch64 Processor [410fd081]
      [    0.000000] Machine model: Marvell Armada 7040 Sunspear V0 Software 0.0.4
      [    0.000000] earlycon: uart8250 at MMIO32 0x00000000f0512000 (options '')
      [    0.000000] bootconsole [uart8250] enabled
      [    0.000000] efi: Getting EFI parameters from FDT:
      [    0.000000] efi: UEFI not found.
      [    0.000000] crashkernel reserved: 0x000000007e000000 - 0x000000007fe00000 (30 MB)
      [    0.000000] cma: Reserved 256 MiB at 0x000000006e000000
      [    0.000000] NUMA: No NUMA configuration found
      [    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000007fffffff]
      [    0.000000] NUMA: NODE_DATA [mem 0x7ffbe900-0x7ffc03ff]
      [    0.000000] Zone ranges:
      [    0.000000]   DMA      [mem 0x0000000000000000-0x000000007fffffff]
      [    0.000000]   Normal   empty
      [    0.000000] Movable zone start for each node
      [    0.000000] Early memory node ranges
      [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
      [    0.000000]   node   0: [mem 0x0000000004200000-0x00000000043fffff]
      [    0.000000]   node   0: [mem 0x0000000005400000-0x000000007fffffff]
      [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
      [    0.000000] On node 0 totalpages: 519680
      [    0.000000]   DMA zone: 8192 pages used for memmap
      [    0.000000]   DMA zone: 0 pages reserved
      [    0.000000]   DMA zone: 519680 pages, LIFO batch:31
      [    0.000000] psci: probing for conduit method from DT.
      [    0.000000] psci: PSCIv1.1 detected in firmware.
      [    0.000000] psci: Using standard PSCI v0.2 function IDs
      [    0.000000] psci: Trusted OS resident on physical CPU 0x0
      [    0.000000] psci: SMC Calling Convention v1.1
      [    0.000000] percpu: Embedded 23 pages/cpu @ffff80007ff5b000 s57240 r8192 d28776 u94208
      [    0.000000] pcpu-alloc: s57240 r8192 d28776 u94208 alloc=23*4096
      [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
      [    0.000000] Detected PIPT I-cache on CPU0
      [    0.000000] Speculative Store Bypass Disable mitigation not required
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total 4kB pages: 511488
      [    0.000000] Policy zone: DMA
      [    0.000000] Kernel command line: console=ttyS0,115200 earlycon=uart8250,mmio32,0xf0512000 crashkernel=30M mvpp2x.queue_mode=1 quiet blkdevparts=mmcblk1:48M@10M(kernel-1),1M(dtb-1),720M(rootfs-1),48M(kernel-2),1M(dtb-2),720M(rootfs-2),300M(default_sw),650M(logs),1M(preset_cfg),1M(adsl),-(storage) maxcpus=4
      [    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
      [    0.000000] Memory: 1732084K/2078720K available (8700K kernel code, 940K rwdata, 3316K rodata, 6656K init, 636K bss, 84492K reserved, 262144K cma-reserved)
      [    0.000000] Virtual kernel memory layout:
      [    0.000000]     modules : 0xffff000000000000 - 0xffff000010000000   (   256 MB)
      [    0.000000]     vmalloc : 0xffff000010000000 - 0xffff7dffbfff0000   (129022 GB)
      [    0.000000]       .text : 0xffff000010080000 - 0xffff000010900000   (  8704 KB)
      [    0.000000]     .rodata : 0xffff000010900000 - 0xffff000010c40000   (  3328 KB)
      [    0.000000]       .init : 0xffff000010c40000 - 0xffff0000112c0000   (  6656 KB)
      [    0.000000]       .data : 0xffff0000112c0000 - 0xffff0000113ab200   (   941 KB)
      [    0.000000]        .bss : 0xffff0000113ab200 - 0xffff00001144a230   (   637 KB)
      [    0.000000]     fixed   : 0xffff7dfffe7f9000 - 0xffff7dfffec00000   (  4124 KB)
      [    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
      [    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
      [    0.000000]               0xffff7e0000000000 - 0xffff7e0002000000   (    32 MB actual)
      [    0.000000]     memory  : 0xffff800000000000 - 0xffff800080000000   (  2048 MB)
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
      [    0.000000] Hierarchical RCU implementation.
      [    0.000000]  RCU event tracing is enabled.
      [    0.000000]  CONFIG_RCU_FANOUT set to non-default value of 32
      [    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
      [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
      [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
      [    0.000000] GIC: Adjusting CPU interface base to 0x00000000f022f000
      [    0.000000] GIC: Using split EOI/Deactivate mode
      [    0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:160, num:32)
      [    0.000000] GICv2m: range[mem 0xf0280000-0xf0280fff], SPI[160:191]
      [    0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:192, num:32)
      [    0.000000] GICv2m: range[mem 0xf0290000-0xf0290fff], SPI[192:223]
      [    0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:224, num:32)
      [    0.000000] GICv2m: range[mem 0xf02a0000-0xf02a0fff], SPI[224:255]
      [    0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:256, num:32)
      [    0.000000] GICv2m: range[mem 0xf02b0000-0xf02b0fff], SPI[256:287]
      [    0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (phys).
      [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
      [    0.000002] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
      [    0.000164] Console: colour dummy device 80x25
      [    0.000191] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=100000)
      [    0.000196] pid_max: default: 32768 minimum: 301
      [    0.000227] Security Framework initialized
      [    0.001027] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
      [    0.001435] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
      [    0.001456] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
      [    0.001471] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
      [    0.002099] ASID allocator initialised with 32768 entries
      [    0.002134] Hierarchical SRCU implementation.
      [    0.003065] EFI services will not be available.
      [    0.003177] smp: Bringing up secondary CPUs ...
      [    0.003515] Detected PIPT I-cache on CPU1
      [    0.003551] CPU1: Booted secondary processor [410fd081]
      [    0.003912] Detected PIPT I-cache on CPU2
      [    0.003936] CPU2: Booted secondary processor [410fd081]
      [    0.004287] Detected PIPT I-cache on CPU3
      [    0.004304] CPU3: Booted secondary processor [410fd081]
      [    0.004348] smp: Brought up 1 node, 4 CPUs
      [    0.004351] SMP: Total of 4 processors activated.
      [    0.004354] CPU features: detected feature: 32-bit EL0 Support
      [    0.004357] CPU features: detected feature: Kernel page table isolation (KPTI)
      [    0.012301] CPU: All CPU(s) started at EL2
      [    0.012314] alternatives: patching kernel code
      [    0.012721] devtmpfs: initialized
      [    0.014455] random: get_random_u32 called from bucket_table_alloc+0x108/0x258 with crng_init=0
      [    0.014692] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
      [    0.014718] futex hash table entries: 1024 (order: 5, 131072 bytes)
      [    0.017588] pinctrl core: initialized pinctrl subsystem
      [    0.018035] DMI not present or invalid.
      [    0.018195] NET: Registered protocol family 16
      [    0.018809] cpuidle: using governor menu
      [    0.019038] vdso: 2 pages (1 code @ ffff0000112c6000, 1 data @ ffff0000112c5000)
      [    0.019042] vdso: 2 pages (1 code @ ffff000010907000, 1 data @ ffff0000112c5000)
      [    0.019052] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
      [    0.019701] DMA: preallocated 256 KiB pool for atomic allocations
      [    0.019774] Serial: AMBA PL011 UART driver
      [    0.023742] gpio_mpp_oem gpio_mpp_oem: could not find pctldev for node /cp0/config-space/system-controller@440000/pinctrl/cp0-gpio-mpp-oem-pins, deferring probe
      [    0.029977] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
      [    0.030506] ACPI: Interpreter disabled.
      [    0.030892] vgaarb: loaded
      [    0.031062] SCSI subsystem initialized
      [    0.031180] libata version 3.00 loaded.
      [    0.031311] usbcore: registered new interface driver usbfs
      [    0.031335] usbcore: registered new interface driver hub
      [    0.031361] usbcore: registered new device driver usb
      [    0.031708] pps_core: LinuxPPS API ver. 1 registered
      [    0.031711] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
      [    0.031718] PTP clock support registered
      [    0.031922] EDAC MC: Ver: 3.0.0
      [    0.032685] clocksource: Switched to clocksource arch_sys_counter
      [    0.032834] pnp: PnP ACPI: disabled
      [    0.036086] NET: Registered protocol family 2
      [    0.036368] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
      [    0.036466] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
      [    0.036619] TCP: Hash tables configured (established 16384 bind 16384)
      [    0.036754] UDP hash table entries: 1024 (order: 3, 32768 bytes)
      [    0.036790] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
      [    0.036892] NET: Registered protocol family 1
      [    0.036906] PCI: CLS 0 bytes, default 128
      [    0.160996] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
      [    0.161181] kvm [1]: 8-bit VMID
      [    0.161786] kvm [1]: vgic interrupt IRQ1
      [    0.161852] kvm [1]: Hyp mode initialized successfully
      [    0.164531] audit: initializing netlink subsys (disabled)
      [    0.164625] audit: type=2000 audit(0.156:1): state=initialized audit_enabled=0 res=1
      [    0.164851] workingset: timestamp_bits=44 max_order=19 bucket_order=0
      [    0.167586] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.171065] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
      [    0.171071] io scheduler noop registered
      [    0.171148] io scheduler cfq registered (default)
      [    0.171151] io scheduler mq-deadline registered
      [    0.171154] io scheduler kyber registered
      [    0.171248] watchdog_register_device: maxtime=342000ms timeleft=3430355332ms active=0
      [    0.171255] sbsa-gwdt f0610000.watchdog: Initialized with 0s timeout @ 25000000 Hz, action=0.
      [    0.172638] armada-ap806-pinctrl f06f4000.system-controller:pinctrl: registered pinctrl driver
      [    0.173126] armada-cp110-pinctrl f2440000.system-controller:pinctrl: registered pinctrl driver
      [    0.176522] mv_xor_v2 f0400000.xor: Marvell Version 2 XOR driver
      [    0.177018] mv_xor_v2 f0420000.xor: Marvell Version 2 XOR driver
      [    0.177419] mv_xor_v2 f0440000.xor: Marvell Version 2 XOR driver
      [    0.177824] mv_xor_v2 f0460000.xor: Marvell Version 2 XOR driver
      [    0.178283] mv_xor_v2 f26a0000.xor: Marvell Version 2 XOR driver
      [    0.178662] mv_xor_v2 f26c0000.xor: Marvell Version 2 XOR driver
      [    0.180925] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
      [    0.181797] console [ttyS0] disabled
      [    0.201956] f0512000.serial: ttyS0 at MMIO 0xf0512000 (irq = 8, base_baud = 12500000) is a 16550A
      [    0.201975] console [ttyS0] enabled
      [    0.201977] bootconsole [uart8250] disabled
      [    0.203136] omap_rng f2760000.trng: Random Number Generator ver. 203b34c
      [    0.203319] arm-smmu f0100000.iommu: probing hardware configuration...
      [    0.203322] arm-smmu f0100000.iommu: SMMUv2 with:
      [    0.203325] arm-smmu f0100000.iommu:         stage 1 translation
      [    0.203327] arm-smmu f0100000.iommu:         stage 2 translation
      [    0.203330] arm-smmu f0100000.iommu:         nested translation
      [    0.203332] arm-smmu f0100000.iommu:         coherent table walk
      [    0.203338] arm-smmu f0100000.iommu:         stream matching with 16 register groups
      [    0.203342] arm-smmu f0100000.iommu:         8 context banks (0 stage-2 only)
      [    0.203346] arm-smmu f0100000.iommu:         Supported page sizes: 0x61311000
      [    0.203349] arm-smmu f0100000.iommu:         Stage-1: 48-bit VA -> 48-bit IPA
      [    0.203351] arm-smmu f0100000.iommu:         Stage-2: 48-bit IPA -> 48-bit PA
      [    0.207485] brd: module loaded
      [    0.210585] loop: module loaded
      [    0.212417] libphy: Fixed MDIO Bus: probed
      [    0.212794] tun: Universal TUN/TAP device driver, 1.6
      [    0.213372] libphy: orion_mdio_bus: probed
      [    0.229441] mvpp2 f2000000.ethernet eth0: Using firmware node mac address 00:1c:7f:xx:xx:4b
      [    0.231412] mvpp2 f2000000.ethernet eth1: Using firmware node mac address 00:1c:7f:xx:xx:4a
      [    0.301383] mvpp2 f2000000.ethernet eth1: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [    0.352929] PPP generic driver version 2.4.2
      [    0.353063] PPP BSD Compression module registered
      [    0.353096] PPP MPPE Compression module registered
      [    0.353099] NET: Registered protocol family 24
      [    0.353208] VFIO - User Level meta-driver version: 0.3
      [    0.354001] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    0.354007] ehci-pci: EHCI PCI platform driver
      [    0.354030] ehci-platform: EHCI generic platform driver
      [    0.354116] ehci-orion: EHCI orion driver
      [    0.354179] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    0.354184] ohci-pci: OHCI PCI platform driver
      [    0.354205] ohci-platform: OHCI generic platform driver
      [    0.364706] xhci-hcd f2500000.usb3: xHCI Host Controller
      [    0.364799] xhci-hcd f2500000.usb3: new USB bus registered, assigned bus number 1
      [    0.365194] xhci-hcd f2500000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
      [    0.365225] xhci-hcd f2500000.usb3: irq 37, io mem 0xf2500000
      [    0.365554] hub 1-0:1.0: USB hub found
      [    0.365573] hub 1-0:1.0: 1 port detected
      [    0.365719] xhci-hcd f2500000.usb3: xHCI Host Controller
      [    0.365781] xhci-hcd f2500000.usb3: new USB bus registered, assigned bus number 2
      [    0.365787] xhci-hcd f2500000.usb3: Host supports USB 3.0  SuperSpeed
      [    0.365829] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
      [    0.366056] hub 2-0:1.0: USB hub found
      [    0.366071] hub 2-0:1.0: 1 port detected
      [    0.366294] usbcore: registered new interface driver cdc_wdm
      [    0.366339] usbcore: registered new interface driver usb-storage
      [    0.366383] usbcore: registered new interface driver usbserial
      [    0.367472] armada38x-rtc f2284000.rtc: rtc core: registered f2284000.rtc as rtc0
      [    0.367646] i2c /dev entries driver
      [    0.368541] Cavium generic PTP Driver, ver 1.0
      [    0.368874] nct7802_probe++
      [    0.368917] nct7802_init_chip: RTD3_MD = 2
      [    0.370482] nct7802_init_chip: REG_MODE = 0x6f
      [    0.371857] nct7802_probe--
      [    0.371892] nct7802_probe++
      [    0.371928] nct7802_init_chip: RTD3_MD = 3
      [    0.373180] nct7802_init_chip: REG_MODE = 0x7f
      [    0.374527] nct7802_probe--
      [    0.374707] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
      [    0.375867] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
      [    0.376152] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
      [    0.376378] sdhci: Secure Digital Host Controller Interface driver
      [    0.376379] sdhci: Copyright(c) Pierre Ossman
      [    0.376427] Synopsys Designware Multimedia Card Interface Driver
      [    0.376632] sdhci-pltfm: SDHCI platform and OF driver helper
      [    0.376903] xenon-sdhci f06e0000.sdhci: Got CD GPIO
      [    0.378234] xenon-sdhci f06e0000.sdhci: AP SDHC is running in slow mode
      [    0.424794] mmc0: SDHCI controller on f06e0000.sdhci [f06e0000.sdhci] using ADMA 64-bit
      [    0.468698] mmc1: SDHCI controller on f2780000.sdhci [f2780000.sdhci] using ADMA 64-bit
      [    0.469440] ledtrig-cpu: registered to indicate activity on CPUs
      [    0.469860] usbcore: registered new interface driver usbhid
      [    0.469862] usbhid: USB HID core driver
      [    0.470241] optee: probing for conduit method from DT.
      [    0.470248] optee: api uid mismatch
      [    0.470250] Generic LED driver initialize
      [    0.470546] NET: Registered protocol family 10
      [    0.471063] Segment Routing with IPv6
      [    0.471090] NET: Registered protocol family 17
      [    0.471116] Bridge firewalling registered
      [    0.471297] 8021q: 802.1Q VLAN Support v1.8
      [    0.471329] 9pnet: Installing 9P2000 support
      [    0.471358] Key type dns_resolver registered
      [    0.471359] mpls_gso: MPLS GSO support
      [    0.471689] registered taskstats version 1
      [    0.471759] ########  init_hwwatchdog_sysfs error is 0, if OK, configuraing wdt sysfs and checking if wdt thread is needed
      [    0.472437] CP LED driver initialize 
      [    0.472637] gpio_mpp_oem_probe: set CP1_MPP[7] = output = 1
      [    0.472748] gpio_mpp_oem_probe: set CP1_MPP[8] = input
      [    0.472788] gpio_mpp_oem_probe: set CP1_MPP[24] = output = 1
      [    0.473001] gpio_mpp_set: switch_int = 54 flag=0x0 input
      [    0.473042] gpio_mpp_set: adding expander_int_no property with value 50
      [    0.473246] armada8k-pcie f2640000.pcie: host bridge /cp0/pcie@640000 ranges:
      [    0.473260] armada8k-pcie f2640000.pcie:    IO 0xf9020000..0xf902ffff -> 0xf9020000
      [    0.473267] armada8k-pcie f2640000.pcie:   MEM 0xf8000000..0xf8efffff -> 0xf8000000
      [    0.523537] mmc1: new HS200 MMC card at address 0001
      [    0.523743] mmcblk1: mmc1:0001 004GA0 3.69 GiB 
      [    0.523819] mmcblk1boot0: mmc1:0001 004GA0 partition 1 2.00 MiB
      [    0.523893] mmcblk1boot1: mmc1:0001 004GA0 partition 2 2.00 MiB
      [    0.523966] mmcblk1rpmb: mmc1:0001 004GA0 partition 3 512 KiB
      [    0.524210]  mmcblk1: p1(kernel-1) p2(dtb-1) p3(rootfs-1) p4(kernel-2) p5(dtb-2) p6(rootfs-2) p7(default_sw) p8(logs) p9(preset_cfg) p10(adsl) p11(storage)
      [    1.473712] armada8k-pcie f2640000.pcie: phy link never came up
      [    1.479672] armada8k-pcie f2640000.pcie: Link not up after reconfiguration
      [    1.486657] armada8k-pcie f2640000.pcie: PCI host bridge to bus 0000:00
      [    1.486665] pci_bus 0000:00: root bus resource [bus 00-ff]
      [    1.486670] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0xf9020000-0xf902ffff])
      [    1.486673] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xf8efffff]
      [    1.486692] pci 0000:00:00.0: [11ab:0110] type 01 class 0x060400
      [    1.486715] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
      [    1.486764] pci 0000:00:00.0: supports D1 D2
      [    1.486767] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
      [    1.486942] pci 0000:00:00.0: BAR 0: assigned [mem 0xf8000000-0xf80fffff 64bit]
      [    1.486951] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
      [    1.794422] pcieport 0000:00:00.0: Signaling PME with IRQ 51
      [    1.794480] pcieport 0000:00:00.0: AER enabled with IRQ 51
      [    1.794606] armada38x-rtc f2284000.rtc: setting system clock to 2024-04-06 15:02:52 UTC (1712415772)
      [    1.794783] 
      [    1.794783] cp210x_usb_serial_module_init
      [    1.794829] usbcore: registered new interface driver cp210x
      [    1.794847] usbserial: USB Serial support registered for cp210x
      [    1.798465] Freeing unused kernel memory: 6656K
      [    2.271679] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support!
      [    2.304170] EXT4-fs (mmcblk1p8): recovery complete
      [    2.304544] EXT4-fs (mmcblk1p8): mounted filesystem with journalled data mode. Opts: commit=1
      [    2.344194] random: fast init done
      [    2.346171] EXT4-fs (mmcblk1p11): recovery complete
      [    2.346558] EXT4-fs (mmcblk1p11): mounted filesystem with journalled data mode. Opts: commit=1
      [    2.635881] EXT4-fs (mmcblk1p3): recovery complete
      [    2.636272] EXT4-fs (mmcblk1p3): mounted filesystem with journalled data mode. Opts: (null)
      [    3.493967] mvpp2 f2000000.ethernet WAN: renamed from eth1
      [    3.519726] mvpp2_open: Setting device eth0 to DSA
      [    3.527629] mvpp2 f2000000.ethernet eth0: configuring for fixed/1000base-x link mode
      [    3.527683] mvpp2 f2000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
      [    3.538351] marvellmod: loading out-of-tree module taints kernel.
      [    3.538358] marvellmod: module license 'unspecified' taints kernel.
      [    3.538360] Disabling lock debugging due to kernel taint
      [    3.544894] UMSD Driver Init
      [    3.544929] Trying to load UMSD
      [    3.545073] qdLoadDriver Sucess deviceid=1
      [    3.545076] module_init_umsd: Number of switch ports: 7
      [    3.550197] msdStatsFlushAll Sucess
      [    3.604526] portmask=20,num_sw_ports=7
      [    3.604530] mrv_gtw_set_port_based_vlan numOfports=7 ports_mask=32
      [    3.604532]  gvlnSetPortVlanPorts success
      [    3.604534] mrv_gtw_set_port_based_vlan Sucess=7
      [    3.604904] 
      [    3.604904] gstuAddEntry  Success.
      [    3.605950]   umsd_add_cpu_mac_internal(655) Successfully added 00:1c:7f:xx:xx:4b on FID 1
      [    3.605952] ATU List:
      [    3.609590] (00:1c:7f:xx:xx:4b) PortVec 0x20, FID: 1, EntryState: 0xf, MCEntryState: 0xf
      [    4.534804] B4 gstpSetMode =7
      [    4.735090] ********** Driver was initialized succsefully*****************
      [    4.735095] umsd_fdb_port_learn_enable(874) port ff, enable 0, command 0
      [    4.735772] ksw_mrv_netdev_create_port_netdevice LAN1
      [    4.736063] ksw_mrv_netdev_create_port_netdevice LAN2
      [    4.736270] ksw_mrv_netdev_create_port_netdevice LAN3
      [    4.736468] ksw_mrv_netdev_create_port_netdevice LAN4
      [    4.736665] ksw_mrv_netdev_create_port_netdevice LAN5
      [    4.736895] ********** Network devices initialized succsefully*****************
      [    4.828373] NET: Registered protocol family 32
      [    4.828377] kernel UMI module loaded
      [    5.088953] coresight-axim f0840000.axim-ddr-rd: AXIM 4.0 2.0 initialized
      [    5.089263] coresight-axim f0841000.axim-ddr-wr: AXIM 4.0 2.0 initialized
      [    5.089492] coresight-axim f0848000.axim-sb-rd: AXIM 4.0 2.0 initialized
      [    5.089637] coresight-axim f0849000.axim-sb-wr: AXIM 4.0 2.0 initialized
      [    5.089814] coresight-axim f23c5000.axim-cp-rd: AXIM 4.0 1.0 initialized
      [    5.089969] coresight-axim f23c6000.axim-cp-wr: AXIM 4.0 1.0 initialized
      [    5.090132] coresight-axim f23c0000.axim-ppv2-rd: AXIM 4.0 1.0 initialized
      [    5.090286] coresight-axim f23c1000.axim-ppv2-wr: AXIM 4.0 1.0 initialized
      [    5.973219] random: sqlite3: uninitialized urandom read (256 bytes read)
      [    6.093811] random: evtDsptchd: uninitialized urandom read (256 bytes read)
      [    9.866175] SIM: Linux kernel version 4.14.76 
      [    9.866257] Sim: driver installed
      [   11.504814] [sim4_0];FW-1: Linux kernel version 2.6.32--1 
      [   11.575528] [fw4_0];cphwd_register_all_internal_notification_handlers: Error - not handled!
      [   11.575534] [fw4_0];cphwd_register_all_internal_notification_handlers: Error - not handled!
      [   11.578097] [fw4_0];ld tables for gconn dump ready
      [   11.580264] [fw4_0];FW-1: driver installed
      [   12.705546] [sim4_0];FW-1: Linux kernel version 2.6.32--1 
      [   12.744409] [fw4_1];cphwd_register_all_internal_notification_handlers: Error - not handled!
      [   12.744415] [fw4_1];cphwd_register_all_internal_notification_handlers: Error - not handled!
      [   12.746410] [fw4_1];FW-1: driver installed
      [   13.868219] [sim4_0];FW-1: Linux kernel version 2.6.32--1 
      [   13.906639] [fw4_2];cphwd_register_all_internal_notification_handlers: Error - not handled!
      [   13.906645] [fw4_2];cphwd_register_all_internal_notification_handlers: Error - not handled!
      [   13.908584] [fw4_2];FW-1: driver installed
      [   15.029625] [sim4_0];FW-1: Linux kernel version 2.6.32--1 
      [   15.068461] [fw4_3];cphwd_register_all_internal_notification_handlers: Error - not handled!
      [   15.068467] [fw4_3];cphwd_register_all_internal_notification_handlers: Error - not handled!
      [   15.070466] [fw4_3];FW-1: driver installed
      [   15.194789] VPNT: IPv4 over VPN Tunnel driver installed
      [   15.470162] random: fw: uninitialized urandom read (4096 bytes read)
      [   15.479234] [fw4_0];VPN-1: Cryptographic algorithm tests passed successfully
      [   15.479343] [fw4_0];VPN-1: connected to FW-1
      [   15.479350] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 4
      [   15.479354] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 5
      [   15.479358] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 6
      [   15.479362] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 7
      [   15.479366] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 10
      [   15.479370] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 11
      [   15.479374] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 8
      [   15.479378] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 9
      [   15.479382] [fw4_0];fwmultik_msg_reg_handler: same handler already registered for type 12
      [   15.480491] [fw4_0];fwha_cluster_msg_register_handler: Registering handler ffff000002026470 for VPN
      [   15.483109] [fw4_0];FW-1: fwkdebug_register: module CI already registered
      [   15.677725] [fw4_1];VPN-1: Cryptographic algorithm tests passed successfully
      [   15.677840] [fw4_1];VPN-1: connected to FW-1
      [   15.677846] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 4
      [   15.677850] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 5
      [   15.677854] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 6
      [   15.677858] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 7
      [   15.677863] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 10
      [   15.677867] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 11
      [   15.677871] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 8
      [   15.677874] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 9
      [   15.677878] [fw4_1];fwmultik_msg_reg_handler: same handler already registered for type 12
      [   15.678365] [fw4_1];fwha_cluster_msg_register_handler: Registering handler ffff000004c21470 for VPN
      [   15.679797] [fw4_1];FW-1: fwkdebug_register: module CI already registered
      [   15.680671] [fw4_2];VPN-1: Cryptographic algorithm tests passed successfully
      [   15.680803] [fw4_2];VPN-1: connected to FW-1
      [   15.680809] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 4
      [   15.680813] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 5
      [   15.680817] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 6
      [   15.680821] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 7
      [   15.680825] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 10
      [   15.680829] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 11
      [   15.680833] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 8
      [   15.680837] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 9
      [   15.680840] [fw4_2];fwmultik_msg_reg_handler: same handler already registered for type 12
      [   15.681327] [fw4_2];fwha_cluster_msg_register_handler: Registering handler ffff000006e76470 for VPN
      [   15.682692] [fw4_2];FW-1: fwkdebug_register: module CI already registered
      [   15.683584] [fw4_3];VPN-1: Cryptographic algorithm tests passed successfully
      [   15.683699] [fw4_3];VPN-1: connected to FW-1
      [   15.683706] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 4
      [   15.683709] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 5
      [   15.683713] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 6
      [   15.683717] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 7
      [   15.683722] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 10
      [   15.683726] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 11
      [   15.683729] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 8
      [   15.683733] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 9
      [   15.683737] [fw4_3];fwmultik_msg_reg_handler: same handler already registered for type 12
      [   15.684207] [fw4_3];fwha_cluster_msg_register_handler: Registering handler ffff0000090cb470 for VPN
      [   15.685526] [fw4_3];FW-1: fwkdebug_register: module CI already registered
      [   15.825867] [fw4_0];FW-1: Unknown device lo is going down
      [   15.825890] [fw4_1];FW-1: Unknown device lo is going down
      [   15.825911] [fw4_2];FW-1: Unknown device lo is going down
      [   15.825931] [fw4_3];FW-1: Unknown device lo is going down
      [   15.826064] [fw4_0];FW-1: Unknown device lo went down
      [   15.826116] [fw4_1];FW-1: Unknown device lo went down
      [   15.826164] [fw4_2];FW-1: Unknown device lo went down
      [   15.826210] [fw4_3];FW-1: Unknown device lo went down
      [   16.297792] mvpp2_open: Setting device WAN to NH
      [   16.373393] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [   16.375642] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [   16.916012] random: sqlite3: uninitialized urandom read (256 bytes read)
      [   17.054814] cpwd (2670): /proc/2670/oom_adj is deprecated, please use /proc/2670/oom_score_adj instead.
      [   17.200075] random: thttpd: uninitialized urandom read (32 bytes read)
      [   18.030129] random: sqlite3: uninitialized urandom read (256 bytes read)
      [   18.207692] random: crng init done
      [   20.461122] Initialzing Factory Reset module
      [   20.461126] setInterruptLinux irq: 84
      [   20.490995] Wait for first press is Enabled
      [   21.296452] usbcore: registered new interface driver usb_debug
      [   21.296478] usbserial: USB Serial support registered for debug
      [   21.296494] usbserial: USB Serial support registered for xhci_dbc
      [   21.303174] usbcore: registered new interface driver cdc_ncm
      [   21.306196] usbcore: registered new interface driver cdc_ether
      [   21.308969] usbcore: registered new interface driver cdc_mbim
      [   21.314041] usbcore: registered new interface driver huawei_cdc_ncm
      [   21.319339] usbcore: registered new interface driver sierra_net
      [   21.323493] usbcore: registered new interface driver qmi_wwan
      [   21.328951] usbcore: registered new interface driver cdc_eem
      [   21.331847] usbcore: registered new interface driver rndis_host
      [   21.335981] usbcore: registered new interface driver pl2303
      [   21.336007] usbserial: USB Serial support registered for pl2303
      [   21.369500] usbcore: registered new interface driver option
      [   21.369527] usbserial: USB Serial support registered for GSM modem (1-port)
      [   21.379502] usbcore: registered new interface driver qcserial
      [   21.379529] usbserial: USB Serial support registered for Qualcomm USB modem
      [   21.383069] usbcore: registered new interface driver sierra
      [   21.383097] usbserial: USB Serial support registered for Sierra USB modem
      [   21.385952] usbcore: registered new interface driver omninet
      [   21.385979] usbserial: USB Serial support registered for ZyXEL - omni.net lcd plus usb
      [   21.391233] usbcore: registered new interface driver belkin_sa
      [   21.391265] usbserial: USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
      [   21.406509] usbcore: registered new interface driver aircable
      [   21.406535] usbserial: USB Serial support registered for aircable
      [   21.410808] usbcore: registered new interface driver cdc_acm
      [   21.410811] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
      [   23.676154] Updating vid 1 link status
      [   23.696360] ksw_mrv_dev_do_ioctl(487)
      [   23.696364] Ports vlan
      [   23.696365] num      |VID    |port_state     |
      [   23.696367] --------------------------------------------
      [   23.696369] 1        |1      |3      |
      [   23.696371] 2        |1      |3      |
      [   23.696373] 3        |1      |3      |
      [   23.696374] 4        |1      |3      |
      [   23.696376] 5        |1      |3      |
      [   23.696377] 
      [   23.696377] Vlan port Mask
      [   23.696379] VID      |Port mask      |
      [   23.696380] -----------------------
      [   23.696382] 1        |0x1f   |
      [   23.696394] 
      [   23.696396] g_port_vlan_exist=0
      [   23.696726] umsd_fdb_port_learn_enable(874) port 0, enable 0, command 0
      [   23.697713] umsd_fdb_port_learn_enable(874) port 1, enable 0, command 0
      [   23.699438] umsd_fdb_port_learn_enable(874) port 2, enable 0, command 0
      [   23.701168] umsd_fdb_port_learn_enable(874) port 3, enable 0, command 0
      [   23.702837] umsd_fdb_port_learn_enable(874) port 4, enable 0, command 0
      [   23.704162] ksw_mrv_dev_apply_current_vlans(173)
      [   23.704164] Ports vlan
      [   23.704165] num      |VID    |port_state     |
      [   23.704167] --------------------------------------------
      [   23.704169] 1        |1      |0      |
      [   23.704170] 2        |1      |0      |
      [   23.704172] 3        |1      |0      |
      [   23.704174] 4        |1      |0      |
      [   23.704175] 5        |1      |0      |
      [   23.704176] 
      [   23.704176] Vlan port Mask
      [   23.704178] VID      |Port mask      |
      [   23.704179] -----------------------
      [   23.704181] 1        |0x1f   |
      [   23.704188] 
      [   23.704190] g_port_vlan_exist=0
      [   23.704757] umsd_set_vlan_ports(1705) vid 1, port_mask 0x3f, port_num 5
      [   23.704760] mrv_gtw_set_port_based_vlan numOfports=7 ports_mask=63
      [   23.704762] 
      [   23.704762]  port0 friends:
      [   23.704763]  1 
      [   23.704765]  2 
      [   23.704766]  3 
      [   23.704768]  4 
      [   23.704769]  5 
      [   23.704772] 
      [   23.704772] port=0 dev->numOfPorts=7 ports_mask=0x3f num_of_ports=5
      [   23.704898] 
      [   23.704898]  port1 friends:
      [   23.704899]  0 
      [   23.704901]  2 
      [   23.704902]  3 
      [   23.704904]  4 
      [   23.704905]  5 
      [   23.704907] 
      [   23.704907] port=1 dev->numOfPorts=7 ports_mask=0x3f num_of_ports=5
      [   23.705032] 
      [   23.705032]  port2 friends:
      [   23.705033]  0 
      [   23.705035]  1 
      [   23.705036]  3 
      [   23.705038]  4 
      [   23.705039]  5 
      [   23.705041] 
      [   23.705041] port=2 dev->numOfPorts=7 ports_mask=0x3f num_of_ports=5
      [   23.705166] 
      [   23.705166]  port3 friends:
      [   23.705168]  0 
      [   23.705169]  1 
      [   23.705171]  2 
      [   23.705172]  4 
      [   23.705173]  5 
      [   23.705175] 
      [   23.705175] port=3 dev->numOfPorts=7 ports_mask=0x3f num_of_ports=5
      [   23.705300] 
      [   23.705300]  port4 friends:
      [   23.705301]  0 
      [   23.705303]  1 
      [   23.705304]  2 
      [   23.705306]  3 
      [   23.705307]  5 
      [   23.705309] 
      [   23.705309] port=4 dev->numOfPorts=7 ports_mask=0x3f num_of_ports=5
      [   23.705434]  gvlnSetPortVlanPorts success
      [   23.706480]   umsd_add_cpu_mac_internal(655) Successfully added 00:1c:7f:xx:xx:4b on FID 1
      [   23.706493] umsd_fdb_port_learn_enable(874) port 0, enable 1, command 0
      [   23.707785] umsd_fdb_port_learn_enable(874) port 1, enable 1, command 0
      [   23.709479] umsd_fdb_port_learn_enable(874) port 2, enable 1, command 0
      [   23.711145] umsd_fdb_port_learn_enable(874) port 3, enable 1, command 0
      [   23.712875] umsd_fdb_port_learn_enable(874) port 4, enable 1, command 0
      [   23.714734] ksw_mrv_dev_do_ioctl(489)
      [   23.714737] Ports vlan
      [   23.714738] num      |VID    |port_state     |
      [   23.714740] --------------------------------------------
      [   23.714742] 1        |1      |0      |
      [   23.714744] 2        |1      |0      |
      [   23.714745] 3        |1      |0      |
      [   23.714747] 4        |1      |0      |
      [   23.714748] 5        |1      |0      |
      [   23.714750] 
      [   23.714750] Vlan port Mask
      [   23.714751] VID      |Port mask      |
      [   23.714753] -----------------------
      [   23.714755] 1        |0x1f   |
      [   23.714765] 
      [   23.714767] g_port_vlan_exist=1
      [   23.714771] Updating vid 1 link status
      [   23.817845] Updating vid 1 link status
      [   23.818508] Updating vid 1 link status
      [   23.931426] Updating vid 1 link status
      [   23.966012] New timeout is 12
      [   24.084666] Updating vid 1 link status
      [   24.262713] Updating vid 1 link status
      [   25.719738] [fw4_0];FW-1: Warning: No valid license
      [   25.719802] [fw4_1];FW-1: Warning: No valid license
      [   25.719850] [fw4_2];FW-1: Warning: No valid license
      [   25.719892] [fw4_3];FW-1: Warning: No valid license
      [   25.978403] [fw4_0];cphwd_api_set_seg_info_: calling func with seg_num 4, func_ptr is ffff000000a002d8
      [   25.978412] [SIM4];sim_db_init_hash: Called, with num_segs = 4
      [   25.978714] [fw4_0];cphwd_api_q_host_queues_init: initializing host queues.. total cores=4, active queues=4
      [   25.982725] [fw4_0];cphwd_api_q_set_host_queues_affinity: Setting affinity..
      [   26.047904] [SIM4];cphwd_api_register_host: already registered
      [   26.047915] [fw4_0];cphwd_api_set_seg_info_: calling func with seg_num 4, func_ptr is ffff000000a002d8
      [   26.047920] [SIM4];sim_db_init_hash: Called, with num_segs = 4
      [   26.048118] [SIM4];cphwd_api_set_num_of_sxl_devices: set number of sxl devices to: 1
      [   26.048356] [fw4_0];FW-1: SND SecureXL device detected (ID 0)
      [   26.175564] [fw4_0];FW-1: fwloghandle_sanity: no log handle
      [   26.175570] [fw4_0];FW-1: fwloghandle_send_log: no log handle
      [   26.175574] [fw4_0];FW-1: fwloghandle_destroy: no log handle
      [   26.175639] [SIM4];SIM (sim_mgr_handle_message): sim was not initialized. opcode=76 vsid=0 service_id=0 internal_flags=4
      [   26.903642] [fw4_0];==>fwk_cmi_prepare: SMEM used: 340066460
      [   26.903691] [fw4_0];<==fwk_cmi_prepare: SMEM used: 340071888
      [   26.922079] [fw4_0];FW-1: No normal policy. Acceleration is disabled.
      [   26.925401] [fw4_1];FW-1: No normal policy. Acceleration is disabled.
      [   26.928634] [fw4_2];FW-1: No normal policy. Acceleration is disabled.
      [   26.931872] [fw4_3];FW-1: No normal policy. Acceleration is disabled.
      [   26.932223] [fw4_0];===> ACC: Accelerator started. Features: 0x3b (v300151119)
      [   26.932259] [fw4_1];===> ACC: Accelerator started. Features: 0x3b (v300151119)
      [   26.932289] [fw4_2];===> ACC: Accelerator started. Features: 0x3b (v300151119)
      [   26.932311] [fw4_3];===> ACC: Accelerator started. Features: 0x3b (v300151119)
      [   27.272751] [fw4_0];FW-1: Warning: No valid license
      [   27.272814] [fw4_1];FW-1: Warning: No valid license
      [   27.272868] [fw4_2];FW-1: Warning: No valid license
      [   27.272920] [fw4_3];FW-1: Warning: No valid license
      [   28.050094] [fw4_0];Successfully configured Routing (6)
      [  395.271483] mvpp2_open: Setting device WAN to NH
      [  395.345392] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [  395.347662] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [  757.063573] mvpp2_open: Setting device WAN to NH
      [  757.137413] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [  757.139666] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 1118.762180] mvpp2_open: Setting device WAN to NH
      [ 1118.837424] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [ 1118.839676] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 1480.453757] mvpp2_open: Setting device WAN to NH
      [ 1480.529398] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [ 1480.531665] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 1842.064056] mvpp2_open: Setting device WAN to NH
      [ 1842.141394] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [ 1842.143665] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 2203.764060] mvpp2_open: Setting device WAN to NH
      [ 2203.841398] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [ 2203.843652] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 2565.464114] mvpp2_open: Setting device WAN to NH
      [ 2565.545412] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [ 2565.547668] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 2927.256209] mvpp2_open: Setting device WAN to NH
      [ 2927.333403] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [ 2927.335658] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 3288.960134] mvpp2_open: Setting device WAN to NH
      [ 3289.037401] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [ 3289.039657] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 3541.600953] Updating port 3 link status
      [ 3541.600957] Updating vid 1 link status
      [ 3541.601405] LAN1: Link Up
      [ 3549.664949] Updating port 3 link status
      [ 3549.664952] Updating vid 1 link status
      [ 3549.665273] LAN1: Link Down
      [ 3551.680953] Updating port 3 link status
      [ 3551.680957] Updating vid 1 link status
      [ 3551.681404] LAN1: Link Up
      [ 3650.652101] mvpp2_open: Setting device WAN to NH
      [ 3650.729401] mvpp2 f2000000.ethernet WAN: PHY [f212a200.mdio-mii:01] driver [Marvell 88E1510]
      [ 3650.731654] mvpp2 f2000000.ethernet WAN: configuring for phy/sgmii link mode
      [ 3653.857078] [WAN] up, speed=1000
      [ 3653.857114] mvpp2 f2000000.ethernet WAN: Link is Up - 1Gbps/Full - flow control off
      [ 3662.867352] [fw4_0];Successfully configured Routing (6)
      [ 3670.098730] mvpp2 f2000000.ethernet WAN: Link is Down
      [ 3670.098734] [WAN] down
      [ 3671.125646] [fw4_0];Successfully configured Routing (6)