Welcome! Log In Create A New Profile

Advanced

NSA325v1 broken flash

Posted by buec65 
NSA325v1 broken flash
April 20, 2021 04:12AM
NSA325v1 UART output ist working well - input doesn't work
same adapter working well with NSA325v2

is there any way getting uart-access or programming flash

/etc/fw_env.config
root@debian:/etc# cat fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:/etc#


fw_setenv
root@debian:~# fw_setenv baudrate=115200
Warning: Bad CRC, using default environment
Can't open /dev/mtd0: Permission denied
Error: can't write fw_env to flash
root@debian:~#


fw_printenv from running Debian
login as: root
root@192.168.10.79's password:
Linux debian 4.4.213-1-ARCH #1 PREEMPT Fri Feb 7 05:49:05 UTC 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.
Last login: Tue Apr 20 00:12:34 2021 from 192.168.10.32
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~#

no access to flash
root@debian:/etc# /usr/sbin/flash_erase /dev/mtd0 0xc0000 1
flash_erase: error!: /dev/mtd0
             error 13 (Permission denied)
root@debian:/etc# nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.envirnoment.img
nandwrite: error!: /dev/mtd0
           error 13 (Permission denied)
root@debian:/etc#



Bootlog Debian
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2021.04.20 10:53:43 =~=~=~=~=~=~=~=~=~=~=~=
ü
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB-88F6282A-BP LE 

U-Boot 1.1.4 (Sep 16 2011 - 17:51:53) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFF00

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

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

CPU : Marvell Feroceon (Rev 1)
Kernel address is 0x4640000.

Streaming disabled 
Write allocate disabled


USB 0: host mode
	[BlueDBG] reseting SoC Pex[0]  0 ...
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
	[BlueDBG] reseting SoC Pex[1]  0 ...
	[BlueDBG] reseting SoC Pex[1]  1 ...
	[BlueDBG] reseting SoC Pex[1]  2 ...
	[BlueDBG] reseting SoC Pex[1]  3 ...
	[BlueDBG] reseting SoC Pex[1]  4 ...
	[BlueDBG] reseting SoC Pex[1]  5 ...
	[BlueDBG] reseting SoC Pex[1]  6 ...
	[BlueDBG] reseting SoC Pex[1]  7 ...
	[BlueDBG] reseting SoC Pex[1]  8 ...
	[BlueDBG] reseting SoC Pex[1]  9 ...
	[BlueDBG] reseting SoC Pex[1]  10 ...
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  2  1  0 
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.....................................

4622488 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
............................................................................................................................

9713936 bytes read
## Booting image at 02000000 ...
   Image Name:   Linux-4.4.213-1-ARCH
   Created:      2020-02-07   5:33:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4622424 Bytes =  4.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   Ramdisk armhf
   Created:      2021-04-17  12:33:06 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.213-1-ARCH (builduser@leming) (gcc version 9.2.0 (GCC) ) #1 PREEMPT Fri Feb 7 05:49:05 UTC 2020
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: ZyXEL NSA325 2-Bay Power Media Server
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0920d84, node_mem_map dfb7a000
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499640K/524288K available (6614K kernel code, 548K rwdata, 1892K rodata, 300K init, 720K bss, 24648K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0856bbc   (8507 kB)
[    0.000000]       .init : 0xc0857000 - 0xc08a2000   ( 300 kB)
[    0.000000]       .data : 0xc08a2000 - 0xc092b29c   ( 549 kB)
[    0.000000]        .bss : 0xc092b29c - 0xc09df428   ( 721 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:114
[    0.000010] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[   18.188526] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[   18.188674] Console: colour dummy device 80x30
[   18.188694] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[   18.228576] pid_max: default: 32768 minimum: 301
[   18.228643] Security Framework initialized
[   18.228704] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   18.228717] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   18.229271] Initializing cgroup subsys io
[   18.229295] Initializing cgroup subsys memory
[   18.229335] Initializing cgroup subsys devices
[   18.229355] Initializing cgroup subsys freezer
[   18.229371] Initializing cgroup subsys net_cls
[   18.229386] Initializing cgroup subsys perf_event
[   18.229401] Initializing cgroup subsys net_prio
[   18.229462] CPU: Testing write buffer coherency: ok
[   18.229805] Setting up static identity map for 0x81e0 - 0x8238
[   18.231293] devtmpfs: initialized
[   18.233032] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[   18.233059] futex hash table entries: 256 (order: -1, 3072 bytes)
[   18.233427] pinctrl core: initialized pinctrl subsystem
[   18.233991] NET: Registered protocol family 16
[   18.234334] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   18.258592] cpuidle: using governor ladder
[   18.288589] cpuidle: using governor menu
[   18.288704] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[   18.288723] Feroceon L2: Enabling L2
[   18.288750] Feroceon L2: Cache support initialised.
[   18.289297] initial MPP regs: 21111111 01103311 00051100 00000000 00000000 00000000 00000000
[   18.289319]   final MPP regs: 21111111 00003311 00051100 00000000 00000000 00000000 00000000
[   18.290444] Kirkwood PCIe port 0: link up
[   18.290451] PCI: bus0 uses PCIe port 0
[   18.290623] PCI host bridge to bus 0000:00
[   18.290636] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   18.290645] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   18.290653] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   18.290676] pci 0000:00:00.0: [11ab:6282] type 00 class 0x058000
[   18.290701] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 64bit pref]
[   18.290713] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x1fffffff]
[   18.290752] pci 0000:00:00.0: supports D1 D2
[   18.290923] pci 0000:00:01.0: [1033:0194] type 00 class 0x0c0330
[   18.290977] pci 0000:00:01.0: reg 0x10: [mem 0x90000000-0x90001fff 64bit]
[   18.291091] pci 0000:00:01.0: PME# supported from D0 D3hot
[   18.291291] PCI: bus0: Fast back to back transfers disabled
[   18.291303] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[   18.291326] pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[   18.319750] vgaarb: loaded
[   18.319997] SCSI subsystem initialized
[   18.320145] libata version 3.00 loaded.
[   18.320383] usbcore: registered new interface driver usbfs
[   18.320445] usbcore: registered new interface driver hub
[   18.320490] usbcore: registered new device driver usb
[   18.320614] pps_core: LinuxPPS API ver. 1 registered
[   18.320621] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[   18.320644] PTP clock support registered
[   18.321435] clocksource: Switched to clocksource orion_clocksource
[   18.351418] FS-Cache: Loaded
[   18.361148] NET: Registered protocol family 2
[   18.361817] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[   18.361872] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   18.361921] TCP: Hash tables configured (established 4096 bind 4096)
[   18.361975] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   18.361995] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   18.362154] NET: Registered protocol family 1
[   18.362416] RPC: Registered named UNIX socket transport module.
[   18.362424] RPC: Registered udp transport module.
[   18.362429] RPC: Registered tcp transport module.
[   18.362434] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   18.362523] PCI: CLS 32 bytes, default 32
[   18.362755] Trying to unpack rootfs image as initramfs...
[   18.921824] Freeing initrd memory: 9488K
[   18.932804] VFS: Disk quotas dquot_6.6.0
[   18.933016] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   18.934573] FS-Cache: Netfs 'nfs' registered for caching
[   18.935434] NFS: Registering the id_resolver key type
[   18.935476] Key type id_resolver registered
[   18.935482] Key type id_legacy registered
[   18.935551] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[   18.936515] fuse init (API version 7.23)
[   18.938102] aufs 4.4-20170911
[   18.942235] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[   18.942250] io scheduler noop registered
[   18.942259] io scheduler deadline registered
[   18.942469] io scheduler cfq registered
[   18.942665] io scheduler bfq registered (default)
[   18.942671] BFQ I/O-scheduler: v7r11
[   18.942841] mv_xor mv_xor.0: Marvell shared XOR driver
[   18.982278] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[   18.982465] mv_xor mv_xor.1: Marvell shared XOR driver
[   19.022287] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[   19.026520] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   19.027309] console [ttyS0] disabled
[   19.047375] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   19.776954] console [ttyS0] enabled
[   19.792104] brd: module loaded
[   19.800793] loop: module loaded
[   19.804257] sata_mv sata_mv.0: version 1.28
[   19.808502] sata_mv sata_mv.0: cannot get optional clkdev
[   19.814077] sata_mv sata_mv.0: slots 32 ports 2
[   19.820997] scsi host0: sata_mv
[   19.824596] scsi host1: sata_mv
[   19.827997] ata1: SATA max UDMA/133 irq 21
[   19.832142] ata2: SATA max UDMA/133 irq 21
[   19.836862] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[   19.843439] nand: Samsung NAND 128MiB 3,3V 8-bit
[   19.848077] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   19.855705] Scanning device for bad blocks
[   19.862267] Bad eraseblock 21 at 0x0000002a0000
[   19.867885] Bad eraseblock 31 at 0x0000003e0000
[   19.874526] Bad eraseblock 50 at 0x000000640000
[   19.880257] Bad eraseblock 61 at 0x0000007a0000
[   19.887460] Bad eraseblock 85 at 0x000000aa0000
[   19.892411] Bad eraseblock 89 at 0x000000b20000
[   19.927548] Bad eraseblock 361 at 0x000002d20000
[   19.955900] Bad eraseblock 572 at 0x000004780000
[   19.986852] Bad eraseblock 806 at 0x0000064c0000
[   20.026410] Creating 9 MTD partitions on "orion_nand":
[   20.031641] 0x000000000000-0x000000100000 : "uboot"
[   20.036946] 0x000000100000-0x000000180000 : "uboot_env"
[   20.042578] 0x000000180000-0x000000200000 : "key_store"
[   20.048153] 0x000000200000-0x000000280000 : "info"
[   20.053368] 0x000000280000-0x000000c80000 : "etc"
[   20.058434] 0x000000c80000-0x000001680000 : "kernel_1"
[   20.063976] 0x000001680000-0x000004640000 : "rootfs1"
[   20.069433] 0x000004640000-0x000005040000 : "kernel_2"
[   20.074993] 0x000005040000-0x000008000000 : "rootfs2"
[   20.096359] libphy: orion_mdio_bus: probed
[   20.100564] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   20.110109] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address fc:f5:28:0d:b2:15
[   20.119044] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   20.125639] ehci-pci: EHCI PCI platform driver
[   20.130153] ehci-orion: EHCI orion driver
[   20.134276] orion-ehci orion-ehci.0: EHCI Host Controller
[   20.139717] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   20.147465] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   20.171463] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   20.178117] hub 1-0:1.0: USB hub found
[   20.181945] hub 1-0:1.0: 1 port detected
[   20.186367] xhci_hcd 0000:00:01.0: xHCI Host Controller
[   20.191675] ata1: SATA link down (SStatus 0 SControl F300)
[   20.197232] xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2
[   20.204973] xhci_hcd 0000:00:01.0: hcc params 0x014042c3 hci version 0x96 quirks 0x00000004
[   20.214192] hub 2-0:1.0: USB hub found
[   20.217988] hub 2-0:1.0: 2 ports detected
[   20.222512] xhci_hcd 0000:00:01.0: xHCI Host Controller
[   20.227771] xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 3
[   20.235307] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   20.244118] hub 3-0:1.0: USB hub found
[   20.247910] hub 3-0:1.0: 2 ports detected
[   20.252558] usbcore: registered new interface driver uas
[   20.258009] usbcore: registered new interface driver usb-storage
[   20.264129] usbcore: registered new interface driver ums-alauda
[   20.270114] usbcore: registered new interface driver ums-cypress
[   20.276214] usbcore: registered new interface driver ums-datafab
[   20.282364] usbcore: registered new interface driver ums_eneub6250
[   20.288607] usbcore: registered new interface driver ums-freecom
[   20.294695] usbcore: registered new interface driver ums-isd200
[   20.300675] usbcore: registered new interface driver ums-jumpshot
[   20.306849] usbcore: registered new interface driver ums-karma
[   20.312760] usbcore: registered new interface driver ums-onetouch
[   20.318935] usbcore: registered new interface driver ums-realtek
[   20.325129] usbcore: registered new interface driver ums-sddr09
[   20.331119] usbcore: registered new interface driver ums-sddr55
[   20.337124] usbcore: registered new interface driver ums-usbat
[   20.343333] mousedev: PS/2 mouse device common for all mice
[   20.501460] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   20.561462] ata2: SATA link down (SStatus 0 SControl F300)
[   20.653789] hub 1-1:1.0: USB hub found
[   20.657849] hub 1-1:1.0: 4 ports detected
[   20.941452] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   21.230544] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   21.237114] scsi host2: usb-storage 1-1.2:1.0
[   21.351456] rtc-mv rtc-mv: internal RTC not ticking
[   21.356468] i2c /dev entries driver
[   21.360803] sdhci: Secure Digital Host Controller Interface driver
[   21.367034] sdhci: Copyright(c) Pierre Ossman
[   21.371467] sdhci-pltfm: SDHCI platform and OF driver helper
[   21.377192] orion_gpio_is_valid: invalid GPIO 12
[   21.382903] ledtrig-cpu: registered to indicate activity on CPUs
[   21.389048] usbcore: registered new interface driver r8712u
[   21.394853] gre: GRE over IPv4 demultiplexor driver
[   21.399779] NET: Registered protocol family 17
[   21.404357] Key type dns_resolver registered
[   21.409421] registered taskstats version 1
[   21.452003] Key type encrypted registered
[   21.456557] console [netcon0] enabled
[   21.460237] netconsole: network logging started
[   21.465238] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   21.472289] hctosys: unable to open rtc device (rtc0)
[   21.479061] Freeing unused kernel memory: 300K
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 ... [   23.090807] scsi 2:0:0:0: Direct-Access     Generic  USB  SD Reader   0.00 PQ: 0 ANSI: 2
[   23.104269] sd 2:0:0:0: [sda] 15527936 512-byte logical blocks: (7.95 GB/7.40 GiB)
[   23.117216] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   23.124775] sd 2:0:0:0: [sda] Write Protect is off
[   23.129606] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
[   23.135502] sd 2:0:0:0: [sda] No Caching mode page found
[   23.140849] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   23.152420]  sda: sda1
[   23.163386] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/local-block ... done.
done.
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: recovering journal
rootfs: clean, 15110/485760 files, 266598/1939968 blocks
done.
[   37.443008] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   37.466570] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
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.
[....] Starting hotplug events dispatcher: systemd-udevd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Synthesizing the initial hotplug events (subsystems)...[   39.118638] random: nonblocking pool is initialized
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Synthesizing the initial hotplug events (devices)...[   39.590701] systemd-udevd[309]: Using default interface naming scheme 'v240'.
[   39.720902] systemd-udevd[309]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[   40.095231] systemd-udevd[302]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Setting hostname to 'debian'...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[ ok 8[?25h[?0c.
[   40.984645] 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 if that location is writable.[?25l[?1c7[ ok 8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[ ok 8[?25h[?0cdone.
 /tmp[?25l[?1c7[ ok 8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[ ok 8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting Setting kernel variables: sysctl[?25l[?1c7[ ok 8[?25h[?0c.
[....] Initializing random number generator...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] 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/

[   43.685373] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
Listening on LPF/eth0/fc:f5:28:0d:b2:15
Sending on   LPF/eth0/fc:f5:28:0d:b2:15
Sending on   Socket/fallback
DHCPREQUEST for 192.168.10.79 on eth0 to 255.255.255.255 port 67
[   45.346869] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
DHCPREQUEST for 192.168.10.79 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.10.79 from 192.168.10.1
invoke-rc.d: could not determine current runlevel
bound to 192.168.10.79 -- renewal in 327454 seconds.
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.

INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1275 (syslogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1302 (klogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[warn8[?25h[?0c (warning).
[....] Starting NTP server: ntpd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[ ok 8[?25h[?0c.


Debian GNU/Linux 10 debian ttyS0

debian login: 
Re: NSA325v1 broken flash
April 20, 2021 04:29AM
buec65,

> [ 0.000000] Linux version 4.4.213-1-ARCH
> (builduser@leming) (gcc version 9.2.0 (GCC) ) #1
> PREEMPT Fri Feb 7 05:49:05 UTC 2020
> [ 0.000000] CPU: Feroceon 88FR131 [56251311]
> revision 1 (ARMv5TE), cr=0005397f
> [ 0.000000] CPU: VIVT data cache, VIVT
> instruction cache
> [ 0.000000] Machine: ZyXEL NSA325 2-Bay Power
> Media Server


You are running a Debian rootfs, but with Arch Linux ARM kernel! that will not work well. Also, you are running stock u-boot (we have newer u-boot here and at Arch site for this box).

I'm not sure what you want to run, Arch or Debian? your rootfs is not usable at the moment becasue of that mix.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v1 broken flash
May 03, 2021 01:19AM
Did complete USB reinstall Debian update, software install, NFS, SMB, everything is working well.

root@debian:~# uname -a
Linux debian 4.4.252-1-ARCH #1 PREEMPT Tue Jan 19 03:15:48 UTC 2021 armv5tel GNU/Linux

No serial access to interrupt uboot

is ist possible flashing new uboot without changing envorinment?

Linux debian 4.4.252-1-ARCH #1 PREEMPT Tue Jan 19 03:15:48 UTC 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.
Last login: Sat May  1 15:59:08 2021 from buero-pc.fritz.box
root@debian:~# fw_printenv
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
PRODUCT_NAME=NSA-325
FEATURE_BIT=00
VENDOR_NAME=MitraStar Technology Corp.
ethaddr=FC:F5:28:0D:B2:15
arcNumber=4495
bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(ub                                    oot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC                                    0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootargs_linux=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(ub                                    oot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC                                    0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kerne                                    l_addr) 0xA00000; bootm $(loadadr)
to_stock=setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv;                                     reset
to_linux=setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv                                    ; reset
stdin=serial
stdout=serial
stderr=serial
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
ethprime=egiga0
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/nfs rw
bootargs_end=:::orion:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/m                                    tdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x20                                    00000;
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
image_multi=yes
kernel_addr=0x4640000
ethact=egiga0
mainlineLinux=yes
bootcmd='run bootcmd_linux'
MODEL_ID=AE03
mtdparts=nand_mtd:0x100000,0x80000,0x80000,0x80000,0xA00000,0xA00000,0x2FC0000,0                                    xA00000,0x2FC0000 root=/dev/nfs rw init=/init
bootcmd_linux=setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb res                                    et; ext2load usb 0:1 $(loadaddr) /uImage; ext2load usb 0:1 0x01100000 /uInitrd;                                     bootm $(loadaddr) 0x01100000

Attachments:
open | download - Webmin 1.973 (Debian Linux 8).jpg (63.9 KB)
Re: NSA325v1 broken flash
May 03, 2021 02:02AM
> is ist possible flashing new uboot without
> changing envorinment?

No. The new u-boot and the new default environment images must be flashed at the same time.

Also, I've mentioned above:

Quote

You are running a Debian rootfs, but with Arch Linux ARM kernel! that will not work well

If you want to run Arch kernel then install Arch rootfs. If you want to run Debian rootfs then install Debian kernel.

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



Edited 1 time(s). Last edit at 05/03/2021 02:05AM by bodhi.
Re: NSA325v1 broken flash
May 03, 2021 04:46AM
kernel-4.20.6 installed did not start

kernel installed

shutdown -r now

3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
.
.
...
......
............
.
........................
.
.........................
........................
.
.........................
.........................
.........................
........................
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.......................

4444174 bytes read
.
.
...
......
............
.
........................
.
.........................
........................
.
.........................
.........................
.........................
........................
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
........................
.
.........................
.........................
.........................
.........................

7352331 bytes read
## Booting image at 02000000 ...
   Image Name:   Linux-4.20.6-kirkwood-tld-1
   Created:      2021-05-03   9:34:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4444110 Bytes =  4.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   Ramdisk Linux-4.20.6-kirkwood-tl
   Created:      2021-05-03   9:36:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7352267 Bytes =  7 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

nothing happens at this point

unplug power then unit reboots at this point



Edited 1 time(s). Last edit at 05/03/2021 04:49AM by buec65.
Re: NSA325v1 broken flash
May 03, 2021 05:18PM
Since you are booting with the old stock uboot, the load addresses needs to be adjusted.

Try different loaddresses for uImage and uInitrd as described here:

https://forum.doozan.com/read.php?2,102054,105374#msg-105374

Quote

setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; if run load_uinitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'

Note in the above, earlyprintk=serial is set in bootargs so we can see more when the kernel started.


Set the envs in serial console, but don't save them until you can boot into Debian kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v1 broken flash
May 05, 2021 07:27AM
think i made any mistake an now the unit did not start anymore
uart-serial is only works seeing messages interrupt booting did not work
tested windows and linux on other computers

? Cannot open root device "LABEL=rootfs" - Label is rootfs not "LABEL=rootfs"

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB-88F6282A-BP LE 

U-Boot 1.1.4 (Sep 16 2011 - 17:51:53) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFF00

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

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

CPU : Marvell Feroceon (Rev 1)
Kernel address is 0x4640000.

Streaming disabled 
Write allocate disabled


USB 0: host mode
        [BlueDBG] reseting SoC Pex[0]  0 ...
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
        [BlueDBG] reseting SoC Pex[1]  0 ...
        [BlueDBG] reseting SoC Pex[1]  1 ...
        [BlueDBG] reseting SoC Pex[1]  2 ...
        [BlueDBG] reseting SoC Pex[1]  3 ...
        [BlueDBG] reseting SoC Pex[1]  4 ...
        [BlueDBG] reseting SoC Pex[1]  5 ...
        [BlueDBG] reseting SoC Pex[1]  6 ...
        [BlueDBG] reseting SoC Pex[1]  7 ...
        [BlueDBG] reseting SoC Pex[1]  8 ...
        [BlueDBG] reseting SoC Pex[1]  9 ...
        [BlueDBG] reseting SoC Pex[1]  10 ...
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
...................
.........................
...................................................
......................................................................................................
...................................

2461416 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
..............................................................................................................................................................................................................

6362802 bytes read
## Booting image at 02000000 ...
   Image Name:   Linux-3.14.0-kirkwood-tld-1
   Created:      2014-04-06  20:44:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2461352 Bytes =  2.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
   Image Name:   initramfs-3.14.0-kirkwood-tld-1
   Created:      2014-04-06  20:44:41 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6362738 Bytes =  6.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.14.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 PREEMPT Tue Apr 1 22:54:58 PDT 2014
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: ZyXEL NSA325 2-Bay Power Media Server
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c06d7f18, node_mem_map dfbfb000
[    0.000000]   DMA zone: 1024 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 506088K/524288K available (4779K kernel code, 352K rwdata, 1644K rodata, 213K init, 424K bss, 18200K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc064df14   (6424 kB)
[    0.000000]       .init : 0xc064e000 - 0xc0683444   ( 214 kB)
[    0.000000]       .data : 0xc0684000 - 0xc06dc3c4   ( 353 kB)
[    0.000000]        .bss : 0xc06dc3c4 - 0xc074665c   ( 425 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[   19.994894] Console: colour dummy device 80x30
[   19.994917] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[   20.034703] pid_max: default: 32768 minimum: 301
[   20.034788] Security Framework initialized
[   20.034836] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   20.034851] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   20.035307] Initializing cgroup subsys devices
[   20.035324] Initializing cgroup subsys freezer
[   20.035334] Initializing cgroup subsys net_cls
[   20.035341] Initializing cgroup subsys blkio
[   20.035399] CPU: Testing write buffer coherency: ok
[   20.035686] Setting up static identity map for 0x485fa0 - 0x485fdc
[   20.037292] devtmpfs: initialized
[   20.039251] prandom: seed boundary self test passed
[   20.042248] prandom: 100 self tests passed
[   20.042256] pinctrl core: initialized pinctrl subsystem
[   20.042544] regulator-dummy: no parameters
[   20.042800] NET: Registered protocol family 16
[   20.043082] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   20.043659] cpuidle: using governor ladder
[   20.043671] cpuidle: using governor menu
[   20.043744] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[   20.043760] Feroceon L2: Enabling L2
[   20.043788] Feroceon L2: Cache support initialised.
[   20.044085] initial MPP regs: 21111111 01103311 00051100 00000000 00000000 00000000 00000000
[   20.044107]   final MPP regs: 21111111 00003311 00051100 00000000 00000000 00000000 00000000
[   20.044725] Kirkwood PCIe port 0: link up
[   20.044733] PCI: bus0 uses PCIe port 0
[   20.044823] PCI host bridge to bus 0000:00
[   20.044838] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   20.044848] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   20.044857] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   20.044883] pci 0000:00:00.0: [11ab:6282] type 00 class 0x058000
[   20.044903] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 64bit pref]
[   20.044916] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x1fffffff]
[   20.044952] pci 0000:00:00.0: supports D1 D2
[   20.045083] pci 0000:00:01.0: [1033:0194] type 00 class 0x0c0330
[   20.045115] pci 0000:00:01.0: reg 0x10: [mem 0x90000000-0x90001fff 64bit]
[   20.045231] pci 0000:00:01.0: PME# supported from D0 D3hot
[   20.045364] PCI: bus0: Fast back to back transfers disabled
[   20.045377] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[   20.045404] pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[   20.048522] bio: create slab <bio-0> at 0
[   20.048878] vgaarb: loaded
[   20.049092] usbcore: registered new interface driver usbfs
[   20.049142] usbcore: registered new interface driver hub
[   20.049234] usbcore: registered new device driver usb
[   20.049777] Switched to clocksource orion_clocksource
[   20.068852] NET: Registered protocol family 2
[   20.069376] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[   20.069431] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   20.069482] TCP: Hash tables configured (established 4096 bind 4096)
[   20.069532] TCP: reno registered
[   20.069542] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   20.069561] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   20.069716] NET: Registered protocol family 1
[   20.070001] RPC: Registered named UNIX socket transport module.
[   20.070010] RPC: Registered udp transport module.
[   20.070016] RPC: Registered tcp transport module.
[   20.070021] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   20.070102] PCI: CLS 32 bytes, default 32
[   20.070292] Unpacking initramfs...
[   20.070303] Initramfs unpacking failed: junk in compressed archive
[   20.087912] Freeing initrd memory: 6208K (c0801000 - c0e11000)
[   20.087983] NetWinder Floating Point Emulator V0.97 (double precision)
[   20.088400] futex hash table entries: 256 (order: -1, 3072 bytes)
[   20.088515] audit: initializing netlink subsys (disabled)
[   20.088558] audit: type=2000 audit(0.080:1): initialized
[   20.089058] bounce pool size: 64 pages
[   20.089121] zbud: loaded
[   20.089264] VFS: Disk quotas dquot_6.5.2
[   20.089310] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   20.089534] NFS: Registering the id_resolver key type
[   20.089576] Key type id_resolver registered
[   20.089583] Key type id_legacy registered
[   20.089596] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   20.089603] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   20.089717] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   20.089973] msgmni has been set to 1000
[   20.090078] Key type big_key registered
[   20.091427] alg: No test for stdrng (krng)
[   20.091495] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   20.091503] io scheduler noop registered
[   20.091509] io scheduler deadline registered
[   20.091535] io scheduler cfq registered (default)
[   20.091745] mv_xor mv_xor.0: Marvell shared XOR driver
[   20.129842] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   20.169817] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   20.169913] mv_xor mv_xor.1: Marvell shared XOR driver
[   20.209821] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   20.249819] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   20.250041] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   20.270498] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   20.984072] console [ttyS0] enabled
[   20.988392] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[   20.994790] nand: Samsung NAND 128MiB 3,3V 8-bit
[   20.999426] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[   21.005121] Scanning device for bad blocks
[   21.011643] Bad eraseblock 21 at 0x0000002a0000
[   21.017241] Bad eraseblock 31 at 0x0000003e0000
[   21.023852] Bad eraseblock 50 at 0x000000640000
[   21.029569] Bad eraseblock 61 at 0x0000007a0000
[   21.036736] Bad eraseblock 85 at 0x000000aa0000
[   21.041753] Bad eraseblock 89 at 0x000000b20000
[   21.076499] Bad eraseblock 361 at 0x000002d20000
[   21.104544] Bad eraseblock 572 at 0x000004780000
[   21.135142] Bad eraseblock 806 at 0x0000064c0000
[   21.164185] Creating 9 MTD partitions on "orion_nand":
[   21.169348] 0x000000000000-0x000000100000 : "uboot"
[   21.174505] 0x000000100000-0x000000180000 : "uboot_env"
[   21.179964] 0x000000180000-0x000000200000 : "key_store"
[   21.185408] 0x000000200000-0x000000280000 : "info"
[   21.190438] 0x000000280000-0x000000c80000 : "etc"
[   21.195357] 0x000000c80000-0x000001680000 : "kernel_1"
[   21.200750] 0x000001680000-0x000004640000 : "rootfs1"
[   21.206046] 0x000004640000-0x000005040000 : "kernel_2"
[   21.211433] 0x000005040000-0x000008000000 : "rootfs2"
[   21.217189] libphy: Fixed MDIO Bus: probed
[   21.227260] libphy: orion_mdio_bus: probed
[   21.231463] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   21.240884] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address fc:f5:28:0d:b2:15
[   21.249764] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   21.256351] ehci-pci: EHCI PCI platform driver
[   21.260874] ehci-orion: EHCI orion driver
[   21.264957] orion-ehci orion-ehci.0: EHCI Host Controller
[   21.270426] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   21.278168] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   21.299796] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   21.305877] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   21.312710] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   21.319977] usb usb1: Product: EHCI Host Controller
[   21.324876] usb usb1: Manufacturer: Linux 3.14.0-kirkwood-tld-1 ehci_hcd
[   21.331618] usb usb1: SerialNumber: orion-ehci.0
[   21.336684] hub 1-0:1.0: USB hub found
[   21.340494] hub 1-0:1.0: 1 port detected
[   21.344834] mousedev: PS/2 mouse device common for all mice
[   21.659819] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   21.811306] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[   21.818043] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   21.825232] usb 1-1: Product: USB2.0 Hub
[   21.829801] hub 1-1:1.0: USB hub found
[   21.833929] hub 1-1:1.0: 4 ports detected
[   22.120180] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[   22.359797] rtc-mv rtc-mv: internal RTC not ticking
[   22.364781] i2c /dev entries driver
[   22.368786] orion_gpio_is_valid: invalid GPIO 12
[   22.374010] hidraw: raw HID events driver (C) Jiri Kosina
[   22.379630] drop_monitor: Initializing network drop monitor service
[   22.386088] TCP: cubic registered
[   22.389412] NET: Registered protocol family 17
[   22.393982] Key type dns_resolver registered
[   22.398619] registered taskstats version 1
[   22.403172] regulator-dummy: incomplete constraints, leaving on
[   22.409482] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[   22.415831] usb 1-1.3: New USB device found, idVendor=1307, idProduct=0310
[   22.422784] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   22.431036] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   22.439084] Please append a correct "root=" boot option; here are the available partitions:
[   22.447500] usb 1-1.3: Product: Mass Storage Device
Re: NSA325v1 broken flash
May 05, 2021 06:23PM
buec65,

Mount your USB rootfs on another Linux box and check for the partition label, is it rootfs?. If the USB drive is initialized as sdb1 then:

e2label /dev/sdb1

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v1 broken flash
May 06, 2021 12:19AM
-bodhi,

label rootfs still ok. tested reformat USB drive ext2, ext3 used other USB drive with uImage and uInitrd - nothing works

Uart problem - there is a short circuit between receive pin <-> GND on this NSA325v1 board



Edited 1 time(s). Last edit at 05/06/2021 02:19AM by buec65.
Re: NSA325v1 broken flash
May 06, 2021 03:28AM
buec65,

The load addresses you are using for uImage and uInitrd are not good for this stock u-boot.

See my post above:

https://forum.doozan.com/read.php?3,119489,120159#msg-120159

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v1 broken flash
May 06, 2021 04:26AM
bodhi,

can not change load addresses because of broken UART.

is there any way giving load addresses within uImage and uInitrd?

tested openWRT openwrt-19.07.0-kirkwood-zyxel_nsa325-initramfs-uImage as uImage

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2021.05.06 11:20:20 =~=~=~=~=~=~=~=~=~=~=~=
ü
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB-88F6282A-BP LE 

U-Boot 1.1.4 (Sep 16 2011 - 17:51:53) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFF00

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

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

CPU : Marvell Feroceon (Rev 1)
Kernel address is 0x4640000.

Streaming disabled 
Write allocate disabled


USB 0: host mode
	[BlueDBG] reseting SoC Pex[0]  0 ...
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
	[BlueDBG] reseting SoC Pex[1]  0 ...
	[BlueDBG] reseting SoC Pex[1]  1 ...
	[BlueDBG] reseting SoC Pex[1]  2 ...
	[BlueDBG] reseting SoC Pex[1]  3 ...
	[BlueDBG] reseting SoC Pex[1]  4 ...
	[BlueDBG] reseting SoC Pex[1]  5 ...
	[BlueDBG] reseting SoC Pex[1]  6 ...
	[BlueDBG] reseting SoC Pex[1]  7 ...
	[BlueDBG] reseting SoC Pex[1]  8 ...
	[BlueDBG] reseting SoC Pex[1]  9 ...
	[BlueDBG] reseting SoC Pex[1]  10 ...
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  2  1  0 
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
...................
.........................
...................................................
......................................................................................................
..................................................................................................................................................

3602280 bytes read
....
.
...................
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
..............................................................................................................................................................................................................

6362802 bytes read
## Booting image at 02000000 ...
   Image Name:   ARM OpenWrt Linux-4.14.162
   Created:      2020-01-06  16:47:09 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3602216 Bytes =  3.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
   Image Name:   initramfs-3.14.0-kirkwood-tld-1
   Created:      2014-04-06  20:44:41 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6362738 Bytes =  6.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.162 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10860-a3ffeb413b)) #0 Mon Jan 6 16:47:09 2020
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA325
[    0.000000] Memory policy: Data cache writeback
[    0.000000] INITRD: 0x00800000+0x00612000 overlaps in-use memory region - disabling initrd
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0d284d8, node_mem_map dfbfa000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] random: get_random_bytes called from 0xc0700980 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 506988K/524288K available (4802K kernel code, 162K rwdata, 728K rodata, 6144K init, 208K bss, 17300K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05b0a50   (5795 kB)
[    0.000000]       .init : 0xc0700000 - 0xc0d00000   (6144 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0d28b40   ( 163 kB)
[    0.000000]        .bss : 0xc0d28b40 - 0xc0d5cf1c   ( 209 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000005] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000027] Switching to timer-based delay loop, resolution 5ns
[    0.000088] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000105] pid_max: default: 32768 minimum: 301
[    0.000208] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000223] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000602] CPU: Testing write buffer coherency: ok
[    0.001174] Setting up static identity map for 0x100000 - 0x10003c
[    0.001375] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.004794] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004813] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.004881] pinctrl core: initialized pinctrl subsystem
[    0.005693] NET: Registered protocol family 16
[    0.005982] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.006701] cpuidle: using governor ladder
[    0.006999] Feroceon L2: Enabling L2
[    0.007031] Feroceon L2: Cache support initialised.
[    0.007223] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.010111] No ATAGs?
[    0.022710] SCSI subsystem initialized
[    0.023062] libata version 3.00 loaded.
[    0.023237] usbcore: registered new interface driver usbfs
[    0.023280] usbcore: registered new interface driver hub
[    0.023322] usbcore: registered new device driver usb
[    0.024784] clocksource: Switched to clocksource orion_clocksource
[    0.025387] NET: Registered protocol family 2
[    0.025837] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.025890] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.025939] TCP: Hash tables configured (established 4096 bind 4096)
[    0.025998] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.026017] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.026121] NET: Registered protocol family 1
[    0.026142] PCI: CLS 0 bytes, default 32
[    0.099960] Crashlog allocated RAM at address 0x3f00000
[    0.100538] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.103766] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.103775] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.157333] io scheduler noop registered
[    0.157344] io scheduler deadline registered (default)
[    0.158213] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.159308] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    0.159322] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.159330] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.159338] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.159363] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    0.159506] PCI: bus0: Fast back to back transfers disabled
[    0.159517] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.159610] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[    0.159656] pci 0000:01:00.0: reg 0x10: [mem 0x90000000-0x90001fff 64bit]
[    0.159786] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.159890] PCI: bus1: Fast back to back transfers disabled
[    0.159901] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.159927] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.159939] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.159957] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.159968] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.160002] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    0.160370] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.161727] console [ttyS0] disabled
[    0.161782] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.756435] console [ttyS0] enabled
[    0.760547] sata_mv f1080000.sata: version 1.28
[    0.765316] sata_mv f1080000.sata: slots 32 ports 2
[    0.772791] scsi host0: sata_mv
[    0.776357] scsi host1: sata_mv
[    0.779620] ata1: SATA max UDMA/133 irq 32
[    0.783736] ata2: SATA max UDMA/133 irq 32
[    0.788220] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.794599] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.799252] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.806869] Scanning device for bad blocks
[    0.813171] Bad eraseblock 21 at 0x0000002a0000
[    0.818698] Bad eraseblock 31 at 0x0000003e0000
[    0.825132] Bad eraseblock 50 at 0x000000640000
[    0.830751] Bad eraseblock 61 at 0x0000007a0000
[    0.837701] Bad eraseblock 85 at 0x000000aa0000
[    0.842603] Bad eraseblock 89 at 0x000000b20000
[    0.874837] Bad eraseblock 361 at 0x000002d20000
[    0.900913] Bad eraseblock 572 at 0x000004780000
[    0.929337] Bad eraseblock 806 at 0x0000064c0000
[    0.956122] 3 fixed-partitions partitions found on MTD device orion_nand
[    0.962852] Creating 3 MTD partitions on "orion_nand":
[    0.968023] 0x000000000000-0x0000000c0000 : "uboot"
[    0.973328] 0x0000000c0000-0x000000140000 : "uboot_env"
[    0.978949] 0x000000140000-0x000008000000 : "ubi"
[    0.984730] libphy: Fixed MDIO Bus: probed
[    0.989056] libphy: orion_mdio_bus: probed
[    0.999915] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.008158] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address fc:f5:28:0d:b2:15
[    1.016966] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.023517] ehci-pci: EHCI PCI platform driver
[    1.028024] ehci-orion: EHCI orion driver
[    1.032186] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.037732] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.045625] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    1.074795] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.081228] hub 1-0:1.0: USB hub found
[    1.085165] hub 1-0:1.0: 1 port detected
[    1.089421] usbcore: registered new interface driver usb-storage
[    1.095612] i2c /dev entries driver
[    1.099968] orion_wdt: Initial timeout 21 sec
[    1.152011] marvell-cesa f1030000.crypto: CESA device successfully registered
[    1.159860] NET: Registered protocol family 10
[    1.165694] Segment Routing with IPv6
[    1.169423] NET: Registered protocol family 17
[    1.173908] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.186938] 8021q: 802.1Q VLAN Support v1.8
[    1.193648] UBI error: no valid UBI magic found inside mtd2
[    1.199410] hctosys: unable to open rtc device (rtc0)
[    1.316072] ata1: SATA link down (SStatus 0 SControl F300)
[    1.464793] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.646043] ata2: SATA link down (SStatus 0 SControl F300)
[    1.668687] Freeing unused kernel memory: 6144K
[    1.675744] hub 1-1:1.0: USB hub found
[    1.684394] init: Console is alive
[    1.687902] hub 1-1:1.0: 4 ports detected
[    1.692268] init: - watchdog -
[    1.700640] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.707779] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.717754] init: - preinit -
[    1.754809] random: fast init done
[    1.809787] random: jshn: uninitialized urandom read (4 bytes read)
[    1.838074] random: jshn: uninitialized urandom read (4 bytes read)
[    2.076006] random: jshn: uninitialized urandom read (4 bytes read)
[    2.149865] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[    2.159683] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[    2.166467] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    2.172429] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    2.462790] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    2.469515] scsi host2: usb-storage 1-1.3:1.0
[    3.755555] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[    3.765381] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    4.330466] scsi 2:0:0:0: Direct-Access     Generic  USB  SD Reader   0.00 PQ: 0 ANSI: 2
[    4.340039] sd 2:0:0:0: [sda] 3981312 512-byte logical blocks: (2.04 GB/1.90 GiB)
[    4.348027] sd 2:0:0:0: [sda] Write Protect is off
[    4.352844] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
[    4.358405] sd 2:0:0:0: [sda] No Caching mode page found
[    4.363742] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.373555]  sda: sda1
[    4.378030] sd 2:0:0:0: [sda] Attached SCSI removable disk



Edited 1 time(s). Last edit at 05/06/2021 04:34AM by buec65.
Re: NSA325v1 broken flash
May 06, 2021 04:35PM
buec65,

> can not change load addresses because of broken
> UART.

Is this really broken, or you just have a bad connection for the TX to RX wire?

Quote

[ 4.378030] sd 2:0:0:0: [sda] Attached SCSI removable disk

If the box was restarted here, then it was because of the HW watchdog. My u-boot image uboot.2017.07-tld-1.nsa325.mtd0.kwb fixed that problem.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v1 broken flash
May 06, 2021 11:50PM
bodhi,

it is realy broken tested different usb uart adapter different wires - multimeter tells some short circuit between rx - gnd
tx - gnd works ok

only way getting acces is booting uImage + uInitrd on usb flash drive

on debian used fw_setenv - this is not like setenv on uboot only temporary

before ## Loading Ramdisk Image at 01100000 ...

now ## Loading Ramdisk Image at 00800000 ... that is the "only" problem

how to find a way fixing this without uart access

buec65 Wrote:
-------------------------------------------------------
> -bodhi,
>
> label rootfs still ok. tested reformat USB drive
> ext2, ext3 used other USB drive with uImage and
> uInitrd - nothing works
>
> Uart problem - there is a short circuit between
> receive pin <-> GND on this NSA325v1 board
Re: NSA325v1 broken flash
May 07, 2021 08:03PM
buec65,

The quickest way to fix this is: booting back to the rootfs like you had before in this post above.

https://forum.doozan.com/read.php?3,119489,120089#msg-120089

And then log in,

- Create Debian rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on another USB thumb drive.
- Install new u-boot.

And then booting with the new USB rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v1 broken flash
May 11, 2021 03:32AM
bodhi,
can not get USB-boot working tested same drive and image as before always end with unable accessing rootfs

[ 22.413895] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

         __  __                      _ _                                                                                                                     
        |  \/  | __ _ _ ____   _____| | |                                                                                                                    
        | |\/| |/ _` | '__\ \ / / _ \ | |                                                                                                                    
        | |  | | (_| | |   \ V /  __/ | |                                                                                                                    
        |_|  |_|\__,_|_|    \_/ \___|_|_|                                                                                                                    
 _   _     ____              _                                                                                                                               
| | | |   | __ )  ___   ___ | |_                                                                                                                             
| | | |___|  _ \ / _ \ / _ \| __|                                                                                                                            
| |_| |___| |_) | (_) | (_) | |_                                                                                                                             
 \___/    |____/ \___/ \___/ \__|                                                                                                                            
 ** MARVELL BOARD: DB-88F6282A-BP LE                                                                                                                         
                                                                                                                                                             
U-Boot 1.1.4 (Sep 16 2011 - 17:51:53) Marvell version: 3.5.9                                                                                                 
                                                                                                                                                             
U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFF00                                                                                                          
                                                                                                                                                             
Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz                                                                                                     
SysClock = 533Mhz , TClock = 200Mhz                                                                                                                          

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

CPU : Marvell Feroceon (Rev 1)                                                                                                                               
Kernel address is 0x4640000.                                                                                                                                 

Streaming disabled                                                                                                                                           
Write allocate disabled                                                                                                                                      


USB 0: host mode                                                                                                                                             

PEX 0: PCI Express Root Complex Interface                                                                                                                    
PEX interface detected Link X1                                                                                                                               











PEX 1: interface detected no Link.                                                                                                                           
Net:   egiga0 [PRIME]                                                                                                                                        
Hit any key to stop autoboot:  0                                                                                                                             
(Re)start USB...                                                                                                                                             
USB:   scanning bus for devices... 3 USB Device(s) found                                                                                                     
Waiting for storage device(s) to settle before scanning...                                                                                                   
1 Storage Device(s) found                                                                                                                                    
....                                                                                                                                                         
.                                                                                                                                                            
......                                                                                                                                                       
............                                                                                                                                                 
.........................                                                                                                                                    
...................................................                                                                                                          
......................................................................................................                                                       
.............................................................................................................................................................
........................................                                                                                                                     

4661512 bytes read                                                                                                                                           
....                                                                                                                                                         
.                                                                                                                                                            
......                                                                                                                                                       
............                                                                                                                                                 
.........................                                                                                                                                    
...................................................                                                                                                          
......................................................................................................                                                       
.............................................................................................................................................................
.............................................................................................................................................................

6535284 bytes read                                                                                                                                           
## Booting image at 02000000 ...                                                                                                                             
   Image Name:   Linux-4.4.252-1-ARCH                                                                                                                        
   Created:      2021-01-19   3:00:22 UTC                                                                                                                    
   Image Type:   ARM Linux Kernel Image (uncompressed)                                                                                                       
   Data Size:    4661448 Bytes =  4.4 MB                                                                                                                     
   Load Address: 00008000                                                                                                                                    
   Entry Point:  00008000                                                                                                                                    
   Verifying Checksum ... OK                                                                                                                                 
OK                                                                                                                                                           
## Loading Ramdisk Image at 00800000 ...                                                                                                                     
   Image Name:   Ramdisk armhf                                                                                                                               
   Created:      2021-05-11   6:32:58 UTC                                                                                                                    
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)                                                                                                   
   Data Size:    6535220 Bytes =  6.2 MB                                                                                                                     
   Load Address: 01100000                                                                                                                                    
   Entry Point:  00000000                                                                                                                                    
   Verifying Checksum ... OK                                                                                                                                 

Starting kernel ...                                                                                                                                          

[    0.000000] Booting Linux on physical CPU 0x0                                                                                                             
[    0.000000] Initializing cgroup subsys cpuset                                                                                                             
[    0.000000] Initializing cgroup subsys cpu                                                                                                                
[    0.000000] Initializing cgroup subsys cpuacct                                                                                                            
[    0.000000] Linux version 4.4.252-1-ARCH (builduser@leming) (gcc version 10.2.0 (GCC) ) #1 PREEMPT Tue Jan 19 03:15:48 UTC 2021                           
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f                                                                            
[    0.000000] CPU: VIVT data cache, VIVT instruction cache                                                                                                  
[    0.000000] Machine: ZyXEL NSA325 2-Bay Power Media Server                                                                                                
[    0.000000] INITRD: 0x00800040+0x0063b834 overlaps in-use memory region - disabling initrd                                                                
[    0.000000] Memory policy: Data cache writeback                                                                                                           
[    0.000000] On node 0 totalpages: 131072                                                                                                                  
[    0.000000] free_area_init_node: node 0, pgdat c093cf64, node_mem_map dfb7a000                                                                            
[    0.000000]   Normal zone: 1152 pages used for memmap                                                                                                     
[    0.000000]   Normal zone: 0 pages reserved                                                                                                               
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31                                                                                                    
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768                                                                                                 
[    0.000000] pcpu-alloc: [0] 0                                                                                                                             
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920                                                                   
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc)8
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)                                                                                           
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)                                                                               
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)                                                                                
[    0.000000] Memory: 509016K/524288K available (6745K kernel code, 549K rwdata, 1876K rodata, 296K init, 720K bss, 15272K reserved, 0K cma-reserved)       
[    0.000000] Virtual kernel memory layout:                                                                                                                 
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                                                                                             
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)                                                                                             
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)                                                                                             
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)                                                                                             
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)                                                                                             
[    0.000000]       .text : 0xc0008000 - 0xc0873980   (8623 kB)                                                                                             
[    0.000000]       .init : 0xc0874000 - 0xc08be000   ( 296 kB)                                                                                             
[    0.000000]       .data : 0xc08be000 - 0xc09474dc   ( 550 kB)                                                                                             
[    0.000000]        .bss : 0xc09474dc - 0xc09fb698   ( 721 kB)                                                                                             
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                                                                                    
[    0.000000] Preemptible hierarchical RCU implementation.                                                                                                  
[    0.000000]  Build-time adjustment of leaf fanout to 32.                                                                                                  
[    0.000000] NR_IRQS:114                                                                                                                                   
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns                                                                     
[   19.640178] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns                                           
[   19.640331] Console: colour dummy device 80x30                                                                                                            
[   19.640353] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)                                                                                      
[   19.680228] pid_max: default: 32768 minimum: 301                                                                                                          
[   19.680299] Security Framework initialized                                                                                                                
[   19.680364] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                                   
[   19.680377] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                              
[   19.680942] Initializing cgroup subsys io                                                                                                                 
[   19.680967] Initializing cgroup subsys memory                                                                                                             
[   19.681008] Initializing cgroup subsys devices                                                                                                            
[   19.681026] Initializing cgroup subsys freezer                                                                                                            
[   19.681041] Initializing cgroup subsys net_cls                                                                                                            
[   19.681054] Initializing cgroup subsys perf_event                                                                                                         
[   19.681069] Initializing cgroup subsys net_prio                                                                                                           
[   19.681129] CPU: Testing write buffer coherency: ok                                                                                                       
[   19.681477] Setting up static identity map for 0x81e0 - 0x8238                                                                                            
[   19.682927] devtmpfs: initialized                                                                                                                         
[   19.684603] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns                                              
[   19.684630] futex hash table entries: 256 (order: -1, 3072 bytes)                                                                                         
[   19.684957] pinctrl core: initialized pinctrl subsystem                                                                                                   
[   19.685558] NET: Registered protocol family 16                                                                                                            
[   19.685872] DMA: preallocated 256 KiB pool for atomic coherent allocations                                                                                
[   19.710242] cpuidle: using governor ladder                                                                                                                
[   19.740242] cpuidle: using governor menu                                                                                                                  
[   19.740328] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.                                                                                                   
[   19.740348] Feroceon L2: Enabling L2                                                                                                                      
[   19.740376] Feroceon L2: Cache support initialised.                                                                                                       
[   19.740924] initial MPP regs: 21111111 01103311 00051100 00000000 00000000 00000000 00000000                                                              
[   19.740946]   final MPP regs: 21111111 00003311 00051100 00000000 00000000 00000000 00000000                                                              
[   19.742054] Kirkwood PCIe port 0: link up                                                                                                                 
[   19.742062] PCI: bus0 uses PCIe port 0                                                                                                                    
[   19.742236] PCI host bridge to bus 0000:00                                                                                                                
[   19.742250] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]                                                                                
[   19.742259] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]                                                                                        
[   19.742266] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]                                                                    
[   19.742290] pci 0000:00:00.0: [11ab:6282] type 00 class 0x058000                                                                                          
[   19.742316] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 64bit pref]                                                                            
[   19.742327] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x1fffffff]                                                                                       
[   19.742367] pci 0000:00:00.0: supports D1 D2                                                                                                              
[   19.742542] pci 0000:00:01.0: [1033:0194] type 00 class 0x0c0330                                                                                          
[   19.742595] pci 0000:00:01.0: reg 0x10: [mem 0x90000000-0x90001fff 64bit]                                                                                 
[   19.742710] pci 0000:00:01.0: PME# supported from D0 D3hot                                                                                                
[   19.742912] PCI: bus0: Fast back to back transfers disabled                                                                                               
[   19.742925] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00                                                                                   
[   19.742948] pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]                                                                           
[   19.771354] vgaarb: loaded                                                                                                                                
[   19.771605] SCSI subsystem initialized                                                                                                                    
[   19.771746] libata version 3.00 loaded.                                                                                                                   
[   19.771982] usbcore: registered new interface driver usbfs                                                                                                
[   19.772045] usbcore: registered new interface driver hub                                                                                                  
[   19.772085] usbcore: registered new device driver usb                                                                                                     
[   19.772204] pps_core: LinuxPPS API ver. 1 registered                                                                                                      
[   19.772210] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>                                                      
[   19.772234] PTP clock support registered                                                                                                                  
[   19.772997] clocksource: Switched to clocksource orion_clocksource                                                                                        
[   19.803891] FS-Cache: Loaded                                                                                                                              
[   19.813631] NET: Registered protocol family 2                                                                                                             
[   19.814251] TCP established hash table entries: 4096 (order: 2, 16384 bytes)                                                                              
[   19.814306] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                                                                                     
[   19.814356] TCP: Hash tables configured (established 4096 bind 4096)                                                                                      
[   19.814409] UDP hash table entries: 256 (order: 0, 4096 bytes)                                                                                            
[   19.814429] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                                                                                       
[   19.814591] NET: Registered protocol family 1                                                                                                             
[   19.814840] RPC: Registered named UNIX socket transport module.                                                                                           
[   19.814848] RPC: Registered udp transport module.                                                                                                         
[   19.814853] RPC: Registered tcp transport module.                                                                                                         
[   19.814858] RPC: Registered tcp NFSv4.1 backchannel transport module.                                                                                     
[   19.814949] PCI: CLS 32 bytes, default 32                                                                                                                 
[   19.826005] VFS: Disk quotas dquot_6.6.0                                                                                                                  
[   19.826205] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)                                                                               
[   19.827754] FS-Cache: Netfs 'nfs' registered for caching                                                                                                  
[   19.828615] NFS: Registering the id_resolver key type                                                                                                     
[   19.828671] Key type id_resolver registered                                                                                                               
[   19.828677] Key type id_legacy registered                                                                                                                 
[   19.828751] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.                                                                                          
[   19.829730] fuse init (API version 7.23)                                                                                                                  
[   19.831279] aufs 4.4-20170911                                                                                                                             
[   19.835397] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)                                                                          
[   19.835413] io scheduler noop registered                                                                                                                  
[   19.835423] io scheduler deadline registered                                                                                                              
[   19.835634] io scheduler cfq registered                                                                                                                   
[   19.835829] io scheduler bfq registered (default)                                                                                                         
[   19.835835] BFQ I/O-scheduler: v7r11                                                                                                                      
[   19.836011] mv_xor mv_xor.0: Marvell shared XOR driver                                                                                                    
[   19.873934] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )                                                                                    
[   19.874124] mv_xor mv_xor.1: Marvell shared XOR driver                                                                                                    
[   19.913935] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )                                                                                    
[   19.918176] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled                                                                                      
[   19.918953] console [ttyS0] disabled                                                                                                                      
[   19.939018] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A                                                           
[   20.667728] console [ttyS0] enabled                                                                                                                       
[   20.682684] brd: module loaded                                                                                                                            
[   20.691470] loop: module loaded                                                                                                                           
[   20.694918] sata_mv sata_mv.0: version 1.28                                                                                                               
[   20.699165] sata_mv sata_mv.0: cannot get optional clkdev                                                                                                 
[   20.704729] sata_mv sata_mv.0: slots 32 ports 2                                                                                                           
[   20.711630] scsi host0: sata_mv                                                                                                                           
[   20.715214] scsi host1: sata_mv                                                                                                                           
[   20.718614] ata1: SATA max UDMA/133 irq 21                                                                                                                
[   20.722727] ata2: SATA max UDMA/133 irq 21                                                                                                                
[   20.727475] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1                                                                                      
[   20.734053] nand: Samsung NAND 128MiB 3,3V 8-bit                                                                                                          
[   20.738686] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64                                                                        
[   20.746306] Scanning device for bad blocks                                                                                                                
[   20.752847] Bad eraseblock 21 at 0x0000002a0000                                                                                                           
[   20.758496] Bad eraseblock 31 at 0x0000003e0000                                                                                                           
[   20.765144] Bad eraseblock 50 at 0x000000640000                                                                                                           
[   20.770875] Bad eraseblock 61 at 0x0000007a0000                                                                                                           
[   20.778080] Bad eraseblock 85 at 0x000000aa0000                                                                                                           
[   20.783029] Bad eraseblock 89 at 0x000000b20000                                                                                                           
[   20.818187] Bad eraseblock 361 at 0x000002d20000                                                                                                          
[   20.846559] Bad eraseblock 572 at 0x000004780000                                                                                                          
[   20.877521] Bad eraseblock 806 at 0x0000064c0000                                                                                                          
[   20.906865] Creating 9 MTD partitions on "orion_nand":                                                                                                    
[   20.912025] 0x000000000000-0x000000100000 : "uboot"                                                                                                       
[   20.917364] 0x000000100000-0x000000180000 : "uboot_env"                                                                                                   
[   20.922945] 0x000000180000-0x000000200000 : "key_store"                                                                                                   
[   20.928567] 0x000000200000-0x000000280000 : "info"                                                                                                        
[   20.933767] 0x000000280000-0x000000c80000 : "etc"                                                                                                         
[   20.938830] 0x000000c80000-0x000001680000 : "kernel_1"                                                                                                    
[   20.944380] 0x000001680000-0x000004640000 : "rootfs1"                                                                                                     
[   20.949837] 0x000004640000-0x000005040000 : "kernel_2"                                                                                                    
[   20.955377] 0x000005040000-0x000008000000 : "rootfs2"                                                                                                     
[   20.967671] libphy: orion_mdio_bus: probed                                                                                                                
[   20.971860] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4                                                                                 
[   20.981385] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address fc:f5:28:0d:b2:15                                                           
[   20.990284] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                                                                                    
[   20.996877] ehci-pci: EHCI PCI platform driver                                                                                                            
[   21.001394] ehci-orion: EHCI orion driver                                                                                                                 
[   21.005515] orion-ehci orion-ehci.0: EHCI Host Controller                                                                                                 
[   21.010950] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1                                                                        
[   21.018698] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000                                                                                            
[   21.043022] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00                                                                                           
[   21.049685] hub 1-0:1.0: USB hub found                                                                                                                    
[   21.053520] hub 1-0:1.0: 1 port detected                                                                                                                  
[   21.057939] xhci_hcd 0000:00:01.0: xHCI Host Controller                                                                                                   
[   21.063248] xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2                                                                          
[   21.070953] xhci_hcd 0000:00:01.0: hcc params 0x014042c3 hci version 0x96 quirks 0x00000004                                                               
[   21.080109] hub 2-0:1.0: USB hub found                                                                                                                    
[   21.083997] hub 2-0:1.0: 2 ports detected                                                                                                                 
[   21.088489] xhci_hcd 0000:00:01.0: xHCI Host Controller                                                                                                   
[   21.093783] xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 3                                                                          
[   21.101282] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.                                                                  
[   21.110097] hub 3-0:1.0: USB hub found                                                                                                                    
[   21.113927] hub 3-0:1.0: 2 ports detected                                                                                                                 
[   21.118633] usbcore: registered new interface driver uas                                                                                                  
[   21.124130] usbcore: registered new interface driver usb-storage                                                                                          
[   21.130206] usbcore: registered new interface driver ums-alauda                                                                                           
[   21.136227] usbcore: registered new interface driver ums-cypress                                                                                          
[   21.142294] usbcore: registered new interface driver ums-datafab                                                                                          
[   21.148380] usbcore: registered new interface driver ums_eneub6250                                                                                        
[   21.154702] usbcore: registered new interface driver ums-freecom                                                                                          
[   21.160772] usbcore: registered new interface driver ums-isd200                                                                                           
[   21.166771] usbcore: registered new interface driver ums-jumpshot                                                                                         
[   21.172926] usbcore: registered new interface driver ums-karma                                                                                            
[   21.178837] usbcore: registered new interface driver ums-onetouch                                                                                         
[   21.185134] usbcore: registered new interface driver ums-realtek                                                                                          
[   21.191206] usbcore: registered new interface driver ums-sddr09                                                                                           
[   21.197206] usbcore: registered new interface driver ums-sddr55                                                                                           
[   21.203206] usbcore: registered new interface driver ums-usbat                                                                                            
[   21.209399] mousedev: PS/2 mouse device common for all mice                                                                                               
[   21.243025] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)                                                                                       
[   21.283055] ata1.00: ATA-7: FUJITSU MHT2080BH, 0000104B, max UDMA/100                                                                                     
[   21.289529] ata1.00: 156301488 sectors, multi 16: LBA48 NCQ (depth 31/32)                                                                                 
[   21.353057] ata1.00: configured for UDMA/100                                                                                                              
[   21.373023] usb 1-1: new high-speed USB device number 2 using orion-ehci                                                                                  
[   21.380157] scsi 0:0:0:0: Direct-Access     ATA      FUJITSU MHT2080B 104B PQ: 0 ANSI: 5                                                                  
[   21.389091] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)                                                                       
[   21.397089] sd 0:0:0:0: Attached scsi generic sg0 type 0                                                                                                  
[   21.402783] sd 0:0:0:0: [sda] Write Protect is off                                                                                                        
[   21.407750] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00                                                                                                     
[   21.412907] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA                                                       
[   21.535263] hub 1-1:1.0: USB hub found                                                                                                                    
[   21.539333] hub 1-1:1.0: 4 ports detected                                                                                                                 
[   21.753021] ata2: SATA link down (SStatus 0 SControl F300)                                                                                                
[   21.785860]  sda: sda1                                                                                                                                    
[   21.789198] sd 0:0:0:0: [sda] Attached SCSI disk                                                                                                          
[   21.823016] usb 1-1.3: new high-speed USB device number 3 using orion-ehci                                                                                
[   22.111905] usb-storage 1-1.3:1.0: USB Mass Storage device detected                                                                                       
[   22.118472] scsi host2: usb-storage 1-1.3:1.0                                                                                                             
[   22.223017] rtc-mv rtc-mv: internal RTC not ticking                                                                                                       
[   22.228022] i2c /dev entries driver                                                                                                                       
[   22.232394] sdhci: Secure Digital Host Controller Interface driver                                                                                        
[   22.238624] sdhci: Copyright(c) Pierre Ossman                                                                                                             
[   22.243057] sdhci-pltfm: SDHCI platform and OF driver helper                                                                                              
[   22.248775] orion_gpio_is_valid: invalid GPIO 12                                                                                                          
[   22.254530] ledtrig-cpu: registered to indicate activity on CPUs                                                                                          
[   22.260687] usbcore: registered new interface driver r8712u                                                                                               
[   22.266473] gre: GRE over IPv4 demultiplexor driver                                                                                                       
[   22.271417] NET: Registered protocol family 17                                                                                                            
[   22.275990] Key type dns_resolver registered                                                                                                              
[   22.281015] registered taskstats version 1                                                                                                                
[   22.286600] Key type encrypted registered                                                                                                                 
[   22.291090] console [netcon0] enabled                                                                                                                     
[   22.294814] netconsole: network logging started                                                                                                           
[   22.299698] input: gpio-keys as /devices/platform/gpio-keys/input/input0                                                                                  
[   22.306703] hctosys: unable to open rtc device (rtc0)                                                                                                     
[   22.312827] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6                                                                   
[   22.321020] Please append a correct "root=" boot option; here are the available partitions:                                                               
[   22.329463] 0100            8192 ram0  (driver?)                                                                                                          
[   22.334117] 0101            8192 ram1  (driver?)                                                                                                          
[   22.338763] 0102            8192 ram2  (driver?)                                                                                                          
[   22.343414] 0103            8192 ram3  (driver?)                                                                                                          
[   22.348058] 0104            8192 ram4  (driver?)
[   22.352697] 0105            8192 ram5  (driver?)
[   22.357347] 0106            8192 ram6  (driver?)
[   22.362002] 0107            8192 ram7  (driver?)
[   22.366650] 0108            8192 ram8  (driver?)
[   22.371289] 0109            8192 ram9  (driver?)
[   22.375937] 010a            8192 ram10  (driver?)
[   22.380671] 010b            8192 ram11  (driver?)
[   22.385407] 010c            8192 ram12  (driver?)
[   22.390132] 010d            8192 ram13  (driver?)
[   22.394868] 010e            8192 ram14  (driver?)
[   22.399603] 010f            8192 ram15  (driver?)
[   22.404341] 0800        78150744 sda  driver: sd
[   22.408985]   0801        78149632 sda1 f50a60a3-01
[   22.413895] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   22.422197] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.252-1-ARCH #1
[   22.428664] Hardware name: ZyXEL NSA325 2-Bay Power Media Server
[   22.434708] [<c000febc>] (unwind_backtrace) from [<c000d43c>] (show_stack+0x10/0x14)
[   22.442489] [<c000d43c>] (show_stack) from [<c0664674>] (panic+0x9c/0x21c)
[   22.449401] [<c0664674>] (panic) from [<c08752a8>] (mount_block_root+0x1a4/0x250)
[   22.456914] [<c08752a8>] (mount_block_root) from [<c08756b0>] (prepare_namespace+0x15c/0x1bc)
[   22.465476] [<c08756b0>] (prepare_namespace) from [<c0874e60>] (kernel_init_freeable+0x1e8/0x238)
[   22.474389] [<c0874e60>] (kernel_init_freeable) from [<c066ca04>] (kernel_init+0x8/0xe0)
[   22.482515] [<c066ca04>] (kernel_init) from [<c000a4c8>] (ret_from_fork+0x14/0x2c)
[   22.490119] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Re: NSA325v1 broken flash
May 11, 2021 04:30AM
buec65,

## Booting image at 02000000 ...
## Loading Ramdisk Image at 00800000 ...

As I mentioned before, these 2 load addresses are not good. So your ramdisk was corrupted.

The problem is you don't have a good serial connection, so you cannot change envs.

Since you are using my Debian rootfs. Mount the USB rootfs on another Linux box, look in the rootfs /etc/fstab.

See
LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1

Replace the above with

/dev/sda1    /               ext3    noatime,errors=remount-ro 0 1

And bring it back to try booting again.

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



Edited 1 time(s). Last edit at 05/11/2021 04:30AM by bodhi.
Author:

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: