QNAP TS-409 Proの分解、初期化


昔の作業ログ

2021/09/26、09/28、09/30

## 目的
安価にnasの調達。
訳アリの「QNAP TS-409 Pro」を5000円でメルカリでIYH。
症状は、電源は入るがログインも初期化もできない、というもの。
何とかなるだろうと購入。

https://ascii.jp/elem/000/000/125/125934/

2008年の製品ですね。作業時点で13年前のもの。

## 作業の流れ

### 類似事象、参考記事確認

とても頼りになる先駆者の記事を確認。
この記事がなかったら諦めてました。本当にありがとうございます。

https://www.okqubit.net/qnap/serial.html

シリアルコンソールでファーム見れるなら何とかできそうかな。
ケーブル自作も楽しそうだったけど、取り敢えず動かしたいので既製品を注文。

↓

玄人志向　汎用3.3Vシリアル→USB接続キット SCON-KIT/GP

https://www.kuroutoshikou.com/product/detail/scon-kit-gp.html

### コンソールアクセス

ケーブル到着。
ファームは中身としては、Marvell U-Bootとbusybox。

busyboxとは？組み込みLinuxのアーミーナイフ、らしい。詰まりコンパクトな便利道具。1MBくらいでOS機能提供してくれるなら凄いよね。
海外版ポケモン初代のカセット内容が1MBくらいらしい。
ガラケーの時、添付ファイルが2MBくらいまでだった気がする。
windows3.0が7MBくらい必要らしい。
windows95は75MBくらい必要らしい。

https://www.docker.com/ja-jp/blog/use-cases-and-tips-for-using-the-busybox-docker-official-image/

https://busybox.net/about.html

電源は入り、ファーム自体は動いているように見えるが、
外からはポートスキャンしても応答なし。
webサービスなり、NASとしての機能の何かが駄目になっていると見て、
ファーム入れ直しになるかなと見える。

一旦は手順のあるサイトのとおりリカバリを実施。
tftpでイメージを取得させる形。

https://www.cyrius.com/debian/orion/qnap/ts-409/recovery/

### リカバリ

<details><summary>log_01</summary>

```

[~] # pic_ioctl: signal_pending current failed
md: md13 stopped.
The system is going down NOW !!
Sending SIGTERM to all processes.
Please stand by while rebooting the system.
md: stopping all md devices.
Synchronizing SCSI cache for disk sda:
Restarting system.
Reseting !!

```

```
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|

```

```
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DB-88F5X81-DDR2-A/B LE, boardId=7
 QNAP SYSTEMS, INC.
QNAP:MV_INCLUDE_GIG_ETH


U-Boot 1.1.4 (Oct 24 2008 - 17:47:36) Marvell version: 2.3.23

U-Boot code: 00200000 -> 0027FFF0  BSS: -> 00292E14

Soc: 88F5281 D0 (DDR2)
CPU running @ 500Mhz
SysClock = 166Mhz , TClock = 166Mhz

DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  32bit width
[8192kB@ff800000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000 = 0 MB
Flash:  8 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

CPU : ARM926 (Rev 0)
Streaming disabled
VFP initialized to Run Fast Mode.

USB 0: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
CPU: Write allocate enabled
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Using egiga0 device
TFTP from server xxx.xxx.xxx.xx1; our IP address is xxx.xxx.xxx.xx0
Filename 'qnapimg.bin'.
Load address: 0x400000
Loading: T T T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############
done
Bytes transferred = 8388608 (800000 hex)
........................................................
Un-Protected 56 sectors

........................................................ done
Erased 56 sectors
Copy to Flash... done

```

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|

 ```
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DB-88F5X81-DDR2-A/B LE, boardId=7
 QNAP SYSTEMS, INC.
QNAP:MV_INCLUDE_GIG_ETH


U-Boot 1.1.4 (Oct 24 2008 - 17:47:36) Marvell version: 2.3.23

U-Boot code: 00200000 -> 0027FFF0  BSS: -> 00292E14

Soc: 88F5281 D0 (DDR2)
CPU running @ 500Mhz
SysClock = 166Mhz , TClock = 166Mhz

DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  32bit width
[8192kB@ff800000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000 = 0 MB
Flash:  8 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

CPU : ARM926 (Rev 0)
Streaming disabled
VFP initialized to Run Fast Mode.

USB 0: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
CPU: Write allocate enabled
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
.....
Un-Protected 5 sectors
## Booting image at 00400000 ...
   Image Name:   Linux-2.6.21.1-qnap
   Created:      2008-10-24   9:30:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2000400 Bytes =  1.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................................................................................................. done, booting the kernel.
Linux version 2.6.21.1-qnap (root@NASARM2) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #7 Fri Oct 24 17:30:21 CST 2008
CPU: ARM926EJ-S [41069260] revision 0 (ARMv5TEJ), cr=00053177
Machine: Feroceon
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists.  Total pages: 65024
Kernel command line: console=ttyS0,115200n8 root=/dev/ram rw initrd=0x800000,0x3fffff
PID hash table entries: 1024 (order: 10, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB 0MB 0MB 0MB = 256MB total
Memory: 251520KB available (3772K code, 280K data, 128K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Sys Clk = 166666667, Tclk = 166666667
Orion2 D0 or less. Enable VFP.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e8000000, size  64MB
PEX0_IO ....base f2000000, size   1MB
PCI0_MEM ....base ec000000, size  64MB
PCI0_IO ....base f2100000, size   1MB
INTER_REGS ....base f1000000, size   1MB
DEVICE_CS0 ....base fa000000, size   2MB
DEVICE_CS1 ....base fc000000, size  32MB
DEVICE_CS2 ....base fa800000, size   1MB
DEV_BOOCS ....base ff800000, size   8MB

  Marvell Development Board (LSP Version 2.2.2_NAS_GDP) - Large Filesystem Support-- DB-88F5X81-DDR2-A  Soc: 88F5281 D0

 Detected Tclk 166666667 and SysClk 166666667
Marvell USB EHCI Host controller #0: a067e800
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 4095K
QNAP RTC initializing....
Initializing RTC is completed.
RTC registered
 Detected Tclk 166666667, BASE_BAUD 10416666, Baud divisor 542
qnap_pic_init: succeed to register misc device
tsinfo: create proc systemp successfully
tsinfo: create proc systemp successfully
qkv_init: succeed to register misc device
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
<QNAP>current->mm is null.
Done.
audit: initializing netlink socket (disabled)
audit(1.087:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
io scheduler noop registered (default)
Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A
serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 4) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Marvell Ethernet Driver 'mv_ethernet':
  o Uncached descriptors in DRAM
  o DRAM SW cache-coherency
  o TCP segmentation offload enabled
  o Checksum offload enabled
  o Driver statistics enabled
  o Marvell ethtool proc enabled
  o Rx desc: 128
  o Tx desc: 256
  o Loading network interface 'eth0'
 Wait 30 seconds to initialize mvAdapter.
 Wait 0 seconds to initialize scsi 0.
scsi0 : Marvell SCSI to SATA adapter
 Wait 0 seconds to initialize scsi 1.
scsi1 : Marvell SCSI to SATA adapter
 Wait 5 seconds to initialize scsi 2.
scsi2 : Marvell SCSI to SATA adapter
 Wait 5 seconds to initialize scsi 3.
scsi3 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access     WDC      WD5000AAKS-19V0A 05.0 PQ: 0 ANSI: 3
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: write cache: enabled, read cache: enabled, supports DPO and FUA
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: write cache: enabled, read cache: enabled, supports DPO and FUA
 sda: sda1 sda2 sda3 < sda5 >
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
physmap platform flash device: 00800000 at ff800000
cmdlinepart partition parsing not available
RedBoot partition parsing not available
QNAP Set mtd partition
Using physmap partition information
cfi_flash: Found 1 x16 devices at 0x0 in 8-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
cmdlinepart partition parsing not available
Creating 6 MTD partitions on "cfi_flash":
0x00780000-0x00800000 : "U-Boot"
QNAP(ori): slave->mtd.flags = 800, <5>QNAP: slave->mtd.flags = 800
0x00000000-0x00200000 : "Kernel"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
0x00200000-0x00600000 : "RootFS1"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
0x00600000-0x00700000 : "RootFS2"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
0x00760000-0x00780000 : "U-Boot Config"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
0x00700000-0x00760000 : "NAS Config"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
$Id: pmc551.h,v 1.1.1.1 2007/09/07 08:41:55 ricky Exp $
Ramix PMC551 PCI Mezzanine Ram Driver. (C) 1999,2000 Nortel Networks.
pmc551: not detected
block2mtd: version $Revision: 1.1.1.1 $
ehci_hcd: block sizes: qh 128 qtd 96 itd 192 sitd 96
feroceon-ehci feroceon-ehci.4523: EHCI Host Controller
feroceon-ehci feroceon-ehci.4523: new USB bus registered, assigned bus number 1
feroceon-ehci feroceon-ehci.4523: irq 17, io mem 0x00000000
feroceon-ehci feroceon-ehci.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v3.0
usb 1-1: new high speed USB device using feroceon-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usbcore: registered new interface driver libusual
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
drivers/usb/net/rtl8150.c: rtl8150 based usb-ethernet driver v0.6.2 (2004/08/27)
usbcore: registered new interface driver rtl8150
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
usbcore: registered new interface driver gl620a
usbcore: registered new interface driver net1080
usbcore: registered new interface driver plusb
usbcore: registered new interface driver rndis_host
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver MOSCHIP usb-ethernet driver
usbcore: registered new interface driver mdc800
drivers/usb/image/mdc800.c: v0.7.5 (30/10/2000):USB Driver for Mustek MDC800 Digital Camera
usbcore: registered new interface driver microtekX6
mice: PS/2 mouse device common for all mice
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
raid6: int32x1     28 MB/s
raid6: int32x2     45 MB/s
raid6: int32x4     51 MB/s
raid6: int32x8     47 MB/s
raid6: using algorithm int32x4 (51 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
   arm4regs  :   429.600 MB/sec
   8regs     :   330.000 MB/sec
   32regs    :   514.000 MB/sec
raid5: using function: 32regs (514.000 MB/sec)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 5
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 0
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 128K

Start config_util...
Flash NASConfig done.
config_util: No initialized HD exists.
config_util: No initialized HD exists.
Some errors occurred while running config_util.
config_util finished.
mount HDD root device
/dev/md9: Invalid argument
mount: you must specify the filesystem type
mount /dev/md9 failed.
Update Extended rcX_init.d...
dd: /dev/sda4: Invalid argument
Extract RootFS2...
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                 9911      9411       500  95% /
tmpfs                    16384         4     16380   0% /tmp
Enable watchdog...
get_hdd_model_size(TS_201) - WDC     WD5000AAKS-19V0A05.0 [465.76 GB].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - WDC     WD5000AAKS-19V0A05.0 [465.76 GB].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
SATA port plug-in.
insmod: cannot open module `/lib/modules/misc/sysinfo.ko': No such file or directory
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
insmod: cannot open module `/lib/modules/misc/fat.ko': No such file or directory
insmod: cannot open module `/lib/modules/misc/msdos.ko': No such file or directory
insmod: cannot open module `/lib/modules/misc/vfat.ko': No such file or directory
insmod: cannot open module `/lib/modules/misc/fuse.ko': No such file or directory
initializing MAC address...
eth0: mac address changed
MAC_ADDR 00:08:9B:8C:1F:AD
log hidden config directory not exist, initial log file...
Initialize database...
Done. Return value is 0
Set max number of logs to 50
Done. Return value is 0
Initialize database...
Done. Return value is 0
Set max number of logs to 50
Done. Return value is 0
storage_boot_init 3 ...
storage_boot_init.c: booting without HD
storage_boot_init 4 ...
storage_boot_init.c: Set Status LED...
Power recovery is off
hostname

Stopping network...Stopped.
Starting network...DHCP
eth0: link down
network.sh: write_hosts
169.254.100.100
eth0: link up, full duplex, speed 100 Mbps
Speed: 100
ddns disable
Starting thttpd services: thttpd.
config_util: No initialized HD exists.
init_check.sh: No HD existed.
Drive 1 existed.
telnetd: starting
  port: 13131; login program: /bin/naslogin
create /usr/bin/passwd
The system had been started 65 time(s).
_OK!
network.sh: write_hosts
169.254.100.100


Welcome to QNAP Systems Inc,. Marvell(169.254.100.100) development environment.

hostname login: eth0: link down
eth0: link up, full duplex, speed 1 Gbps
eth0: link down
eth0: link up, full duplex, speed 1 Gbps
Password:
login[1178]: root login  on `ttyS0'

[~] # ps -ef
  PID  Uid     VmSize Stat Command
    1 admin       544 S   init
    2 admin           SWN [ksoftirqd/0]
    3 admin           SW< [events/0]
    4 admin           SW< [khelper]
    5 admin           SW< [kthread]
   39 admin           SW< [kblockd/0]
   42 admin           SW< [khubd]
   60 admin           SW  [pdflush]
   61 admin           SW  [pdflush]
   62 admin           SW< [kswapd0]
   63 admin           SW< [aio/0]
   64 admin           SW< [cifsoplockd]
   65 admin           SW< [cifsdnotifyd]
  685 admin           SW< [scsi_eh_0]
  686 admin           SW< [scsi_eh_1]
  687 admin           SW< [scsi_eh_2]
  688 admin           SW< [scsi_eh_3]
  703 admin           SW  [mtdblockd]
  745 admin           SW< [pegasus]
  899 admin       564 S   /sbin/daemon_mgr
  902 admin       612 S < /sbin/qwatchdogd
  905 admin       952 S   /sbin/bcclient
  906 admin       952 S   /sbin/bcclient
  907 admin       952 S   /sbin/bcclient
  910 admin       952 S   /sbin/bcclient
  915 admin       696 S   /sbin/qLogEngined
  916 admin       696 S   /sbin/qLogEngined
  917 admin       696 S   /sbin/qLogEngined
  918 admin       696 S   /sbin/qLogEngined
  922 admin      1356 S   /sbin/picd
  925 admin       620 S   /sbin/gpiod
 1080 admin       964 S   /sbin/thttpd -p 8080 -nor -nos -u admin -d /home/http
 1083 admin       964 S   /sbin/thttpd -p 80 -nor -nos -u admin -d /home/httpd
 1133 admin       324 S   /bin/utelnetd -d -p 13131
 1178 admin      1244 S   -sh
 1229 admin       164 S N /sbin/dhcpcd -h hostname -t 30 eth0
 1264 admin       632 R   ps -ef
[~] #

```

</details>

ブラウザアクセス成功

```

Server Name: hostname                                    System Information      


The system is not configured. Please refer to the Quick Installation Guide or user manual for software configuration.

系統尚未完成設定，請參閱「快速安裝指引」或「使用手冊」進行軟體安裝。

系统尚未完成设定，请参阅「快速安装指引」或「使用手册」进行软件安装。

システムが設定されていません。ソフトウェアの設定については、クイックインストールガイドまたは取扱説明書を参照してください

Le système n'est pas configuré. Veuillez vous référer au Guide d'installation rapide ou au mode d'emploi pour la configuration logicielle

Das System wurde nicht konfiguriert. Bitte beziehen Sie sich auf die Schnellinstallationsanleitung oder das Benutzerhandbuch für die Softwarekonfiguration

시스템이 구성되지 않았습니다. 소프트웨어 구성에 대해서는 Quick Installation Guide(빠른 설치 안내서) 또는 사용 설명서를 참조하십시오

El sistema no está configurado. Por favor, consulte la Guía de Instalación Rápida o el manual del usuario para la configuración del software

Il sistema non è configurato. Fare riferimento alla Guida d’installazione rapida oppure al Manuale d’uso per la configurazione del software

Сбой настроек сети Microsoft. Проверьте сервер DNS, доменное имя, а также имя пользователя и пароль для входа в домен

```

これで、先ずはwebアクセスは可能になりました。
なので、HWとして問題があるという訳でない、ということで一安心。
マニュアルによると製品CDにはリカバリ用のファームがあるらしいが、
買ったのは本体と電源ケーブルのみで、
製品CDなどないので、公式サイトを探してみよう。

### ファーム入れ直し

次にファーム更新というか入れ直し、というところですが、
旧型機器のファームが日本のQNAPサイトからは消えていて、
海外のQNAPサイトから取得。
↓ドイツのフォーラムに情報がありました。

https://forum.qnapclub.de/thread/57598-system-firmware-f%C3%BCr-ts-109-pro/

NAS設定用のWindowsアプリから見つけて、
ファームを適用。

<details><summary>log_02</summary>

```

pic_ioctl: signal_pending current failed
md: md4 stopped.
md: unbind<sdb2>
md: export_rdev(sdb2)
md: unbind<sda2>
md: export_rdev(sda2)
md: md9 stopped.
md: unbind<sda1>
md: export_rdev(sda1)
md: unbind<sdb1>
md: export_rdev(sdb1)
md: md0: resync done.
md: checkpointing resync of md0.
md: resync skipped: md0 
md: md0 stopped.
md: unbind<sda3>
md: export_rdev(sda3)
md: unbind<sdb3>
md: export_rdev(sdb3)
md: md13 still in use.
The system is going down NOW !Sending SIGKILL to all processes.
md: md13 in immediate safe mode
Please stand by while rebooting the system.
md: stopping all md devices.
md: md13 still in use.
Synchronizing SCSI cache for disk sdb: 
Synchronizing SCSI cache for disk sda: 
Restarting system.
Reseting !! 

```

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|


 ```
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DB-88F5X81-DDR2-A/B LE, boardId=7
 QNAP SYSTEMS, INC. 
QNAP:MV_INCLUDE_GIG_ETH


U-Boot 1.1.4 (Oct 24 2008 - 17:47:36) Marvell version: 2.3.23

U-Boot code: 00200000 -> 0027FFF0  BSS: -> 00292E14

Soc: 88F5281 D0 (DDR2)
CPU running @ 500Mhz 
SysClock = 166Mhz , TClock = 166Mhz 

DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  32bit width
[8192kB@ff800000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000 = 0 MB
Flash:  8 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

CPU : ARM926 (Rev 0)
Streaming disabled 
VFP initialized to Run Fast Mode.

USB 0: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
CPU: Write allocate enabled
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  4  3  2  1  0 
.....
Un-Protected 5 sectors
## Booting image at 00400000 ...
   Image Name:   Linux-2.6.21.1-qnap
   Created:      2011-09-17  18:26:47 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2000900 Bytes =  1.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................................................................................................. done, booting the kernel.
Linux version 2.6.21.1-qnap (root@NasARM4) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #1 Sun Sep 18 02:26:44 CST 2011
CPU: ARM926EJ-S [41069260] revision 0 (ARMv5TEJ), cr=00053177
Machine: Feroceon
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists.  Total pages: 65024
Kernel command line: console=ttyS0,115200n8 root=/dev/ram rw initrd=0x800000,0x3fffff
PID hash table entries: 1024 (order: 10, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB 0MB 0MB 0MB = 256MB total
Memory: 251520KB available (3776K code, 297K data, 128K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Sys Clk = 166666667, Tclk = 166666667
Orion2 D0 or less. Enable VFP.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e8000000, size  64MB 
PEX0_IO ....base f2000000, size   1MB 
PCI0_MEM ....base ec000000, size  64MB 
PCI0_IO ....base f2100000, size   1MB 
INTER_REGS ....base f1000000, size   1MB 
DEVICE_CS0 ....base fa000000, size   2MB 
DEVICE_CS1 ....base fc000000, size  32MB 
DEVICE_CS2 ....base fa800000, size   1MB 
DEV_BOOCS ....base ff800000, size   8MB 

  Marvell Development Board (LSP Version 2.2.2_NAS_GDP) - Large Filesystem Support-- DB-88F5X81-DDR2-A  Soc: 88F5281 D0

 Detected Tclk 166666667 and SysClk 166666667 
Marvell USB EHCI Host controller #0: a067a800
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 4095K
QNAP RTC initializing....
Initializing RTC is completed.
RTC registered
 Detected Tclk 166666667, BASE_BAUD 10416666, Baud divisor 542
qnap_pic_init: succeed to register misc device
tsinfo: create proc systemp successfully
tsinfo: create proc systemp successfully
qkv_init: succeed to register misc device
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3 
<QNAP>current->mm is null.
Done. 
audit: initializing netlink socket (disabled)
audit(1.087:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
io scheduler noop registered (default)
Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A
serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 4) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Marvell Ethernet Driver 'mv_ethernet':
  o Uncached descriptors in DRAM
  o DRAM SW cache-coherency
  o TCP segmentation offload enabled
  o Checksum offload enabled
  o Driver statistics enabled
  o Marvell ethtool proc enabled
  o Rx desc: 128
  o Tx desc: 256
  o Loading network interface 'eth0' 
 Wait 35 seconds to initialize mvAdapter.
Spin up ...
 Wait 0 seconds to initialize scsi 0.
scsi0 : Marvell SCSI to SATA adapter
 Wait 0 seconds to initialize scsi 1.
scsi1 : Marvell SCSI to SATA adapter
 Wait 5 seconds to initialize scsi 2.
scsi2 : Marvell SCSI to SATA adapter
 Wait 5 seconds to initialize scsi 3.
scsi3 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access     WDC      WD5000AAKS-19V0A 05.0 PQ: 0 ANSI: 3
scsi 1:0:0:0: Direct-Access     Hitachi  HDT725050VLA360  V56O PQ: 0 ANSI: 3
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: write cache: enabled, read cache: enabled, supports DPO and FUA
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: write cache: enabled, read cache: enabled, supports DPO and FUA
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sdb: write cache: enabled, read cache: enabled, supports DPO and FUA
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sdb: write cache: enabled, read cache: enabled, supports DPO and FUA
 sdb: sdb1 sdb2 sdb3 sdb4
sd 1:0:0:0: Attached scsi disk sdb
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 type 0
physmap platform flash device: 00800000 at ff800000
cmdlinepart partition parsing not available
RedBoot partition parsing not available
QNAP Set mtd partition
Using physmap partition information
cfi_flash: Found 1 x16 devices at 0x0 in 8-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
cmdlinepart partition parsing not available
Creating 6 MTD partitions on "cfi_flash":
0x00780000-0x00800000 : "U-Boot"
QNAP(ori): slave->mtd.flags = 800, <5>QNAP: slave->mtd.flags = 800
0x00000000-0x00200000 : "Kernel"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
0x00200000-0x00600000 : "RootFS1"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
0x00600000-0x00700000 : "RootFS2"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
0x00760000-0x00780000 : "U-Boot Config"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
0x00700000-0x00760000 : "NAS Config"
QNAP(ori): slave->mtd.flags = c00, <5>QNAP(MTD_WRITEABLE): slave->mtd.flags = c00
$Id: pmc551.h,v 1.1.1.1 2007-09-07 08:41:55 ricky Exp $
Ramix PMC551 PCI Mezzanine Ram Driver. (C) 1999,2000 Nortel Networks.
pmc551: not detected
block2mtd: version $Revision: 1.1.1.1 $
ehci_hcd: block sizes: qh 128 qtd 96 itd 192 sitd 96
feroceon-ehci feroceon-ehci.4523: EHCI Host Controller
feroceon-ehci feroceon-ehci.4523: new USB bus registered, assigned bus number 1
feroceon-ehci feroceon-ehci.4523: irq 17, io mem 0x00000000
feroceon-ehci feroceon-ehci.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v3.0
usb 1-1: new high speed USB device using feroceon-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usbcore: registered new interface driver libusual
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
drivers/usb/net/rtl8150.c: rtl8150 based usb-ethernet driver v0.6.2 (2004/08/27)
usbcore: registered new interface driver rtl8150
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
usbcore: registered new interface driver gl620a
usbcore: registered new interface driver net1080
usbcore: registered new interface driver plusb
usbcore: registered new interface driver rndis_host
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver MOSCHIP usb-ethernet driver
usbcore: registered new interface driver mdc800
drivers/usb/image/mdc800.c: v0.7.5 (30/10/2000):USB Driver for Mustek MDC800 Digital Camera
usbcore: registered new interface driver microtekX6
mice: PS/2 mouse device common for all mice
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
raid6: int32x1     28 MB/s
raid6: int32x2     45 MB/s
raid6: int32x4     51 MB/s
raid6: int32x8     47 MB/s
raid6: using algorithm int32x4 (51 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
   arm4regs  :   429.600 MB/sec
   8regs     :   330.000 MB/sec
   32regs    :   513.600 MB/sec
raid5: using function: 32regs (513.600 MB/sec)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 5
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 0
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 128K

Start config_util...
Flash NASConfig done.
Start to mirror ROOT part...
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
config_util: ret=0, /dev/sda1 is successfully mounted.
config_util: config file=/mnt/HDA_ROOT/.conf
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sdb1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
config_util: ret=0, /dev/sdb1 is successfully mounted.
config_util: config file=/mnt/HDB_ROOT/.conf
md: md9 stopped.
md: bind<sdb1>
md: bind<sda1>
raid1: raid set md9 active with 2 out of 4 mirrors
mdadm: /dev/md9 has been started with 2 drives (out of 4).
Mirror of ROOT succeeded.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Start to mirror RFS_EXT part...
md: md13 stopped.
md: bind<sdb4>
md: bind<sda4>
raid1: raid set md13 active with 2 out of 4 mirrors
mdadm: /dev/sda4 has been started with 2 drives (out of 4).
config_util: (0) /dev/sda4 size = 71808
Mirror of RFS_EXT succeeded.
config_util finished.
mount HDD root device
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
mount /dev/md9 successful.
HD_Model_Name=TS-409
Model_Name=TS-409
Update Extended rcX_init.d...
4+0 records in
4+0 records out
Extract RootFS2...
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
mountall: mount /dev/md9 successful.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: checktime reached, running e2fsck is recommended
EXT3 FS on md13, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ramdisk              9911      7179      2732  72% /
tmpfs                    16384         8     16376   0% /tmp
/dev/sda4                67425     60177      7248  89% /mnt/ext
Enable watchdog...
get_hdd_model_size(TS_201) - WDC     WD5000AAKS-19V0A05.0 [465.76 GB].
get_hdd_model_size(TS_201) - Hitachi HDT725050VLA360 V56O [465.76 GB].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - WDC     WD5000AAKS-19V0A05.0 [465.76 GB].
get_hdd_model_size(TS_201) - Hitachi HDT725050VLA360 V56O [465.76 GB].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
sysinfo: Module loaded.
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ufsd: module license 'Commercial product' taints kernel.
ufsd: driver loaded
UFSD version 6.15 (Sep 30 2008, 18:35:51)
NTFS read/write support included
$Id: ufsdvfs.c,v 1.169 2008/09/30 13:59:55 shura Exp $
ufsd: address 0x9f028000
initializing MAC address...
eth0: mac address changed
MAC_ADDR 00:08:9B:8C:1F:AD
storage_boot_init 1 ...
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Checking for bad blocks (read-only test):               0/         530144          65856/         530144         134656/         530144         203456/         530144         272320/         530144         339712/         530144         404672/         530144         473472/         530144done                                
mdadm: /dev/sda2 appears to be part of a raid array:
    level=raid1 devices=2 ctime=Thu Sep 30 21:01:05 2021
md: bind<sda2>
md: md4: raid array is not clean -- starting background reconstruction
raid1: raid set md4 active with 1 out of 1 mirrors
mdadm: array /dev/md4 started.
Start_Swapping(): add swap raid device into RAID_CONF_FILE
Adding 530040k swap on /dev/md4.  Priority:-1 extents:1 across:530040k
Checking for bad blocks (read-only test):               0/         530144          55616/         530144         106368/         530144         163904/         530144         220992/         530144         278144/         530144         333312/         530144         390656/         530144         448000/         530144         505088/         530144done                                
md: bind<sdb2>
RAID1 conf printout:
 --- wd:1 rd:2
 disk 0, wo:0, o:1, dev:sda2
 disk 1, wo:1, o:1, dev:sdb2
md: recovery of RAID array md4
md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for recovery.
md: using 128k window, over a total of 530048 blocks.
mdadm: added /dev/sdb2
config hidden config directory exist, create symbolic link /etc/config... [OK]
Check config files...start
md: md4: recovery done.
RAID1 conf printout:
 --- wd:2 rd:2
 disk 0, wo:0, o:1, dev:sda2
 disk 1, wo:0, o:1, dev:sdb2
Check config files...end
Writing model version information...
Writing model version info...[OK]
log hidden config directory exist, create symboloc link /etc/logs... [OK]
Install /mnt/HDA_ROOT/update_pkg/*.qfix ...
ln: /usr/lib/libwbclient.so.0: File exists
ln: /usr/lib/libnss_winbind.so: File exists
ln: /usr/lib/libnss_winbind.so.2: File exists
ln: /usr/lib/libtdb.so.1: File exists
ln: /usr/lib/libtalloc.so.1: File exists
ln: /usr/lib/libnss_wins.so: File exists
ln: /usr/lib/libnss_wins.so.2: File exists
ln: /usr/bin/wbinfo: File exists
ln: /usr/local/samba/lib/lowcase.dat: File exists
ln: /usr/local/samba/lib/upcase.dat: File exists
ln: /usr/local/samba/lib/valid.dat: File exists
ln: /usr/local/samba/bin/net: File exists
ln: /usr/local/samba/sbin/smbd: File exists
log hidden config directory exist, create symboloc link /mnt/HDA_ROOT/rootfs_2_3_6/home/sqdatabase... [OK]
ln: $/play/ch1/record_nvr_unk/channel1: No such file or directory
ln: $/play/ch2/record_nvr_unk/channel2: No such file or directory
ln: $/play/ch3/record_nvr_unk/channel3: No such file or directory
ln: $/play/ch4/record_nvr_unk/channel4: No such file or directory
ln: $/play/ch5/record_nvr_unk/channel5: No such file or directory
ln: $/play/ch6/record_nvr_unk/channel6: No such file or directory
ln: $/play/ch7/record_nvr_unk/channel7: No such file or directory
ln: $/play/ch8/record_nvr_unk/channel8: No such file or directory
ln: /mnt/HDA_ROOT/rootfs_2_3_6/etc/localtime: File exists
xmlcfg_create=0
Start rcv_port: active port 0 :139
active port 1 :445
active port 2 :20
set 139 445 20.
Starting Disk initialized:
storage_boot_init 2 ...
storage_boot_init.c: Single-disk 3 dosen't exist!
storage_boot_init.c: Single-disk 4 dosen't exist!
md: md0 stopped.
md: bind<sdb3>
md: bind<sda3>
md: md0: raid array is not clean -- starting background reconstruction
raid1: raid set md0 active with 2 out of 2 mirrors
mdadm: /dev/md0 has been startedmd: resync of RAID array md0
 with 2 drives.md: minimum _guaranteed_  speed: 1000 KB/sec/disk.

md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
md: Resyncing started: md0
md: using 128k window, over a total of 487243328 blocks.
md: resuming resync of md0 from checkpoint.
storage_boot_init.c: Start raid device /dev/md0 successfully
md0 : active raid1 sda3[0] sdb3[1]
md0 : active raid1 sda3[0] sdb3[1]
storage_boot_init.c: 	 /dev/md0 is active.
e2fsck 1.40-WIP (02-Oct-2006)
/dev/md0: clean, 19/60915712 files, 1944426/121810832 blocks
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
check_last_degrade_error...
storage_boot_init 6 ...
Create_Disk_External_Storage_Conf..............
Check /dev/md0
last active hd count = 0
active hd count = 2
percent = 281


Start to mount ROOTFS /mnt/HDA_ROOT/rootfs_2_3_6

Stopping network...Stopped.
Starting network...DHCP
eth0: link down
cp: /etc/config/bandwidth_record.conf: No such file or directory
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 281


eth0: link up, full duplex, speed 1 Gbps
Run ipchange_notify.sh...
Speed: 1000
ddns disable
Shutting down Winbind services:Run ipchange_notify.sh...
ddns disable
Shutting down Winbind services: done.
Starting Winbind services:Shutting down bonjour services: mDNSResponderPosix
Starting bonjour services:  done.
Starting Winbind services:Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 281


mDNSResponderPosix.
Shutting down bonjour services: mDNSResponderPosix
xxx.xxx.xxx.xxx
Starting bonjour services: Shutting down nvrd services:mDNSResponderPosix.
xxx.xxx.xxx.xxx
Shutting down nvrd services: nvrd.
 nvrd.
umount: /mnt/HDA_ROOT/rootfs_2_3_6/share/Qrecordings: not mounted
umount: /mnt/HDA_ROOT/rootfs_2_3_6/mnt/HDA_ROOT: not found
get_local_time_info() failed errno=2.......
crontab: cannot change dir to /var/spool/cron/crontabs: No such file or directory
umount: /mnt/HDA_ROOT/rootfs_2_3_6/share/Qrecordings: not mounted
umount: /mnt/HDA_ROOT/rootfs_2_3_6/mnt/HDA_ROOT: not found
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 281


get_local_time_info() failed errno=2.......
crontab: cannot change dir to /var/spool/cron/crontabs: No such file or directory
get_local_time_info() failed errno=2.......
crontab: cannot change dir to /var/spool/cron/crontabs: No such file or directory
get_local_time_info() failed errno=2.......
crontab: cannot change dir to /var/spool/cron/crontabs: No such file or directory
Initializing random number generator... done.
Install /mnt/HDA_ROOT/update_pkg/*.qpkg ...
Starting thttpd services: thttpd.
Starting Qthttpd services:Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 281


 Qthttpd.
samba locks directory is not exist, create it
locks path was set to /share/HDA_DATA/.locks
Starting SMB services: smbd nmbdStarting Winbind services:Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 281


.
Starting FTP services: Start rcv_port: active port 0 :139
active port 1 :445
active port 2 :20
set 139 445 20.
proftpd.
Starting NFS services:  disabled.
/share/Qdownload not ready for btd.
Starting ImRd services: Qmultimedia directory is not ready.
get_local_time_info() failed errno=2.......
crontab: cannot change dir to /var/spool/cron/crontabs: No such file or directory
Stopping periodic command scheduler: crond.
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 281


Starting periodic command scheduler: crond[1873]: crond 2.3.2 dillon, started, log level 9

crond.
use PIC1 as default image
Starting ntpdate daemon: 
Starting stunnel services:  stunnel.
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 281


chown: /usr/local/mysql/var: No such file or directory

Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 281


Starting UPS monitoring:Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)

No matching HID UPS found
Driver failed to start (exit status=1)
Network UPS Tools upsd 2.2.2
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 282



Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)

No matching HID UPS found
Driver failed to start (exit status=1)
disabled
disabled
Starting sshd services: Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 282


sshd.
Starting telnet services: disabled.
bonjour service seems already be running
Starting TwonkyMedia: disabled.
Starting iTune Services: disabled.

init_nas.sh: Restart bcclient.
get_hdd_model_size(TS_201) - WDC     WD5000AAKS-19V0A05.0 [465.76 GB].
get_hdd_model_size(TS_201) - Hitachi HDT725050VLA360 V56O [465.76 GB].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - WDC     WD5000AAKS-19V0A05.0 [465.76 GB].
get_hdd_model_size(TS_201) - Hitachi HDT725050VLA360 V56O [465.76 GB].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
receiver get packets from yyy.yyy.yyy.yyy.
Valid packet receive (16 bytes) - command 5.
Doing command[5]. get_hdd_model_size(TS_201) - WDC     WD5000AAKS-19V0A05.0 [465.76 GB].
get_hdd_model_size(TS_201) - Hitachi HDT725050VLA360 V56O [465.76 GB].
get_hdd_model_size(TS_201) - -- [--].
get_hdd_model_size(TS_201) - -- [--].
Invalid packet received (16 bytes).
Return Code: 0.
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 282


upsutil is already running. 
Starting rsync services: rsync.
.
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 282


/share/HDA_DATA/Public
/share/HDA_DATA/Qusb
/share/HDA_DATA/Qweb
/share/HDA_DATA/Qmultimedia
/share/HDA_DATA/Qdownload
Warning: Default network shares(Public, Qusb, Qweb, Qmultimedia, Qdownload) do not exist. It''s suggested to format your SATA disk.
init_nas.sh: check_last_degrade_error storage_boot_init 5
storage_boot_init 5 ...
storage_boot_init.c: Drive 1 does not have any bad block.
storage_boot_init.c: Drive 2 does not have any bad block.
init_nas.sh: set LED with storage_boot_init 4
storage_boot_init 4 ...
storage_boot_init.c: Set Status LED...
[/etc/config/runone/*] do nothing
Starting ddns update: /var/ddns_tmp.conf is not exist
rule type=2, num=0
Init Semaphore for NAS Success
/etc/config/localtime is not exist
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 282


disabled.
The system had been started 73 time(s).
Shutting down Winbind services: done.
Starting Winbind services:Thread join fail: No such file or directory
Starting AppleTalk Services: disabled.
Check /dev/md0
last active hd count = 2
active hd count = 2
percent = 282


_OK!
network.sh: write_hosts
xxx.xxx.xxx.xxx


Welcome to QNAP Systems Inc,. Marvell(xxx.xxx.xxx.xxx) development environment.

hostname login: admin
Password: 
login[2236]: root login  on `ttyS0'

[~] # pwd
/root
[~] # ls
index_default.html
[~] # ls -l /
lrwxrwxrwx    1 admin    administ       18 Sep 30 21:18 Qmultimedia -> /share/Qmultimedia@
drwxr-xr-x    2 admin    administ     1024 Sep 30 20:16 bin/
drwxr-xr-x    4 admin    administ     4096 Oct 11  2007 dev/
drwxr-xr-x   18 admin    administ     2048 Sep 30 21:18 etc/
lrwxrwxrwx    1 admin    administ       13 Sep 30 20:16 home -> /mnt/ext/home/
drwxr-xr-x    3 admin    administ     2048 Sep 30 20:16 lib/
lrwxrwxrwx    1 admin    administ       11 Sep 17  2011 linuxrc -> bin/busybox*
drwx------    2 admin    administ    12288 Sep 17  2011 lost+found/
drwxr-xr-x    5 admin    administ     1024 Sep 30 20:16 mnt/
drwxr-sr-x    2 admin    administ     1024 Feb 26  2008 opt/
lrwxrwxrwx    1 admin    administ       19 Sep 17  2011 php.ini -> /etc/config/php.ini
drwxr-xr-x   10 admin    administ     1024 Sep 30 21:17 play/
dr-xr-xr-x   96 admin    administ        0 Jan  1  1970 proc/
drwxr-xr-x    2 admin    administ     1024 Sep 30 21:18 root/
drwxr-xr-x    2 admin    administ     1024 Sep 30 20:16 rootfs2_tmp/
drwxr-xr-x    2 admin    administ     3072 Sep 30 20:16 sbin/
drwxrwxr-x   30 admin    administ     1024 Sep 30 21:18 share/
-rw-r--r--    1 admin    administ        5 Sep 30 21:18 stunnel.pid
drwxr-xr-x   10 admin    administ        0 Jan  1  1970 sys/
drwxrwxrwx    6 admin    administ      520 Sep 30 21:18 tmp/
lrwxrwxrwx    1 admin    administ       12 Sep 30 20:16 usr -> /mnt/ext/usr/
drwxrwxrwx    8 admin    administ     1024 Sep 30 21:18 var/
[~] # netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:3493            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:873             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:63262     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:59198     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:57339     ESTABLISHED 
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:64500     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:57613     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:59557     TIME_WAIT   
udp        0      0 0.0.0.0:1024            0.0.0.0:*                           
udp        0      0 127.0.0.1:1025          127.0.0.1:514           ESTABLISHED 
udp        0      0 127.0.0.1:1026          127.0.0.1:514           ESTABLISHED 
udp        0      0 zzz.zzz.zzz.255:137       0.0.0.0:*                           
udp        0      0 xxx.xxx.xxx.xxx:137        0.0.0.0:*                           
udp        0      0 0.0.0.0:137             0.0.0.0:*                           
udp        0      0 zzz.zzz.zzz.255:138       0.0.0.0:*                           
udp        0      0 xxx.xxx.xxx.xxx:138        0.0.0.0:*                           
udp        0      0 0.0.0.0:138             0.0.0.0:*                           
udp        0      0 255.255.255.255:8097    0.0.0.0:*                           
udp     2600      0 255.255.255.255:8097    0.0.0.0:*                           
udp        0      0 0.0.0.0:68              0.0.0.0:*                           
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
[~] # netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:3493            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:873             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:13131           0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:64958     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:53117     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:56956     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:61851     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:55289     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:61241     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:57398     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:61013     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:51601     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:58833     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:60688     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:51086     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:54350     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:55244     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:55628     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:49483     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:61510     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:51173     TIME_WAIT   
tcp        0      0 xxx.xxx.xxx.xxx:8080       yyy.yyy.yyy.yyy:64866     TIME_WAIT   
udp        0      0 127.0.0.1:1025          127.0.0.1:514           ESTABLISHED 
udp        0      0 127.0.0.1:1026          127.0.0.1:514           ESTABLISHED 
udp        0      0 0.0.0.0:1027            0.0.0.0:*                           
udp        0      0 zzz.zzz.zzz.255:137       0.0.0.0:*                           
udp        0      0 xxx.xxx.xxx.xxx:137        0.0.0.0:*                           
udp        0      0 0.0.0.0:137             0.0.0.0:*                           
udp        0      0 zzz.zzz.zzz.255:138       0.0.0.0:*                           
udp        0      0 xxx.xxx.xxx.xxx:138        0.0.0.0:*                           
udp        0      0 0.0.0.0:138             0.0.0.0:*                           
udp        0      0 255.255.255.255:8097    0.0.0.0:*                           
udp     2600      0 255.255.255.255:8097    0.0.0.0:*                           
udp        0      0 0.0.0.0:68              0.0.0.0:*                           
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
[~] # login[2790]: root login  on `pts/1'


[~] # exit
logout


Welcome to QNAP Systems Inc,. Marvell(xxx.xxx.xxx.xxx) development environment.

hostname login: 

```

</details>

無事NASとして復旧完了。

## 結果
旧型とは言え4ベイNASが5000円と、＋＠1000円くらいのツール追加、手間暇で動いたとなれば良い感じかなと。
個人的に、シリアルコンソールでのbusybox確認だけでも楽しめた。

以上