Re: Bricked NSA320S during 2017.07 flash
March 07, 2021 04:50PM
mervin,

Your envs look OK. Except for these 2 envs:

This is not original
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
And this is an extra env, remove it to avoid confusion
usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi


So I would suggest you do it step by step get the box running cleanly.

1. With only the USB rootfs plugged in. Power up, interrupt serial console and

setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params'
setenv usb_boot

Boot all the way into Debian and then, do

fdisk -l
fw_printenv
If there was no error in the above, then

fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params'
fw_setenv usb_boot

And then reboot and let the box boot with interrupting it. Once you can reboot a few times, the we know all is well.

2. After Step 1 above was done OK. Shutdown the box and insert the HDD into slot 1.

Boot and verify that the HDD can be access. And dont do step 3 below yet until you can see the HDD 1 is functioning well. IOW, try to copy some large files from the USB rootfs to the HDD... so on.

3. And then shutdown and insert the 2nd HDD into 2nd slot.

Boot and verify that both HDD are OK.

At this point, the issue with the 3.5" HDD in the 2nd slot, if it is still an issue, we can fix it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
March 09, 2021 12:19PM
Hi

I get error in step 1. here is full bootlog

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

SoC:   Kirkwood 88F6702_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
NSA3x0S> printenv
arcNumber=4931
baudrate=115200
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
bootcmd=run init_sata_power; run bootcmd_uenv; run scan_disk; run set_bootargs;
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boose if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $l
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa320s.dtb
ethact=egiga0
ethaddr=4c:9e:ff:0b:73:72
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_sata_power=mw.l f1010104 c70e0ffd
init_usb=usb start
ipaddr=192.168.100.11
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $d
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /b
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /bo
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x8000
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; ; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $dis
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.100.127
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
start_netconsole=setenv ncip; setenv bootdelay 10; setenv stdin nc; setenv stdou
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  se
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknu
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_re
usb_ready_retry=15

Environment size: 3251/131068 bytes
NSA3x0S> boot
  boot bootd bootefi bootelf bootm bootp bootvx bootz
NSA3x0S> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            30717952        00057363-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
78 bytes read in 538 ms (0 Bytes/s)

no IDE devices available
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 508 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5524320 bytes read in 776 ms (6.8 MiB/s)
loading uInitrd ...
9484105 bytes read in 734 ms (12.3 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...
12586 bytes read in 1461 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:58:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5524256 Bytes = 5.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:59:13 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9484041 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f200000, end 0fb0b709 ... OK
   Loading Device Tree to 0f1f9000, end 0f1ff129 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.8.3-kirkwood-tld-1 (root@tldDebian) (gcc
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320S
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000f
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=root0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 by
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232740K/262144K available (10240K kernel code, 10
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay i
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycl
[    0.000011][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps eve
[    0.000063][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000999][    T0] Console: colour dummy device 80x30
[    0.001064][    T0] Calibrating delay loop (skipped), value calculated using
[    0.001095][    T0] pid_max: default: 32768 minimum: 301
[    0.001595][    T0] LSM: Security Framework initializing
[    0.001771][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 byte
[    0.001806][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
[    0.003348][    T0] CPU: Testing write buffer coherency: ok
[    0.005401][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005770][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006121][    T1] rcu: Hierarchical SRCU implementation.
[    0.009413][    T1] devtmpfs: initialized
[    0.017702][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffff
[    0.017746][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, lin
[    0.018088][    T1] xor: measuring software checksum speed
[    0.110149][    T1]    arm4regs  :   902.000 MB/sec
[    0.210101][    T1]    8regs     :   541.600 MB/sec
[    0.310097][    T1]    32regs    :   787.200 MB/sec
[    0.310121][    T1] xor: using function: arm4regs (902.000 MB/sec)
[    0.310149][    T1] prandom: seed boundary self test passed
[    0.315189][    T1] prandom: 100 self tests passed
[    0.315205][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316274][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.317075][    T1] NET: Registered protocol family 16
[    0.318096][    T1] DMA: preallocated 256 KiB pool for atomic coherent alloca
[    0.319182][    T1] audit: initializing netlink subsys (disabled)
[    0.321006][   T16] audit: type=2000 audit(0.310:1): state=initialized audit_
[    0.321158][    T1] cpuidle: using governor ladder
[    0.321254][    T1] cpuidle: using governor menu
[    0.322089][    T1] Feroceon L2: Enabling L2
[    0.322143][    T1] Feroceon L2: Cache support initialised.
[    0.335233][    T1] No ATAGs?
[    2.560069][    C0] random: fast init done
[    6.420210][    T1] raid6: int32x8  gen()    93 MB/s
[    6.590101][    T1] raid6: int32x8  xor()    58 MB/s
[    6.760278][    T1] raid6: int32x4  gen()    95 MB/s
[    6.930156][    T1] raid6: int32x4  xor()    61 MB/s
[    7.100191][    T1] raid6: int32x2  gen()   124 MB/s
[    7.270076][    T1] raid6: int32x2  xor()    75 MB/s
[    7.440259][    T1] raid6: int32x1  gen()    93 MB/s
[    7.610212][    T1] raid6: int32x1  xor()    54 MB/s
[    7.610225][    T1] raid6: using algorithm int32x2 gen() 124 MB/s
[    7.610236][    T1] raid6: .... xor() 75 MB/s, rmw enabled
[    7.610247][    T1] raid6: using intx1 recovery algorithm
[    7.610555][    T1] vgaarb: loaded
[    7.611212][    T1] SCSI subsystem initialized
[    7.611801][    T1] usbcore: registered new interface driver usbfs
[    7.611878][    T1] usbcore: registered new interface driver hub
[    7.611976][    T1] usbcore: registered new device driver usb
[    7.612203][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.612218][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodol
[    7.612249][    T1] PTP clock support registered
[    7.614298][    T1] clocksource: Switched to clocksource orion_clocksource
[    9.396470][    T1] VFS: Disk quotas dquot_6.6.0
[    9.396588][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096
[    9.408535][    T1] NET: Registered protocol family 2
[    9.409561][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order:
[    9.409608][    T1] TCP established hash table entries: 2048 (order: 1, 8192
[    9.409653][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes,
[    9.409690][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    9.410198][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear
[    9.410240][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, l
[    9.410504][    T1] NET: Registered protocol family 1
[    9.411278][    T1] RPC: Registered named UNIX socket transport module.
[    9.411294][    T1] RPC: Registered udp transport module.
[    9.411304][    T1] RPC: Registered tcp transport module.
[    9.411315][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.411332][    T1] PCI: CLS 0 bytes, default 32
[    9.411706][    T1] Trying to unpack rootfs image as initramfs...
[   10.390081][    T1] Freeing initrd memory: 9264K
[   10.390532][    T1] NetWinder Floating Point Emulator V0.97 (double precision
[   10.402536][    T1] Initialise system trusted keyrings
[   10.402603][    T1] Key type blacklist registered
[   10.402852][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   10.402977][    T1] zbud: loaded
[   10.404717][    T1] NFS: Registering the id_resolver key type
[   10.404755][    T1] Key type id_resolver registered
[   10.404767][    T1] Key type id_legacy registered
[   10.404793][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering
[   10.404813][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.405137][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat
[   10.405651][    T1] fuse: init (API version 7.31)
[   10.406146][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.406399][    T1] orangefs_init: module version upstream loaded
[   10.406415][    T1] SGI XFS with ACLs, security attributes, realtime, scrub,
[   10.528829][    T1] async_tx: api initialized (async)
[   10.528857][    T1] Key type asymmetric registered
[   10.528870][    T1] Asymmetric key parser 'x509' registered
[   10.528936][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded
[   10.529155][    T1] io scheduler bfq registered
[   10.768544][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinc
[   10.770964][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge t
[   10.770992][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.771011][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefff
[   10.771028][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.771176][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.771225][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pr
[   10.772905][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.772938][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-0
[   10.774533][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.774565][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to
[   10.774814][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe0000
[   10.774837][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.775545][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.835537][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor
[   10.838683][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.895491][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor
[   10.898939][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.900525][    T1] printk: console [ttyS0] disabled
[   10.900629][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base
[   11.792377][    T1] printk: console [ttyS0] enabled
[   11.806797][    T1] loop: module loaded
[   11.811309][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.820883][    T1] scsi host0: sata_mv
[   11.825443][    T1] scsi host1: sata_mv
[   11.829569][    T1] ata1: SATA max UDMA/133 irq 32
[   11.834442][    T1] ata2: SATA max UDMA/133 irq 32
[   11.840349][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[   11.847506][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[   11.852455][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048,
[   11.860755][    T1] Scanning device for bad blocks
[   11.870680][    T1] Bad eraseblock 100 at 0x000000c80000
[   11.881093][    T1] Bad eraseblock 200 at 0x000001900000
[   11.928251][    T1] 9 fixed-partitions partitions found on MTD device orion_n
[   11.935638][    T1] Creating 9 MTD partitions on "orion_nand":
[   11.941461][    T1] 0x000000000000-0x000000100000 : "uboot"
[   11.948793][    T1] 0x000000100000-0x000000180000 : "uboot_env"
[   11.956356][    T1] 0x000000180000-0x000000200000 : "key_store"
[   11.963867][    T1] 0x000000200000-0x000000280000 : "info"
[   11.970992][    T1] 0x000000280000-0x000000c80000 : "etc"
[   11.978116][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[   11.985628][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[   11.993206][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[   12.000751][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[   12.008876][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com
[   12.017421][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Ja
[   12.029347][    T1] libphy: Fixed MDIO Bus: probed
[   12.035590][    T1] libphy: orion_mdio_bus: probed
[   12.040396][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-ph
[   12.070900][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version
[   12.079898][    T1] mv643xx_eth: Set the PHY to fix link down
[   12.080890][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC
[   12.096429][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Drive
[   12.103701][    T1] ehci-pci: EHCI PCI platform driver
[   12.109030][    T1] ehci-orion: EHCI orion driver
[   12.113990][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.120282][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigne
[   12.128873][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.164327][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.171386][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=
[   12.180367][   T89] ata1: SATA link down (SStatus 0 SControl F300)
[   12.186557][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, Seria
[   12.194534][    T1] usb usb1: Product: EHCI Host Controller
[   12.200087][    T1] usb usb1: Manufacturer: Linux 5.8.3-kirkwood-tld-1 ehci_h
[   12.207530][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.213723][    T1] hub 1-0:1.0: USB hub found
[   12.218265][    T1] hub 1-0:1.0: 1 port detected
[   12.223704][    T1] usbcore: registered new interface driver usb-storage
[   12.230909][    T1] mousedev: PS/2 mouse device common for all mice
[   12.237569][    T1] i2c /dev entries driver
[   12.244473][    T1] ht1382 0-0068: registered as rtc0
[   12.250584][    T1] ht1382 0-0068: setting system clock to 2021-03-09T17:51:2
[   12.260367][    T1] device-mapper: uevent: version 1.0.3
[   12.266041][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialis
[   12.275744][    T1] device-mapper: multipath round-robin: version 1.2.0 loade
[   12.282941][    T1] device-mapper: multipath queue-length: version 0.2.0 load
[   12.290300][    T1] device-mapper: multipath service-time: version 0.3.0 load
[   12.297719][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.304513][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.313608][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.319919][    T1] drop_monitor: Initializing network drop monitor service
[   12.327565][    T1] NET: Registered protocol family 10
[   12.334118][    T1] Segment Routing with IPv6
[   12.338537][    T1] RPL Segment Routing with IPv6
[   12.343320][    T1] NET: Registered protocol family 17
[   12.348729][    T1] Key type dns_resolver registered
[   12.354516][    T1] registered taskstats version 1
[   12.359295][    T1] Loading compiled-in X.509 certificates
[   12.364949][    T1] zswap: loaded using pool lzo/zbud
[   12.370397][    T1] Key type ._fscrypt registered
[   12.375177][    T1] Key type .fscrypt registered
[   12.379777][    T1] Key type fscrypt-provisioning registered
[   12.387558][    T1] Key type big_key registered
[   12.427018][    T1] Key type encrypted registered
[   12.538322][   T91] ata2: SATA link down (SStatus 0 SControl F300)
[   12.557647][    T1] Freeing unused kernel memory: 1024K
[   12.563865][    T1] Checked W+X mappings: passed, no W+X pages found
[   12.570253][    T1] Run /init as init process
[   12.584417][  T100] usb 1-1: new high-speed USB device number 2 using orion-e
Loading, please wait...
Starting version 241
[   12.786272][  T100] usb 1-1: New USB device found, idVendor=05e3, idProduct=0
[   12.804411][  T100] usb 1-1: New USB device strings: Mfr=0, Product=1, Serial
[   12.812214][  T100] usb 1-1: Product: USB2.0 Hub
[   12.843914][  T100] hub 1-1:1.0: USB hub found
[   12.854595][  T100] hub 1-1:1.0: 4 ports detected
[   13.184402][  T100] usb 1-1.1: new high-speed USB device number 3 using orion
[   13.518539][  T100] usb 1-1.1: New USB device found, idVendor=0951, idProduct
[   13.544525][  T100] usb 1-1.1: New USB device strings: Mfr=1, Product=2, Seri
[   13.552528][  T100] usb 1-1.1: Product: DataTraveler 2.0
[   13.582603][  T100] usb 1-1.1: Manufacturer: Kingston
[   13.595530][  T100] usb 1-1.1: SerialNumber: 00241D8CE55DBE50595760E4
[   13.619576][  T100] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   13.649129][  T100] scsi host2: usb-storage 1-1.1:1.0
[   14.012072][  T129] usbcore: registered new interface driver uas
[   15.211874][   T58] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 2.0
[   15.227451][    T7] sd 2:0:0:0: [sda] 30720000 512-byte logical blocks: (15.7
[   15.242564][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   15.249291][    T7] sd 2:0:0:0: [sda] No Caching mode page found
[   15.255354][    T7] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   15.270540][    T7]  sda: sda1
[   15.288565][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   26.606594][  T152] process '/usr/bin/fstype' started with executable stack
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext4 (1) -- /dev/sda1] fsck.ext4 -a -C0 /dev/sda1
rootfs: clean, 26084/960992 files, 429236/3839744 blocks
done.
[   32.907829][  T161] EXT4-fs (sda1): mounted filesystem with ordered data mode
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   37.250687][  T349] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   37.737729][  T368] systemd-udevd[368]: Using default interface naming scheme 'v240'.
[   37.873376][  T368] systemd-udevd[368]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   37.941186][  T377] orion_wdt: Initial timeout 25 sec
[   38.405027][    C0] random: crng init done
[   38.426368][  T356] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   38.543361][  T350] marvell-cesa f1030000.crypto: CESA device successfully registered
[   38.719835][  T349] systemd-udevd[349]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   41.272971][  T575] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/4c:9e:ff:0b:73:72
Sending on   LPF/eth0/4c:9e:ff:0b:73:72
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[   46.229486][ T1099] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   48.081256][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   48.098548][  T100] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPOFFER of 192.168.100.11 from 192.168.100.100
DHCPREQUEST for 192.168.100.11 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.100.11 from 192.168.100.100
invoke-rc.d: could not determine current runlevel
Reloading /etc/samba/smb.conf: smbd.
bound to 192.168.100.11 -- renewal in 532171319 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[....] Setting sensors limits...No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
done.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1363 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1390 (klogd)
. ok
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting a multimedia keyboard daemon for Linux : esekeydESE Key Deamon 1.2.7 (SVN-r63)
Segmentation fault
 failed!
[ ok ] Starting MTA: exim4.
[warn] Not starting fancontrol; run pwmconfig first. ... (warning).
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NetBIOS name server: nmbd.
[ ok ] Starting NTP server: ntpd.
[....] Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmon[warn ... (warning).
[ ok ] Starting SMB/CIFS daemon: smbd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).
[FAIL] startpar: service(s) returned failure: esekeyd ... failed!

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password:
Last login: Tue Mar  9 18:49:20 CET 2021 on ttyS0
Linux debian 5.8.3-kirkwood-tld-1 #1.0 PREEMPT Sat Aug 22 16:10:01 PDT 2020 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# fdisk -l
Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 512 KiB, 524288 bytes, 1024 se[  121.613805][ T2080] __nand_correct_data: uncorrectable ECC error
ctors
Units[  121.620326][ T2080] __nand_correct_data: uncorrectable ECC error
: sectors of 1 *[  121.628071][ T2080] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
 512 = 512 bytes[  121.640776][ T2080] __nand_correct_data: uncorrectable ECC error

Sector size (l[  121.647956][ T2080] __nand_correct_data: uncorrectable ECC error
ogical/physical)[  121.655339][ T2080] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
: 512 bytes / 51[  121.667737][ T2080] Buffer I/O error on dev mtdblock5, logical block 0, async page read
2 bytes
I/O siz[  121.677314][ T2080] __nand_correct_data: uncorrectable ECC error
e (minimum/optim[  121.684257][ T2080] __nand_correct_data: uncorrectable ECC error
al): 512 bytes /[  121.691954][ T2080] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
 512 bytes


[  121.704257][ T2080] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Disk /dev/mtdblock2: 512 KiB, 524288 bytes, 1024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock3: 512 KiB, 524288 bytes, 1024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock4: 10 MiB, 10485760 bytes, 20480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes




Disk /dev/mtdblock6: 47.8 MiB, 50069504 bytes, 97792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock7: 10 MiB, 10485760 bytes, 20480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock8: 47.8 MiB, 50069504 bytes, 97792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 14.7 GiB, 15728640000 bytes, 30720000 sectors
Disk model: DataTraveler 2.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00057363

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1        2048 30719999 30717952 14.7G 83 Linux
root@debian:~# fw_printenv
arcNumber=4931
baudrate=115200
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
bootcmd=run init_sata_power; run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec;
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa320s.dtb
ethact=egiga0
ethaddr=4c:9e:ff:0b:73:72
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_sata_power=mw.l f1010104 c70e0ffd
init_usb=usb start
ipaddr=192.168.100.11
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.100.127
start_netconsole=setenv ncip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
root@debian:~#

Re: Bricked NSA320S during 2017.07 flash
March 09, 2021 07:21PM
mervin,

The error is not important. It is on mtd5 (where stock kernel is).

The fact that you can do fw_printenv without problem is all you care running Debian. We only need mtd0 (u-boot) and mtd1 (u-boot-env) to be OK.

So go ahead and do Step 2.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
March 10, 2021 04:24PM
Hi

I'll tried all 3 usb ports but I got same error no rootfs. In case it need to be inserted into first usb port.
NSA3x0S> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
NSA3x0S> usb tree
USB device tree:
  1  Hub (480 Mb/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  +-2  Hub (480 Mb/s, 100mA)
    |   USB2.0 Hub
    |
    +-3  Mass Storage (480 Mb/s, 200mA)
         Kingston DataTraveler 2.0 00241D8CE55DBE50595760E4

NSA3x0S> usb info
1: Hub,  USB Revision 2.0
 - u-boot EHCI Host Controller
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

2: Hub,  USB Revision 2.0
 -  USB2.0 Hub
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x05e3  Product 0x0608 Version 133.50
   Configuration: 1
   - Interfaces: 1 Self Powered Remote Wakeup 100mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms

3: Mass Storage,  USB Revision 2.0
 - Kingston DataTraveler 2.0 00241D8CE55DBE50595760E4
 - Class: (from Interface) Mass Storage
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x0951  Product 0x1665 Version 1.0
   Configuration: 1
   - Interfaces: 1 Bus Powered 200mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 2
     - Class Mass Storage, Transp. SCSI, Bulk only
     - Endpoint 1 In Bulk MaxPacket 512
     - Endpoint 2 Out Bulk MaxPacket 512

I would sugest linux image have different boot priority as in enviroments. whet it detects HDD and dont find rootsf partition on it, it starts booting from MTD5. I have tried swaping HDDs, here is boolog
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:50:06 -0700)
ZyXEL NSA310S/320S 1/2-Bay Power Media Server

SoC:   Kirkwood 88F6702_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: WDC WD10EAVS-00D7B0  Firm: 01.01A01 Ser#:  WD-WCAU41984981
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            30717952        00057363-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
70 bytes read in 538 ms (0 Bytes/s)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            1953523120      ec2d0c47-01     83
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 508 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5524320 bytes read in 777 ms (6.8 MiB/s)
loading uInitrd ...
9484105 bytes read in 735 ms (12.3 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...
12586 bytes read in 1461 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:58:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5524256 Bytes = 5.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:59:13 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9484041 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f200000, end 0fb0b709 ... OK
   Loading Device Tree to 0f1f9000, end 0f1ff129 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.8.3-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 Aug 22 16:10:01 PDT 2020
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320S
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232740K/262144K available (10240K kernel code, 1085K rwdata, 4108K rodata, 1024K init, 298K bss, 29404K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000011][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000063][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000999][    T0] Console: colour dummy device 80x30
[    0.001064][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001095][    T0] pid_max: default: 32768 minimum: 301
[    0.001595][    T0] LSM: Security Framework initializing
[    0.001771][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001806][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003348][    T0] CPU: Testing write buffer coherency: ok
[    0.005406][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005774][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006123][    T1] rcu: Hierarchical SRCU implementation.
[    0.009413][    T1] devtmpfs: initialized
[    0.017670][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017714][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.018058][    T1] xor: measuring software checksum speed
[    0.110147][    T1]    arm4regs  :   902.000 MB/sec
[    0.210101][    T1]    8regs     :   541.600 MB/sec
[    0.310099][    T1]    32regs    :   787.200 MB/sec
[    0.310123][    T1] xor: using function: arm4regs (902.000 MB/sec)
[    0.310151][    T1] prandom: seed boundary self test passed
[    0.315191][    T1] prandom: 100 self tests passed
[    0.315205][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316268][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.317067][    T1] NET: Registered protocol family 16
[    0.318088][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.319179][    T1] audit: initializing netlink subsys (disabled)
[    0.321003][   T16] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.321151][    T1] cpuidle: using governor ladder
[    0.321249][    T1] cpuidle: using governor menu
[    0.322082][    T1] Feroceon L2: Enabling L2
[    0.322136][    T1] Feroceon L2: Cache support initialised.
[    0.335222][    T1] No ATAGs?
[    2.560069][    C0] random: fast init done
[    6.420231][    T1] raid6: int32x8  gen()    93 MB/s
[    6.590213][    T1] raid6: int32x8  xor()    58 MB/s
[    6.760151][    T1] raid6: int32x4  gen()    95 MB/s
[    6.930172][    T1] raid6: int32x4  xor()    61 MB/s
[    7.100261][    T1] raid6: int32x2  gen()   123 MB/s
[    7.270145][    T1] raid6: int32x2  xor()    75 MB/s
[    7.440172][    T1] raid6: int32x1  gen()    93 MB/s
[    7.610152][    T1] raid6: int32x1  xor()    55 MB/s
[    7.610165][    T1] raid6: using algorithm int32x2 gen() 123 MB/s
[    7.610176][    T1] raid6: .... xor() 75 MB/s, rmw enabled
[    7.610186][    T1] raid6: using intx1 recovery algorithm
[    7.610492][    T1] vgaarb: loaded
[    7.611146][    T1] SCSI subsystem initialized
[    7.611735][    T1] usbcore: registered new interface driver usbfs
[    7.611814][    T1] usbcore: registered new interface driver hub
[    7.611911][    T1] usbcore: registered new device driver usb
[    7.612139][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.612152][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.612184][    T1] PTP clock support registered
[    7.614228][    T1] clocksource: Switched to clocksource orion_clocksource
[    9.397046][    T1] VFS: Disk quotas dquot_6.6.0
[    9.397163][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.409119][    T1] NET: Registered protocol family 2
[    9.410149][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    9.410196][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    9.410241][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    9.410279][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    9.410785][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.410828][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.411095][    T1] NET: Registered protocol family 1
[    9.411863][    T1] RPC: Registered named UNIX socket transport module.
[    9.411880][    T1] RPC: Registered udp transport module.
[    9.411891][    T1] RPC: Registered tcp transport module.
[    9.411901][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.411918][    T1] PCI: CLS 0 bytes, default 32
[    9.412293][    T1] Trying to unpack rootfs image as initramfs...
[   10.390350][    T1] Freeing initrd memory: 9264K
[   10.390801][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.402814][    T1] Initialise system trusted keyrings
[   10.402889][    T1] Key type blacklist registered
[   10.403143][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   10.403268][    T1] zbud: loaded
[   10.405057][    T1] NFS: Registering the id_resolver key type
[   10.405100][    T1] Key type id_resolver registered
[   10.405111][    T1] Key type id_legacy registered
[   10.405137][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.405158][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.405480][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.405994][    T1] fuse: init (API version 7.31)
[   10.406456][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.406707][    T1] orangefs_init: module version upstream loaded
[   10.406722][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.527846][    T1] async_tx: api initialized (async)
[   10.527874][    T1] Key type asymmetric registered
[   10.527885][    T1] Asymmetric key parser 'x509' registered
[   10.527951][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.528170][    T1] io scheduler bfq registered
[   10.767513][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.769946][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.769974][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.769993][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.770011][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.770158][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.770207][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.771883][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.771918][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.773443][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.773475][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.773723][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.773745][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.774519][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.835454][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.838600][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.895425][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.898872][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.900454][    T1] printk: console [ttyS0] disabled
[   10.900559][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
[   11.792315][    T1] printk: console [ttyS0] enabled
[   11.806714][    T1] loop: module loaded
[   11.811230][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.820795][    T1] scsi host0: sata_mv
[   11.825352][    T1] scsi host1: sata_mv
[   11.829472][    T1] ata1: SATA max UDMA/133 irq 32
[   11.834344][    T1] ata2: SATA max UDMA/133 irq 32
[   11.840248][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[   11.847406][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[   11.852357][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   11.860657][    T1] Scanning device for bad blocks
[   11.870581][    T1] Bad eraseblock 100 at 0x000000c80000
[   11.880996][    T1] Bad eraseblock 200 at 0x000001900000
[   11.928182][    T1] 9 fixed-partitions partitions found on MTD device orion_nand
[   11.935576][    T1] Creating 9 MTD partitions on "orion_nand":
[   11.941396][    T1] 0x000000000000-0x000000100000 : "uboot"
[   11.948730][    T1] 0x000000100000-0x000000180000 : "uboot_env"
[   11.956294][    T1] 0x000000180000-0x000000200000 : "key_store"
[   11.963809][    T1] 0x000000200000-0x000000280000 : "info"
[   11.970926][    T1] 0x000000280000-0x000000c80000 : "etc"
[   11.978034][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[   11.985550][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[   11.993132][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[   12.000674][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[   12.008792][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   12.017332][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   12.029261][    T1] libphy: Fixed MDIO Bus: probed
[   12.035499][    T1] libphy: orion_mdio_bus: probed
[   12.040307][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove
[   12.070698][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.079699][    T1] mv643xx_eth: Set the PHY to fix link down
[   12.080694][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 4c:9e:ff:0b:73:72
[   12.096239][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.103509][    T1] ehci-pci: EHCI PCI platform driver
[   12.108834][    T1] ehci-orion: EHCI orion driver
[   12.113796][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.120088][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.128682][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.164257][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.171315][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
[   12.180350][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.188264][    T1] usb usb1: Product: EHCI Host Controller
[   12.193819][    T1] usb usb1: Manufacturer: Linux 5.8.3-kirkwood-tld-1 ehci_hcd
[   12.201118][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.207286][    T1] hub 1-0:1.0: USB hub found
[   12.211765][    T1] hub 1-0:1.0: 1 port detected
[   12.217272][    T1] usbcore: registered new interface driver usb-storage
[   12.224477][    T1] mousedev: PS/2 mouse device common for all mice
[   12.231043][    T1] i2c /dev entries driver
[   12.237970][    T1] ht1382 0-0068: registered as rtc0
[   12.244084][    T1] ht1382 0-0068: setting system clock to 2021-03-10T13:40:17 UTC (1615383617)
[   12.253846][    T1] device-mapper: uevent: version 1.0.3
[   12.259554][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[   12.269242][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.276520][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.283803][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.291214][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.298008][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.307133][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.313384][    T1] drop_monitor: Initializing network drop monitor service
[   12.320900][    T1] NET: Registered protocol family 10
[   12.327643][    T1] Segment Routing with IPv6
[   12.331986][    T1] RPL Segment Routing with IPv6
[   12.336844][    T1] NET: Registered protocol family 17
[   12.342222][    T1] Key type dns_resolver registered
[   12.347244][   T89] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.355161][    T1] registered taskstats version 1
[   12.360234][    T1] Loading compiled-in X.509 certificates
[   12.366010][    T1] zswap: loaded using pool lzo/zbud
[   12.371463][    T1] Key type ._fscrypt registered
[   12.376249][    T1] Key type .fscrypt registered
[   12.380845][    T1] Key type fscrypt-provisioning registered
[   12.388643][    T1] Key type big_key registered
[   12.428636][    T1] Key type encrypted registered
[   12.584264][  T100] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.786200][  T100] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   12.795200][  T100] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   12.803030][  T100] usb 1-1: Product: USB2.0 Hub
[   12.808645][  T100] hub 1-1:1.0: USB hub found
[   12.813444][  T100] hub 1-1:1.0: 4 ports detected
[   13.124340][   T89] ata1.00: ATA-8: WDC WD10EAVS-00D7B0, 01.01A01, max UDMA/133
[   13.131625][   T89] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   13.143851][   T89] ata1.00: configured for UDMA/133
[   13.159411][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EAVS-00D 1A01 PQ: 0 ANSI: 5
[   13.169577][   T93] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   13.178555][   T93] sd 0:0:0:0: [sda] Write Protect is off
[   13.184213][   T93] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.202622][   T93]  sda: sda1
[   13.207440][   T93] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.505937][   T91] ata2: SATA link down (SStatus 0 SControl F300)
[   13.525249][    T1] Freeing unused kernel memory: 1024K
[   13.531463][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.537851][    T1] Run /init as init process
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   26.476500][  T148] __nand_correct_data: uncorrectable ECC error
[   26.482493][  T148] __nand_correct_data: uncorrectable ECC error
[   26.488561][  T148] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   26.500179][  T148] __nand_correct_data: uncorrectable ECC error
[   26.506196][  T148] __nand_correct_data: uncorrectable ECC error
[   26.512189][  T148] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   26.523210][  T148] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   27.764977][  T148] __nand_correct_data: uncorrectable ECC error
[   27.770969][  T148] __nand_correct_data: uncorrectable ECC error
[   27.777029][  T148] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   27.788645][  T148] __nand_correct_data: uncorrectable ECC error
[   27.794662][  T148] __nand_correct_data: uncorrectable ECC error
[   27.800654][  T148] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   27.811675][  T148] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
[   29.335938][  T152] __nand_correct_data: uncorrectable ECC error
[   29.341927][  T152] __nand_correct_data: uncorrectable ECC error
[   29.347992][  T152] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   29.359603][  T152] __nand_correct_data: uncorrectable ECC error
[   29.365612][  T152] __nand_correct_data: uncorrectable ECC error
[   29.371606][  T152] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   29.382625][  T152] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   29.880451][  T152] __nand_correct_data: uncorrectable ECC error
[   29.886555][  T152] __nand_correct_data: uncorrectable ECC error
[   29.892548][  T152] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   29.904146][  T152] __nand_correct_data: uncorrectable ECC error
[   29.910214][  T152] __nand_correct_data: uncorrectable ECC error
[   29.916228][  T152] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   29.927288][  T152] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   31.647064][  T156] __nand_correct_data: uncorrectable ECC error
[   31.653059][  T156] __nand_correct_data: uncorrectable ECC error
[   31.659126][  T156] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   31.670744][  T156] __nand_correct_data: uncorrectable ECC error
[   31.676761][  T156] __nand_correct_data: uncorrectable ECC error
[   31.682753][  T156] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   31.693774][  T156] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   32.191943][  T156] __nand_correct_data: uncorrectable ECC error
[   32.198049][  T156] __nand_correct_data: uncorrectable ECC error
[   32.204042][  T156] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   32.215642][  T156] __nand_correct_data: uncorrectable ECC error
[   32.221621][  T156] __nand_correct_data: uncorrectable ECC error
[   32.227699][  T156] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   32.238728][  T156] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   33.958197][  T160] __nand_correct_data: uncorrectable ECC error
[   33.964189][  T160] __nand_correct_data: uncorrectable ECC error
[   33.970279][  T160] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   33.981870][  T160] __nand_correct_data: uncorrectable ECC error
[   33.987940][  T160] __nand_correct_data: uncorrectable ECC error
[   33.993928][  T160] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   34.004953][  T160] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   34.503294][  T160] __nand_correct_data: uncorrectable ECC error
[   34.509396][  T160] __nand_correct_data: uncorrectable ECC error
[   34.515447][  T160] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.527059][  T160] __nand_correct_data: uncorrectable ECC error
[   34.533045][  T160] __nand_correct_data: uncorrectable ECC error
[   34.539065][  T160] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   34.550089][  T160] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   36.269053][  T164] __nand_correct_data: uncorrectable ECC error
[   36.275149][  T164] __nand_correct_data: uncorrectable ECC error
[   36.281145][  T164] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   36.292741][  T164] __nand_correct_data: uncorrectable ECC error
[   36.298810][  T164] __nand_correct_data: uncorrectable ECC error
[   36.304826][  T164] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   36.315853][  T164] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   36.813700][  T164] __nand_correct_data: uncorrectable ECC error
[   36.819801][  T164] __nand_correct_data: uncorrectable ECC error
[   36.825854][  T164] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   36.837472][  T164] __nand_correct_data: uncorrectable ECC error
[   36.843450][  T164] __nand_correct_data: uncorrectable ECC error
[   36.849470][  T164] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   36.860494][  T164] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   38.580082][  T168] __nand_correct_data: uncorrectable ECC error
[   38.586191][  T168] __nand_correct_data: uncorrectable ECC error
[   38.592182][  T168] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   38.603781][  T168] __nand_correct_data: uncorrectable ECC error
[   38.609846][  T168] __nand_correct_data: uncorrectable ECC error
[   38.615862][  T168] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.626890][  T168] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   39.124923][  T168] __nand_correct_data: uncorrectable ECC error
[   39.130918][  T168] __nand_correct_data: uncorrectable ECC error
[   39.136980][  T168] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   39.148594][  T168] __nand_correct_data: uncorrectable ECC error
[   39.154603][  T168] __nand_correct_data: uncorrectable ECC error
[   39.160595][  T168] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   39.171617][  T168] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   40.891525][  T172] __nand_correct_data: uncorrectable ECC error
[   40.897628][  T172] __nand_correct_data: uncorrectable ECC error
[   40.903623][  T172] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   40.915223][  T172] __nand_correct_data: uncorrectable ECC error
[   40.921203][  T172] __nand_correct_data: uncorrectable ECC error
[   40.927280][  T172] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   40.938308][  T172] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   41.436748][  T172] __nand_correct_data: uncorrectable ECC error
[   41.442740][  T172] __nand_correct_data: uncorrectable ECC error
[   41.448804][  T172] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   41.460415][  T172] __nand_correct_data: uncorrectable ECC error
[   41.466425][  T172] __nand_correct_data: uncorrectable ECC error
[   41.472418][  T172] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   41.483438][  T172] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   43.202202][  T176] __nand_correct_data: uncorrectable ECC error
[   43.208306][  T176] __nand_correct_data: uncorrectable ECC error
[   43.214365][  T176] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   43.225987][  T176] __nand_correct_data: uncorrectable ECC error
[   43.231971][  T176] __nand_correct_data: uncorrectable ECC error
[   43.237987][  T176] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   43.249014][  T176] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   43.747248][  T176] __nand_correct_data: uncorrectable ECC error
[   43.753241][  T176] __nand_correct_data: uncorrectable ECC error
[   43.759315][  T176] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   43.770953][  T176] __nand_correct_data: uncorrectable ECC error
[   43.776968][  T176] __nand_correct_data: uncorrectable ECC error
[   43.782961][  T176] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   43.793982][  T176] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   45.513223][  T180] __nand_correct_data: uncorrectable ECC error
[   45.519323][  T180] __nand_correct_data: uncorrectable ECC error
[   45.525376][  T180] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   45.536993][  T180] __nand_correct_data: uncorrectable ECC error
[   45.542981][  T180] __nand_correct_data: uncorrectable ECC error
[   45.549000][  T180] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   45.560025][  T180] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   46.058194][  T180] __nand_correct_data: uncorrectable ECC error
[   46.064189][  T180] __nand_correct_data: uncorrectable ECC error
[   46.070284][  T180] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   46.081879][  T180] __nand_correct_data: uncorrectable ECC error
[   46.087951][  T180] __nand_correct_data: uncorrectable ECC error
[   46.093946][  T180] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   46.104971][  T180] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   46.589564][    C0] random: crng init done
Begin: Running /scripts/local-block ... done.
[   47.824444][  T184] __nand_correct_data: uncorrectable ECC error
[   47.830439][  T184] __nand_correct_data: uncorrectable ECC error
[   47.836493][  T184] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   47.848107][  T184] __nand_correct_data: uncorrectable ECC error
[   47.854094][  T184] __nand_correct_data: uncorrectable ECC error
[   47.860112][  T184] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   47.871136][  T184] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   48.369255][  T184] __nand_correct_data: uncorrectable ECC error
[   48.375361][  T184] __nand_correct_data: uncorrectable ECC error
[   48.381353][  T184] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   48.392951][  T184] __nand_correct_data: uncorrectable ECC error
[   48.399021][  T184] __nand_correct_data: uncorrectable ECC error
[   48.405041][  T184] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   48.416061][  T184] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   50.135517][  T188] __nand_correct_data: uncorrectable ECC error
[   50.141509][  T188] __nand_correct_data: uncorrectable ECC error
[   50.147572][  T188] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   50.159186][  T188] __nand_correct_data: uncorrectable ECC error
[   50.165194][  T188] __nand_correct_data: uncorrectable ECC error
[   50.171188][  T188] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   50.182208][  T188] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   50.680304][  T188] __nand_correct_data: uncorrectable ECC error
[   50.686406][  T188] __nand_correct_data: uncorrectable ECC error
[   50.692398][  T188] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   50.703997][  T188] __nand_correct_data: uncorrectable ECC error
[   50.710064][  T188] __nand_correct_data: uncorrectable ECC error
[   50.716079][  T188] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   50.727107][  T188] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   52.446672][  T192] __nand_correct_data: uncorrectable ECC error
[   52.452666][  T192] __nand_correct_data: uncorrectable ECC error
[   52.458731][  T192] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   52.470349][  T192] __nand_correct_data: uncorrectable ECC error
[   52.476359][  T192] __nand_correct_data: uncorrectable ECC error
[   52.482353][  T192] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   52.493373][  T192] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   52.991397][  T192] __nand_correct_data: uncorrectable ECC error
[   52.997501][  T192] __nand_correct_data: uncorrectable ECC error
[   53.003494][  T192] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   53.015096][  T192] __nand_correct_data: uncorrectable ECC error
[   53.021082][  T192] __nand_correct_data: uncorrectable ECC error
[   53.027159][  T192] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   53.038187][  T192] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   54.757761][  T196] __nand_correct_data: uncorrectable ECC error
[   54.763754][  T196] __nand_correct_data: uncorrectable ECC error
[   54.769839][  T196] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   54.781474][  T196] __nand_correct_data: uncorrectable ECC error
[   54.787491][  T196] __nand_correct_data: uncorrectable ECC error
[   54.793483][  T196] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   54.804505][  T196] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   55.302699][  T196] __nand_correct_data: uncorrectable ECC error
[   55.308805][  T196] __nand_correct_data: uncorrectable ECC error
[   55.314858][  T196] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   55.326476][  T196] __nand_correct_data: uncorrectable ECC error
[   55.332463][  T196] __nand_correct_data: uncorrectable ECC error
[   55.338482][  T196] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   55.349506][  T196] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   57.068312][  T200] __nand_correct_data: uncorrectable ECC error
[   57.074411][  T200] __nand_correct_data: uncorrectable ECC error
[   57.080408][  T200] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   57.092005][  T200] __nand_correct_data: uncorrectable ECC error
[   57.098074][  T200] __nand_correct_data: uncorrectable ECC error
[   57.104062][  T200] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   57.115086][  T200] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   57.613250][  T200] __nand_correct_data: uncorrectable ECC error
[   57.619345][  T200] __nand_correct_data: uncorrectable ECC error
[   57.625402][  T200] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   57.637019][  T200] __nand_correct_data: uncorrectable ECC error
[   57.642998][  T200] __nand_correct_data: uncorrectable ECC error
[   57.649016][  T200] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   57.660042][  T200] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   59.379617][  T204] __nand_correct_data: uncorrectable ECC error
[   59.385716][  T204] __nand_correct_data: uncorrectable ECC error
[   59.391711][  T204] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   59.403312][  T204] __nand_correct_data: uncorrectable ECC error
[   59.409380][  T204] __nand_correct_data: uncorrectable ECC error
[   59.415401][  T204] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   59.426428][  T204] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   59.924444][  T204] __nand_correct_data: uncorrectable ECC error
[   59.930440][  T204] __nand_correct_data: uncorrectable ECC error
[   59.936493][  T204] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   59.948108][  T204] __nand_correct_data: uncorrectable ECC error
[   59.954095][  T204] __nand_correct_data: uncorrectable ECC error
[   59.960114][  T204] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   59.971138][  T204] Buffer I/O error on dev mtdblock5, logical block 0, async page read
done.
[   60.676732][  T206] __nand_correct_data: uncorrectable ECC error
[   60.682724][  T206] __nand_correct_data: uncorrectable ECC error
[   60.688790][  T206] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   60.700408][  T206] __nand_correct_data: uncorrectable ECC error
[   60.706418][  T206] __nand_correct_data: uncorrectable ECC error
[   60.712410][  T206] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   60.723431][  T206] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   61.221597][  T206] __nand_correct_data: uncorrectable ECC error
[   61.227699][  T206] __nand_correct_data: uncorrectable ECC error
[   61.233691][  T206] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   61.245292][  T206] __nand_correct_data: uncorrectable ECC error
[   61.251277][  T206] __nand_correct_data: uncorrectable ECC error
[   61.257355][  T206] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   61.268383][  T206] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
Re: Bricked NSA320S during 2017.07 flash
March 10, 2021 05:10PM
mervin,

