Strange cyclic freezing with Zyxel NAS326
November 17, 2023 05:18AM
After last update to Linux Kernel 6.5.7 I got a strange problem. Now I run Linux debian 6.4.11-mvebu-tld-1 as I tried to downgrade to see if it would get better.

When I am connected via SSH I can write about 5 seconds, then it freeze for about 10 seconds, then it spits out what I have written and I can write about 5 seconds more before it freezes again. From time to time I get "client_loop: send disconnect: Connection reset". Then I have to reconnect, and it takes time as it seems to freeze there also. It is like it has very much to do, but I cant see that it is doing anything special.

BUT if I connect to it with a terminal and run:
ping 127.0.0.1


And I let the ping command run. Then I connect to it with another terminal, then suddenly it is fast and normal.

Does anyone have any guesses as to where I should start looking.

I have tried adding the following line to the /etc/ssh/sshd_config file an rebooting it, but it didn't help.:
UseDNS no

Some info:
aroot@debian:~# free
               total        used        free      shared  buff/cache   available
Mem:          501388       47416       97684        1140      356288      251800
Swap:        2097148         520     2096628
root@debian:~#
root@debian:~#
root@debian:~# df
Filesystem       1K-blocks       Used  Available Use% Mounted on
udev                245224          0     245224   0% /dev
tmpfs                50140       1520      48620   4% /run
/dev/sda1        143074516    4227320  131523036   4% /
tmpfs                 5120          0       5120   0% /run/lock
tmpfs               100260          0     100260   0% /dev/shm
tmpfs               250692          0     250692   0% /tmp
/dev/sda2      11480038536 4676318800 6225083348  43% /media/data
/dev/sdb1      11625368992 5860603024 5178805420  54% /media/data2


Top say this:
top - 12:07:06 up 4 min,  2 users,  load average: 0.22, 0.36, 0.18
Tasks:  98 total,   2 running,  96 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :    489.6 total,     96.7 free,     46.6 used,    346.4 buff/cache
MiB Swap:   2048.0 total,   2047.5 free,      0.5 used.    245.7 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
    6 root      20   0       0      0      0 I   0.3   0.0   0:01.02 kworker/0:0-events
 2484 root      20   0    9896   2432   2048 R   0.3   0.5   0:00.04 top
    1 root      20   0    2328   1152   1152 S   0.0   0.2   0:02.65 init
    2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd
    3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
    4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp
    5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns
    7 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-events_highpri
    8 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/0:1-pm
    9 root      20   0       0      0      0 I   0.0   0.0   0:00.04 kworker/u2:0-events_unbound
   10 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq
   11 root      20   0       0      0      0 I   0.0   0.0   0:00.43 kworker/u2:1-events_unbound
   12 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tasks_kthread
   13 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tasks_trace_kthread
   14 root      20   0       0      0      0 S   0.0   0.0   0:00.07 ksoftirqd/0
   15 root      20   0       0      0      0 I   0.0   0.0   0:00.04 rcu_preempt
   16 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/0
   17 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0
   18 root      20   0       0      0      0 S   0.0   0.0   0:00.02 kdevtmpfs
   19 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 inet_frag_wq
   20 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kauditd
   21 root      20   0       0      0      0 S   0.0   0.0   0:00.00 khungtaskd


