次は LS-CL
BUFFALO INC. LinkStation series LS-CL-EM701 login: root No mail. root@LS-CL-EM701:~#
root@LS-CL-EM701:~# date Thu Nov 1 00:00:46 JST 2007 root@LS-CL-EM701:~# date 022723312009 Fri Feb 27 23:31:00 JST 2009 root@LS-CL-EM701:~#
root@LS-CL701:~# tail -f /var/log/messages : : usb 1-1: new high speed USB device using ehci_marvell and address 2 Feb 27 23:46:15 LS-CL701 kernel: 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] scsi2 : SCSI emulation for USB Mass Storage devices /sbin/hotplug [usb_endpoint] /sbin/hotplug [usb] /sbin/hotplug [usb_endpoint] /sbin/hotplug [scsi_host] /sbin/hotplug [usb_endpoint] /sbin/hotplug [usb_device] [/etc/hotplug.d/usb_device/buffalo.hotplug] usb_device *** /usr/local/bin/DirectCopy_wait.sh [usb_device] Feb 27 23:46:15 LS-CL701 kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 27 23:46:15 LS-CL701 kernel: scsi2 : SCSI emulation for USB Mass Storage devices 1 USB_DEVICE=none 2 USB_DEVICE=none 3 USB_DEVICE=none scsi 2:0:0:0: Direct-Access WDC WD32 WD-WCAMR1683855 5J08 PQ: 0 ANSI: 2 CCS 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:/sbin/hotplug [scsi] sdb1 sdb2 sdb3 sdb4 /sbin/hotplug [block] /sbin/hotplug [block] sd 2:0:0:0: [sdb] Attached SCSI disk /sbin/hotplug [block] sd 2:0:0:0: Attached scsi generic sg1 type 0 /sbin/hotplug [block] /sbin/hotplug [scsi_device] /sbin/hotplug [block] /sbin/hotplug [scsi_generic] /sbin/hotplug [scsi_disk] Feb 27 23:46:21 LS-CL701 kernel: scsi 2:0:0:0: Direct-Access WDC WD32 WD-WCAMR1683855 5J08 PQ: 0 ANSI: 2 CCS Feb 27 23:46:21 LS-CL701 kernel: sd 2:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB) Feb 27 23:46:21 LS-CL701 kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 27 23:46:21 LS-CL701 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through Feb 27 23:46:21 LS-CL701 kernel: sd 2:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB) Feb 27 23:46:21 LS-CL701 kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 27 23:46:21 LS-CL701 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through Feb 27 23:46:21 LS-CL701 kernel: sdb: sdb1 sdb2 sdb3 sdb4 Feb 27 23:46:21 LS-CL701 kernel: sd 2:0:0:0: [sdb] Attached SCSI disk Feb 27 23:46:21 LS-CL701 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 *** /usr/local/bin/DirectCopy_wait.sh [stop] BASENAME=usbdisk1 MPT=/mnt/usbdisk1/ try vfat(usbdisk) /sbin/hotplug [module] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! /sbin/hotplug [module] 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 3357] Restarting Daemons... Feb 27 23:46:25 LS-CL701 kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Feb 27 23:46:25 LS-CL701 kernel: kjournald starting. Commit interval 5 seconds Feb 27 23:46:25 LS-CL701 kernel: EXT3-fs warning: checktime reached, running e2fsck is recommended Feb 27 23:46:25 LS-CL701 kernel: EXT3 FS on sdb1, internal journal Feb 27 23:46:25 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] NET: Registered protocol family 5 /sbin/hotplug [module] Feb 27 23:46:29 LS-CL701 kernel: NET: Registered protocol family 5 clearing printer queue clearing printer queue Feb 27 23:46:33 LS-CL701 nmbd[1233]: [2009/02/27 23:46:33, 0] nmbd/nmbd.c:terminate(58) Feb 27 23:46:33 LS-CL701 nmbd[1233]: Got SIGTERM: going down... clearing printer queue
root@LS-CL701:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 4993984 399540 4594444 8% / /dev/ram1 15360 116 15244 1% /mnt/ram /dev/sda1 996052 183000 813052 18% /boot /dev/disk1_6 480348928 390316 479958612 0% /mnt/disk1 /dev/usbdisk1_1 194442 14608 169795 8% /mnt/usbdisk1 root@LS-CL701:~# umount /mnt/usbdisk1 root@LS-CL701:~#
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 なので、 パーティションは設定済
root@LS-CL701:~# cd /mnt/disk1/share/hackkit/ root@LS-CL701:/mnt/disk1/share/hackkit# cp hackkit_config.sample hackkit_config root@LS-CL701:/mnt/disk1/share/hackkit# vi hackkit_config : : root@LS-CL701:/mnt/disk1/share/hackkit# cat !$ 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 28 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/ ./var/lib/apt/lists/partial/ : : ./media/ ./initrd/ creating miconapl ... creating kernelmon ... copying /lib/modules ... lib/modules/ lib/modules/2.6.22.7/ : : lib/modules/2.6.22.7/modules.pcimap 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 ... 110227+1 records in 110227+1 records out gunziping /mnt/debinst/boot/initrd.gz ... gziping /mnt/debinst/boot/initrd ... wait 5 minutes Image Name: initrd Created: Fri Feb 27 23:54:07 2009 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7014537 Bytes = 6850.13 kB = 6.69 MB Load Address: 0x00000000 Entry Point: 0x00000000 unmount /boot ... root@LS-CL701:/mnt/disk1/share/hackkit#
: : ---- 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: Superblock last mount time is in the future. FIXED. /dev/sda1: Superblock last write time is in the future. FIXED. /dev/sda1 has filesystem last checked time in the future, check forced. /dev/sda1: 13/50200 files (7.7% non-contiguous), 20958/200780 blocks /sbin/fsck.xfs: XFS file system. fsck died with exit status 1 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 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 eth0: link up, full duplex, speed 1 Gbps 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 #38 Fri Jan 9 12:08:32 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:/$
guest@tate:/$ su - root Password: tate:~#
tate:~# date Thu Nov 1 00:33:38 JST 2007 tate:~# date 022800032009 Sat Feb 28 00:03:00 JST 2009 tate:~#一瞬、コンセントを抜いただけなのに、クリアされてしまっている。
最初の設定の残りの設定と、
時刻同期、
Windows 向けファイルサーバまでスクリプトを使う。
(略)
tate:/tmp# 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 Feb 28 00:08:33 tate kernel: usb 1-1: new full speed USB device using ehci_marvell and address 2 Feb 28 00:08:33 tate kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 28 00:08:33 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:Feb 28 00:08:39 tate kernel: scsi 2:0:0:0: Direct-Access eUSB Memory Stick 5.06 PQ: 0 ANSI: 2 Feb 28 00:08:39 tate kernel: sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB) Feb 28 00:08:39 tate kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 28 00:08:39 tate kernel: sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB) Feb 28 00:08:39 tate kernel: sd 2:0:0:0: [sdb] Write Protect is off sdb1 sd 2:0:0:0: [sdb] Attached SCSI removable disk sd 2:0:0:0: Attached scsi generic sg1 type 0 Feb 28 00:08:40 tate kernel: sdb: sdb1 Feb 28 00:08:40 tate kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk Feb 28 00:08:40 tate kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0マウントしてみる。
tate:/tmp# mkdir /tmp/usb tate:/tmp# mount /dev/sdb1 /tmp/usb/ tate:/tmp# ls /tmp/usb/ dcim memstick.ind tate:/tmp# umount /tmp/usb/ tate:/tmp#問題なさそう。
tate:/tmp# !tail tail -f /var/log/messages : : sb 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 Feb 28 00:11:04 tate kernel: usb 1-1: new full speed USB device using ehci_marvell and address 3 Feb 28 00:11:04 tate kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 28 00:11:04 tate kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005OK.
LS-CL 確認完了!次!
|
← LS-XHL, LS-QL 対応ハックキットの確認(4)LS-HGL |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ファームウェア 1.04 βのインストール |