Welcome! Log In Create A New Profile

Advanced

NSA325v2 bad block, can I flash it?

Posted by Dyce 
Dyce
NSA325v2 bad block, can I flash it?
February 08, 2019 02:08AM
Hello,

first of all I have to admit I have no experience with flashing u-boot, this is my first time doing it so I want to be as careful as possible. Why am I doing it? Well, I tried to update my stock OS to newer version (4.81 i think), but somehow the update was unsuccessfull and now my NAS is not booting, I connected serial console to see where is the problem and it stops at
Quote

*** glibc detected *** /sbin/zyshd: double free or corruption (!prev): 0x00255f08 ***
I tried to reset nas to defaults, but it does not help. I found some topics on google about restoring original OS but all post refer to some dead links so I had no luck there. After that I decided to install debian so I can have some freedom with my system.

I followed guide here https://forum.doozan.com/read.php?2,12096 and installed
Quote

Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
on the USB and tried to boot that, but as I expected it does not work without changing the boot loader.

After that I read the guide here https://forum.doozan.com/read.php?3,12381 and saw that there cant be bad blocks in NAND or I will definitely brick my device. I cant boot my system but from serial console I see output
Quote

Bad block at 0xc80000 in erase block from 0xc80000 will be skipped
I think it's not in the first 1M but I'm not sure. Also, the guide assumes I am able to boot up the system to use some commands, is it possible to flash u-boot when I'm unable to boot up ?

I saw the part about UART booting but NSA325(v2) is not listed in supported devices, so I dont know if I should try it, but it seems like a safe precaution before flashing on NAND. I will post serial output while booting up with debian USB stick inserted below.

So tl;dr - am I safe to proceed and try UART booting and, if successfull, flashing the uboot.2017.07-tld-1.nsa325.bodhi.tar on NAND?

Here is the boot log, I printed the important (I think) parts in bold.

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

U-Boot 1.1.4 (Jul 18 2013 - 10:47:29) Marvell version: 3.5.9

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

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

DRAM (DDR3) CAS Latency = 7 tRP = 8 tRAS = 24 tRCD=8
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 0xc80000.

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 

NAND read: device 0 offset 0xc80000, size 0xa00000


Bad block at 0xc80000 in erase block from 0xc80000 will be skipped

Reading data from 0xca0000 --   0% complete.
Reading data from 0xcb9800 --   1% complete.
Reading data from 0xcd3000 --   2% complete.
Reading data from 0xcec800 --   3% complete.
Reading data from 0xd06000 --   4% complete.
Reading data from 0xd1f800 --   5% complete.
Reading data from 0xd39800 --   6% complete.
Reading data from 0xd53000 --   7% complete.
Reading data from 0xd6c800 --   8% complete.
Reading data from 0xd86000 --   9% complete.
Reading data from 0xd9f800 --  10% complete.
Reading data from 0xdb9800 --  11% complete.
Reading data from 0xdd3000 --  12% complete.
Reading data from 0xdec800 --  13% complete.
Reading data from 0xe06000 --  14% complete.
Reading data from 0xe1f800 --  15% complete.
Reading data from 0xe39800 --  16% complete.
Reading data from 0xe53000 --  17% complete.
Reading data from 0xe6c800 --  18% complete.
Reading data from 0xe86000 --  19% complete.
Reading data from 0xe9f800 --  20% complete.
Reading data from 0xeb9800 --  21% complete.
Reading data from 0xed3000 --  22% complete.
Reading data from 0xeec800 --  23% complete.
Reading data from 0xf06000 --  24% complete.
Reading data from 0xf1f800 --  25% complete.
Reading data from 0xf39800 --  26% complete.
Reading data from 0xf53000 --  27% complete.
Reading data from 0xf6c800 --  28% complete.
Reading data from 0xf86000 --  29% complete.
Reading data from 0xf9f800 --  30% complete.
Reading data from 0xfb9800 --  31% complete.
Reading data from 0xfd3000 --  32% complete.
Reading data from 0xfec800 --  33% complete.
Reading data from 0x1006000 --  34% complete.
Reading data from 0x101f800 --  35% complete.
Reading data from 0x1039800 --  36% complete.
Reading data from 0x1053000 --  37% complete.
Reading data from 0x106c800 --  38% complete.
Reading data from 0x1086000 --  39% complete.
Reading data from 0x109f800 --  40% complete.
Reading data from 0x10b9800 --  41% complete.
Reading data from 0x10d3000 --  42% complete.
Reading data from 0x10ec800 --  43% complete.
Reading data from 0x1106000 --  44% complete.
Reading data from 0x111f800 --  45% complete.
Reading data from 0x1139800 --  46% complete.
Reading data from 0x1153000 --  47% complete.
Reading data from 0x116c800 --  48% complete.
Reading data from 0x1186000 --  49% complete.
Reading data from 0x119f800 --  50% complete.
Reading data from 0x11b9800 --  51% complete.
Reading data from 0x11d3000 --  52% complete.
Reading data from 0x11ec800 --  53% complete.
Reading data from 0x1206000 --  54% complete.
Reading data from 0x121f800 --  55% complete.
Reading data from 0x1239800 --  56% complete.
Reading data from 0x1253000 --  57% complete.
Reading data from 0x126c800 --  58% complete.
Reading data from 0x1286000 --  59% complete.
Reading data from 0x129f800 --  60% complete.
Reading data from 0x12b9800 --  61% complete.
Reading data from 0x12d3000 --  62% complete.
Reading data from 0x12ec800 --  63% complete.
Reading data from 0x1306000 --  64% complete.
Reading data from 0x131f800 --  65% complete.
Reading data from 0x1339800 --  66% complete.
Reading data from 0x1353000 --  67% complete.
Reading data from 0x136c800 --  68% complete.
Reading data from 0x1386000 --  69% complete.
Reading data from 0x139f800 --  70% complete.
Reading data from 0x13b9800 --  71% complete.
Reading data from 0x13d3000 --  72% complete.
Reading data from 0x13ec800 --  73% complete.
Reading data from 0x1406000 --  74% complete.
Reading data from 0x141f800 --  75% complete.
Reading data from 0x1439800 --  76% complete.
Reading data from 0x1453000 --  77% complete.
Reading data from 0x146c800 --  78% complete.
Reading data from 0x1486000 --  79% complete.
Reading data from 0x149f800 --  80% complete.
Reading data from 0x14b9800 --  81% complete.
Reading data from 0x14d3000 --  82% complete.
Reading data from 0x14ec800 --  83% complete.
Reading data from 0x1506000 --  84% complete.
Reading data from 0x151f800 --  85% complete.
Reading data from 0x1539800 --  86% complete.
Reading data from 0x1553000 --  87% complete.
Reading data from 0x156c800 --  88% complete.
Reading data from 0x1586000 --  89% complete.
Reading data from 0x159f800 --  90% complete.
Reading data from 0x15b9800 --  91% complete.
Reading data from 0x15d3000 --  92% complete.
Reading data from 0x15ec800 --  93% complete.
Reading data from 0x1606000 --  94% complete.
Reading data from 0x161f800 --  95% complete.
Reading data from 0x1639800 --  96% complete.
Reading data from 0x1653000 --  97% complete.
Reading data from 0x166c800 --  98% complete.
Reading data from 0x1686000 --  99% complete.
Reading data from 0x169f800 -- 100% complete.
 10485760 bytes read: OK
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2017-06-23   3:04:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5796104 Bytes =  5.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux................................................................................................................................................................................................................................................................................ done, booting the kernel.

Linux version 2.6.31.8 (root@BuildMachine) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) #2 Fri Jun 23 11:03:47 CST 2017
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 130048
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=/dev/nfs rw init=/init
PID hash table entries: 2048 (order: 11, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 506752KB available (5360K code, 302K data, 2872K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1599.07 BogoMIPS (lpj=7995392)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
invoking softwareStaggeredSpinUp()..., it will delay 5 seconds to spin up the second harddisk

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 512MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB 
PEX0_IO ....base f2000000, size   1MB 
PEX1_MEM ....base e8000000, size 128MB 
PEX1_IO ....base f2100000, size   1MB 
INTER_REGS ....base f1000000, size   1MB 
NFLASH_CS ....base fa000000, size   2MB 
SPI_CS ....base f4000000, size  16MB 
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB 

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- DB-88F6282A-BP  Soc: MV88F6282 Rev 1 LE

 Detected Tclk 200000000 and SysClk 533333333 
Marvell USB EHCI Host controller #0: d003a740
	[BlueDBG] reseting SoC Pex[0]  0 ...
PEX0 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 ...
PEX1 interface detected no Link.
pci 0000:00:01.0: PME# supported from D0 D3hot
pci 0000:00:01.0: PME# disabled
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
cpufreq: Init kirkwood cpufreq driver
XOR registered 4 channels
XOR 2nd invalidate WA enabled
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
gpio_dev = fd00000
LED_SET_CTL_IOC_NUM= 6702
High gpio polarity = 50 
High gpio polarity = 70 
Enable Interrupt
mv88f6281_wdt: Watchdog Timer timeout = 8 sec.
mv88f6281_wdt: HW Watchdog timeout    = 15 sec.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 990
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
Wake up disk0......
Wake up disk1......
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
EnablePowerSaving 
PowerSavingTime = 15
No found HD
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 1 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0

mvFpRuleDb (d10a0000): 16384 entries, 65536 bytes
Counter=0, opIdx=6, overhead=16
Counter=1, opIdx=2, overhead=0
Counter=2, opIdx=1, overhead=18
Counter=3, opIdx=2, overhead=0
NAND device: Manufacturer ID: 0x92, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 100 at 0x000000c80000
Bad eraseblock 200 at 0x000001900000
9 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 9 MTD partitions on "nand_mtd":
0x000000000000-0x000000100000 : "uboot"
0x000000100000-0x000000180000 : "uboot_env"
0x000000180000-0x000000200000 : "key_store"
0x000000200000-0x000000280000 : "info"
0x000000280000-0x000000c80000 : "etc"
0x000000c80000-0x000001680000 : "kernel_1"
0x000001680000-0x000004640000 : "rootfs1"
0x000004640000-0x000005040000 : "kernel_2"
0x000005040000-0x000008000000 : "rootfs2"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-pcf8563 0-0051: setting system clock to 2019-02-07 16:51:18 UTC (1549558278)
Freeing init memory: 2872K
*** Stage 1: Setup system and device drivers ***
usb 1-1: new high speed USB device using ehci_marvell and address 2
In hub_port_init, and number is 1, retry 0, port 1 .....
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
eth0: mac address changed
egiga0: started
ADDRCONF(NETDEV_UP): egiga0: link is not ready
usb 1-1.3: new high speed USB device using ehci_marvell and address 3
*** Stage 2: Prepare the root file system ***
In hub_port_init, and number is 2, retry 0, port 3 .....
Mount system partition...
yaffs: dev is 32505862 name is "mtdblock6" ro
yaffs: passed flags ""
storage_gen_mntfw.sh: no internal disk availableusb 1-1.3: configuration #1 chosen from 1 choice

1
scsi2 : SCSI emulation for USB Mass Storage devices
WARNING: No valid partition on HDD or no HDD plugged!
WARNING: No valid partition on HDD or no HDD plugged
Boot from RAM disk
scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] 30277632 512-byte logical blocks: (15.5 GB/14.4 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
Mount system disk image ...
yaffs: dev is 32505860 name is "mtdblock4" rw
yaffs: passed flags ""
/etc/zyxel/conf exist..
Start rcS2 of ZyXEL style
Set the phy back to auto-negotiation mode
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] = 4
words[3] = 1e1
:GbitPhy[0x00000001:0x00000004] <= 0x000001e1
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] = 9
words[3] = 300
:GbitPhy[0x00000001:0x00000009] <= 0x00000300
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] =NTFS driver 2.1.29 [Flags: R/O MODULE].
 0
words[3] = 9140
:GbitPhy[0x00000001:0x00000000] <= 0x00009140
*** Stage 3: Start services on HDD ***
tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel.
Disabling lock debugging due to kernel taint
Tuxera NTFS driver 3011.12.23 [Flags: R/W MODULE].
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
PPP Deflate Compression module registered
NET: Registered protocol family 24
PPP BSD Compression module registered
modprobe: module fuse not found in modules.dep
sda
checking sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Trying to mount /dev/sda1
EXT3-fs: Unrecognized mount option "iocharset=utf8" or missing value
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Fail to mount /dev/sda1
Press ENTER to continue...
Starting zylogd...
 zylog starts.
Starting uamd...
Starting ZySH daemon and client...
Start NSA-220 system daemon....
 Start ZySH daemon
zyshd: version 2.0.0 (build: 10:45:14 Jun 23 2017)
% zylog init start 
cat: can't open '/var/run/syslog-ng.pid': No such file or directory
Try to KILL SIGHUP to syslog-ng: pid=0
syslog-ng not running, start /usr/sbin/syslog-ng
Feb  7 16:51:59 (none) syslog-ng[1368]: syslog-ng starting up; version='2.0.10'
zyio_open_config success. (/etc/__system_default.xml, 0)
zyio_open_config success. (/etc/zyxel/conf/__system_default_device_ha.xml, 0)
/usr/sbin/zic -d /etc /var/zyxel/myzone_rule
/bin/ln -s -f /etc/MyZone /etc/localtime
/bin/hostname NSA325-v2
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
BusyBox v1.17.2 (2017-06-23 10:40:08 CST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...

Init SMB DB access... 
rm: can't remove '/var/log/samba/smb.db': No such file or directory
WARNING: can't open config file: /etc/ssl/openssl.cnf
zyio_container_create_template(/etc/__system_default.xml): scope:[network/wlan] list:[wlan_list] type:[wlan_t] is not existed
Assemble volume....
[1415] server write-only FIFO is opened (fd=6)
[1415] server read-only FIFO is opened (fd=7)
[1415] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 280
 Startup config
POLLHUP on 7
  pid = 1415
[1415] is disconnected
[1513] server write-only FIFO is opened (fd=6)
[1513] server read-only FIFO is opened (fd=7)
[1513] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 14
argc = 1,  func = 17
argc = 1,  func = 672
argc = 2,  func = 105
argid[1]: 1087; argv[1]: ge1
argc = 6,  func = 109
argid[1]: 1087; argv[1]: ge1
argid[2]: 313; argv[2]: ip
argid[3]: 434; argv[3]: address
argid[4]: 1080; argv[4]: 192.168.88.117
argid[5]: 1080; argv[5]: 255.255.255.0
argc = 5,  func = 110
argid[1]: 1087; argv[1]: ge1
argid[2]: 313; argv[2]: ip
argid[3]: 543; argv[3]: gateway
argid[4]: 1080; argv[4]: 192.168.88.1
argc = 4,  func = 107
argid[1]: 1087; argv[1]: ge1
argid[2]: 541; argv[2]: mtu
argid[3]: 1422; argv[3]: 4096
argc = 3,  func = 106
argid[1]: 1087; argv[1]: ge1
argid[2]: 350; argv[2]: exit
argc = 3,  func = 444
argid[1]: 1080; argv[1]: 192.168.1.1
argid[2]: 1080; argv[2]: 8.8.8.8
argc = 4,  func = 446
argid[1]: 879; argv[1]: fetch
argid[2]: 880; argv[2]: manually
argid[3]: 1087; argv[3]: ge1
egiga0: stopped
egiga0: started
egiga0: change mtu 1500 (buffer-size 1536) to 4096 (buffer-size 4128)
/bin/rm -f /var/zyxel/zysh/egiga0.metric
argc = 2,  func = 125
argid[1]: 1089; argv[1]: ppp0
argc = 3,  func = 128
argid[1]: 1089; argv[1]: ppp0
argid[2]: 429; argv[2]: shutdown
argc = 3,  func = 126
argid[1]: 1089; argv[1]: ppp0
argid[2]: 350; argv[2]: exit
argc = 7,  func = 77
argid[1]: 267; argv[1]: mail
argid[2]: 1415; argv[2]: 1
argid[3]: 435; argv[3]: category
argid[4]: 375; argv[4]: all
argid[5]: 461; argv[5]: level
argid[6]: 478; argv[6]: alert
mail server '1' log_category(all) is:alert 
argc = 7,  func = 77
argid[1]: 267; argv[1]: mail
argid[2]: 1415; argv[2]: 1
argid[3]: 435; argv[3]: category
argid[4]: 375; argv[4]: all
argid[5]: 461; argv[5]: level
argid[6]: 375; argv[6]: all
mail server '1' log_category(all) is:all 
argc = 2,  func = 68
argid[1]: 1079; argv[1]: europe.pool.ntp.org
argc = 2,  func = 60
argid[1]: 1130; argv[1]: +0100
/usr/sbin/zic -d /etc /var/zyxel/myzone_rule
/bin/ln -s -f /etc/MyZone /etc/localtime
argc = 4,  func = 346
argid[1]: 1224; argv[1]: "CET"
argid[2]: 597; argv[2]: in
argid[3]: 1225; argv[3]: "Budapest,Belgrade,Bratislava,Ljubljana,Prague"
/usr/sbin/dst.sh: line 175: can't create /i-data/.zyxel/storage.txt: nonexistent directory
/usr/sbin/dst.sh: line 175: can't create /i-data/.zyxel/storage.txt: nonexistent directory
/usr/sbin/dst.sh: line 175: can't create /i-data/.zyxel/storage.txt: nonexistent directory
argc = 2,  func = 57
argid[1]: 1122; argv[1]: NSA325v2
share path /i-data/md0/public not existing.
share path /i-data/md0/video not existing.
share path /i-data/md0/photo not existing.
share path /i-data/md0/music not existing.
share path /i-data/md0/admin not existing.
cat: can't open '/var/run/nmbd.pid': No such file or directory
kill: you need to specify whom to kill
/usr/sbin/dst.sh: line 175: can't create /i-data/.zyxel/storage.txt: nonexistent directory
/usr/sbin/dst.sh: line 175: can't create /i-data/.zyxel/storage.txt: nonexistent directory
/bin/hostname NSA325v2
RegenSmbConfigFile:2203 Close file ok
argc = 1,  func = 38
killall: pure-ftpd: no process killed
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
BusyBox v1.17.2 (2017-06-23 10:40:08 CST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...

/usr/local/sbin/pure-ftpd: invalid option -- 'J'
Feb  7 16:52:10 (none) pure-ftpd: (?@?) [WARNING] Unknown run-time option
argc = 2,  func = 195
argid[1]: 1140; argv[1]: "admin"
argc = 5,  func = 196
argid[1]: 1140; argv[1]: "admin"
argid[2]: 1426; argv[2]: 501
argid[3]: 363; argv[3]: password
argid[4]: 1164; argv[4]: 2C9EC242E19BE0644E835F1CD90F4C76:857A8C1793B3C0DC483B06B5FB3E2261
enter smb_db_update_user
argc = 5,  func = 196
argid[1]: 1140; argv[1]: "admin"
argid[2]: 1426; argv[2]: 501
argid[3]: 637; argv[3]: type
argid[4]: 638; argv[4]: admin
enter smb_db_update_user
argc = 5,  func = 197
argid[1]: 1140; argv[1]: "admin"
argid[2]: 1426; argv[2]: 501
argid[3]: 642; argv[3]: shpass
argid[4]: 1167; argv[4]:  $1$$7gWyRI/nAkTdSxTgpxUwE/
shpass : $1$$7gWyRI/nAkTdSxTgpxUwE/
argc = 4,  func = 192
argid[1]: 1140; argv[1]: "admin"
argid[2]: 1426; argv[2]: 501
argid[3]: 350; argv[3]: exit
argc = 2,  func = 195
argid[1]: 1140; argv[1]: "kodi"
argc = 5,  func = 196
argid[1]: 1140; argv[1]: "kodi"
argid[2]: 1426; argv[2]: 504
argid[3]: 641; argv[3]: home-share
argid[4]: 1170; argv[4]: ""
enter smb_db_update_user
argc = 5,  func = 196
argid[1]: 1140; argv[1]: "kodi"
argid[2]: 1426; argv[2]: 504
argid[3]: 637; argv[3]: type
argid[4]: 272; argv[4]: user
enter smb_db_update_user
argc = 5,  func = 196
argid[1]: 1140; argv[1]: "kodi"
argid[2]: 1426; argv[2]: 504
argid[3]: 363; argv[3]: password
argid[4]: 1164; argv[4]: C292273F1CA2E087F9393D97E7A1873C:BF6D0923CF06EFF94B551C92CBFE0F70
enter smb_db_update_user
argc = 4,  func = 192
argid[1]: 1140; argv[1]: "kodi"
argid[2]: 1426; argv[2]: 504
argid[3]: 350; argv[3]: exit
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "public"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/public"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "public"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/public"
argid[6]: 303; argv[6]: disable
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "public"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/public"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/video not existing.
share path /i-data/md0/photo not existing.
share path /i-data/md0/music not existing.
share path /i-data/md0/admin not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "video"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/video"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "video"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/video"
argid[6]: 303; argv[6]: disable
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "video"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/video"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/photo not existing.
share path /i-data/md0/music not existing.
share path /i-data/md0/admin not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "photo"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/photo"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "photo"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/photo"
argid[6]: 303; argv[6]: disable
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "photo"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/photo"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/music not existing.
share path /i-data/md0/admin not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "music"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/music"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "music"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/music"
argid[6]: 303; argv[6]: disable
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "music"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/music"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "admin"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/admin"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "admin"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/admin"
argid[6]: 302; argv[6]: enable
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "admin"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/md0/admin"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "lost_and_found"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/lost+found"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "lost_and_found"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/lost+found"
argid[6]: 303; argv[6]: disable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "lost_and_found"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/lost+found"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "lost_and_found"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/lost+found"
argid[6]: 598; argv[6]: access-flag
argid[7]: 599; argv[7]: private
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "lost_and_found"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/lost+found"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "lost_and_found"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/lost+found"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 598; argv[6]: access-flag
argid[7]: 601; argv[7]: advanced
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 603; argv[6]: valid-users
argid[7]: 1174; argv[7]: ""admin""
pcommand = valid-users
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 606; argv[6]: valid-groups
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 604; argv[6]: read-list
argid[7]: 1174; argv[7]: ""anonymous-ftp" "kodi""
pcommand = read-list
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 607; argv[6]: read-groups
argid[7]: 1174; argv[7]: ""everyone""
pcommand = read-groups
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 605; argv[6]: deny-list
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 608; argv[6]: deny-groups
argid[7]: 1174; argv[7]: ""
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Filmy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Filmy"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 598; argv[6]: access-flag
argid[7]: 601; argv[7]: advanced
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 603; argv[6]: valid-users
argid[7]: 1174; argv[7]: ""admin""
pcommand = valid-users
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 606; argv[6]: valid-groups
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 604; argv[6]: read-list
argid[7]: 1174; argv[7]: ""anonymous-ftp" "kodi""
pcommand = read-list
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 607; argv[6]: read-groups
argid[7]: 1174; argv[7]: ""everyone""
pcommand = read-groups
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 605; argv[6]: deny-list
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 608; argv[6]: deny-groups
argid[7]: 1174; argv[7]: ""
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Animovane"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Animované"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 598; argv[6]: access-flag
argid[7]: 601; argv[7]: advanced
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 603; argv[6]: valid-users
argid[7]: 1174; argv[7]: ""admin""
pcommand = valid-users
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 606; argv[6]: valid-groups
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 604; argv[6]: read-list
argid[7]: 1174; argv[7]: ""anonymous-ftp" "kodi""
pcommand = read-list
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 607; argv[6]: read-groups
argid[7]: 1174; argv[7]: ""everyone""
pcommand = read-groups
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 605; argv[6]: deny-list
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 608; argv[6]: deny-groups
argid[7]: 1174; argv[7]: ""
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Serialy"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Seriály"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Sync"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Sync"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Sync"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Sync"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Sync"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Sync"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Sync"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Sync"
argid[6]: 598; argv[6]: access-flag
argid[7]: 599; argv[7]: private
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Sync"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Sync"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Sync"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Sync"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
share path /i-data/53bca321/Sync not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 598; argv[6]: access-flag
argid[7]: 601; argv[7]: advanced
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 603; argv[6]: valid-users
argid[7]: 1174; argv[7]: ""admin""
pcommand = valid-users
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 606; argv[6]: valid-groups
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 604; argv[6]: read-list
argid[7]: 1174; argv[7]: ""anonymous-ftp""
pcommand = read-list
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 607; argv[6]: read-groups
argid[7]: 1174; argv[7]: ""everyone""
pcommand = read-groups
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 605; argv[6]: deny-list
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 608; argv[6]: deny-groups
argid[7]: 1174; argv[7]: ""
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Games"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Games"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
share path /i-data/53bca321/Sync not existing.
share path /i-data/53bca321/Games not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "programs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/programs"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "programs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/programs"
argid[6]: 303; argv[6]: disable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "programs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/programs"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "programs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/programs"
argid[6]: 598; argv[6]: access-flag
argid[7]: 599; argv[7]: private
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "programs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/programs"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "programs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/programs"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
share path /i-data/53bca321/Sync not existing.
share path /i-data/53bca321/Games not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "sysvol"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/sysvol"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "sysvol"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/sysvol"
argid[6]: 303; argv[6]: disable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "sysvol"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/sysvol"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "sysvol"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/sysvol"
argid[6]: 598; argv[6]: access-flag
argid[7]: 599; argv[7]: private
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "sysvol"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/sysvol"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "sysvol"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/sysvol"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
share path /i-data/53bca321/Sync not existing.
share path /i-data/53bca321/Games not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "nfs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/nfs"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "nfs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/nfs"
argid[6]: 303; argv[6]: disable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "nfs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/nfs"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "nfs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/nfs"
argid[6]: 598; argv[6]: access-flag
argid[7]: 599; argv[7]: private
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "nfs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/nfs"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "nfs"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/nfs"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
share path /i-data/53bca321/Sync not existing.
share path /i-data/53bca321/Games not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 598; argv[6]: access-flag
argid[7]: 601; argv[7]: advanced
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 603; argv[6]: valid-users
argid[7]: 1174; argv[7]: ""admin" "kodi""
pcommand = valid-users
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 606; argv[6]: valid-groups
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 604; argv[6]: read-list
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 607; argv[6]: read-groups
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 605; argv[6]: deny-list
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 608; argv[6]: deny-groups
argid[7]: 1174; argv[7]: ""
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "Kodi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/Kodi"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
share path /i-data/53bca321/Sync not existing.
share path /i-data/53bca321/Games not existing.
share path /i-data/53bca321/Kodi not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 598; argv[6]: access-flag
argid[7]: 601; argv[7]: advanced
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 603; argv[6]: valid-users
argid[7]: 1174; argv[7]: ""admin" "kodi""
pcommand = valid-users
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 606; argv[6]: valid-groups
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 604; argv[6]: read-list
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 607; argv[6]: read-groups
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 605; argv[6]: deny-list
argid[7]: 1174; argv[7]: ""
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 608; argv[6]: deny-groups
argid[7]: 1174; argv[7]: ""
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "rpi"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/rpi"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
share path /i-data/53bca321/Sync not existing.
share path /i-data/53bca321/Games not existing.
share path /i-data/53bca321/Kodi not existing.
share path /i-data/53bca321/rpi not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 6,  func = 177
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "backup"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/backup"
folder is not under mount point.
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "backup"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/backup"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "backup"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/backup"
argid[6]: 602; argv[6]: owner
argid[7]: 1140; argv[7]: "admin"
argc = 8,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "backup"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/backup"
argid[6]: 598; argv[6]: access-flag
argid[7]: 599; argv[7]: private
argc = 7,  func = 178
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "backup"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/backup"
argid[6]: 619; argv[6]: recycle-bin
argc = 7,  func = 166
argid[1]: 456; argv[1]: share
argid[2]: 630; argv[2]: save
argid[3]: 1169; argv[3]: "backup"
argid[4]: 395; argv[4]: path
argid[5]: 1171; argv[5]: "/i-data/53bca321/backup"
argid[6]: 350; argv[6]: exit
share path /i-data/md0/admin not existing.
share path /i-data/53bca321/Filmy not existing.
share path /i-data/53bca321/Animované not existing.
share path /i-data/53bca321/Seriály not existing.
share path /i-data/53bca321/Sync not existing.
share path /i-data/53bca321/Games not existing.
share path /i-data/53bca321/Kodi not existing.
share path /i-data/53bca321/rpi not existing.
share path /i-data/53bca321/backup not existing.
RegenSmbConfigFile:2203 Close file ok
argc = 4,  func = 414
argid[1]: 1250; argv[1]: no
argid[2]: 1251; argv[2]: yes
argid[3]: 1252; argv[3]: yes
argc = 2,  func = 385
argid[1]: 1236; argv[1]: on
*** glibc detected *** /sbin/zyshd: double free or corruption (!prev): 0x00253ab8 ***
Dyce
Re: NSA325v2 bad block, can I flash it?
February 08, 2019 03:32AM
Quote
Dyce
Also, the guide assumes I am able to boot up the system to use some commands, is it possible to flash u-boot when I'm unable to boot up ?

Actually I think I misunderstood that part in the guide, those commands are executed in serial console after interrupting autoboot right?
Re: NSA325v2 bad block, can I flash it?
February 08, 2019 04:00AM
I've read some topics around here and what other info bodhi asked from people, so I include that here (sorry for spamming)

printenv command gives
Marvell>>printenv

bootargs=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=/dev/nfs rw init=/init
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
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
MODEL_ID=AE03
PRODUCT_NAME=NSA-325v2
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=5C:F4:AB:DE:EC:D0
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
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=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
disaMvPnp=no
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
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
enaAutoRecovery=yes
kernel_addr=0xc80000
pcieTune=no
pcieTune1=no
ethact=egiga0

Environment size: 1564/131068 bytes

nand bad
Marvell>> nand bad

Device 0 bad blocks:
  00c80000
  01900000

mtdparts
Marvell>> mtdparts

mtdids not defined, no default present
Re: NSA325v2 bad block, can I flash it?
February 08, 2019 12:48PM
Dyce,

Certainly you can flash u-boot in serial console. However, the best way is to do UART booting with kwboot first, and boot Debian on USB. And then flash it inside Debian.

See this post for how to run kwboot:

https://forum.doozan.com/read.php?3,51739,51919#msg-51919

- Prepare the USB rootfs using Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the kernel/rootfs release thread.
- Run kwboot using the image uboot.2017.07-tld-1.nsa325.mtd0.kwb from the u-boot released thread.

After booting into Debian, follow the instruction to flash u-boot in Debian.

BTW, that bad block is so far away from the 1st MB, so it is safe to flash.

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



Edited 1 time(s). Last edit at 02/08/2019 12:50PM by bodhi.
Re: NSA325v2 bad block, can I flash it?
February 10, 2019 03:02AM
Hello again,

Thank you for help, I was able to get one step further, successfully used kwboot and get the box to boot from USB, but now I am stuck here
Michal-NB boot # kwboot -t -B 115200 /dev/ttyUSB0 -b '/home/michal/Desktop/uboot.2017.07-tld-1.nsa325.mtd0.kwb' -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part	Start Sector	Num Sectors	UUID		Type
  1	4096      	30273536  	adb7e22b-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3836140 bytes read in 904 ms (4 MiB/s)
loading uInitrd ...
7245696 bytes read in 908 ms (7.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14548 bytes read in 1537 ms (8.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2019-02-10   8:29:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3836076 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f424000, end 1fb0cf40 ... OK
   Loading Device Tree to 1f41d000, end 1f4238d3 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    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] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200
[    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: 506336K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 17952K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000418] Console: colour dummy device 80x30
[    0.000448] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000467] pid_max: default: 32768 minimum: 301
[    0.000631] Security Framework initialized
[    0.000728] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000744] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001510] CPU: Testing write buffer coherency: ok
[    0.002380] Setting up static identity map for 0x100000 - 0x100058
[    0.002614] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005184] devtmpfs: initialized
[    0.009180] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009202] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.009528] prandom: seed boundary self test passed
[    0.012385] prandom: 100 self tests passed
[    0.012400] pinctrl core: initialized pinctrl subsystem
[    0.013373] NET: Registered protocol family 16
[    0.013657] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015013] cpuidle: using governor ladder
[    0.015073] cpuidle: using governor menu
[    0.015369] Feroceon L2: Enabling L2
[    0.015406] Feroceon L2: Cache support initialised.
[    0.015704] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.019881] No ATAGs?
[    0.027102] vgaarb: loaded
[    0.027356] SCSI subsystem initialized
[    0.027741] usbcore: registered new interface driver usbfs
[    0.027794] usbcore: registered new interface driver hub
[    0.027835] usbcore: registered new device driver usb
[    0.028559] clocksource: Switched to clocksource orion_clocksource
[    0.097621] VFS: Disk quotas dquot_6.6.0
[    0.097694] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.105854] NET: Registered protocol family 2
[    0.106457] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.106514] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.106565] TCP: Hash tables configured (established 4096 bind 4096)
[    0.106634] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.106656] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.106804] NET: Registered protocol family 1
[    0.107143] RPC: Registered named UNIX socket transport module.
[    0.107152] RPC: Registered udp transport module.
[    0.107158] RPC: Registered tcp transport module.
[    0.107163] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.107408] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.108052] audit: initializing netlink subsys (disabled)
[    0.108382] Initialise system trusted keyrings
[    0.108427] Key type blacklist registered
[    0.108507] audit: type=2000 audit(0.099:1): state=initialized audit_enabled=0 res=1
[    0.108644] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.108711] zbud: loaded
[    0.109489] NFS: Registering the id_resolver key type
[    0.109516] Key type id_resolver registered
[    0.109522] Key type id_legacy registered
[    0.109541] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.109550] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.109711] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.109861] fuse init (API version 7.26)
[    0.110133] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.110298] orangefs_init: module version upstream loaded
[    0.110307] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.558564] random: fast init done
[    4.461560] Key type asymmetric registered
[    4.461574] Asymmetric key parser 'x509' registered
[    4.461628] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.461637] io scheduler noop registered
[    4.461644] io scheduler deadline registered
[    4.461718] io scheduler cfq registered (default)
[    4.462692] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.464176] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    4.464194] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    4.464204] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.464215] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.464472] PCI: bus0: Fast back to back transfers disabled
[    4.464491] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.488699] PCI: bus1: Fast back to back transfers disabled
[    4.488872] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    4.488887] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    4.488908] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.488921] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    4.488999] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    4.489078] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    4.489507] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.549136] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    4.549329] mv_xor f1060900.xor: Marvell shared XOR driver
[    4.609119] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    4.609507] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.610596] console [ttyS0] disabled
[    4.610654] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.278625] console [ttyS0] enabled
[    5.288660] loop: module loaded
[    5.292300] sata_mv f1080000.sata: slots 32 ports 2
[    5.299371] scsi host0: sata_mv
[    5.302899] scsi host1: sata_mv
[    5.306251] ata1: SATA max UDMA/133 irq 32
[    5.310407] ata2: SATA max UDMA/133 irq 32
[    5.315151] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    5.321618] nand: Eon NAND 128MiB 3,3V 8-bit
[    5.325903] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.333533] Scanning device for bad blocks
[    5.342490] Bad eraseblock 100 at 0x000000c80000
[    5.351913] Bad eraseblock 200 at 0x000001900000
[    5.395867] 9 ofpart partitions found on MTD device orion_nand
[    5.401738] Creating 9 MTD partitions on "orion_nand":
[    5.406905] 0x000000000000-0x000000100000 : "uboot"
[    5.412863] 0x000000100000-0x000000180000 : "uboot_env"
[    5.419196] 0x000000180000-0x000000200000 : "key_store"
[    5.425377] 0x000000200000-0x000000280000 : "info"
[    5.431112] 0x000000280000-0x000000c80000 : "etc"
[    5.436750] 0x000000c80000-0x000001680000 : "kernel_1"
[    5.442911] 0x000001680000-0x000004640000 : "rootfs1"
[    5.449189] 0x000004640000-0x000005040000 : "kernel_2"
[    5.455364] 0x000005040000-0x000008000000 : "rootfs2"
[    5.462601] libphy: Fixed MDIO Bus: probed
[    5.467298] libphy: orion_mdio_bus: probed
[    5.472200] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.579025] mv643xx_eth: Set the PHY to fix link down
[    5.579620] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    5.593587] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.600198] ehci-pci: EHCI PCI platform driver
[    5.604708] ehci-orion: EHCI orion driver
[    5.608933] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.614495] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.622343] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    5.648587] ata1: SATA link down (SStatus 0 SControl F300)
[    5.654136] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    5.660391] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.667324] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.674609] usb usb1: Product: EHCI Host Controller
[    5.679525] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    5.686257] usb usb1: SerialNumber: f1050000.ehci
[    5.691509] hub 1-0:1.0: USB hub found
[    5.695301] hub 1-0:1.0: 1 port detected
[    5.699752] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.705013] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    5.712807] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    5.721433] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    5.728254] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.735530] usb usb2: Product: xHCI Host Controller
[    5.740441] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    5.747166] usb usb2: SerialNumber: 0000:01:00.0
[    5.752335] hub 2-0:1.0: USB hub found
[    5.756133] hub 2-0:1.0: 2 ports detected
[    5.760603] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.765864] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    5.773413] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.781678] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    5.788500] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.795773] usb usb3: Product: xHCI Host Controller
[    5.800688] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    5.807421] usb usb3: SerialNumber: 0000:01:00.0
[    5.812645] hub 3-0:1.0: USB hub found
[    5.816448] hub 3-0:1.0: 2 ports detected
[    5.821118] usbcore: registered new interface driver usb-storage
[    5.827414] mousedev: PS/2 mouse device common for all mice
[    5.833315] i2c /dev entries driver
[    5.843184] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    5.852766] hidraw: raw HID events driver (C) Jiri Kosina
[    5.858517] drop_monitor: Initializing network drop monitor service
[    5.865031] NET: Registered protocol family 17
[    5.869734] Key type dns_resolver registered
[    5.874578] registered taskstats version 1
[    5.878718] Loading compiled-in X.509 certificates
[    5.883576] zswap: loaded using pool lzo/zbud
[    5.889874] Key type big_key registered
[    5.895171] Key type encrypted registered
[    5.901588] rtc-pcf8563 0-0051: setting system clock to 2019-02-10 07:48:23 UTC (1549784903)
[    6.001299] ata2: SATA link down (SStatus 0 SControl F300)
[    6.017072] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    6.024628] Please append a correct "root=" boot option; here are the available partitions:
[    6.033061] 1f00            1024 mtdblock0 
[    6.033065]  (driver?)
[    6.039657] 1f01             512 mtdblock1 
[    6.039661]  (driver?)
[    6.046228] 1f02             512 mtdblock2 
[    6.046231]  (driver?)
[    6.052813] 1f03             512 mtdblock3 
[    6.052816]  (driver?)
[    6.059405] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.066231] 1f04           10240 mtdblock4 
[    6.066234]  (driver?)
[    6.072817] 1f05           10240 mtdblock5 
[    6.072821]  (driver?)
[    6.079416] 1f06           48896 mtdblock6 
[    6.079419]  (driver?)
[    6.085983] 1f07           10240 mtdblock7 
[    6.085986]  (driver?)
[    6.092567] 1f08           48896 mtdblock8 
[    6.092571]  (driver?)
[    6.099155] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.107453] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.1-kirkwood-tld-1 #1
[    6.114529] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    6.120845] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[    6.128635] [<c010ab48>] (show_stack) from [<c01dba9c>] (panic+0xb0/0x250)
[    6.135546] [<c01dba9c>] (panic) from [<c0c01274>] (mount_block_root+0x204/0x27c)
[    6.143068] [<c0c01274>] (mount_block_root) from [<c0c013d8>] (mount_root+0xec/0x118)
[    6.150932] [<c0c013d8>] (mount_root) from [<c0c01528>] (prepare_namespace+0x124/0x184)
[    6.158972] [<c0c01528>] (prepare_namespace) from [<c0c00e90>] (kernel_init_freeable+0x210/0x260)
[    6.167890] [<c0c00e90>] (kernel_init_freeable) from [<c0833200>] (kernel_init+0x8/0x10c)
[    6.176109] [<c0833200>] (kernel_init) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[    6.183716] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.310099] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.316838] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.338572] usb 1-1: Product: USB2.0 Hub
[    6.349106] hub 1-1:1.0: USB hub found
[    6.358580] hub 1-1:1.0: 4 ports detected
[    6.688575] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    6.981848] usb 1-1.2: New USB device found, idVendor=0951, idProduct=1666
[    6.998576] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.005924] usb 1-1.2: Product: DataTraveler 3.0
[    7.018571] usb 1-1.2: Manufacturer: Kingston
[    7.022947] usb 1-1.2: SerialNumber: 408D5C1E8E4FB0A099500179
[    7.039258] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    7.058761] scsi host2: usb-storage 1-1.2:1.0
[    9.329302] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[    9.350141] sd 2:0:0:0: [sda] 30277632 512-byte logical blocks: (15.5 GB/14.4 GiB)
[    9.368602] sd 2:0:0:0: [sda] Write Protect is off
[    9.373434] sd 2:0:0:0: [sda] Mode Sense: 23 00 00 00
[    9.388598] sd 2:0:0:0: [sda] No Caching mode page found
[    9.393934] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    9.413208]  sda: sda1
[    9.418122] sd 2:0:0:0: [sda] Attached SCSI removable disk
[  113.848610] random: crng init done

System on USB is "Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2" on one ext3 partition labeled "rootfs" with MBR(msdos) partition table, I also did step number 4 "Create uImage with embedded DTB for booting with older u-boots", without it I was not able to boot from USB at all. Could you please help me with this?

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

Environment size: 3016/131068 bytes



Edited 2 time(s). Last edit at 02/10/2019 03:18AM by Dyce.
Re: NSA325v2 bad block, can I flash it?
February 10, 2019 03:52AM
Dyce,

> System on USB is
> "Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2"
> on one ext3 partition labeled "rootfs" with
> MBR(msdos) partition table,

That's correct.

> I also did step number
> 4 "Create uImage with embedded DTB for booting
> with older u-boots", without it I was not able to
> boot from USB at all.

DTB should not be appended when you boot with new u-boot (that was the problem in your last boot).

Restore the original uImage, and try booting again.

Run kwboot. Interrupt serial console, and

printenv
boot

Please post entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v2 bad block, can I flash it?
February 10, 2019 04:07AM
Hello again,

I restored the original uImage and boot using that, here is the console output, which is for some reason different than what I had previously (before appending DTB), I have no idea why... Anyway, here it is:
Michal-NB ~ # kwboot -t -B 115200 /dev/ttyUSB0 -b '/home/michal/Desktop/uboot.2017.07-tld-1.nsa325.mtd0.kwb' -p
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

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

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

Reset IDE: ide_preinit failed

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

Part	Start Sector	Num Sectors	UUID		Type
  1	4096      	30273536  	adb7e22b-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 904 ms (4 MiB/s)
loading uInitrd ...
7245696 bytes read in 908 ms (7.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14548 bytes read in 1538 ms (8.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f424000, end 1fb0cf40 ... OK
   Loading Device Tree to 1f41d000, end 1f4238d3 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    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] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    0.000000] 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: 499256K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25032K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000419] Console: colour dummy device 80x30
[    0.000446] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000464] pid_max: default: 32768 minimum: 301
[    0.000627] Security Framework initialized
[    0.000726] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000742] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001454] CPU: Testing write buffer coherency: ok
[    0.002324] Setting up static identity map for 0x100000 - 0x100058
[    0.002559] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005224] devtmpfs: initialized
[    0.009394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009417] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.009740] prandom: seed boundary self test passed
[    0.012597] prandom: 100 self tests passed
[    0.012612] pinctrl core: initialized pinctrl subsystem
[    0.013593] NET: Registered protocol family 16
[    0.013939] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015308] cpuidle: using governor ladder
[    0.015369] cpuidle: using governor menu
[    0.015731] Feroceon L2: Enabling L2
[    0.015768] Feroceon L2: Cache support initialised.
[    0.016067] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.020281] No ATAGs?
[    0.027513] vgaarb: loaded
[    0.027763] SCSI subsystem initialized
[    0.028144] usbcore: registered new interface driver usbfs
[    0.028194] usbcore: registered new interface driver hub
[    0.028235] usbcore: registered new device driver usb
[    0.029006] clocksource: Switched to clocksource orion_clocksource
[    0.098099] VFS: Disk quotas dquot_6.6.0
[    0.098173] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.106362] NET: Registered protocol family 2
[    0.106969] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.107026] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.107078] TCP: Hash tables configured (established 4096 bind 4096)
[    0.107144] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.107166] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.107311] NET: Registered protocol family 1
[    0.107658] RPC: Registered named UNIX socket transport module.
[    0.107668] RPC: Registered udp transport module.
[    0.107674] RPC: Registered tcp transport module.
[    0.107680] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.107872] Unpacking initramfs...
[    0.608650] Freeing initrd memory: 7076K
[    0.608766] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.609551] audit: initializing netlink subsys (disabled)
[    0.609912] Initialise system trusted keyrings
[    0.609962] Key type blacklist registered
[    0.610042] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1
[    0.610120] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.610175] zbud: loaded
[    0.610943] NFS: Registering the id_resolver key type
[    0.610964] Key type id_resolver registered
[    0.610971] Key type id_legacy registered
[    0.610990] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.610999] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.611160] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.611312] fuse init (API version 7.26)
[    0.611585] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.611753] orangefs_init: module version upstream loaded
[    0.611761] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.559011] random: fast init done
[    4.970421] Key type asymmetric registered
[    4.970436] Asymmetric key parser 'x509' registered
[    4.970492] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.970500] io scheduler noop registered
[    4.970507] io scheduler deadline registered
[    4.970578] io scheduler cfq registered (default)
[    4.971574] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.973051] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    4.973069] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    4.973079] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.973090] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.973345] PCI: bus0: Fast back to back transfers disabled
[    4.973364] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.999105] PCI: bus1: Fast back to back transfers disabled
[    4.999274] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    4.999289] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    4.999310] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.999323] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    4.999398] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    4.999476] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    4.999904] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.059576] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.059767] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.119571] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.119956] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.121052] console [ttyS0] disabled
[    5.121110] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.815058] console [ttyS0] enabled
[    5.825036] loop: module loaded
[    5.828678] sata_mv f1080000.sata: slots 32 ports 2
[    5.835759] scsi host0: sata_mv
[    5.839311] scsi host1: sata_mv
[    5.842667] ata1: SATA max UDMA/133 irq 32
[    5.846779] ata2: SATA max UDMA/133 irq 32
[    5.851560] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    5.858003] nand: Eon NAND 128MiB 3,3V 8-bit
[    5.862323] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.869942] Scanning device for bad blocks
[    5.878878] Bad eraseblock 100 at 0x000000c80000
[    5.888303] Bad eraseblock 200 at 0x000001900000
[    5.932268] 9 cmdlinepart partitions found on MTD device orion_nand
[    5.938564] Creating 9 MTD partitions on "orion_nand":
[    5.943744] 0x000000000000-0x000000100000 : "uboot"
[    5.949721] 0x000000100000-0x000000180000 : "stock_uboot_env"
[    5.956515] 0x000000180000-0x000000200000 : "key_store"
[    5.962738] 0x000000200000-0x000000280000 : "info"
[    5.968385] 0x000000280000-0x000000c80000 : "etc"
[    5.974072] 0x000000c80000-0x000001680000 : "kernel_1"
[    5.980212] 0x000001680000-0x000004640000 : "rootfs1"
[    5.986452] 0x000004640000-0x000005040000 : "kernel_2"
[    5.992662] 0x000005040000-0x000008000000 : "rootfs2"
[    5.999894] libphy: Fixed MDIO Bus: probed
[    6.004602] libphy: orion_mdio_bus: probed
[    6.012728] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.119462] mv643xx_eth: Set the PHY to fix link down
[    6.120059] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    6.134024] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.140633] ehci-pci: EHCI PCI platform driver
[    6.145144] ehci-orion: EHCI orion driver
[    6.149373] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.154929] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.162776] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    6.183951] ata1: SATA link down (SStatus 0 SControl F300)
[    6.189486] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.189704] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.189710] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.189715] usb usb1: Product: EHCI Host Controller
[    6.189719] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    6.189724] usb usb1: SerialNumber: f1050000.ehci
[    6.190243] hub 1-0:1.0: USB hub found
[    6.190279] hub 1-0:1.0: 1 port detected
[    6.190755] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.190776] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    6.191092] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    6.191285] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.191292] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.191297] usb usb2: Product: xHCI Host Controller
[    6.191301] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.191305] usb usb2: SerialNumber: 0000:01:00.0
[    6.191803] hub 2-0:1.0: USB hub found
[    6.191838] hub 2-0:1.0: 2 ports detected
[    6.192234] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.192248] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    6.200516] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.200633] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    6.200639] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.200643] usb usb3: Product: xHCI Host Controller
[    6.200648] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.200652] usb usb3: SerialNumber: 0000:01:00.0
[    6.201168] hub 3-0:1.0: USB hub found
[    6.201200] hub 3-0:1.0: 2 ports detected
[    6.201794] usbcore: registered new interface driver usb-storage
[    6.202064] mousedev: PS/2 mouse device common for all mice
[    6.202322] i2c /dev entries driver
[    6.377767] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    6.387464] hidraw: raw HID events driver (C) Jiri Kosina
[    6.393239] drop_monitor: Initializing network drop monitor service
[    6.399742] NET: Registered protocol family 17
[    6.404269] Key type dns_resolver registered
[    6.409314] registered taskstats version 1
[    6.413429] Loading compiled-in X.509 certificates
[    6.418278] zswap: loaded using pool lzo/zbud
[    6.430579] Key type big_key registered
[    6.441925] Key type encrypted registered
[    6.448306] rtc-pcf8563 0-0051: setting system clock to 2019-02-10 09:15:05 UTC (1549790105)
[    6.549032] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.710452] ata2: SATA link down (SStatus 0 SControl F300)
[    6.729001] Freeing unused kernel memory: 1024K
[    6.741177] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.747933] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.765431] usb 1-1: Product: USB2.0 Hub
[    6.775852] hub 1-1:1.0: USB hub found
Loading, please wait...
[    6.783817] hub 1-1:1.0: 4 ports detected
starting version 232
[    7.109083] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    7.392327] usb 1-1.3: New USB device found, idVendor=0951, idProduct=1666
[    7.404587] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.419070] usb 1-1.3: Product: DataTraveler 3.0
[    7.423713] usb 1-1.3: Manufacturer: Kingston
[    7.428090] usb 1-1.3: SerialNumber: 408D5C1E8E4FB0A099500179
[    7.450544] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    7.465693] scsi host2: usb-storage 1-1.3:1.0
[    7.477979] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[    9.466364] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[    9.479345] sd 2:0:0:0: [sda] 30277632 512-byte logical blocks: (15.5 GB/14.4 GiB)
[    9.494391] sd 2:0:0:0: [sda] Write Protect is off
[    9.502466] sd 2:0:0:0: [sda] No Caching mode page found
[    9.507813] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    9.523771]  sda: sda1
[    9.543081] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file[   18.235351] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
 system
[   18.251897] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
mount: mounting /run on /root/run failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
run-init: /sbin/init: No such file or directory
[   18.419172] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[   18.419172] 
[   18.428357] CPU: 0 PID: 1 Comm: run-init Not tainted 4.12.1-kirkwood-tld-1 #1
[   18.435517] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   18.441835] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[   18.449624] [<c010ab48>] (show_stack) from [<c01dba9c>] (panic+0xb0/0x250)
[   18.456538] [<c01dba9c>] (panic) from [<c011a3e8>] (do_exit+0x5e0/0xa64)
[   18.463272] [<c011a3e8>] (do_exit) from [<c011bbcc>] (do_group_exit+0x0/0xec)
[   18.470438] [<c011bbcc>] (do_group_exit) from [<018002a8>] (0x18002a8)
[   18.477002] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[   18.477002] 


Re: NSA325v2 bad block, can I flash it?
February 10, 2019 04:13AM
Dyce,

Now the kernel is booting correctly. But your rootfs has problem.


> System on USB is
> "Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2"
> on one ext3 partition labeled "rootfs" with
> MBR(msdos) partition table,

Did you remember to be root user while you create the rootfs? (sudo is not enough while you are extracting to rootfs using tar).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v2 bad block, can I flash it?
February 10, 2019 04:17AM
Hello,

I used "su" command to log in as root user. I suppose that is enough right? Then I used gparted to set up the USB according to instructions. I am going to redo it again from scratch, just in case I did something wrong. I will edit this reply after with result.

Edit: Okay, I was now able to boot into debian, here is the console output. I will try to flash uboot now and will write here again if I need any help. Thank you so far for your assistance!

ichal-NB ~ # kwboot -t -B 115200 /dev/ttyUSB0 -b '/home/michal/Desktop/uboot.2017.07-tld-1.nsa325.mtd0.kwb' -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

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

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

Reset IDE: ide_preinit failed

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	30275584  	adb7e22b-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 904 ms (4 MiB/s)
loading uInitrd ...
7245696 bytes read in 908 ms (7.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14548 bytes read in 1538 ms (8.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f424000, end 1fb0cf40 ... OK
   Loading Device Tree to 1f41d000, end 1f4238d3 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    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] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    0.000000] 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: 499256K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25032K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000419] Console: colour dummy device 80x30
[    0.000446] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000464] pid_max: default: 32768 minimum: 301
[    0.000627] Security Framework initialized
[    0.000726] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000742] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001454] CPU: Testing write buffer coherency: ok
[    0.002324] Setting up static identity map for 0x100000 - 0x100058
[    0.002559] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005223] devtmpfs: initialized
[    0.009383] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009406] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.009728] prandom: seed boundary self test passed
[    0.012586] prandom: 100 self tests passed
[    0.012601] pinctrl core: initialized pinctrl subsystem
[    0.013581] NET: Registered protocol family 16
[    0.013928] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015299] cpuidle: using governor ladder
[    0.015360] cpuidle: using governor menu
[    0.015721] Feroceon L2: Enabling L2
[    0.015759] Feroceon L2: Cache support initialised.
[    0.016058] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.020281] No ATAGs?
[    0.027513] vgaarb: loaded
[    0.027765] SCSI subsystem initialized
[    0.028149] usbcore: registered new interface driver usbfs
[    0.028198] usbcore: registered new interface driver hub
[    0.028240] usbcore: registered new device driver usb
[    0.029014] clocksource: Switched to clocksource orion_clocksource
[    0.098073] VFS: Disk quotas dquot_6.6.0
[    0.098147] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.106341] NET: Registered protocol family 2
[    0.106944] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.107001] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.107052] TCP: Hash tables configured (established 4096 bind 4096)
[    0.107121] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.107143] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.107288] NET: Registered protocol family 1
[    0.107633] RPC: Registered named UNIX socket transport module.
[    0.107644] RPC: Registered udp transport module.
[    0.107649] RPC: Registered tcp transport module.
[    0.107655] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.107849] Unpacking initramfs...
[    0.608478] Freeing initrd memory: 7076K
[    0.608593] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.609387] audit: initializing netlink subsys (disabled)
[    0.609751] Initialise system trusted keyrings
[    0.609798] Key type blacklist registered
[    0.609880] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1
[    0.609960] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.610016] zbud: loaded
[    0.610788] NFS: Registering the id_resolver key type
[    0.610810] Key type id_resolver registered
[    0.610817] Key type id_legacy registered
[    0.610836] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.610844] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.611006] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.611158] fuse init (API version 7.26)
[    0.611430] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.611596] orangefs_init: module version upstream loaded
[    0.611605] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.559019] random: fast init done
[    4.970102] Key type asymmetric registered
[    4.970117] Asymmetric key parser 'x509' registered
[    4.970172] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.970182] io scheduler noop registered
[    4.970188] io scheduler deadline registered
[    4.970259] io scheduler cfq registered (default)
[    4.971262] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.972738] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    4.972755] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    4.972765] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.972776] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.973033] PCI: bus0: Fast back to back transfers disabled
[    4.973052] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.999113] PCI: bus1: Fast back to back transfers disabled
[    4.999283] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    4.999298] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    4.999319] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.999332] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    4.999406] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    4.999483] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    4.999911] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.059581] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.059773] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.119579] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.119964] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.121060] console [ttyS0] disabled
[    5.121119] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.815080] console [ttyS0] enabled
[    5.825063] loop: module loaded
[    5.828711] sata_mv f1080000.sata: slots 32 ports 2
[    5.835798] scsi host0: sata_mv
[    5.839349] scsi host1: sata_mv
[    5.842706] ata1: SATA max UDMA/133 irq 32
[    5.846816] ata2: SATA max UDMA/133 irq 32
[    5.851606] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    5.858050] nand: Eon NAND 128MiB 3,3V 8-bit
[    5.862369] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.869987] Scanning device for bad blocks
[    5.878925] Bad eraseblock 100 at 0x000000c80000
[    5.888349] Bad eraseblock 200 at 0x000001900000
[    5.932321] 9 cmdlinepart partitions found on MTD device orion_nand
[    5.938610] Creating 9 MTD partitions on "orion_nand":
[    5.943790] 0x000000000000-0x000000100000 : "uboot"
[    5.949763] 0x000000100000-0x000000180000 : "stock_uboot_env"
[    5.956554] 0x000000180000-0x000000200000 : "key_store"
[    5.962784] 0x000000200000-0x000000280000 : "info"
[    5.968427] 0x000000280000-0x000000c80000 : "etc"
[    5.974109] 0x000000c80000-0x000001680000 : "kernel_1"
[    5.980252] 0x000001680000-0x000004640000 : "rootfs1"
[    5.986489] 0x000004640000-0x000005040000 : "kernel_2"
[    5.992716] 0x000005040000-0x000008000000 : "rootfs2"
[    5.999938] libphy: Fixed MDIO Bus: probed
[    6.004646] libphy: orion_mdio_bus: probed
[    6.012827] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.119471] mv643xx_eth: Set the PHY to fix link down
[    6.120067] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    6.134026] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.140637] ehci-pci: EHCI PCI platform driver
[    6.145147] ehci-orion: EHCI orion driver
[    6.149375] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.154933] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.162778] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    6.183954] ata1: SATA link down (SStatus 0 SControl F300)
[    6.189488] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.189707] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.189713] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.189718] usb usb1: Product: EHCI Host Controller
[    6.189722] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    6.189726] usb usb1: SerialNumber: f1050000.ehci
[    6.190248] hub 1-0:1.0: USB hub found
[    6.190284] hub 1-0:1.0: 1 port detected
[    6.190762] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.190783] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    6.191098] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    6.191292] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.191298] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.191303] usb usb2: Product: xHCI Host Controller
[    6.191307] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.191312] usb usb2: SerialNumber: 0000:01:00.0
[    6.191809] hub 2-0:1.0: USB hub found
[    6.191843] hub 2-0:1.0: 2 ports detected
[    6.192239] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.192253] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    6.200517] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.200634] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    6.200640] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.200644] usb usb3: Product: xHCI Host Controller
[    6.200649] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.200653] usb usb3: SerialNumber: 0000:01:00.0
[    6.201169] hub 3-0:1.0: USB hub found
[    6.201201] hub 3-0:1.0: 2 ports detected
[    6.201795] usbcore: registered new interface driver usb-storage
[    6.202066] mousedev: PS/2 mouse device common for all mice
[    6.202323] i2c /dev entries driver
[    6.377786] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    6.387486] hidraw: raw HID events driver (C) Jiri Kosina
[    6.393271] drop_monitor: Initializing network drop monitor service
[    6.399772] NET: Registered protocol family 17
[    6.404308] Key type dns_resolver registered
[    6.409351] registered taskstats version 1
[    6.413467] Loading compiled-in X.509 certificates
[    6.418323] zswap: loaded using pool lzo/zbud
[    6.430642] Key type big_key registered
[    6.441997] Key type encrypted registered
[    6.448377] rtc-pcf8563 0-0051: setting system clock to 2019-02-10 09:51:15 UTC (1549792275)
[    6.549040] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.710460] ata2: SATA link down (SStatus 0 SControl F300)
[    6.729032] Freeing unused kernel memory: 1024K
[    6.741304] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.748057] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.765431] usb 1-1: Product: USB2.0 Hub
[    6.775835] hub 1-1:1.0: USB hub found
Loading, please wait...
[    6.783936] hub 1-1:1.0: 4 ports detected
starting version 232
[    7.109102] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    7.392449] usb 1-1.3: New USB device found, idVendor=0951, idProduct=1666
[    7.405273] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.419098] usb 1-1.3: Product: DataTraveler 3.0
[    7.423741] usb 1-1.3: Manufacturer: Kingston
[    7.428118] usb 1-1.3: SerialNumber: 408D5C1E8E4FB0A099500179
[    7.438693] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    7.445399] scsi host2: usb-storage 1-1.3:1.0
[    7.457600] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[    9.762742] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[    9.775717] sd 2:0:0:0: [sda] 30277632 512-byte logical blocks: (15.5 GB/14.4 GiB)
[    9.789593] sd 2:0:0:0: [sda] Write Protect is off
[    9.798980] sd 2:0:0:0: [sda] No Caching mode page found
[    9.806117] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    9.821020]  sda: sda1
[    9.831448] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file[   18.531352] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
 system
[   18.540128] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   18.547045] EXT4-fs (sda1): write access will be enabled during recovery
[   38.847471] random: crng init done
[   60.572474] EXT4-fs (sda1): recovery complete
[   62.110338] 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.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   65.084509] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   65.172090] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   65.409137] orion_wdt: Initial timeout 21 sec
[   65.492360] marvell-cesa f1030000.crypto: CESA device successfully registered
[   65.628087] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   68.071414] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
Superblock last mount time is in the future.
	(by less than a day, probably due to the hardware clock being incorrectly set)
Superblock last write time is in the future.
	(by less than a day, probably due to the hardware clock being incorrectly set)
rootfs: clean, 14452/946560 files, 221826/3784448 blocks
. ok 
[   68.292253] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[   74.660975] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   77.653901] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   80.604374] NET: Registered protocol family 10
[   80.611013] Segment Routing with IPv6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPREQUEST of 192.168.88.168 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.88.168 from 192.168.88.1
DHCPACK of 192.168.88.168 from 192.168.88.1
bound to 192.168.88.168 -- renewal in 262 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1342 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting system message bus: dbus.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1345 (klogd)
. ok 
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
 
Last login: Wed Dec 31 16:01:32 PST 1969 from 192.168.0.220 on pts/0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#

Edit: just a quick question, see output below
root@debian:/tmp# fw_printenv ethaddr
Warning: Bad CRC, using default environment
ethaddr=00:00:11:22:33:44
root@debian:/tmp#

Should I be concerned about that "bad CRC" message or am I safe to proceed?

Edit: after using fw_printenv from the tools you provided on dropbox, I see this output
root@debian:/tmp/tools# ./fw_printenv ethaddr
Warning: Bad CRC, using default environment
## Error: "ethaddr" not defined



Edited 3 time(s). Last edit at 02/10/2019 05:06AM by Dyce.
Re: NSA325v2 bad block, can I flash it?
February 10, 2019 01:48PM
Dyce,

Cool! all looks great!

> Edit: just a quick question, see output below
>
> root@debian:/tmp# fw_printenv ethaddr
> Warning: Bad CRC, using default environment
> ethaddr=00:00:11:22:33:44
> root@debian:/tmp# 
> 
>

That's OK. Since you are booting wit kwboot, and have not flashed u-boot and its envs image. You can go ahead with other steps.

That printenv for ethaddr works as a sanity check when you install u-boot inside stock OS.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v2 bad block, can I flash it?
February 11, 2019 10:48AM
Hello again,

thank you very much for you help! I successfully flashed u-boot and was able to boot debian from USB. Have a nice day and keep up the amazing work you are doing!

edit: any idea on how I can get my data from HDD's (raid1) ? debian lists the partitions as unknown type
Device     Boot   Start        End    Sectors  Size Id Type
/dev/sda1            63    1028159    1028097  502M  8 AIX
/dev/sda2       1028160 3907024064 3905995905  1.8T 20 unknown



Edited 1 time(s). Last edit at 02/11/2019 12:05PM by Dyce.
Re: NSA325v2 bad block, can I flash it?
February 11, 2019 12:46PM
Dyce,

> edit: any idea on how I can get my data from HDD's
> (raid1) ? debian lists the partitions as unknown
> type
>
> Device     Boot   Start        End    Sectors 
> Size Id Type
> /dev/sda1            63    1028159    1028097 
> 502M  8 AIX
> /dev/sda2       1028160 3907024064 3905995905 
> 1.8T 20 unknown
> 
>

If you have saved mtd0 as I instructed, you can use kwboot to boot back to stock and copy the data.

Quote

3. Be sure to save your current uBoot image in mtd0, or have a backup image saved somewhere as precaution. And save your current u-boot envs with fw_printenv, or just copy/paste the listing into a text file. Note the nanddump command below allows future restoration to the same box you're backing up, and also can be used to restore a differrent box's mtd0 if needed.

Dumping NAND mtd0:
nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0

kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0 -p

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325v2 bad block, can I flash it?
February 11, 2019 01:12PM
My stock system was not booting, so that was not option for me anyway, but when I connected the second disk, debian recognized it is a raid1 array and automagically created the raid1 for me, I just had to mount it and all of my data is there. Thank you again for all the help and sorry for bothering you with so many questions. Have a nice day and THANK YOU once more!
Re: NSA325v2 bad block, can I flash it?
February 11, 2019 04:10PM
Dyce,

> My stock system was not booting, so that was not
> option for me anyway, but when I connected the
> second disk, debian recognized it is a raid1 array
> and automagically created the raid1 for me, I just
> had to mount it and all of my data is there.

Cool! glad it was that easy. I think the module was not triggered until the 2nd disk is active.

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

Your Email:


Subject:


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