And
ps -xa
PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:02 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        I<     0:00 [rcu_gp]
    4 ?        I<     0:00 [rcu_par_gp]
    5 ?        I<     0:00 [netns]
    6 ?        I      0:01 [kworker/0:0-pm]
    7 ?        I<     0:00 [kworker/0:0H-events_highpri]
    8 ?        I      0:00 [kworker/0:1-pm]
    9 ?        I      0:00 [kworker/u2:0-events_unbound]
   10 ?        I<     0:00 [mm_percpu_wq]
   11 ?        I      0:00 [kworker/u2:1-events_unbound]
   12 ?        I      0:00 [rcu_tasks_kthread]
   13 ?        I      0:00 [rcu_tasks_trace_kthread]
   14 ?        S      0:00 [ksoftirqd/0]
   15 ?        I      0:00 [rcu_preempt]
   16 ?        S      0:00 [migration/0]
   17 ?        S      0:00 [cpuhp/0]
   18 ?        S      0:00 [kdevtmpfs]
   19 ?        I<     0:00 [inet_frag_wq]
   20 ?        S      0:00 [kauditd]
   21 ?        S      0:00 [khungtaskd]
   22 ?        S      0:00 [oom_reaper]
   23 ?        I<     0:00 [writeback]
   24 ?        S      0:00 [kcompactd0]
   25 ?        SN     0:00 [ksmd]
   26 ?        I<     0:00 [kintegrityd]
   27 ?        I<     0:00 [kblockd]
   28 ?        I<     0:00 [blkcg_punt_bio]
   29 ?        I<     0:00 [ata_sff]
   30 ?        I<     0:00 [md]
   31 ?        S      0:00 [watchdogd]
   32 ?        I<     0:00 [kworker/0:1H-kblockd]
   33 ?        I<     0:00 [rpciod]
   34 ?        I<     0:00 [xprtiod]
   35 ?        I      0:00 [kworker/u2:2-events_unbound]
   48 ?        S      0:00 [kswapd0]
   50 ?        I<     0:00 [nfsiod]
   57 ?        I      0:00 [kworker/0:2-events_freezable_power_]
   71 ?        I      0:00 [kworker/0:3-events_power_efficient]
  652 ?        S      0:00 [scsi_eh_0]
  653 ?        I<     0:00 [scsi_tmf_0]
  657 ?        S      0:00 [scsi_eh_1]
  658 ?        I<     0:00 [scsi_tmf_1]
  662 ?        I      0:00 [kworker/u2:3-events_unbound]
  807 ?        I      0:00 [kworker/0:4-pm]
  814 ?        I      0:00 [kworker/u2:4-events_unbound]
  818 ?        I      0:00 [kworker/0:5-events_power_efficient]
  881 ?        I<     0:00 [raid5wq]
  887 ?        S      0:00 [scsi_eh_2]
  889 ?        I<     0:00 [scsi_tmf_2]
  891 ?        S      0:00 [usb-storage]
  892 ?        I<     0:00 [dm_bufio_cache]
  893 ?        I<     0:00 [kmpathd]
  898 ?        I<     0:00 [kmpath_handlerd]
  902 ?        I<     0:00 [kworker/u3:0]
  904 ?        I<     0:00 [sdhci]
  905 ?        S      0:00 [irq/51-mmc0]
  927 ?        S      0:00 [irq/52-f1090000.crypto]
  928 ?        S      0:00 [irq/53-f1090000.crypto]
  940 ?        I<     0:00 [mld]
  941 ?        I<     0:00 [ipv6_addrconf]
  948 ?        I<     0:00 [kstrp]
 1308 ?        I<     0:00 [uas]
 1329 ?        S      0:00 [jbd2/sda1-8]
 1330 ?        I<     0:00 [ext4-rsv-conver]
 1504 ?        S      0:00 /lib/systemd/systemd-udevd
 1922 ?        S      0:00 [jbd2/sda2-8]
 1923 ?        I<     0:00 [ext4-rsv-conver]
 1925 ?        S      0:00 [jbd2/sdb1-8]
 1926 ?        I<     0:00 [ext4-rsv-conver]
 2137 ?        Ss     0:00 /sbin/rpcbind -w
 2151 ?        Ss     0:00 /sbin/rpc.statd
 2163 ?        Ss     0:00 /usr/sbin/rpc.idmapd
 2210 ?        Ss     0:00 /sbin/syslogd -C128
 2223 ?        Ss     0:00 /sbin/klogd
 2262 ?        Ss     0:00 /usr/sbin/nmbd -D
 2296 ?        Ss     0:00 /usr/sbin/cron
 2310 ?        Ss     0:00 /usr/bin/dbus-daemon --system
 2321 ?        S      0:00 avahi-daemon: running [debian.local]
 2322 ?        S      0:00 avahi-daemon: chroot helper
 2336 ?        Ssl    0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
 2364 ?        S      0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid
 2378 ?        Ss     0:00 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups
 2397 ?        Ss     0:00 syslogd
 2399 ?        S      0:00 esekeyd /etc/esekeyd.conf
 2430 ttyS0    Ss+    0:00 /sbin/getty -L ttyS0 115200 linux
 2431 ?        Ss     0:00 sshd: admin [priv]
 2437 ?        S      0:00 sshd: admin@pts/0
 2438 pts/0    Ss     0:00 -bash
 2441 pts/0    S      0:00 su -
 2442 pts/0    S      0:00 -bash
 2457 pts/0    S+     0:00 ping 127.0.0.1
 2458 ?        Ss     0:00 sshd: admin [priv]
 2464 ?        S      0:00 sshd: admin@pts/1
 2465 pts/1    Ss     0:00 -bash
 2468 pts/1    S      0:00 su -
 2469 pts/1    S      0:00 -bash
 2485 pts/1    R+     0:00 ps -xa

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.4.11-mvebu-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Sun Aug 20 03:17:26 PDT 2023
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Zyxel NAS326
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] percpu: Embedded 14 pages/cpu s25300 r8192 d23852 u57344
[    0.000000] pcpu-alloc: s25300 r8192 d23852 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 490452K/524288K available (10240K kernel code, 867K rwdata, 3444K rodata, 1024K init, 462K bss, 33836K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000001] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008681] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.020388] Switching to timer-based delay loop, resolution 1ns
[    0.027216] Ignoring duplicate/late registration of read_current_timer delay
[    0.034932] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046802] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.056606] Console: colour dummy device 80x30
[    0.061758] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.073036] CPU: Testing write buffer coherency: ok
[    0.078619] CPU0: Spectre v2: using BPIALL workaround
[    0.084344] pid_max: default: 32768 minimum: 301
[    0.089835] LSM: initializing lsm=capability,integrity
[    0.095771] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.103758] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.113160] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.120259] cblist_init_generic: Setting adjustable number of callback queues.
[    0.128170] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.134998] cblist_init_generic: Setting adjustable number of callback queues.
[    0.142902] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.149773] Setting up static identity map for 0x100000 - 0x100060
[    0.156735] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0xA
[    0.162693] mvebu-pmsu: Initializing Power Management Service Unit
[    0.169661] rcu: Hierarchical SRCU implementation.
[    0.175127] rcu:     Max phase no-delay instances is 1000.
[    0.181687] smp: Bringing up secondary CPUs ...
[    0.186895] smp: Brought up 1 node, 1 CPU
[    0.191616] SMP: Total of 1 processors activated (1332.00 BogoMIPS).
[    0.198652] CPU: All CPU(s) started in SVC mode.
[    0.204266] devtmpfs: initialized
[    0.212549] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.221155] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.231684] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.239375] prandom: seed boundary self test passed
[    0.246518] prandom: 100 self tests passed
[    0.251302] pinctrl core: initialized pinctrl subsystem
[    0.258233] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.265472] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.273792] audit: initializing netlink subsys (disabled)
[    0.280432] thermal_sys: Registered thermal governor 'step_wise'
[    0.280483] cpuidle: using governor ladder
[    0.291949] audit: type=2000 audit(0.240:1): state=initialized audit_enabled=0 res=1
[    0.300387] cpuidle: using governor menu
[    0.305113] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.313790] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.320458] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.329220] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.339202] platform soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.527075] raid6: int32x8  gen()   266 MB/s
[    0.697063] raid6: int32x4  gen()   277 MB/s
[    0.867058] raid6: int32x2  gen()   459 MB/s
[    1.037074] raid6: int32x1  gen()   533 MB/s
[    1.042022] raid6: using algorithm int32x1 gen() 533 MB/s
[    1.217110] raid6: .... xor() 205 MB/s, rmw enabled
[    1.222663] raid6: using intx1 recovery algorithm
[    1.228957] SCSI subsystem initialized
[    1.233533] libata version 3.00 loaded.
[    1.233706] usbcore: registered new interface driver usbfs
[    1.239935] usbcore: registered new interface driver hub
[    1.245945] usbcore: registered new device driver usb
[    1.251926] pps_core: LinuxPPS API ver. 1 registered
[    1.257574] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.267382] PTP clock support registered
[    1.273259] vgaarb: loaded
[    1.277085] clocksource: Switched to clocksource arm_global_timer
[    1.284250] VFS: Disk quotas dquot_6.6.0
[    1.288999] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.303472] NET: Registered PF_INET protocol family
[    1.309192] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.318074] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.327239] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.335660] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.344146] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.352031] TCP: Hash tables configured (established 4096 bind 4096)
[    1.359211] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.367156] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.374366] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.382153] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.388937] RPC: Registered named UNIX socket transport module.
[    1.395531] RPC: Registered udp transport module.
[    1.400948] RPC: Registered tcp transport module.
[    1.406327] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.413450] PCI: CLS 0 bytes, default 64
[    1.418214] Trying to unpack rootfs image as initramfs...
[    1.427462] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.449188] Initialise system trusted keyrings
[    1.454377] Key type blacklist registered
[    1.467326] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.487171] zbud: loaded
[    1.491688] NFS: Registering the id_resolver key type
[    1.507180] Key type id_resolver registered
[    1.512052] Key type id_legacy registered
[    1.516783] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.537140] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.660711] xor: measuring software checksum speed
[    1.677134]    arm4regs        :  2172 MB/sec
[    1.697175]    8regs           :  1669 MB/sec
[    1.717144]    32regs          :  1732 MB/sec
[    1.722190] xor: using function: arm4regs (2172 MB/sec)
[    1.737183] async_tx: api initialized (async)
[    1.742231] Key type asymmetric registered
[    1.747005] Asymmetric key parser 'x509' registered
[    1.777484] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.785661] io scheduler bfq registered
[    1.800603] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.819049] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.847601] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    1.856730] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.877674] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    1.899142] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.977887] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.999700] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.077873] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.146143] Freeing initrd memory: 9912K
[    2.267019] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.280671] printk: console [ttyS0] disabled
[    2.307921] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 39, base_baud = 12500000) is a 16550A
[    2.317725] printk: console [ttyS0] enabled
[    2.327667] printk: bootconsole [earlycon0] disabled
[    2.358831] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    2.368688] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    2.376976] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    2.385769] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.395612] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.407274] scsi host0: ahci-mvebu
[    2.412425] scsi host1: ahci-mvebu
[    2.416763] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 40
[    2.426016] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 40
[    2.435930] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    2.444247] nand: Macronix MX30LF2G18AC
[    2.448849] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.457429] Bad block table found at page 131008, version 0x01
[    2.464309] Bad block table found at page 130944, version 0x01
[    2.471169] nand_read_bbt: bad block at 0x000007640000
[    2.477042] nand_read_bbt: bad block at 0x00000c8c0000
[    2.483052] 7 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    2.490778] Creating 7 MTD partitions on "pxa3xx_nand-0":
[    2.496909] 0x000000000000-0x000000200000 : "U-Boot"
[    2.503937] 0x000000200000-0x000000400000 : "U-Boot env"
[    2.511835] 0x000000400000-0x000000e00000 : "Config"
[    2.519378] 0x000000e00000-0x000001d00000 : "Kernel-1"
[    2.527050] 0x000001d00000-0x000008700000 : "RootFS-1"
[    2.534992] 0x000008700000-0x000009600000 : "Kernel-2"
[    2.542857] 0x000009600000-0x000010000000 : "RootFS-2"
[    2.551888] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.561832] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.590625] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.602549] mvneta f1070000.ethernet eth0: Using random mac address ba:e9:32:8d:15:01
[    2.614754] usbcore: registered new interface driver smsc75xx
[    2.622236] orion-ehci f1058000.usb: EHCI Host Controller
[    2.628796] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.637332] orion-ehci f1058000.usb: irq 43, io mem 0xf1058000
[    2.667094] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.673993] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.04
[    2.683038] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.691026] usb usb1: Product: EHCI Host Controller
[    2.696650] usb usb1: Manufacturer: Linux 6.4.11-mvebu-tld-1 ehci_hcd
[    2.703849] usb usb1: SerialNumber: f1058000.usb
[    2.709779] hub 1-0:1.0: USB hub found
[    2.714583] hub 1-0:1.0: 1 port detected
[    2.720307] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    2.727003] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    2.735365] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.745488] xhci-hcd f10f0000.usb3: irq 44, io mem 0xf10f0000
[    2.752234] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    2.758352] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    2.766616] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    2.773902] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.04
[    2.782928] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.790900] usb usb2: Product: xHCI Host Controller
[    2.796506] usb usb2: Manufacturer: Linux 6.4.11-mvebu-tld-1 xhci-hcd
[    2.803688] usb usb2: SerialNumber: f10f0000.usb3
[    2.809657] hub 2-0:1.0: USB hub found
[    2.814438] hub 2-0:1.0: 1 port detected
[    2.819559] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.828798] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.04
[    2.837873] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.845838] usb usb3: Product: xHCI Host Controller
[    2.851556] usb usb3: Manufacturer: Linux 6.4.11-mvebu-tld-1 xhci-hcd
[    2.858828] usb usb3: SerialNumber: f10f0000.usb3
[    2.864753] hub 3-0:1.0: USB hub found
[    2.869549] hub 3-0:1.0: 1 port detected
[    2.874922] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.881629] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.889975] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.900074] xhci-hcd f10f8000.usb3: irq 45, io mem 0xf10f8000
[    2.906705] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.912881] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.921194] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    2.928406] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.04
[    2.937483] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    2.944421] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    2.951434] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.959449] usb usb4: Product: xHCI Host Controller
[    2.965087] ata2.00: ATA-9: WDC WD120EFBX-68B0EN0, 85.00A85, max UDMA/133
[    2.972642] usb usb4: Manufacturer: Linux 6.4.11-mvebu-tld-1 xhci-hcd
[    2.979956] ata2.00: 23437770752 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.987337] usb usb4: SerialNumber: f10f8000.usb3
[    2.993050] ata1.00: ATA-9: WDC WD120EFBX-68B0EN0, 85.00A85, max UDMA/133
[    3.000923] hub 4-0:1.0: USB hub found
[    3.005703] ata1.00: 23437770752 sectors, multi 0: LBA48 NCQ (depth 32)
[    3.013176] hub 4-0:1.0: 1 port detected
[    3.017852] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    3.025846] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.035224] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.04
[    3.044367] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.052524] usb usb5: Product: xHCI Host Controller
[    3.058181] ata1.00: configured for UDMA/133
[    3.063208] ata2.00: configured for UDMA/133
[    3.068301] usb usb5: Manufacturer: Linux 6.4.11-mvebu-tld-1 xhci-hcd
[    3.075521] usb usb5: SerialNumber: f10f8000.usb3
[    3.081562] hub 5-0:1.0: USB hub found
[    3.086253] scsi 0:0:0:0: Direct-Access     ATA      WDC WD120EFBX-68 0A85 PQ: 0 ANSI: 5
[    3.095461] hub 5-0:1.0: 1 port detected
[    3.100983] sd 0:0:0:0: [sda] 23437770752 512-byte logical blocks: (12.0 TB/10.9 TiB)
[    3.110151] scsi 1:0:0:0: Direct-Access     ATA      WDC WD120EFBX-68 0A85 PQ: 0 ANSI: 5
[    3.120435] usbcore: registered new interface driver usblp
[    3.126738] usbcore: registered new interface driver usb-storage
[    3.134847] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.141635] sd 1:0:0:0: [sdb] 23437770752 512-byte logical blocks: (12.0 TB/10.9 TiB)
[    3.151323] sd 0:0:0:0: [sda] Write Protect is off
[    3.156850] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.156887] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.166875] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    3.173427] mousedev: PS/2 mouse device common for all mice
[    3.180217] sd 1:0:0:0: [sdb] Write Protect is off
[    3.185741] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    3.185777] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.197615] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.203924] armada38x-rtc f10a3800.rtc: setting system clock to 2023-11-17T11:02:51 UTC (1700218971)
[    3.215085] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    3.222266] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[    3.230528] usb 1-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    3.240589] i2c_dev: i2c /dev entries driver
[    3.247171] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.256194] mv64xxx_i2c f1011000.i2c: can't get pinctrl, bus recovery not supported
[    3.264782] usb 1-1: Product:  SanDisk 3.2Gen1
[    3.270679] mv64xxx_i2c f1011100.i2c: can't get pinctrl, bus recovery not supported
[    3.279647] usb 1-1: Manufacturer:  USB
[    3.284521] usb 1-1: SerialNumber: 01016801adc9d8946001926cf4b5fb624e3d83476c3ef331f1645cfd53566879d78c00000000000000000000a010c48bff08180083558107bea97802
[    3.299856]  sda: sda1 sda2
[    3.305605] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.313062] orion_wdt: Initial timeout 171 sec
[    3.318893]  sdb: sdb1
[    3.322375] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    3.331495] device-mapper: uevent: version 1.0.3
[    3.338522] usb-storage 1-1:1.0: USB Mass Storage device detected
[    3.345520] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    3.355647] scsi host2: usb-storage 1-1:1.0
[    3.362140] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.369595] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.376949] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.384443] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.391530] sdhci: Secure Digital Host Controller Interface driver
[    3.398787] sdhci: Copyright(c) Pierre Ossman
[    3.404508] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.417495] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.425928] hid: raw HID events driver (C) Jiri Kosina
[    3.433792] usbcore: registered new interface driver usbhid
[    3.440616] usbhid: USB HID core driver
[    3.445198] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
[    3.454221] NET: Registered PF_INET6 protocol family
[    3.461505] Segment Routing with IPv6
[    3.465893] RPL Segment Routing with IPv6
[    3.470764] In-situ OAM (IOAM) with IPv6
[    3.475515] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.483959] NET: Registered PF_PACKET protocol family
[    3.490799] 8021q: 802.1Q VLAN Support v1.8
[    3.495802] Key type dns_resolver registered
[    3.501020] ThumbEE CPU extension supported.
[    3.506020] Registering SWP/SWPB emulation handler
[    3.574260] registered taskstats version 1
[    3.580136] Loading compiled-in X.509 certificates
[    3.585844] Key type .fscrypt registered
[    3.591187] Key type fscrypt-provisioning registered
[    3.597030] Key type big_key registered
[    3.617002] Key type encrypted registered
[    3.626906] usb_phy_generic usb2_phy: dummy supplies not allowed for exclusive requests
[    3.640001] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    3.648968] clk: Disabling unused clocks
[    3.656557] Freeing unused kernel image (initmem) memory: 1024K
[    3.667895] Checked W+X mappings: passed, no W+X pages found
[    3.674333] Run /init as init process
[    3.678768]   with arguments:
[    3.678775]     /init
[    3.678779]   with environment:
[    3.678783]     HOME=/
[    3.678787]     TERM=linux
[    4.438585] usbcore: registered new interface driver uas
[    4.444904] scsi 2:0:0:0: Direct-Access      USB      SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[    4.462035] sd 2:0:0:0: [sdc] 240353280 512-byte logical blocks: (123 GB/115 GiB)
[    4.477795] sd 2:0:0:0: [sdc] Write Protect is off
[    4.483326] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[    4.487176] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.513740] mtdblock: MTD device 'U-Boot' is NAND, please consider using UBI block devices instead.
[    4.523768]  sdc: sdc1
[    4.529374] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    4.543396] mtdblock: MTD device 'U-Boot env' is NAND, please consider using UBI block devices instead.
[    4.563883] mtdblock: MTD device 'Config' is NAND, please consider using UBI block devices instead.
[    4.577227] mtdblock: MTD device 'Kernel-1' is NAND, please consider using UBI block devices instead.
[    4.590531] mtdblock: MTD device 'RootFS-1' is NAND, please consider using UBI block devices instead.
[    4.603543] mtdblock: MTD device 'Kernel-2' is NAND, please consider using UBI block devices instead.
[    4.616533] mtdblock: MTD device 'RootFS-2' is NAND, please consider using UBI block devices instead.
[   21.252391] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   26.901631] EXT4-fs (sda1): mounted filesystem 79fdc606-ae0a-4604-b965-f4b3aa465f9e ro with ordered data mode. Quota mode: none.
[   29.613993] mtdblock: MTD device 'U-Boot' is NAND, please consider using UBI block devices instead.
[   29.640794] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   29.653492] mtdblock: MTD device 'U-Boot env' is NAND, please consider using UBI block devices instead.
[   29.678054] mtdblock: MTD device 'Config' is NAND, please consider using UBI block devices instead.
[   29.693826] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   29.735424] mtdblock: MTD device 'Kernel-1' is NAND, please consider using UBI block devices instead.
[   29.757296] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   29.770688] mtdblock: MTD device 'RootFS-1' is NAND, please consider using UBI block devices instead.
[   29.797131] random: crng init done
[   29.836599] mtdblock: MTD device 'Kernel-2' is NAND, please consider using UBI block devices instead.
[   29.887300] mtdblock: MTD device 'RootFS-2' is NAND, please consider using UBI block devices instead.
[   31.336923] EXT4-fs (sda1): re-mounted 79fdc606-ae0a-4604-b965-f4b3aa465f9e r/w. Quota mode: none.
[   50.238241] EXT4-fs (sda2): mounted filesystem 1f86594b-b833-4e29-b6c5-8fbae09a1c4e r/w with ordered data mode. Quota mode: none.
[   50.853519] EXT4-fs (sdb1): mounted filesystem 6c41dbee-e89a-479d-9868-ee442d2704dd r/w with ordered data mode. Quota mode: none.
[   51.186362] Adding 2097148k swap on /swapfile.  Priority:-2 extents:48 across:72112848k FS
[   51.762691] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
[   51.775821] mvneta f1070000.ethernet eth0: configuring for phy/rgmii-id link mode
[   54.917826] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   54.926969] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   56.917442] IPv6: eth0: IPv6 duplicate address fd27:f7d6:485e:0:c090:9aff:feb0:fdd6 used by c2:90:9a:b0:fd:d6 detected!
[  287.087818] IPv6: eth0: IPv6 duplicate address fd27:f7d6:485e:0:c090:9aff:feb0:fdd6 used by c2:90:9a:b0:fd:d6 detected!
[  505.056783] IPv6: eth0: IPv6 duplicate address fd27:f7d6:485e:0:c090:9aff:feb0:fdd6 used by c2:90:9a:b0:fd:d6 detected!
[  570.579571] IPv6: eth0: IPv6 duplicate address fd4e:412a:4e90:0:c090:9aff:feb0:fdd6 used by c2:90:9a:b0:fd:d6 detected!

cat /var/log/messages
Nov 17 11:23:06 debian user.notice shutdown[2531]: shutting down for system reboot
Nov 17 11:23:06 debian daemon.info init: Switching to runlevel: 6
Nov 17 11:23:07 debian daemon.info smartd[2361]: smartd received signal 15: Terminated
Nov 17 11:23:07 debian daemon.info smartd[2361]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD120EFBX_68B0EN0-5QKGRB6B.ata.state
Nov 17 11:23:07 debian daemon.info smartd[2361]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD120EFBX_68B0EN0-5QKEY33B.ata.state
Nov 17 11:23:07 debian daemon.info smartd[2361]: smartd is exiting (exit status 0)
Nov 17 11:23:07 debian syslog.info syslogd exiting
Nov 17 11:24:44 debian syslog.info syslogd started: BusyBox v1.30.1
Nov 17 11:24:44 debian daemon.notice esekeyd[2398]: started key daemon for /dev/input/event0
Nov 17 11:24:48 debian user.notice root[2424]: Cannot read u-boot env ethaddr
Nov 17 11:25:37 debian auth.info sshd[2431]: Accepted password for admin from 192.168.222.136 port 60270 ssh2
Nov 17 11:25:37 debian authpriv.info sshd[2431]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
Nov 17 11:25:50 debian auth.notice su: (to root) admin on pts/0
Nov 17 11:25:50 debian authpriv.info su: pam_unix(su-l:session): session opened for user root(uid=0) by admin(uid=1000)
Nov 17 11:28:09 debian auth.info sshd[2460]: Accepted password for admin from 192.168.222.136 port 60355 ssh2
Nov 17 11:28:09 debian authpriv.info sshd[2460]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
Nov 17 11:28:22 debian auth.notice su: (to root) admin on pts/1
Nov 17 11:28:22 debian authpriv.info su: pam_unix(su-l:session): session opened for user root(uid=0) by admin(uid=1000)
Nov 17 11:46:19 debian auth.info sshd[2506]: Accepted password for admin from 192.168.222.136 port 61837 ssh2
Nov 17 11:46:19 debian authpriv.info sshd[2506]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
Nov 17 11:53:29 debian auth.info sshd[2518]: Accepted password for admin from 192.168.222.136 port 62118 ssh2
Nov 17 11:53:29 debian authpriv.info sshd[2518]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
Nov 17 11:53:35 debian auth.notice su: (to root) admin on pts/3
Nov 17 11:53:35 debian authpriv.info su: pam_unix(su-l:session): session opened for user root(uid=0) by admin(uid=1000)
Nov 17 11:54:43 debian daemon.info smartd[2364]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 158 to 162
Nov 17 12:02:23 debian user.notice shutdown[2549]: shutting down for system reboot
Nov 17 12:02:23 debian daemon.info init: Switching to runlevel: 6
Nov 17 12:02:24 debian daemon.info smartd[2364]: smartd received signal 15: Terminated
Nov 17 12:02:24 debian daemon.info smartd[2364]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD120EFBX_68B0EN0-5QKGRB6B.ata.state
Nov 17 12:02:24 debian daemon.info smartd[2364]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD120EFBX_68B0EN0-5QKEY33B.ata.state
Nov 17 12:02:24 debian daemon.info smartd[2364]: smartd is exiting (exit status 0)
Nov 17 12:02:24 debian syslog.info syslogd exiting
Nov 17 12:03:57 debian syslog.info syslogd started: BusyBox v1.30.1
Nov 17 12:03:57 debian daemon.notice esekeyd[2398]: started key daemon for /dev/input/event0
Nov 17 12:03:59 debian user.notice root[2424]: Cannot read u-boot env ethaddr
Nov 17 12:04:35 debian auth.info sshd[2431]: Accepted password for admin from 192.168.222.136 port 62458 ssh2
Nov 17 12:04:35 debian authpriv.info sshd[2431]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
Nov 17 12:05:19 debian auth.notice su: (to root) admin on pts/0
Nov 17 12:05:19 debian authpriv.info su: pam_unix(su-l:session): session opened for user root(uid=0) by admin(uid=1000)
Nov 17 12:06:25 debian auth.info sshd[2458]: Accepted password for admin from 192.168.222.136 port 62549 ssh2
Nov 17 12:06:25 debian authpriv.info sshd[2458]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
Nov 17 12:06:33 debian auth.notice su: (to root) admin on pts/1
Nov 17 12:06:33 debian authpriv.info su: pam_unix(su-l:session): session opened for user root(uid=0) by admin(uid=1000)
root@debian:~#



