大破雑記帳

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

HDL2-A OpenWrtブートログメモ

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

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

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

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

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

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

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

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

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


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

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


2746315 bytes read

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

Starting kernel ...

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



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

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

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