Welcome! Log In Create A New Profile

Advanced

Zyxel NSA320 Bricked

Posted by rookpl 
Zyxel NSA320 Bricked
November 27, 2019 01:28AM
Hello,

I've tried to install something different than stock system, but i failed. Now my Zyxel wont boot.I found cable from old Nokia, and connect to serial and thats the output:

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

U-Boot 1.1.4 (Nov  9 2012 - 14:55:24) Marvell version: 3.4.19

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

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
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)
//---  stateButtonBit = 3, recovery ---//
Kernel address is 0xc80000.

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Hit any key to stop autoboot:  0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found

** Bad partition 1 **
## Booting image at 02000000 ...
Bad Magic Number
NSA320>>


Printenv
bootdelay=2
baudrate=115200
loads_echo=0
eth1addr=00:19:CB:00:51:82
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=DD01
PRODUCT_NAME=NSA-320
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
ethaddr=
arcNumber=3956
bootargs_stock=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
bootargs_linux=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/sda2 rw rootwait loglevel=8
bootcmd_linux=setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr)
bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)
to_stock=setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset
to_linux=setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset
console=100000
=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
CASset=min
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
bootargs_end=:::orion: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;
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
bootcmd='run bootcmd_linux'
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=100000
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
MALLOC_len=3
netbsd_en=no
vxworks_en=no
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
kernel_addr=0xc80000
pcieTune=no
ethact=egiga1
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/sda2 rw rootwait loglevel=8

Environment size: 2464/131068 bytes

Could anybody help me with that problem? I stucked, and dont know what next...



Edited 1 time(s). Last edit at 12/03/2019 02:06AM by rookpl.
Re: Zyxel NSA320 Bricked
November 27, 2019 03:58AM
rookpl,

From the lookk of your envs, you must have tried to install Arch, right?
bootcmd_linux=setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr)

Your u-boot is stock u-boot, so to boot Arch rootfs, you must use the correct version that is older than the latest Arch rootfs. If you want to continue booting Arch, then you should find the much older rootfs than what they are providing currently. That's the only problem.

So let me know what you want to do next. Do you want to continue using Arch Linux ARM, or do you want to switch to Debian?

My release here is the new u-boot (2017), and Debian rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel NSA320 Bricked
November 27, 2019 03:59AM
And it is not bricked at all! far from it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel NSA320 Bricked
November 27, 2019 05:58AM
bodhi Wrote:
-------------------------------------------------------
> And it is not bricked at all! far from it.


glad to hear that :)

Yes i tried install Arch - that was my first contact with that distro - and no luck ;)

I have private VPS with Debian, I know a little that system, so maybe it's better for me to switch to Debian.

If you could guide me and help me out of this mess, I would be very grateful.

I decided to switch to other OS becouse i couldn't find solution for problem with download speed.
Download speed on my NSA320 was 40 MB/s but only in LAN, with wget in console or with transmission, there was only 12 MB/s (nic was set to 1000 mbit, 300 mbit from provider, tested on 2 routers). If not that, i probably be sitting on stock firmware.



Edited 3 time(s). Last edit at 11/27/2019 06:32AM by rookpl.
Re: Zyxel NSA320 Bricked
November 27, 2019 05:35PM
rookpl,

There are 2 alternatives to get it booting Debian: modify stock envs (slow) and boot new u-boot with kwboot (fast). After you can boot the new u-boot with kwboot using serial console, it is just a matter of booting the Debian rootfs on USB.

To prepare the installation: download my released Debian rootfs and new u-boot tarball.

1. Here is the Debian rootfs thread: https://forum.doozan.com/read.php?2,12096.

You wan to use the rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

Scroll down to section:

Quote

Updated 06 Oct 2019:

Kernel linux-5.3.2-kirkwood-tld-1 package has been uploaded. The following features were added/updated:

- This kernel is now configured to run with Kirkwood boxes up to 2GB RAM.
- Updated Dell Kace M300 DTS.
- This kernel header now can be installed and used to build cryptodev module, without any special tweaks.

Latest Linux kernel 5.x general release information can be found at:
LinuxChanges log


Download at Dropbox:

linux-5.3.2-kirkwood-tld-1-bodhi.tar.bz2
md5:
34bad231278eea02a5b2cf9e1b9edc82
sha256:
21e8bef672e0c62e10e87bd4466f64e4f174ed1720cd2d5b22e3df75bf70d7b6

Create the Debian rootfs on USB first, follow the instruction very closely (you must become root, sudo won't work....).

2. This is the u-boot release thead: https://forum.doozan.com/read.php?3,12381. In that you will find the new u-boot u-boot image for this box, and that is

(Extract the u-boot image in this tarball

Quote

Download U-Boot images at Dropbox:
....
uboot.2017.07-tld-1.nsa320.bodhi.tar
md5
ed39fa5a2f79809f32a78b661faa7a2c
sha256
67eba01db75a020cdb71e20b636d5863042f51a996f9c80d342e7ccca64a31e2


3. UART booting:

Here is an example for booting the NSA320S. You would do the same thing. Basically, you want to run kwboot where your serial console server is now. So you need that to be a Linux box (not MAC OS or Windows).

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

Your kwboot command should be:

kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa320.mtd0.kwb  -p

4. After you have booted uboot.2017.07-tld-1.nsa320, and intrerrupt the countdown, and at the u-boot prompt, we will adjust the envs to boot this box.

With the box power down,

- Plug in the Debian USB rootfs, and start kwboot. And power up.
- Interrupt u-boot at the countdown, and enter these commands

printenv
boot

Let it boot all the way until the Debian login prompt. Log in as root/root (once you have logged in, you can proceed to flash the new u-boot following the instruction in the release thread)

Please post the entire serial console log here (good to record what's going on even it is successfully booted).

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



Edited 3 time(s). Last edit at 11/29/2019 06:29PM by bodhi.
Re: Zyxel NSA320 Bricked
November 29, 2019 06:05PM
hi, thank you for your time.

everything is done
but at the end i got again "bad magic number"

 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:46:11 -0700)
ZyXEL NSA320 2-Bay Power Media Server

SoC:   Kirkwood 88F6281_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... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed
## 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

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-nsa320.dtb ...
** Bad device usb 0 **
Unknown command 'bootm0x800000' - try 'help'
resetting ...
�
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: RD-88F6281A LE 

U-Boot 1.1.4 (Nov  9 2012 - 14:55:24) Marvell version: 3.4.19

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

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
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)
//---  stateButtonBit = 3, recovery ---//
Kernel address is 0xc80000.

Streaming disabled 
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Hit any key to stop autoboot:  0 

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found

** Bad partition 1 **
## Booting image at 02000000 ...
Bad Magic Number



Edited 2 time(s). Last edit at 11/29/2019 06:14PM by rookpl.
Re: Zyxel NSA320 Bricked
November 29, 2019 06:26PM
rookpl,

Please the step 4 I've justed edited above.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel NSA320 Bricked
November 30, 2019 08:08AM
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:46:11 -0700)
ZyXEL NSA320 2-Bay Power Media Server

SoC:   Kirkwood 88F6281_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 
NSA320> printenv
arcNumber=3956
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-nsa320.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
NSA320> 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      	7759872   	07559476-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 722 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4975125 bytes read in 1272 ms (3.7 MiB/s)
loading uInitrd ...
9713936 bytes read in 1408 ms (6.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320.dtb ...
13153 bytes read in 2753 ms (3.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2019-11-30  13:04:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4975061 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f6bc000, end 0ffff8d0 ... OK
   Loading Device Tree to 0f6b5000, end 0f6bb360 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Seagate GoFlex Net
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000][    T0] Memory: 114320K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 16752K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008602][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015983][    T0] Console: colour dummy device 80x30
[    0.021227][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032553][    T0] pid_max: default: 32768 minimum: 301
[    0.038257][    T0] LSM: Security Framework initializing
[    0.043819][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051222][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.059897][    T0] *** VALIDATE proc ***
[    0.064177][    T0] *** VALIDATE cgroup1 ***
[    0.068479][    T0] *** VALIDATE cgroup2 ***
[    0.072906][    T0] CPU: Testing write buffer coherency: ok
[    0.080298][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.087494][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.093711][    T1] rcu: Hierarchical SRCU implementation.
[    0.102563][    T1] devtmpfs: initialized
[    0.112214][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.122883][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.130034][    T1] xor: measuring software checksum speed
[    0.228624][    T1]    arm4regs  :  1089.200 MB/sec
[    0.328624][    T1]    8regs     :   654.000 MB/sec
[    0.428624][    T1]    32regs    :   950.800 MB/sec
[    0.433531][    T1] xor: using function: arm4regs (1089.200 MB/sec)
[    0.439867][    T1] prandom: seed boundary self test passed
[    0.449675][    T1] prandom: 100 self tests passed
[    0.454492][    T1] pinctrl core: initialized pinctrl subsystem
[    0.461912][    T1] NET: Registered protocol family 16
[    0.467640][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.476117][    T1] audit: initializing netlink subsys (disabled)
[    0.483532][   T14] audit: type=2000 audit(0.470:1): state=initialized audit_enabled=0 res=1
[    0.492158][    T1] cpuidle: using governor ladder
[    0.497046][    T1] cpuidle: using governor menu
[    0.502270][    T1] Feroceon L2: Enabling L2
[    0.506605][    T1] Feroceon L2: Cache support initialised.
[    0.517878][    T1] No ATAGs?
[    2.568609][    C0] random: fast init done
[    6.452300][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    6.458511][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    6.639065][    T1] raid6: int32x8  gen()   128 MB/s
[    6.808930][    T1] raid6: int32x8  xor()    86 MB/s
[    6.979040][    T1] raid6: int32x4  gen()   130 MB/s
[    7.148811][    T1] raid6: int32x4  xor()    84 MB/s
[    7.318967][    T1] raid6: int32x2  gen()   133 MB/s
[    7.488749][    T1] raid6: int32x2  xor()    94 MB/s
[    7.658953][    T1] raid6: int32x1  gen()   100 MB/s
[    7.828964][    T1] raid6: int32x1  xor()    69 MB/s
[    7.833946][    T1] raid6: using algorithm int32x2 gen() 133 MB/s
[    7.840084][    T1] raid6: .... xor() 94 MB/s, rmw enabled
[    7.845596][    T1] raid6: using intx1 recovery algorithm
[    7.851291][    T1] vgaarb: loaded
[    7.855219][    T1] SCSI subsystem initialized
[    7.860219][    T1] usbcore: registered new interface driver usbfs
[    7.866489][    T1] usbcore: registered new interface driver hub
[    7.872645][    T1] usbcore: registered new device driver usb
[    7.878618][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.884305][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.894213][    T1] PTP clock support registered
[    7.900191][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.939105][    T1] VFS: Disk quotas dquot_6.6.0
[    8.943874][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.961446][    T1] NET: Registered protocol family 2
[    8.967359][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    8.975856][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    8.983617][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    8.990755][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    8.997927][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    9.004526][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    9.011774][    T1] NET: Registered protocol family 1
[    9.017500][    T1] RPC: Registered named UNIX socket transport module.
[    9.024233][    T1] RPC: Registered udp transport module.
[    9.029658][    T1] RPC: Registered tcp transport module.
[    9.035106][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.042302][    T1] PCI: CLS 0 bytes, default 32
[    9.047347][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.055774][    T1] Initialise system trusted keyrings
[    9.061057][    T1] Key type blacklist registered
[    9.065984][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    9.073326][    T1] zbud: loaded
[    9.077668][    T1] NFS: Registering the id_resolver key type
[    9.083580][    T1] Key type id_resolver registered
[    9.088484][    T1] Key type id_legacy registered
[    9.093274][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.100730][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.108099][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.116156][    T1] fuse: init (API version 7.31)
[    9.121291][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.128632][    T1] orangefs_init: module version upstream loaded
[    9.134784][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    9.146517][    T1] async_tx: api initialized (async)
[    9.151682][    T1] Key type asymmetric registered
[    9.156492][    T1] Asymmetric key parser 'x509' registered
[    9.162209][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.171807][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.181962][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.251023][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.261168][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.321022][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.331344][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.339653][    T1] printk: console [ttyS0] disabled
[    9.344786][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    9.354577][    T1] printk: console [ttyS0] enabled
[    9.354577][    T1] printk: console [ttyS0] enabled
[    9.364416][    T1] printk: bootconsole [earlycon0] disabled
[    9.364416][    T1] printk: bootconsole [earlycon0] disabled
[    9.383563][    T1] loop: module loaded
[    9.387989][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    9.396446][    T1] scsi host0: sata_mv
[    9.400941][    T1] scsi host1: sata_mv
[    9.405109][    T1] ata1: SATA max UDMA/133 irq 32
[    9.409924][    T1] ata2: SATA max UDMA/133 irq 32
[    9.415805][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    9.423024][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[    9.428367][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    9.436702][    T1] Scanning device for bad blocks
[    9.498652][    T1] Bad eraseblock 538 at 0x000004340000
[    9.546798][    T1] Bad eraseblock 942 at 0x0000075c0000
[    9.552422][    T1] Bad eraseblock 945 at 0x000007620000
[    9.566081][    T1] 4 fixed-partitions partitions found on MTD device orion_nand
[    9.573530][    T1] Creating 4 MTD partitions on "orion_nand":
[    9.579393][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    9.586446][    T1] 0x000000100000-0x000000500000 : "uImage"
[    9.593444][    T1] 0x000000500000-0x000002500000 : "pogoplug"
[    9.600705][    T1] 0x000002500000-0x00000fd00000 : "root"
[    9.606221][    T1] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0x5b00000
[    9.619731][    T1] libphy: Fixed MDIO Bus: probed
[    9.625401][    T1] libphy: orion_mdio_bus: probed
[    9.630443][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 0 is missing.
[    9.638768][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.646789][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    9.653835][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.661207][    T1] ehci-pci: EHCI PCI platform driver
[    9.666454][    T1] ehci-orion: EHCI orion driver
[    9.671427][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    9.677698][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    9.686311][    T1] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    9.720216][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    9.727245][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    9.736296][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.744290][    T1] usb usb1: Product: EHCI Host Controller
[    9.749917][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    9.757305][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[    9.763551][    T1] usb usb1: SerialNumber: f1050000.ehci
[    9.769632][    T1] hub 1-0:1.0: USB hub found
[    9.774199][    T1] hub 1-0:1.0: 1 port detected
[    9.779695][    T1] usbcore: registered new interface driver usb-storage
[    9.786869][    T1] mousedev: PS/2 mouse device common for all mice
[    9.793802][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    9.799541][    T1] i2c /dev entries driver
[    9.804473][    T1] device-mapper: uevent: version 1.0.3
[    9.810096][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    9.819739][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    9.827071][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    9.834457][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.841887][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.848706][    T1] device-mapper: raid: Loading target version 1.14.0
[    9.857472][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    9.863958][    T1] drop_monitor: Initializing network drop monitor service
[    9.871295][    T1] NET: Registered protocol family 17
[    9.876713][    T1] Key type dns_resolver registered
[    9.882681][    T1] registered taskstats version 1
[    9.887500][    T1] Loading compiled-in X.509 certificates
[    9.893122][    T1] zswap: loaded using pool lzo/zbud
[    9.913469][    T1] Key type big_key registered
[    9.921546][    T1] Key type encrypted registered
[    9.928676][    T1] rtc-mv f1010300.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[    9.938470][    T1] Waiting 10 sec before mounting root device...
[   10.111722][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   10.140218][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   10.341946][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   10.350898][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   10.358778][   T15] usb 1-1: Product: USB2.0 Hub
[   10.364228][   T15] hub 1-1:1.0: USB hub found
[   10.369069][   T15] hub 1-1:1.0: 4 ports detected
[   10.690217][   T15] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[   10.841195][   T15] usb 1-1.4: New USB device found, idVendor=1908, idProduct=0222, bcdDevice= 1.05
[   10.850316][   T15] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.858383][   T15] usb 1-1.4: Product: USB2.0 Device
[   10.863482][   T15] usb 1-1.4: Manufacturer: Generic
[   10.868475][   T15] usb 1-1.4: SerialNumber: 20101227120006
[   10.874891][   T15] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[   10.882371][   T15] scsi host2: usb-storage 1-1.4:1.0
[   11.931176][   T23] scsi 2:0:0:0: Direct-Access     Generic  Flash-Disk       1.05 PQ: 0 ANSI: 2
[   13.373115][    T7] sd 2:0:0:0: [sda] 7761920 512-byte logical blocks: (3.97 GB/3.70 GiB)
[   13.382229][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   13.388475][    T7] sd 2:0:0:0: [sda] No Caching mode page found
[   13.394556][    T7] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   13.405738][    T7]  sda: sda1
[   13.411982][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   20.330276][    T1] md: Waiting for all devices to be available before autodetect
[   20.337801][    T1] md: If you don't use raid, use raid=noautodetect
[   20.344937][    T1] md: Autodetecting RAID arrays.
[   20.349755][    T1] md: autorun ...
[   20.353330][    T1] md: ... autorun DONE.
[   20.358752][    T1] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   20.368498][    T1] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   20.376206][    T1] EXT4-fs (sda1): write access will be enabled during recovery
[   30.473226][    T1] EXT4-fs (sda1): recovery complete
[   32.922987][    T1] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   32.931492][    T1] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   32.963168][    T1] devtmpfs: mounted
[   32.969907][    T1] Freeing unused kernel memory: 1024K
[   32.975751][    T1] Checked W+X mappings: passed, no W+X pages found
[   32.982184][    T1] Run /sbin/init as init process
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   35.827486][    C0] random: crng init done
done.
[....] Waiting for /dev to be fully populated...[   36.556523][  T293] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   36.625334][  T298] marvell-cesa f1030000.crypto: CESA device successfully registered
[   36.658004][  T293] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   36.703602][  T293] orion_wdt: Initial timeout 21 sec
[   36.719037][  T295] usbcore: registered new interface driver uas
[   36.739115][  T315] systemd-udevd[315]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   36.808385][  T298] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   47.677250][  T511] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 15088/242880 files, 223599/969984 blocks
. ok 
[   47.986135][  T537] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.
ifup: failed to bring up eth0
failed.
[....] Starting RPC port mapper daemon: rpcbind[   52.234436][ T1119] NET: Registered protocol family 10
[   52.241328][ T1119] Segment Routing with IPv6
. ok 
[ 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...
1243 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1270 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0





After everything:

fw_printenv
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $e
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /d
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /be
mainlineLinux=yes                                                               
mtdids=nand0=orion_nand                                                         
partition=nand0,2                                                               
preboot_nc=run if_netconsole start_netconsole                                   
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";e
serverip=192.168.0.220                                                          
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=1s
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; s;
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";  s;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_ri
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $diskni
usb_ready_retry=15                                                              
arcNumber=3956                                                                  
ethaddr=52:3b:20:9c:11:51                                                       
mtdparts=xxxxxxxxx

i accidentialy put mtdparts=xxxxxxxxx, i dont now what put in there

also i dont have eth0 (egiga0) - i need to find out why



Edited 2 time(s). Last edit at 11/30/2019 11:08AM by rookpl.
Re: Zyxel NSA320 Bricked
November 30, 2019 05:03PM
rookpl,

Excellent!

Is this log after you flashed u-boot and its envs image to NAND and let it boot?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel NSA320 Bricked
November 30, 2019 05:09PM
There was a step you've missed. So that's why it is running as GF Net.

Let me look closely to see what else is wrong.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel NSA320 Bricked
November 30, 2019 05:40PM
rookpl,

It looks like you did not follow the instruction correctly during the rootfs creation. You are booting with the new u-boot, so Step 4 must be skipped.

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync

You've done step 4 (according to the boot log). So now you need to reverse it.

cd /boot
cp -a uImage.orig uImage

and then sync and reboot

sync
reboot

And please post the bootlog. Also post these info after log in into Debian:

cat /proc/mtd
fw_printenv

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



Edited 2 time(s). Last edit at 11/30/2019 05:42PM by bodhi.
Re: Zyxel NSA320 Bricked
December 01, 2019 08:39AM
i f..cked that. i tried to repair and only messed that up

cant boot. maybe i just throw that away....

EDIT: I flashed original uboot and env and start again...



Edited 14 time(s). Last edit at 12/01/2019 04:05PM by rookpl.
Re: Zyxel NSA320 Bricked
December 02, 2019 02:32AM
i think it is all good now :)


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:46:11 -0700)
ZyXEL NSA320 2-Bay Power Media Server

SoC:   Kirkwood 88F6281_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	2048      	121108480 	2516d2ef-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 722 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 886 ms (5.3 MiB/s)
loading uInitrd ...
9713936 bytes read in 797 ms (11.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320.dtb ...
13153 bytes read in 2753 ms (3.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4963616 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f6bc000, end 0ffff8d0 ... OK
   Loading Device Tree to 0f6b5000, end 0f6bb360 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] 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][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Memory: 494676K/524288K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 29612K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000048][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000801][    T0] Console: colour dummy device 80x30
[    0.000853][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000879][    T0] pid_max: default: 32768 minimum: 301
[    0.001248][    T0] LSM: Security Framework initializing
[    0.001428][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001454][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002304][    T0] *** VALIDATE proc ***
[    0.002563][    T0] *** VALIDATE cgroup1 ***
[    0.002588][    T0] *** VALIDATE cgroup2 ***
[    0.002685][    T0] CPU: Testing write buffer coherency: ok
[    0.004365][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.004688][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.004972][    T1] rcu: Hierarchical SRCU implementation.
[    0.008276][    T1] devtmpfs: initialized
[    0.014527][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014559][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.014802][    T1] xor: measuring software checksum speed
[    0.110118][    T1]    arm4regs  :  1088.800 MB/sec
[    0.210078][    T1]    8regs     :   654.000 MB/sec
[    0.310073][    T1]    32regs    :   950.400 MB/sec
[    0.310093][    T1] xor: using function: arm4regs (1088.800 MB/sec)
[    0.310114][    T1] prandom: seed boundary self test passed
[    0.314291][    T1] prandom: 100 self tests passed
[    0.314303][    T1] pinctrl core: initialized pinctrl subsystem
[    0.315728][    T1] NET: Registered protocol family 16
[    0.316285][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.317081][    T1] audit: initializing netlink subsys (disabled)
[    0.318335][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.318450][    T1] cpuidle: using governor ladder
[    0.318525][    T1] cpuidle: using governor menu
[    0.319088][    T1] Feroceon L2: Enabling L2
[    0.319138][    T1] Feroceon L2: Cache support initialised.
[    0.325442][    T1] No ATAGs?
[    2.560055][    C0] random: fast init done
[    6.252261][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    6.252622][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    6.430665][    T1] raid6: int32x8  gen()   128 MB/s
[    6.600318][    T1] raid6: int32x8  xor()    86 MB/s
[    6.770534][    T1] raid6: int32x4  gen()   130 MB/s
[    6.940242][    T1] raid6: int32x4  xor()    84 MB/s
[    7.110242][    T1] raid6: int32x2  gen()   132 MB/s
[    7.280194][    T1] raid6: int32x2  xor()    94 MB/s
[    7.450400][    T1] raid6: int32x1  gen()   100 MB/s
[    7.620406][    T1] raid6: int32x1  xor()    69 MB/s
[    7.620417][    T1] raid6: using algorithm int32x2 gen() 132 MB/s
[    7.620426][    T1] raid6: .... xor() 94 MB/s, rmw enabled
[    7.620434][    T1] raid6: using intx1 recovery algorithm
[    7.620689][    T1] vgaarb: loaded
[    7.621193][    T1] SCSI subsystem initialized
[    7.621687][    T1] usbcore: registered new interface driver usbfs
[    7.621757][    T1] usbcore: registered new interface driver hub
[    7.621843][    T1] usbcore: registered new device driver usb
[    7.622022][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.622034][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.622061][    T1] PTP clock support registered
[    7.623369][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.654615][    T1] VFS: Disk quotas dquot_6.6.0
[    8.654713][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.664517][    T1] NET: Registered protocol family 2
[    8.665337][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    8.665372][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    8.665430][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    8.665483][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    8.665581][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    8.665608][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    8.665838][    T1] NET: Registered protocol family 1
[    8.666479][    T1] RPC: Registered named UNIX socket transport module.
[    8.666493][    T1] RPC: Registered udp transport module.
[    8.666501][    T1] RPC: Registered tcp transport module.
[    8.666510][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    8.666524][    T1] PCI: CLS 0 bytes, default 32
[    8.666768][    T1] Trying to unpack rootfs image as initramfs...
[    9.508466][    T1] Freeing initrd memory: 9488K
[    9.508651][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.509865][    T1] Initialise system trusted keyrings
[    9.509915][    T1] Key type blacklist registered
[    9.510134][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    9.510245][    T1] zbud: loaded
[    9.511360][    T1] NFS: Registering the id_resolver key type
[    9.511391][    T1] Key type id_resolver registered
[    9.511401][    T1] Key type id_legacy registered
[    9.511421][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.511438][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.511735][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.511973][    T1] fuse: init (API version 7.31)
[    9.512360][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.512547][    T1] orangefs_init: module version upstream loaded
[    9.512559][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    9.529786][    T1] async_tx: api initialized (async)
[    9.529811][    T1] Key type asymmetric registered
[    9.529821][    T1] Asymmetric key parser 'x509' registered
[    9.529894][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.531344][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.533303][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    9.533326][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    9.533342][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    9.533356][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    9.533596][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    9.533638][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    9.535176][    T1] PCI: bus0: Fast back to back transfers disabled
[    9.535204][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    9.536674][    T1] PCI: bus1: Fast back to back transfers enabled
[    9.536700][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    9.536903][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    9.536922][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    9.537562][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.594182][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.596164][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.654181][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.656444][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.657724][    T1] printk: console [ttyS0] disabled
[    9.657796][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   10.508496][    T1] printk: console [ttyS0] enabled
[   10.520989][    T1] loop: module loaded
[   10.525488][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.533907][    T1] scsi host0: sata_mv
[   10.538366][    T1] scsi host1: sata_mv
[   10.542529][    T1] ata1: SATA max UDMA/133 irq 33
[   10.547408][    T1] ata2: SATA max UDMA/133 irq 33
[   10.553227][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[   10.560426][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[   10.565796][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.574125][    T1] Scanning device for bad blocks
[   10.630641][    T1] Bad eraseblock 538 at 0x000004340000
[   10.674732][    T1] Bad eraseblock 942 at 0x0000075c0000
[   10.680310][    T1] Bad eraseblock 945 at 0x000007620000
[   10.693178][    T1] 9 cmdlinepart partitions found on MTD device orion_nand
[   10.700192][    T1] Creating 9 MTD partitions on "orion_nand":
[   10.706081][    T1] 0x000000000000-0x000000100000 : "uboot"
[   10.712994][    T1] 0x000000100000-0x000000180000 : "stock_uboot_env"
[   10.720740][    T1] 0x000000180000-0x000000200000 : "key_store"
[   10.727946][    T1] 0x000000200000-0x000000280000 : "info"
[   10.734723][    T1] 0x000000280000-0x000000c80000 : "etc"
[   10.741401][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[   10.748564][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[   10.755758][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[   10.762868][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[   10.771296][    T1] libphy: Fixed MDIO Bus: probed
[   10.777020][    T1] libphy: orion_mdio_bus: probed
[   10.796154][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.804291][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   10.811668][    T1] mv643xx_eth: Set the PHY to fix link down
[   10.812287][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   10.827746][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.835144][    T1] ehci-pci: EHCI PCI platform driver
[   10.840398][    T1] ehci-orion: EHCI orion driver
[   10.845366][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.851639][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.860261][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   10.887260][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[   10.893514][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.900583][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   10.909622][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.917723][    T1] usb usb1: Product: EHCI Host Controller
[   10.923356][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   10.930721][    T1] usb usb1: SerialNumber: f1050000.ehci
[   10.936773][    T1] hub 1-0:1.0: USB hub found
[   10.941284][    T1] hub 1-0:1.0: 1 port detected
[   10.946689][    T1] usbcore: registered new interface driver usb-storage
[   10.953855][    T1] mousedev: PS/2 mouse device common for all mice
[   10.960710][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   10.966524][    T1] i2c /dev entries driver
[   10.973479][    T1] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[   10.981778][    T1] rtc-pcf8563 0-0051: registered as rtc1
[   10.989022][    T1] device-mapper: uevent: version 1.0.3
[   10.994694][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   11.004310][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   11.011571][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   11.018981][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   11.026433][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   11.033258][    T1] device-mapper: raid: Loading target version 1.14.0
[   11.041897][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   11.048376][    T1] drop_monitor: Initializing network drop monitor service
[   11.055828][    T1] NET: Registered protocol family 17
[   11.061239][    T1] Key type dns_resolver registered
[   11.067095][    T1] registered taskstats version 1
[   11.071912][    T1] Loading compiled-in X.509 certificates
[   11.077538][    T1] zswap: loaded using pool lzo/zbud
[   11.174294][    T1] Key type big_key registered
[   11.221117][    T1] Key type encrypted registered
[   11.227995][    T1] rtc-mv f1010300.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[   11.247414][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   11.266673][    T1] Freeing unused kernel memory: 1024K
[   11.272530][    T1] Checked W+X mappings: passed, no W+X pages found
[   11.278947][    T1] Run /init as init process
[   11.313479][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
Loading, please wait...
Starting version 241
[   11.527394][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   11.563432][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   11.571312][   T15] usb 1-1: Product: USB2.0 Hub
[   11.596994][   T15] hub 1-1:1.0: USB hub found
[   11.613524][   T15] hub 1-1:1.0: 4 ports detected
[   11.943462][   T15] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[   12.232192][   T15] usb 1-1.4: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.00
[   12.250717][   T15] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   12.267143][   T15] usb 1-1.4: Product: DataTraveler 3.0
[   12.272493][   T15] usb 1-1.4: Manufacturer: Kingston
[   12.293523][   T15] usb 1-1.4: SerialNumber: 0026188878E3B110D84C2EF7
[   12.300894][   T15] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[   12.322242][   T15] scsi host2: usb-storage 1-1.4:1.0
[   12.707344][  T164] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   15.600246][    T7] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[   15.614704][   T23] sd 2:0:0:0: [sda] 121110528 512-byte logical blocks: (62.0 GB/57.8 GiB)
[   15.629963][   T23] sd 2:0:0:0: [sda] Write Protect is off
[   15.636185][   T23] sd 2:0:0:0: [sda] No Caching mode page found
[   15.642227][   T23] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   15.655935][   T23]  sda: sda1
[   15.673083][   T23] 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.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   28.945548][  T192] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   34.310880][  T375] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   34.372637][  T374] systemd-udevd[374]: Using default interface naming scheme 'v240'.
[   34.441868][  T374] systemd-udevd[374]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   35.343479][  T371] systemd-udevd[371]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   35.504057][  T374] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   35.514360][    C0] random: crng init done
[   35.604729][  T374] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   35.733930][  T374] orion_wdt: Initial timeout 21 sec
[   35.870224][  T371] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   35.927182][  T398] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   49.573490][  T596] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 15077/3784704 files, 501529/15138560 blocks
. ok 
[   51.247927][  T623] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPREQUEST for 192.168.0.15 on eth0 to 255.255.255.255 port 67
DHCPREQUEST for 192.168.0.15 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[   60.031662][ T1148] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   75.682549][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPOFFER of 10.10.0.3 from 10.10.0.254
DHCPREQUEST for 10.10.0.3 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.10.0.3 from 10.10.0.254
bound to 10.10.0.3 -- renewal in 1720 seconds.
[   78.460813][ T1179] NET: Registered protocol family 10
[   78.467958][ T1179] Segment Routing with IPv6
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...
1373 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1400 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password: 
Last login: Wed Dec 31 16:02:34 PST 1969 from 192.168.0.100 on pts/0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 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:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "stock_uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"
root@debian:~# fw_printenv ethaddr
Warning: Bad CRC, using default environment
ethaddr=00:00:11:22:33:44
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~# cd /etc/moje
root@debian:/etc/moje# tar -xf uboot.2017.07-tld-1.nsa320.bodhi.tar
tar: uboot.2017.07-tld-1.nsa320.mtd0.kwb: time stamp 2017-09-05 00:49:04 is 557912736.350688775 s in the future
root@debian:/etc/moje# flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete 
root@debian:/etc/moje# nandwrite /dev/mtd0 uboot.2017.07-tld-1.nsa320.mtd0.kwb
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
root@debian:/etc/moje# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "stock_uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"
root@debian:/etc/moje# tar -xf uboot.2016.05-tld-1.environment.bodhi.tar
tar: uboot.2016.05-tld-1.environment.img: time stamp 2016-06-11 22:22:12 is 519023844.623594395 s in the future
tar: uboot.2016.05-tld-1.environment.64K.img: time stamp 2016-06-11 23:44:40 is 519028792.62150218 s in the future
tar: uboot.2016.05-tld-1.environment: time stamp 2016-06-11 22:17:50 is 519023582.62090728 s in the future
root@debian:/etc/moje# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
  GNU nano 3.2            uboot.2016.05-tld-1.environment             Modified  

arcNumber=2097
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bo$
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
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
dtb_file=/boot/dts/kirkwood-nsa320.dtb
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000


root@debian:/etc/moje# fw_setenv arcNumber 3956
root@debian:/etc/moje# fw_setenv machid
root@debian:/etc/moje# fw_prntenv mtdparts
-bash: fw_prntenv: command not found
root@debian:/etc/moje# fw_printenv mtdparts
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
root@debian:/etc/moje# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.10.0.3  netmask 255.255.0.0  broadcast 10.10.255.255
        inet6 fe80::503b:20ff:fe9c:1151  prefixlen 64  scopeid 0x20<link>
        ether 52:3b:20:9c:11:51  txqueuelen 1000  (Ethernet)
        RX packets 17681  bytes 2597876 (2.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 89  bytes 9289 (9.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4  bytes 218 (218.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 218 (218.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:/etc/moje# fw_printenv ethaddr 
ethaddr=52:3b:20:9c:11:51
root@debian:/etc/moje# fw_setenv dtb_file '/boot/dts/nsa320.dtb'
root@debian:/etc/moje# fw_printenv
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=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
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_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
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_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
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=3956
dtb_file=/boot/dts/nsa320.dtb
root@debian:/etc/moje#

AFTER REBOOT:






U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:46:11 -0700)
ZyXEL NSA320 2-Bay Power Media Server

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

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	121108480 	2516d2ef-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
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 723 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 886 ms (5.3 MiB/s)
loading uInitrd ...
9713936 bytes read in 799 ms (11.6 MiB/s)
loading DTB /boot/dts/nsa320.dtb ...
** File not found /boot/dts/nsa320.dtb **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4963616 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f6bc000, end 0ffff8d0 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: invalid dtb and unrecognized/unsupported machine ID
  r1=0x00000f74, r2=0x00000100
  r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00
Available machine support:

ID (hex)	NAME
ffffffff	Generic DT based system
ffffffff	Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.



I found misteake. i add machid, what couse problems. after deleted that, debian boots normaly.

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:46:11 -0700)
ZyXEL NSA320 2-Bay Power Media Server

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

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	121108480 	2516d2ef-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
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 723 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 886 ms (5.3 MiB/s)
loading uInitrd ...
9713936 bytes read in 798 ms (11.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa320.dtb ...
13153 bytes read in 2753 ms (3.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4963616 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f6bc000, end 0ffff8d0 ... OK
   Loading Device Tree to 0f6b5000, end 0f6bb360 ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA320
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Memory: 494676K/524288K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 29612K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000049][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000801][    T0] Console: colour dummy device 80x30
[    0.000851][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000877][    T0] pid_max: default: 32768 minimum: 301
[    0.001244][    T0] LSM: Security Framework initializing
[    0.001430][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001457][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002305][    T0] *** VALIDATE proc ***
[    0.002566][    T0] *** VALIDATE cgroup1 ***
[    0.002592][    T0] *** VALIDATE cgroup2 ***
[    0.002690][    T0] CPU: Testing write buffer coherency: ok
[    0.004368][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.004689][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.004971][    T1] rcu: Hierarchical SRCU implementation.
[    0.008280][    T1] devtmpfs: initialized
[    0.014500][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014533][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.014778][    T1] xor: measuring software checksum speed
[    0.110115][    T1]    arm4regs  :  1088.000 MB/sec
[    0.210078][    T1]    8regs     :   654.000 MB/sec
[    0.310071][    T1]    32regs    :   950.800 MB/sec
[    0.310091][    T1] xor: using function: arm4regs (1088.000 MB/sec)
[    0.310111][    T1] prandom: seed boundary self test passed
[    0.314288][    T1] prandom: 100 self tests passed
[    0.314299][    T1] pinctrl core: initialized pinctrl subsystem
[    0.315718][    T1] NET: Registered protocol family 16
[    0.316272][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.317064][    T1] audit: initializing netlink subsys (disabled)
[    0.318304][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.318422][    T1] cpuidle: using governor ladder
[    0.318501][    T1] cpuidle: using governor menu
[    0.319059][    T1] Feroceon L2: Enabling L2
[    0.319109][    T1] Feroceon L2: Cache support initialised.
[    0.325408][    T1] No ATAGs?
[    2.560056][    C0] random: fast init done
[    6.252068][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    6.252426][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    6.430648][    T1] raid6: int32x8  gen()   128 MB/s
[    6.600319][    T1] raid6: int32x8  xor()    86 MB/s
[    6.770107][    T1] raid6: int32x4  gen()   129 MB/s
[    6.940241][    T1] raid6: int32x4  xor()    84 MB/s
[    7.110417][    T1] raid6: int32x2  gen()   132 MB/s
[    7.280193][    T1] raid6: int32x2  xor()    94 MB/s
[    7.450400][    T1] raid6: int32x1  gen()   100 MB/s
[    7.620405][    T1] raid6: int32x1  xor()    69 MB/s
[    7.620417][    T1] raid6: using algorithm int32x2 gen() 132 MB/s
[    7.620425][    T1] raid6: .... xor() 94 MB/s, rmw enabled
[    7.620434][    T1] raid6: using intx1 recovery algorithm
[    7.620688][    T1] vgaarb: loaded
[    7.621194][    T1] SCSI subsystem initialized
[    7.621690][    T1] usbcore: registered new interface driver usbfs
[    7.621762][    T1] usbcore: registered new interface driver hub
[    7.621847][    T1] usbcore: registered new device driver usb
[    7.622025][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.622037][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.622065][    T1] PTP clock support registered
[    7.623366][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.654601][    T1] VFS: Disk quotas dquot_6.6.0
[    8.654700][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.664527][    T1] NET: Registered protocol family 2
[    8.665343][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    8.665379][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    8.665437][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    8.665489][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    8.665587][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    8.665614][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    8.665846][    T1] NET: Registered protocol family 1
[    8.666486][    T1] RPC: Registered named UNIX socket transport module.
[    8.666500][    T1] RPC: Registered udp transport module.
[    8.666509][    T1] RPC: Registered tcp transport module.
[    8.666517][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    8.666532][    T1] PCI: CLS 0 bytes, default 32
[    8.666775][    T1] Trying to unpack rootfs image as initramfs...
[    9.508367][    T1] Freeing initrd memory: 9488K
[    9.508550][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.509764][    T1] Initialise system trusted keyrings
[    9.509819][    T1] Key type blacklist registered
[    9.510036][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    9.510147][    T1] zbud: loaded
[    9.511257][    T1] NFS: Registering the id_resolver key type
[    9.511287][    T1] Key type id_resolver registered
[    9.511297][    T1] Key type id_legacy registered
[    9.511317][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.511334][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.511629][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.511868][    T1] fuse: init (API version 7.31)
[    9.512254][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.512442][    T1] orangefs_init: module version upstream loaded
[    9.512455][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    9.529776][    T1] async_tx: api initialized (async)
[    9.529801][    T1] Key type asymmetric registered
[    9.529810][    T1] Asymmetric key parser 'x509' registered
[    9.529883][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.531331][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.533294][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    9.533318][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    9.533334][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    9.533348][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    9.533588][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    9.533631][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    9.535169][    T1] PCI: bus0: Fast back to back transfers disabled
[    9.535197][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    9.536671][    T1] PCI: bus1: Fast back to back transfers enabled
[    9.536697][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    9.536899][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    9.536917][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    9.537556][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.594178][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.596160][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.654171][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.656437][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.657723][    T1] printk: console [ttyS0] disabled
[    9.657797][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   10.497870][    T1] printk: console [ttyS0] enabled
[   10.510369][    T1] loop: module loaded
[   10.514862][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.523228][    T1] scsi host0: sata_mv
[   10.527746][    T1] scsi host1: sata_mv
[   10.531911][    T1] ata1: SATA max UDMA/133 irq 33
[   10.536784][    T1] ata2: SATA max UDMA/133 irq 33
[   10.542598][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[   10.549801][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[   10.555169][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.563498][    T1] Scanning device for bad blocks
[   10.620004][    T1] Bad eraseblock 538 at 0x000004340000
[   10.664096][    T1] Bad eraseblock 942 at 0x0000075c0000
[   10.669676][    T1] Bad eraseblock 945 at 0x000007620000
[   10.682532][    T1] 4 cmdlinepart partitions found on MTD device orion_nand
[   10.689546][    T1] Creating 4 MTD partitions on "orion_nand":
[   10.695428][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.702431][    T1] 0x000000100000-0x000000500000 : "uImage"
[   10.709398][    T1] 0x000000500000-0x000002500000 : "rootfs"
[   10.716449][    T1] 0x000002500000-0x000008000000 : "data"
[   10.724756][    T1] libphy: Fixed MDIO Bus: probed
[   10.730366][    T1] libphy: orion_mdio_bus: probed
[   10.749221][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.757340][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   10.764779][    T1] mv643xx_eth: Set the PHY to fix link down
[   10.765579][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   10.781066][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.788416][    T1] ehci-pci: EHCI PCI platform driver
[   10.793703][    T1] ehci-orion: EHCI orion driver
[   10.798628][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.804939][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.813550][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   10.843393][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.850421][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   10.859477][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.867474][    T1] usb usb1: Product: EHCI Host Controller
[   10.873102][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   10.880486][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[   10.886724][    T1] usb usb1: SerialNumber: f1050000.ehci
[   10.892812][    T1] hub 1-0:1.0: USB hub found
[   10.897377][    T1] hub 1-0:1.0: 1 port detected
[   10.902869][    T1] usbcore: registered new interface driver usb-storage
[   10.910049][    T1] mousedev: PS/2 mouse device common for all mice
[   10.916978][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   10.922712][    T1] i2c /dev entries driver
[   10.929733][    T1] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[   10.938100][    T1] rtc-pcf8563 0-0051: registered as rtc1
[   10.945296][    T1] device-mapper: uevent: version 1.0.3
[   10.950921][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   10.960549][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   10.967879][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   10.975277][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   10.982692][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   10.989540][    T1] device-mapper: raid: Loading target version 1.14.0
[   10.998156][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   11.004770][    T1] drop_monitor: Initializing network drop monitor service
[   11.012075][    T1] NET: Registered protocol family 17
[   11.017521][    T1] Key type dns_resolver registered
[   11.023341][    T1] registered taskstats version 1
[   11.028196][    T1] Loading compiled-in X.509 certificates
[   11.033813][    T1] zswap: loaded using pool lzo/zbud
[   11.130207][    T1] Key type big_key registered
[   11.176879][    T1] Key type encrypted registered
[   11.183768][    T1] rtc-mv f1010300.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[   11.233558][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   11.252776][    T1] Freeing unused kernel memory: 1024K
[   11.258661][    T1] Checked W+X mappings: passed, no W+X pages found
[   11.265097][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.272572][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   11.475322][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   11.493489][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   11.501361][   T15] usb 1-1: Product: USB2.0 Hub
[   11.531055][   T15] hub 1-1:1.0: USB hub found
[   11.538584][   T15] hub 1-1:1.0: 4 ports detected
[   11.873464][   T15] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[   12.162115][   T15] usb 1-1.4: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.00
[   12.179575][   T15] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   12.195444][   T15] usb 1-1.4: Product: DataTraveler 3.0
[   12.200793][   T15] usb 1-1.4: Manufacturer: Kingston
[   12.218244][   T15] usb 1-1.4: SerialNumber: 0026188878E3B110D84C2EF7
[   12.230817][   T15] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[   12.250571][   T15] scsi host2: usb-storage 1-1.4:1.0
[   12.607791][  T169] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   14.683284][    T7] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[   14.698120][   T23] sd 2:0:0:0: [sda] 121110528 512-byte logical blocks: (62.0 GB/57.8 GiB)
[   14.713109][   T23] sd 2:0:0:0: [sda] Write Protect is off
[   14.719213][   T23] sd 2:0:0:0: [sda] No Caching mode page found
[   14.725369][   T23] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   14.739097][   T23]  sda: sda1
[   14.755975][   T23] 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.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   29.045230][  T192] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   29.052862][  T192] EXT4-fs (sda1): write access will be enabled during recovery
[   30.135121][  T192] EXT4-fs (sda1): recovery complete
[   30.175092][  T192] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   35.183452][    C0] random: crng init done
[   35.259527][  T373] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   35.372466][  T373] systemd-udevd[373]: Using default interface naming scheme 'v240'.
[   36.075600][  T375] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   36.149271][  T375] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   36.194229][  T373] systemd-udevd[373]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   36.217361][  T375] orion_wdt: Initial timeout 21 sec
[   36.499483][  T387] marvell-cesa f1030000.crypto: CESA device successfully registered
[   36.868750][  T371] systemd-udevd[371]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   37.958493][  T387] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   47.322306][  T591] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 15082/3784704 files, 501712/15138560 blocks
. ok 
[   47.700028][  T617] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPREQUEST for 10.10.0.3 on eth0 to 255.255.255.255 port 67
[   51.469127][ T1142] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   55.285664][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPREQUEST for 10.10.0.3 on eth0 to 255.255.255.255 port 67
DHCPNAK from 10.10.200.23
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 10.10.0.3 from 10.10.0.254
DHCPREQUEST for 10.10.0.3 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.10.0.3 from 10.10.0.254
bound to 10.10.0.3 -- renewal in 285475 seconds.
[   56.500177][ T1179] NET: Registered protocol family 10
[   56.507346][ T1179] Segment Routing with IPv6
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...
1385 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1412 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password: 
Last login: Fri Dec 31 16:01:25 PST 1999 on ttyS0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 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:~#



Edited 1 time(s). Last edit at 12/02/2019 02:53AM by rookpl.
Re: Zyxel NSA320 Bricked
December 02, 2019 04:17AM
rookpl,

Quote

> i think it is all good now :)

root@debian:~#

Cool! congrats :)

One more thing to fix, the mtd definition is wrong

[ 10.682532][ T1] 4 cmdlinepart partitions found on MTD device orion_nand
[   10.689546][    T1] Creating 4 MTD partitions on "orion_nand":
[   10.695428][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.702431][    T1] 0x000000100000-0x000000500000 : "uImage"
[   10.709398][    T1] 0x000000500000-0x000002500000 : "rootfs"
[   10.716449][    T1] 0x000002500000-0x000008000000 : "data"

So you need set it and reboot

fw_setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)'

After reboot, log in and

cat /proc/mtd

Expected output:

dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "stock_uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel NSA320 Bricked
December 02, 2019 04:37AM
Done.

Thank you for your time and help :)
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: