Synology NAS

Synology社が販売しているNAS。構成によりDisk Station, Cube Station, Rack Stationの3種類のシリーズがある。日本ではSynologyブランドでは販売されていないが、一部モデルがロジテックから販売されている。

情報

  • Synology社
    旧モデルのファームウェアの更新もなされており、某メーカとは大違い。ただ、ソースコードの入手に$20が要求され、サーバからダウンロードできないのは感心しない。
  • free download of Synology GPL sources

ハードウェア分類

情報源:oinkzwurgl.org: Hacking the DiskStation

PowerPC (ppc) based DiskStations?

ModelDS-101g+DS-106eDS-106DS-106jDS-106xDS-107DS-107eDS-207DS-207.128
CPU familyMotorola FreeScale? (ppc)
CPU modelMPC8241MPC8241MPC8241MPC8241MPC8241MPC8241MPC8241MPC8241MPC8241
CPU speed266 MHz266 MHz266 MHz200 MHz266 MHz266 MHz266 MHz266 MHz266 MHz
RAM64 MB32 MB64 MB32 MB128 MB64 MB32 MB64 MB128 MB
internal HDD1 x SATA1 x SATA1 x SATA1 x IDE1 x SATA1 x SATA1 x SATA1 x SATA1 x SATA
USB2+1+?2+1+?2+1+?2+1+?2+1+?2+1+?2+1+?2+1+?2+1+?
eSATA1x1x (?)1xno1x1x1xnono
Logitec modelnonenonenoneLHD-LANxxxG*1nonenonenonenonenone

PowerPC (ppc) based Cube- and RackStations?

ModelCS-406RS-406CS-406eCS-407e
CPU familyMotorola FreeScale? (ppc)
CPU modelMPC8245MPC8245MPC8241MPC8241
CPU speed400 MHz400 MHz266 MHz266 MHz
RAM128 MB128 MB64 MB64 MB
internal HDD4 x SATA4 x SATA4 x SATA4 x SATA
USB2+0+?2+0+?2+0+?2+0+?
eSATAno1xnono
Logitec modelnonenoneTERAGATEnone

ARM (armv5tejl) based Disk-, Cube- and Rackstations

ModelCS-407RS-407DS-107+DS-107+.128
CPU familyMarvell (arm5tejl)
CPU model88F528188F528188F528188F5281
CPU speed500 MHz500 MHz500 MHz500 MHz
RAM128 MB128 MB64 MB128 MB
internal HDD4 x SATA4 x SATA1 x SATA1 x SATA
USB2+0+?2+0+?2+1+?2+1+?
eSATAnono1x1x
Logitec modelnonenonenpnenone

ARM (armv5b) based DiskStations? (NOT supported by SSODS)

ModelDS-101DS-101j
CPU familyIntel XScale (armv5b)
CPU modelFW IXP420 BBFW IXP420 BB
CPU speed266 MHz266 MHz
RAM64 MB32 MB
internal HDD1 x IDE1 x IDE
USB2+1+?2+1+?
eSATAnono
Logitec modelLHD-LANxxxLHD-LANxxxE

Disk Station

HDDを1台内蔵するタイプ。CPUがARMベースのモデルとPowerPCベースの2種類存在する。

MatsuYuki氏によるロジテックNAS diskのSyno化(人柱版)

LHA-LAN300,LHA-LAN250,LHA-LAN160 → DS-101

  • 作業前にバックアップをとる
  • ロジテックのサイトから最新版のファームウェアをダウンロードし、アップデートし、動作確認を行っておく。
  • この状態で初期化し、LHD-LANのIPを固定にする。
  • http://NASのIPアドレス:5000にアクセスし、管理画面が呼び出せることを確認。
  • ここにあるlogi_to_syno_LHD_LANxxx_to_DS101_Ver366.rarで一気にSynology版Ver.366に更新する。
  • synology管理画面 →管理画面よりユーザー自身で完全初期化
    • これで整合性が取れない場合のみDSAssistantで初期化する。

LHA-LANxxxG,GE → DS-106j

  • 基本的には上の手順と同じ
  • 必要なファイルはここある。あったが、現在公開は終了している。(2007-12-16)

LHA-LANxxGV → DS-106j

  • 必要なファイルはここにあったが、現在公開は終了している。(2007-12-16)

telnetdを動かす

ここからsyno-telnet-r4.zipをダウンロードして解凍する。できたenable-telnet.patファイルをwebの管理者画面からアップロードして実行すればよい。NASを再起動することなく、telnetでログインできるようになる。adminユーザやそのほか作成したユーザアカウントでログインできる。rootのパスワードはadminユーザのパスワードと自動的に同期される(デフォルトはsynopass)のでrootでもログイン可能であるが、一般ユーザでログインした後、sudoでroot権限を取得するのが望ましい。2006年8月バージョンよりワンタイムパスワードのsyno passwordは入力しなくてもよくなった。

Firmware 0518

パッチを当てることでSSHやNFSサーバ機能が使えるようになるなど、画期的なバージョン。Synology社の公式Communication Forumにも専用ページができるなど、活発な動きあり。

SSHでのログインは、ユーザがroot、パスワードはユーザadminに設定したパスワードでログインする。admin用のパスワードを設定していないと、ログインできないので注意。

uname -a の結果

LogitecNAS> uname -a
Linux LogitecNAS 2.4.22-uc0 #518 Thu Nov 1 22:36:24 CST 2007 ppc unknown

dmesg の結果

LogitecNAS> dmesg
Memory BAT mapping: BAT2=32Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.22-uc0 (root@image) (gcc version 3.3.4) #518 Thu Nov 1 22:36:24 CST 2007
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,115200 root=/dev/hda1 rw ip=off initrd=0x00800000,4M hda=bswap
ide_setup: hda=bswap
OpenPIC Version 1.2 (1 CPUs and 138 IRQ sources) at fc040000
Decrementer frequency = 132.658098 MHz
Warning: real time clock seems stuck!
Calibrating delay loop... 176.53 BogoMIPS
Memory: 29488k available (1288k kernel code, 872k data, 68k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
sandpoint_pci.c(sandpoint_map_irq)(71) idsel = 0, pin = 1, irq = 0
sandpoint_pci.c(sandpoint_map_irq)(71) idsel = 13, pin = 1, irq = 16
sandpoint_pci.c(sandpoint_map_irq)(71) idsel = 14, pin = 1, irq = 17
sandpoint_pci.c(sandpoint_map_irq)(71) idsel = 14, pin = 2, irq = 17
sandpoint_pci.c(sandpoint_map_irq)(71) idsel = 14, pin = 3, irq = 17
sandpoint_pci.c(sandpoint_map_irq)(71) idsel = 15, pin = 1, irq = 18
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
kinoded started
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xfc004500 (irq = 137) is a ST16650
ttyS01 at 0xfc004600 (irq = 138) is a ST16650
Generic RTC Driver v1.07
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
physmap.c:421(init_physmap): Unknown flash type, using ppcboot settings.
physmap flash device: 200000 at ffe00000
 Amd/Fujitsu Extended Query Table v1.3 at 0x0040
cfi_cmdset_0002.c:95(cfi_cmdset_0002) flash_id=[49], id1=[0],  id2=[3]
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
master->size = 200000, erasesize = 10000
No RedBoot? partition table detected in Physically mapped flash
physmap: no partition info available, registering whole flash at once
Creating 6 MTD partitions on "Physically mapped flash":
0x00100000-0x00140000 : "ppcboot"
0x00000000-0x000d0000 : "zImage"
0x00140000-0x001f0000 : "rd.gz"
0x000d0000-0x000e0000 : "vendor"
Mac0 00:11:32:01:5b:6b
vender Mac1 checksum error ucSum:0x00 Buf:0x00 Sum:0.
Vender partition MacNum?:1 retlen:64
No Serial Number or Serial Number checksum error ucSum:0xf6 Buf:0xff Sum:2550.
0x000e0000-0x000f0000 : "RedBoot? Config"
0x001f0000-0x00200000 : "FIS directory"
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
IT8212: unknown IDE controller at PCI slot 00:0d.0, VID=1283, DID=8211
IT8212: chipset revision 17
IT8212: not 100% native mode: will probe irqs later
it8212: forcing bypass mode.
it821x: controller in pass through mode.
    ide0: BM-DMA at 0xbfffd0-0xbfffd7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xbfffd8-0xbfffdf, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: SAMSUNG SP2514N, ATA DISK drive
blk: queue c0226e70, I/O limit 4095Mb (mask 0xffffffff)
Probing IDE interface ide1...
ide0 at 0xbffff8-0xbfffff,0xbffff6 on irq 16
ide1 at 0xbfffe8-0xbfffef,0xbfffe6 on irq 16
ide2: DISABLED, NO IRQ
ide3: DISABLED, NO IRQ
ide4: DISABLED, NO IRQ
ide5: DISABLED, NO IRQ
ide6: DISABLED, NO IRQ
ide7: DISABLED, NO IRQ
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63, UDMA(133)
Partition check:
 hda: hda1 hda2 hda3
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 660k freed
VFS: Mounted root (ext2 filesystem).
i2c-ppc.c(mpc_i2c_init)(233) i2c_base = fc003000
synobios: load, major number 201
synobios: unload
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Trying to move old root to /initrd ... okay
Freeing unused kernel memory: 68k init
Adding Swap: 393584k swap-space (priority -1)
NET4: AppleTalk? 0.18a for Linux NET4.0
Network Kernel/User communications module 0.04
NTFS driver 2.1.6b [Flags: R/O DEBUG MODULE].
SCSI subsystem driver Revision: 1.00
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
usb.c: registered new driver snd-usb-audio
sk98lin: Network Device Driver v8.41.2.3
(C)Copyright 1999-2006 Marvell(R).
eth0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
      PrefPort?:A  RlmtMode?:Check Link State
i2c-ppc.c(mpc_i2c_init)(233) i2c_base = fc003000
synobios: load, major number 201
eth0: network connection up using port A
    speed:           100
    autonegotiation: yes
    duplex mode:     full
    flowctrl:        symmetric
    irq moderation:  disabled
    scatter-gather:  enabled
    tx-checksum:     enabled
    rx-checksum:     enabled
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
EXT3-fs: mounted filesystem with writeback data mode.
ehci_hcd 00:0e.2: NEC Corporation USB 2.0
ehci_hcd 00:0e.2: irq 17, pci mem c318cf00
usb.c: new USB bus registered, assigned bus number 1
PCI: 00:0e.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW.
PCI: 00:0e.2 PCI cache line size corrected to 32.
ehci_hcd 00:0e.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-19/2.4
hub.c: USB hub found
hub.c: 5 ports detected
USB_DEVICE: This is hub. No need to call_policy_interface.
usb-ohci.c: USB OHCI at membase 0xc3194000, IRQ 17
usb-ohci.c: usb-00:0e.0, NEC Corporation USB
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
USB_DEVICE: This is hub. No need to call_policy_interface.
usb-ohci.c: USB OHCI at membase 0xc3196000, IRQ 17
usb-ohci.c: usb-00:0e.1, NEC Corporation USB (#2)
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
USB_DEVICE: This is hub. No need to call_policy_interface.
usb-uhci.c: $Revision: 1.6 $ time 22:38:32 Nov  1 2007
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb.c: registered new driver usblp
printer.c: v0.11: USB Printer Device Class driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
LogitecNAS>

df -k の結果

LogitecNAS> df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1               132206    101969     23411  81% /
/tmp                     15108        28     15080   0% /tmp
/dev/hda3            239840764     90100 237314008   0% /volume1

U-Boot

kernel

www.kernel.orgのミラーサイトから2.6.20のカーネルソース、ここから2.6.20へのパッチファイルを作業用ディレクトリにダウンロードしておく。

$ cd workdir
$ tar jxvf linux-2.6.20.tar.bz2
$ cd linux-2.6.20
$ zcat ../linux-2.6.20-ds106x-20060220.patch.gz | patch -p 1

あとは普通にコンパイルすればよい。

Debian


*1 LHD-LANxxxG,GV,GE:ただし、CPU clock 266MHz, RAM 64MB

添付ファイル: filePICT0062.JPG 255件 [詳細] filePICT0061.JPG 251件 [詳細] filePICT0060.JPG 233件 [詳細] filePICT0054.JPG 236件 [詳細] filePICT0053.JPG 242件 [詳細] filePICT0052.JPG 238件 [詳細] filePICT0050.JPG 258件 [詳細] filePICT0049.JPG 257件 [詳細] filePICT0048.JPG 360件 [詳細]

トップ   編集 凍結解除 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2009-07-04 (土) 23:37:34 (432d)