Let's recap.


Quote

1. With only the USB rootfs plugged in. Power up, interrupt serial console and

setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params'
setenv usb_boot

Boot all the way into Debian and then, do

fdisk -l
fw_printenv
If there was no error in the above, then

fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params'
fw_setenv usb_boot

And then reboot and let the box boot with interrupting it. Once you can reboot a few times, the we know all is well.

So Step 1 was done successfully. OK we proceed to step 2.


Quote

2. After Step 1 above was done OK. Shutdown the box and insert the HDD into slot 1.

Boot and verify that the HDD can be access. And dont do step 3 below yet until you can see the HDD 1 is functioning well. IOW, try to copy some large files from the USB rootfs to the HDD... so on.


At this point the USB rootfs should remain attached to the USB port in Step 1 (to avoid confusion, don't remove it).

Power down. Attach the 1st HDD to slot 1. This HDD should not have any rootfs on it. If it does contain a rootfs then it will mess up the boot. If you want to keep the rootfs for future booting, do this before you attach the HDD to the box: Rename the /boot/uImage to /boot/uImage.save. And relabel the partition to rootfs_hdd. That way u-boot will not detect there is a rootfs on HDD.

Power up, interrupt serial console and

setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot)'
(The above is to hide the rest of the mtd partitions from the kernel, just expose mtd0)

And then
boot

This time it should boot all the way into Debian rootfs on USB. And the HDD in slot 1 should work properly.

And set the mtdparts env permanently. From now on. From now on, mtd1,2,3,4,5 will not be seen by the kernel. And you will not see the nand_ecc errors again.

fw_setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot)'
Since we are booting with rootfs on USB/HDD, the only parttion needed is mtd0. In the future, should you want to use the other mtds for storing OpenWrt or other rescue system then reset the mtdparts back to the original.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
March 11, 2021 10:58AM
Hi

Im start thinking this box is good for skip. I got no futher as
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:50:06 -0700)
ZyXEL NSA310S/320S 1/2-Bay Power Media Server

SoC:   Kirkwood 88F6702_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
NSA3x0S> setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot)'
NSA3x0S> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: WDC WD10EAVS-00D7B0  Firm: 01.01A01 Ser#:  WD-WCAU41984981
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            30717952        00057363-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
70 bytes read in 538 ms (0 Bytes/s)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            1953523120      ec2d0c47-01     83
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 ...
5524320 bytes read in 777 ms (6.8 MiB/s)
loading uInitrd ...
9484105 bytes read in 734 ms (12.3 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...
12586 bytes read in 1461 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:58:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5524256 Bytes = 5.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:59:13 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9484041 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f200000, end 0fb0b709 ... OK
   Loading Device Tree to 0f1f9000, end 0f1ff129 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.8.3-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 Aug 22 16:10:01 PDT 2020
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320S
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232740K/262144K available (10240K kernel code, 1085K rwdata, 4108K rodata, 1024K init, 298K bss, 29404K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000011][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000060][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000997][    T0] Console: colour dummy device 80x30
[    0.001061][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001094][    T0] pid_max: default: 32768 minimum: 301
[    0.001592][    T0] LSM: Security Framework initializing
[    0.001768][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001803][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003347][    T0] CPU: Testing write buffer coherency: ok
[    0.005419][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005787][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006138][    T1] rcu: Hierarchical SRCU implementation.
[    0.009426][    T1] devtmpfs: initialized
[    0.017219][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017263][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.017610][    T1] xor: measuring software checksum speed
[    0.110142][    T1]    arm4regs  :   902.000 MB/sec
[    0.210099][    T1]    8regs     :   541.600 MB/sec
[    0.310092][    T1]    32regs    :   787.200 MB/sec
[    0.310115][    T1] xor: using function: arm4regs (902.000 MB/sec)
[    0.310145][    T1] prandom: seed boundary self test passed
[    0.315186][    T1] prandom: 100 self tests passed
[    0.315202][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316275][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.317072][    T1] NET: Registered protocol family 16
[    0.317851][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318940][    T1] audit: initializing netlink subsys (disabled)
[    0.320767][   T16] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320917][    T1] cpuidle: using governor ladder
[    0.321013][    T1] cpuidle: using governor menu
[    0.321603][    T1] Feroceon L2: Enabling L2
[    0.321657][    T1] Feroceon L2: Cache support initialised.
[    0.334752][    T1] No ATAGs?
[    2.560067][    C0] random: fast init done
[    6.420382][    T1] raid6: int32x8  gen()    93 MB/s
[    6.590280][    T1] raid6: int32x8  xor()    58 MB/s
[    6.760228][    T1] raid6: int32x4  gen()    95 MB/s
[    6.930261][    T1] raid6: int32x4  xor()    61 MB/s
[    7.100089][    T1] raid6: int32x2  gen()   122 MB/s
[    7.270102][    T1] raid6: int32x2  xor()    74 MB/s
[    7.440200][    T1] raid6: int32x1  gen()    93 MB/s
[    7.610190][    T1] raid6: int32x1  xor()    54 MB/s
[    7.610204][    T1] raid6: using algorithm int32x2 gen() 122 MB/s
[    7.610214][    T1] raid6: .... xor() 74 MB/s, rmw enabled
[    7.610224][    T1] raid6: using intx1 recovery algorithm
[    7.610529][    T1] vgaarb: loaded
[    7.611192][    T1] SCSI subsystem initialized
[    7.611770][    T1] usbcore: registered new interface driver usbfs
[    7.611849][    T1] usbcore: registered new interface driver hub
[    7.611946][    T1] usbcore: registered new device driver usb
[    7.612175][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.612189][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.612220][    T1] PTP clock support registered
[    7.614022][    T1] clocksource: Switched to clocksource orion_clocksource
[    9.396250][    T1] VFS: Disk quotas dquot_6.6.0
[    9.396368][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.408347][    T1] NET: Registered protocol family 2
[    9.409371][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    9.409418][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    9.409462][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    9.409500][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    9.410013][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.410055][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.410316][    T1] NET: Registered protocol family 1
[    9.411090][    T1] RPC: Registered named UNIX socket transport module.
[    9.411105][    T1] RPC: Registered udp transport module.
[    9.411116][    T1] RPC: Registered tcp transport module.
[    9.411127][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.411143][    T1] PCI: CLS 0 bytes, default 32
[    9.411521][    T1] Trying to unpack rootfs image as initramfs...
[   10.393682][    T1] Freeing initrd memory: 9264K
[   10.393889][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.405963][    T1] Initialise system trusted keyrings
[   10.406030][    T1] Key type blacklist registered
[   10.406284][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   10.406408][    T1] zbud: loaded
[   10.408077][    T1] NFS: Registering the id_resolver key type
[   10.408115][    T1] Key type id_resolver registered
[   10.408127][    T1] Key type id_legacy registered
[   10.408153][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.408175][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.408500][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.409016][    T1] fuse: init (API version 7.31)
[   10.409478][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.409728][    T1] orangefs_init: module version upstream loaded
[   10.409743][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.529827][    T1] async_tx: api initialized (async)
[   10.529854][    T1] Key type asymmetric registered
[   10.529867][    T1] Asymmetric key parser 'x509' registered
[   10.529932][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.530155][    T1] io scheduler bfq registered
[   10.769496][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.771914][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.771942][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.771962][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.771980][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.772126][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.772174][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.773852][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.773886][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.775483][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.775514][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.775763][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.775785][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.776494][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.835251][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.838431][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.895215][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.898662][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.900244][    T1] printk: console [ttyS0] disabled
[   10.900351][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
[   11.780561][    T1] printk: console [ttyS0] enabled
[   11.794944][    T1] loop: module loaded
[   11.799462][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.809021][    T1] scsi host0: sata_mv
[   11.813524][    T1] scsi host1: sata_mv
[   11.817722][    T1] ata1: SATA max UDMA/133 irq 32
[   11.822495][    T1] ata2: SATA max UDMA/133 irq 32
[   11.828457][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[   11.835611][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[   11.840561][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   11.848861][    T1] Scanning device for bad blocks
[   11.858770][    T1] Bad eraseblock 100 at 0x000000c80000
[   11.869180][    T1] Bad eraseblock 200 at 0x000001900000
[   11.916293][    T1] 1 cmdlinepart partitions found on MTD device orion_nand
[   11.923226][    T1] Creating 1 MTD partitions on "orion_nand":
[   11.929072][    T1] 0x000000000000-0x000000100000 : "uboot"
[   11.936755][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   11.945300][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   11.957231][    T1] libphy: Fixed MDIO Bus: probed
[   11.963404][    T1] libphy: orion_mdio_bus: probed
[   11.968260][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove
[   11.998504][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.007769][    T1] mv643xx_eth: Set the PHY to fix link down
[   12.008542][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 4c:9e:ff:0b:73:72
[   12.023912][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.031260][    T1] ehci-pci: EHCI PCI platform driver
[   12.036526][    T1] ehci-orion: EHCI orion driver
[   12.041441][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.047709][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.056309][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.084171][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.091225][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
[   12.100210][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.108146][    T1] usb usb1: Product: EHCI Host Controller
[   12.113728][    T1] usb usb1: Manufacturer: Linux 5.8.3-kirkwood-tld-1 ehci_hcd
[   12.121051][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.127247][    T1] hub 1-0:1.0: USB hub found
[   12.131761][    T1] hub 1-0:1.0: 1 port detected
[   12.137328][    T1] usbcore: registered new interface driver usb-storage
[   12.144512][    T1] mousedev: PS/2 mouse device common for all mice
[   12.151129][    T1] i2c /dev entries driver
[   12.158084][    T1] ht1382 0-0068: registered as rtc0
[   12.164235][    T1] ht1382 0-0068: setting system clock to 2021-03-11T08:43:28 UTC (1615452208)
[   12.174012][    T1] device-mapper: uevent: version 1.0.3
[   12.179775][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[   12.189439][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.196711][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.203993][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.211407][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.218202][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.227305][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.233585][    T1] drop_monitor: Initializing network drop monitor service
[   12.241095][    T1] NET: Registered protocol family 10
[   12.247852][    T1] Segment Routing with IPv6
[   12.252193][    T1] RPL Segment Routing with IPv6
[   12.257048][    T1] NET: Registered protocol family 17
[   12.262419][    T1] Key type dns_resolver registered
[   12.267948][    T1] registered taskstats version 1
[   12.272724][    T1] Loading compiled-in X.509 certificates
[   12.278375][    T1] zswap: loaded using pool lzo/zbud
[   12.283822][    T1] Key type ._fscrypt registered
[   12.288601][    T1] Key type .fscrypt registered
[   12.293199][    T1] Key type fscrypt-provisioning registered
[   12.300952][    T1] Key type big_key registered
[   12.340414][    T1] Key type encrypted registered
[   12.474080][   T89] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.504063][  T100] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.705943][  T100] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   12.714821][  T100] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   12.722642][  T100] usb 1-1: Product: USB2.0 Hub
[   12.728275][  T100] hub 1-1:1.0: USB hub found
[   12.733194][  T100] hub 1-1:1.0: 4 ports detected
[   12.816256][   T89] ata1.00: ATA-8: WDC WD10EAVS-00D7B0, 01.01A01, max UDMA/133
[   12.823545][   T89] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.835770][   T89] ata1.00: configured for UDMA/133
[   12.851302][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EAVS-00D 1A01 PQ: 0 ANSI: 5
[   12.861469][   T93] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   12.870428][   T93] sd 0:0:0:0: [sda] Write Protect is off
[   12.876315][   T93] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.897486][   T93]  sda: sda1
[   12.902259][   T93] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.205738][   T91] ata2: SATA link down (SStatus 0 SControl F300)
[   13.225046][    T1] Freeing unused kernel memory: 1024K
[   13.231265][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.237645][    T1] Run /init as init process
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   47.328822][    C0] random: crng init done
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

Re: Bricked NSA320S during 2017.07 flash
March 11, 2021 05:18PM
mervin,

When you see this keep repeating
Begin: Running /scripts/local-block ... done.

Then it is likely the USB drive needs to be checked out.

1. Bring it to another Linux box and check for/fix errors (assuming it is assigned as /dev/sdb):
e2fsck /dev/sdb1
and check the label to make sure that it is rootfs
e2label /dev/sdb1

If this does not help, do the following

2. use another UBS flash drive, create the rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2. Note that you are running new u-boot so Skip Step 4 (4. Create uImage with embedded DTB).

Make sure you are root, the partition label is rootfs... like you did last time.

====

PS.
Only use the front USB port to attach rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
April 09, 2021 02:22PM
Hi Bodhi

I was busy for while and dont have time to play with nas. I did check USB drive and I make fresh install on 2nd USB, I was reading forum and find to set only usb in devices but didnt fix it. with usb only I get working debian. With HDDs I get to initramfs

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

SoC:   Kirkwood 88F6702_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
NSA3x0S> setenv devices "usb"
NSA3x0S>
NSA3x0S> setenv bootcmd 'run init_sata_power; run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec;'
NSA3x0S>
NSA3x0S> printenv
arcNumber=4931
baudrate=115200
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
bootcmd=run init_sata_power; run bootcmd_uenv; run scan_disk; run set_bootargs;
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boose if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $l
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa320s.dtb
ethact=egiga0
ethaddr=4c:9e:ff:0b:73:72
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_sata_power=mw.l f1010104 c70e0ffd
init_usb=usb start
ipaddr=192.168.100.11
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $d
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /b
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /bo
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x8000
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; ; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $dis
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.100.127
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
start_netconsole=setenv ncip; setenv bootdelay 10; setenv stdin nc; setenv stdou
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  se
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknu
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_re
usb_ready_retry=15

Environment size: 3247/131068 bytes
NSA3x0S> setenv mtdparts "orion_nand:0x100000(uboot),0x80000(uboot_env)"
NSA3x0S> printenv
arcNumber=4931
baudrate=115200
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
bootcmd=run init_sata_power; run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec;
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa320s.dtb
ethact=egiga0
ethaddr=4c:9e:ff:0b:73:72
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_sata_power=mw.l f1010104 c70e0ffd
init_usb=usb start
ipaddr=192.168.100.11
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.100.127
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3124/131068 bytes
NSA3x0S> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            30717952        00057363-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
70 bytes read in 538 ms (0 Bytes/s)
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 508 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5524320 bytes read in 778 ms (6.8 MiB/s)
loading uInitrd ...
9484105 bytes read in 736 ms (12.3 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...
12586 bytes read in 1461 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:58:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5524256 Bytes = 5.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:59:13 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9484041 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f200000, end 0fb0b709 ... OK
   Loading Device Tree to 0f1f9000, end 0f1ff129 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.8.3-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 Aug 22 16:10:01 PDT 2020
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320S
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 orion_nand:0x100000(uboot),0x80000(uboot_env)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232740K/262144K available (10240K kernel code, 1085K rwdata, 4108K rodata, 1024K init, 298K bss, 29404K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000011][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000060][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000994][    T0] Console: colour dummy device 80x30
[    0.001058][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001089][    T0] pid_max: default: 32768 minimum: 301
[    0.001590][    T0] LSM: Security Framework initializing
[    0.001764][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001798][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003330][    T0] CPU: Testing write buffer coherency: ok
[    0.005399][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005766][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006115][    T1] rcu: Hierarchical SRCU implementation.
[    0.009409][    T1] devtmpfs: initialized
[    0.017294][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017337][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.017686][    T1] xor: measuring software checksum speed
[    0.110144][    T1]    arm4regs  :   902.000 MB/sec
[    0.210100][    T1]    8regs     :   541.600 MB/sec
[    0.310098][    T1]    32regs    :   787.600 MB/sec
[    0.310122][    T1] xor: using function: arm4regs (902.000 MB/sec)
[    0.310152][    T1] prandom: seed boundary self test passed
[    0.315191][    T1] prandom: 100 self tests passed
[    0.315207][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316264][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.317066][    T1] NET: Registered protocol family 16
[    0.317898][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318977][    T1] audit: initializing netlink subsys (disabled)
[    0.320802][   T16] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320951][    T1] cpuidle: using governor ladder
[    0.321048][    T1] cpuidle: using governor menu
[    0.321694][    T1] Feroceon L2: Enabling L2
[    0.321748][    T1] Feroceon L2: Cache support initialised.
[    0.334839][    T1] No ATAGs?
[    2.560067][    C0] random: fast init done
[    6.420184][    T1] raid6: int32x8  gen()    93 MB/s
[    6.590220][    T1] raid6: int32x8  xor()    58 MB/s
[    6.760263][    T1] raid6: int32x4  gen()    95 MB/s
[    6.930227][    T1] raid6: int32x4  xor()    61 MB/s
[    7.100119][    T1] raid6: int32x2  gen()   121 MB/s
[    7.270147][    T1] raid6: int32x2  xor()    75 MB/s
[    7.440256][    T1] raid6: int32x1  gen()    93 MB/s
[    7.610117][    T1] raid6: int32x1  xor()    54 MB/s
[    7.610131][    T1] raid6: using algorithm int32x2 gen() 121 MB/s
[    7.610141][    T1] raid6: .... xor() 75 MB/s, rmw enabled
[    7.610152][    T1] raid6: using intx1 recovery algorithm
[    7.610462][    T1] vgaarb: loaded
[    7.611124][    T1] SCSI subsystem initialized
[    7.611695][    T1] usbcore: registered new interface driver usbfs
[    7.611773][    T1] usbcore: registered new interface driver hub
[    7.611872][    T1] usbcore: registered new device driver usb
[    7.612098][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.612112][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.612144][    T1] PTP clock support registered
[    7.614004][    T1] clocksource: Switched to clocksource orion_clocksource
[    9.396748][    T1] VFS: Disk quotas dquot_6.6.0
[    9.396866][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.408802][    T1] NET: Registered protocol family 2
[    9.409827][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    9.409874][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    9.409918][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    9.409956][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    9.410468][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.410511][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.410774][    T1] NET: Registered protocol family 1
[    9.411538][    T1] RPC: Registered named UNIX socket transport module.
[    9.411553][    T1] RPC: Registered udp transport module.
[    9.411564][    T1] RPC: Registered tcp transport module.
[    9.411575][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.411592][    T1] PCI: CLS 0 bytes, default 32
[    9.411969][    T1] Trying to unpack rootfs image as initramfs...
[   10.393900][    T1] Freeing initrd memory: 9264K
[   10.394262][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.406253][    T1] Initialise system trusted keyrings
[   10.406320][    T1] Key type blacklist registered
[   10.406572][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   10.406697][    T1] zbud: loaded
[   10.408362][    T1] NFS: Registering the id_resolver key type
[   10.408397][    T1] Key type id_resolver registered
[   10.408409][    T1] Key type id_legacy registered
[   10.408435][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.408456][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.408780][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.409294][    T1] fuse: init (API version 7.31)
[   10.409752][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.410003][    T1] orangefs_init: module version upstream loaded
[   10.410019][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.528818][    T1] async_tx: api initialized (async)
[   10.528845][    T1] Key type asymmetric registered
[   10.528857][    T1] Asymmetric key parser 'x509' registered
[   10.528922][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.529146][    T1] io scheduler bfq registered
[   10.768449][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.770867][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.770895][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.770915][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.770933][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.771079][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.771127][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.772805][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.772838][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.774431][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.774462][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.774713][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.774735][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.775447][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.835233][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.838414][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.895199][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.898625][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.900216][    T1] printk: console [ttyS0] disabled
[   10.900321][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
[   11.781392][    T1] printk: console [ttyS0] enabled
[   11.795802][    T1] loop: module loaded
[   11.800317][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.809869][    T1] scsi host0: sata_mv
[   11.814444][    T1] scsi host1: sata_mv
[   11.818570][    T1] ata1: SATA max UDMA/133 irq 32
[   11.823344][    T1] ata2: SATA max UDMA/133 irq 32
[   11.829337][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[   11.836495][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[   11.841445][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   11.849751][    T1] Scanning device for bad blocks
[   11.859675][    T1] Bad eraseblock 100 at 0x000000c80000
[   11.870091][    T1] Bad eraseblock 200 at 0x000001900000
[   11.917247][    T1] 9 fixed-partitions partitions found on MTD device orion_nand
[   11.924636][    T1] Creating 9 MTD partitions on "orion_nand":
[   11.930458][    T1] 0x000000000000-0x000000100000 : "uboot"
[   11.937776][    T1] 0x000000100000-0x000000180000 : "uboot_env"
[   11.945358][    T1] 0x000000180000-0x000000200000 : "key_store"
[   11.952859][    T1] 0x000000200000-0x000000280000 : "info"
[   11.960000][    T1] 0x000000280000-0x000000c80000 : "etc"
[   11.967115][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[   11.974622][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[   11.982208][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[   11.989735][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[   11.997853][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   12.006397][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   12.018341][    T1] libphy: Fixed MDIO Bus: probed
[   12.024563][    T1] libphy: orion_mdio_bus: probed
[   12.029368][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove
[   12.059766][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.069030][    T1] mv643xx_eth: Set the PHY to fix link down
[   12.069809][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 4c:9e:ff:0b:73:72
[   12.085352][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.092619][    T1] ehci-pci: EHCI PCI platform driver
[   12.097948][    T1] ehci-orion: EHCI orion driver
[   12.102909][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.109203][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.117794][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.154033][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.161104][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
[   12.170145][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.178059][    T1] usb usb1: Product: EHCI Host Controller
[   12.183615][    T1] usb usb1: Manufacturer: Linux 5.8.3-kirkwood-tld-1 ehci_hcd
[   12.190921][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.197092][    T1] hub 1-0:1.0: USB hub found
[   12.201568][    T1] hub 1-0:1.0: 1 port detected
[   12.207075][    T1] usbcore: registered new interface driver usb-storage
[   12.214256][    T1] mousedev: PS/2 mouse device common for all mice
[   12.220819][    T1] i2c /dev entries driver
[   12.227746][    T1] ht1382 0-0068: registered as rtc0
[   12.233862][    T1] ht1382 0-0068: setting system clock to 2021-04-09T17:18:50 UTC (1617988730)
[   12.243615][    T1] device-mapper: uevent: version 1.0.3
[   12.249326][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[   12.258995][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.266273][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.273554][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.280967][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.287756][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.296891][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.303137][    T1] drop_monitor: Initializing network drop monitor service
[   12.310658][    T1] NET: Registered protocol family 10
[   12.317410][    T1] Segment Routing with IPv6
[   12.321755][    T1] RPL Segment Routing with IPv6
[   12.326613][    T1] NET: Registered protocol family 17
[   12.331998][    T1] Key type dns_resolver registered
[   12.337591][    T1] registered taskstats version 1
[   12.342364][    T1] Loading compiled-in X.509 certificates
[   12.348014][    T1] zswap: loaded using pool lzo/zbud
[   12.353458][    T1] Key type ._fscrypt registered
[   12.358239][    T1] Key type .fscrypt registered
[   12.362839][    T1] Key type fscrypt-provisioning registered
[   12.370611][    T1] Key type big_key registered
[   12.404143][   T89] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.417898][    T1] Key type encrypted registered
[   12.574040][  T100] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.775931][  T100] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   12.784933][  T100] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   12.792769][  T100] usb 1-1: Product: USB2.0 Hub
[   12.798381][  T100] hub 1-1:1.0: USB hub found
[   12.803180][  T100] hub 1-1:1.0: 4 ports detected
[   14.014115][   T89] ata1.00: ATA-8: WDC WD10EAVS-00D7B0, 01.01A01, max UDMA/133
[   14.021405][   T89] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   14.033611][   T89] ata1.00: configured for UDMA/133
[   14.049171][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EAVS-00D 1A01 PQ: 0 ANSI: 5
[   14.059323][   T93] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   14.068291][   T93] sd 0:0:0:0: [sda] Write Protect is off
[   14.073947][   T93] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   14.094459][   T93]  sda: sda1
[   14.099212][   T93] sd 0:0:0:0: [sda] Attached SCSI disk
[   14.704051][   T91] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   14.744095][   T91] ata2.00: ATA-8: WDC WD10EAVS-00D7B0, 01.01A01, max UDMA/133
[   14.751380][   T91] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   14.763570][   T91] ata2.00: configured for UDMA/133
[   14.779082][   T58] scsi 1:0:0:0: Direct-Access     ATA      WDC WD10EAVS-00D 1A01 PQ: 0 ANSI: 5
[   14.789226][   T93] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   14.798022][   T93] sd 1:0:0:0: [sdb] Write Protect is off
[   14.803636][   T93] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   14.821677][   T93]  sdb: sdb1 sdb2
[   14.827089][   T93] sd 1:0:0:0: [sdb] Attached SCSI disk
[   14.835542][    T1] Freeing unused kernel memory: 1024K
[   14.855080][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.861430][    T1] Run /init as init process
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   27.925639][  T149] __nand_correct_data: uncorrectable ECC error
[   27.931636][  T149] __nand_correct_data: uncorrectable ECC error
[   27.937699][  T149] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   27.949313][  T149] __nand_correct_data: uncorrectable ECC error
[   27.955321][  T149] __nand_correct_data: uncorrectable ECC error
[   27.961314][  T149] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   27.972335][  T149] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   30.103521][  T149] __nand_correct_data: uncorrectable ECC error
[   30.109622][  T149] __nand_correct_data: uncorrectable ECC error
[   30.115673][  T149] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   30.127292][  T149] __nand_correct_data: uncorrectable ECC error
[   30.133271][  T149] __nand_correct_data: uncorrectable ECC error
[   30.139290][  T149] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   30.150314][  T149] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
[   31.674673][  T153] __nand_correct_data: uncorrectable ECC error
[   31.680670][  T153] __nand_correct_data: uncorrectable ECC error
[   31.686729][  T153] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   31.698343][  T153] __nand_correct_data: uncorrectable ECC error
[   31.704356][  T153] __nand_correct_data: uncorrectable ECC error
[   31.710348][  T153] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   31.721370][  T153] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   32.219759][  T153] __nand_correct_data: uncorrectable ECC error
[   32.225859][  T153] __nand_correct_data: uncorrectable ECC error
[   32.231853][  T153] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   32.243454][  T153] __nand_correct_data: uncorrectable ECC error
[   32.249527][  T153] __nand_correct_data: uncorrectable ECC error
[   32.255542][  T153] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   32.266562][  T153] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   34.286406][  T157] __nand_correct_data: uncorrectable ECC error
[   34.292395][  T157] __nand_correct_data: uncorrectable ECC error
[   34.298461][  T157] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.310076][  T157] __nand_correct_data: uncorrectable ECC error
[   34.316088][  T157] __nand_correct_data: uncorrectable ECC error
[   34.322082][  T157] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   34.333102][  T157] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   34.831156][  T157] __nand_correct_data: uncorrectable ECC error
[   34.837259][  T157] __nand_correct_data: uncorrectable ECC error
[   34.843258][  T157] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.854859][  T157] __nand_correct_data: uncorrectable ECC error
[   34.860845][  T157] __nand_correct_data: uncorrectable ECC error
[   34.866922][  T157] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   34.877953][  T157] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   36.897152][  T161] __nand_correct_data: uncorrectable ECC error
[   36.903144][  T161] __nand_correct_data: uncorrectable ECC error
[   36.909220][  T161] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   36.920854][  T161] __nand_correct_data: uncorrectable ECC error
[   36.926864][  T161] __nand_correct_data: uncorrectable ECC error
[   36.932856][  T161] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   36.943878][  T161] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   37.441488][  T161] __nand_correct_data: uncorrectable ECC error
[   37.447589][  T161] __nand_correct_data: uncorrectable ECC error
[   37.453583][  T161] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   37.465184][  T161] __nand_correct_data: uncorrectable ECC error
[   37.471162][  T161] __nand_correct_data: uncorrectable ECC error
[   37.477239][  T161] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   37.488269][  T161] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   37.833832][    C0] random: crng init done
Begin: Running /scripts/local-block ... done.
[   39.508473][  T165] __nand_correct_data: uncorrectable ECC error
[   39.514570][  T165] __nand_correct_data: uncorrectable ECC error
[   39.520566][  T165] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   39.532163][  T165] __nand_correct_data: uncorrectable ECC error
[   39.538231][  T165] __nand_correct_data: uncorrectable ECC error
[   39.544246][  T165] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   39.555265][  T165] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   40.053326][  T165] __nand_correct_data: uncorrectable ECC error
[   40.059430][  T165] __nand_correct_data: uncorrectable ECC error
[   40.065481][  T165] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   40.077099][  T165] __nand_correct_data: uncorrectable ECC error
[   40.083086][  T165] __nand_correct_data: uncorrectable ECC error
[   40.089107][  T165] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   40.100131][  T165] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   42.120063][  T169] __nand_correct_data: uncorrectable ECC error
[   42.126169][  T169] __nand_correct_data: uncorrectable ECC error
[   42.132161][  T169] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   42.143761][  T169] __nand_correct_data: uncorrectable ECC error
[   42.149828][  T169] __nand_correct_data: uncorrectable ECC error
[   42.155849][  T169] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   42.166869][  T169] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   42.665121][  T169] __nand_correct_data: uncorrectable ECC error
[   42.671114][  T169] __nand_correct_data: uncorrectable ECC error
[   42.677176][  T169] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   42.688786][  T169] __nand_correct_data: uncorrectable ECC error
[   42.694798][  T169] __nand_correct_data: uncorrectable ECC error
[   42.700791][  T169] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   42.711812][  T169] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   44.730822][  T173] __nand_correct_data: uncorrectable ECC error
[   44.736929][  T173] __nand_correct_data: uncorrectable ECC error
[   44.742928][  T173] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   44.754529][  T173] __nand_correct_data: uncorrectable ECC error
[   44.760515][  T173] __nand_correct_data: uncorrectable ECC error
[   44.766590][  T173] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   44.777621][  T173] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   45.275812][  T173] __nand_correct_data: uncorrectable ECC error
[   45.281801][  T173] __nand_correct_data: uncorrectable ECC error
[   45.287866][  T173] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   45.299474][  T173] __nand_correct_data: uncorrectable ECC error
[   45.305485][  T173] __nand_correct_data: uncorrectable ECC error
[   45.311478][  T173] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   45.322500][  T173] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   47.341436][  T177] __nand_correct_data: uncorrectable ECC error
[   47.347538][  T177] __nand_correct_data: uncorrectable ECC error
[   47.353529][  T177] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   47.365128][  T177] __nand_correct_data: uncorrectable ECC error
[   47.371108][  T177] __nand_correct_data: uncorrectable ECC error
[   47.377184][  T177] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   47.388214][  T177] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   47.886156][  T177] __nand_correct_data: uncorrectable ECC error
[   47.892145][  T177] __nand_correct_data: uncorrectable ECC error
[   47.898208][  T177] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   47.909819][  T177] __nand_correct_data: uncorrectable ECC error
[   47.915829][  T177] __nand_correct_data: uncorrectable ECC error
[   47.921822][  T177] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   47.932843][  T177] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   49.952892][  T181] __nand_correct_data: uncorrectable ECC error
[   49.958997][  T181] __nand_correct_data: uncorrectable ECC error
[   49.965056][  T181] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   49.976674][  T181] __nand_correct_data: uncorrectable ECC error
[   49.982659][  T181] __nand_correct_data: uncorrectable ECC error
[   49.988680][  T181] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   49.999704][  T181] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   50.497843][  T181] __nand_correct_data: uncorrectable ECC error
[   50.503834][  T181] __nand_correct_data: uncorrectable ECC error
[   50.509924][  T181] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   50.521516][  T181] __nand_correct_data: uncorrectable ECC error
[   50.527584][  T181] __nand_correct_data: uncorrectable ECC error
[   50.533574][  T181] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   50.544598][  T181] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   52.563905][  T185] __nand_correct_data: uncorrectable ECC error
[   52.570011][  T185] __nand_correct_data: uncorrectable ECC error
[   52.576061][  T185] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   52.587682][  T185] __nand_correct_data: uncorrectable ECC error
[   52.593668][  T185] __nand_correct_data: uncorrectable ECC error
[   52.599688][  T185] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   52.610711][  T185] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   53.108970][  T185] __nand_correct_data: uncorrectable ECC error
[   53.115074][  T185] __nand_correct_data: uncorrectable ECC error
[   53.121065][  T185] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   53.132786][  T185] __nand_correct_data: uncorrectable ECC error
[   53.138871][  T185] __nand_correct_data: uncorrectable ECC error
[   53.144895][  T185] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   53.155922][  T185] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   55.186452][  T189] __nand_correct_data: uncorrectable ECC error
[   55.192443][  T189] __nand_correct_data: uncorrectable ECC error
[   55.198507][  T189] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   55.210119][  T189] __nand_correct_data: uncorrectable ECC error
[   55.216139][  T189] __nand_correct_data: uncorrectable ECC error
[   55.222129][  T189] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   55.233150][  T189] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   55.731035][  T189] __nand_correct_data: uncorrectable ECC error
[   55.737140][  T189] __nand_correct_data: uncorrectable ECC error
[   55.743134][  T189] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   55.754731][  T189] __nand_correct_data: uncorrectable ECC error
[   55.760712][  T189] __nand_correct_data: uncorrectable ECC error
[   55.766786][  T189] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   55.777810][  T189] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   57.808388][  T193] __nand_correct_data: uncorrectable ECC error
[   57.814487][  T193] __nand_correct_data: uncorrectable ECC error
[   57.820482][  T193] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   57.832080][  T193] __nand_correct_data: uncorrectable ECC error
[   57.838148][  T193] __nand_correct_data: uncorrectable ECC error
[   57.844163][  T193] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   57.855183][  T193] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   58.353090][  T193] __nand_correct_data: uncorrectable ECC error
[   58.359191][  T193] __nand_correct_data: uncorrectable ECC error
[   58.365243][  T193] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   58.376862][  T193] __nand_correct_data: uncorrectable ECC error
[   58.382847][  T193] __nand_correct_data: uncorrectable ECC error
[   58.388867][  T193] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   58.399891][  T193] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   60.430293][  T197] __nand_correct_data: uncorrectable ECC error
[   60.436398][  T197] __nand_correct_data: uncorrectable ECC error
[   60.442395][  T197] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   60.453993][  T197] __nand_correct_data: uncorrectable ECC error
[   60.460061][  T197] __nand_correct_data: uncorrectable ECC error
[   60.466076][  T197] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   60.477104][  T197] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   60.974959][  T197] __nand_correct_data: uncorrectable ECC error
[   60.980949][  T197] __nand_correct_data: uncorrectable ECC error
[   60.987012][  T197] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   60.998623][  T197] __nand_correct_data: uncorrectable ECC error
[   61.004634][  T197] __nand_correct_data: uncorrectable ECC error
[   61.010626][  T197] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   61.021648][  T197] Buffer I/O error on dev mtdblock5, logical block 0, async page read
done.
[   62.049726][  T199] __nand_correct_data: uncorrectable ECC error
[   62.055834][  T199] __nand_correct_data: uncorrectable ECC error
[   62.061824][  T199] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   62.073422][  T199] __nand_correct_data: uncorrectable ECC error
[   62.079488][  T199] __nand_correct_data: uncorrectable ECC error
[   62.085620][  T199] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   62.096654][  T199] Buffer I/O error on dev mtdblock5, logical block 0, async page read
[   62.594408][  T199] __nand_correct_data: uncorrectable ECC error
[   62.600405][  T199] __nand_correct_data: uncorrectable ECC error
[   62.606466][  T199] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   62.618078][  T199] __nand_correct_data: uncorrectable ECC error
[   62.624090][  T199] __nand_correct_data: uncorrectable ECC error
[   62.630082][  T199] blk_update_request: I/O error, dev mtdblock5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   62.641104][  T199] Buffer I/O error on dev mtdblock5, logical block 0, async page read
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

Re: Bricked NSA320S during 2017.07 flash
April 09, 2021 04:26PM
mervin,

The bootargs mtdparts env was wrong in this boot.

mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)

Power up. Interrupt serial console and

setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)'
printenv
And then
boot

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



Edited 1 time(s). Last edit at 04/09/2021 04:27PM by bodhi.
Re: Bricked NSA320S during 2017.07 flash
April 10, 2021 04:58PM
bodhi
was a bit different result but debian did not boot fully. so far I can remember on I try to install debian on HDD and then I was booting from usb, thats was only time I got debian running with both HDDs, but was total mess was reading bit from usb and otber bit from hdd. Now I got same feeling as hdd get initialized in debian then linux start looking for rootfs on hdd instead of usb

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

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

Environment size: 3112/131068 bytes
NSA3x0S> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            30717952        00057363-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
70 bytes read in 538 ms (0 Bytes/s)
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 508 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5524320 bytes read in 778 ms (6.8 MiB/s)
loading uInitrd ...
9484105 bytes read in 736 ms (12.3 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...
12586 bytes read in 1461 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:58:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5524256 Bytes = 5.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.8.3-kirkwood-tld-1
   Created:      2021-02-24  12:59:13 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9484041 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f200000, end 0fb0b709 ... OK
   Loading Device Tree to 0f1f9000, end 0f1ff129 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.8.3-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 Aug 22 16:10:01 PDT 2020
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320S
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232740K/262144K available (10240K kernel code, 1085K rwdata, 4108K rodata, 1024K init, 298K bss, 29404K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000011][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000060][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000996][    T0] Console: colour dummy device 80x30
[    0.001059][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001093][    T0] pid_max: default: 32768 minimum: 301
[    0.001587][    T0] LSM: Security Framework initializing
[    0.001764][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001797][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003331][    T0] CPU: Testing write buffer coherency: ok
[    0.005402][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005769][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006119][    T1] rcu: Hierarchical SRCU implementation.
[    0.009409][    T1] devtmpfs: initialized
[    0.017218][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017261][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.017605][    T1] xor: measuring software checksum speed
[    0.110138][    T1]    arm4regs  :   901.600 MB/sec
[    0.210101][    T1]    8regs     :   541.600 MB/sec
[    0.310096][    T1]    32regs    :   787.200 MB/sec
[    0.310120][    T1] xor: using function: arm4regs (901.600 MB/sec)
[    0.310149][    T1] prandom: seed boundary self test passed
[    0.315189][    T1] prandom: 100 self tests passed
[    0.315204][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316269][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.317069][    T1] NET: Registered protocol family 16
[    0.317848][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318933][    T1] audit: initializing netlink subsys (disabled)
[    0.320767][   T16] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320918][    T1] cpuidle: using governor ladder
[    0.321015][    T1] cpuidle: using governor menu
[    0.321605][    T1] Feroceon L2: Enabling L2
[    0.321660][    T1] Feroceon L2: Cache support initialised.
[    0.334746][    T1] No ATAGs?
[    2.560067][    C0] random: fast init done
[    6.420148][    T1] raid6: int32x8  gen()    93 MB/s
[    6.590342][    T1] raid6: int32x8  xor()    58 MB/s
[    6.760181][    T1] raid6: int32x4  gen()    95 MB/s
[    6.930241][    T1] raid6: int32x4  xor()    61 MB/s
[    7.100151][    T1] raid6: int32x2  gen()   123 MB/s
[    7.270117][    T1] raid6: int32x2  xor()    75 MB/s
[    7.440182][    T1] raid6: int32x1  gen()    93 MB/s
[    7.610252][    T1] raid6: int32x1  xor()    54 MB/s
[    7.610265][    T1] raid6: using algorithm int32x2 gen() 123 MB/s
[    7.610276][    T1] raid6: .... xor() 75 MB/s, rmw enabled
[    7.610286][    T1] raid6: using intx1 recovery algorithm
[    7.610594][    T1] vgaarb: loaded
[    7.611260][    T1] SCSI subsystem initialized
[    7.611841][    T1] usbcore: registered new interface driver usbfs
[    7.611917][    T1] usbcore: registered new interface driver hub
[    7.612014][    T1] usbcore: registered new device driver usb
[    7.612242][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.612256][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.612288][    T1] PTP clock support registered
[    7.614105][    T1] clocksource: Switched to clocksource orion_clocksource
[    9.396920][    T1] VFS: Disk quotas dquot_6.6.0
[    9.397038][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.409015][    T1] NET: Registered protocol family 2
[    9.410035][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    9.410082][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    9.410126][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    9.410164][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    9.410681][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.410725][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.410987][    T1] NET: Registered protocol family 1
[    9.411753][    T1] RPC: Registered named UNIX socket transport module.
[    9.411769][    T1] RPC: Registered udp transport module.
[    9.411779][    T1] RPC: Registered tcp transport module.
[    9.411789][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.411807][    T1] PCI: CLS 0 bytes, default 32
[    9.412183][    T1] Trying to unpack rootfs image as initramfs...
[   10.394806][    T1] Freeing initrd memory: 9264K
[   10.395012][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.406993][    T1] Initialise system trusted keyrings
[   10.407063][    T1] Key type blacklist registered
[   10.407309][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   10.407432][    T1] zbud: loaded
[   10.409097][    T1] NFS: Registering the id_resolver key type
[   10.409137][    T1] Key type id_resolver registered
[   10.409150][    T1] Key type id_legacy registered
[   10.409175][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.409197][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.409521][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.410039][    T1] fuse: init (API version 7.31)
[   10.410501][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.410754][    T1] orangefs_init: module version upstream loaded
[   10.410769][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.532837][    T1] async_tx: api initialized (async)
[   10.532865][    T1] Key type asymmetric registered
[   10.532878][    T1] Asymmetric key parser 'x509' registered
[   10.532943][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.533166][    T1] io scheduler bfq registered
[   10.772441][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.774935][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.774963][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.774983][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.775000][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.775146][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.775195][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.776868][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.776901][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.778421][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.778452][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.778699][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.778721][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.779423][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.835341][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.838483][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.895293][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.898736][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.900321][    T1] printk: console [ttyS0] disabled
[   10.900427][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
[   11.782329][    T1] printk: console [ttyS0] enabled
[   11.796730][    T1] loop: module loaded
[   11.801243][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.810798][    T1] scsi host0: sata_mv
[   11.815363][    T1] scsi host1: sata_mv
[   11.819484][    T1] ata1: SATA max UDMA/133 irq 32
[   11.824357][    T1] ata2: SATA max UDMA/133 irq 32
[   11.830266][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[   11.837421][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[   11.842372][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   11.850670][    T1] Scanning device for bad blocks
[   11.860595][    T1] Bad eraseblock 100 at 0x000000c80000
[   11.871011][    T1] Bad eraseblock 200 at 0x000001900000
[   11.918101][    T1] 2 cmdlinepart partitions found on MTD device orion_nand
[   11.925060][    T1] Creating 2 MTD partitions on "orion_nand":
[   11.930884][    T1] 0x000000000000-0x000000100000 : "uboot"
[   11.938170][    T1] 0x000000100000-0x000000180000 : "uboot_env"
[   11.946129][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   11.954668][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   11.966555][    T1] libphy: Fixed MDIO Bus: probed
[   11.972759][    T1] libphy: orion_mdio_bus: probed
[   11.977614][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove
[   12.007989][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.016937][    T1] mv643xx_eth: Set the PHY to fix link down
[   12.017921][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 4c:9e:ff:0b:73:72
[   12.033304][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.040656][    T1] ehci-pci: EHCI PCI platform driver
[   12.045926][    T1] ehci-orion: EHCI orion driver
[   12.050837][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.057127][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.065720][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.094250][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.101284][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
[   12.110273][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.118208][    T1] usb usb1: Product: EHCI Host Controller
[   12.123790][    T1] usb usb1: Manufacturer: Linux 5.8.3-kirkwood-tld-1 ehci_hcd
[   12.131113][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.137320][    T1] hub 1-0:1.0: USB hub found
[   12.141841][    T1] hub 1-0:1.0: 1 port detected
[   12.147397][    T1] usbcore: registered new interface driver usb-storage
[   12.154635][    T1] mousedev: PS/2 mouse device common for all mice
[   12.161235][    T1] i2c /dev entries driver
[   12.168248][    T1] ht1382 0-0068: registered as rtc0
[   12.174373][    T1] ht1382 0-0068: setting system clock to 2021-04-10T13:40:24 UTC (1618062024)
[   12.184065][    T1] device-mapper: uevent: version 1.0.3
[   12.189814][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[   12.199476][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.206753][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.214037][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.221450][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.228246][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.237398][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.243647][    T1] drop_monitor: Initializing network drop monitor service
[   12.251154][    T1] NET: Registered protocol family 10
[   12.257915][    T1] Segment Routing with IPv6
[   12.262264][    T1] RPL Segment Routing with IPv6
[   12.267119][    T1] NET: Registered protocol family 17
[   12.272502][    T1] Key type dns_resolver registered
[   12.278021][    T1] registered taskstats version 1
[   12.282795][    T1] Loading compiled-in X.509 certificates
[   12.288441][    T1] zswap: loaded using pool lzo/zbud
[   12.293885][    T1] Key type ._fscrypt registered
[   12.298662][    T1] Key type .fscrypt registered
[   12.303261][    T1] Key type fscrypt-provisioning registered
[   12.311026][    T1] Key type big_key registered
[   12.350487][    T1] Key type encrypted registered
[   12.474160][   T89] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.514151][  T100] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.715979][  T100] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   12.724859][  T100] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   12.732677][  T100] usb 1-1: Product: USB2.0 Hub
[   12.738301][  T100] hub 1-1:1.0: USB hub found
[   12.743228][  T100] hub 1-1:1.0: 4 ports detected
[   13.304213][   T89] ata1.00: ATA-8: WDC WD10EAVS-00D7B0, 01.01A01, max UDMA/133
[   13.311503][   T89] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   13.323721][   T89] ata1.00: configured for UDMA/133
[   13.339286][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EAVS-00D 1A01 PQ: 0 ANSI: 5
[   13.349462][   T93] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   13.358433][   T93] sd 0:0:0:0: [sda] Write Protect is off
[   13.364091][   T93] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.384439][   T93]  sda: sda1
[   13.389201][   T93] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.685814][   T91] ata2: SATA link down (SStatus 0 SControl F300)
[   13.705115][    T1] Freeing unused kernel memory: 1024K
[   13.711336][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.717715][    T1] Run /init as init process
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   48.549101][    C0] random: crng init done
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

Re: Bricked NSA320S during 2017.07 flash
April 10, 2021 05:42PM
mervin,

> and otber bit from hdd. Now I got same feeling as
> hdd get initialized in debian then linux start
> looking for rootfs on hdd instead of usb

Not likely, since your bootargs is correct:

[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)
The kernel will look for a partition that has the label rootfs. It will scan all drives, USB and HDD, to find that partition.

So the next thing to do is shutdown, and take the USB rootfs to another box and

- check for error using e2fsck
- Make sure the partition label is rootfs

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
April 11, 2021 03:18PM
Hi Bodhi

I play around with setup and get couple bootlogs. I upgraded to newest kernel and get debian boot with 2 hdds, but fdisk -l get debian in bits. So far I could say 1st sata slot is giving trouble. 2nd slot no problem but your fix from kernel 5.8.3 in DTS file is not working, I need to use init sata power.
Attachments:
open | download - kernel_5.8.3_1st_hdd (20.6 KB)
open | download - kernel_5.8.3_2nd_hdd_WITHOUT_init_sata_power (25.2 KB)
open | download - kernel_5.11.4_2hdds_init_sata_power (35.8 KB)
Re: Bricked NSA320S during 2017.07 flash
April 11, 2021 03:19PM
continued
Attachments:
open | download - kernel_5.11.4_1st_hdd_init_sata_power (38.2 KB)
open | download - kernel_5.11.4_2hdds_WITHOUT_init_sata_power (38.5 KB)
open | download - kernel_5.11.4_2nd_hdd_init_sata_power (28.3 KB)
Re: Bricked NSA320S during 2017.07 flash
April 11, 2021 06:25PM
Hi mervin,

I think I need to modify the DTS to fix this problem once for all.

However, as I recall the init_sata_power must be used always. Let me take sometime (in the next few days) and will upload a new DTB for you to test.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
April 12, 2021 12:03AM
Bodhi

init_sata_power is the smallest issue here, I would say to get 1st sata running without issues its the main thing. Take your time, no hurry

Thanks

Quote

bodhi Wrote:
-------------------------------------------------------
> Hi mervin,
>
> I think I need to modify the DTS to fix this problem once for all.
>
> However, as I recall the init_sata_power must be used always. Let me take sometime (in the next few days) and will upload a new DTB for you to test.
Re: Bricked NSA320S during 2017.07 flash
April 12, 2021 12:25AM
mervin,

> init_sata_power is the smallest issue here, I
> would say to get 1st sata running without issues
> its the main thing.

Not really! I meant the 2nd SATA only (and only if 3.5" HDD is used). The 1st SATA has been working OK for both 2.5" and 3.5" HDDs. And the 2nd SATA has been working fine for 2.5" HDD.

If you meant you have issue with a single SATA in the 1st slot, then that's something I'm not aware of. I'd suspect that problem is only with your box.

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



Edited 1 time(s). Last edit at 04/12/2021 12:26AM by bodhi.
Re: Bricked NSA320S during 2017.07 flash
April 12, 2021 12:39AM
bodhi

I mean debian cannot access hdds when 1st SATA is plugged. Any suggestions what can be wrong?
root@debian:~# fdisk -l
Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 512 KiB, 524288 bytes, 1024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


[  101.882792][    T5] usb 1-1.1: USB disconnect, device number 4
[  101.895765][   T76] blk_update_request: I/O error, dev sdb, sector 272936 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  101.906886][   T76] EXT4-fs warning (device sdb1): ext4_end_bio:346: I/O error 10 writing to inode 262805 starting block 34118)
[  101.918768][   T76] Buffer I/O error on device sdb1, logical block 33861
[  101.926169][   T76] blk_update_request: I/O error, dev sdb, sector 8796224 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  101.937356][   T76] EXT4-fs warning (device sdb1): ext4_end_bio:346: I/O error 10 writing to inode 262736 starting block 1099529)
[  101.949372][   T76] Buffer I/O error on device sdb1, logical block 1099272
[  101.956602][   T76] blk_update_request: I/O error, dev sdb, sector 8661848 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  101.967745][   T76] EXT4-fs warning (device sdb1): ext4_end_bio:346: I/O error 10 writing to inode 261501 starting block 1082732)
[  101.979830][   T58] Buffer I/O error on device sdb1, logical block 1082475
[  101.987061][   T76] blk_update_request: I/O error, dev sdb, sector 8659224 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  101.998211][   T76] EXT4-fs warning (device sdb1): ext4_end_bio:346: I/O error 10 writing to inode 260888 starting block 1082404)
[  102.010176][   T76] Buffer I/O error on device sdb1, logical block 1082147
[  102.017388][   T76] blk_update_request: I/O error, dev sdb, sector 8664704 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  102.028526][   T76] EXT4-fs warning (device sdb1): ext4_end_bio:346: I/O error 10 writing to inode 260887 starting block 1083089)
[  102.040485][   T76] Buffer I/O error on device sdb1, logical block 1082832
[  102.047634][   T93] blk_update_request: I/O error, dev sdb, sector 8662392 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  102.071070][   T93] EXT4-fs warning (device sdb1): ext4_end_bio:346: I/O error 10 writing to inode 260884 starting block 1082800)
[  102.094478][   T93] Buffer I/O error on device sdb1, logical block 1082543
[  102.101569][   T76] blk_update_request: I/O error, dev sdb, sector 4196608 op 0x1:(WRITE) flags 0x3000 phys_seg 1 prio class 0
[  102.113802][   T76] Buffer I/O error on dev sdb1, logical block 524320, lost async page write
[  102.122484][   T76] blk_update_request: I/O error, dev sdb, sector 8391048 op 0x1:(WRITE) flags 0x3000 phys_seg 1 prio class 0
[  102.134202][   T76] Buffer I/O error on dev sdb1, logical block 1048625, lost async page write
[  102.143219][  T166] blk_update_request: I/O error, dev sdb, sector 12856160 op 0x1:(WRITE) flags 0x800 phys_seg 4 prio class 0
[  102.158079][    T5] blk_update_request: I/O error, dev sdb, sector 8391080 op 0x1:(WRITE) flags 0x3000 phys_seg 1 prio class 0
[  102.169842][  T166] Aborting journal on device sdb1-8.
[  102.175102][    T5] Buffer I/O error on dev sdb1, logical block 1048629, lost async page write
[  102.183744][  T166] Buffer I/O error on dev sdb1, logical block 1606659, lost sync page write
[  102.192992][  T166] JBD2: Error -5 detected when updating journal superblock for sdb1-8.
[  102.222497][    T5] JBD2: Error while async write back metadata bh 524320.
[  102.223129][    T5] JBD2: Error while async write back metadata bh 1048625.
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10EAVS-00D
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa7810ec0

Device     Boot    Start        End    Sectors   Size Id Type
/dev/sda1           2048   29999103   29997056  14.3G  7 HPFS/NTFS/exFAT
/dev/sda2       30001152 1953525167 1923524016 917.2G 83 Linux
root@debian:~# [  102.232114][    T5] JBD2: Error while async write back metadata bh 1048629.
[  102.574349][    T5] usb 1-1.1: new high-speed USB device number 5 using orion-ehci
[  102.739787][    T5] usb 1-1.1: New USB device found, idVendor=0951, idProduct=1665, bcdDevice= 1.00
[  102.748855][    T5] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  102.757232][    T5] usb 1-1.1: Product: DataTraveler 2.0
[  102.762533][    T5] usb 1-1.1: Manufacturer: Kingston
[  102.767908][    T5] usb 1-1.1: SerialNumber: 00241D8CE55DBE50595760E4
[  102.781597][    T5] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[  102.795688][    T5] scsi host3: usb-storage 1-1.1:1.0
[  103.908781][   T93] scsi 3:0:0:0: Direct-Access     Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 6
[  103.925606][   T93] sd 3:0:0:0: Attached scsi generic sg1 type 0
[  105.521345][   T58] sd 3:0:0:0: [sdc] 30720000 512-byte logical blocks: (15.7 GB/14.6 GiB)
[  105.530699][   T58] sd 3:0:0:0: [sdc] Write Protect is off
[  105.539692][   T58] sd 3:0:0:0: [sdc] No Caching mode page found
[  105.546276][   T58] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[  105.553854][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm systemd-udevd: reading directory lblock 0
[  105.566796][  T329] EXT4-fs (sdb1): Remounting filesystem read-only
[  105.573240][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #521337: comm systemd-udevd: reading directory lblock 0
[  105.586064][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm systemd-udevd: reading directory lblock 0
[  105.598620][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm systemd-udevd: reading directory lblock 0
[  105.611492][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #658197: comm systemd-udevd: reading directory lblock 0
[  105.623956][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #521270: comm systemd-udevd: reading directory lblock 0
[  105.636506][   T58]  sdc: sdc1
[  105.639938][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm systemd-udevd: reading directory lblock 0
[  105.656741][   T58] sd 3:0:0:0: [sdc] Attached SCSI removable disk
[  105.668740][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm systemd-udevd: reading directory lblock 0
[  105.681148][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm systemd-udevd: reading directory lblock 0
[  105.693875][  T329] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #521269: comm systemd-udevd: reading directory lblock 0
^C
root@debian:~# [  128.014903][ T1409] EXT4-fs error: 11 callbacks suppressed
[  128.014927][ T1409] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm cron: reading directory lblock 0
[  128.032208][ T1409] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm cron: reading directory lblock 0
[  128.043924][ T1409] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #262443: comm cron: reading directory lblock 0
[  128.055736][ T1409] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm cron: reading directory lblock 0
[  128.067517][ T1409] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm cron: reading directory lblock 0
[  128.079293][ T1409] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391149: comm cron: reading directory lblock 0
[  128.091290][ T1409] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #262443: comm cron: reading directory lblock 0
shutdown -h now
[  135.894715][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #651521: comm bash: reading directory lblock 0
[  135.906106][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #651521: comm bash: reading directory lblock 0
[  135.917952][ T2053] EXT4-fs warning (device sdb1): dx_probe:757: inode #657707: lblock 0: comm bash: error -5 reading directory block
[  135.930324][ T2053] EXT4-fs warning (device sdb1): dx_probe:757: inode #657831: lblock 0: comm bash: error -5 reading directory block
[  135.942689][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #390913: comm bash: reading directory lblock 0
[  135.954436][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391049: comm bash: reading directory lblock 0
-bash: shutdown: command not found
root@debian:~# shutdown -h now
[  137.364690][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #651521: comm bash: reading directory lblock 0
[  137.376078][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #651521: comm bash: reading directory lblock 0
[  137.387884][ T2053] EXT4-fs warning (device sdb1): dx_probe:757: inode #657707: lblock 0: comm bash: error -5 reading directory block
[  137.400216][ T2053] EXT4-fs warning (device sdb1): dx_probe:757: inode #657831: lblock 0: comm bash: error -5 reading directory block
[  137.412528][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #390913: comm bash: reading directory lblock 0
[  137.424140][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #391049: comm bash: reading directory lblock 0
-bash: shutdown: command not found
root@debian:~# shutdown -h now
[  138.604689][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #651521: comm bash: reading directory lblock 0
[  138.616232][ T2053] EXT4-fs error (device sdb1): __ext4_find_entry:1526: inode #651521: comm bash: reading directory lblock 0
[  138.628053][ T2053] EXT4-fs warning (device sdb1): dx_probe:757: inode #657707: lblock 0: comm bash: error -5 reading directory block
[  138.640389][ T2053] EXT4-fs warning (device sdb1): dx_probe:757: inode #657831: lblock 0: comm bash: error -5 reading directory block
-bash: shutdown: command not found
root@debian:~# shutdown -h now
[  139.554781][ T2053] EXT4-fs warning (device sdb1): dx_probe:757: inode #657707: lblock 0: comm bash: error -5 reading directory block
[  139.566915][ T2053] EXT4-fs warning (device sdb1): dx_probe:757: inode #657831: lblock 0: comm bash: error -5 reading directory block
-bash: shutdown: command not found
root@debian:~# ▒
Re: Bricked NSA320S during 2017.07 flash
April 19, 2021 04:17PM
Hi

I tryed something different. I install debian on HDD and try booted up with both of HDDs inserted. booted up fully without errors, both hdds are fully accesible. the reason for installing debian on USB was to get hdds spindown to save energy


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

SoC:   Kirkwood 88F6702_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0

Reset IDE: Bus 0: OK Bus 1: ............OK
  Device 0: Model: WDC WD10EACS-22D6B0  Firm: 01.01A01 Ser#:  WD-WCAU43709977
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
  Device 1: Model: WDC WD10EAVS-00D7B0  Firm: 01.01A01 Ser#:  WD-WCAU41984981
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            19997953        bf82038f-01     83
  2     20000768        1933524400      bf82038f-02     83


Partition Map for IDE device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            1953523120      ec2d0c47-01     83
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD10EACS-22D6B0  Firm: 01.01A01 Ser#:  WD-WCAU43709977
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
  Device 1: Model: WDC WD10EAVS-00D7B0  Firm: 01.01A01 Ser#:  WD-WCAU41984981
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 57 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
5350552 bytes read in 2005 ms (2.5 MiB/s)
loading uInitrd ...
9609342 bytes read in 3514 ms (2.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320s.dtb ...
12594 bytes read in 70 ms (174.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.11.4-kirkwood-tld-1
   Created:      2021-04-19  12:56:29 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-04-19  12:56:37 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9609278 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f1e1000, end 0fb0b03e ... OK
   Loading Device Tree to 0f1da000, end 0f1e0131 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.11.4-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 Sun Mar 7 18:16:07 PST 2021
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320S
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232144K/262144K available (10240K kernel code, 1544K rwdata, 4208K rodata, 1024K init, 305K bss, 30000K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000002][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000066][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000973][    T0] Console: colour dummy device 80x30
[    0.001056][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001104][    T0] pid_max: default: 32768 minimum: 301
[    0.001556][    T0] LSM: Security Framework initializing
[    0.001763][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001816][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003420][    T0] CPU: Testing write buffer coherency: ok
[    0.005971][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.006350][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006740][    T1] rcu: Hierarchical SRCU implementation.
[    0.008295][    T1] devtmpfs: initialized
[    0.015623][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015687][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.060692][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.060742][    T1] prandom: seed boundary self test passed
[    0.065790][    T1] prandom: 100 self tests passed
[    0.065812][    T1] pinctrl core: initialized pinctrl subsystem
[    0.067565][    T1] NET: Registered protocol family 16
[    0.068407][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.069477][    T1] audit: initializing netlink subsys (disabled)
[    0.071139][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.071564][   T16] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1
[    0.071749][    T1] cpuidle: using governor ladder
[    0.071859][    T1] cpuidle: using governor menu
[    0.072469][    T1] Feroceon L2: Enabling L2
[    0.072529][    T1] Feroceon L2: Cache support initialised.
[    0.084917][    T1] No ATAGs?
[    2.560073][    C0] random: fast init done
[    5.947081][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    6.170340][    T1] raid6: int32x8  gen()    93 MB/s
[    6.340227][    T1] raid6: int32x8  xor()    57 MB/s
[    6.510335][    T1] raid6: int32x4  gen()    94 MB/s
[    6.680266][    T1] raid6: int32x4  xor()    61 MB/s
[    6.850110][    T1] raid6: int32x2  gen()   121 MB/s
[    7.020147][    T1] raid6: int32x2  xor()    72 MB/s
[    7.190255][    T1] raid6: int32x1  gen()    93 MB/s
[    7.360301][    T1] raid6: int32x1  xor()    54 MB/s
[    7.360322][    T1] raid6: using algorithm int32x2 gen() 121 MB/s
[    7.360339][    T1] raid6: .... xor() 72 MB/s, rmw enabled
[    7.360353][    T1] raid6: using intx1 recovery algorithm
[    7.360648][    T1] vgaarb: loaded
[    7.361291][    T1] SCSI subsystem initialized
[    7.361861][    T1] usbcore: registered new interface driver usbfs
[    7.361958][    T1] usbcore: registered new interface driver hub
[    7.362037][    T1] usbcore: registered new device driver usb
[    7.362273][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.362292][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.362331][    T1] PTP clock support registered
[    7.364316][    T1] clocksource: Switched to clocksource orion_clocksource
[    7.465019][    T1] VFS: Disk quotas dquot_6.6.0
[    7.465154][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.484973][    T1] NET: Registered protocol family 2
[    7.494863][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    7.494927][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    7.494980][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    7.495027][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    7.495275][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    7.495361][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.495405][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.495668][    T1] NET: Registered protocol family 1
[    7.496486][    T1] RPC: Registered named UNIX socket transport module.
[    7.496513][    T1] RPC: Registered udp transport module.
[    7.496528][    T1] RPC: Registered tcp transport module.
[    7.496542][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.496562][    T1] PCI: CLS 0 bytes, default 32
[    7.496916][    T1] Trying to unpack rootfs image as initramfs...
[    9.434785][    T1] Freeing initrd memory: 9388K
[    9.435016][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.231400][    T1] Initialise system trusted keyrings
[   10.231483][    T1] Key type blacklist registered
[   10.231757][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   10.231899][    T1] zbud: loaded
[   10.233536][    T1] NFS: Registering the id_resolver key type
[   10.233589][    T1] Key type id_resolver registered
[   10.233607][    T1] Key type id_legacy registered
[   10.233657][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.233687][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.234006][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.234658][    T1] fuse: init (API version 7.33)
[   10.235130][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.235387][    T1] orangefs_init: module version upstream loaded
[   10.235410][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.354467][    T1] xor: measuring software checksum speed
[   10.365186][    T1]    arm4regs        :   927 MB/sec
[   10.382947][    T1]    8regs           :   556 MB/sec
[   10.395202][    T1]    32regs          :   809 MB/sec
[   10.395224][    T1] xor: using function: arm4regs (927 MB/sec)
[   10.395250][    T1] async_tx: api initialized (async)
[   10.395274][    T1] Key type asymmetric registered
[   10.395290][    T1] Asymmetric key parser 'x509' registered
[   10.395361][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.395513][    T1] io scheduler bfq registered
[   10.634819][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.637084][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[   10.637191][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[   10.637247][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.637288][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.637636][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.637666][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.637697][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   10.637724][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.637749][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.637913][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.637960][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.639731][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.639774][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.641331][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.641369][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.641616][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.641651][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.642482][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.705647][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.708691][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.765606][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.768922][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.770560][    T1] printk: console [ttyS0] disabled
[   10.770676][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
[   11.721601][    T1] printk: console [ttyS0] enabled
[   11.736164][    T1] loop: module loaded
[   11.740919][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.750633][    T1] scsi host0: sata_mv
[   11.755246][    T1] scsi host1: sata_mv
[   11.759369][    T1] ata1: SATA max UDMA/133 irq 32
[   11.764157][    T1] ata2: SATA max UDMA/133 irq 32
[   11.770465][    T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[   11.777608][    T1] nand: Eon NAND 128MiB 3,3V 8-bit
[   11.782558][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   11.790891][    T1] Scanning device for bad blocks
[   11.800833][    T1] Bad eraseblock 100 at 0x000000c80000
[   11.811265][    T1] Bad eraseblock 200 at 0x000001900000
[   11.858418][    T1] 2 cmdlinepart partitions found on MTD device orion_nand
[   11.865376][    T1] Creating 2 MTD partitions on "orion_nand":
[   11.871192][    T1] 0x000000000000-0x000000100000 : "uboot"
[   11.878435][    T1] 0x000000100000-0x000000180000 : "uboot_env"
[   11.886543][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   11.895086][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   11.906872][    T1] libphy: Fixed MDIO Bus: probed
[   11.913304][    T1] libphy: orion_mdio_bus: probed
[   11.918146][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove
[   11.948668][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.958203][    T1] mv643xx_eth: Set the PHY to fix link down
[   11.958960][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 4c:9e:ff:0b:73:72
[   11.974473][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.981708][    T1] ehci-pci: EHCI PCI platform driver
[   11.987020][    T1] ehci-orion: EHCI orion driver
[   11.991960][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   11.998274][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.006874][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.034347][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.041387][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.11
[   12.050374][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.058316][    T1] usb usb1: Product: EHCI Host Controller
[   12.063908][    T1] usb usb1: Manufacturer: Linux 5.11.4-kirkwood-tld-1 ehci_hcd
[   12.071324][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.077501][    T1] hub 1-0:1.0: USB hub found
[   12.082029][    T1] hub 1-0:1.0: 1 port detected
[   12.087687][    T1] usbcore: registered new interface driver usb-storage
[   12.094981][    T1] mousedev: PS/2 mouse device common for all mice
[   12.101556][    T1] i2c /dev entries driver
[   12.106622][    T1] i2c i2c-0: Not using recovery: no recover_bus() found
[   12.115344][    T1] ht1382 0-0068: registered as rtc0
[   12.121463][    T1] ht1382 0-0068: setting system clock to 2021-04-19T13:00:34 UTC (1618837234)
[   12.131483][    T1] device-mapper: uevent: version 1.0.3
[   12.137171][    T1] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[   12.146833][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.154038][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.161394][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.168815][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.175613][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.184917][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.191157][    T1] drop_monitor: Initializing network drop monitor service
[   12.198806][    T1] NET: Registered protocol family 10
[   12.205413][    T1] Segment Routing with IPv6
[   12.209764][    T1] RPL Segment Routing with IPv6
[   12.214617][    T1] NET: Registered protocol family 17
[   12.219992][    T1] Key type dns_resolver registered
[   12.225586][    T1] registered taskstats version 1
[   12.230375][    T1] Loading compiled-in X.509 certificates
[   12.236337][    T1] zswap: loaded using pool lzo/zbud
[   12.241766][    T1] Key type ._fscrypt registered
[   12.246554][    T1] Key type .fscrypt registered
[   12.251159][    T1] Key type fscrypt-provisioning registered
[   12.258925][    T1] Key type big_key registered
[   12.264409][   T89] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.306504][    T1] Key type encrypted registered
[   12.314579][   T89] ata1.00: ATA-8: WDC WD10EACS-22D6B0, 01.01A01, max UDMA/133
[   12.321885][   T89] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.334705][   T89] ata1.00: configured for UDMA/133
[   12.350253][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EACS-22D 1A01 PQ: 0 ANSI: 5
[   12.360512][   T93] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   12.369478][   T93] sd 0:0:0:0: [sda] Write Protect is off
[   12.375197][   T93] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.387790][   T93]  sda: sda1 sda2
[   12.393190][   T93] sd 0:0:0:0: [sda] Attached SCSI disk
[   12.454349][  T100] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.656264][  T100] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   12.665174][  T100] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   12.673029][  T100] usb 1-1: Product: USB2.0 Hub
[   12.678606][  T100] hub 1-1:1.0: USB hub found
[   12.683382][  T100] hub 1-1:1.0: 4 ports detected
[   13.014360][   T91] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   13.384404][   T91] ata2.00: ATA-8: WDC WD10EAVS-00D7B0, 01.01A01, max UDMA/133
[   13.391699][   T91] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   13.403898][   T91] ata2.00: configured for UDMA/133
[   13.419450][   T58] scsi 1:0:0:0: Direct-Access     ATA      WDC WD10EAVS-00D 1A01 PQ: 0 ANSI: 5
[   13.429569][   T93] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   13.438384][   T93] sd 1:0:0:0: [sdb] Write Protect is off
[   13.444005][   T93] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.457260][   T93]  sdb: sdb1
[   13.461980][   T93] sd 1:0:0:0: [sdb] Attached SCSI disk
[   13.470415][    T1] Freeing unused kernel memory: 1024K
[   13.476693][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.483046][    T1] Run /init as init process
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   26.346846][  T149] process '/usr/bin/fstype' started with executable stack
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: clean, 18068/625856 files, 311880/2499744 blocks
done.
[   26.812242][  T158] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   26.841489][  T158] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   30.647275][  T345] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   30.797889][  T347] systemd-udevd[347]: Using default interface naming scheme 'v240'.
[   30.960892][  T347] systemd-udevd[347]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   31.104558][  T367] orion_wdt: Initial timeout 25 sec
[   31.375787][  T347] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   31.456070][  T347] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   31.586816][    C0] random: crng init done
[   31.727855][  T348] marvell-cesa f1030000.crypto: CESA device successfully registered
[   31.831255][  T365] systemd-udevd[365]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   34.814616][  T567] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/4c:9e:ff:0b:73:72
Sending on   LPF/eth0/4c:9e:ff:0b:73:72
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   39.361909][ T1091] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   41.493378][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   41.510698][  T100] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPOFFER of 192.168.100.11 from 192.168.100.100
DHCPREQUEST for 192.168.100.11 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.100.11 from 192.168.100.100
bound to 192.168.100.11 -- renewal in 528646380 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1324 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1351 (klogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password:
Last login: Mon Apr 19 05:49:24 PDT 2021 on ttyS0
Linux debian 5.11.4-kirkwood-tld-1 #1.0 PREEMPT Sun Mar 7 18:16:07 PST 2021 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# fdisk -l
Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 512 KiB, 524288 bytes, 1024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10EACS-22D
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbf82038f

Device     Boot    Start        End    Sectors  Size Id Type
/dev/sda1           2048   20000000   19997953  9.5G 83 Linux
/dev/sda2       20000768 1953525167 1933524400  922G 83 Linux


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10EAVS-00D
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xec2d0c47

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdb1        2048 1953525167 1953523120 931.5G 83 Linux
root@debian:~# e2label /dev/sda1
rootfs
root@debian:~# e2label /dev/sdb1
DISK2

Re: Bricked NSA320S during 2017.07 flash
April 19, 2021 05:22PM
mervin,

> I tryed something different. I install debian on
> HDD and try booted up with both of HDDs inserted.
> booted up fully without errors, both hdds are
> fully accesible.

Nice! are they both 3.5" HDD?

> the reason for installing debian
> on USB was to get hdds spindown to save energy

Somehow I think we are missing something here! my NSA310S is running with USB rootfs. The USB thumb drive is Sandisk Ultra Fit 16GB USB 3.0, but it is attached to USB 2.0 port.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
April 20, 2021 04:50AM
bodhi Wrote:
-------------------------------------------------------

> Nice! are they both 3.5" HDD?

Yes, both are 3.5" HDD

> Somehow I think we are missing something here! my
> NSA310S is running with USB rootfs. The USB thumb
> drive is Sandisk Ultra Fit 16GB USB 3.0, but it is
> attached to USB 2.0 port.

I tried couple USB with samo output. I was thinking to reflash uboot and enviroments.
Q: It might be something with drivers in rootfs 5.2.9? Do you think if I use older it might work from USB?
Re: Bricked NSA320S during 2017.07 flash
April 20, 2021 03:49PM
mervin,

Not likely the driver. I might need to modify the DTS to make it better.

Remind me again, how many USB ports this NSA320S box has and are they a mix of USB 2.0 and 3.0?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
April 21, 2021 06:58AM
bodhi,

> Remind me again, how many USB ports this NSA320S
> box has and are they a mix of USB 2.0 and 3.0?

There are 3 USB 2.0, one in front and two at back.
Re: Bricked NSA320S during 2017.07 flash
April 22, 2021 08:52PM
mervin,

> There are 3 USB 2.0, one in front and two at back.

After you have booted with HDD rootfs, when you plug in a USB drive does it cause same problem as seen before?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
August 01, 2023 01:55AM
Thank you again for all the ground work! :)

Has anybody ever experience the problem of not being able to halt boot sequence?

I have tried Putty for Windows and Linux and Tera Term for Windows. I tried different flow settings. For some reason I can see in e.g. Putty that I pressed a key but the NAS just keeps booting until it runs into its old problem.

P.S.: I am also discussing on OpenWRT forum, but I will cross-post the solution with thanks to the savior to make sure people benefit and can find it for future issues :)


EDIT:
For anybody hooking up UART. You need RX, TX aaaaand GND. No VCC but you do need GND. Probably obvious for most but less so for inexperienced users like me who usually use VCC & GND for their flashing needs.



Edited 3 time(s). Last edit at 08/01/2023 03:28AM by AleXSR700.
Re: Bricked NSA320S during 2017.07 flash
December 03, 2023 02:42PM
Quote

[ 7.747243] mtd: no closing ) found in partition name

OK so that's the problem with the MTD partitions. Let's play with it a bit

setenv mtdparts 'mtdparts=41000000.nand:39680k(Boot),-(Data)'

Boot into Debian, and

dmesg | grep -2 mtdparts
dmesg | grep -2 0x0
cat /proc/mtd

And try to attach mtd1 again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked NSA320S during 2017.07 flash
December 03, 2023 03:51PM
AleXSR700 Wrote:

> EDIT:
> For anybody hooking up UART. You need RX, TX
> aaaaand GND. No VCC but you do need GND. Probably
> obvious for most but less so for inexperienced
> users like me who usually use VCC & GND for their
> flashing needs.

This can vary depending on what you are using to connect to the UART port. For instance I make extensive use of the μArt available at Crowd Supply. This device uses the VCC pin as it does voltage-autosensing and also provides for reverse polarity protection, over-current protection and galvanic isolation which all come in handy when you're not quite sure of the pin-out of the UART port.

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