Edited 2 time(s). Last edit at 11/17/2023 05:23AM by raffe.
Re: Strange cyclic freezing with Zyxel NAS326
November 17, 2023 02:15PM
raffe,

Indeed it is a weird problem.

I'm not sure if/how this is related to the network problem, but you should fix it any way. Some routers are picky if the box keeps changing the MAC address at each boot.

You are using random MAC address
[    2.602549] mvneta f1070000.ethernet eth0: Using random mac address ba:e9:32:8d:15:01
That was because you had an error in mtdparts:
Quote

[ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial

The mtdparts env should be:
mtdparts=pxa3xx_nand-0::2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)

So you can fix it by booting with serial console, and interupt the countdown, and
setenv mtdparts "mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)"
And then boot automatically
boot
After login into Debian, check to see if it is now the real MAC address for this box
ifconfig -a
And see if you can list the envs. ethaddr should be the real MAC address for this box.
fw_printenv ethaddr
fw_printenv mtdparts
If you can list the envs, then you can adjust the mtdparts env permanently in Debian
fw_setenv mtdparts "mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)"

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Strange cyclic freezing with Zyxel NAS326
November 18, 2023 04:27AM
Sticker on bottom of the unit say: 5C648EA53B5E
  • It seems like u-boot-tools do not include fw_printenv anymore, so I downloaded it from here.
  • I also tried to disable IPv6 via /etc/sysctl.conf
  • But after changing "armada-nand:2m" to "pxa3xx_nand-0:2m", I still need to do the ping trick to be able to do anything normally.
  • It seems like both my NAS326 has this freezing problem and the ping trick works on both. But it took me half an hour to connect the other one as I got "client_loop: send disconnect: Connection reset" and "Connection timed out" before I could start ping 127.0.0.1.
  • Maybe it is something with SSH? If I boot up with serial console and in the serial console run ping 127.0.0.1 it does nothing. The "fix" with ping 127.0.0.1 only works if I do it in a SSH terminal.


To me it seems like:
ifconfig say: c2:90:9a:b0:fd:d6
dmesg say: da:42:e6:53:69:7b
fw_printenv say: 5C:64:8E:A5:3B:5E (this is the right one)

I did this (only added extra line breaks to make it easier to read)
root@debian:~# apt install u-boot-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
u-boot-tools is already the newest version (2021.01+dfsg-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian:~#  fw_printenv
-bash: fw_printenv: command not found

wget http://jeff.doozan.com/debian/uboot/fw_printenv
chmod 755 fw_printenv
ln -s ./fw_printenv ./fw_setenv

root@debian:~# ./fw_printenv ethaddr
ethaddr=5C:64:8E:A5:3B:5E
root@debian:~# ./fw_printenv mtdparts
mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)

root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors

/dev/mtd1               0x0000          0x80000         0x20000                 4

root@debian:~# ./fw_setenv mtdparts "mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m
(kernel2),-(rootfs2)"

root@debian:~# ./fw_printenv mtdparts
mtdparts=mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)

root@debian:~# shutdown -r now
After reboot
root@debian:~# ifconfig -a eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.222.244  netmask 255.255.255.0  broadcast 192.168.222.255
        ether c2:90:9a:b0:fd:d6  txqueuelen 1024  (Ethernet)
        RX packets 1536  bytes 132909 (129.7 KiB)
        RX errors 0  dropped 27  overruns 0  frame 0
        TX packets 1310  bytes 224768 (219.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 42


root@debian:~# ./fw_printenv ethaddr
ethaddr=5C:64:8E:A5:3B:5E
root@debian:~# ./fw_printenv mtdparts
mtdparts=mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)

root@debian:~# dmesg | grep "Kernel command line"
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial

root@debian:~# dmesg | grep "eth0"
[    2.601559] mvneta f1070000.ethernet eth0: Using random mac address da:42:e6:53:69:7b
[   51.602719] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
[   51.615974] mvneta f1070000.ethernet eth0: configuring for phy/rgmii-id link mode
[   54.767647] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

root@debian:~# ethtool -P eth0
Permanent address: not set

root@debian:~# cat /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1
root@debian:~#

root@debian:~# cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Start syslog, see /var/log/messages
syslogd
# Enable use of power and copy button on NAS
esekeyd /etc/esekeyd.conf
# Block rpcbind port 111 that syslogd opens
/root/myiptables.sh
# WOL + AUTO RESUME From forum.doozan.com/read.php?2,27108,106644
/usr/sbin/i2cset -y 0x0 0xa 0xa 0x0006 w
/usr/sbin/i2cset -y 0x0 0x0a 0x0a 0x0107 w

# Work around to set persistent MAC address in Armada boxes
if [ -f /root/set_persistent_mac_address ]; then
        /root/set_persistent_mac_address
fi

if [ -d /sys/class/leds/nsa326:white:sys ]; then
   echo default-on  > /sys/class/leds/nsa326:white:sys/trigger
   echo none        > /sys/class/leds/nsa326:red:sys/trigger
   echo ide-disk1  > /sys/class/leds/nsa326:white:sata1/trigger
   echo ide-disk2  > /sys/class/leds/nsa326:white:sata2/trigger
   echo usb-host > /sys/class/leds/nsa326:white:usb/trigger
fi

if [ -d /sys/class/leds/n2350:white:sys ]; then

        echo default-on >  /sys/class/leds/n2350\:blue\:pwr/trigger
        echo none >  /sys/class/leds/n2350\:red\:pwr/trigger
        echo default-on > /sys/class/leds/n2350\:white\:sys/trigger
        echo none       > /sys/class/leds/n2350\:red\:sys/trigger
        echo ide-disk1  > /sys/class/leds/n2350:white:sata1/trigger
        echo ide-disk2  > /sys/class/leds/n2350:white:sata2/trigger
        echo usb-host  >  /sys/class/leds/n2350\:white\:usb/trigger
fi

exit 0
root@debian:~#


root@debian:~# cat /root/myiptables.sh
# Just in case
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -A INPUT -j ACCEPT
iptables -A OUTPUT -j ACCEPT
iptables -A FORWARD -j ACCEPT
# Remove old stuff
iptables -F
iptables -X
# Restore to standard
iptables -I INPUT -p udp  --dport 111 -j DROP
iptables -A INPUT -p tcp -m tcp --dport 111 -j REJECT --reject-with tcp-reset
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
#iptables -A INPUT   -j ACCEPT
#iptables -A OUTPUT  -j ACCEPT
#iptables -A FORWARD -j ACCEPT
# Show settings
iptables -S



root@debian:~# ./fw_printenv
CASset=max
CONTRY_TYPE=FF
FEATURE_BIT=00
MALLOC_len=5
MODEL_ID=B303
MPmode=SMP
PRODUCT_NAME=STG-328
VENDOR_NAME=MitraStar Technology Corp.
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootdelay=3
cacheShare=no
console=console=ttyS0,115200
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:38:32:25
eth1mtu=1500
eth2addr=00:50:43:38:a6:25
eth2mtu=1500
eth3addr=00:50:43:32:a6:38
eth3mtu=1500
ethact=egiga0
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=10.4.50.170
kernel_addr=${kernel_addr_1}
kernel_addr_2=0x08700000
kernel_addr_r=2080000
kernel_mtd_1=3
kernel_mtd_2=5
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
loadaddr=0x02000000
loads_echo=0
mtdids=nand0=armada-nand
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:25:a6:38
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=10.4.50.38
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
sysimg_mtd_1=4
sysimg_mtd_2=6
usb0Mode=host
usbActive=0
usbType=2
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
fwversion_1=V5.21(AAZF.8)
fwversion_2=V5.21(AAZF.8)
revision_1=51181
revision_2=51181
modelid_1=B303
modelid_2=B303
core_checksum_1=c782fd9d1adda4a6bac11cb570151a09
core_checksum_2=c782fd9d1adda4a6bac11cb570151a09
zld_checksum_1=e3da2fd44e82e74d7c15dbeef23be3d0
zld_checksum_2=e3da2fd44e82e74d7c15dbeef23be3d0
romfile_checksum_1=B316
romfile_checksum_2=B316
img_checksum_1=dd8adfdfaec6f9560ac52c54b277f5cf
img_checksum_2=dd8adfdfaec6f9560ac52c54b277f5cf
ethaddr=5C:64:8E:A5:3B:5E
serial_number=S210Y37061442
curr_bootfrom=1
next_bootfrom=1
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init
sata_bootcmd=echo Booting from SATA ...; setenv fdt_skip_update yes; run sata_init; ext2load scsi 0:1 $load_image_addr /boot/uImage; ext2load scsi 0:1 $load_initrd_addr /boot/uInitrd; run sata_set_bootargs; bootm $load_image_addr $load_initrd_addr
sata_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
bootcmd_custom_sata=if run sata_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
curr_bootfrom=1
next_bootfrom=1
load_initrd_addr=0x2900000
load_image_addr=0x02000000
usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start
set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"
bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
bootcmd_custom=if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
kernel_addr_1=0x00000000; run bootcmd_custom;
change_boot_part=0
mtdparts=mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)
root@debian:~#

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.4.11-mvebu-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Sun Aug 20 03:17:26 PDT 2023
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Zyxel NAS326
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] percpu: Embedded 14 pages/cpu s25300 r8192 d23852 u57344
[    0.000000] pcpu-alloc: s25300 r8192 d23852 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 490452K/524288K available (10240K kernel code, 867K rwdata, 3444K rodata, 1024K init, 462K bss, 33836K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000001] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008682] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.020389] Switching to timer-based delay loop, resolution 1ns
[    0.027218] Ignoring duplicate/late registration of read_current_timer delay
[    0.034935] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046803] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.056607] Console: colour dummy device 80x30
[    0.061759] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.073037] CPU: Testing write buffer coherency: ok
[    0.078620] CPU0: Spectre v2: using BPIALL workaround
[    0.084345] pid_max: default: 32768 minimum: 301
[    0.089836] LSM: initializing lsm=capability,integrity
[    0.095771] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.103758] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.113165] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.120257] cblist_init_generic: Setting adjustable number of callback queues.
[    0.128169] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.134998] cblist_init_generic: Setting adjustable number of callback queues.
[    0.142902] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.149776] Setting up static identity map for 0x100000 - 0x100060
[    0.156737] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0xA
[    0.162698] mvebu-pmsu: Initializing Power Management Service Unit
[    0.169665] rcu: Hierarchical SRCU implementation.
[    0.175131] rcu:     Max phase no-delay instances is 1000.
[    0.181692] smp: Bringing up secondary CPUs ...
[    0.186901] smp: Brought up 1 node, 1 CPU
[    0.191620] SMP: Total of 1 processors activated (1332.00 BogoMIPS).
[    0.198655] CPU: All CPU(s) started in SVC mode.
[    0.204272] devtmpfs: initialized
[    0.212555] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.221164] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.231691] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.239382] prandom: seed boundary self test passed
[    0.246525] prandom: 100 self tests passed
[    0.251309] pinctrl core: initialized pinctrl subsystem
[    0.258243] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.265485] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.273807] audit: initializing netlink subsys (disabled)
[    0.280459] thermal_sys: Registered thermal governor 'step_wise'
[    0.280512] cpuidle: using governor ladder
[    0.291979] audit: type=2000 audit(0.240:1): state=initialized audit_enabled=0 res=1
[    0.300417] cpuidle: using governor menu
[    0.305144] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.313821] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.320489] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.329252] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.339235] platform soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.527080] raid6: int32x8  gen()   266 MB/s
[    0.697068] raid6: int32x4  gen()   277 MB/s
[    0.867057] raid6: int32x2  gen()   459 MB/s
[    1.037069] raid6: int32x1  gen()   533 MB/s
[    1.042016] raid6: using algorithm int32x1 gen() 533 MB/s
[    1.217059] raid6: .... xor() 186 MB/s, rmw enabled
[    1.222612] raid6: using intx1 recovery algorithm
[    1.228906] SCSI subsystem initialized
[    1.233483] libata version 3.00 loaded.
[    1.233655] usbcore: registered new interface driver usbfs
[    1.239881] usbcore: registered new interface driver hub
[    1.245892] usbcore: registered new device driver usb
[    1.251874] pps_core: LinuxPPS API ver. 1 registered
[    1.257523] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.267331] PTP clock support registered
[    1.273212] vgaarb: loaded
[    1.277025] clocksource: Switched to clocksource arm_global_timer
[    1.284277] VFS: Disk quotas dquot_6.6.0
[    1.288951] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.303436] NET: Registered PF_INET protocol family
[    1.309161] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.318036] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.327189] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.335610] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.344116] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.352000] TCP: Hash tables configured (established 4096 bind 4096)
[    1.359182] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.367129] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.374338] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.382102] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.388916] RPC: Registered named UNIX socket transport module.
[    1.395509] RPC: Registered udp transport module.
[    1.400927] RPC: Registered tcp transport module.
[    1.406307] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.413430] PCI: CLS 0 bytes, default 64
[    1.418193] Trying to unpack rootfs image as initramfs...
[    1.427407] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.449143] Initialise system trusted keyrings
[    1.454327] Key type blacklist registered
[    1.467263] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.487112] zbud: loaded
[    1.491624] NFS: Registering the id_resolver key type
[    1.507118] Key type id_resolver registered
[    1.511989] Key type id_legacy registered
[    1.516717] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.537080] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.664179] xor: measuring software checksum speed
[    1.681607]    arm4regs        :  2172 MB/sec
[    1.707178]    8regs           :  1669 MB/sec
[    1.727079]    32regs          :  1732 MB/sec
[    1.732125] xor: using function: arm4regs (2172 MB/sec)
[    1.747137] async_tx: api initialized (async)
[    1.752186] Key type asymmetric registered
[    1.756961] Asymmetric key parser 'x509' registered
[    1.777446] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.785621] io scheduler bfq registered
[    1.810605] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.828972] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.847626] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    1.867730] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.887658] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    1.908986] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.987854] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.009639] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.088060] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.126085] Freeing initrd memory: 9912K
[    2.271274] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.282338] printk: console [ttyS0] disabled
[    2.309450] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 39, base_baud = 12500000) is a 16550A
[    2.319277] printk: console [ttyS0] enabled
[    2.329125] printk: bootconsole [earlycon0] disabled
[    2.358766] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    2.368627] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    2.376914] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    2.385708] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.395549] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.407222] scsi host0: ahci-mvebu
[    2.412347] scsi host1: ahci-mvebu
[    2.416685] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 40
[    2.425950] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 40
[    2.435843] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    2.444134] nand: Macronix MX30LF2G18AC
[    2.448736] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.457312] Bad block table found at page 131008, version 0x01
[    2.464193] Bad block table found at page 130944, version 0x01
[    2.471048] nand_read_bbt: bad block at 0x000007640000
[    2.476922] nand_read_bbt: bad block at 0x00000c8c0000
[    2.482901] 7 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    2.490184] Creating 7 MTD partitions on "pxa3xx_nand-0":
[    2.496314] 0x000000000000-0x000000200000 : "u-boot"
[    2.503353] 0x000000200000-0x000000400000 : "env"
[    2.510647] 0x000000400000-0x000000600000 : "config"
[    2.518189] 0x000000600000-0x000001500000 : "kernel1"
[    2.525787] 0x000001500000-0x000008300000 : "rootfs1"
[    2.533658] 0x000008300000-0x000009200000 : "kernel2"
[    2.541436] 0x000009200000-0x000010000000 : "rootfs2"
[    2.550373] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.560319] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.589643] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.601559] mvneta f1070000.ethernet eth0: Using random mac address da:42:e6:53:69:7b
[    2.613347] usbcore: registered new interface driver smsc75xx
[    2.620813] orion-ehci f1058000.usb: EHCI Host Controller
[    2.626985] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.635828] orion-ehci f1058000.usb: irq 43, io mem 0xf1058000
[    2.667034] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.673936] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.04
[    2.682981] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.690970] usb usb1: Product: EHCI Host Controller
[    2.696593] usb usb1: Manufacturer: Linux 6.4.11-mvebu-tld-1 ehci_hcd
[    2.703791] usb usb1: SerialNumber: f1058000.usb
[    2.709730] hub 1-0:1.0: USB hub found
[    2.714540] hub 1-0:1.0: 1 port detected
[    2.720264] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    2.726957] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    2.735320] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.745443] xhci-hcd f10f0000.usb3: irq 44, io mem 0xf10f0000
[    2.752189] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    2.758307] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    2.766571] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    2.773874] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.04
[    2.782900] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.790872] usb usb2: Product: xHCI Host Controller
[    2.796476] usb usb2: Manufacturer: Linux 6.4.11-mvebu-tld-1 xhci-hcd
[    2.803659] usb usb2: SerialNumber: f10f0000.usb3
[    2.809609] hub 2-0:1.0: USB hub found
[    2.814385] hub 2-0:1.0: 1 port detected
[    2.819507] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.828745] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.04
[    2.837819] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.845784] usb usb3: Product: xHCI Host Controller
[    2.851501] usb usb3: Manufacturer: Linux 6.4.11-mvebu-tld-1 xhci-hcd
[    2.858772] usb usb3: SerialNumber: f10f0000.usb3
[    2.864704] hub 3-0:1.0: USB hub found
[    2.869496] hub 3-0:1.0: 1 port detected
[    2.874875] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.881572] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.889917] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.900018] xhci-hcd f10f8000.usb3: irq 45, io mem 0xf10f8000
[    2.906647] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.912812] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.921136] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    2.928345] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.04
[    2.937422] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    2.944360] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    2.951375] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.959390] usb usb4: Product: xHCI Host Controller
[    2.965029] ata2.00: ATA-9: WDC WD120EFBX-68B0EN0, 85.00A85, max UDMA/133
[    2.972584] usb usb4: Manufacturer: Linux 6.4.11-mvebu-tld-1 xhci-hcd
[    2.979899] ata2.00: 23437770752 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.987279] usb usb4: SerialNumber: f10f8000.usb3
[    2.992989] ata1.00: ATA-9: WDC WD120EFBX-68B0EN0, 85.00A85, max UDMA/133
[    3.000848] hub 4-0:1.0: USB hub found
[    3.005628] ata1.00: 23437770752 sectors, multi 0: LBA48 NCQ (depth 32)
[    3.013101] hub 4-0:1.0: 1 port detected
[    3.017776] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    3.025763] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.035136] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.04
[    3.044278] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.052438] usb usb5: Product: xHCI Host Controller
[    3.058093] ata1.00: configured for UDMA/133
[    3.063120] ata2.00: configured for UDMA/133
[    3.068211] usb usb5: Manufacturer: Linux 6.4.11-mvebu-tld-1 xhci-hcd
[    3.075429] usb usb5: SerialNumber: f10f8000.usb3
[    3.081481] hub 5-0:1.0: USB hub found
[    3.086170] scsi 0:0:0:0: Direct-Access     ATA      WDC WD120EFBX-68 0A85 PQ: 0 ANSI: 5
[    3.095378] hub 5-0:1.0: 1 port detected
[    3.100897] sd 0:0:0:0: [sda] 23437770752 512-byte logical blocks: (12.0 TB/10.9 TiB)
[    3.110058] scsi 1:0:0:0: Direct-Access     ATA      WDC WD120EFBX-68 0A85 PQ: 0 ANSI: 5
[    3.120339] usbcore: registered new interface driver usblp
[    3.126642] usbcore: registered new interface driver usb-storage
[    3.134757] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.141550] sd 1:0:0:0: [sdb] 23437770752 512-byte logical blocks: (12.0 TB/10.9 TiB)
[    3.151234] sd 0:0:0:0: [sda] Write Protect is off
[    3.156760] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.156798] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.166717] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    3.173328] mousedev: PS/2 mouse device common for all mice
[    3.180122] sd 1:0:0:0: [sdb] Write Protect is off
[    3.185648] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    3.185685] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.197526] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.203836] armada38x-rtc f10a3800.rtc: setting system clock to 2023-11-18T09:56:08 UTC (1700301368)
[    3.214986] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    3.222165] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[    3.230394] usb 1-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    3.240477] i2c_dev: i2c /dev entries driver
[    3.247113] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.254995] usb 1-1: Product:  SanDisk 3.2Gen1
[    3.261031] mv64xxx_i2c f1011000.i2c: can't get pinctrl, bus recovery not supported
[    3.270538] mv64xxx_i2c f1011100.i2c: can't get pinctrl, bus recovery not supported
[    3.279121] usb 1-1: Manufacturer:  USB
[    3.284311] usb 1-1: SerialNumber: 01016801adc9d8946001926cf4b5fb624e3d83476c3ef331f1645cfd53566879d78c00000000000000000000a010c48bff08180083558107bea97802
[    3.303160] orion_wdt: Initial timeout 171 sec
[    3.308995]  sda: sda1 sda2
[    3.313338] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.320190]  sdb: sdb1
[    3.323657] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    3.331323] device-mapper: uevent: version 1.0.3
[    3.338547] usb-storage 1-1:1.0: USB Mass Storage device detected
[    3.345472] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    3.355514] scsi host2: usb-storage 1-1:1.0
[    3.361974] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.369427] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.376782] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.384275] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.391356] sdhci: Secure Digital Host Controller Interface driver
[    3.398609] sdhci: Copyright(c) Pierre Ossman
[    3.404316] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.417338] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.425788] hid: raw HID events driver (C) Jiri Kosina
[    3.433656] usbcore: registered new interface driver usbhid
[    3.440479] usbhid: USB HID core driver
[    3.445058] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
[    3.454078] NET: Registered PF_INET6 protocol family
[    3.461371] Segment Routing with IPv6
[    3.465758] RPL Segment Routing with IPv6
[    3.470629] In-situ OAM (IOAM) with IPv6
[    3.475379] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.483825] NET: Registered PF_PACKET protocol family
[    3.490669] 8021q: 802.1Q VLAN Support v1.8
[    3.495673] Key type dns_resolver registered
[    3.500892] ThumbEE CPU extension supported.
[    3.505892] Registering SWP/SWPB emulation handler
[    3.574308] registered taskstats version 1
[    3.580220] Loading compiled-in X.509 certificates
[    3.585928] Key type .fscrypt registered
[    3.591199] Key type fscrypt-provisioning registered
[    3.597079] Key type big_key registered
[    3.616760] Key type encrypted registered
[    3.626645] usb_phy_generic usb2_phy: dummy supplies not allowed for exclusive requests
[    3.639744] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    3.648705] clk: Disabling unused clocks
[    3.656282] Freeing unused kernel image (initmem) memory: 1024K
[    3.667767] Checked W+X mappings: passed, no W+X pages found
[    3.674205] Run /init as init process
[    3.678639]   with arguments:
[    3.678646]     /init
[    3.678651]   with environment:
[    3.678655]     HOME=/
[    3.678659]     TERM=linux
[    4.368948] scsi 2:0:0:0: Direct-Access      USB      SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[    4.393712] sd 2:0:0:0: [sdc] 240353280 512-byte logical blocks: (123 GB/115 GiB)
[    4.409972] sd 2:0:0:0: [sdc] Write Protect is off
[    4.415513] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[    4.420838] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.449166]  sdc: sdc1
[    4.454437] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    4.479337] usbcore: registered new interface driver uas
[    4.525770] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[    4.538949] mtdblock: MTD device 'env' is NAND, please consider using UBI block devices instead.
[    4.554545] mtdblock: MTD device 'config' is NAND, please consider using UBI block devices instead.
[    4.570151] mtdblock: MTD device 'kernel1' is NAND, please consider using UBI block devices instead.
[    4.583798] mtdblock: MTD device 'rootfs1' is NAND, please consider using UBI block devices instead.
[    4.599869] mtdblock: MTD device 'kernel2' is NAND, please consider using UBI block devices instead.
[    4.613109] mtdblock: MTD device 'rootfs2' is NAND, please consider using UBI block devices instead.
[   21.238564] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   26.632958] EXT4-fs (sda1): mounted filesystem 79fdc606-ae0a-4604-b965-f4b3aa465f9e ro with ordered data mode. Quota mode: none.
[   29.272144] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[   29.292525] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   29.305920] mtdblock: MTD device 'env' is NAND, please consider using UBI block devices instead.
[   29.335029] mtdblock: MTD device 'config' is NAND, please consider using UBI block devices instead.
[   29.362977] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   29.385380] mtdblock: MTD device 'kernel1' is NAND, please consider using UBI block devices instead.
[   29.414591] random: crng init done
[   29.435699] mtdblock: MTD device 'rootfs1' is NAND, please consider using UBI block devices instead.
[   29.447256] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   29.465715] mtdblock: MTD device 'kernel2' is NAND, please consider using UBI block devices instead.
[   29.489805] mtdblock: MTD device 'rootfs2' is NAND, please consider using UBI block devices instead.
[   31.000123] EXT4-fs (sda1): re-mounted 79fdc606-ae0a-4604-b965-f4b3aa465f9e r/w. Quota mode: none.
[   50.018619] EXT4-fs (sda2): mounted filesystem 1f86594b-b833-4e29-b6c5-8fbae09a1c4e r/w with ordered data mode. Quota mode: none.
[   50.635116] EXT4-fs (sdb1): mounted filesystem 6c41dbee-e89a-479d-9868-ee442d2704dd r/w with ordered data mode. Quota mode: none.
[   50.976225] Adding 2097148k swap on /swapfile.  Priority:-2 extents:48 across:72112848k FS
[   51.602719] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
[   51.615974] mvneta f1070000.ethernet eth0: configuring for phy/rgmii-id link mode
[   54.767647] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
root@debian:~#

cat /etc/ssh/sshd_config
#       $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

Port 2022
UseDNS no
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:

LoginGraceTime 1m
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile     .ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystem       sftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#       X11Forwarding no
#       AllowTcpForwarding no
#       PermitTTY no
#       ForceCommand cvs server



Edited 4 time(s). Last edit at 11/18/2023 08:15AM by raffe.
Re: Strange cyclic freezing with Zyxel NAS326
November 18, 2023 02:04PM
raffe,

1. In the later Debian version, fw_printenv/setenv were moved to a new package. So install it

apt-get install libubootenv-tool

2. Your dmesg log did not show the script /root/set_persistent_mac_address running at the end. Perhaps it is missing.

cat /root/set_persistent_mac_address

3. Are you connecting to these 2 boxes using a laptop (i.e Wifi)? I would also look at that aspect.

4. Have you tried to test with a brand new USB rootfs?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Strange cyclic freezing with Zyxel NAS326
November 19, 2023 10:04AM
The cat /root/set_persistent_mac_address

root@debian:~# cat /root/set_persistent_mac_address
#!/bin/bash
#
# set_persistent_mac_address
#
# Compare the MAC address in ifconfig with u-boot env ethaddr (persistent MAC for eth0) and reconfig MAC address  to ethaddr if necessary.
#
if [ `/usr/bin/fw_printenv ethaddr ` ]; then
        UBOOT_MACADDR=`/usr/bin/fw_printenv ethaddr |  cut -c9-25`
fi

if [ "$UBOOT_MACADDR" == "" ]; then
        logger -s -i "Cannot read u-boot env ethaddr"
        exit 0
fi

MY_MACADDR=`x=$(ifconfig eth0) && x=${x#*ether } && echo ${x%% *}`

if [ "${UBOOT_MACADDR^^}" == "${MY_MACADDR^^}" ]; then
        logger -s -i  "Persistent MAC address already set "$UBOOT_MACADDR
        exit 0
fi

echo "Setting Persistent MAC address to "$UBOOT_MACADDR > /dev/kmsg
/usr/bin/logger -s -i "Setting Persistent MAC address to "$UBOOT_MACADDR

ifdown eth0
ifconfig -v eth0 hw ether $UBOOT_MACADDR
ifup eth0

exit 0

I have connected both via cable and WiFi, no difference.

Quote
bodhi
Have you tried to test with a brand new USB rootfs?

I am starting to think that I need to try this. But first I have to make sure that I have backup of all stuff I will need to have after if this works.

What is the best way to test with a new USB rootfs? Just use a new USB drive and put the latest rootfs on it and boot? Now I just have uImage and uInitrd on the USB /boot/ and the rest of the rootfs is on the hard drive.
Re: Strange cyclic freezing with Zyxel NAS326
November 19, 2023 02:08PM
> What is the best way to test with a new USB
> rootfs? Just use a new USB drive and put the
> latest rootfs on it and boot?

Yes. You should remove the SATA drives for safe keeping. Boot with USB rootfs only, to eliminate the possibility of there is a problem in the network environment.

And if the USB rootfs runs OK, you'll know this problem is actually something in your current HDD rootfs.

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



Edited 1 time(s). Last edit at 11/19/2023 02:10PM by bodhi.
Re: Strange cyclic freezing with Zyxel NAS326
November 22, 2023 03:30AM
I did not have time to fix with a new USB before you released Linux Kernel 6.6.2.

So i tried to upgrade to 6.6.2 and now my problems are gone :-)
Re: Strange cyclic freezing with Zyxel NAS326
November 22, 2023 02:00PM
Cool!

-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: