ファームウェア 1.21 でハックキット

Debian LS-CHL

先日修正したインストーラをつかって、 1.21 にもハックキットをインストールしてみる。

以下、 第三世代 LinkStation ハックキットの LS-XHL の手順を実行していく

準備(LS-XHL の場合)

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

標準ファームで起動

ハックキットのファイルを置く

前回置いた物が置いたまま

ログイン


BUFFALO INC. LinkStation series
sh-3.2#

時計を合わせる

sh-3.2# date
Fri Oct  2 23:44:12 JST 2009
sh-3.2#
あってる。

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

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

sh-3.2# tail -f /var/log/messages
	:
	:
Oct  2 23:45:28 LS-CHL9EB kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Oct  2 23:45:28 LS-CHL9EB kernel: usb 1-1: configuration #1 chosen from 1 choice
Oct  2 23:45:29 LS-CHL9EB kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Oct  2 23:45:34 LS-CHL9EB kernel: scsi 2:0:0:0: Direct-Access     ViPowER  VP-89118(SD1)    2.10 PQ: 0 ANSI: 4
Oct  2 23:45:34 LS-CHL9EB kernel: sd 2:0:0:0: [sdb] 398297088 512-byte hardware sectors (203928 MB)
Oct  2 23:45:34 LS-CHL9EB kernel: sd 2:0:0:0: [sdb] Write Protect is off
Oct  2 23:45:34 LS-CHL9EB kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
Oct  2 23:45:34 LS-CHL9EB kernel: sd 2:0:0:0: [sdb] 398297088 512-byte hardware sectors (203928 MB)
Oct  2 23:45:34 LS-CHL9EB kernel: sd 2:0:0:0: [sdb] Write Protect is off
Oct  2 23:45:34 LS-CHL9EB kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
Oct  2 23:45:34 LS-CHL9EB kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Oct  2 23:45:34 LS-CHL9EB kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
Oct  2 23:45:34 LS-CHL9EB kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
Oct  2 23:45:35 LS-CHL9EB kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Oct  2 23:45:36 LS-CHL9EB kernel: kjournald starting.  Commit interval 5 seconds
Oct  2 23:45:36 LS-CHL9EB kernel: EXT3-fs warning: checktime reached, running e2fsck is recommended
Oct  2 23:45:36 LS-CHL9EB kernel: EXT3 FS on sdb1, internal journal
Oct  2 23:45:36 LS-CHL9EB kernel: EXT3-fs: mounted filesystem with ordered data mode.

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

sh-3.2# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2              4989760    347136   4642624   7% /
/dev/ram1                15360       112     15248   1% /mnt/ram
/dev/sda1               992036    160216    831820  16% /boot
/dev/disk1_6         473337664     66364 473271300   0% /mnt/disk1
/dev/usbdisk1_1         992036     28388    913652   3% /mnt/usbdisk1
sh-3.2# umount /mnt/usbdisk1/
sh-3.2#

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

sh-3.2# parted -s /dev/sdb print
Model: ViPowER VP-89118(SD1) (scsi)
Disk /dev/sdb: 204GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  1024MB  1024MB  ext3         primary
 2      1024MB  6144MB  5120MB  xfs          primary
 3      6144MB  7168MB  1024MB  linux-swap   primary
 4      7168MB  204GB   197GB   xfs          primary

sh-3.2#
先日作ったパーティションをそのまま使う

インストール

カスタマイズ

先日作った hackkit_config を使う
sh-3.2# cat hackkit_config
ADDRESS=192.168.2.52
HOSTNAME=chl
sh-3.2#

インストーラの実行

sh-3.2# sh hackkit_090917.sh
PRODUCTID = 0x00000012
formating hard drive ...
mke2fs 1.40.5 (27-Jan-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
62720 inodes, 249995 blocks
12499 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=260046848
8 block groups
32768 blocks per group, 32768 fragments per group
7840 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376

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

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
meta-data=/dev/sdb2              isize=256    agcount=8, agsize=156250 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=1250000, 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, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
Setting up swapspace version 1, size = 1023995904 bytes
meta-data=/dev/sdb4              isize=256    agcount=16, agsize=3002320 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=48037120, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=23455, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   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/
	:
	:
./sys/
./selinux/
./srv/
./opt/
./media/
./initrd/
creating miconapl ...
creating kernelmon ...
copying /lib/modules ...
lib/modules/
lib/modules/2.6.22.18/
lib/modules/2.6.22.18/modules.ieee1394map
	:
	:
lib/modules/2.6.22.18/modules.symbols
lib/modules/2.6.22.18/modules.seriomap
creating usb ...
checking /dev/sdb1
fsck 1.40.5 (27-Jan-2008)
e2fsck 1.40.5 (27-Jan-2008)
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/62720 files (9.1% non-contiguous), 6399/249995 blocks
mounting /boot ...
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
139728+1 records in
139728+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Fri Oct  2 23:53:10 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    8904811 Bytes = 8696.10 kB = 8.49 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
sh-3.2#

電源 OFF

ハックキットで起動

動作確認

LED の確認

POWER LED は点灯,。

ログイン

telnet する
Debian GNU/Linux 5.0
chl login: guest
Password:
Linux chl 2.6.22.18 #12 Fri Jul 24 19:48:59 JST 2009 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@chl:/$

root になる

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

USB メモリの認識

Oct  2 23:56:53 chl kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Oct  2 23:56:54 chl kernel: usb 1-1: configuration #1 chosen from 1 choice
Oct  2 23:56:54 chl kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Oct  2 23:56:59 chl kernel: scsi 2:0:0:0: Direct-Access     BUFFALO  ClipDrive        2.00 PQ: 0 ANSI: 2
Oct  2 23:57:00 chl kernel: ready
Oct  2 23:57:00 chl kernel: sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB)
Oct  2 23:57:00 chl kernel: sd 2:0:0:0: [sdb] Write Protect is off
Oct  2 23:57:00 chl kernel: sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB)
Oct  2 23:57:00 chl kernel: sd 2:0:0:0: [sdb] Write Protect is off
Oct  2 23:57:00 chl kernel: sdb: sdb1
Oct  2 23:57:00 chl kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Oct  2 23:57:00 chl kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

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

Oct  2 23:58:51 chl kernel: usb 1-1: new full speed USB device using ehci_marvell and address 3
Oct  2 23:58:51 chl kernel: usb 1-1: configuration #1 chosen from 1 choice
Oct  2 23:58:51 chl kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005

リブートの確認

シャットダウンの確認

OK



LS-CHL
バッファローダイレクト
楽天市場
Amazon


散歩
ハックの記録
LinkStation/玄箱 をハックしよう

NFS サーバ

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