ファームウェア 1.11 にハックキット

Debian LS-CL

標準ファーム 1.11 でハックキットを確認していく。

準備(それ以外 の場合)

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

済み

標準ファームで起動

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

root@LS-CL701:~# ls -l /mnt/disk1/share/hackkit
-rw-rw-r--    1 1001     1001     67237983 Feb 26  2009 hackkit_090226.tar.gz
-rw-rw-r--    1 1001     1001        16323 Feb 27  2009 hackkit_090227.sh
-rw-r--r--    1 root     1001           35 Feb 27  2009 hackkit_config
-rw-rw-r--    1 1001     1001           35 Feb 18  2009 hackkit_config.sample
-rwxr-xr-x    1 root     root        15920 Oct 26  2008 mkimage
-rw-r--r--    1 1001     1001         1109 Feb 25  2009 ramroot_090225.sh
-rw-r--r--    1 root     1001          201 Feb 25  2009 rsync_090225.sh
-rw-rw-r--    1 1001     1001          846 Feb  3  2009 setup_090203.sh
root@LS-CL701:~#

ログイン

済み

時計を合わせる

root@LS-CL701:~# date 091022002009
Thu Sep 10 22:00:00 JST 2009
root@LS-CL701:~#

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

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

WD3200 を USB で接続する。
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
/sbin/hotplug [usb_endpoint]
/sbin/hotplug [usb]
scsi2 : SCSI emulation for USB Mass Storage devices
/sbin/hotplug [scsi_host]
/sbin/hotplug [usb_endpoint]
/sbin/hotplug [usb_endpoint]
/sbin/hotplug [usb_device]
[/etc/hotplug.d/usb_device/buffalo.hotplug] usb_device
/sbin/hotplug [usb]
Sep 10 22:01:37 LS-CL701 kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Sep 10 22:01:37 LS-CL701 kernel: usb 1-1: configuration #1 chosen from 1 choice
Sep 10 22:01:37 LS-CL701 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
*** /usr/local/bin/DirectCopy_wait.sh [usb_device]
1 USB_DEVICE=none
2 USB_DEVICE=none
scsi 2:0:0:0: Direct-Access     ViPowER  VP-89118(SD1)    2.10 PQ: 0 ANSI: 4
sd 2:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1 sdb2 sdb3 sdb4
/sbin/hotplug [scsi]
/sbin/hotplug [scsi_disk]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
sd 2:0:0:0: [sdb] Attached SCSI disk
/sbin/hotplug [block]
/sbin/hotplug [block]
sd 2:0:0:0: Attached scsi generic sg1 type 0
/sbin/hotplug [scsi_generic]
/sbin/hotplug [scsi_device]
Sep 10 22:01:42 LS-CL701 kernel: scsi 2:0:0:0: Direct-Access     ViPowER  VP-89118(SD1)    2.10 PQ: 0 ANSI: 4
Sep 10 22:01:42 LS-CL701 kernel: sd 2:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
Sep 10 22:01:42 LS-CL701 kernel: sd 2:0:0:0: [sdb] Write Protect is off
Sep 10 22:01:42 LS-CL701 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
Sep 10 22:01:42 LS-CL701 kernel: sd 2:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
Sep 10 22:01:42 LS-CL701 kernel: sd 2:0:0:0: [sdb] Write Protect is off
Sep 10 22:01:42 LS-CL701 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
Sep 10 22:01:42 LS-CL701 kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Sep 10 22:01:42 LS-CL701 kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
Sep 10 22:01:42 LS-CL701 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
3 USB_DEVICE=none
*** /usr/local/bin/DirectCopy_wait.sh [stop]
BASENAME=usbdisk1
MPT=/mnt/usbdisk1/
try vfat(usbdisk)
/sbin/hotplug [module]
/sbin/hotplug [module]
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: checktime reached, running e2fsck is recommended
EXT3 FS on sdb1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
## STATE_CHANGED ##
*** [/etc/hotplug.d/scsi_device/usb-buffalo.hotplug 3141] Restarting Daemons...
Sep 10 22:01:47 LS-CL701 kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Sep 10 22:01:47 LS-CL701 kernel: kjournald starting.  Commit interval 5 seconds
Sep 10 22:01:47 LS-CL701 kernel: EXT3-fs warning: checktime reached, running e2fsck is recommended
Sep 10 22:01:47 LS-CL701 kernel: EXT3 FS on sdb1, internal journal
Sep 10 22:01:47 LS-CL701 kernel: EXT3-fs: mounted filesystem with ordered data mode.
*** /usr/local/bin/DirectCopy_wait.sh []
1 USB_DEVICE=/mnt/usbdisk1
direct copy mode : ready
/sbin/hotplug [module]
/sbin/hotplug [module]
/sbin/hotplug [module]
NET: Registered protocol family 5
Sep 10 22:01:53 LS-CL701 kernel: NET: Registered protocol family 5
Sep 10 22:01:57 LS-CL701 nmbd[1270]: [2009/09/10 22:01:57, 0] nmbd/nmbd.c:terminate(58)
Sep 10 22:01:57 LS-CL701 nmbd[1270]:   Got SIGTERM: going down...

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

root@LS-CL701:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2              4993984    382032   4611952   8% /
/dev/ram1                15360       116     15244   1% /mnt/ram
/dev/sda1               996052    179452    816600  18% /boot
/dev/disk1_6         480348928    325440 480023488   0% /mnt/disk1
/dev/usbdisk1_1         194442     14606    169797   8% /mnt/usbdisk1
root@LS-CL701:~# umount /mnt/usbdisk1/
root@LS-CL701:~#

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

root@LS-CL701:~# fdisk -l /dev/sdb

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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         275     2008125  83 Linux
/dev/sdb3             276         307      257040  82 Linux swap
/dev/sdb4             308       38913   310102695  83 Linux
root@LS-CL701:~#
既にハックキットがインストールしてある HDD なので、 パーティションは設定済

インストール

カスタマイズ

前回インストールしたとき、hackkit_config が作ってある。
root@LS-CL701:~# cd /mnt/disk1/share/hackkit/
root@LS-CL701:/mnt/disk1/share/hackkit# cat hackkit_config
ADDRESS=192.168.2.47
HOSTNAME=tate
root@LS-CL701:/mnt/disk1/share/hackkit#

インストーラの実行

root@LS-CL701:/mnt/disk1/share/hackkit# sh hackkit_090227.sh
PRODUCTID = 0x0000000F
formating hard drive ...
mke2fs 1.40.5 (27-Jan-2008)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
50200 inodes, 200780 blocks
10039 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
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 38 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
meta-data=/dev/sdb2              isize=256    agcount=8, agsize=62753 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=502024, 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 = 263204864 bytes
meta-data=/dev/sdb4              isize=256    agcount=16, agsize=4845354 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=77525664, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
mounting root file system ...
XFS mounting filesystem sdb2
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
	:
	:
./opt/
./media/
./initrd/
creating miconapl ...
creating kernelmon ...
copying /lib/modules ...
lib/modules/
lib/modules/2.6.22.7/
lib/modules/2.6.22.7/kernel/
lib/modules/2.6.22.7/kernel/drivers/
	:
	:
lib/modules/2.6.22.7/modules.pcimap
lib/modules/2.6.22.7/modules.isapnpmap
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/50200 files (9.1% non-contiguous), 12002/200780 blocks
mounting /boot ...
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sdb1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
110523+1 records in
110523+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Thu Sep 10 22:10:07 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    7037961 Bytes = 6873.01 kB = 6.71 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
root@LS-CL701:/mnt/disk1/share/hackkit#

電源 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: 120K
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: clean, 13/50200 files, 20985/200780 blocks
/sbin/fsck.xfs: XFS file system.
done.
Setting kernel variables (/etc/sysctl.conf)...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...eth reg(9) val=0x0300
eth0: link down
done.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
eth0: link up, full duplex, speed 1 Gbps
ehci_marvell ehci_marvell.4523: Marvell Orion EHCI
ehci_marvell ehci_marvell.4523: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.4523: irq 17, io base 0xf1050100
ehci_marvell ehci_marvell.4523: USB 2.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
ehci_marvell ehci_marvell.167817: Marvell Orion EHCI
ehci_marvell ehci_marvell.167817: new USB bus registered, assigned bus number 2
ehci_marvell ehci_marvell.167817: irq 12, io base 0xf10a0100
ehci_marvell ehci_marvell.167817: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface 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 tate ttyS0

tate login:
起動してきた。

最初の設定

ログイン

Debian GNU/Linux 5.0 tate ttyS0

tate login: guest
Password:
Linux tate 2.6.22.7 #1 Thu Jun 18 21:48:29 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@tate:/$

root になる

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

時計を合わせる

tate:~# date
Thu Sep 10 22:15:16 JST 2009
tate:~#
あってる

最初の設定の残りの設定と、
時刻同期
ftp サーバまでスクリプトを使う。

tate:~# sh -x setup_090717.sh
+ echo passwd root
passwd root
+ passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
+ addgroup --gid 1001 yamasita
Adding group `yamasita' (GID 1001) ...
Done.
+ echo adduser yasunari
adduser yasunari
+ adduser --home /home/yamasita/yasunari --ingroup yamasita --uid 1001 --gecos 'Yasunari Yamashita' yasunari
Adding user `yasunari' ...
Adding new user `yasunari' (1001) with group `yamasita' ...
Creating home directory `/home/yamasita/yasunari' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
+ deluser guest
Removing user `guest' ...
Warning: group `guest' has no more members.
userdel: user guest is currently logged in
/usr/sbin/deluser: `/usr/sbin/userdel guest' returned error code 8. Exiting.
+ apt-get update
Get:1 http://security.debian.org lenny/updates Release.gpg [835B]
Get:2 http://security.debian.org lenny/updates Release [40.8kB]
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Get:3 http://security.debian.org lenny/updates/main Packages [249kB]
Get:4 http://ftp.jp.debian.org lenny Release.gpg [1032B]
Get:5 http://ftp.jp.debian.org lenny Release [73.6kB]
Ign http://ftp.jp.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.jp.debian.org lenny/main Sources/DiffIndex
Get:6 http://ftp.jp.debian.org lenny/main Packages [6703kB]
Get:7 http://security.debian.org lenny/updates/main Sources [63.4kB]
Get:8 http://ftp.jp.debian.org lenny/main Sources [2982kB]
Fetched 10.1MB in 24s (408kB/s)
Reading package lists... Done
+ apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apt apt-utils base-files dhcp3-client dhcp3-common gnupg gpgv libgnutls26
  libpam-modules libpam-runtime libpam0g libsasl2-2 libssl0.9.8 perl-base
  tzdata
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8187kB of archives.
After this operation, 53.2kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main base-files 5lenny4 [61.5kB]
Get:2 http://ftp.jp.debian.org lenny/main perl-base 5.10.0-19lenny2 [965kB]
Get:3 http://ftp.jp.debian.org lenny/main libpam-modules 1.0.1-5+lenny1 [288kB]
Get:4 http://ftp.jp.debian.org lenny/main apt 0.7.20.2+lenny1 [1618kB]
Get:5 http://ftp.jp.debian.org lenny/main gpgv 1.4.9-3+lenny1 [154kB]
Get:6 http://ftp.jp.debian.org lenny/main gnupg 1.4.9-3+lenny1 [1951kB]
Get:7 http://ftp.jp.debian.org lenny/main libpam-runtime 1.0.1-5+lenny1 [165kB]
Get:8 http://ftp.jp.debian.org lenny/main libpam0g 1.0.1-5+lenny1 [103kB]
Get:9 http://ftp.jp.debian.org lenny/main tzdata 2009l-0lenny1 [768kB]
Get:10 http://ftp.jp.debian.org lenny/main apt-utils 0.7.20.2+lenny1 [184kB]
Get:11 http://ftp.jp.debian.org lenny/main dhcp3-client 3.1.1-6+lenny3 [228kB]
Get:12 http://ftp.jp.debian.org lenny/main dhcp3-common 3.1.1-6+lenny3 [294kB]
Get:13 http://ftp.jp.debian.org lenny/main libgnutls26 2.4.2-6+lenny1 [452kB]
Get:14 http://ftp.jp.debian.org lenny/main libsasl2-2 2.1.22.dfsg1-23+lenny1 [105kB]
Get:15 http://ftp.jp.debian.org lenny/main libssl0.9.8 0.9.8g-15+lenny3 [850kB]
Fetched 8187kB in 6s (1216kB/s)
Preconfiguring packages ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace base-files 5 (using .../base-files_5lenny4_armel.deb) ...
Unpacking replacement base-files ...
Processing triggers for man-db ...
Setting up base-files (5lenny4) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace perl-base 5.10.0-19 (using .../perl-base_5.10.0-19lenny2_armel.deb) ...
Unpacking replacement perl-base ...
Processing triggers for man-db ...
Setting up perl-base (5.10.0-19lenny2) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam-modules 1.0.1-5 (using .../libpam-modules_1.0.1-5+lenny1_armel.deb) ...
Unpacking replacement libpam-modules ...
Processing triggers for man-db ...
Setting up libpam-modules (1.0.1-5+lenny1) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace apt 0.7.20.2 (using .../apt_0.7.20.2+lenny1_armel.deb) ...
Unpacking replacement apt ...
Processing triggers for man-db ...
Setting up apt (0.7.20.2+lenny1) ...
Installing new version of config file /etc/cron.daily/apt ...
gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) " not changed
gpg: key ADB11277: "Etch Stable Release Key " not changed
gpg: key BBE55AB3: "Debian-Volatile Archive Automatic Signing Key (4.0/etch)" not changed
gpg: key F42584E6: "Lenny Stable Release Key " not changed
gpg: key 55BE302B: "Debian Archive Automatic Signing Key (5.0/lenny) " not changed
gpg: key 6D849617: "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" not changed
gpg: Total number processed: 6
gpg:              unchanged: 6
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace gpgv 1.4.9-3 (using .../gpgv_1.4.9-3+lenny1_armel.deb) ...
Unpacking replacement gpgv ...
Processing triggers for man-db ...
Setting up gpgv (1.4.9-3+lenny1) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace gnupg 1.4.9-3 (using .../gnupg_1.4.9-3+lenny1_armel.deb) ...
Unpacking replacement gnupg ...
Processing triggers for man-db ...
Setting up gnupg (1.4.9-3+lenny1) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam-runtime 1.0.1-5 (using .../libpam-runtime_1.0.1-5+lenny1_all.deb) ...
Unpacking replacement libpam-runtime ...
Processing triggers for man-db ...
Setting up libpam-runtime (1.0.1-5+lenny1) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam0g 1.0.1-5 (using .../libpam0g_1.0.1-5+lenny1_armel.deb) ...
Unpacking replacement libpam0g ...
Setting up libpam0g (1.0.1-5+lenny1) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace tzdata 2008h-2 (using .../tzdata_2009l-0lenny1_all.deb) ...
Unpacking replacement tzdata ...
Setting up tzdata (2009l-0lenny1) ...

Current default timezone: 'Asia/Tokyo'
Local time is now:      Thu Sep 10 22:24:34 JST 2009.
Universal Time is now:  Thu Sep 10 13:24:34 UTC 2009.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

(Reading database ... 8597 files and directories currently installed.)
Preparing to replace apt-utils 0.7.20.2 (using .../apt-utils_0.7.20.2+lenny1_armel.deb) ...
Unpacking replacement apt-utils ...
Preparing to replace dhcp3-client 3.1.1-6 (using .../dhcp3-client_3.1.1-6+lenny3_armel.deb) ...
Unpacking replacement dhcp3-client ...
Preparing to replace dhcp3-common 3.1.1-6 (using .../dhcp3-common_3.1.1-6+lenny3_armel.deb) ...
Unpacking replacement dhcp3-common ...
Preparing to replace libgnutls26 2.4.2-6 (using .../libgnutls26_2.4.2-6+lenny1_armel.deb) ...
Unpacking replacement libgnutls26 ...
Preparing to replace libsasl2-2 2.1.22.dfsg1-23 (using .../libsasl2-2_2.1.22.dfsg1-23+lenny1_armel.deb) ...
Unpacking replacement libsasl2-2 ...
Preparing to replace libssl0.9.8 0.9.8g-15 (using .../libssl0.9.8_0.9.8g-15+lenny3_armel.deb) ...
Unpacking replacement libssl0.9.8 ...
Processing triggers for man-db ...
Setting up apt-utils (0.7.20.2+lenny1) ...
Setting up dhcp3-common (3.1.1-6+lenny3) ...
Setting up dhcp3-client (3.1.1-6+lenny3) ...
Setting up libgnutls26 (2.4.2-6+lenny1) ...
Setting up libsasl2-2 (2.1.22.dfsg1-23+lenny1) ...
Setting up libssl0.9.8 (0.9.8g-15+lenny3) ...
+ apt-get install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcap1 libedit2 perl perl-modules
Suggested packages:
  ntp-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
The following NEW packages will be installed:
  libcap1 libedit2 ntp perl perl-modules
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 8262kB of archives.
After this operation, 29.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libedit2 2.11~20080614-1 [64.5kB]
Get:2 http://ftp.jp.debian.org lenny/main perl-modules 5.10.0-19lenny2 [3198kB]
Get:3 http://ftp.jp.debian.org lenny/main perl 5.10.0-19lenny2 [4532kB]
Get:4 http://ftp.jp.debian.org lenny/main libcap1 1:1.10-14 [9074B]
Get:5 http://ftp.jp.debian.org lenny/main ntp 1:4.2.4p4+dfsg-8lenny2 [459kB]
Fetched 8262kB in 4s (1676kB/s)
Selecting previously deselected package libedit2.
(Reading database ... 8597 files and directories currently installed.)
Unpacking libedit2 (from .../libedit2_2.11~20080614-1_armel.deb) ...
Selecting previously deselected package perl-modules.
Unpacking perl-modules (from .../perl-modules_5.10.0-19lenny2_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.10.0-19lenny2_armel.deb) ...
Selecting previously deselected package libcap1.
Unpacking libcap1 (from .../libcap1_1%3a1.10-14_armel.deb) ...
Selecting previously deselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.4p4+dfsg-8lenny2_armel.deb) ...
Processing triggers for man-db ...
Setting up libedit2 (2.11~20080614-1) ...
Setting up libcap1 (1:1.10-14) ...
Setting up ntp (1:4.2.4p4+dfsg-8lenny2) ...
Starting NTP server: ntpd.
Setting up perl-modules (5.10.0-19lenny2) ...
Setting up perl (5.10.0-19lenny2) ...
+ mv /etc/ntp.conf /etc/ntp.conf.orig
+ sed -e 's/^server/# server/' -e '/ntp.your-provider.example/aserver ntp3.jst.mfeed.ad.jp\
server ntp2.jst.mfeed.ad.jp\
server ntp1.jst.mfeed.ad.jp' /etc/ntp.conf.orig
+ apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcups2 libkeyutils1 libkrb53 libldap-2.4-2 libtalloc1 libwbclient0
  samba-common ucf
Suggested packages:
  cups-common krb5-doc krb5-user smbldap-tools ldb-tools
The following NEW packages will be installed:
  libcups2 libkeyutils1 libkrb53 libldap-2.4-2 libtalloc1 libwbclient0 samba
  samba-common ucf
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 8604kB of archives.
After this operation, 23.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libkeyutils1 1.2-9 [5228B]
Get:2 http://ftp.jp.debian.org lenny/main libkrb53 1.6.dfsg.4~beta1-5lenny1 [449kB]
Get:3 http://ftp.jp.debian.org lenny/main libldap-2.4-2 2.4.11-1 [179kB]
Get:4 http://ftp.jp.debian.org lenny/main ucf 3.0016 [64.4kB]
Get:5 http://ftp.jp.debian.org lenny/main libcups2 1.3.8-1+lenny6 [157kB]
Get:6 http://ftp.jp.debian.org lenny/main libtalloc1 1.2.0~git20080616-1 [13.3kB]
Get:7 http://ftp.jp.debian.org lenny/main libwbclient0 2:3.2.5-4lenny6 [79.0kB]
Get:8 http://ftp.jp.debian.org lenny/main samba-common 2:3.2.5-4lenny6 [3366kB]
Get:9 http://ftp.jp.debian.org lenny/main samba 2:3.2.5-4lenny6 [4292kB]
Fetched 8604kB in 6s (1359kB/s)
Preconfiguring packages ...

Package configuration





   lqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
   x Please specify the workgroup you want this server to appear to be in   x
   x when queried by clients. Note that this parameter also controls the    x
   x domain name used with the security=domain setting.                     x
   x                                                                        x
   x Workgroup/Domain Name:                                                 x
   x                                                                        x
   x YAMASITA______________________________________________________________ x
   x                                                                        x
   x                                                                    x
   x                                                                        x
   mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


































Package configuration



 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x                                                                           x
 x If your computer gets IP address information from a DHCP server on the    x
 x network, the DHCP server may also provide information about WINS servers  x
 x ("NetBIOS name servers") present on the network.  This requires a change  x
 x to your smb.conf file so that DHCP-provided WINS settings will            x
 x automatically be read from /etc/samba/dhcp.conf.                          x
 x                                                                           x
 x The dhcp3-client package must be installed to take advantage of this      x
 x feature.                                                                  x
 x                                                                           x
 x Modify smb.conf to use WINS settings from DHCP?                           x
 x                                                                           x
 x                                                                  x
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



Selecting previously deselected package libkeyutils1.
(Reading database ... 9849 files and directories currently installed.)
Unpacking libkeyutils1 (from .../libkeyutils1_1.2-9_armel.deb) ...
Selecting previously deselected package libkrb53.
Unpacking libkrb53 (from .../libkrb53_1.6.dfsg.4~beta1-5lenny1_armel.deb) ...
Selecting previously deselected package libldap-2.4-2.
Unpacking libldap-2.4-2 (from .../libldap-2.4-2_2.4.11-1_armel.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../archives/ucf_3.0016_all.deb) ...
Moving old data out of the way
Selecting previously deselected package libcups2.
Unpacking libcups2 (from .../libcups2_1.3.8-1+lenny6_armel.deb) ...
Selecting previously deselected package libtalloc1.
Unpacking libtalloc1 (from .../libtalloc1_1.2.0~git20080616-1_armel.deb) ...
Selecting previously deselected package libwbclient0.
Unpacking libwbclient0 (from .../libwbclient0_2%3a3.2.5-4lenny6_armel.deb) ...
Selecting previously deselected package samba-common.
Unpacking samba-common (from .../samba-common_2%3a3.2.5-4lenny6_armel.deb) ...
Selecting previously deselected package samba.
Unpacking samba (from .../samba_2%3a3.2.5-4lenny6_armel.deb) ...
Processing triggers for man-db ...
Setting up libkeyutils1 (1.2-9) ...
Setting up libkrb53 (1.6.dfsg.4~beta1-5lenny1) ...
Setting up libldap-2.4-2 (2.4.11-1) ...
Setting up ucf (3.0016) ...
Setting up libcups2 (1.3.8-1+lenny6) ...
Setting up libtalloc1 (1.2.0~git20080616-1) ...
Setting up libwbclient0 (2:3.2.5-4lenny6) ...
Setting up samba-common (2:3.2.5-4lenny6) ...

Creating config file /etc/samba/smb.conf with new version
Setting up samba (2:3.2.5-4lenny6) ...
Generating /etc/default/samba...
tdbsam_open: Converting version 0 database to version 3.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for root...ok
Importing account for daemon...ok
Importing account for bin...ok
Importing account for sys...ok
Importing account for sync...ok
Importing account for games...ok
Importing account for man...ok
Importing account for lp...ok
Importing account for mail...ok
Importing account for news...ok
Importing account for uucp...ok
Importing account for proxy...ok
Importing account for www-data...ok
Importing account for backup...ok
Importing account for list...ok
Importing account for irc...ok
Importing account for gnats...ok
Importing account for nobody...ok
Importing account for libuuid...ok
Importing account for guest...ok
Importing account for telnetd...ok
Importing account for yasunari...ok
Importing account for ntp...ok
Adding group `sambashare' (GID 105) ...
Done.
Starting Samba daemons: nmbd smbd.
+ echo
+ echo '[share]'
+ echo '        comment = hackkit share'
+ echo '        path = /mnt'
+ echo '        writable = Yes'
+ echo '        create mask = 0660'
+ echo '        directory mask = 0770'
+ /etc/init.d/samba reload
Reloading /etc/samba/smb.conf: smbd only.
+ echo smbpasswd -a yasunari
smbpasswd -a yasunari
+ smbpasswd -a yasunari
New SMB password:
Retype new SMB password:
+ mkdir /mnt/share
+ chgrp yamasita /mnt/share/
+ chmod g+w /mnt/share
+ apt-get install inetutils-ftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  inetutils-ftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 94.1kB of archives.
After this operation, 197kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org lenny/main inetutils-ftpd 2:1.5.dfsg.1-9 [94.1kB]
Fetched 94.1kB in 0s (165kB/s)
Selecting previously deselected package inetutils-ftpd.
(Reading database ... 10026 files and directories currently installed.)
Unpacking inetutils-ftpd (from .../inetutils-ftpd_2%3a1.5.dfsg.1-9_armel.deb) ...
Processing triggers for man-db ...
Setting up inetutils-ftpd (2:1.5.dfsg.1-9) ...
+ echo 'ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd'
++ cat /var/run/inetd.pid
+ kill -HUP 599
+ apt-get clean
tate:~#

動作確認

LED の確認

特に問題なし。

USB メモリの認識

tate:~# tail -f /var/log/messages
	:
	:
usb 1-1: new full speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
Sep 10 22:30:00 tate kernel: usb 1-1: new full speed USB device using ehci_marvell and address 2
Sep 10 22:30:01 tate kernel: usb 1-1: configuration #1 chosen from 1 choice
Sep 10 22:30:01 tate kernel: scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
Sep 10 22:30:07 tate kernel: scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
Sep 10 22:30:07 tate kernel: sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Sep 10 22:30:07 tate kernel: sd 2:0:0:0: [sdb] Write Protect is off
Sep 10 22:30:07 tate kernel: sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Sep 10 22:30:07 tate kernel: sd 2:0:0:0: [sdb] Write Protect is off
Sep 10 22:30:07 tate kernel: sdb: sdb1
Sep 10 22:30:07 tate kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Sep 10 22:30:07 tate kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0


マウントしてみる。
tate:~# mkdir /tmp/usb
tate:~# mount /dev/sdb1 !$
mount /dev/sdb1 /tmp/usb
tate:~# ls !$
ls /tmp/usb
dcim  memstick.ind
tate:~#
問題なさそう。
アンマウントする。
tate:~# umount /tmp/usb/
tate:~#

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

usb 1-1: new full speed USB device using ehci_marvell and address 3
usb 1-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
Sep 10 22:31:52 tate kernel: usb 1-1: new full speed USB device using ehci_marvell and address 3
Sep 10 22:31:52 tate kernel: usb 1-1: configuration #1 chosen from 1 choice
Sep 10 22:31:52 tate kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
OK.

リブートの確認

tate:~# shutdown -r now
	:
	:
問題なし。

シャットダウンの確認

OK

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


ファームウェア 1.11 の散歩
ハックの記録
LinkStation/玄箱 をハックしよう

LS-CHL 入手 / I got an LS-CHL (for JAPAN)

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