LS-XHL, LS-QL 対応ハックキットの確認(3)HS-DHGL

Debian HS-DHGL

LS-XHL, LS-QL に対応したハックキットを作り直したので、 今度こそ全機種で確認していく。

続いて HS-DHGL

準備(それ以外 の場合)

標準ファームに root でログインできるようにします

済み

標準ファームで起動

ハックキットのファイルを置きます

ログイン


BUFFALO INC. LinkStation series HS-DHGL(JINMU)
HS-DHGLEA2 login: root
root@HS-DHGLEA2:~#

時計を合わせる

root@HS-DHGLEA2:~# date
Thu Feb  5 05:18:09 JST 2009
root@HS-DHGLEA2:~# date 02272135
Fri Feb 27 21:35:00 JST 2009
root@HS-DHGLEA2:~#
長い間電源を入れていなかったので?、時計が狂っていた。

インストールする HDD の準備

(1) ハックキットをインストールする HDD を USB で接続します。

root@HS-DHGLEA2:~# tail -f /var/log/messages
Feb 27 21:36:49 HS-DHGLEA2 kernel: usb 2-1: new high speed USB device using ehci_platform and address 2
Feb 27 21:36:49 HS-DHGLEA2 kernel: usb 2-1: configuration #1 chosen from 1 choice
Feb 27 21:36:49 HS-DHGLEA2 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Feb 27 21:36:54 HS-DHGLEA2 kernel:   Vendor: SAMSUNG   Model: JDPPB08546        Rev: 0-05
Feb 27 21:36:54 HS-DHGLEA2 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Feb 27 21:36:54 HS-DHGLEA2 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Feb 27 21:36:54 HS-DHGLEA2 kernel: sdb: Write Protect is off
Feb 27 21:36:54 HS-DHGLEA2 kernel: sdb: assuming drive cache: write through
Feb 27 21:36:54 HS-DHGLEA2 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Feb 27 21:36:54 HS-DHGLEA2 kernel: sdb: Write Protect is off
Feb 27 21:36:54 HS-DHGLEA2 kernel: sdb: assuming drive cache: write through
Feb 27 21:36:54 HS-DHGLEA2 kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Feb 27 21:36:54 HS-DHGLEA2 kernel: sd 2:0:0:0: Attached scsi disk sdb
Feb 27 21:36:54 HS-DHGLEA2 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
Feb 27 21:36:56 HS-DHGLEA2 kernel: kjournald starting.  Commit interval 5 seconds
Feb 27 21:36:56 HS-DHGLEA2 kernel: EXT3 FS on sdb1, internal journal
Feb 27 21:36:56 HS-DHGLEA2 kernel: EXT3-fs: mounted filesystem with ordered data mode.

(2) /mnt/usbdisk1 に自動的にマウントされた場合はアンマウントします。

root@HS-DHGLEA2:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2               493212    280576    212636  57% /
/dev/ram1                15360       120     15240   1% /mnt/ram
/dev/ls_disk1_1         287785     14890    258037   5% /boot
/dev/ls_disk1_6      243057136     67148 242989988   0% /mnt/disk1
/dev/ls_usbdisk2_1      194443     10646    173758   6% /mnt/usbdisk2
root@HS-DHGLEA2:~# umount /mnt/usbdisk2/
root@HS-DHGLEA2:~#

(3) sdb にパーティションを切ります。

root@HS-DHGLEA2:~# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          25      200781   83  Linux
/dev/sdb2              26         524     4008217+  83  Linux
/dev/sdb3             525         556      257040   82  Linux swap
/dev/sdb4             557       30401   239729962+  83  Linux
root@HS-DHGLEA2:~#
既にハックキットがインストールしてある HDD なので、 パーティションは設定済

インストール

カスタマイズ

初めてなので、hackkit_config を作る。
root@HS-DHGLEA2:~# cd /mnt/disk1/share/hackkit/
root@HS-DHGLEA2:/mnt/disk1/share/hackkit# cp hackkit_config.sample hackkit_config
root@HS-DHGLEA2:/mnt/disk1/share/hackkit# vi hackkit_config
	:
	:
root@HS-DHGLEA2:/mnt/disk1/share/hackkit# cat !$
cat hackkit_config
ADDRESS=192.168.2.46
HOSTNAME=slam
root@HS-DHGLEA2:/mnt/disk1/share/hackkit#

インストーラの実行

root@HS-DHGLEA2:/mnt/disk1/share/hackkit# sh hackkit_090227.sh
PRODUCTID = 0x0000000A
formating hard drive ...
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
50200 inodes, 200781 blocks
10039 blocks (5.00%) reserved for the super user
First data block=1
25 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
meta-data=/dev/sdb2              isize=256    agcount=8, agsize=125257 blks
         =                       sectsz=512
data     =                       bsize=4096   blocks=1002054, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
Setting up swapspace version 1, size = 263204864 bytes
meta-data=/dev/sdb4              isize=256    agcount=58, agsize=1048576 blks
         =                       sectsz=512
data     =                       bsize=4096   blocks=59932490, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=29263, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
mounting root file system ...
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
./var/lib/apt/lists/ftp.jp.debian.org_debian_dists_lenny_Release
	:
	:
./opt/
./media/
./initrd/
copying miconapl ...
usr/local/sbin/miconapl
usr/local/lib/libbuffalo_bin.so
creating miconapl ...
creating fancontrol ...
creating kernelmon ...
copying /lib/modules ...
lib/modules/
lib/modules/averusb.ko
lib/modules/videodev.ko
	:
	:
lib/modules/2.6.16.16-arm1/modules.symbols
lib/modules/v4l1-compat.ko
creating usb ...
checking /dev/sdb1
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: 11/50200 files (0.0% non-contiguous), 10465/200781 blocks
mounting /boot ...
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
76973+1 records in
76973+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Fri Feb 27 21:48:31 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    4907983 Bytes = 4792.95 kB = 4.68 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
umount: /mnt/debinst/boot: device is busy
umount: /mnt/debinst/boot: device is busy
root@HS-DHGLEA2:/mnt/disk1/share/hackkit#
相変わらず umount できていないが、とりあえず終わった。

電源 OFF

ハックキットで起動

HDD の交換

起動

	:
	:
---- in hackkit linuxrc ---
XFS mounting filesystem sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 108K
INIT: version 2.86 booting
Setting the system clock.
Activating swap...Adding 257032k swap on /dev/sda3.  Priority:-1 extents:1 across:257032k
done.
Setting the system clock.
Cleaning up ifupdown....
Loading kernel modules...done.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
/dev/sda1: recovering journal
/dev/sda1: Clearing orphaned inode 6025 (uid=0, gid=0, mode=0100644, size=14680064)
/dev/sda1: Backing up journal inode block information.

/dev/sda1: clean, 13/50200 files, 17079/200781 blocks
/sbin/fsck.xfs: XFS file system.
done.
Setting kernel variables (/etc/sysctl.conf)...Unknown HZ value! (118) Assume 100.
done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda4
done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...eth0: link down
done.
eth0: link up<5>, full duplex<5>, speed 100 Mbps<5>
err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244)
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Starting internet superserver: inetd.
Starting periodic command scheduler: crond.

Debian GNU/Linux 5.0 slam ttyS0

slam login:
起動してきた。

最初の設定

ログイン

Debian GNU/Linux 5.0 slam ttyS0

slam login: guest
Password:
Linux slam 2.6.16.16-arm1 #69 Wed Oct 1 10:59:37 JST 2008 armv5tejl

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.
No directory, logging in with HOME=/
guest@slam:/$

root になる

guest@slam:/$ su - root
Password:
slam:~#

時計を合わせる

slam:~# date
Fri Feb 27 21:53:31 JST 2009
slam:~#
あっている。

最初の設定の残りの設定と、
時刻同期
Windows 向けファイルサーバまでスクリプトを使う。

(略)

動作確認

LED の確認

特に問題なし。

USB メモリの認識

slam:/tmp# tail -f /var/log/messages
	:
	:
usb 2-1: new full speed USB device using ehci_platform and address 2
usb 2-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
Feb 27 22:01:00 slam kernel: usb 2-1: new full speed USB device using ehci_platform and address 2
Feb 27 22:01:00 slam kernel: usb 2-1: configuration #1 chosen from 1 choice
Feb 27 22:01:00 slam kernel: scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: eUSB      Model: Memory Stick      Rev: 5.06
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sdb: 126912 512-byte hdwr sectors (65 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
SCSI device sdb: 126912 512-byte hdwr sectors (65 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
 sdb:Feb 27 22:01:06 slam kernel:  Vendor: eUSB      Model: Memory Stick      Rev: 5.06
Feb 27 22:01:06 slam kernel:  Type:   Direct-Access                      ANSI SCSI revision: 02
Feb 27 22:01:06 slam kernel: SCSI device sdb: 126912 512-byte hdwr sectors (65 MB)
Feb 27 22:01:06 slam kernel: sdb: Write Protect is off
Feb 27 22:01:06 slam kernel: SCSI device sdb: 126912 512-byte hdwr sectors (65 MB)
Feb 27 22:01:06 slam kernel: sdb: Write Protect is off
 sdb1
sd 2:0:0:0: Attached scsi removable disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
Feb 27 22:01:07 slam kernel: sdb: sdb1
Feb 27 22:01:07 slam kernel: sd 2:0:0:0: Attached scsi removable disk sdb
Feb 27 22:01:07 slam kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
マウントしてみる。
slam:/tmp# mkdir /tmp/usb
slam:/tmp# mount /dev/sdb1 /tmp/usb/
slam:/tmp# ls /tmp/usb
dcim  memstick.ind
slam:/tmp# umount /tmp/usb
slam:/tmp#
問題なさそう。

プリンタの認識(LS-GL 以外)

slam:/tmp# !tail
tail -f /var/log/messages
	:
	:
usb 2-1: new full speed USB device using ehci_platform and address 3
usb 2-1: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
Feb 27 22:03:17 slam kernel: usb 2-1: new full speed USB device using ehci_platform and address 3
Feb 27 22:03:17 slam kernel: usb 2-1: configuration #1 chosen from 1 choice
Feb 27 22:03:17 slam kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
OK.

リブートの確認

問題なし。

シャットダウンの確認

OK

HS-DHGL 確認完了!次!




HS-DHGL
バッファローダイレクト
楽天市場
Yahoo!ショッピング
somap.com
ValuMore!
ムラウチドットコム


LS-XHL, LS-QL 対応ハックキットの確認(2)LS-GL
ハックの記録
LinkStation/玄箱 をハックしよう

LS-XHL, LS-QL 対応ハックキットの確認(4)LS-HGL

Copyright (C) 2003-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市