Welcome! Log In Create A New Profile

Advanced

Bricked Synology DS213 (Kirkwood) so close

Posted by itangoii 
Re: Bricked Synology DS213 (Kirkwood) so close
October 16, 2020 04:52PM
mtd0 and mtd1 went ok but others did not.

root@debian:/boot# flash_unlock /dev/mtd0
root@debian:/boot# flashcp -v ds213.mtd0 /dev/mtd0
Erasing blocks: 144/144 (100%)
Writing data: 576k/576k (100%)
Verifying data: 576k/576k (100%)
root@debian:/boot# flash_unlock /dev/mtd0
root@debian:/boot# flashcp -v ds213.mtd0 /dev/mtd0
Erasing blocks: 144/144 (100%)
Writing data: 576k/576k (100%)
Verifying data: 576k/576k (100%)
root@debian:/boot# flashcp -v ds213.mtd1 /dev/mtd1
Erasing blocks: 768/768 (100%)
Writing data: 3072k/3072k (100%)
Verifying data: 3072k/3072k (100%)
root@debian:/boot# flashcp -v ds213.mtd2 /dev/mtd2
Erasing blocks: 1088/1088 (100%)
Writing data: 4352k/4352k (100%)
Verifying data: 450k/4352k (10%)File does not seem to match flash data. First mismatch at 0x0006e000-0x00070800
root@debian:/boot# flashcp -v ds213.mtd3 /dev/mtd3
Erasing blocks: 16/16 (100%)
Writing data: 64k/64k (100%)
Verifying data: 10k/64k (15%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800
root@debian:/boot# flashcp -v ds213.mtd4 /dev/mtd4
Erasing blocks: 16/16 (100%)
Writing data: 64k/64k (100%)
Verifying data: 10k/64k (15%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800
root@debian:/boot# flashcp -v ds213.mtd5 /dev/mtd5
Erasing blocks: 16/16 (100%)
Writing data: 64k/64k (100%)
Verifying data: 10k/64k (15%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800
root@debian:/boot# 

Re: Bricked Synology DS213 (Kirkwood) so close
October 16, 2020 05:04PM
For the heck of it I tried to boot it and Uboot is functional again and I can get to the Marvel prompt. It however is back to the same bootloop that it had before. If I'm inturpreting the startup correctly, Uboot would be mtd0 the image would be mtd1 and its failing at mtd2 which would be due to the mtd2 and up not flashing.

        __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: Synology Disk Station LE 

U-Boot 1.1.4 (Apr 19 2012 - 18:47:44) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 0068B3D4

Soc: 88F6282 A1CPU running @ 2000Mhz L2 running @ 500Mhz
SysClock = 500Mhz , TClock = 200Mhz 

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

[8192kB@f8000000] Flash:  8 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: PCI Express Root Complex Interface
PEX interface detected Link X1

Synology Model: DS213
Fan Status: Good

Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
## Booting image at f8090000 ...
   Image Name:   Linux-2.6.32.12
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1553512 Bytes =  1.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at f8390000 ...
   Image Name:   synology_88f6282_213 25426
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3297004 Bytes =  3.1 MB
   Load Address: 00800000
   Entry Point:  00800000
   Verifying Checksum ... Bad Data CRC��
         __  __                      _ _



Edited 4 time(s). Last edit at 10/16/2020 05:28PM by itangoii.
Re: Bricked Synology DS213 (Kirkwood) so close
October 16, 2020 05:15PM
I took another look inside he Synology update package and see that rd.bin is in there along with VERSION
Attachments:
open | download - Capture.JPG (49.2 KB)
Re: Bricked Synology DS213 (Kirkwood) so close
October 16, 2020 06:48PM
itangoii,

> For the heck of it I tried to boot it and Uboot is
> functional again and I can get to the Marvel
> prompt.

Cool!

> It however is back to the same bootloop
> that it had before. If I'm inturpreting the
> startup correctly, Uboot would be mtd0 the image
> would be mtd1 and its failing at mtd2 which would
> be due to the mtd2 and up not flashing.

Yes, so it is functional again with stock u-boot and stock kernel in mdt0 and mtd1 are OK.

kwboot back to Debian USB and try using that rd.bin. Always try to unlock the mtd eventhough you expect the error, because the output error might tell us something.

flash_unlock /dev/mtd2
flashcp -v rd.bin /dev/mtd2

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 16, 2020 06:59PM
I think we need to adjust the mtds backup procedure a bit.

In summary, instead of dumping in stock OS. We should do this

- kwboot the good box with NSA325 u-boot and adjust envs to boot with USB.
- And do the dd dumping in Debian.

And then restore them on the bricked box like you just did above.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 16, 2020 08:52PM
bodhi Wrote:
-------------------------------------------------------
> I think we need to adjust the mtds backup
> procedure a bit.
>
> In summary, instead of dumping in stock OS. We
> should do this
>
> - kwboot the good box with NSA325 u-boot
> and adjust envs to boot with USB.
> - And do the dd dumping in Debian.
>
> And then restore them on the bricked box like you
> just did above.

Well it doesn't seem to like mtd6

debian login: root
Password: 
Last login: Wed Dec 31 16:00:49 PST 1969 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:~# dd if=/dev/mtd0 of=ds213.mtd0 bs=576k conv=sync
0+1 records in
1+0 records out
589824 bytes (590 kB, 576 KiB) copied, 0.870668 s, 677 kB/s
root@debian:~# dd if=/dev/mtd1 of=ds213.mtd1 bs=3072k conv=sync
0+1 records in
1+0 records out
3145728 bytes (3.1 MB, 3.0 MiB) copied, 3.51713 s, 894 kB/s
root@debian:~# dd if=/dev/mtd2 of=ds213.mtd2 bs=4352k conv=sync
0+1 records in
1+0 records out
4456448 bytes (4.5 MB, 4.2 MiB) copied, 2.21207 s, 2.0 MB/s
root@debian:~# dd if=/dev/mtd3 of=ds213.mtd3 bs=64k conv=sync
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 6.16181 s, 10.6 kB/s
root@debian:~# dd if=/dev/mtd4 of=ds213.mtd4 bs=64k conv=sync
2+0 records in
2+0 records out
131072 bytes (131 kB, 128 KiB) copied, 0.224277 s, 584 kB/s
root@debian:~# dd if=/dev/mtd5 of=ds213.mtd5 bs=64k conv=sync
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.109244 s, 600 kB/s
root@debian:~# dd if=/dev/mtd6 of=ds213.mtd6 bs=8192k conv=sync
dd: failed to open '/dev/mtd6': No such file or directory
root@debian:~# 
root@debian:~# dd if=/dev/mtd6 of=ds213.mtd6 bs=8192k conv=sync
dd: failed to open '/dev/mtd6': No such file or directory
root@debian:~# 

Re: Bricked Synology DS213 (Kirkwood) so close
October 16, 2020 10:08PM
itangoii,

Ignore mtd6 for now. It is not in the definition (on purpose).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 16, 2020 11:17PM
bodhi Wrote:
-------------------------------------------------------
> itangoii,
>
> Ignore mtd6 for now. It is not in the definition
> (on purpose).


All right then, I'll try flashing them in tomorrow. I assume you just want me to flash the first 6?

Thank you.



Edited 1 time(s). Last edit at 10/16/2020 11:24PM by itangoii.
Re: Bricked Synology DS213 (Kirkwood) so close
October 17, 2020 02:34PM
bodhi Wrote:
-------------------------------------------------------
> I think we need to adjust the mtds backup
> procedure a bit.
>
> In summary, instead of dumping in stock OS. We
> should do this
>
> - kwboot the good box with NSA325 u-boot
> and adjust envs to boot with USB.
> - And do the dd dumping in Debian.
>
> And then restore them on the bricked box like you
> just did above.

got the bricked box up in Debian and tried to flash.

root@debian:~# cd //boot
root@debian://boot# flash_unlock /dev/mtd0
root@debian://boot# flashcp -v ds213.mtd0 /dev/mtd0
ds213.mtd0 won't fit into /dev/mtd0!

Re: Bricked Synology DS213 (Kirkwood) so close
October 17, 2020 04:20PM
itangoii,

> got the bricked box up in Debian and tried to
> flash.
>
>
> root@debian:~# cd //boot
> root@debian://boot# flash_unlock /dev/mtd0
> root@debian://boot# flashcp -v ds213.mtd0
> /dev/mtd0
> ds213.mtd0 won't fit into /dev/mtd0!
> 
>

You need to post the entire kwboot log so I can see the reason why that error occured (mtd0 flashing was OK before).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 17, 2020 04:41PM
The conditions are different from what I understand. We did dd previously from the booted good ds213 and last time from being booted on the Debial usb.

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


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA325> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
NSA325> setenv dtb_file '/boot/dts/kirkwood-ds212.dtb'
NSA325> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00
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      	60602368  	ac0e13c9-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 753 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 1038 ms (4.6 MiB/s)
loading uInitrd ...
EHCI timed out on TD - token=0xd8d80
9713936 bytes read in 6591 ms (1.4 MiB/s)
loading DTB /boot/dts/kirkwood-ds212.dtb ...
22000 bytes read in 3260 ms (5.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 1f1ca000, end 1fb0d8d0 ... OK
   Loading Device Tree to 1f1c1000, end 1f1c95ef ... 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: Synology DS212, DS212p v10, v20, DS213air v10, DS213 v10
[    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: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    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: 494644K/524288K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 29644K 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.000006][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008590][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015789][    T0] Console: colour dummy device 80x30
[    0.021026][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032337][    T0] pid_max: default: 32768 minimum: 301
[    0.037954][    T0] LSM: Security Framework initializing
[    0.043474][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050866][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.059339][    T0] *** VALIDATE proc ***
[    0.063577][    T0] *** VALIDATE cgroup1 ***
[    0.067878][    T0] *** VALIDATE cgroup2 ***
[    0.072279][    T0] CPU: Testing write buffer coherency: ok
[    0.079403][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.086559][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.092707][    T1] rcu: Hierarchical SRCU implementation.
[    0.100626][    T1] devtmpfs: initialized
[    0.111851][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.122505][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.129608][    T1] xor: measuring software checksum speed
[    0.228611][    T1]    arm4regs  :  1807.200 MB/sec
[    0.328608][    T1]    8regs     :  1084.800 MB/sec
[    0.428611][    T1]    32regs    :  1577.200 MB/sec
[    0.433514][    T1] xor: using function: arm4regs (1807.200 MB/sec)
[    0.439844][    T1] prandom: seed boundary self test passed
[    0.447953][    T1] prandom: 100 self tests passed
[    0.452797][    T1] pinctrl core: initialized pinctrl subsystem
[    0.459938][    T1] NET: Registered protocol family 16
[    0.465495][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.473758][    T1] audit: initializing netlink subsys (disabled)
[    0.480963][   T14] audit: type=2000 audit(0.470:1): state=initialized audit_enabled=0 res=1
[    0.489569][    T1] cpuidle: using governor ladder
[    0.494446][    T1] cpuidle: using governor menu
[    0.499545][    T1] Feroceon L2: Enabling L2
[    0.503861][    T1] Feroceon L2: Cache support initialised.
[    0.513687][    T1] No ATAGs?
[    2.568595][    C0] random: fast init done
[    4.078711][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    4.084854][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    4.258951][    T1] raid6: int32x8  gen()   208 MB/s
[    4.428909][    T1] raid6: int32x8  xor()   142 MB/s
[    4.598808][    T1] raid6: int32x4  gen()   208 MB/s
[    4.768676][    T1] raid6: int32x4  xor()   137 MB/s
[    4.938787][    T1] raid6: int32x2  gen()   209 MB/s
[    5.108755][    T1] raid6: int32x2  xor()   151 MB/s
[    5.278827][    T1] raid6: int32x1  gen()   156 MB/s
[    5.448596][    T1] raid6: int32x1  xor()   108 MB/s
[    5.453579][    T1] raid6: using algorithm int32x2 gen() 209 MB/s
[    5.459701][    T1] raid6: .... xor() 151 MB/s, rmw enabled
[    5.465290][    T1] raid6: using intx1 recovery algorithm
[    5.470934][    T1] vgaarb: loaded
[    5.474719][    T1] SCSI subsystem initialized
[    5.479584][    T1] usbcore: registered new interface driver usbfs
[    5.485825][    T1] usbcore: registered new interface driver hub
[    5.491943][    T1] usbcore: registered new device driver usb
[    5.497827][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.503526][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.513414][    T1] PTP clock support registered
[    5.519044][    T1] clocksource: Switched to clocksource orion_clocksource
[    6.154189][    T1] VFS: Disk quotas dquot_6.6.0
[    6.158903][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    6.173486][    T1] NET: Registered protocol family 2
[    6.179237][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    6.187640][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    6.195519][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    6.202763][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    6.209941][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    6.216507][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    6.223683][    T1] NET: Registered protocol family 1
[    6.229278][    T1] RPC: Registered named UNIX socket transport module.
[    6.235920][    T1] RPC: Registered udp transport module.
[    6.241394][    T1] RPC: Registered tcp transport module.
[    6.246811][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.253992][    T1] PCI: CLS 0 bytes, default 32
[    6.258804][    T1] Trying to unpack rootfs image as initramfs...
[    6.817036][    T1] Freeing initrd memory: 9488K
[    6.821863][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.830108][    T1] Initialise system trusted keyrings
[    6.835304][    T1] Key type blacklist registered
[    6.840275][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    6.847511][    T1] zbud: loaded
[    6.851594][    T1] NFS: Registering the id_resolver key type
[    6.857387][    T1] Key type id_resolver registered
[    6.862351][    T1] Key type id_legacy registered
[    6.867084][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.874535][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.881842][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.889792][    T1] fuse: init (API version 7.31)
[    6.894801][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.902115][    T1] orangefs_init: module version upstream loaded
[    6.908233][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    6.929325][    T1] async_tx: api initialized (async)
[    6.934406][    T1] Key type asymmetric registered
[    6.939288][    T1] Asymmetric key parser 'x509' registered
[    6.944939][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    6.954178][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.963736][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.972111][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.978319][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.985939][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.993072][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    6.999848][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.007526][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    7.014295][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.023243][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.029569][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.038312][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.048598][    T1] PCI: bus1: Fast back to back transfers enabled
[    7.054830][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.063693][    T1] PCI: bus2: Fast back to back transfers enabled
[    7.069921][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    7.077390][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    7.085360][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    7.093323][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.099009][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    7.105188][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.169583][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.178946][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.239579][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.249233][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.257281][    T1] printk: console [ttyS0] disabled
[    7.262377][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.272150][    T1] printk: console [ttyS0] enabled
[    7.272150][    T1] printk: console [ttyS0] enabled
[    7.281972][    T1] printk: bootconsole [earlycon0] disabled
[    7.281972][    T1] printk: bootconsole [earlycon0] disabled
[    7.293835][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    7.308905][    T1] loop: module loaded
[    7.313377][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    7.320979][    T1] scsi host0: sata_mv
[    7.325260][    T1] scsi host1: sata_mv
[    7.329377][    T1] ata1: SATA max UDMA/133 irq 34
[    7.334190][    T1] ata2: SATA max UDMA/133 irq 34
[    7.340339][    T1] m25p80 spi0.0: found n25q064, expected m25p80
[    7.346585][    T1] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    7.351995][    T1] 6 fixed-partitions partitions found on MTD device spi0.0
[    7.359092][    T1] Creating 6 MTD partitions on "spi0.0":
[    7.364601][    T1] 0x000000000000-0x000000080000 : "RedBoot"
[    7.371383][    T1] 0x000000080000-0x000000280000 : "zImage"
[    7.377942][    T1] 0x000000280000-0x0000003c0000 : "rd.gz"
[    7.384453][    T1] 0x0000003c0000-0x0000003d0000 : "vendor"
[    7.391052][    T1] 0x0000003d0000-0x0000003f0000 : "RedBoot config"
[    7.398293][    T1] 0x0000003f0000-0x000000400000 : "FIS directory"
[    7.406321][    T1] libphy: Fixed MDIO Bus: probed
[    7.411739][    T1] libphy: orion_mdio_bus: probed
[    7.416717][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    7.425025][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 9 is missing.
[    7.433303][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.441158][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    7.448100][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.455438][    T1] ehci-pci: EHCI PCI platform driver
[    7.460677][    T1] ehci-orion: EHCI orion driver
[    7.465532][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.471801][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.480329][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    7.509072][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.516017][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    7.525040][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.533003][    T1] usb usb1: Product: EHCI Host Controller
[    7.538595][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    7.545951][    T1] usb usb1: SerialNumber: f1050000.ehci
[    7.551834][    T1] hub 1-0:1.0: USB hub found
[    7.556326][    T1] hub 1-0:1.0: 1 port detected
[    7.561530][    T1] usbcore: registered new interface driver usb-storage
[    7.568553][    T1] mousedev: PS/2 mouse device common for all mice
[    7.575103][    T1] i2c /dev entries driver
[    7.580523][    T1] rtc-s35390a 0-0030: error resetting chip
[    7.586610][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    7.593639][    T1] device-mapper: uevent: version 1.0.3
[    7.599287][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    7.608774][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    7.616100][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    7.623481][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    7.630910][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    7.637747][    T1] device-mapper: raid: Loading target version 1.14.0
[    7.644796][    T1] kirkwood-pinctrl f1010000.pin-controller: pin PIN21 already requested by f1080000.sata; cannot claim for gpio-leds-hdd-21-2
[    7.657773][    T1] kirkwood-pinctrl f1010000.pin-controller: pin-21 (gpio-leds-hdd-21-2) status -22
[    7.666975][    T1] kirkwood-pinctrl f1010000.pin-controller: could not request pin 21 (PIN21) from group mpp21  on device f1010000.pin-controller
[    7.680196][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[    7.686523][    T1] leds-gpio gpio-leds-hdd-21-2: Error applying setting, reverse things back
[    7.695127][    T1] leds-gpio: probe of gpio-leds-hdd-21-2 failed with error -22
[    7.702764][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    7.709182][    T1] drop_monitor: Initializing network drop monitor service
[    7.716385][    T1] NET: Registered protocol family 17
[    7.721770][    T1] Key type dns_resolver registered
[    7.727355][    T1] registered taskstats version 1
[    7.732199][    T1] Loading compiled-in X.509 certificates
[    7.737772][    T1] zswap: loaded using pool lzo/zbud
[    7.809946][    T1] Key type big_key registered
[    7.845291][    T1] Key type encrypted registered
[    7.851946][    T1] hctosys: unable to open rtc device (rtc0)
[    7.939065][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.032574][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[    8.052019][    T1] Freeing unused kernel memory: 1024K
[    8.057658][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.064060][    T1] Run /init as init process
Loading, please wait...
[    8.140986][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    8.152643][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.169160][   T15] usb 1-1: Product: USB2.0 Hub
[    8.179739][   T15] hub 1-1:1.0: USB hub found
[    8.189147][   T15] hub 1-1:1.0: 4 ports detected
Starting version 241
[    8.519139][   T15] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.681484][   T15] usb 1-1.3: New USB device found, idVendor=154b, idProduct=00ed, bcdDevice= 1.10
[    8.698349][   T15] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.714563][   T15] usb 1-1.3: Product: USB 3.0 FD
[    8.724479][   T15] usb 1-1.3: Manufacturer: PNY
[    8.734442][   T15] usb 1-1.3: SerialNumber: 070001690020C088
[    8.747035][   T15] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.765489][   T15] scsi host2: usb-storage 1-1.3:1.0
[    8.869128][   T15] usb 1-1.4: new high-speed USB device number 4 using orion-ehci
[    9.031231][   T15] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0726, bcdDevice=99.10
[    9.047417][   T15] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[    9.055523][   T15] usb 1-1.4: Product: USB Storage
[    9.060457][   T15] usb 1-1.4: SerialNumber: 000000009910
[    9.067486][   T15] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    9.074899][   T15] scsi host3: usb-storage 1-1.4:1.0
[    9.091360][  T164] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[    9.850294][    T7] scsi 2:0:0:0: Direct-Access     PNY      USB 3.0 FD       PMAP PQ: 0 ANSI: 6
[    9.863798][   T23] sd 2:0:0:0: [sda] 60604416 512-byte logical blocks: (31.0 GB/28.9 GiB)
[    9.877507][   T23] sd 2:0:0:0: [sda] Write Protect is off
[    9.883611][   T23] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    9.932835][   T23]  sda: sda1
[    9.946746][   T23] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   10.110183][   T23] scsi 3:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.120149][   T23] scsi 3:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.134896][    T7] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[   10.147384][   T23] sd 3:0:0:1: [sdc] 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
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 15103/1896832 files, 370804/7575296 blocks
done.
[   19.384384][  T195] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.452191][  T195] 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...[   21.849421][  T375] gpio-fan gpio-fan-100-15-35-1: GPIO fan initialized
[   22.127247][  T387] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   22.239184][  T387] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   22.331188][  T375] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   22.353621][  T387] orion_wdt: Initial timeout 21 sec
[   22.398701][  T374] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.407468][  T375] sd 3:0:0:0: Attached scsi generic sg1 type 0
[   22.433008][  T375] sd 3:0:0:1: Attached scsi generic sg2 type 0
[   22.540948][  T385] systemd-udevd[385]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   22.609867][    C0] random: crng init done
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   23.719397][  T590] 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

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[   27.212881][ T1172] NET: Registered protocol family 10
[   27.218979][ T1172] 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...
1312 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1339 (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:01:10 PST 1969 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:~# flash_unlock /dev/mtd0
root@debian:~# flashcp -v ds213.mtd0 /dev/mtd0
ds213.mtd0 won't fit into /dev/mtd0!
root@debian:~# cd //boot
root@debian://boot# flashcp -v ds213.mtd0 /dev/mtd0
ds213.mtd0 won't fit into /dev/mtd0!
root@debian://boot# 

Re: Bricked Synology DS213 (Kirkwood) so close
October 17, 2020 05:37PM
itangoii,

You used an older set of envs. The latest we have to kwboot with NSA325 u-boot into Debian USB is:

https://forum.doozan.com/read.php?3,108294,109524#msg-109524


NSA325> setenv dtb_file /boot/dts/kirkwood-ds212.dtb
NSA325> setenv mtdparts 'mtdparts=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)'
NSA325> boot

===

I'll clean up the instruction post and make a new post so we can keep track of what we have been doing correctly.

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



Edited 1 time(s). Last edit at 10/17/2020 05:56PM by bodhi.
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 12:31PM
bodhi Wrote:
-------------------------------------------------------
> itangoii,
>
> You used an older set of envs. The latest we have
> to kwboot with NSA325 u-boot into Debian USB is:
>
> https://forum.doozan.com/read.php?3,108294,109524#msg-109524
>
>
>
> NSA325> setenv dtb_file
> /boot/dts/kirkwood-ds212.dtb
> NSA325> setenv mtdparts
> 'mtdparts=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)'
> NSA325> boot
>
>
> ===
>
> I'll clean up the instruction post and make a new
> post so we can keep track of what we have been
> doing correctly.

Ok. Let me know if you want me to do another backup and then flash or just the flash, and if so doing both with those envs.

Thank you.
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 03:33PM
itangoii,

> Ok. Let me know if you want me to do another
> backup and then flash or just the flash, and if so
> doing both with those envs.

Go ahead do the flash.

- kwboot the good box with NSA325 u-boot and adjust envs to boot with USB rootfs.

setenv dtb_file /boot/dts/kirkwood-ds212.dtb
setenv mtdparts 'mtdparts=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)'
boot

- dump the mtds 0 to 5. Copy them to the USB rootfs /boot.

- kwboot the bricked box with NSA325 u-boot and adjust envs to boot with USB rootfs.

setenv dtb_file /boot/dts/kirkwood-ds212.dtb
setenv mtdparts 'mtdparts=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)'
boot


- Log into Debian.

And flash the mtds. Assuming the backup mtds are in /boot

cd /boot 
flash_unlock /dev/mtd0
flashcp -v ds213.mtd0 /dev/mtd0
flash_unlock /dev/mtd1
flashcp -v ds213.mtd1 /dev/mtd1
flash_unlock /dev/mtd2
flashcp -v ds213.mtd2 /dev/mtd2
flash_unlock /dev/mtd3
flashcp -v ds213.mtd3 /dev/mtd3
flash_unlock /dev/mtd4
flashcp -v ds213.mtd4 /dev/mtd4
flash_unlock /dev/mtd5
flashcp -v ds213.mtd5 /dev/mtd5

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



Edited 1 time(s). Last edit at 10/18/2020 04:32PM by bodhi.
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 03:49PM
bohdi:
I think you meant to say boot the bricked box in that second part.
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 04:33PM
itangoii Wrote:
-------------------------------------------------------
> bohdi:
> I think you meant to say boot the bricked box in
> that second part.

Right!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 04:48PM
Well shoot. I went through the whole process including following the procedure to dump with the correct envs.

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


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA325> setenv dtb_file /boot/dts/kirkwood-ds212.dtb
NSA325> setenv mtdparts 'mtdparts=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)'
NSA325> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00

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      	60602368  	ac0e13c9-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 754 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 1038 ms (4.6 MiB/s)
loading uInitrd ...
EHCI timed out on TD - token=0xd8d80
9713936 bytes read in 6591 ms (1.4 MiB/s)
loading DTB /boot/dts/kirkwood-ds212.dtb ...
22000 bytes read in 3260 ms (5.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 1f1ca000, end 1fb0d8d0 ... OK
   Loading Device Tree to 1f1c1000, end 1f1c95ef ... 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: Synology DS212, DS212p v10, v20, DS213air v10, DS213 v10
[    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=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)
[    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: 494644K/524288K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 29644K 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.000007][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000039][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000612][    T0] Console: colour dummy device 80x30
[    0.000656][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000677][    T0] pid_max: default: 32768 minimum: 301
[    0.000958][    T0] LSM: Security Framework initializing
[    0.001102][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001123][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001786][    T0] *** VALIDATE proc ***
[    0.002006][    T0] *** VALIDATE cgroup1 ***
[    0.002028][    T0] *** VALIDATE cgroup2 ***
[    0.002111][    T0] CPU: Testing write buffer coherency: ok
[    0.003595][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.003854][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.004102][    T1] rcu: Hierarchical SRCU implementation.
[    0.006483][    T1] devtmpfs: initialized
[    0.013678][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013705][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.013918][    T1] xor: measuring software checksum speed
[    0.110099][    T1]    arm4regs  :  1806.800 MB/sec
[    0.210063][    T1]    8regs     :  1084.800 MB/sec
[    0.310060][    T1]    32regs    :  1577.200 MB/sec
[    0.310076][    T1] xor: using function: arm4regs (1806.800 MB/sec)
[    0.310093][    T1] prandom: seed boundary self test passed
[    0.312614][    T1] prandom: 100 self tests passed
[    0.312622][    T1] pinctrl core: initialized pinctrl subsystem
[    0.313817][    T1] NET: Registered protocol family 16
[    0.314223][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.314845][    T1] audit: initializing netlink subsys (disabled)
[    0.315896][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.316001][    T1] cpuidle: using governor ladder
[    0.316069][    T1] cpuidle: using governor menu
[    0.316500][    T1] Feroceon L2: Enabling L2
[    0.316542][    T1] Feroceon L2: Cache support initialised.
[    0.320801][    T1] No ATAGs?
[    2.560044][    C0] random: fast init done
[    3.878635][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    3.878904][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    4.050669][    T1] raid6: int32x8  gen()   208 MB/s
[    4.220373][    T1] raid6: int32x8  xor()   142 MB/s
[    4.390184][    T1] raid6: int32x4  gen()   209 MB/s
[    4.560134][    T1] raid6: int32x4  xor()   137 MB/s
[    4.730276][    T1] raid6: int32x2  gen()   209 MB/s
[    4.900201][    T1] raid6: int32x2  xor()   151 MB/s
[    5.070274][    T1] raid6: int32x1  gen()   156 MB/s
[    5.240054][    T1] raid6: int32x1  xor()   108 MB/s
[    5.240061][    T1] raid6: using algorithm int32x2 gen() 209 MB/s
[    5.240067][    T1] raid6: .... xor() 151 MB/s, rmw enabled
[    5.240072][    T1] raid6: using intx1 recovery algorithm
[    5.240309][    T1] vgaarb: loaded
[    5.240694][    T1] SCSI subsystem initialized
[    5.241086][    T1] usbcore: registered new interface driver usbfs
[    5.241130][    T1] usbcore: registered new interface driver hub
[    5.241192][    T1] usbcore: registered new device driver usb
[    5.241318][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.241326][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.241345][    T1] PTP clock support registered
[    5.242324][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.870572][    T1] VFS: Disk quotas dquot_6.6.0
[    5.870649][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.877521][    T1] NET: Registered protocol family 2
[    5.878153][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    5.878184][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    5.878239][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    5.878293][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.878366][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    5.878388][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    5.878559][    T1] NET: Registered protocol family 1
[    5.879072][    T1] RPC: Registered named UNIX socket transport module.
[    5.879082][    T1] RPC: Registered udp transport module.
[    5.879088][    T1] RPC: Registered tcp transport module.
[    5.879093][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.879104][    T1] PCI: CLS 0 bytes, default 32
[    5.879287][    T1] Trying to unpack rootfs image as initramfs...
[    6.431379][    T1] Freeing initrd memory: 9488K
[    6.431516][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.432586][    T1] Initialise system trusted keyrings
[    6.432635][    T1] Key type blacklist registered
[    6.432816][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    6.432900][    T1] zbud: loaded
[    6.433705][    T1] NFS: Registering the id_resolver key type
[    6.433733][    T1] Key type id_resolver registered
[    6.433739][    T1] Key type id_legacy registered
[    6.433754][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.433767][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.433983][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.434150][    T1] fuse: init (API version 7.31)
[    6.434447][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.434580][    T1] orangefs_init: module version upstream loaded
[    6.434589][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    6.447230][    T1] async_tx: api initialized (async)
[    6.447252][    T1] Key type asymmetric registered
[    6.447259][    T1] Asymmetric key parser 'x509' registered
[    6.447322][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    6.448369][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.449806][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.449824][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.449835][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.449844][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.449979][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    6.450010][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.450264][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    6.450289][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.451790][    T1] PCI: bus0: Fast back to back transfers disabled
[    6.451809][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.451827][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.453470][    T1] PCI: bus1: Fast back to back transfers enabled
[    6.453489][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.455021][    T1] PCI: bus2: Fast back to back transfers enabled
[    6.455037][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    6.455173][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    6.455186][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    6.455196][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.455212][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    6.455706][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.512851][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.514166][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.572867][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.574459][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.575449][    T1] printk: console [ttyS0] disabled
[    6.575512][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.472879][    T1] printk: console [ttyS0] enabled
[    7.478255][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    7.493439][    T1] loop: module loaded
[    7.497823][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    7.505438][    T1] scsi host0: sata_mv
[    7.509721][    T1] scsi host1: sata_mv
[    7.513844][    T1] ata1: SATA max UDMA/133 irq 34
[    7.518652][    T1] ata2: SATA max UDMA/133 irq 34
[    7.524800][    T1] m25p80 spi0.0: found n25q064, expected m25p80
[    7.531049][    T1] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    7.536443][    T1] 6 cmdlinepart partitions found on MTD device spi0.0
[    7.543102][    T1] Creating 6 MTD partitions on "spi0.0":
[    7.548610][    T1] 0x000000000000-0x000000090000 : "redboot"
[    7.555360][    T1] 0x000000090000-0x000000390000 : "zimage"
[    7.561906][    T1] 0x000000390000-0x0000007d0000 : "rd.gz"
[    7.568406][    T1] 0x0000007d0000-0x0000007e0000 : "vendor"
[    7.574991][    T1] 0x0000007e0000-0x0000007f0000 : "redboot_config"
[    7.582224][    T1] 0x0000007f0000-0x000000800000 : "fis_directory"
[    7.590236][    T1] libphy: Fixed MDIO Bus: probed
[    7.595655][    T1] libphy: orion_mdio_bus: probed
[    7.600667][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    7.608976][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 9 is missing.
[    7.617253][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.625110][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    7.632050][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.639387][    T1] ehci-pci: EHCI PCI platform driver
[    7.644642][    T1] ehci-orion: EHCI orion driver
[    7.649500][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.655771][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.664297][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    7.692351][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.699299][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    7.708317][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.716280][    T1] usb usb1: Product: EHCI Host Controller
[    7.721873][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    7.729229][    T1] usb usb1: SerialNumber: f1050000.ehci
[    7.735107][    T1] hub 1-0:1.0: USB hub found
[    7.739603][    T1] hub 1-0:1.0: 1 port detected
[    7.744802][    T1] usbcore: registered new interface driver usb-storage
[    7.751821][    T1] mousedev: PS/2 mouse device common for all mice
[    7.758376][    T1] i2c /dev entries driver
[    7.763793][    T1] rtc-s35390a 0-0030: error resetting chip
[    7.769882][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    7.776917][    T1] device-mapper: uevent: version 1.0.3
[    7.782572][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    7.792059][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    7.799382][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    7.806767][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    7.814195][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    7.821034][    T1] device-mapper: raid: Loading target version 1.14.0
[    7.828080][    T1] kirkwood-pinctrl f1010000.pin-controller: pin PIN21 already requested by f1080000.sata; cannot claim for gpio-leds-hdd-21-2
[    7.841056][    T1] kirkwood-pinctrl f1010000.pin-controller: pin-21 (gpio-leds-hdd-21-2) status -22
[    7.850262][    T1] kirkwood-pinctrl f1010000.pin-controller: could not request pin 21 (PIN21) from group mpp21  on device f1010000.pin-controller
[    7.863482][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[    7.869813][    T1] leds-gpio gpio-leds-hdd-21-2: Error applying setting, reverse things back
[    7.878422][    T1] leds-gpio: probe of gpio-leds-hdd-21-2 failed with error -22
[    7.886060][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    7.892489][    T1] drop_monitor: Initializing network drop monitor service
[    7.899690][    T1] NET: Registered protocol family 17
[    7.905076][    T1] Key type dns_resolver registered
[    7.910657][    T1] registered taskstats version 1
[    7.915503][    T1] Loading compiled-in X.509 certificates
[    7.921078][    T1] zswap: loaded using pool lzo/zbud
[    7.993552][    T1] Key type big_key registered
[    8.029059][    T1] Key type encrypted registered
[    8.035690][    T1] hctosys: unable to open rtc device (rtc0)
[    8.122349][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.215849][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[    8.235293][    T1] Freeing unused kernel memory: 1024K
[    8.240924][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.247329][    T1] Run /init as init process
Loading, please wait...
[    8.324331][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    8.335506][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.352440][   T15] usb 1-1: Product: USB2.0 Hub
[    8.363083][   T15] hub 1-1:1.0: USB hub found
[    8.372425][   T15] hub 1-1:1.0: 4 ports detected
Starting version 241
[    8.712415][   T15] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.884949][   T15] usb 1-1.3: New USB device found, idVendor=154b, idProduct=00ed, bcdDevice= 1.10
[    8.901485][   T15] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.921712][   T15] usb 1-1.3: Product: USB 3.0 FD
[    8.928316][   T15] usb 1-1.3: Manufacturer: PNY
[    8.937403][   T15] usb 1-1.3: SerialNumber: 070001690020C088
[    8.949875][   T15] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.969396][   T15] scsi host2: usb-storage 1-1.3:1.0
[    9.072404][   T15] usb 1-1.4: new high-speed USB device number 4 using orion-ehci
[    9.234434][   T15] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0726, bcdDevice=99.10
[    9.243575][   T15] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[    9.251633][   T15] usb 1-1.4: Product: USB Storage
[    9.256547][   T15] usb 1-1.4: SerialNumber: 000000009910
[    9.263569][   T15] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    9.270909][   T15] scsi host3: usb-storage 1-1.4:1.0
[    9.287264][  T161] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.003511][    T7] scsi 2:0:0:0: Direct-Access     PNY      USB 3.0 FD       PMAP PQ: 0 ANSI: 6
[   10.017012][   T23] sd 2:0:0:0: [sda] 60604416 512-byte logical blocks: (31.0 GB/28.9 GiB)
[   10.030847][   T23] sd 2:0:0:0: [sda] Write Protect is off
[   10.036951][   T23] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.103804][   T23]  sda: sda1
[   10.114721][   T23] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   10.343381][   T23] scsi 3:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.352855][   T23] scsi 3:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.367603][    T7] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[   10.380098][   T23] sd 3:0:0:1: [sdc] 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
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: recovering journal
rootfs: clean, 15102/1896832 files, 368726/7575296 blocks
done.
[   34.268850][  T195] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   34.336656][  T195] 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.
[   35.136828][    C0] random: crng init done
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...[   36.727917][  T374] gpio-fan gpio-fan-100-15-35-1: GPIO fan initialized
done.
[....] Waiting for /dev to be fully populated...[   37.043536][  T395] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   37.135005][  T395] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   37.246637][  T395] orion_wdt: Initial timeout 21 sec
[   37.252229][  T375] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   37.337635][  T413] marvell-cesa f1030000.crypto: CESA device successfully registered
[   37.348044][  T375] sd 3:0:0:0: Attached scsi generic sg1 type 0
[   37.378783][  T375] sd 3:0:0:1: Attached scsi generic sg2 type 0
[   37.506245][  T395] systemd-udevd[395]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   38.630610][  T590] 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

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[   42.151866][ T1172] NET: Registered protocol family 10
[   42.158068][ T1172] 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...
1312 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1339 (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:06:14 PST 1969 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:~# cd /boot
root@debian:/boot# flash_unlock /dev/mtd0
root@debian:/boot# flashcp -v ds213.mtd0 /dev/mtd0
Erasing blocks: 144/144 (100%)
Writing data: 576k/576k (100%)
Verifying data: 576k/576k (100%)
root@debian:/boot# flash_unlock /dev/mtd1
flash_unlock: error!: could not unlock device: /dev/mtd1
error 22 (Invalid argument)
root@debian:/boot# flashcp -v ds213.mtd1 /dev/mtd1
Erasing blocks: 768/768 (100%)
Writing data: 3072k/3072k (100%)
Verifying data: 3072k/3072k (100%)
root@debian:/boot# flashcp -v ds213.mtd2 /dev/mtd2
Erasing blocks: 1088/1088 (100%)
Writing data: 4352k/4352k (100%)
Verifying data: 450k/4352k (10%)File does not seem to match flash data. First mismatch at 0x0006e000-0x00070800
root@debian:/boot#    
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 04:56PM
I tried the others with the same result. I then checked the files on the usb

root@debian:/boot# flashcp -v ds213.mtd2 /dev/mtd2
Erasing blocks: 1088/1088 (100%)
Writing data: 4352k/4352k (100%)
Verifying data: 450k/4352k (10%)File does not seem to match flash data. First mismatch at 0x0006e000-0x00070800
root@debian:/boot# flashcp -v ds213.mtd3 /dev/mtd3
Erasing blocks: 16/16 (100%)
Writing data: 64k/64k (100%)
Verifying data: 10k/64k (15%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800
root@debian:/boot# flashcp -v ds213.mtd4 /dev/mtd4
Erasing blocks: 16/16 (100%)
Writing data: 64k/64k (100%)
Verifying data: 10k/64k (15%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800
root@debian:/boot# flashcp -v ds213.mtd5 /dev/mtd5
Erasing blocks: 16/16 (100%)
Writing data: 64k/64k (100%)
Verifying data: 10k/64k (15%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800
root@debian:/boot# ls -l
total 57692
drwxr-xr-x  3 root root    4096 Dec 31 16:13 .
drwxrwxrwx 24 root root    4096 Oct 14  2020 ..
-rw-------  1 root root 3101889 Aug 17  2019 System.map-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root  165790 Aug 17  2019 config-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root  589824 Dec 31 16:13 ds213.mtd0
-rw-r--r--  1 root root 3145728 Dec 31 16:13 ds213.mtd1
-rw-r--r--  1 root root 4456448 Dec 31 16:13 ds213.mtd2
-rw-r--r--  1 root root   65536 Dec 31 16:13 ds213.mtd3
-rw-r--r--  1 root root   65536 Dec 31 16:13 ds213.mtd4
-rw-r--r--  1 root root   65536 Dec 31 16:13 ds213.mtd5
drwxr-xr-x  2 root root    4096 Aug 16  2019 dts
-rw-r--r--  1 root root 9713872 Aug 24  2019 initrd.img-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root 9649570 Aug 17  2019 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
-rw-rw-r--  1 root root 3297068 May 11  2020 rd.bin
-rw-r--r--  1 root root 4963680 Aug 24  2019 uImage
-rw-r--r--  1 root root 9713936 Aug 24  2019 uInitrd
-rw-------  1 root root 4963616 Aug 17  2019 vmlinuz-5.2.9-kirkwood-tld-1
-rwxr-xr-x  1 root
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 05:32PM
itangoii,

Could you repeat the whole procedure one more time.

This time, please post the whole thing (the bootlog of the back up steps, and the bootlog of the restore steps).

Just a sanity check before we will call it an incompleted success :) and move on to try a slightly modified procedure (with rd.bin for mtd2).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 06:06PM
I would have posted both but I have to reset the terminal to change boxes, This is the boot and dump part.

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


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA325> setenv dtb_file /boot/dts/kirkwood-ds212.dtb
NSA325> setenv mtdparts 'mtdparts=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)'
NSA325> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 
      USB device not accepting new address (error=80)
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      	60602368  	ac0e13c9-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 754 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 1038 ms (4.6 MiB/s)
loading uInitrd ...
EHCI timed out on TD - token=0xd8d80
9713936 bytes read in 6591 ms (1.4 MiB/s)
loading DTB /boot/dts/kirkwood-ds212.dtb ...
22000 bytes read in 3260 ms (5.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 1f1ca000, end 1fb0d8d0 ... OK
   Loading Device Tree to 1f1c1000, end 1f1c95ef ... 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: Synology DS212, DS212p v10, v20, DS213air v10, DS213 v10
[    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=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)
[    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: 494644K/524288K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 29644K 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.000007][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000039][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000614][    T0] Console: colour dummy device 80x30
[    0.000658][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000679][    T0] pid_max: default: 32768 minimum: 301
[    0.000964][    T0] LSM: Security Framework initializing
[    0.001110][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001130][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001792][    T0] *** VALIDATE proc ***
[    0.002014][    T0] *** VALIDATE cgroup1 ***
[    0.002035][    T0] *** VALIDATE cgroup2 ***
[    0.002119][    T0] CPU: Testing write buffer coherency: ok
[    0.003604][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.003863][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.004111][    T1] rcu: Hierarchical SRCU implementation.
[    0.006491][    T1] devtmpfs: initialized
[    0.013688][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013715][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.013933][    T1] xor: measuring software checksum speed
[    0.110094][    T1]    arm4regs  :  1806.800 MB/sec
[    0.210061][    T1]    8regs     :  1084.800 MB/sec
[    0.310061][    T1]    32regs    :  1512.400 MB/sec
[    0.310077][    T1] xor: using function: arm4regs (1806.800 MB/sec)
[    0.310094][    T1] prandom: seed boundary self test passed
[    0.312617][    T1] prandom: 100 self tests passed
[    0.312625][    T1] pinctrl core: initialized pinctrl subsystem
[    0.313807][    T1] NET: Registered protocol family 16
[    0.314213][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.314834][    T1] audit: initializing netlink subsys (disabled)
[    0.315884][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.315988][    T1] cpuidle: using governor ladder
[    0.316055][    T1] cpuidle: using governor menu
[    0.316487][    T1] Feroceon L2: Enabling L2
[    0.316528][    T1] Feroceon L2: Cache support initialised.
[    0.320788][    T1] No ATAGs?
[    2.560044][    C0] random: fast init done
[    3.878595][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    3.878862][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    4.050673][    T1] raid6: int32x8  gen()   208 MB/s
[    4.220371][    T1] raid6: int32x8  xor()   142 MB/s
[    4.390270][    T1] raid6: int32x4  gen()   208 MB/s
[    4.560138][    T1] raid6: int32x4  xor()   137 MB/s
[    4.730106][    T1] raid6: int32x2  gen()   208 MB/s
[    4.900202][    T1] raid6: int32x2  xor()   151 MB/s
[    5.070272][    T1] raid6: int32x1  gen()   156 MB/s
[    5.240052][    T1] raid6: int32x1  xor()   108 MB/s
[    5.240059][    T1] raid6: using algorithm int32x2 gen() 208 MB/s
[    5.240065][    T1] raid6: .... xor() 151 MB/s, rmw enabled
[    5.240070][    T1] raid6: using intx1 recovery algorithm
[    5.240305][    T1] vgaarb: loaded
[    5.240691][    T1] SCSI subsystem initialized
[    5.241083][    T1] usbcore: registered new interface driver usbfs
[    5.241127][    T1] usbcore: registered new interface driver hub
[    5.241189][    T1] usbcore: registered new device driver usb
[    5.241315][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.241324][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.241343][    T1] PTP clock support registered
[    5.242326][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.870564][    T1] VFS: Disk quotas dquot_6.6.0
[    5.870642][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.877526][    T1] NET: Registered protocol family 2
[    5.878167][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    5.878197][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    5.878252][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    5.878306][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.878380][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    5.878403][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    5.878573][    T1] NET: Registered protocol family 1
[    5.879081][    T1] RPC: Registered named UNIX socket transport module.
[    5.879092][    T1] RPC: Registered udp transport module.
[    5.879097][    T1] RPC: Registered tcp transport module.
[    5.879103][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.879114][    T1] PCI: CLS 0 bytes, default 32
[    5.879297][    T1] Trying to unpack rootfs image as initramfs...
[    6.431275][    T1] Freeing initrd memory: 9488K
[    6.431412][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.432479][    T1] Initialise system trusted keyrings
[    6.432525][    T1] Key type blacklist registered
[    6.432714][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    6.432799][    T1] zbud: loaded
[    6.433608][    T1] NFS: Registering the id_resolver key type
[    6.433637][    T1] Key type id_resolver registered
[    6.433643][    T1] Key type id_legacy registered
[    6.433658][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.433670][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.433887][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.434055][    T1] fuse: init (API version 7.31)
[    6.434345][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.434479][    T1] orangefs_init: module version upstream loaded
[    6.434489][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    6.447077][    T1] async_tx: api initialized (async)
[    6.447099][    T1] Key type asymmetric registered
[    6.447106][    T1] Asymmetric key parser 'x509' registered
[    6.447168][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    6.448209][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.449654][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.449672][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.449682][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.449691][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.449824][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    6.449855][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.450107][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    6.450133][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.451636][    T1] PCI: bus0: Fast back to back transfers disabled
[    6.451654][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.451672][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.453314][    T1] PCI: bus1: Fast back to back transfers enabled
[    6.453333][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.454862][    T1] PCI: bus2: Fast back to back transfers enabled
[    6.454878][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    6.455014][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    6.455027][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    6.455038][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.455053][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    6.455549][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.512856][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.514175][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.572862][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.574450][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.575439][    T1] printk: console [ttyS0] disabled
[    6.575501][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.472850][    T1] printk: console [ttyS0] enabled
[    7.478225][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    7.493416][    T1] loop: module loaded
[    7.497818][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    7.505432][    T1] scsi host0: sata_mv
[    7.509713][    T1] scsi host1: sata_mv
[    7.513824][    T1] ata1: SATA max UDMA/133 irq 34
[    7.518633][    T1] ata2: SATA max UDMA/133 irq 34
[    7.524787][    T1] m25p80 spi0.0: found n25q064, expected m25p80
[    7.531038][    T1] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    7.536433][    T1] 6 cmdlinepart partitions found on MTD device spi0.0
[    7.543090][    T1] Creating 6 MTD partitions on "spi0.0":
[    7.548600][    T1] 0x000000000000-0x000000090000 : "redboot"
[    7.555368][    T1] 0x000000090000-0x000000390000 : "zimage"
[    7.561920][    T1] 0x000000390000-0x0000007d0000 : "rd.gz"
[    7.568415][    T1] 0x0000007d0000-0x0000007e0000 : "vendor"
[    7.574994][    T1] 0x0000007e0000-0x0000007f0000 : "redboot_config"
[    7.582229][    T1] 0x0000007f0000-0x000000800000 : "fis_directory"
[    7.590247][    T1] libphy: Fixed MDIO Bus: probed
[    7.595672][    T1] libphy: orion_mdio_bus: probed
[    7.600689][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    7.608997][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 9 is missing.
[    7.617275][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.625134][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    7.632076][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.639413][    T1] ehci-pci: EHCI PCI platform driver
[    7.644664][    T1] ehci-orion: EHCI orion driver
[    7.649523][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.655792][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.664322][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    7.692355][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.699308][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    7.708325][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.716286][    T1] usb usb1: Product: EHCI Host Controller
[    7.721879][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    7.729235][    T1] usb usb1: SerialNumber: f1050000.ehci
[    7.735104][    T1] hub 1-0:1.0: USB hub found
[    7.739600][    T1] hub 1-0:1.0: 1 port detected
[    7.744804][    T1] usbcore: registered new interface driver usb-storage
[    7.751825][    T1] mousedev: PS/2 mouse device common for all mice
[    7.758382][    T1] i2c /dev entries driver
[    7.763809][    T1] rtc-s35390a 0-0030: error resetting chip
[    7.769899][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    7.776933][    T1] device-mapper: uevent: version 1.0.3
[    7.782585][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    7.792068][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    7.799387][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    7.806764][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    7.814190][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    7.821031][    T1] device-mapper: raid: Loading target version 1.14.0
[    7.828074][    T1] kirkwood-pinctrl f1010000.pin-controller: pin PIN21 already requested by f1080000.sata; cannot claim for gpio-leds-hdd-21-2
[    7.841046][    T1] kirkwood-pinctrl f1010000.pin-controller: pin-21 (gpio-leds-hdd-21-2) status -22
[    7.850252][    T1] kirkwood-pinctrl f1010000.pin-controller: could not request pin 21 (PIN21) from group mpp21  on device f1010000.pin-controller
[    7.863473][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[    7.869810][    T1] leds-gpio gpio-leds-hdd-21-2: Error applying setting, reverse things back
[    7.878419][    T1] leds-gpio: probe of gpio-leds-hdd-21-2 failed with error -22
[    7.886059][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    7.892482][    T1] drop_monitor: Initializing network drop monitor service
[    7.899684][    T1] NET: Registered protocol family 17
[    7.905061][    T1] Key type dns_resolver registered
[    7.910640][    T1] registered taskstats version 1
[    7.915483][    T1] Loading compiled-in X.509 certificates
[    7.921057][    T1] zswap: loaded using pool lzo/zbud
[    7.993574][    T1] Key type big_key registered
[    8.028995][    T1] Key type encrypted registered
[    8.035627][    T1] hctosys: unable to open rtc device (rtc0)
[    8.122350][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.215855][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[    8.235310][    T1] Freeing unused kernel memory: 1024K
[    8.240949][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.247350][    T1] Run /init as init process
Loading, please wait...
[    8.324371][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    8.335645][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.352443][   T15] usb 1-1: Product: USB2.0 Hub
[    8.363110][   T15] hub 1-1:1.0: USB hub found
[    8.372434][   T15] hub 1-1:1.0: 4 ports detected
Starting version 241
[    8.702423][   T15] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.865100][   T15] usb 1-1.3: New USB device found, idVendor=154b, idProduct=00ed, bcdDevice= 1.10
[    8.882152][   T15] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.898303][   T15] usb 1-1.3: Product: USB 3.0 FD
[    8.908287][   T15] usb 1-1.3: Manufacturer: PNY
[    8.917848][   T15] usb 1-1.3: SerialNumber: 070001690020C088
[    8.930023][   T15] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.949708][   T15] scsi host2: usb-storage 1-1.3:1.0
[    9.052403][   T15] usb 1-1.4: new high-speed USB device number 4 using orion-ehci
[    9.214603][   T15] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0726, bcdDevice=99.10
[    9.229986][   T15] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[    9.238127][   T15] usb 1-1.4: Product: USB Storage
[    9.243117][   T15] usb 1-1.4: SerialNumber: 000000009910
[    9.250094][   T15] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    9.257456][   T15] scsi host3: usb-storage 1-1.4:1.0
[    9.273991][  T161] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.003536][    T7] scsi 2:0:0:0: Direct-Access     PNY      USB 3.0 FD       PMAP PQ: 0 ANSI: 6
[   10.017044][   T23] sd 2:0:0:0: [sda] 60604416 512-byte logical blocks: (31.0 GB/28.9 GiB)
[   10.030874][   T23] sd 2:0:0:0: [sda] Write Protect is off
[   10.036977][   T23] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.128581][   T23]  sda: sda1
[   10.142493][   T23] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   10.343408][   T23] scsi 3:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.352879][   T23] scsi 3:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.367629][    T7] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[   10.380124][   T23] sd 3:0:0:1: [sdc] 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
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: recovering journal
rootfs: clean, 15102/1896832 files, 368728/7575296 blocks
done.
[   25.089626][  T195] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   25.156683][  T195] 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)...[   27.509782][  T387] gpio-fan gpio-fan-100-15-35-1: GPIO fan initialized
done.
[....] Waiting for /dev to be fully populated...[   27.772907][    C0] random: crng init done
[   27.800469][  T375] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   27.854526][  T375] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   27.957679][  T375] orion_wdt: Initial timeout 21 sec
[   28.076521][  T387] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   28.121442][  T386] marvell-cesa f1030000.crypto: CESA device successfully registered
[   28.132477][  T387] sd 3:0:0:0: Attached scsi generic sg1 type 0
[   28.158830][  T387] sd 3:0:0:1: Attached scsi generic sg2 type 0
[   28.262941][  T398] systemd-udevd[398]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   29.402260][  T590] 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

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[   32.899182][ T1172] NET: Registered protocol family 10
[   32.905344][ T1172] 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...
1312 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1339 (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:01:22 PST 1969 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:~# ls
.   .bash_history  .config  .profile  ds213.mtd0  ds213.mtd2  ds213.mtd4
..  .bashrc        .nano    .ssh      ds213.mtd1  ds213.mtd3  ds213.mtd5
root@debian:~# rm *mtd?
root@debian:~# cd/boot
-bash: cd/boot: No such file or directory
root@debian:~# cd /boot
root@debian:/boot# ls
.
..
System.map-5.2.9-kirkwood-tld-1
config-5.2.9-kirkwood-tld-1
ds213.mtd0
ds213.mtd1
ds213.mtd2
ds213.mtd3
ds213.mtd4
ds213.mtd5
dts
initrd.img-5.2.9-kirkwood-tld-1
linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
rd.bin
uImage
uInitrd
vmlinuz-5.2.9-kirkwood-tld-1
zImage-5.2.9-kirkwood-tld-1
root@debian:/boot# rm *mtd?
root@debian:/boot# cd /root
root@debian:~# dd if=/dev/mtd0 of=ds213.mtd0 bs=576k conv=sync
1+0 records in
1+0 records out
589824 bytes (590 kB, 576 KiB) copied, 0.972172 s, 607 kB/s
root@debian:~# dd if=/dev/mtd1 of=ds213.mtd1 bs=3072k conv=sync
1+0 records in
1+0 records out
3145728 bytes (3.1 MB, 3.0 MiB) copied, 5.22965 s, 602 kB/s
root@debian:~# dd if=/dev/mtd2 of=ds213.mtd2 bs=4352k conv=sync
1+0 records in
1+0 records out
4456448 bytes (4.5 MB, 4.2 MiB) copied, 7.40291 s, 602 kB/s
root@debian:~# dd if=/dev/mtd3 of=ds213.mtd3 bs=64k conv=sync
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.111827 s, 586 kB/s
root@debian:~# dd if=/dev/mtd4 of=ds213.mtd4 bs=64k conv=sync
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.111482 s, 588 kB/s
root@debian:~# dd if=/dev/mtd5 of=ds213.mtd5 bs=64k conv=sync
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.114265 s, 574 kB/s
root@debian:~# cp *mtd? /boot
root@debian:~# cd boot
-bash: cd: boot: No such file or directory
root@debian:~# cd /boot
root@debian:/boot# ls -l
total 57692
drwxr-xr-x  3 root root    4096 Dec 31 16:04 .
drwxrwxrwx 24 root root    4096 Oct 14  2020 ..
-rw-------  1 root root 3101889 Aug 17  2019 System.map-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root  165790 Aug 17  2019 config-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root  589824 Dec 31 16:04 ds213.mtd0
-rw-r--r--  1 root root 3145728 Dec 31 16:04 ds213.mtd1
-rw-r--r--  1 root root 4456448 Dec 31 16:04 ds213.mtd2
-rw-r--r--  1 root root   65536 Dec 31 16:04 ds213.mtd3
-rw-r--r--  1 root root   65536 Dec 31 16:04 ds213.mtd4
-rw-r--r--  1 root root   65536 Dec 31 16:04 ds213.mtd5
drwxr-xr-x  2 root root    4096 Aug 16  2019 dts
-rw-r--r--  1 root root 9713872 Aug 24  2019 initrd.img-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root 9649570 Aug 17  2019 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
-rw-rw-r--  1 root root 3297068 May 11  2020 rd.bin
-rw-r--r--  1 root root 4963680 Aug 24  2019 uImage
-rw-r--r--  1 root root 9713936 Aug 24  2019 uInitrd
-rw-------  1 root root 4963616 Aug 17  2019 vmlinuz-5.2.9-kirkwood-tld-1
-rwxr-xr-x  1 root root 4963616 Aug 17  2019 zImage-5.2.9-kirkwood-tld-1
root@debian:/boot# 

Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 07:34PM
itangoii

> I would have posted both but I have to reset the
> terminal to change boxes, This is the boot and
> dump part.

So the flashing part will be posted later?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 07:40PM
I did post the flashing part above. The last post was a duplicate for the dump part you wanted to see. The two put together are the whole process.
Re: Bricked Synology DS213 (Kirkwood) so close
October 18, 2020 08:04PM
itangoii,

The idea of sanity check is repeating the 2 parts in sequence. And then from the log we want to see the same mtds backup files being used in flashing

Back up:
-rw-r--r--  1 root root  589824 Dec 31 16:04 ds213.mtd0
-rw-r--r--  1 root root 3145728 Dec 31 16:04 ds213.mtd1
-rw-r--r--  1 root root 4456448 Dec 31 16:04 ds213.mtd2
-rw-r--r--  1 root root   65536 Dec 31 16:04 ds213.mtd3
-rw-r--r--  1 root root   65536 Dec 31 16:04 ds213.mtd4
-rw-r--r--  1 root root   65536 Dec 31 16:04 ds213.mtd5

Flashing:
-rw-r--r--  1 root root  589824 Dec 31 16:13 ds213.mtd0
-rw-r--r--  1 root root 3145728 Dec 31 16:13 ds213.mtd1
-rw-r--r--  1 root root 4456448 Dec 31 16:13 ds213.mtd2
-rw-r--r--  1 root root   65536 Dec 31 16:13 ds213.mtd3
-rw-r--r--  1 root root   65536 Dec 31 16:13 ds213.mtd4
-rw-r--r--  1 root root   65536 Dec 31 16:13 ds213.mtd5

Even though the timestamp of Dec 31, 1969 is bogus (the rtc clock is not running, and you have no network). However, once the timestamp is recorded on the file, it won't change.

The above told me they are not the same files? is that correct?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 25, 2020 10:55AM
Sorry to take so long to get back to you, I needed to get caught up on work and personal responsibilities.

Can you explain how to get the dump and flash activities sequential. I don't think it would be a good idea to swap machines while they are running with the serial port open. And also swapping the USB drive.

Thanks.
Re: Bricked Synology DS213 (Kirkwood) so close
October 25, 2020 04:37PM
itangoii,

> Can you explain how to get the dump and flash
> activities sequential. I don't think it would be
> a good idea to swap machines while they are
> running with the serial port open. And also
> swapping the USB drive.

I only meant that, in the same post we would want to see the dump files being dumped in the good box, and the flashing on the bricked box using the same set of files. Of course, the files needed to dumped to the USB rootfs drive, and brought to the bricked box to boot with. I believe you did that.

I just notice the timestamp of the files are not the same, so I wonder if they are the same files. Since we did serveral dumping attempts, so to avoid using the wrong files, the timestamp is used as a visual aid in seeing if they actually are.

I think the reason the timestamp are different, you probably had copied them? By the way, to make copies that will have the same attributes, you need to use cp -a.

cp -a ds213.mtd0 <some folder>/

=========

I've seen this UBIFS partition restore problem a few times in this forum. Most recently, rsantag has difficulty with restoring UBIFS partition here. The problem does not look the same as yours. But I think there is something about the older version UBIFS that caused the problem and I cannot quite see what it is.

So after you do a sanity check (dump and flash), we should move on to a different approach if the last try is not successful.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
October 26, 2020 11:16AM
OK bodhi, I understand what you need now.

I'll do the dump
an ls-l on the files
cp -a to the USB
an ls -l on them on the USB

change boxes

try the flash
and post console log of the whole process in the same message.

Anything to add to that process?

Thanks
Re: Bricked Synology DS213 (Kirkwood) so close
October 26, 2020 04:20PM
itangoii,

>
> I'll do the dump
> an ls-l on the files
> cp -a to the USB
> an ls -l on them on the USB
>
> change boxes
>
> try the flash
> and post console log of the whole process in the
> same message.
>

Right on! please do that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
November 01, 2020 01:40PM
bodhi Wrote:
-------------------------------------------------------
> itangoii,
>
> >
> > I'll do the dump
> > an ls-l on the files
> > cp -a to the USB
> > an ls -l on them on the USB
> >
> > change boxes
> >
> > try the flash
> > and post console log of the whole process in
> the
> > same message.
> >
>
> Right on! please do that.

Here you go. Same result. In all the attempts to flash any of the files mtd2 and up start to work at the erasing part and go file to about 10% and then it speeds trough the erasing part and flashing part extremely fast before the error.

root@ubuntu20:~/kwboot# ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]

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


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA325> setenv dtb_file /boot/dts/kirkwood-ds212.dtb
NSA325> setenv mtdparts 'mtdparts=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)'
NSA325> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00
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      	60602368  	ac0e13c9-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 753 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 1038 ms (4.6 MiB/s)
loading uInitrd ...
EHCI timed out on TD - token=0xd8d80
9713936 bytes read in 6591 ms (1.4 MiB/s)
loading DTB /boot/dts/kirkwood-ds212.dtb ...
22000 bytes read in 3260 ms (5.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 1f1ca000, end 1fb0d8d0 ... OK
   Loading Device Tree to 1f1c1000, end 1f1c95ef ... 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: Synology DS212, DS212p v10, v20, DS213air v10, DS213 v10
[    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=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)
[    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: 494644K/524288K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 29644K 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.000007][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000039][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000613][    T0] Console: colour dummy device 80x30
[    0.000656][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000678][    T0] pid_max: default: 32768 minimum: 301
[    0.000960][    T0] LSM: Security Framework initializing
[    0.001102][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001123][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001783][    T0] *** VALIDATE proc ***
[    0.001999][    T0] *** VALIDATE cgroup1 ***
[    0.002021][    T0] *** VALIDATE cgroup2 ***
[    0.002105][    T0] CPU: Testing write buffer coherency: ok
[    0.003589][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.003848][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.004096][    T1] rcu: Hierarchical SRCU implementation.
[    0.006476][    T1] devtmpfs: initialized
[    0.013699][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013726][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.013941][    T1] xor: measuring software checksum speed
[    0.110097][    T1]    arm4regs  :  1806.800 MB/sec
[    0.210063][    T1]    8regs     :  1084.800 MB/sec
[    0.310060][    T1]    32regs    :  1576.800 MB/sec
[    0.310075][    T1] xor: using function: arm4regs (1806.800 MB/sec)
[    0.310091][    T1] prandom: seed boundary self test passed
[    0.312613][    T1] prandom: 100 self tests passed
[    0.312621][    T1] pinctrl core: initialized pinctrl subsystem
[    0.313801][    T1] NET: Registered protocol family 16
[    0.314207][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.314831][    T1] audit: initializing netlink subsys (disabled)
[    0.315892][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.315998][    T1] cpuidle: using governor ladder
[    0.316066][    T1] cpuidle: using governor menu
[    0.316498][    T1] Feroceon L2: Enabling L2
[    0.316539][    T1] Feroceon L2: Cache support initialised.
[    0.320801][    T1] No ATAGs?
[    2.560044][    C0] random: fast init done
[    3.878608][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    3.878878][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    4.050676][    T1] raid6: int32x8  gen()   208 MB/s
[    4.220372][    T1] raid6: int32x8  xor()   142 MB/s
[    4.390216][    T1] raid6: int32x4  gen()   208 MB/s
[    4.560181][    T1] raid6: int32x4  xor()   137 MB/s
[    4.730080][    T1] raid6: int32x2  gen()   210 MB/s
[    4.900199][    T1] raid6: int32x2  xor()   151 MB/s
[    5.070273][    T1] raid6: int32x1  gen()   156 MB/s
[    5.240050][    T1] raid6: int32x1  xor()   108 MB/s
[    5.240058][    T1] raid6: using algorithm int32x2 gen() 210 MB/s
[    5.240063][    T1] raid6: .... xor() 151 MB/s, rmw enabled
[    5.240068][    T1] raid6: using intx1 recovery algorithm
[    5.240304][    T1] vgaarb: loaded
[    5.240686][    T1] SCSI subsystem initialized
[    5.241076][    T1] usbcore: registered new interface driver usbfs
[    5.241121][    T1] usbcore: registered new interface driver hub
[    5.241183][    T1] usbcore: registered new device driver usb
[    5.241309][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.241317][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.241336][    T1] PTP clock support registered
[    5.242312][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.870559][    T1] VFS: Disk quotas dquot_6.6.0
[    5.870638][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.877505][    T1] NET: Registered protocol family 2
[    5.878144][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    5.878175][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    5.878231][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    5.878285][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.878357][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    5.878380][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    5.878553][    T1] NET: Registered protocol family 1
[    5.879063][    T1] RPC: Registered named UNIX socket transport module.
[    5.879073][    T1] RPC: Registered udp transport module.
[    5.879078][    T1] RPC: Registered tcp transport module.
[    5.879084][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.879095][    T1] PCI: CLS 0 bytes, default 32
[    5.879278][    T1] Trying to unpack rootfs image as initramfs...
[    6.431292][    T1] Freeing initrd memory: 9488K
[    6.431429][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.432492][    T1] Initialise system trusted keyrings
[    6.432536][    T1] Key type blacklist registered
[    6.432718][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    6.432801][    T1] zbud: loaded
[    6.433614][    T1] NFS: Registering the id_resolver key type
[    6.433639][    T1] Key type id_resolver registered
[    6.433646][    T1] Key type id_legacy registered
[    6.433660][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.433674][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.433892][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.434063][    T1] fuse: init (API version 7.31)
[    6.434358][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.434490][    T1] orangefs_init: module version upstream loaded
[    6.434500][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    6.447204][    T1] async_tx: api initialized (async)
[    6.447225][    T1] Key type asymmetric registered
[    6.447232][    T1] Asymmetric key parser 'x509' registered
[    6.447294][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    6.448337][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.449779][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.449798][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.449808][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.449817][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.449951][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    6.449982][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.450234][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    6.450259][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.451759][    T1] PCI: bus0: Fast back to back transfers disabled
[    6.451778][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.451796][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.453437][    T1] PCI: bus1: Fast back to back transfers enabled
[    6.453455][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.454988][    T1] PCI: bus2: Fast back to back transfers enabled
[    6.455004][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    6.455139][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    6.455152][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    6.455163][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.455179][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    6.455673][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.512842][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.514162][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.572840][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.574423][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.575412][    T1] printk: console [ttyS0] disabled
[    6.575475][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.472836][    T1] printk: console [ttyS0] enabled
[    7.478215][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    7.493384][    T1] loop: module loaded
[    7.497781][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    7.505392][    T1] scsi host0: sata_mv
[    7.509675][    T1] scsi host1: sata_mv
[    7.513785][    T1] ata1: SATA max UDMA/133 irq 34
[    7.518601][    T1] ata2: SATA max UDMA/133 irq 34
[    7.524751][    T1] m25p80 spi0.0: found n25q064, expected m25p80
[    7.531007][    T1] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    7.536402][    T1] 6 cmdlinepart partitions found on MTD device spi0.0
[    7.543058][    T1] Creating 6 MTD partitions on "spi0.0":
[    7.548567][    T1] 0x000000000000-0x000000090000 : "redboot"
[    7.555327][    T1] 0x000000090000-0x000000390000 : "zimage"
[    7.561885][    T1] 0x000000390000-0x0000007d0000 : "rd.gz"
[    7.568381][    T1] 0x0000007d0000-0x0000007e0000 : "vendor"
[    7.574963][    T1] 0x0000007e0000-0x0000007f0000 : "redboot_config"
[    7.582204][    T1] 0x0000007f0000-0x000000800000 : "fis_directory"
[    7.590215][    T1] libphy: Fixed MDIO Bus: probed
[    7.595634][    T1] libphy: orion_mdio_bus: probed
[    7.600635][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    7.608943][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 9 is missing.
[    7.617217][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.625075][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    7.632017][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.639354][    T1] ehci-pci: EHCI PCI platform driver
[    7.644604][    T1] ehci-orion: EHCI orion driver
[    7.649465][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.655734][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.664263][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    7.692342][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.699291][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    7.708310][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.716272][    T1] usb usb1: Product: EHCI Host Controller
[    7.721865][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    7.729219][    T1] usb usb1: SerialNumber: f1050000.ehci
[    7.735092][    T1] hub 1-0:1.0: USB hub found
[    7.739584][    T1] hub 1-0:1.0: 1 port detected
[    7.744787][    T1] usbcore: registered new interface driver usb-storage
[    7.751812][    T1] mousedev: PS/2 mouse device common for all mice
[    7.758368][    T1] i2c /dev entries driver
[    7.763797][    T1] rtc-s35390a 0-0030: error resetting chip
[    7.769889][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    7.776921][    T1] device-mapper: uevent: version 1.0.3
[    7.782578][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    7.792064][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    7.799382][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    7.806768][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    7.814205][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    7.821043][    T1] device-mapper: raid: Loading target version 1.14.0
[    7.828090][    T1] kirkwood-pinctrl f1010000.pin-controller: pin PIN21 already requested by f1080000.sata; cannot claim for gpio-leds-hdd-21-2
[    7.841066][    T1] kirkwood-pinctrl f1010000.pin-controller: pin-21 (gpio-leds-hdd-21-2) status -22
[    7.850273][    T1] kirkwood-pinctrl f1010000.pin-controller: could not request pin 21 (PIN21) from group mpp21  on device f1010000.pin-controller
[    7.863501][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[    7.869838][    T1] leds-gpio gpio-leds-hdd-21-2: Error applying setting, reverse things back
[    7.878440][    T1] leds-gpio: probe of gpio-leds-hdd-21-2 failed with error -22
[    7.886079][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    7.892501][    T1] drop_monitor: Initializing network drop monitor service
[    7.899707][    T1] NET: Registered protocol family 17
[    7.905089][    T1] Key type dns_resolver registered
[    7.910669][    T1] registered taskstats version 1
[    7.915511][    T1] Loading compiled-in X.509 certificates
[    7.921087][    T1] zswap: loaded using pool lzo/zbud
[    7.993150][    T1] Key type big_key registered
[    8.028554][    T1] Key type encrypted registered
[    8.035190][    T1] hctosys: unable to open rtc device (rtc0)
[    8.122338][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.215840][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[    8.235293][    T1] Freeing unused kernel memory: 1024K
[    8.240927][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.247328][    T1] Run /init as init process
Loading, please wait...
[    8.324299][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    8.335438][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.352430][   T15] usb 1-1: Product: USB2.0 Hub
[    8.363052][   T15] hub 1-1:1.0: USB hub found
[    8.372421][   T15] hub 1-1:1.0: 4 ports detected
Starting version 241
[    8.702408][   T15] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.864793][   T15] usb 1-1.3: New USB device found, idVendor=154b, idProduct=00ed, bcdDevice= 1.10
[    8.882374][   T15] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.890416][   T15] usb 1-1.3: Product: USB 3.0 FD
[    8.908419][   T15] usb 1-1.3: Manufacturer: PNY
[    8.916570][   T15] usb 1-1.3: SerialNumber: 070001690020C088
[    8.930334][   T15] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.947449][   T15] scsi host2: usb-storage 1-1.3:1.0
[    9.052397][   T15] usb 1-1.4: new high-speed USB device number 4 using orion-ehci
[    9.214544][   T15] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0726, bcdDevice=99.10
[    9.232428][   T15] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[    9.240471][   T15] usb 1-1.4: Product: USB Storage
[    9.246812][   T15] usb 1-1.4: SerialNumber: 000000009910
[    9.253923][   T15] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    9.261271][   T15] scsi host3: usb-storage 1-1.4:1.0
[    9.277860][  T161] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.003480][    T7] scsi 2:0:0:0: Direct-Access     PNY      USB 3.0 FD       PMAP PQ: 0 ANSI: 6
[   10.016979][   T23] sd 2:0:0:0: [sda] 60604416 512-byte logical blocks: (31.0 GB/28.9 GiB)
[   10.030816][   T23] sd 2:0:0:0: [sda] Write Protect is off
[   10.036920][   T23] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.089153][   T23]  sda: sda1
[   10.103180][   T23] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   10.343475][   T23] scsi 3:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.352946][   T23] scsi 3:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.367700][    T7] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[   10.380197][   T23] sd 3:0:0:1: [sdc] 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
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: recovering journal
rootfs: clean, 15102/1896832 files, 368732/7575296 blocks
done.
[   32.630195][  T194] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   32.697257][  T194] 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.
[   34.091217][    C0] random: crng init done
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[   35.058484][  T375] gpio-fan gpio-fan-100-15-35-1: GPIO fan initialized
[....] Waiting for /dev to be fully populated...[   35.378126][  T376] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   35.492151][  T376] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   35.593942][  T394] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   35.611174][  T376] orion_wdt: Initial timeout 21 sec
[   35.647347][  T373] marvell-cesa f1030000.crypto: CESA device successfully registered
[   35.657648][  T394] sd 3:0:0:0: Attached scsi generic sg1 type 0
[   35.681412][  T394] sd 3:0:0:1: Attached scsi generic sg2 type 0
[   35.799166][  T374] systemd-udevd[374]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   40.947380][  T588] 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

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[   44.419146][ T1171] NET: Registered protocol family 10
[   44.427296][ T1171] 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...
1311 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1338 (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:01:46 PST 1969 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:~# ls
.   .bash_history  .config  .profile  ds213.mtd0  ds213.mtd2  ds213.mtd4
..  .bashrc        .nano    .ssh      ds213.mtd1  ds213.mtd3  ds213.mtd5
root@debian:~# rm *mtd?

root@debian:/dev# cd /boot
root@debian:/boot# ls
.
..
System.map-5.2.9-kirkwood-tld-1
config-5.2.9-kirkwood-tld-1
ds213.mtd0
ds213.mtd1
ds213.mtd2
ds213.mtd3
ds213.mtd4
ds213.mtd5
dts
initrd.img-5.2.9-kirkwood-tld-1
linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
rd.bin
uImage
uInitrd
vmlinuz-5.2.9-kirkwood-tld-1
zImage-5.2.9-kirkwood-tld-1
root@debian:/boot# rm *mtd?
root@debian:/boot# ls
.
..
System.map-5.2.9-kirkwood-tld-1
config-5.2.9-kirkwood-tld-1
dts
initrd.img-5.2.9-kirkwood-tld-1
linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
rd.bin
uImage
uInitrd
vmlinuz-5.2.9-kirkwood-tld-1
zImage-5.2.9-kirkwood-tld-1
root@debian:/boot# cd /
root@debian:/# dd if=/dev/mtd0 of=ds213.mtd0 bs=576k conv=sync
1+0 records in
1+0 records out
589824 bytes (590 kB, 576 KiB) copied, 0.986884 s, 598 kB/s
root@debian:/# dd if=/dev/mtd1 of=ds213.mtd1 bs=3072k conv=sync
1+0 records in
1+0 records out
3145728 bytes (3.1 MB, 3.0 MiB) copied, 5.22441 s, 602 kB/s
root@debian:/# dd if=/dev/mtd2 of=ds213.mtd2 bs=4352k conv=sync
1+0 records in
1+0 records out
4456448 bytes (4.5 MB, 4.2 MiB) copied, 7.40373 s, 602 kB/s
root@debian:/# dd if=/dev/mtd2 of=ds213.mtd2 bs=4352k conv=sync
1+0 records in
1+0 records out
4456448 bytes (4.5 MB, 4.2 MiB) copied, 8.02536 s, 555 kB/s
root@debian:/# dd if=/dev/mtd3 of=ds213.mtd3 bs=64k conv=sync
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.113446 s, 578 kB/s
root@debian:/# dd if=/dev/mtd4 of=ds213.mtd4 bs=64k conv=sync
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.109543 s, 598 kB/s
root@debian:/# dd if=/dev/mtd5 of=ds213.mtd5 bs=64k conv=sync
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.112517 s, 582 kB/s
root@debian:/# ls
.         @tmp  ds213.mtd0  ds213.mtd4  lib         opt   sbin  usr
..        bin   ds213.mtd1  ds213.mtd5  lost+found  proc  srv   var
.Trash-0  boot  ds213.mtd2  etc         media       root  sys
@eaDir    dev   ds213.mtd3  home        mnt         run   tmp
root@debian:/# ls -l
total 8312
drwxrwxrwx 24 root root    4096 Dec 31 16:15 .
drwxrwxrwx 24 root root    4096 Dec 31 16:15 ..
drwx------  4 root root    4096 Sep 29  2020 .Trash-0
drwxrwxrwx  3 root root    4096 Oct 10  2020 @eaDir
drwxrwxrwt  2 root root    4096 Oct 10  2020 @tmp
drwxr-xr-x  2 root root    4096 Aug 24  2019 bin
drwxr-xr-x  3 root root    4096 Dec 31 16:10 boot
drwxr-xr-x 13 root root    3140 Dec 31 16:00 dev
-rw-r--r--  1 root root  589824 Dec 31 16:12 ds213.mtd0
-rw-r--r--  1 root root 3145728 Dec 31 16:12 ds213.mtd1
-rw-r--r--  1 root root 4456448 Dec 31 16:13 ds213.mtd2
-rw-r--r--  1 root root   65536 Dec 31 16:14 ds213.mtd3
-rw-r--r--  1 root root   65536 Dec 31 16:14 ds213.mtd4
-rw-r--r--  1 root root   65536 Dec 31 16:15 ds213.mtd5
drwxr-xr-x 57 root root    4096 Dec 31 16:00 etc
drwxr-xr-x  2 root root    4096 Jan 22  2012 home
drwxr-xr-x 13 root root    4096 Aug 24  2019 lib
drwx------  2 root root   16384 Feb 24  2012 lost+found
drwxr-xr-x  2 root root    4096 Feb 24  2012 media
drwxr-xr-x  2 root root    4096 Feb 10  2015 mnt
drwxr-xr-x  2 root root    4096 Feb 24  2012 opt
dr-xr-xr-x 93 root root       0 Dec 31 16:00 proc
drwx------  5 root root    4096 Dec 31 16:01 root
drwxr-xr-x 13 root root     580 Dec 31 16:01 run
drwxr-xr-x  2 root root    4096 Aug 24  2019 sbin
drwxr-xr-x  2 root root    4096 Feb 24  2012 srv
dr-xr-xr-x 12 root root       0 Dec 31 16:00 sys
drwxrwxrwt  2 root root      40 Dec 31 16:00 tmp
drwxr-xr-x 10 root root    4096 Feb 24  2012 usr
drwxr-xr-x 11 root root    4096 Dec 31 16:00 var
root@debian:/# cp -a *mtd? /boot
root@debian:/# cd /boot
root@debian:/boot# ls -l
total 57692
drwxr-xr-x  3 root root    4096 Dec 31 16:16 .
drwxrwxrwx 24 root root    4096 Dec 31 16:15 ..
-rw-------  1 root root 3101889 Aug 17  2019 System.map-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root  165790 Aug 17  2019 config-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root  589824 Dec 31 16:12 ds213.mtd0
-rw-r--r--  1 root root 3145728 Dec 31 16:12 ds213.mtd1
-rw-r--r--  1 root root 4456448 Dec 31 16:13 ds213.mtd2
-rw-r--r--  1 root root   65536 Dec 31 16:14 ds213.mtd3
-rw-r--r--  1 root root   65536 Dec 31 16:14 ds213.mtd4
-rw-r--r--  1 root root   65536 Dec 31 16:15 ds213.mtd5
drwxr-xr-x  2 root root    4096 Aug 16  2019 dts
-rw-r--r--  1 root root 9713872 Aug 24  2019 initrd.img-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root 9649570 Aug 17  2019 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
-rw-rw-r--  1 root root 3297068 May 11  2020 rd.bin
-rw-r--r--  1 root root 4963680 Aug 24  2019 uImage
-rw-r--r--  1 root root 9713936 Aug 24  2019 uInitrd
-rw-------  1 root root 4963616 Aug 17  2019 vmlinuz-5.2.9-kirkwood-tld-1
-rwxr-xr-x  1 root root 4963616 Aug 17  2019 zImage-5.2.9-kirkwood-tld-1


CHANGED BOXES HERE............

root@ubuntu20:~/kwboot# ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA325> setenv dtb_file /boot/dts/kirkwood-ds212.dtb
NSA325> setenv mtdparts 'mtdparts=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)'
NSA325> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00

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      	60602368  	ac0e13c9-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 784 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 1068 ms (4.4 MiB/s)
loading uInitrd ...
EHCI timed out on TD - token=0xd8d80
9713936 bytes read in 6621 ms (1.4 MiB/s)
loading DTB /boot/dts/kirkwood-ds212.dtb ...
22000 bytes read in 3291 ms (5.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 1f1ca000, end 1fb0d8d0 ... OK
   Loading Device Tree to 1f1c1000, end 1f1c95ef ... 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: Synology DS212, DS212p v10, v20, DS213air v10, DS213 v10
[    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=spi0.0:576K(redboot),3072K(zimage),4352K(rd.gz),64K(vendor),64K(redboot_config),64K(fis_directory)
[    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: 494644K/524288K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 29644K 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.000007][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000039][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000612][    T0] Console: colour dummy device 80x30
[    0.000656][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000677][    T0] pid_max: default: 32768 minimum: 301
[    0.000958][    T0] LSM: Security Framework initializing
[    0.001102][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001123][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001786][    T0] *** VALIDATE proc ***
[    0.002006][    T0] *** VALIDATE cgroup1 ***
[    0.002028][    T0] *** VALIDATE cgroup2 ***
[    0.002111][    T0] CPU: Testing write buffer coherency: ok
[    0.003595][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.003854][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.004102][    T1] rcu: Hierarchical SRCU implementation.
[    0.006483][    T1] devtmpfs: initialized
[    0.013678][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013705][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.013918][    T1] xor: measuring software checksum speed
[    0.110098][    T1]    arm4regs  :  1806.800 MB/sec
[    0.210064][    T1]    8regs     :  1084.800 MB/sec
[    0.310059][    T1]    32regs    :  1576.800 MB/sec
[    0.310076][    T1] xor: using function: arm4regs (1806.800 MB/sec)
[    0.310092][    T1] prandom: seed boundary self test passed
[    0.312614][    T1] prandom: 100 self tests passed
[    0.312623][    T1] pinctrl core: initialized pinctrl subsystem
[    0.313819][    T1] NET: Registered protocol family 16
[    0.314225][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.314849][    T1] audit: initializing netlink subsys (disabled)
[    0.315901][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.316010][    T1] cpuidle: using governor ladder
[    0.316077][    T1] cpuidle: using governor menu
[    0.316509][    T1] Feroceon L2: Enabling L2
[    0.316550][    T1] Feroceon L2: Cache support initialised.
[    0.320813][    T1] No ATAGs?
[    2.560045][    C0] random: fast init done
[    3.878627][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    3.878892][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    4.050672][    T1] raid6: int32x8  gen()   208 MB/s
[    4.220363][    T1] raid6: int32x8  xor()   142 MB/s
[    4.390184][    T1] raid6: int32x4  gen()   208 MB/s
[    4.560136][    T1] raid6: int32x4  xor()   137 MB/s
[    4.730156][    T1] raid6: int32x2  gen()   208 MB/s
[    4.900200][    T1] raid6: int32x2  xor()   151 MB/s
[    5.070274][    T1] raid6: int32x1  gen()   156 MB/s
[    5.240052][    T1] raid6: int32x1  xor()   108 MB/s
[    5.240059][    T1] raid6: using algorithm int32x2 gen() 208 MB/s
[    5.240064][    T1] raid6: .... xor() 151 MB/s, rmw enabled
[    5.240070][    T1] raid6: using intx1 recovery algorithm
[    5.240304][    T1] vgaarb: loaded
[    5.240690][    T1] SCSI subsystem initialized
[    5.241079][    T1] usbcore: registered new interface driver usbfs
[    5.241124][    T1] usbcore: registered new interface driver hub
[    5.241186][    T1] usbcore: registered new device driver usb
[    5.241311][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.241319][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.241338][    T1] PTP clock support registered
[    5.242317][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.870521][    T1] VFS: Disk quotas dquot_6.6.0
[    5.870601][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.877474][    T1] NET: Registered protocol family 2
[    5.878111][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    5.878141][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    5.878196][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    5.878250][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.878325][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    5.878349][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    5.878519][    T1] NET: Registered protocol family 1
[    5.879026][    T1] RPC: Registered named UNIX socket transport module.
[    5.879036][    T1] RPC: Registered udp transport module.
[    5.879042][    T1] RPC: Registered tcp transport module.
[    5.879047][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.879059][    T1] PCI: CLS 0 bytes, default 32
[    5.879243][    T1] Trying to unpack rootfs image as initramfs...
[    6.431265][    T1] Freeing initrd memory: 9488K
[    6.431402][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.432477][    T1] Initialise system trusted keyrings
[    6.432523][    T1] Key type blacklist registered
[    6.432710][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    6.432793][    T1] zbud: loaded
[    6.433604][    T1] NFS: Registering the id_resolver key type
[    6.433628][    T1] Key type id_resolver registered
[    6.433635][    T1] Key type id_legacy registered
[    6.433649][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.433661][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.433879][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.434051][    T1] fuse: init (API version 7.31)
[    6.434344][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.434478][    T1] orangefs_init: module version upstream loaded
[    6.434488][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    6.447206][    T1] async_tx: api initialized (async)
[    6.447227][    T1] Key type asymmetric registered
[    6.447235][    T1] Asymmetric key parser 'x509' registered
[    6.447298][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    6.448345][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.449791][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.449809][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.449819][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.449828][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.449963][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    6.449995][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.450248][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    6.450274][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.451775][    T1] PCI: bus0: Fast back to back transfers disabled
[    6.451794][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.451812][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.453457][    T1] PCI: bus1: Fast back to back transfers enabled
[    6.453475][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.455008][    T1] PCI: bus2: Fast back to back transfers enabled
[    6.455024][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    6.455159][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    6.455172][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    6.455183][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.455198][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    6.455695][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.512844][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.514155][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.572843][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.574422][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.575406][    T1] printk: console [ttyS0] disabled
[    6.575469][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.472831][    T1] printk: console [ttyS0] enabled
[    7.478210][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    7.493394][    T1] loop: module loaded
[    7.497790][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    7.505405][    T1] scsi host0: sata_mv
[    7.509686][    T1] scsi host1: sata_mv
[    7.513795][    T1] ata1: SATA max UDMA/133 irq 34
[    7.518605][    T1] ata2: SATA max UDMA/133 irq 34
[    7.524759][    T1] m25p80 spi0.0: found n25q064, expected m25p80
[    7.531009][    T1] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    7.536405][    T1] 6 cmdlinepart partitions found on MTD device spi0.0
[    7.543063][    T1] Creating 6 MTD partitions on "spi0.0":
[    7.548572][    T1] 0x000000000000-0x000000090000 : "redboot"
[    7.555333][    T1] 0x000000090000-0x000000390000 : "zimage"
[    7.561886][    T1] 0x000000390000-0x0000007d0000 : "rd.gz"
[    7.568373][    T1] 0x0000007d0000-0x0000007e0000 : "vendor"
[    7.574942][    T1] 0x0000007e0000-0x0000007f0000 : "redboot_config"
[    7.582182][    T1] 0x0000007f0000-0x000000800000 : "fis_directory"
[    7.590192][    T1] libphy: Fixed MDIO Bus: probed
[    7.595613][    T1] libphy: orion_mdio_bus: probed
[    7.600590][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    7.608899][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 9 is missing.
[    7.617178][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.625039][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    7.631985][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.639324][    T1] ehci-pci: EHCI PCI platform driver
[    7.644575][    T1] ehci-orion: EHCI orion driver
[    7.649435][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.655704][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.664230][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    7.692345][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.699296][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    7.708313][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.716275][    T1] usb usb1: Product: EHCI Host Controller
[    7.721868][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    7.729224][    T1] usb usb1: SerialNumber: f1050000.ehci
[    7.735096][    T1] hub 1-0:1.0: USB hub found
[    7.739591][    T1] hub 1-0:1.0: 1 port detected
[    7.744790][    T1] usbcore: registered new interface driver usb-storage
[    7.751813][    T1] mousedev: PS/2 mouse device common for all mice
[    7.758367][    T1] i2c /dev entries driver
[    7.763791][    T1] rtc-s35390a 0-0030: error resetting chip
[    7.769884][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    7.776917][    T1] device-mapper: uevent: version 1.0.3
[    7.782570][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    7.792053][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    7.799378][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    7.806763][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    7.814192][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    7.821030][    T1] device-mapper: raid: Loading target version 1.14.0
[    7.828074][    T1] kirkwood-pinctrl f1010000.pin-controller: pin PIN21 already requested by f1080000.sata; cannot claim for gpio-leds-hdd-21-2
[    7.841053][    T1] kirkwood-pinctrl f1010000.pin-controller: pin-21 (gpio-leds-hdd-21-2) status -22
[    7.850258][    T1] kirkwood-pinctrl f1010000.pin-controller: could not request pin 21 (PIN21) from group mpp21  on device f1010000.pin-controller
[    7.863479][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[    7.869819][    T1] leds-gpio gpio-leds-hdd-21-2: Error applying setting, reverse things back
[    7.878429][    T1] leds-gpio: probe of gpio-leds-hdd-21-2 failed with error -22
[    7.886066][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    7.892492][    T1] drop_monitor: Initializing network drop monitor service
[    7.899693][    T1] NET: Registered protocol family 17
[    7.905085][    T1] Key type dns_resolver registered
[    7.910661][    T1] registered taskstats version 1
[    7.915508][    T1] Loading compiled-in X.509 certificates
[    7.921084][    T1] zswap: loaded using pool lzo/zbud
[    7.993225][    T1] Key type big_key registered
[    8.028617][    T1] Key type encrypted registered
[    8.035251][    T1] hctosys: unable to open rtc device (rtc0)
[    8.122341][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.215844][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[    8.235291][    T1] Freeing unused kernel memory: 1024K
[    8.240932][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.247334][    T1] Run /init as init process
Loading, please wait...
[    8.324265][   T15] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    8.335419][   T15] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.352438][   T15] usb 1-1: Product: USB2.0 Hub
[    8.363018][   T15] hub 1-1:1.0: USB hub found
[    8.372426][   T15] hub 1-1:1.0: 4 ports detected
Starting version 241
[    8.702410][   T15] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.864760][   T15] usb 1-1.3: New USB device found, idVendor=154b, idProduct=00ed, bcdDevice= 1.10
[    8.881174][   T15] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.897414][   T15] usb 1-1.3: Product: USB 3.0 FD
[    8.902235][   T15] usb 1-1.3: Manufacturer: PNY
[    8.917381][   T15] usb 1-1.3: SerialNumber: 070001690020C088
[    8.933054][   T15] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.949052][   T15] scsi host2: usb-storage 1-1.3:1.0
[    9.052404][   T15] usb 1-1.4: new high-speed USB device number 4 using orion-ehci
[    9.214509][   T15] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0726, bcdDevice=99.10
[    9.231060][   T15] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[    9.241214][   T15] usb 1-1.4: Product: USB Storage
[    9.246181][   T15] usb 1-1.4: SerialNumber: 000000009910
[    9.253265][   T15] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    9.260617][   T15] scsi host3: usb-storage 1-1.4:1.0
[    9.277103][  T166] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.003571][    T7] scsi 2:0:0:0: Direct-Access     PNY      USB 3.0 FD       PMAP PQ: 0 ANSI: 6
[   10.017071][   T23] sd 2:0:0:0: [sda] 60604416 512-byte logical blocks: (31.0 GB/28.9 GiB)
[   10.030907][   T23] sd 2:0:0:0: [sda] Write Protect is off
[   10.037012][   T23] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.135365][   T23]  sda: sda1
[   10.144651][   T23] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   10.343440][   T23] scsi 3:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.352914][   T23] scsi 3:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[   10.367661][    T7] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[   10.380160][   T23] sd 3:0:0:1: [sdc] 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
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: recovering journal
rootfs: clean, 15102/1896832 files, 368734/7575296 blocks
done.
[   33.350036][  T195] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   33.417469][  T195] 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.
[   34.450514][    C0] random: crng init done
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[   35.845089][  T396] gpio-fan gpio-fan-100-15-35-1: GPIO fan initialized
[....] Waiting for /dev to be fully populated...[   36.124097][  T377] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   36.215036][  T377] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   36.340877][  T377] orion_wdt: Initial timeout 21 sec
[   36.377092][  T396] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   36.423038][  T378] marvell-cesa f1030000.crypto: CESA device successfully registered
[   36.431079][  T396] sd 3:0:0:0: Attached scsi generic sg1 type 0
[   36.461056][  T396] sd 3:0:0:1: Attached scsi generic sg2 type 0
[   36.554255][  T399] systemd-udevd[399]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   37.705542][  T590] 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

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[   41.222836][ T1172] NET: Registered protocol family 10
[   41.228900][ T1172] 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...
1312 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1339 (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:01:05 PST 1969 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:~# cd /boot

root@debian:/boot# flash_unlock /dev/mtd0
root@debian:/boot# flashcp -v ds213.mtd0 /dev/mtd0
Erasing blocks: 144/144 (100%)
Writing data: 576k/576k (100%)
Verifying data: 576k/576k (100%)
root@debian:/boot# flash_unlock /dev/mtd1
flash_unlock: error!: could not unlock device: /dev/mtd1

              error 22 (Invalid argument)
root@debian:/boot# flashcp -v ds213.mtd1 /dev/mtd1
Erasing blocks: 768/768 (100%)
Writing data: 3072k/3072k (100%)
Verifying data: 3072k/3072k (100%)
root@debian:/boot# flashcp -v ds213.mtd2 /dev/mtd2
Erasing blocks: 1088/1088 (100%)
Writing data: 4352k/4352k (100%)
Verifying data: 450k/4352k (10%)File does not seem to match flash data. First mismatch at 0x0006e000-0x00070800
root@debian:/boot# 

Re: Bricked Synology DS213 (Kirkwood) so close
November 05, 2020 04:32PM
itangoii ,

I did not forget this topic, just too busy to revisit it! I think we should move on to the flashing with tftp approach to see if it is more successful.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked Synology DS213 (Kirkwood) so close
November 06, 2020 10:56AM
bodhi Wrote:
-------------------------------------------------------
> itangoii ,
>
> I did not forget this topic, just too busy to
> revisit it! I think we should move on to the
> flashing with tftp approach to see if it is more
> successful.

No worries, I've been busy the last couple of weeks to. Thanks for hanging in there.
Author:

Subject:


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