Welcome! Log In Create A New Profile

Advanced

Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels

Posted by Micky Wicky 
Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 23, 2025 07:38AM
Hi all
This could be the same problem I'm experiencing: https://forum.doozan.com/read.php?2,110769

For context, after much support from our host a few years ago, I got Debian running stable with 2x SATA HDDs, and that ran without any issues for years. A couple of weeks ago I figured I'd update the kernel from 5.4.2 (!) to 6.12.6.

At that point I started getting boot failures, as long as any SATA HDD was connected, see logs below.
It looks like the USB root device (seen as /dev/sdc) briefly goes offline during the boot process and is reconnected almost immeditely, but as /dev/sdd. So the boot process does not find the filesystem anymore and fails with I/O errors.

To help debugging I grabbed another pen drive which also used to work, and created a fresh new rootfs with 6.5.7. That rootfs is untouched and fails out of the box in almost the same way: I can get to aroot login prompt, but after a couple of minutes (at most), the same thing happens. The root device /dev/sdc disappears and reappears as /dev/sdd, so all I/O accesses fail.

Both pendrives work correctly when there are no SATA HDDs attached to the device.

U-Boot envs:
NSA3x0S> printenv  
arcNumber=4931  
baudrate=115200  
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)  
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset  
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi  
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi  
bootdelay=10  
bootdev=usb  
console=ttyS0,115200  
device=0:1  
devices=usb  
disks=0 1 2 3  
dtb_file=/boot/dts/kirkwood-nsa320s.dtb  
ethact=egiga0  
ethaddr=XX:XX:XX:XX:XX:XX
fileaddr=800000  
filesize=5ef848  
if_netconsole=ping $serverip  
ipaddr=192.168.0.231  
led_error=orange blinking  
led_exit=green off  
led_init=green blinking  
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file  
load_dtb_addr=0x2c00000  
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd  
load_initrd_addr=0x1100000  
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage  
load_uimage_addr=0x800000  
mainlineLinux=yes  
mtdids=nand0=orion_nand  
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)  
partition=nand0,2  
poke=mw.l f1010104 c70f0ffd  
preboot_nc=run if_netconsole start_netconsole  
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done  
serverip=192.168.0.220  
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params  
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;  
stderr=serial  
stdin=serial  
stdout=serial  
uenv_addr=0x810000  
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize  
uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;  
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done;  
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi  
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi

Environment size: 3297/131068 bytes

And boot log:
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:50:06 -0700)  
ZyXEL NSA310S/320S 1/2-Bay Power Media Server

SoC: Kirkwood 88F6702_A1  
DRAM: 256 MiB  
WARNING: Caches not enabled  
NAND: 128 MiB  
In: serial  
Out: serial  
Err: serial  
Net: egiga0  
MV88E1318 PHY initialized on egiga0  
Hit any key to stop autoboot: 0  
NSA3x0S> printenv poke; run poke; ide reset; sleep 60; usb start; boot  
poke=mw.l f1010104 c70f0ffd

Reset IDE: Bus 0: OK Bus 1: .........OK  
  Device 0: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#: WD-WCC4N6FC8VSV  
            Type: Hard Disk  
            Supports 48-bit addressing  
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)  
  Device 1: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#: WD-WCC4N6JN55AL  
            Type: Hard Disk  
            Supports 48-bit addressing  
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)  
starting USB...  
USB0: USB EHCI 1.00  
scanning bus 0 for devices... 3 USB Device(s) found  
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type  
  1 2048 3905536 06b4319f-01 83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0  
loading envs from usb 0 ...  
** File not found /boot/uEnv.txt **  
running scan_disk ...  
Scan device usb  
device usb 0:1  
1 bytes read in 661 ms (0 Bytes/s)  
Found bootable drive on usb 0  
loading uImage ...  
6223944 bytes read in 1058 ms (5.6 MiB/s)  
loading uInitrd ...  
5791271 bytes read in 947 ms (5.8 MiB/s)  
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...  
12802 bytes read in 1799 ms (6.8 KiB/s)  
## Booting kernel from Legacy Image at 00800000 ...  
   Image Name: Linux-6.5.7-kirkwood-tld-1  
   Created: 2023-10-31 22:53:22 UTC  
   Image Type: ARM Linux Kernel Image (uncompressed)  
   Data Size: 6223880 Bytes = 5.9 MiB  
   Load Address: 00008000  
   Entry Point: 00008000  
   Verifying Checksum ... OK  
## Loading init Ramdisk from Legacy Image at 01100000 ...  
   Image Name: initramfs-6.5.7-kirkwood-tld-1  
   Created: 2023-10-31 22:53:55 UTC  
   Image Type: ARM Linux RAMDisk Image (gzip compressed)  
   Data Size: 5791207 Bytes = 5.5 MiB  
   Load Address: 00000000  
   Entry Point: 00000000  
   Verifying Checksum ... OK  
## Flattened Device Tree blob at 02c00000  
   Booting using the fdt blob at 0x2c00000  
   Loading Kernel Image ... OK  
   Loading Ramdisk to 0f585000, end 0fb0ade7 ... OK  
   Loading Device Tree to 0f57e000, end 0f584201 ... OK

Starting kernel ...

[ 0.000000][ T0] Booting Linux on physical CPU 0x0  
[ 0.000000][ T0] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023  
[ 0.000000][ T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f  
[ 0.000000][ T0] CPU: VIVT data cache, VIVT instruction cache  
[ 0.000000][ T0] OF: fdt: Machine model: Zyxel NSA320S  
[ 0.000000][ T0] Memory policy: Data cache writeback  
[ 0.000000][ T0] Zone ranges:  
[ 0.000000][ T0] Normal [mem 0x0000000000000000-0x000000000fffffff]  
[ 0.000000][ T0] Movable zone start for each node  
[ 0.000000][ T0] Early memory node ranges  
[ 0.000000][ T0] node 0: [mem 0x0000000000000000-0x000000000fffffff]  
[ 0.000000][ T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]  
[ 0.000000][ T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)  
[ 0.000000][ T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)  
[ 0.000000][ T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)  
[ 0.000000][ T0] Built 1 zonelists, mobility grouping on. Total pages: 64960  
[ 0.000000][ T0] mem auto-init: stack:off, heap alloc:on, heap free:off  
[ 0.000000][ T0] Memory: 232336K/262144K available (12288K kernel code, 1755K rwdata, 5416K rodata, 1024K init, 301K bss, 29808K reserved, 0K cma-reserved)  
[ 0.000000][ T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1  
[ 0.000000][ T0] trace event string verifier disabled  
[ 0.000000][ T0] rcu: Preemptible hierarchical RCU implementation.  
[ 0.000000][ T0] Trampoline variant of Tasks RCU enabled.  
[ 0.000000][ T0] Tracing variant of Tasks RCU enabled.  
[ 0.000000][ T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.  
[ 0.000000][ T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16  
[ 0.000000][ T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.  
[ 0.000000][ T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns  
[ 0.000002][ T0] sched_clock: 32 bits at 167MHz, resolution 6ns, wraps every 12884901885ns  
[ 0.000056][ T0] Switching to timer-based delay loop, resolution 6ns  
[ 0.000738][ T0] Console: colour dummy device 80x30  
[ 0.000819][ T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)  
[ 0.000854][ T0] CPU: Testing write buffer coherency: ok  
[ 0.001006][ T0] pid_max: default: 32768 minimum: 301  
[ 0.011516][ T0] LSM: initializing lsm=capability,integrity  
[ 0.014374][ T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)  
[ 0.014415][ T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)  
[ 0.028919][ T1] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.  
[ 0.029331][ T1] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.  
[ 0.029860][ T1] Setting up static identity map for 0x100000 - 0x100058  
[ 0.030330][ T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3  
[ 0.030812][ T1] rcu: Hierarchical SRCU implementation.  
[ 0.030830][ T1] rcu: Max phase no-delay instances is 1000.  
[ 0.034300][ T1] devtmpfs: initialized  
[ 0.047022][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns  
[ 0.047074][ T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)  
[ 0.050636][ T1] prandom: seed boundary self test passed  
[ 0.055756][ T1] prandom: 100 self tests passed  
[ 0.055773][ T1] pinctrl core: initialized pinctrl subsystem  
[ 0.060878][ T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family  
[ 0.061831][ T1] DMA: preallocated 256 KiB pool for atomic coherent allocations  
[ 0.068196][ T1] audit: initializing netlink subsys (disabled)  
[ 0.070642][ T1] thermal_sys: Registered thermal governor 'step_wise'  
[ 0.070827][ T19] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1  
[ 0.070885][ T1] cpuidle: using governor ladder  
[ 0.070976][ T1] cpuidle: using governor menu  
[ 0.071732][ T1] Feroceon L2: Enabling L2  
[ 0.071772][ T1] Feroceon L2: Cache support initialised.  
[ 0.084961][ T1] No ATAGs?  
[ 0.450075][ T1] raid6: int32x8 gen() 93 MB/s  
[ 0.790070][ T1] raid6: int32x4 gen() 92 MB/s  
[ 1.130103][ T1] raid6: int32x2 gen() 120 MB/s  
[ 1.470070][ T1] raid6: int32x1 gen() 93 MB/s  
[ 1.470084][ T1] raid6: using algorithm int32x2 gen() 120 MB/s  
[ 1.810072][ T1] raid6: .... xor() 76 MB/s, rmw enabled  
[ 1.810086][ T1] raid6: using intx1 recovery algorithm  
[ 1.812009][ T1] SCSI subsystem initialized  
[ 1.812884][ T1] usbcore: registered new interface driver usbfs  
[ 1.812964][ T1] usbcore: registered new interface driver hub  
[ 1.813038][ T1] usbcore: registered new device driver usb  
[ 1.813466][ T1] pps_core: LinuxPPS API ver. 1 registered  
[ 1.813477][ T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>  
[ 1.813514][ T1] PTP clock support registered  
[ 1.816708][ T1] vgaarb: loaded  
[ 1.817663][ T1] clocksource: Switched to clocksource orion_clocksource  
[ 1.836525][ T1] VFS: Disk quotas dquot_6.6.0  
[ 1.837039][ T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)  
[ 1.876012][ T1] NET: Registered PF_INET protocol family  
[ 1.876363][ T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)  
[ 1.878969][ T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)  
[ 1.879188][ T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)  
[ 1.879223][ T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)  
[ 1.879272][ T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)  
[ 1.879328][ T1] TCP: Hash tables configured (established 2048 bind 2048)  
[ 1.880126][ T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)  
[ 1.880409][ T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)  
[ 1.880448][ T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)  
[ 1.881479][ T1] NET: Registered PF_UNIX/PF_LOCAL protocol family  
[ 1.888748][ T1] RPC: Registered named UNIX socket transport module.  
[ 1.888765][ T1] RPC: Registered udp transport module.  
[ 1.888772][ T1] RPC: Registered tcp transport module.  
[ 1.888779][ T1] RPC: Registered tcp-with-tls transport module.  
[ 1.888786][ T1] RPC: Registered tcp NFSv4.1 backchannel transport module.  
[ 1.888810][ T1] PCI: CLS 0 bytes, default 32  
[ 1.892153][ T32] Trying to unpack rootfs image as initramfs...  
[ 3.017073][ T32] Freeing initrd memory: 5656K  
[ 4.242602][ T1] Initialise system trusted keyrings  
[ 4.242708][ T1] Key type blacklist registered  
[ 4.244298][ T1] workingset: timestamp_bits=14 max_order=16 bucket_order=2  
[ 4.244500][ T1] zbud: loaded  
[ 4.267312][ T1] NFS: Registering the id_resolver key type  
[ 4.267407][ T1] Key type id_resolver registered  
[ 4.267418][ T1] Key type id_legacy registered  
[ 4.267647][ T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...  
[ 4.267753][ T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...  
[ 4.269646][ T1] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.  
[ 4.270648][ T1] fuse: init (API version 7.38)  
[ 4.272379][ T1] orangefs_debugfs_init: called with debug mask: :none: :0:  
[ 4.272717][ T1] orangefs_init: module version upstream loaded  
[ 4.273190][ T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled  
[ 4.527283][ T1] xor: measuring software checksum speed  
[ 4.537966][ T1] arm4regs : 927 MB/sec  
[ 4.555666][ T1] 8regs : 556 MB/sec  
[ 4.568169][ T1] 32regs : 789 MB/sec  
[ 4.568180][ T1] xor: using function: arm4regs (927 MB/sec)  
[ 4.568198][ T1] async_tx: api initialized (async)  
[ 4.568215][ T1] Key type asymmetric registered  
[ 4.568225][ T1] Asymmetric key parser 'x509' registered  
[ 4.627095][ T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)  
[ 4.627619][ T1] io scheduler bfq registered  
[ 4.854905][ T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver  
[ 4.857192][ T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.  
[ 4.858972][ T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.  
[ 4.860213][ T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:  
[ 4.860308][ T1] mvebu-pcie mbus@f1000000:pcie@82000000: MEM 0x00f1040000..0x00f1041fff -> 0x0000040000  
[ 4.860361][ T1] mvebu-pcie mbus@f1000000:pcie@82000000: MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000  
[ 4.860395][ T1] mvebu-pcie mbus@f1000000:pcie@82000000: IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000  
[ 4.861199][ T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00  
[ 4.861221][ T1] pci_bus 0000:00: root bus resource [bus 00-ff]  
[ 4.861244][ T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])  
[ 4.861263][ T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]  
[ 4.861281][ T1] pci_bus 0000:00: root bus resource [io 0x1000-0xeffff]  
[ 4.861414][ T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400  
[ 4.863638][ T1] PCI: bus0: Fast back to back transfers disabled  
[ 4.863672][ T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring  
[ 4.864006][ T1] PCI: bus1: Fast back to back transfers enabled  
[ 4.864032][ T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01  
[ 4.864081][ T1] pci 0000:00:01.0: PCI bridge to [bus 01]  
[ 4.865304][ T1] mv_xor f1060800.xor: Marvell shared XOR driver  
[ 4.930798][ T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )  
[ 4.936341][ T1] mv_xor f1060900.xor: Marvell shared XOR driver  
[ 5.000811][ T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )  
[ 5.006719][ T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled  
[ 5.009846][ T1] printk: console [ttyS0] disabled  
[ 5.010612][ T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 28, base_baud = 10416666) is a 16550A  
[ 5.010687][ T1] printk: console [ttyS0] enabled  
[ 6.011843][ T1] loop: module loaded  
[ 6.016938][ T1] sata_mv f1080000.sata: slots 32 ports 2  
[ 6.027895][ T1] scsi host0: sata_mv  
[ 6.033579][ T1] scsi host1: sata_mv  
[ 6.037979][ T1] ata1: SATA max UDMA/133 irq 29  
[ 6.042767][ T1] ata2: SATA max UDMA/133 irq 29  
[ 6.049223][ T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1  
[ 6.056262][ T1] nand: Eon NAND 128MiB 3,3V 8-bit  
[ 6.061256][ T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64  
[ 6.069548][ T1] Scanning device for bad blocks  
[ 6.079488][ T1] Bad eraseblock 100 at 0x000000c80000  
[ 6.089893][ T1] Bad eraseblock 200 at 0x000001900000  
[ 6.137247][ T1] 9 cmdlinepart partitions found on MTD device orion_nand  
[ 6.144212][ T1] Creating 9 MTD partitions on "orion_nand":  
[ 6.150056][ T1] 0x000000000000-0x000000100000 : "uboot"  
[ 6.156591][ T1] 0x000000100000-0x000000180000 : "stock_uboot_env"  
[ 6.163884][ T1] 0x000000180000-0x000000200000 : "key_store"  
[ 6.170686][ T1] 0x000000200000-0x000000280000 : "info"  
[ 6.177000][ T1] 0x000000280000-0x000000c80000 : "etc"  
[ 6.183330][ T1] 0x000000c80000-0x000001680000 : "kernel_1"  
[ 6.190085][ T1] 0x000001680000-0x000004640000 : "rootfs1"  
[ 6.196888][ T1] 0x000004640000-0x000005040000 : "kernel_2"  
[ 6.203702][ T1] 0x000005040000-0x000008000000 : "rootfs2"  
[ 6.211610][ T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.  
[ 6.220159][ T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.  
[ 6.235639][ T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove  
[ 6.272622][ T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4  
[ 6.282693][ T1] mv643xx_eth: Set the PHY to fix link down  
[ 6.283842][ T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51  
[ 6.299877][ T1] orion-ehci f1050000.ehci: EHCI Host Controller  
[ 6.306132][ T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1  
[ 6.314784][ T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000  
[ 6.347692][ T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00  
[ 6.354928][ T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05  
[ 6.363923][ T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1  
[ 6.371867][ T1] usb usb1: Product: EHCI Host Controller  
[ 6.377461][ T1] usb usb1: Manufacturer: Linux 6.5.7-kirkwood-tld-1 ehci_hcd  
[ 6.384846][ T1] usb usb1: SerialNumber: f1050000.ehci  
[ 6.391524][ T1] hub 1-0:1.0: USB hub found  
[ 6.396014][ T1] hub 1-0:1.0: 1 port detected  
[ 6.401906][ T1] usbcore: registered new interface driver usb-storage  
[ 6.409313][ T1] mousedev: PS/2 mouse device common for all mice  
[ 6.416077][ T1] i2c_dev: i2c /dev entries driver  
[ 6.424461][ T1] ht1382 0-0068: registered as rtc0  
[ 6.430824][ T1] ht1382 0-0068: setting system clock to 2025-02-23T13:14:57 UTC (1740316497)  
[ 6.441274][ T1] device-mapper: uevent: version 1.0.3  
[ 6.447225][ T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com  
[ 6.457247][ T1] device-mapper: multipath round-robin: version 1.2.0 loaded  
[ 6.464543][ T1] device-mapper: multipath queue-length: version 0.2.0 loaded  
[ 6.471864][ T1] device-mapper: multipath service-time: version 0.3.0 loaded  
[ 6.479250][ T1] device-mapper: dm-log-userspace: version 1.3.0 loaded  
[ 6.489933][ T1] ledtrig-cpu: registered to indicate activity on CPUs  
[ 6.496801][ T1] hid: raw HID events driver (C) Jiri Kosina  
[ 6.503186][ T1] drop_monitor: Initializing network drop monitor service  
[ 6.512035][ T1] NET: Registered PF_INET6 protocol family  
[ 6.520269][ T1] Segment Routing with IPv6  
[ 6.524628][ T1] RPL Segment Routing with IPv6  
[ 6.529524][ T1] In-situ OAM (IOAM) with IPv6  
[ 6.534268][ T1] NET: Registered PF_PACKET protocol family  
[ 6.540660][ T1] Key type dns_resolver registered  
[ 6.547759][ T53] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)  
[ 6.557220][ T53] ata1.00: ATA-9: WDC WD30EFRX-68EUZN0, 82.00A82, max UDMA/133  
[ 6.577819][ T53] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)  
[ 6.588042][ T53] ata1.00: configured for UDMA/133  
[ 6.596299][ T1] registered taskstats version 1  
[ 6.601465][ T1] Loading compiled-in X.509 certificates  
[ 6.607544][ T10] scsi 0:0:0:0: Direct-Access ATA WDC WD30EFRX-68E 0A82 PQ: 0 ANSI: 5  
[ 6.629668][ T32] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)  
[ 6.647779][ T32] sd 0:0:0:0: [sda] 4096-byte physical blocks  
[ 6.653815][ T32] sd 0:0:0:0: [sda] Write Protect is off  
[ 6.664290][ T32] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA  
[ 6.675098][ T1] Key type .fscrypt registered  
[ 6.679760][ T1] Key type fscrypt-provisioning registered  
[ 6.686120][ T32] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes  
[ 6.693152][ T50] usb 1-1: new high-speed USB device number 2 using orion-ehci  
[ 6.707962][ T1] Key type big_key registered  
[ 6.764534][ T32] sda:  
[ 6.767455][ T32] sd 0:0:0:0: [sda] Attached SCSI disk  
[ 6.777413][ T1] Key type encrypted registered  
[ 6.899669][ T50] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32  
[ 6.913758][ T50] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0  
[ 6.922141][ T104] "cryptomgr_test" (104) uses obsolete ecb(arc4) skcipher  
[ 6.929191][ T50] usb 1-1: Product: USB2.0 Hub  
[ 6.938676][ T50] hub 1-1:1.0: USB hub found  
[ 6.948171][ T50] hub 1-1:1.0: 4 ports detected  
[ 7.137709][ T55] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)  
[ 7.157870][ T55] ata2.00: ATA-9: WDC WD30EFRX-68EUZN0, 82.00A82, max UDMA/133  
[ 7.165253][ T55] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)  
[ 7.190308][ T55] ata2.00: configured for UDMA/133  
[ 7.216044][ T18] scsi 1:0:0:0: Direct-Access ATA WDC WD30EFRX-68E 0A82 PQ: 0 ANSI: 5  
[ 7.239497][ T32] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)  
[ 7.257713][ T32] sd 1:0:0:0: [sdb] 4096-byte physical blocks  
[ 7.263711][ T32] sd 1:0:0:0: [sdb] Write Protect is off  
[ 7.277711][ T50] usb 1-1.1: new high-speed USB device number 3 using orion-ehci  
[ 7.285498][ T32] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA  
[ 7.307828][ T32] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes  
[ 7.360075][ T32] sdb: sdb1 sdb2 sdb3
[ 7.369231][ T32] sd 1:0:0:0: [sdb] Attached SCSI disk  
[ 7.519539][ T50] usb 1-1.1: New USB device found, idVendor=0951, idProduct=1665, bcdDevice= 2.00  
[ 7.537687][ T50] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3  
[ 7.545669][ T50] usb 1-1.1: Product: DataTraveler 2.0  
[ 7.567684][ T50] usb 1-1.1: Manufacturer: Kingston  
[ 7.572730][ T50] usb 1-1.1: SerialNumber: 0017318974D91FC0693A4974  
[ 7.589339][ T50] usb-storage 1-1.1:1.0: USB Mass Storage device detected  
[ 7.608408][ T50] scsi host2: usb-storage 1-1.1:1.0  
[ 8.649884][ T32] scsi 2:0:0:0: Direct-Access Kingston DataTraveler 2.0 0000 PQ: 0 ANSI: 4  
[ 8.670959][ T18] sd 2:0:0:0: [sdc] 30273600 512-byte logical blocks: (15.5 GB/14.4 GiB)  
[ 8.689578][ T18] sd 2:0:0:0: [sdc] Write Protect is off  
[ 8.707702][ T18] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA  
[ 8.737932][ T18] sdc: sdc1  
[ 8.748005][ T18] sd 2:0:0:0: [sdc] Attached SCSI removable disk  
[ 9.898232][ T18] kirkwood-pinctrl f1010000.pin-controller: unsupported function gpio on pin mpp33  
[ 9.907357][ T18] pinctrl core: failed to register map default (0): invalid type given  
[ 9.916351][ T1] clk: Disabling unused clocks  
[ 9.924524][ T1] Freeing unused kernel image (initmem) memory: 1024K  
[ 9.948656][ T1] Checked W+X mappings: passed, no W+X pages found  
[ 9.955013][ T1] Run /init as init process  
Loading, please wait...  
Starting systemd-udevd version 252.17-1~deb12u1  
[ 11.723794][ T155] usbcore: registered new interface driver uas  
[ 13.047716][ T121] usb 1-1.1: reset high-speed USB device number 3 using orion-ehci  
[ 13.203860][ T121] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=1s  
[ 13.213808][ T121] sd 2:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 02 08 00 00 f0 00  
[ 13.221829][ T121] I/O error, dev sdc, sector 520 op 0x0:(READ) flags 0x84700 phys_seg 2 prio class 2  
Begin: Loading essential drivers ... done.  
Begin: Running /scripts/init-premount ... done.  
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.  
Begin: Running /scripts/local-premount ... done.  
Begin: Will now check root file system ... fsck from util-linux 2.38.1  
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1  
rootfs: recovering journal  
[ 38.781671][ T121] random: crng init done  
rootfs: Clearing orphaned inode 43428 (uid=0, gid=0, mode=0100644, size=313264)  
rootfs: clean, 20075/122160 files, 218978/488192 blocks  
done.  
[ 72.888984][ T180] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem  
[ 72.935344][ T180] EXT4-fs (sdc1): mounted filesystem bcf22700-38c8-477c-9969-e26f648c6e27 ro with ordered data mode. Quota mode: none.  
done.  
Begin: Running /scripts/local-bottom ... done.  
Begin: Running /scripts/init-bottom ... done.  
INIT: version 3.06 booting  
INIT: No inittab.d directory found  
Using makefile-style concurrent boot in runlevel S.  
Setting hostname to 'debian'...done.  
Starting hotplug events dispatcher: systemd-udevd.  
Synthesizing the initial hotplug events (subsystems)...done.  
Synthesizing the initial hotplug events (devices)...done.  
Waiting for /dev to be fully populated...[ 76.570955][ T359] input: gpio_keys as /devices/platform/gpio_keys/input/input0  
[ 77.130978][ T358] orion_wdt: Initial timeout 25 sec  
[ 77.512515][ T361] sd 0:0:0:0: Attached scsi generic sg0 type 0  
[ 77.671161][ T361] sd 1:0:0:0: Attached scsi generic sg1 type 0  
[ 77.776786][ T361] sd 2:0:0:0: Attached scsi generic sg2 type 0  
[ 77.898282][ T360] marvell-cesa f1030000.crypto: CESA device successfully registered  
[ 78.236835][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.279851][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.316854][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.359826][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.396826][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.407815][ T121] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?  
[ 78.460829][ T121] usb 1-1-port1: cannot disable (err = -71)  
[ 78.497821][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.534822][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.577863][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.613825][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.659830][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.665416][ T121] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?  
[ 78.719838][ T121] usb 1-1-port1: cannot disable (err = -71)  
[ 78.756838][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.797889][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.834850][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.879847][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.915838][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 78.927807][ T121] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?  
[ 78.967840][ T121] usb 1-1-port1: cannot disable (err = -71)  
[ 79.004849][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 79.049837][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 79.086826][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 79.129832][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 79.166834][ T121] usb 1-1-port1: cannot reset (err = -71)  
[ 79.177827][ T121] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?  
[ 79.217842][ T121] usb 1-1-port1: cannot disable (err = -71)  
[ 79.254830][ T121] usb 1-1-port1: cannot disable (err = -71)  
[ 79.267879][ T121] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=1s  
[ 79.284900][ T121] sd 2:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 cd f0 3a 00 00 01 00  
[ 79.307726][ T121] I/O error, dev sdc, sector 30273594 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2  
[ 79.323844][ T50] hub 1-1:1.0: hub_ext_port_status failed (err = -71)  
[ 79.517849][ T121] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s  
[ 79.536622][ T121] sd 2:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 cd f0 38 00 00 01 00  
[ 79.557732][ T121] I/O error, dev sdc, sector 30273592 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2  
[ 79.567126][ T121] Buffer I/O error on dev sdc, logical block 3784199, async page read  
[ 79.847870][ T365] sdc: detected capacity change from 30273600 to 0  
[ 79.898172][ T364] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 79.904800][ T364] I/O error, dev sdc, sector 1922696 op 0x0:(READ) flags 0x80700 phys_seg 17 prio class 2  
[ 80.077916][ T33] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.084544][ T33] I/O error, dev sdc, sector 1922768 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2  
[ 80.094073][ T33] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.100717][ T33] I/O error, dev sdc, sector 1922768 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2  
done.  
[ 80.587863][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.594485][ T199] I/O error, dev sdc, sector 2497840 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2  
[ 80.607879][ T33] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.614504][ T33] I/O error, dev sdc, sector 2497840 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2  
mountdevsubfs.sh: Input/output e[ 80.627880][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
rror  
[ 80.635084][ T199] I/O error, dev sdc, sector 1994488 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 2  
[ 80.647087][ T33] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.653858][ T33] I/O error, dev sdc, sector 1994488 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2  
checkroot.sh: Input/output error[ 80.665626][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device

[ 80.673555][ T199] I/O error, dev sdc, sector 1994432 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2  
[ 80.685121][ T33] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
checkfs.sh: Input/output error  
[ 80.694213][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.705410][ T435] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
checkroot-bootclean.sh: Input/ou[ 80.715976][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
tput error  
[ 80.726181][ T436] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
kmod: Input/output error  
[ 80.736790][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.746505][ T437] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
mount-configfs: Input/output err[ 80.757212][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
or  
[ 80.767362][ T438] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.778155][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device

[ 80.788231][ T439] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
mountall-bootclean.sh: Input/out[ 80.798889][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
put error  
[ 80.808918][ T440] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
brightness: Input/output error  
[ 80.819625][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.829564][ T441] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
procps: Input/output error  
[ 80.840226][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.850037][ T442] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
urandom: Input/output error  
[ 80.860761][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.870607][ T443] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
networking: Input/output error  
[ 80.881618][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.891887][ T444] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
rpcbind: Input/output error  
[ 80.902592][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.912514][ T445] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
nfs-common: Input/output error  
[ 80.923148][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.933426][ T446] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 80.944140][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device

[ 80.954325][ T447] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
mountnfs-bootclean.sh: Input/out[ 80.965000][ T199] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
put error  
[ 80.975225][ T448] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
bootmisc.sh: Input/output error  
INIT: Entering runlevel: 2ned failure: mountdevsubfs.sh checkroo  
Using makefile-style concurrent boot in runlevel 2.  
[ 81.134052][ T454] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 81.141029][ T454] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 81.148137][ T454] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 81.154763][ T454] EXT4-fs warning (device sdc1): htree_dirblock_to_tree:1082: inode #98699: lblock 0: comm startpar: error -5 reading directory block  
[ 81.174417][ T455] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
[ 81.181237][ T455] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.221593][ T456] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.261639][ T457] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.301606][ T458] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.341627][ T459] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.381611][ T460] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.421650][ T461] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.461604][ T462] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.501607][ T463] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
[ 81.541601][ T464] sd 2:0:0:0: [sdc] tag#0 access beyond end of device  
INIT: cannot execute "/sbin/getty"  
INIT: Id "T0" respawning too fast: disabled for 5 minutes  
INIT: no more processes left in this runlevel
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 23, 2025 11:22AM
Micky Wicky,

> This could be the same problem I'm experiencing:
> https://forum.doozan.com/read.php?2,110769

Probably. Let me revise the DTB for this box and let you try testing it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 23, 2025 03:57PM
This is interesting. I'm running 6.8.7 and didn't even notice I was having problems with it, but my errors are different (I think). I have 2 HDDs as well, and Cockpit (cockpit-project.org) running on it. I replaced the fan on it and rebooted, and now I see that around 3 days ago it started erroring (if my math is correct).

At the time of the attached dmesg, it had been running 14.5 days:
$ uptime
 15:30:20 up 14 days, 16:01,  1 user,  load average: 0.18, 0.12, 0.09

I barely use this for data as it's mostly for testing Cockpit at the moment, but I do have some that I don't want to lose (it just points out that I need to back this stuff off and store it elsewhere before it's lost).

Bodhi, if you find that I have a similar problem and can help test, let me know and I'll be glad to.

[Update]
I hadn't researched it more because I wanted to get you info that might be useful, but I see that I was having errors reading that partition as mounted:
$ lsblk -f
NAME   FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda
`-sda1 ext3   1.0   rootfs 5ed5229a-3eb5-4809-9670-31c452de653f   24.3G    12% /
sdb
`-sdb1 ext4   1.0   data1  c3a146d5-fe36-4e10-83a5-bff195993f78    2.4T     5% /media/d1
sdc
`-sdc1 ext4   1.0   data2  4801ffaa-46d4-4fb1-8e12-0e5712b5c3e5    2.5T     0% /media/d2
$ ls /media/d1/
ls: reading directory '/media/d1/': Input/output error
then unmount/remount it
root@nsa320s:~# umount /media/d1
root@nsa320s:~# mount /dev/sdb1 /media/d1/
mount: /media/d1: can't read superblock on /dev/sdb1.
       dmesg(1) may have more information after failed mount system call.
Luckily, a reboot solved that issue:
$ ls /media/d1
lost+found  off_work



Edited 1 time(s). Last edit at 02/23/2025 04:21PM by dhargens.
Attachments:
open | download - dmesg_2025-02-23.out (124.5 KB)
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 23, 2025 10:21PM
dhargens,

Yours is the NSA320, not NSA320S.

Your problem is either the HDD or the power supply. You can check the HDD health using SMART tool. And use the multi-meter to measure the power supply. If a reboot fixes the problem, then it's more likely the power supply.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 23, 2025 10:30PM
Ah! Thank you for pointing that out - thought I had a 320S. Never mind then.
I'll have a look at the power supply and see what I can find.



Edited 1 time(s). Last edit at 02/23/2025 10:32PM by dhargens.
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 24, 2025 11:06AM
Micky Wicky,

>
> > This could be the same problem I'm
> experiencing:
> >
> https://forum.doozan.com/read.php?2,110769
>
> Probably. Let me revise the DTB for this box and
> let you try testing it.

Extract the DTB from the attached tarball and boot with it. Hopefully the SATA regulator will maintain the power to the HDDs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-nsa320s.dtb.250224.tar (30 KB)
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 24, 2025 01:01PM
Thank you, but it did not help... I've highlighted interesting parts of the log. The pen drive is seen as device 4, until it is disconnected and then rediscovered as device 5.

After this I tried with a fresh rootfs once again, and the results are a little bit different. I've included them below. In summary I can get to a login prompt, but just running "blkid" triggers the same error.

Original filesystem (running Devuan, originally based on a rootfs from your 5.x series):

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:50:06 -0700)
ZyXEL NSA310S/320S 1/2-Bay Power Media Server

SoC:   Kirkwood 88F6702_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA3x0S> pritnenv
Unknown command 'pritnenv' - try 'help'
NSA3x0S> printenv
arcNumber=4931
baudrate=115200
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa320s.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fileaddr=800000
filesize=5ef848
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x2c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
poke=mw.l f1010104 c70f0ffd
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi

Environment size: 3297/131068 bytes
NSA3x0S> run poke; ide reset; boot

Reset IDE: Bus 0: OK Bus 1: .........OK 
  Device 0: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N6FC8VSV
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
  Device 1: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N6JN55AL
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	30027776  	38ed2ab7-01	83 Boot

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
0 bytes read in 2521 ms (0 Bytes/s)
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 2644 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5890328 bytes read in 24970 ms (229.5 KiB/s)
loading uInitrd ...
11616046 bytes read in 3043 ms (3.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...
13335 bytes read in 4566 ms (2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-6.12.6-kirkwood-tld-1
   Created:      2025-02-17  19:14:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5890264 Bytes = 5.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-6.12.6-kirkwood-tld-1
   Created:      2025-02-17  19:15:19 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    11615982 Bytes = 11.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02c00000
   Booting using the fdt blob at 0x2c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0eff7000, end 0fb0aeee ... OK
   Loading Device Tree to 0eff0000, end 0eff6416 ... OK

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.12.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 PREEMPT Thu Dec 19 14:57:30 PST 2024
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320S
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65536
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[    0.000000][    T0] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000003][    T0] sched_clock: 32 bits at 167MHz, resolution 6ns, wraps every 12884901885ns
[    0.000058][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.001034][    T0] Console: colour dummy device 80x30
[    0.001200][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001233][    T0] CPU: Testing write buffer coherency: ok
[    0.001384][    T0] pid_max: default: 32768 minimum: 301
[    0.011786][    T0] LSM: initializing lsm=capability
[    0.014124][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.014164][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.052816][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.053230][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.053832][    T1] rcu: Hierarchical SRCU implementation.
[    0.053849][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.055965][    T1] Memory: 226060K/262144K available (11264K kernel code, 1614K rwdata, 5280K rodata, 1024K init, 323K bss, 34464K reserved, 0K cma-reserved)
[    0.058204][    T1] devtmpfs: initialized
[    0.071647][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.071694][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.080637][    T1] prandom: seed boundary self test passed
[    0.085758][    T1] prandom: 100 self tests passed
[    0.085776][    T1] pinctrl core: initialized pinctrl subsystem
[    0.091584][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.092530][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.094296][    T1] audit: initializing netlink subsys (disabled)
[    0.096754][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.096929][   T22] audit: type=2000 audit(0.090:1): state=initialized audit_enabled=0 res=1
[    0.096994][    T1] cpuidle: using governor ladder
[    0.097079][    T1] cpuidle: using governor menu
[    0.097841][    T1] Feroceon L2: Enabling L2
[    0.097882][    T1] Feroceon L2: Cache support initialised.
[    0.112943][    T1] No ATAGs?
[    0.500078][    T1] raid6: int32x8  gen()    93 MB/s
[    0.840074][    T1] raid6: int32x4  gen()    92 MB/s
[    1.180078][    T1] raid6: int32x2  gen()   125 MB/s
[    1.520073][    T1] raid6: int32x1  gen()    94 MB/s
[    1.520087][    T1] raid6: using algorithm int32x2 gen() 125 MB/s
[    1.860078][    T1] raid6: .... xor() 75 MB/s, rmw enabled
[    1.860091][    T1] raid6: using intx1 recovery algorithm
[    1.862179][    T1] SCSI subsystem initialized
[    1.863165][    T1] usbcore: registered new interface driver usbfs
[    1.863318][    T1] usbcore: registered new interface driver hub
[    1.863393][    T1] usbcore: registered new device driver usb
[    1.863774][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.863784][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.863820][    T1] PTP clock support registered
[    1.870151][    T1] vgaarb: loaded
[    1.871060][    T1] clocksource: Switched to clocksource orion_clocksource
[    1.892736][    T1] VFS: Disk quotas dquot_6.6.0
[    1.893292][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.941512][    T1] NET: Registered PF_INET protocol family
[    1.941838][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.944355][    T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.944573][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.945780][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    1.945833][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.945890][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    1.946614][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.946900][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.947043][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.948201][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.949999][    T1] RPC: Registered named UNIX socket transport module.
[    1.950015][    T1] RPC: Registered udp transport module.
[    1.950022][    T1] RPC: Registered tcp transport module.
[    1.950028][    T1] RPC: Registered tcp-with-tls transport module.
[    1.950035][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.950057][    T1] PCI: CLS 0 bytes, default 32
[    1.950704][   T35] Trying to unpack rootfs image as initramfs...
[    5.201697][    T1] Initialise system trusted keyrings
[    5.201953][    T1] Key type blacklist registered
[    5.202397][    T1] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    5.202538][    T1] zbud: loaded
[    5.244192][    T1] NFS: Registering the id_resolver key type
[    5.244257][    T1] Key type id_resolver registered
[    5.244268][    T1] Key type id_legacy registered
[    5.244501][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    5.244526][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    5.245941][    T1] fuse: init (API version 7.41)
[    5.916733][    T1] xor: measuring software checksum speed
[    5.920318][    T1]    arm4regs        :   920 MB/sec
[    5.931128][    T1]    8regs           :   548 MB/sec
[    5.935330][    T1]    32regs          :   785 MB/sec
[    5.935340][    T1] xor: using function: arm4regs (920 MB/sec)
[    5.935362][    T1] async_tx: api initialized (async)
[    5.935382][    T1] Key type asymmetric registered
[    5.935392][    T1] Asymmetric key parser 'x509' registered
[    7.626398][   T35] Freeing initrd memory: 11344K
[    7.686023][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    7.686596][    T1] io scheduler bfq registered
[    7.913634][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.916003][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    7.917634][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    7.934774][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    7.935347][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    7.935443][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    7.935496][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.935531][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.936424][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.936450][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.936473][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    7.936492][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.936509][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    7.936721][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400 PCIe Root Port
[    7.936766][    T1] pci 0000:00:01.0: PCI bridge to [bus 00]
[    7.936787][    T1] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    7.936804][    T1] pci 0000:00:01.0:   bridge window [mem 0x00000000-0x000fffff]
[    7.937505][    T1] /mbus@f1000000/pcie@82000000/pcie@1,0: Fixed dependency cycle(s) with /mbus@f1000000/pcie@82000000/pcie@1,0/interrupt-controller
[    7.939011][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.939043][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.939420][    T1] PCI: bus1: Fast back to back transfers enabled
[    7.939446][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.939499][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.939527][    T1] pci_bus 0000:00: resource 4 [mem 0xf1040000-0xf1041fff]
[    7.939546][    T1] pci_bus 0000:00: resource 5 [mem 0xe0000000-0xefffffff]
[    7.939562][    T1] pci_bus 0000:00: resource 6 [io  0x1000-0xeffff]
[    7.940669][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.003417][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.008765][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.053301][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.059003][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.062254][    T1] printk: legacy console [ttyS0] disabled
[    8.063187][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 28, base_baud = 10416666) is a 16550A
[    8.063275][    T1] printk: legacy console [ttyS0] enabled
[    9.099500][    T1] loop: module loaded
[    9.104641][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    9.115505][    T1] scsi host0: sata_mv
[    9.121398][    T1] scsi host1: sata_mv
[    9.125729][    T1] ata1: SATA max UDMA/133 irq 29 lpm-pol 0
[    9.131428][    T1] ata2: SATA max UDMA/133 irq 29 lpm-pol 0
[    9.138585][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    9.145719][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[    9.150676][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    9.159071][    T1] Scanning device for bad blocks
[    9.169068][    T1] Bad eraseblock 100 at 0x000000c80000
[    9.179504][    T1] Bad eraseblock 200 at 0x000001900000
[    9.226979][    T1] 9 cmdlinepart partitions found on MTD device orion_nand
[    9.233945][    T1] Creating 9 MTD partitions on "orion_nand":
[    9.239769][    T1] 0x000000000000-0x000000100000 : "uboot"
[    9.246519][    T1] 0x000000100000-0x000000180000 : "stock_uboot_env"
[    9.253835][    T1] 0x000000180000-0x000000200000 : "key_store"
[    9.260561][    T1] 0x000000200000-0x000000280000 : "info"
[    9.266898][    T1] 0x000000280000-0x000000c80000 : "etc"
[    9.273195][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[    9.279957][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[    9.286866][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[    9.293635][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[    9.302056][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    9.310569][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    9.352135][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.364318][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    9.374608][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    9.380883][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    9.389594][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    9.411096][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    9.418283][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    9.427278][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.435229][    T1] usb usb1: Product: EHCI Host Controller
[    9.440831][    T1] usb usb1: Manufacturer: Linux 6.12.6-kirkwood-tld-1 ehci_hcd
[    9.448263][    T1] usb usb1: SerialNumber: f1050000.ehci
[    9.455037][    T1] hub 1-0:1.0: USB hub found
[    9.459542][    T1] hub 1-0:1.0: 1 port detected
[    9.465428][    T1] usbcore: registered new interface driver usb-storage
[    9.472780][    T1] i2c_dev: i2c /dev entries driver
[    9.481211][    T1] ht1382 0-0068: registered as rtc0
[    9.487366][    T1] ht1382 0-0068: setting system clock to 2025-02-24T18:39:09 UTC (1740422349)
[    9.498028][    T1] device-mapper: uevent: version 1.0.3
[    9.504202][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@lists.linux.dev
[    9.514618][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    9.521914][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    9.529207][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.536677][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.544501][    T1] sdhci: Secure Digital Host Controller Interface driver
[    9.551403][    T1] sdhci: Copyright(c) Pierre Ossman
[    9.556688][    T1] hid: raw HID events driver (C) Jiri Kosina
[    9.563095][    T1] drop_monitor: Initializing network drop monitor service
[    9.572164][    T1] NET: Registered PF_INET6 protocol family
[    9.580994][    T1] Segment Routing with IPv6
[    9.585405][    T1] RPL Segment Routing with IPv6
[    9.590216][    T1] In-situ OAM (IOAM) with IPv6
[    9.595038][    T1] NET: Registered PF_PACKET protocol family
[    9.601542][    T1] Key type dns_resolver registered
[    9.611194][   T58] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.622810][   T58] ata1.00: ATA-9: WDC WD30EFRX-68EUZN0, 82.00A82, max UDMA/133
[    9.630201][   T58] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.654041][   T58] ata1.00: configured for UDMA/133
[    9.659261][    T1] registered taskstats version 1
[    9.664671][    T1] Loading compiled-in X.509 certificates
[    9.675218][   T11] scsi 0:0:0:0: Direct-Access     ATA      WDC WD30EFRX-68E 0A82 PQ: 0 ANSI: 5
[    9.686378][   T21] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    9.701178][   T21] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    9.707195][   T21] sd 0:0:0:0: [sda] Write Protect is off
[    9.731339][   T21] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.741125][   T57] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.761348][   T21] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    9.784490][    T1] Key type .fscrypt registered
[    9.789124][    T1] Key type fscrypt-provisioning registered
[    9.801005][    T1] Key type big_key registered
[    9.858390][   T21]  sda:
[    9.861353][   T21] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.933128][   T57] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    9.951228][   T57] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.964263][   T57] usb 1-1: Product: USB2.0 Hub
[    9.980637][   T57] hub 1-1:1.0: USB hub found
[    9.990778][   T57] hub 1-1:1.0: 4 ports detected
[   10.099357][    T1] Key type encrypted registered
[   10.164764][  T112] "cryptomgr_test" (112) uses obsolete ecb(arc4) skcipher
[   10.171825][   T60] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   10.221598][   T60] ata2.00: ATA-9: WDC WD30EFRX-68EUZN0, 82.00A82, max UDMA/133
[   10.229006][   T60] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   10.271275][   T11] kirkwood-pinctrl f1010000.pin-controller: unsupported function gpio on pin mpp33
[   10.280417][   T11] pinctrl core: failed to register map default (0): invalid type given
[   10.292347][   T60] ata2.00: configured for UDMA/133
[   10.328336][   T35] scsi 1:0:0:0: Direct-Access     ATA      WDC WD30EFRX-68E 0A82 PQ: 0 ANSI: 5
[   10.361742][    T1] clk: Disabling unused clocks
[   10.373182][   T11] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[   10.404131][   T11] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   10.410150][   T11] sd 1:0:0:0: [sdb] Write Protect is off
[   10.451271][   T11] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   10.481208][   T11] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[   10.582035][   T11]  sdb: sdb1 sdb2 sdb3
[   10.587335][   T11] sd 1:0:0:0: [sdb] Attached SCSI disk
[   10.614415][    T1] Freeing unused kernel image (initmem) memory: 1024K
[   10.642351][    T1] Checked W+X mappings: passed, no W+X pages found
[   10.648800][    T1] Run /init as init process
[   10.821293][   T57] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
Loading, please wait...
[   10.998864][   T57] usb 1-1.1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[   11.008022][   T57] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.031913][   T57] usb 1-1.1: Product: Ultra Fit
[   11.036653][   T57] usb 1-1.1: Manufacturer: SanDisk
[   11.088529][   T57] usb 1-1.1: SerialNumber: 4C530001110428108391
[   11.111599][   T57] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   11.150260][   T57] scsi host2: usb-storage 1-1.1:1.0
[   11.303173][  T157] udevd[157]: starting version 3.2.12
[   12.255213][   T21] scsi 2:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[   12.273276][   T11] sd 2:0:0:0: [sdc] 30031250 512-byte logical blocks: (15.4 GB/14.3 GiB)
[   12.308763][   T11] sd 2:0:0:0: [sdc] Write Protect is off
[   12.336138][   T11] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   12.419375][   T11]  sdc: sdc1
[   12.441367][   T11] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   13.281122][    C0] random: crng init done
[   13.322618][  T158] udevd[158]: starting eudev-3.2.12
[   13.531166][  T160] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   13.551231][  T160] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   13.591178][  T160] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   13.818164][  T162] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   14.993201][  T168] usbcore: registered new interface driver uas
[   15.436070][  T176] block device autoloading is deprecated and will be removed.
[   15.506713][  T169] udevd[169]: '/sbin/mdadm --incremental --export /dev/sdb3 --offroot /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N6JN55AL-part3 /dev/disk/by-id/wwn-0x50014ee264cc6a15-part3 /dev/disk/by-partuuid/798a5e17-f6de-45e9-adff-6d4403507148' [176] terminated by signal 11 (Segmentation fault)
[   15.812576][  T154] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s
[   15.822618][  T154] sd 2:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 ca 3b 40 00 00 08 00
[   15.830694][  T154] I/O error, dev sdc, sector 30030656 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   15.840487][    T8] usb 1-1.1: USB disconnect, device number 3
[   15.849660][    T8] Buffer I/O error on dev sdc, logical block 15015328, async page read
[   15.861198][  T168] Buffer I/O error on dev sdc, logical block 15015329, async page read
[   15.869331][  T168] udevd: attempt to access beyond end of device
[   15.869331][  T168] sdc: rw=0, sector=30030660, nr_sectors = 2 limit=0
[   15.883684][  T168] Buffer I/O error on dev sdc, logical block 15015330, async page read
[   15.893707][  T168] udevd: attempt to access beyond end of device
[   15.893707][  T168] sdc: rw=0, sector=30030662, nr_sectors = 2 limit=0
[   15.912052][  T168] Buffer I/O error on dev sdc, logical block 15015331, async page read
[   16.221115][    T8] usb 1-1.1: new high-speed USB device number 4 using orion-ehci
[   16.342613][    T8] usb 1-1.1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[   16.351693][    T8] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   16.359707][    T8] usb 1-1.1: Product: Ultra Fit
[   16.364428][    T8] usb 1-1.1: Manufacturer: SanDisk
[   16.369381][    T8] usb 1-1.1: SerialNumber: 4C530001110428108391
[   16.376825][    T8] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   16.387037][    T8] scsi host2: usb-storage 1-1.1:1.0
[   17.442930][   T21] scsi 2:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[   17.454491][   T21] scsi 2:0:0:0: Attached scsi generic sg2 type 0
[   17.469146][   T11] sd 2:0:0:0: [sdc] 30031250 512-byte logical blocks: (15.4 GB/14.3 GiB)
[   17.481269][   T11] sd 2:0:0:0: [sdc] Write Protect is off
[   17.487516][   T11] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   17.535881][   T11]  sdc: sdc1
[   17.539611][   T11] sd 2:0:0:0: [sdc] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext4 (1) -- /dev/sdc1] fsck.ext4 -a -C0 /dev/sdc1 
rootfs: clean, 65739/938400 files, 646444/3753472 blocks
done.
[   37.057292][  T217] EXT4-fs (sdc1): mounted filesystem e98cc544-55aa-445f-8155-aecac62bc3f0 ro with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 3.06 booting
INIT: No inittab.d directory found
Using makefile-style concurrent boot in runlevel S.
Starting hot-plug events dispatcher: udevd[   39.353870][  T391] udevd[391]: starting version 3.2.12
[   39.506218][  T392] udevd[392]: starting eudev-3.2.12
.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   40.812920][  T396] orion_wdt: Initial timeout 25 sec
[   41.062158][  T410] marvell-cesa f1030000.crypto: CESA device successfully registered
[   41.762680][  T179] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s
[   41.773741][    T8] usb 1-1.1: USB disconnect, device number 4
[   41.788068][    T8] EXT4-fs (sdc1): shut down requested (2)
[   41.801240][  T179] sd 2:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 35 58 00 00 00 f0 00
[   41.809266][  T179] I/O error, dev sdc, sector 3495936 op 0x0:(READ) flags 0x84700 phys_seg 2 prio class 0
[   41.831128][    T8] Aborting journal on device sdc1-8.
[   41.851156][  T394] device offline error, dev sdc, sector 3496176 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   41.871199][  T394] device offline error, dev sdc, sector 3496064 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   41.891201][  T394] device offline error, dev sdc, sector 3496064 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   41.912895][  T458] device offline error, dev sdc, sector 8963280 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   41.931361][  T434] device offline error, dev sdc, sector 4824120 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   41.944025][  T392] udevd[392]: worker [394] terminated by signal 7 (Bus error)
[   41.951449][  T392] udevd[392]: worker [394] failed while handling '/devices/platform/ocp@f1000000/f1050000.ehci/usb1/1-1/1-1.1'
[   41.963089][    T8] device offline error, dev sdc, sector 12854448 op 0x1:(WRITE) flags 0x9800 phys_seg 1 prio class 0
[   41.974223][    T8] Buffer I/O error on dev sdc1, logical block 1606550, lost sync page write
[   41.982957][   T37] device offline error, dev sdc, sector 972264 op 0x0:(READ) flags 0x84700 phys_seg 2 prio class 0
[   41.993547][  T401] device offline error, dev sdc, sector 972504 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   42.004155][    T8] JBD2: I/O error when updating journal superblock for sdc1-8.
[   42.011639][  T454] device offline error, dev sdc, sector 8486584 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 0
[   42.032520][  T456] udevd[456]: failed to execute '/lib/udev/hdparm' '/lib/udev/hdparm': Input/output error
[   42.048120][  T458] udevd[458]: failed to execute '/lib/udev/hdparm' '/lib/udev/hdparm': Input/output error
[   42.061967][  T454] udevd[454]: failed to execute '/usr/libexec/nfsrahead' '/usr/libexec/nfsrahead 7:0': Input/output error
[   42.075064][  T455] udevd[455]: failed to execute '/usr/libexec/nfsrahead' '/usr/libexec/nfsrahead 7:1': Input/output error
[   42.088821][  T457] udevd[457]: failed to execute '/usr/libexec/nfsrahead' '/usr/libexec/nfsrahead 7:2': Input/output error
[   42.101042][  T460] udevd[460]: failed to execute '/usr/libexec/nfsrahead' '/usr/libexec/nfsrahead 7:3': Input/output error
[   42.102141][  T459] udevd[459]: failed to execute '/usr/libexec/nfsrahead' '/usr/libexec/nfsrahead 7:4': Input/output error
[   42.361284][    T8] usb 1-1.1: new high-speed USB device number 5 using orion-ehci
[   42.482868][    T8] usb 1-1.1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[   42.501270][    T8] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   42.509280][    T8] usb 1-1.1: Product: Ultra Fit
[   42.525157][    T8] usb 1-1.1: Manufacturer: SanDisk
[   42.530175][    T8] usb 1-1.1: SerialNumber: 4C530001110428108391
[   42.549993][    T8] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   42.565731][    T8] scsi host3: usb-storage 1-1.1:1.0
[   42.576093][  T392] EXT4-fs warning (device sdc1): dx_probe:823: inode #652801: lblock 0: comm udevd: error -5 reading directory block
[   42.612391][  T392] EXT4-fs warning (device sdc1): dx_probe:823: inode #652801: lblock 0: comm udevd: error -5 reading directory block
[   42.626001][  T392] EXT4-fs warning (device sdc1): dx_probe:823: inode #652801: lblock 0: comm udevd: error -5 reading directory block
[   42.662460][  T392] EXT4-fs warning (device sdc1): dx_probe:823: inode #652801: lblock 0: comm udevd: error -5 reading directory block
[   42.674986][  T392] EXT4-fs warning (device sdc1): dx_probe:823: inode #652801: lblock 0: comm udevd: error -5 reading directory block
[   42.687655][  T392] EXT4-fs warning (device sdc1): dx_probe:823: inode #652801: lblock 0: comm udevd: error -5 reading directory block
[   42.700091][  T392] EXT4-fs warning (device sdc1): dx_probe:823: inode #652801: lblock 0: comm udevd: error -5 reading directory block
done.
mountdevsubfs.sh: Input/output error
checkroot.sh: Input/output error
checkfs.sh: Input/output error
checkroot-bootclean.sh: Input/output error
kmod: Input/output error
mountall.sh: Input/output error
mount-configfs: Input/output error
mountall-bootclean.sh: Input/output error
brightness: Input/output error
procps: Input/output error
urandom: Input/output error
networking: Input/output error
rpcbind: Input/output error
nfs-common: Input/output error
mountnfs.sh: Input/output error
mountnfs-bootclean.sh: Input/output error
bootmisc.sh: Input/output error
x11-common: Input/output error
startpar: service(s) returned failure: mountdevsubfs.sh checkroo[   43.064697][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   43.076591][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   43.088458][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
INIT: Entering runlevel: 2
INIT: cannot execute "/etc/init.d/rc"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: Id "T0" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
[   43.602935][   T35] scsi 3:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[   43.615633][   T35] sd 3:0:0:0: Attached scsi generic sg2 type 0
[   43.628160][   T40] sd 3:0:0:0: [sdd] 30031250 512-byte logical blocks: (15.4 GB/14.3 GiB)
[   43.642767][   T40] sd 3:0:0:0: [sdd] Write Protect is off
[   43.649013][   T40] sd 3:0:0:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   43.695881][   T40]  sdd: sdd1
[   43.699603][   T40] sd 3:0:0:0: [sdd] Attached SCSI removable disk
[   48.496458][    T1] EXT4-fs warning: 84 callbacks suppressed
[   48.496488][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   53.519057][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   58.535856][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   63.552647][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   68.569453][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   73.586279][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   78.603067][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   83.619865][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   88.636653][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
[   93.653501][    T1] EXT4-fs warning (device sdc1): dx_probe:823: inode #2: lblock 0: comm init: error -5 reading directory block
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 24, 2025 01:02PM
Same again with a "fresh" rootfs:

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:50:06 -0700)
ZyXEL NSA310S/320S 1/2-Bay Power Media Server

SoC:   Kirkwood 88F6702_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA3x0S> run poke; ide reset; boot

Reset IDE: Bus 0: OK Bus 1: .........OK 
  Device 0: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N6FC8VSV
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
  Device 1: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N6JN55AL
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	3905536   	06b4319f-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 661 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
6223944 bytes read in 1057 ms (5.6 MiB/s)
loading uInitrd ...
5791271 bytes read in 946 ms (5.8 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...
13335 bytes read in 1799 ms (6.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-6.5.7-kirkwood-tld-1
   Created:      2023-10-31  22:53:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6223880 Bytes = 5.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-6.5.7-kirkwood-tld-1
   Created:      2023-10-31  22:53:55 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5791207 Bytes = 5.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02c00000
   Booting using the fdt blob at 0x2c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f585000, end 0fb0ade7 ... OK
   Loading Device Tree to 0f57e000, end 0f584416 ... OK

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320S
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232336K/262144K available (12288K kernel code, 1755K rwdata, 5416K rodata, 1024K init, 301K bss, 29808K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000002][    T0] sched_clock: 32 bits at 167MHz, resolution 6ns, wraps every 12884901885ns
[    0.000056][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000736][    T0] Console: colour dummy device 80x30
[    0.000819][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.000853][    T0] CPU: Testing write buffer coherency: ok
[    0.001006][    T0] pid_max: default: 32768 minimum: 301
[    0.011516][    T0] LSM: initializing lsm=capability,integrity
[    0.014365][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.014406][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.028926][    T1] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.029341][    T1] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.029870][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.030340][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.030823][    T1] rcu: Hierarchical SRCU implementation.
[    0.030842][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.034313][    T1] devtmpfs: initialized
[    0.047376][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.047427][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.051079][    T1] prandom: seed boundary self test passed
[    0.056200][    T1] prandom: 100 self tests passed
[    0.056218][    T1] pinctrl core: initialized pinctrl subsystem
[    0.060713][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.061671][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.068151][    T1] audit: initializing netlink subsys (disabled)
[    0.069360][   T19] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1
[    0.071336][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.071513][    T1] cpuidle: using governor ladder
[    0.071605][    T1] cpuidle: using governor menu
[    0.072358][    T1] Feroceon L2: Enabling L2
[    0.072399][    T1] Feroceon L2: Cache support initialised.
[    0.086858][    T1] No ATAGs?
[    0.450074][    T1] raid6: int32x8  gen()    93 MB/s
[    0.790070][    T1] raid6: int32x4  gen()    92 MB/s
[    1.130103][    T1] raid6: int32x2  gen()   120 MB/s
[    1.470070][    T1] raid6: int32x1  gen()    94 MB/s
[    1.470084][    T1] raid6: using algorithm int32x2 gen() 120 MB/s
[    1.810072][    T1] raid6: .... xor() 76 MB/s, rmw enabled
[    1.810085][    T1] raid6: using intx1 recovery algorithm
[    1.812030][    T1] SCSI subsystem initialized
[    1.812894][    T1] usbcore: registered new interface driver usbfs
[    1.812975][    T1] usbcore: registered new interface driver hub
[    1.813049][    T1] usbcore: registered new device driver usb
[    1.813521][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.813532][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.813569][    T1] PTP clock support registered
[    1.816744][    T1] vgaarb: loaded
[    1.817688][    T1] clocksource: Switched to clocksource orion_clocksource
[    1.836368][    T1] VFS: Disk quotas dquot_6.6.0
[    1.836882][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.875111][    T1] NET: Registered PF_INET protocol family
[    1.875464][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.887905][    T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.888124][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.888158][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    1.888208][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.888264][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    1.889069][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.889360][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.889397][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.890431][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.891741][    T1] RPC: Registered named UNIX socket transport module.
[    1.891756][    T1] RPC: Registered udp transport module.
[    1.891763][    T1] RPC: Registered tcp transport module.
[    1.891770][    T1] RPC: Registered tcp-with-tls transport module.
[    1.891777][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.891800][    T1] PCI: CLS 0 bytes, default 32
[    1.895146][   T32] Trying to unpack rootfs image as initramfs...
[    3.020537][   T32] Freeing initrd memory: 5656K
[    4.244107][    T1] Initialise system trusted keyrings
[    4.244231][    T1] Key type blacklist registered
[    4.245795][    T1] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    4.245999][    T1] zbud: loaded
[    4.268990][    T1] NFS: Registering the id_resolver key type
[    4.269048][    T1] Key type id_resolver registered
[    4.269059][    T1] Key type id_legacy registered
[    4.269288][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.269313][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    4.271185][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.272149][    T1] fuse: init (API version 7.38)
[    4.273857][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    4.274253][    T1] orangefs_init: module version upstream loaded
[    4.274725][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    4.528700][    T1] xor: measuring software checksum speed
[    4.539362][    T1]    arm4regs        :   927 MB/sec
[    4.557064][    T1]    8regs           :   556 MB/sec
[    4.569567][    T1]    32regs          :   789 MB/sec
[    4.569579][    T1] xor: using function: arm4regs (927 MB/sec)
[    4.569596][    T1] async_tx: api initialized (async)
[    4.569614][    T1] Key type asymmetric registered
[    4.569623][    T1] Asymmetric key parser 'x509' registered
[    4.628981][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    4.629503][    T1] io scheduler bfq registered
[    4.856593][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.859239][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    4.860800][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    4.862002][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    4.862097][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    4.862151][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    4.862185][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    4.863034][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    4.863057][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.863080][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    4.863100][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.863117][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    4.863252][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    4.865441][    T1] PCI: bus0: Fast back to back transfers disabled
[    4.865474][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.865859][    T1] PCI: bus1: Fast back to back transfers enabled
[    4.865885][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    4.865934][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.867191][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.930829][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.936335][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.000840][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    5.006758][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.009896][    T1] printk: console [ttyS0] disabled
[    5.010656][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 28, base_baud = 10416666) is a 16550A
[    5.010734][    T1] printk: console [ttyS0] enabled
[    6.011910][    T1] loop: module loaded
[    6.016991][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    6.027968][    T1] scsi host0: sata_mv
[    6.033662][    T1] scsi host1: sata_mv
[    6.038073][    T1] ata1: SATA max UDMA/133 irq 29
[    6.042862][    T1] ata2: SATA max UDMA/133 irq 29
[    6.049262][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    6.056305][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[    6.061291][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    6.069590][    T1] Scanning device for bad blocks
[    6.079558][    T1] Bad eraseblock 100 at 0x000000c80000
[    6.089963][    T1] Bad eraseblock 200 at 0x000001900000
[    6.137280][    T1] 9 cmdlinepart partitions found on MTD device orion_nand
[    6.144246][    T1] Creating 9 MTD partitions on "orion_nand":
[    6.150089][    T1] 0x000000000000-0x000000100000 : "uboot"
[    6.156611][    T1] 0x000000100000-0x000000180000 : "stock_uboot_env"
[    6.163901][    T1] 0x000000180000-0x000000200000 : "key_store"
[    6.170732][    T1] 0x000000200000-0x000000280000 : "info"
[    6.177081][    T1] 0x000000280000-0x000000c80000 : "etc"
[    6.183431][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[    6.190187][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[    6.196991][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[    6.203784][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[    6.211694][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    6.220239][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    6.261171][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.272229][    T1] mv643xx_eth: Set the PHY to fix link down
[    6.273342][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    6.289397][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.295661][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.304309][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    6.337717][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.344919][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    6.353916][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.361863][    T1] usb usb1: Product: EHCI Host Controller
[    6.367455][    T1] usb usb1: Manufacturer: Linux 6.5.7-kirkwood-tld-1 ehci_hcd
[    6.374785][    T1] usb usb1: SerialNumber: f1050000.ehci
[    6.381598][    T1] hub 1-0:1.0: USB hub found
[    6.386094][    T1] hub 1-0:1.0: 1 port detected
[    6.391939][    T1] usbcore: registered new interface driver usb-storage
[    6.399405][    T1] mousedev: PS/2 mouse device common for all mice
[    6.406119][    T1] i2c_dev: i2c /dev entries driver
[    6.414584][    T1] ht1382 0-0068: registered as rtc0
[    6.420955][    T1] ht1382 0-0068: setting system clock to 2025-02-24T18:52:51 UTC (1740423171)
[    6.431328][    T1] device-mapper: uevent: version 1.0.3
[    6.437326][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    6.447283][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    6.454573][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    6.461893][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    6.469278][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    6.480080][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    6.486993][    T1] hid: raw HID events driver (C) Jiri Kosina
[    6.493341][    T1] drop_monitor: Initializing network drop monitor service
[    6.502230][    T1] NET: Registered PF_INET6 protocol family
[    6.510330][    T1] Segment Routing with IPv6
[    6.514692][    T1] RPL Segment Routing with IPv6
[    6.519589][    T1] In-situ OAM (IOAM) with IPv6
[    6.524332][    T1] NET: Registered PF_PACKET protocol family
[    6.530687][    T1] Key type dns_resolver registered
[    6.547772][   T53] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.565436][   T53] ata1.00: ATA-9: WDC WD30EFRX-68EUZN0, 82.00A82, max UDMA/133
[    6.573270][    T1] registered taskstats version 1
[    6.578150][   T53] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.585948][    T1] Loading compiled-in X.509 certificates
[    6.594118][   T53] ata1.00: configured for UDMA/133
[    6.618725][   T10] scsi 0:0:0:0: Direct-Access     ATA      WDC WD30EFRX-68E 0A82 PQ: 0 ANSI: 5
[    6.632730][    T1] Key type .fscrypt registered
[    6.637347][    T1] Key type fscrypt-provisioning registered
[    6.644771][   T32] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    6.653976][   T32] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    6.663796][   T32] sd 0:0:0:0: [sda] Write Protect is off
[    6.672721][    T1] Key type big_key registered
[    6.677789][   T50] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.688032][   T32] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.708180][   T32] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    6.758018][    T1] Key type encrypted registered
[    6.781731][   T32]  sda:
[    6.784655][   T32] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.894078][  T104] "cryptomgr_test" (104) uses obsolete ecb(arc4) skcipher
[    6.909691][   T50] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    6.923727][   T50] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.941512][   T50] usb 1-1: Product: USB2.0 Hub
[    6.948120][   T50] hub 1-1:1.0: USB hub found
[    6.957823][   T50] hub 1-1:1.0: 4 ports detected
[    7.157747][   T55] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    7.177982][   T55] ata2.00: ATA-9: WDC WD30EFRX-68EUZN0, 82.00A82, max UDMA/133
[    7.185441][   T55] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    7.210320][   T55] ata2.00: configured for UDMA/133
[    7.225939][   T18] scsi 1:0:0:0: Direct-Access     ATA      WDC WD30EFRX-68E 0A82 PQ: 0 ANSI: 5
[    7.249516][   T32] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    7.267735][   T32] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    7.273733][   T32] sd 1:0:0:0: [sdb] Write Protect is off
[    7.287735][   T50] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    7.295502][   T32] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.317851][   T32] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[    7.373970][   T32]  sdb: sdb1 sdb2 sdb3
[    7.389232][   T32] sd 1:0:0:0: [sdb] Attached SCSI disk
[    7.539565][   T50] usb 1-1.1: New USB device found, idVendor=0951, idProduct=1665, bcdDevice= 2.00
[    7.557712][   T50] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.565697][   T50] usb 1-1.1: Product: DataTraveler 2.0
[    7.587709][   T50] usb 1-1.1: Manufacturer: Kingston
[    7.592749][   T50] usb 1-1.1: SerialNumber: 0017318974D91FC0693A4974
[    7.609363][   T50] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    7.628384][   T50] scsi host2: usb-storage 1-1.1:1.0
[    8.649911][   T32] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 2.0 0000 PQ: 0 ANSI: 4
[    8.671111][   T18] sd 2:0:0:0: [sdc] 30273600 512-byte logical blocks: (15.5 GB/14.4 GiB)
[    8.689603][   T18] sd 2:0:0:0: [sdc] Write Protect is off
[    8.707732][   T18] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.738082][   T18]  sdc: sdc1
[    8.748034][   T18] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    9.887644][   T18] kirkwood-pinctrl f1010000.pin-controller: unsupported function gpio on pin mpp33
[    9.896908][   T18] pinctrl core: failed to register map default (0): invalid type given
[    9.905887][    T1] clk: Disabling unused clocks
[    9.914053][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    9.938681][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.945043][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.17-1~deb12u1
[   11.711949][  T150] usbcore: registered new interface driver uas
[   13.027742][  T121] usb 1-1.1: reset high-speed USB device number 3 using orion-ehci
[   13.183886][  T121] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=1s
[   13.193833][  T121] sd 2:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 28 00 00 10 00
[   13.201853][  T121] I/O error, dev sdc, sector 40 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1 
rootfs: clean, 20075/122160 files, 218978/488192 blocks
done.
[   24.242255][  T180] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   24.277137][  T180] EXT4-fs (sdc1): mounted filesystem bcf22700-38c8-477c-9969-e26f648c6e27 ro with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 3.06 booting
INIT: No inittab.d directory found
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   27.920474][  T357] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   28.469082][  T367] orion_wdt: Initial timeout 25 sec
[   28.779099][  T121] random: crng init done
[   28.962885][  T356] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   29.098018][  T356] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   29.212617][  T356] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   29.261742][  T371] marvell-cesa f1030000.crypto: CESA device successfully registered
[   30.627799][  T121] usb 1-1.1: reset high-speed USB device number 3 using orion-ehci
done.
Activating swap:.
[   31.880570][  T525] EXT4-fs (sdc1): re-mounted bcf22700-38c8-477c-9969-e26f648c6e27 r/w. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
[   34.965914][  T904] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   38.140084][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER of 192.168.0.164 from 192.168.0.149
DHCPREQUEST for 192.168.0.164 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.164 from 192.168.0.149
bound to 192.168.0.164 -- renewal in 17843 seconds.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Not starting NFS kernel daemon: no exports ... (warning).
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1036 (syslogd)
.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting NTP server: ntpd2025-02-24T10:53:28 ntpd[1077]: INIT: ntpd ntpsec-1.2.2: Starting
2025-02-24T10:53:28 ntpd[1077]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
.
Starting NTP server: ntpd.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1053 (klogd)
.
Starting OpenBSD Secure Shell server: sshd.

[...]

root@debian:~# blkid
/dev/sdb2: UUID="bb48fb53-be41-509c-3017-a5a8c86610be" TYPE="linux_raid_member" PARTUUID="153d97c3-ffe5-460d-8432-08ee4d18bbb7"
/dev/sdb3: UUID="bf696b87-1701-2808-2ac8-102136ff18b6" UUID_SUB="c6f9a9c6-df7e-e283-869d-70cc3d18b407" LABEL="CHBSLNAM11PRD:2" TYPE="li
nux_raid_member" PARTUUID="798a5e17-f6de-45e9-adff-6d4403507148"
/dev/sdb1: UUID="d0ab8eb1-786b-f19e-3017-a5a8c86610be" TYPE="linux_raid_member" PARTUUID="5a74b4c4-f0e6-4c33-bb1d-e2a15a9b70f8"
/dev/sdc1: LABEL="rootfs" UUID="bcf22700-38c8-477c-9969-e26f648c6e27" BLOCK_SIZE="4096" TYPE="ext3" PARTUUID="06b4319f-01"
/dev/sda: PTUUID="3bb291af-4ee2-4ed1-8b98-9175e8bc947c" PTTYPE="gpt"
root@debian:~# [   73.386325][    T9] usb 1-1.1: USB disconnect, device number 3
[   73.400726][   T33] device offline error, dev sdc, sector 2521168 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 2
[   73.411127][   T33] EXT4-fs warning (device sdc1): ext4_end_bio:343: I/O error 17 writing to inode 8322 starting block 315146)
[   73.422944][   T33] Buffer I/O error on device sdc1, logical block 314890
[   73.430128][   T33] device offline error, dev sdc, sector 2517128 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 2
[   73.440522][   T33] EXT4-fs warning (device sdc1): ext4_end_bio:343: I/O error 17 writing to inode 8328 starting block 314641)
[   73.452238][   T33] Buffer I/O error on device sdc1, logical block 314385
[   73.459333][   T18] device offline error, dev sdc, sector 2508216 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 2
[   73.477868][   T18] EXT4-fs warning (device sdc1): ext4_end_bio:343: I/O error 17 writing to inode 8327 starting block 313527)
[   73.505614][   T18] Buffer I/O error on device sdc1, logical block 313271
[   73.518037][   T33] device offline error, dev sdc, sector 2048 op 0x1:(WRITE) flags 0x3000 phys_seg 2 prio class 2
[   73.528653][   T33] Buffer I/O error on dev sdc1, logical block 0, lost async page write
[   73.536744][   T33] Buffer I/O error on dev sdc1, logical block 1, lost async page write
[   73.545476][   T33] device offline error, dev sdc, sector 265168 op 0x1:(WRITE) flags 0x3000 phys_seg 2 prio class 2
[   73.556257][   T33] Buffer I/O error on dev sdc1, logical block 32890, lost async page write
[   73.564960][   T33] Buffer I/O error on dev sdc1, logical block 32891, lost async page write
[   73.573735][   T33] device offline error, dev sdc, sector 265256 op 0x1:(WRITE) flags 0x3000 phys_seg 2 prio class 2
[   73.584503][   T33] Buffer I/O error on dev sdc1, logical block 32901, lost async page write
[   73.593171][   T33] Buffer I/O error on dev sdc1, logical block 32902, lost async page write
[   73.601940][   T33] device offline error, dev sdc, sector 265304 op 0x1:(WRITE) flags 0x3000 phys_seg 1 prio class 2
[   73.612696][   T33] Buffer I/O error on dev sdc1, logical block 32907, lost async page write
[   73.621464][   T33] device offline error, dev sdc, sector 265320 op 0x1:(WRITE) flags 0x3000 phys_seg 1 prio class 2
[   73.632221][   T33] Buffer I/O error on dev sdc1, logical block 32909, lost async page write
[   73.641017][   T33] device offline error, dev sdc, sector 265344 op 0x1:(WRITE) flags 0x3000 phys_seg 1 prio class 2
[   73.651767][   T33] Buffer I/O error on dev sdc1, logical block 32912, lost async page write
[   73.660682][   T33] device offline error, dev sdc, sector 265368 op 0x1:(WRITE) flags 0x3000 phys_seg 1 prio class 2
[   73.671445][   T33] Buffer I/O error on dev sdc1, logical block 32915, lost async page write
[   73.727383][    T9] EXT4-fs (sdc1): shut down requested (2)
[   73.734623][    T9] Aborting journal on device sdc1-8.
[   73.740531][    T9] JBD2: I/O error when updating journal superblock for sdc1-8.
[   74.077727][    T9] usb 1-1.1: new high-speed USB device number 4 using orion-ehci
[   74.319566][    T9] usb 1-1.1: New USB device found, idVendor=0951, idProduct=1665, bcdDevice= 2.00
[   74.328672][    T9] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   74.336686][    T9] usb 1-1.1: Product: DataTraveler 2.0
[   74.342455][    T9] usb 1-1.1: Manufacturer: Kingston
[   74.347498][    T9] usb 1-1.1: SerialNumber: 0017318974D91FC0693A4974
[   74.365970][    T9] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   74.384069][    T9] scsi host3: usb-storage 1-1.1:1.0
[   75.449915][   T18] scsi 3:0:0:0: Direct-Access     Kingston DataTraveler 2.0 0000 PQ: 0 ANSI: 4
[   75.469460][   T18] sd 3:0:0:0: Attached scsi generic sg2 type 0
[   75.475756][   T32] sd 3:0:0:0: [sdd] 30273600 512-byte logical blocks: (15.5 GB/14.4 GiB)
[   75.500134][   T32] sd 3:0:0:0: [sdd] Write Protect is off
[   75.510190][   T32] sd 3:0:0:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   75.539081][   T32]  sdd: sdd1
[   75.545810][   T32] sd 3:0:0:0: [sdd] Attached SCSI removable disk

root@debian:~# ls
[  234.538228][ T1109] EXT4-fs warning (device sdc1): dx_probe:822: inode #34959: lblock 0: comm bash: error -5 reading directory block
[  234.550317][ T1109] EXT4-fs warning (device sdc1): dx_probe:822: inode #35232: lblock 0: comm bash: error -5 reading directory block
-bash: ls: command not found
root@debian:~# 
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 24, 2025 03:22PM
That MPP33 for one of the regulators should be GPO rather than GPIO. I suppose that could fit the stated facts if the sata drives operating without that sata regulator line working was making the USB 5v sag enough to cause problems. I guess.
[ 9.898232][ T18] kirkwood-pinctrl f1010000.pin-controller: unsupported function gpio on pin mpp33
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 24, 2025 09:54PM
> That MPP33 for one of the regulators should be GPO
> rather than GPIO.

Indeed.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 24, 2025 10:58PM
Micky Wicky,

Please try this updated DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-nsa320s.dtb.250225.tar (30 KB)
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 25, 2025 11:33AM
The latest DTB works flawlessly.

Thank you very much!
Re: Zyxel NSA320S, USB rootfs, cannot boot with SATA HDDs in recent kernels
February 26, 2025 10:49PM
Micky Wicky,

> The latest DTB works flawlessly.

Thanks for the feed back! this bug has been there quite a while.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: