Welcome! Log In Create A New Profile

Advanced

NSA325v2 bad crc error on uInitrd linux 5.11.4

Posted by buffosd35 
buffosd35
NSA325v2 bad crc error on uInitrd linux 5.11.4
May 17, 2021 08:30AM
Hello All,

I have nsa325 running with bodhi's debian 5.2.9 Kernel, update it to Kernel linux-5.11.4-kirkwood-tld-1 and got an "Bad Data CRC" on checksum of ramdisk image:

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 10 ... 9 ... 8 ... 7 ... 6 ... 5 ... 4 ... 3 ... 2 ... 1 ... 0 
Initializing devices...
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices...        scanning usb for storage devices... 3 USB Device(s) found

Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
143 bytes read in 569 ms (0 Bytes/s)
... envs loaded
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 507 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5350552 bytes read in 865 ms (5.9 MiB/s)
loading uInitrd ...
 (10.2 MiB/s)
13138823 bytes read in 1234 ms
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14014 bytes read in 738 ms (17.6 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.11.4-kirkwood-tld-1
   Created:      2021-05-17   8:36:09 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5350488 Bytes = 5.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.11.4-kirkwood-tld-1
   Created:      2021-05-17   8:36:29 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    13138759 Bytes = 12.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Error occured, error code = 12
Ramdisk image is corrupt or invalid
NSA325>

I tried the Kernel linux-5.9.12-kirkwood-tld-1 package too with the same result.

Here the complete boot list when booting Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi:

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 10 ... 9 ... 8 ... 7 ... 6 ... 5 ... 4 ... 3 ... 2 ... 1 ... 0 
Initializing devices...
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices...        scanning usb for storage devices... 3 USB Device(s) found

Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
143 bytes read in 569 ms (0 Bytes/s)
... envs loaded
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 507 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 868 ms (5.5 MiB/s)
loading uInitrd ...
 (8.7 MiB/s)
9789671 bytes read in 1079 ms
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14006 bytes read in 769 ms (17.6 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4963616 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9
   Created:      2021-05-16  13:20:17 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9789607 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Memory: 494600K/524288K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 29688K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	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] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000040][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000646][    T0] Console: colour dummy device 80x30
[    0.000689][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000711][    T0] pid_max: default: 32768 minimum: 301
[    0.001012][    T0] LSM: Security Framework initializing
[    0.001163][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001185][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001890][    T0] *** VALIDATE proc ***
[    0.002114][    T0] *** VALIDATE cgroup1 ***
[    0.002136][    T0] *** VALIDATE cgroup2 ***
[    0.002217][    T0] CPU: Testing write buffer coherency: ok
[    0.003683][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.003944][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.004184][    T1] rcu: Hierarchical SRCU implementation.
[    0.006821][    T1] devtmpfs: initialized
[    0.012288][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012315][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.012526][    T1] xor: measuring software checksum speed
[    0.110100][    T1]    arm4regs  :  1447.600 MB/sec
[    0.210060][    T1]    8regs     :   872.400 MB/sec
[    0.310061][    T1]    32regs    :  1268.400 MB/sec
[    0.310077][    T1] xor: using function: arm4regs (1447.600 MB/sec)
[    0.310093][    T1] prandom: seed boundary self test passed
[    0.313227][    T1] prandom: 100 self tests passed
[    0.313236][    T1] pinctrl core: initialized pinctrl subsystem
[    0.314471][    T1] NET: Registered protocol family 16
[    0.314906][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.315553][    T1] audit: initializing netlink subsys (disabled)
[    0.316588][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.316691][    T1] cpuidle: using governor ladder
[    0.316757][    T1] cpuidle: using governor menu
[    0.317227][    T1] Feroceon L2: Enabling L2
[    0.317268][    T1] Feroceon L2: Cache support initialised.
[    0.322069][    T1] No ATAGs?
[    2.560046][    C0] random: fast init done
[    4.743657][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    4.743936][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    4.920463][    T1] raid6: int32x8  gen()   171 MB/s
[    5.090144][    T1] raid6: int32x8  xor()   115 MB/s
[    5.260333][    T1] raid6: int32x4  gen()   173 MB/s
[    5.430160][    T1] raid6: int32x4  xor()   112 MB/s
[    5.600313][    T1] raid6: int32x2  gen()   178 MB/s
[    5.770049][    T1] raid6: int32x2  xor()   125 MB/s
[    5.940333][    T1] raid6: int32x1  gen()   134 MB/s
[    6.110339][    T1] raid6: int32x1  xor()    92 MB/s
[    6.110347][    T1] raid6: using algorithm int32x2 gen() 178 MB/s
[    6.110354][    T1] raid6: .... xor() 125 MB/s, rmw enabled
[    6.110361][    T1] raid6: using intx1 recovery algorithm
[    6.110581][    T1] vgaarb: loaded
[    6.110992][    T1] SCSI subsystem initialized
[    6.111403][    T1] usbcore: registered new interface driver usbfs
[    6.111452][    T1] usbcore: registered new interface driver hub
[    6.111519][    T1] usbcore: registered new device driver usb
[    6.111664][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.111673][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.111695][    T1] PTP clock support registered
[    6.112762][    T1] clocksource: Switched to clocksource orion_clocksource
[    6.886775][    T1] VFS: Disk quotas dquot_6.6.0
[    6.886859][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    6.894391][    T1] NET: Registered protocol family 2
[    6.895052][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    6.895084][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    6.895138][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    6.895190][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    6.895266][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    6.895290][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    6.895476][    T1] NET: Registered protocol family 1
[    6.896010][    T1] RPC: Registered named UNIX socket transport module.
[    6.896021][    T1] RPC: Registered udp transport module.
[    6.896027][    T1] RPC: Registered tcp transport module.
[    6.896034][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.896045][    T1] PCI: CLS 0 bytes, default 32
[    6.896240][    T1] Trying to unpack rootfs image as initramfs...
[    7.548420][    T1] Freeing initrd memory: 9564K
[    7.548591][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    7.549635][    T1] Initialise system trusted keyrings
[    7.549688][    T1] Key type blacklist registered
[    7.549881][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    7.549963][    T1] zbud: loaded
[    7.550846][    T1] NFS: Registering the id_resolver key type
[    7.550874][    T1] Key type id_resolver registered
[    7.550882][    T1] Key type id_legacy registered
[    7.550897][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.550911][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.551146][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  .. 2001-2006 Red Hat, Inc.
[    7.551333][    T1] fuse: init (API version 7.31)
[    7.551652][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.551801][    T1] orangefs_init: module version upstream loaded
[    7.551811][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    7.565518][    T1] async_tx: api initialized (async)
[    7.565538][    T1] Key type asymmetric registered
[    7.565546][    T1] Asymmetric key parser 'x509' registered
[    7.565609][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    7.566773][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.568309][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.568328][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.568340][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.568351][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    7.568455][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    7.568488][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.569685][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.569707][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.569866][    T1] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[    7.569914][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[    7.570055][    T1] pci 0000:01:00.0: PME# supported from D0 D3hot
[    7.570123][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    7.593863][    T1] PCI: bus1: Fast back to back transfers disabled
[    7.593885][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.594043][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    7.594057][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    7.594073][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    7.594094][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.594108][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    7.594201][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    7.594268][    T1] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    7.594732][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.653409][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.654962][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.713375][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.715185][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.716227][    T1] printk: console [ttyS0] disabled
[    7.716291][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.629333][    T1] printk: console [ttyS0] enabled
[    8.640133][    T1] loop: module loaded
[    8.644513][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.652233][    T1] scsi host0: sata_mv
[    8.656582][    T1] scsi host1: sata_mv
[    8.660664][    T1] ata1: SATA max UDMA/133 irq 32
[    8.665525][    T1] ata2: SATA max UDMA/133 irq 32
[    8.671158][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    8.678341][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[    8.683348][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.691654][    T1] Scanning device for bad blocks
[    8.696547][    T1] 4 cmdlinepart partitions found on MTD device orion_nand
[    8.703555][    T1] Creating 4 MTD partitions on "orion_nand":
[    8.709413][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    8.716155][    T1] 0x000000100000-0x000000500000 : "uImage"
[    8.722847][    T1] 0x000000500000-0x000002500000 : "rootfs"
[    8.729577][    T1] 0x000002500000-0x000008000000 : "data"
[    8.737213][    T1] libphy: Fixed MDIO Bus: probed
[    8.742665][    T1] libphy: orion_mdio_bus: probed
[    8.758974][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.766968][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    8.774364][    T1] mv643xx_eth: Set the PHY to fix link down
[    8.775062][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx
[    8.790469][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.797789][    T1] ehci-pci: EHCI PCI platform driver
[    8.803032][    T1] ehci-orion: EHCI orion driver
[    8.807915][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.814201][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.822715][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.852788][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.859740][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.868764][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.876727][    T1] usb usb1: Product: EHCI Host Controller
[    8.882327][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    8.889684][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.895607][    T1] hub 1-0:1.0: USB hub found
[    8.900102][    T1] hub 1-0:1.0: 1 port detected
[    8.905421][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.911427][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.919878][    T1] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x0000000000000004
[    8.930114][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.939151][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.947131][    T1] usb usb2: Product: xHCI Host Controller
[    8.952744][    T1] usb usb2: Manufacturer: Linux 5.2.9-kirkwood-tld-1 xhci-hcd
[    8.960112][    T1] usb usb2: SerialNumber: 0000:01:00.0
[    8.965909][    T1] hub 2-0:1.0: USB hub found
[    8.970405][    T1] hub 2-0:1.0: 2 ports detected
[    8.975628][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.981618][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    8.989810][    T1] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    8.996916][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.005781][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[    9.012152][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    9.021264][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.029340][    T1] usb usb3: Product: xHCI Host Controller
[    9.034970][    T1] usb usb3: Manufacturer: Linux 5.2.9-kirkwood-tld-1 xhci-hcd
[    9.042312][    T1] usb usb3: SerialNumber: 0000:01:00.0
[    9.048135][    T1] hub 3-0:1.0: USB hub found
[    9.052634][    T1] hub 3-0:1.0: 2 ports detected
[    9.057992][    T1] usbcore: registered new interface driver usb-storage
[    9.065060][    T1] mousedev: PS/2 mouse device common for all mice
[    9.071590][    T1] i2c /dev entries driver
[    9.082161][    T1] rtc-pcf8563 0-0051: registered as rtc0
[    9.089351][    T1] device-mapper: uevent: version 1.0.3
[    9.094976][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    9.104505][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    9.111757][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    9.119155][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.126750][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.133596][    T1] device-mapper: raid: Loading target version 1.14.0
[    9.141782][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    9.148204][    T1] drop_monitor: Initializing network drop monitor service
[    9.155461][    T1] NET: Registered protocol family 17
[    9.160832][    T1] Key type dns_resolver registered
[    9.166842][    T1] registered taskstats version 1
[    9.171655][    T1] Loading compiled-in X.509 certificates
[    9.177263][    T1] zswap: loaded using pool lzo/zbud
[    9.255373][    T1] Key type big_key registered
[    9.272856][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.301415][    T1] Key type encrypted registered
[    9.309097][    T1] rtc-pcf8563 0-0051: setting system clock to 2021-05-17T09:16:46 UTC (1621243006)
[    9.363915][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[    9.383178][    T1] Freeing unused kernel memory: 1024K
[    9.388901][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.395303][    T1] Run /init as init process
[    9.484744][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    9.502873][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.510745][   T15] usb 1-1: Product: USB2.0 Hub
[    9.529558][   T15] hub 1-1:1.0: USB hub found
[    9.553256][   T15] hub 1-1:1.0: 4 ports detected
[    9.882843][   T15] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   10.041619][  T161] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   10.053981][   T15] usb 1-1.2: New USB device found, idVendor=0781, idProduct=556c, bcdDevice= 1.26
[   10.073750][   T15] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.081815][   T15] usb 1-1.2: Product: Ultra
[   10.098264][   T15] usb 1-1.2: Manufacturer: SanDisk
[   10.108697][   T15] usb 1-1.2: SerialNumber: 20044323011670807CA3
[   10.121928][   T15] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   10.142065][   T15] scsi host2: usb-storage 1-1.2:1.0
[   10.454851][  T161] usbcore: registered new interface driver uas
[   10.522577][  T177] netpoll: netconsole: local port 6666
[   10.528006][  T177] netpoll: netconsole: local IPv4 address 192.168.xxx.yyy
[   10.538175][  T177] netpoll: netconsole: interface 'eth0'
[   10.543642][  T177] netpoll: netconsole: remote port 6666
[   10.549068][  T177] netpoll: netconsole: remote IPv4 address 192.168.xxx.yyy
[   10.556183][  T177] netpoll: netconsole: remote ethernet address ff:ff:ff:ff:ff:ff
[   10.563804][  T177] netpoll: netconsole: device eth0 not up yet, forcing it
[   10.573218][  T177] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   11.203682][    T7] scsi 2:0:0:0: Direct-Access     SanDisk  Ultra            1.26 PQ: 0 ANSI: 5
[   11.223898][   T23] sd 2:0:0:0: [sda] 62530624 512-byte logical blocks: (32.0 GB/29.8 GiB)
[   11.237276][   T23] sd 2:0:0:0: [sda] Write Protect is off
[   11.243631][   T23] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   11.260211][   T23]  sda: sda1
[   11.275253][   T23] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   13.666724][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   15.342165][  T177] printk: console [netcon0] enabled
[   15.347283][  T177] netconsole: network logging started
[   25.603665][  T195] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   25.759611][  T195] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   27.003044][    T1] systemd[1]: Inserted module 'autofs4'
[   27.055958][    T1] NET: Registered protocol family 10
[   27.062392][    T1] Segment Routing with IPv6
[   27.107726][    T1] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[   27.136534][    T1] systemd[1]: Detected architecture arm.
[   27.174475][    T1] systemd[1]: Set hostname to <debian.fritz.box>.
[   28.535101][  T224] random: lvmconfig: uninitialized urandom read (4 bytes read)
[   28.886996][    C0] random: crng init done
[   28.919130][    T1] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[   28.937190][    T1] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[   29.285477][    T1] systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid ... /run/samba/smbd.pid; please update the unit file accordingly.
[   29.343380][    T1] systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid ... /run/samba/nmbd.pid; please update the unit file accordingly.
[   29.465322][    T1] systemd[1]: /lib/systemd/system/rpc-statd.service:13: PIDFile= references path below legacy directory /var/run/, updating /var/run/rpc.statd.pid ... /run/rpc.statd.pid; please update the unit file accordingly.
[   29.574088][    T1] systemd[1]: Listening on initctl Compatibility Named Pipe.
[   29.613587][    T1] systemd[1]: Listening on LVM2 poll daemon socket.
[   30.613319][  T238] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   31.816777][  T237] systemd-journald[237]: Received request to flush runtime journal from PID 1
[   34.108633][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[   34.116857][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   34.128116][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   34.181310][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[   34.196322][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   34.208329][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   35.738538][  T326] marvell-cesa f1030000.crypto: CESA device successfully registered
[   35.814461][  T274] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   35.978830][  T275] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   36.020016][  T274] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   36.241401][  T274] orion_wdt: Initial timeout 21 sec
[   40.015136][  T413] NFSD: Using UMH upcall client tracking operations.
[   40.062935][  T413] NFSD: starting 90-second grace period (net f000001c)
[  122.830624][  T700] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)


If anyone can help, I will be pleased.

Thanks to all involved in this nice project!

buffosd35
Re: NSA325v2 bad crc error on uInitrd linux 5.11.4
May 17, 2021 04:19PM
buffosd35,

Try using the old uInird from the rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

Mount the USB rootfs on another Linux box (any Linux box or VM is OK). Assuming it is mounted at /media/sdb1.

cd /media/sdb1/boot


If you have save it in /boot, then copy that to replace the current uInitrd.

If you did not save it in /boot, then you can regenerate it

mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.2.9-kirkwood-tld-1 -d initrd.img-5.2.9-kirkwood-tld-1 uInitrd

And then later after booting successful, in the NSA325:

cd /boot 
cp -a uInitrd uInitrd.5.2.9
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.11.4-kirkwood-tld-1 -d initrd.img-5.11.4-kirkwood-tld-1 uInitrd

-bodhi
===========================
Forum Wiki
bodhi's corner
Hi bodhi,

thanks for your reply and your work all the years.
Please forgive me but I believe your tip will not help. The source initrd.img-5.11.4-kirkwood-tld-1 has a too big size already for to fit in my system flash. I assume this will be the cause of the problem.

Well, yesterday in late evening when searching and searching for a solution, I found a hint in this topic "https://forum.doozan.com/read.php?2,100879,100879#msg-100879";. Not exact knowing if there are some disadvantages I tried it and the system is booting. The file size of initrd.img-5.11.4-kirkwood-tld-1 shrinks off of 12,5 MB to 7.7 MB and so the resulting uInitrd with it.

In this case the topic can be closed.

Thanks again bodhi.

buffosd35
Re: NSA325v2 bad crc error on uInitrd linux 5.11.4
May 18, 2021 04:19AM
buffosd35,

Glad you got it booting!

But I think it was a wrong diagnosis. Here are 3 reasons:

1. You are running wiht the new u-boot. And this u-boot has no size limitation for uImage and uInitrd.

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

2. You are booting with USB rootfs, so the flash size does not come in to play at all.

3. The CRC error usually occurs when the kernel file was corrupted. For example, if we forget to do a sync after installing the kernel, and reboot immediately, it could be corrupted. So just by regenerating it, that image was self-corrected.

In the future, you might want to try to boot with the full size uInitrd again to see if it works.

-bodhi
===========================
Forum Wiki
bodhi's corner
Bodhi,

sorry I am not an expert as you. Lucky to have found a solution it was my unaware opinion.

So I will give your advice a try and come back with my experience when done.

buffosd35
bodhi and all interested,


at first my program and system description (in installation order):
Quote
U-Boot 2017
Debian 5.2.9
OpenMediaVault v5
Kernel 5.11.4



after many tries with different test cases and several hours, I can't get the system booting. Always a 'BAD DATA CRC' error.

At least I found that the error occured after the installation of OpenMediaVault, though OMV is running well.
The solution for me is to create the file /etc/initramfs-tools/conf.d/custom.conf with the following content

Quote
cat /etc/initramfs-tools/conf.d/custom.conf
MODULES=dep


and every update-initramfs will leave a booting system.
My knowledge is not good enough to figure out the reason for this but I am happy, that I have an nearly uptodate debian and samba system.
The lack of Zyxel's Web-GUI is fully compensated by OMV for me, though the extra plugins can't be installed on armel and I have to install the music server (minidlna) by hand.

Keep healthy

buffosd35
Re: NSA325v2 bad crc error on uInitrd linux 5.11.4
May 24, 2021 04:38PM
buffosd35,

> At least I found that the error occured after the
> installation of OpenMediaVault, though OMV is
> running well.

Your observation OMV is right on. It might be the indirect cause for this problem.

> The solution for me is to create the file
> /etc/initramfs-tools/conf.d/custom.conf with the
> following content
>
>
Quote
cat
> /etc/initramfs-tools/conf.d/custom.conf
> MODULES=dep

>
>
>
> and every update-initramfs will leave a booting
> system.

Cool!

It is odd that OMV could mess up the initramfs, though.

For future references, my NSA325v2 does not have OMV installed, and I've never seen this problem.

HomeBackup
192.168.0.227  
ZyXEL NSA325
Linux version 5.12.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat May 22 16:43:11 PDT 2021
Debian 10.0
uboot_version=U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
Netconsole is enable
--- System Stats:
CPU Temperature 41 C
Fanspeed 1153 RPM
/dev/sda: ST4000DM000-1F2168: 35°C SMART check: PASSED
/dev/sdb: SanDisk:  drive supported, but it doesn't have a temperature sensor.
SMART check:
              total        used        free      shared  buff/cache   available
Mem:          490Mi        22Mi       158Mi       0.0Ki       309Mi       403Mi
Swap:         1.0Gi        19Mi       1.0Gi

Kernel:
uImage: 5.2M
uInitrd: 9.9M

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v2 bad crc error on uInitrd linux 5.11.4
May 24, 2021 05:22PM
buffosd35,

If you are interested in this subject further, you might want to upgrade the Debian version to the latest version of Buster to see if it will help OMV behaves better.

However, keep in mind that OMV has some quirks that using Debian later version might even make it worse. So to be safe, bacck up the rootfs first.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v2 bad crc error on uInitrd linux 5.11.4
June 07, 2021 12:07PM
buffosd35 Wrote:
-------------------------------------------------------
> Hello All,
>
> I have nsa325 running with bodhi's debian 5.2.9
> Kernel, update it to Kernel
> linux-5.11.4-kirkwood-tld-1 and got an "Bad Data
> CRC" on checksum of ramdisk image:
>
>
> U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03
> -0700)
> ZyXEL NSA325 2-Bay Power Media Server
> gcc (Debian 6.3.0-18) 6.3.0 20170516
> GNU ld (GNU Binutils for Debian) 2.28
> Hit any key to stop autoboot: 10 ... 9 ... 8 ... 7
> ... 6 ... 5 ... 4 ... 3 ... 2 ... 1 ... 0 
> Initializing devices...
> starting USB...
> USB0:   USB EHCI 1.00
> scanning bus 0 for devices...        scanning usb
> for storage devices... 3 USB Device(s) found
> 
> Use USB retry period from the environment: 15
> second(s)
> 1 Storage Device(s) found
> 
> Reset IDE: ide_preinit failed
> Unknown command 'mmc' - try 'help'
> Loading envs from usb 0...
> 143 bytes read in 569 ms (0 Bytes/s)
> ... envs loaded
> importing envs ...
> running scan_disk ...
> Scan device usb
> device usb 0:1
> 1 bytes read in 507 ms (0 Bytes/s)
> Found bootable drive on usb 0
> loading uImage ...
> 5350552 bytes read in 865 ms (5.9 MiB/s)
> loading uInitrd ...
>  (10.2 MiB/s)
> 13138823 bytes read in 1234 ms
> loading DTB /boot/dts/kirkwood-nsa325.dtb ...
> 14014 bytes read in 738 ms (17.6 KiB/s)
> ## Booting kernel from Legacy Image at 00800000
> ...
>    Image Name:   Linux-5.11.4-kirkwood-tld-1
>    Created:      2021-05-17   8:36:09 UTC
>    Image Type:   ARM Linux Kernel Image
> (uncompressed)
>    Data Size:    5350488 Bytes = 5.1 MiB
>    Load Address: 00008000
>    Entry Point:  00008000
>    Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at
> 01100000 ...
>    Image Name:   initramfs-5.11.4-kirkwood-tld-1
>    Created:      2021-05-17   8:36:29 UTC
>    Image Type:   ARM Linux RAMDisk Image (gzip
> compressed)
>    Data Size:    13138759 Bytes = 12.5 MiB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... Bad Data CRC
> Error occured, error code = 12
> Ramdisk image is corrupt or invalid
> NSA325> 
>
>
> [...]
>
> If anyone can help, I will be pleased.
>
> Thanks to all involved in this nice project!
>
> buffosd35


Hello buffosd35,

I had the same problem when installing OMV5 on Debian Buster.
The problem lays in the load address of the .dtb file.
The default load addresses config from bodhi's uBoot is not good anymore if the uInitrd image file size becomes bigger than 11.534.336 Byte.
If you check your uBoot logs, you see that is slightly bigger

> Data Size: 13138759 Bytes = 12.5 MiB

Following are the uBoot settings from bodhi's configuration:
Variable		Load Address			Allowed Max size
load_uimage_addr	0x0800000			9.437.184 Byte
load_initrd_addr	0x1100000			11.534.336 Byte
load_dtb_addr		0x1c00000			--

When the .dtb file is loaded after initrd, it overwrites in memory the latter resulting then in BAD CRC.

Solution is to move ahead in the volatile memory the .dtb file. Something like the following will give you up to 15.728.640 Byte for your initramfs:
load_dtb_addr		0x2000000			--
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: