hackkit:/mnt/hddrootfs# mkdir /tmp/mtd3 hackkit:/mnt/hddrootfs# mount /dev/mtd3 /tmp/mtd3 hackkit:/mnt/hddrootfs# ls /tmp/mtd3 ChangeMeDevHDD ChangeMyUbootEnv hddrootfs.tar.gz uImage.buffalo www hackkit:/mnt/hddrootfs# cd /mnt/ hackkit:/mnt# cp hddrootfs.tar.gz /tmp/mtd3 hackkit:/mnt#本来なら Windows のエクスプローラから mtd device に置く。
~ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtd2 65536 15884 49652 24% / /dev/ram1 8192 140 8052 2% /mnt/ram /dev/sda4 114029892 464 114029428 0% /mnt/disk1 /dev/mtd3 192512 56888 135624 30% /mnt/mtd ~ # umount /mnt/disk1 ~ #
~ # mkfs.ext2 -j /dev/sda2 : ~ # dd if=/dev/zero of=/dev/sda2 bs=1 count=3 3+0 records in 3+0 records out ~ # mkfs.ext2 -j /dev/sda4 : ~ # dd if=/dev/zero of=/dev/sda4 bs=1 count=3 3+0 records in 3+0 records out ~ # fdisk /dev/sda : : Command (m for help): d Partition number (1-4): 1 Command (m for help): d Partition number (1-4): 2 Command (m for help): d Partition number (1-4): 3 Command (m for help): d Selected partition 4 Command (m for help): p Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB) SCSI device sda: drive cache: write back sda: ~ #
~ # SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB) SCSI device sda: drive cache: write back sda: sda1 sda2 sda3 sda4 kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. XFS mounting filesystem sda2
Debian GNU/Linux 3.1 hackkit ttyS0 hackkit login: root Password: Linux hackkit 2.6.12.6-arm1 #2 Thu Feb 8 15:00:20 JST 2007 armv5tejl GNU/Linux 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. hackkit:~# cd /usr/local/sbin/ hackkit:/usr/local/sbin# ls KURO-BOX-Pro_setup.sh mkimage hackkit:/usr/local/sbin# sh KURO-BOX-Pro_setup.sh + permission + chmod 1777 /tmp /var/tmp + chmod 4755 /bin/su + update + apt-get update Hit http://security.debian.org sarge/updates/main Packages : : Hit http://ftp.jp.debian.org sarge/non-US/non-free Release Reading Package Lists... Done + apt-get upgrade Reading Package Lists... Done Building Dependency Tree... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. + apt-get clean + jail + '[' '!' -e /dev/mtd2 ']' + mknod /dev/mtd2 b 31 2 + '[' '!' -d /tmp/mtd2 ']' + mkdir /tmp/mtd2 + mount /dev/mtd2 /tmp/mtd2 + '[' '!' -d /usr/local/buffalo ']' + mkdir /usr/local/buffalo + cd /tmp/mtd2 + tar cf - . + cd /usr/local/buffalo + tar xvf - ./ ./bin/ ./bin/dd ./bin/cp ./bin/df : : tar: .: implausibly old time stamp 1970-01-01 09:00:00 + umount /tmp/mtd2 + rmdir /tmp/mtd2 + fan_control + '[' '!' -f /etc/init.d/miconapl ']' + cat + cd / + chmod +x /etc/init.d/miconapl + '[' '!' -f etc/rc0.d/K10miconapl ']' + ln -s ../init.d/miconapl etc/rc0.d/K10miconapl + '[' '!' -f etc/rc6.d/K10miconapl ']' + ln -s ../init.d/miconapl etc/rc6.d/K10miconapl + '[' '!' -f etc/rcS.d/S80miconapl ']' + ln -s ../init.d/miconapl etc/rcS.d/S80miconapl + cd /usr/local/buffalo/etc/init.d + mv FanController.sh FanController.sh.orig + sed -e 's;[ ]Fand[ ]; /usr/local/sbin/Fand ;' FanController.sh.orig + chmod +x FanController.sh + cd /usr/local/buffalo/usr/local/sbin + mv Fand Fand.orig + sed -e 's;miconapl;/usr/local/sbin/miconapl;g' Fand.orig + chmod +x Fand + '[' '!' -f /usr/local/sbin/miconapl ']' + echo 'chroot /usr/local/buffalo /usr/local/sbin/miconapl $*' + chmod +x /usr/local/sbin/miconapl + powersw_control + '[' '!' -f /etc/init.d/Kevent.sh ']' + sed -e 's;^[ ][ ]*Keventd[ ]; /usr/local/sbin/Keventd ;' /usr/local/buffalo/etc/init.d/Kevent.sh + cd / + chmod +x /etc/init.d/Kevent.sh + '[' '!' -f etc/rc0.d/K10Kevent.sh ']' + ln -s ../init.d/Kevent.sh etc/rc0.d/K10Kevent.sh + '[' '!' -f etc/rc6.d/K10Kevent.sh ']' + ln -s ../init.d/Kevent.sh etc/rc6.d/K10Kevent.sh + '[' '!' -f etc/rcS.d/S81Kevent.sh ']' + ln -s ../init.d/Kevent.sh etc/rcS.d/S81Kevent.sh + '[' '!' -f /usr/local/sbin/Keventd ']' + sed -e 's;^\.[ ][ ]*/usr/local/bin/kuro_lib;KERNEL_EVENT_TAIL=/proc/buffalo/kernevnt;' /usr/local/buffalo/usr/local/sbin/Keventd + chmod +x /usr/local/sbin/Keventd + '[' '!' -f /usr/local/bin/KeventHandller.sh ']' + cat + chmod +x /usr/local/bin/KeventHandller.sh hackkit:/usr/local/sbin#セットアップ完了
: : Starting periodic command scheduler: cron. Debian GNU/Linux 3.1 hackkit ttyS0 hackkit login:ファンがブォーンと高速でまわる。
電源ボタンを長押しする。
Debian GNU/Linux 3.1 hackkit ttyS0 INIT: Sending pStopping a fan ........... Stopping periodic command scheduler: cron. : :電源ボタンも効いている。
玄箱/Pro ハックキット完成!
|
玄人志向
楽天市場 TSUKUMO ネットショップ Yahoo!ショッピング Sofmap クレバリー TwoTop |
|
玄人志向
TSUKUMO ネットショップ Yahoo! ショッピング パソQ ValuMore uWorks |
玄箱PROをハックしよう |
ASCII
楽天ブックス Amazon cbook24 e-hon JBook BK1 livedoorブックス 紀伊國屋書店BookWeb |
← 簡単インストール:アーカイブの作り直し |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ハックキット作り直し |