何の気なしに電源 SW を OFF にしたら、 青 LED が点滅しだして、電源が落ちた。
ハックキットが動いている?
root@LS-XHLA1F:~# mkdir /tmp/root root@LS-XHLA1F:~# mount /dev/sdb2 /tmp/root root@LS-XHLA1F:~#/var/log を見る
root@LS-XHLA1F:~# ls /tmp/root/var/log/ apt daemon.log faillog mail.err news auth.log debug fsck mail.info syslog boot dmesg kern.log mail.log user.log bootstrap.log dmesg.0 lastlog mail.warn wtmp btmp dpkg.log lpr.log messages root@LS-XHLA1F:~#kern.log を見る
root@LS-XHLA1F:~# less /tmp/root/var/log/kern.log Dec 9 23:04:49 LS-CL701 kernel: imklog 3.18.5, log source = ksyslog started. Feb 15 21:13:58 brick kernel: imklog 3.18.5, log source = /proc/kmsg started. Feb 15 21:13:58 brick kernel: Linux version 2.6.22.18 (root@build2.dd-hot24.nas .buffalo.local) (gcc version 4.2.0 20070413 (prerelease)) #132 Wed Jan 21 20:16 :50 JST 2009 Feb 15 21:13:58 brick kernel: CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053977 Feb 15 21:13:58 brick kernel: Machine: Feroceon-KW Feb 15 21:13:58 brick kernel: Using UBoot passing parameters structure Feb 15 21:13:58 brick kernel: Memory policy: ECC disabled, Data cache writeback Feb 15 21:13:58 brick kernel: On node 0 totalpages: 65536 Feb 15 21:13:58 brick kernel: DMA zone: 512 pages used for memmap Feb 15 21:13:58 brick kernel: DMA zone: 0 pages reserved Feb 15 21:13:58 brick kernel: DMA zone: 65024 pages, LIFO batch:15 Feb 15 21:13:58 brick kernel: Normal zone: 0 pages used for memmap Feb 15 21:13:58 brick kernel: CPU0: D VIVT write-back cache Feb 15 21:13:58 brick kernel: CPU0: I cache: 16384 bytes, associativity 4, 32 b yte lines, 128 sets Feb 15 21:13:58 brick kernel: CPU0: D cache: 16384 bytes, associativity 4, 32 b yte lines, 128 sets Feb 15 21:13:58 brick kernel: Built 1 zonelists. Total pages: 65024 Feb 15 21:13:58 brick kernel: Kernel command line: console=ttyS0,115200 root=/d ev/sda2 rw initrd=0x00800040,32M panic=5 BOOTVER=0.07 Feb 15 21:13:58 brick kernel: PID hash table entries: 1024 (order: 10, 4096 byt es) Feb 15 21:13:58 brick kernel: Console: colour dummy device 80x30 Feb 15 21:13:58 brick kernel: Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Feb 15 21:13:58 brick kernel: Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Feb 15 21:13:58 brick kernel: Memory: 256MB 0MB 0MB 0MB = 256MB total Feb 15 21:13:58 brick kernel: Memory: 222720KB available (3776K code, 300K data , 124K init) Feb 15 21:13:58 brick kernel: Calibrating delay loop... 1199.30 BogoMIPS (lpj=5 996544) : :ハックキット、うごいてるやん。
Feb 15 21:13:58 brick kernel: eth0: startedも出ているし、、
root@LS-XHLA1F:~# cd /tmp/root/etc/rc2.d/ root@LS-XHLA1F:/tmp/root/etc/rc2.d# ls README S15usb S89cron S99rmnologin S10rsyslog S20openbsd-inetd S99rc.local S99stop-bootlogd root@LS-XHLA1F:/tmp/root/etc/rc2.d# echo 'ifconfig > /var/log/iflog' > S99check root@LS-XHLA1F:/tmp/root/etc/rc2.d# echo 'ps -aux>> /var/log/iflog' >> S99check root@LS-XHLA1F:/tmp/root/etc/rc2.d# echo 'df >> /var/log/iflog' >> S99check root@LS-XHLA1F:/tmp/root/etc/rc2.d#起動時に上記コマンドが実行され、/var/log/iflog に書き込まれるはず。
シャットダウン
ハックキットの HDD で起動。/var/log/iflog に書き込まれたはず。
シャットダウン
標準ファームの HDD で起動。
めんどくせー、めんどくせー、MAX めんどくせー。
S99check に実行ビット付け忘れて、chmod +x S99check して
シャットダウン
ハックキットの HDD で起動。/var/log/iflog に書き込まれたはず。
シャットダウン
標準ファームの HDD で起動。
めんどくせー、めんどくせー、MAX めんどくせー。
root@LS-XHLA1F:~# mkdir /tmp/root root@LS-XHLA1F:~# mount /dev/sdb2 /tmp/root/ root@LS-XHLA1F:~# cd /tmp/root/var/log/ root@LS-XHLA1F:/tmp/root/var/log# ls apt debug dpkg.log lpr.log news auth.log dmesg faillog mail.err syslog boot dmesg.0 fsck mail.info user.log bootstrap.log dmesg.1.gz iflog mail.log wtmp btmp dmesg.2.gz kern.log mail.warn daemon.log dmesg.3.gz lastlog messages root@LS-XHLA1F:/tmp/root/var/log# cat iflog eth0 Link encap:Ethernet HWaddr 00:50:43:a8:67:8b inet addr:192.168.2.49 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:11 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 38.9 0.2 1968 712 ? Ss 22:08 0:04 init [2] root 2 0.0 0.0 0 0 ? S< 22:08 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? SN 22:08 0:00 [ksoftirqd/0] root 4 0.0 0.0 0 0 ? S< 22:08 0:00 [events/0] root 5 0.0 0.0 0 0 ? S< 22:08 0:00 [khelper] root 34 0.0 0.0 0 0 ? S< 22:08 0:00 [kblockd/0] root 48 0.0 0.0 0 0 ? S 22:08 0:00 [crypto] root 49 0.0 0.0 0 0 ? S 22:08 0:00 [crypto_ret] root 54 0.0 0.0 0 0 ? S 22:08 0:00 [pdflush] root 55 0.0 0.0 0 0 ? S 22:08 0:00 [pdflush] root 56 0.0 0.0 0 0 ? S< 22:08 0:00 [kswapd0] root 57 0.0 0.0 0 0 ? S< 22:08 0:00 [aio/0] root 58 0.0 0.0 0 0 ? S< 22:08 0:00 [xfslogd/0] root 59 0.0 0.0 0 0 ? S< 22:08 0:00 [xfsdatad/0] root 238 0.0 0.0 0 0 ? S< 22:08 0:00 [scsi_eh_0] root 239 0.0 0.0 0 0 ? S< 22:08 0:00 [scsi_eh_1] root 253 0.0 0.0 0 0 ? S< 22:08 0:00 [mtdblockd] root 254 0.0 0.0 0 0 ? S< 22:08 0:00 [nftld] root 260 0.0 0.0 0 0 ? S< 22:08 0:00 [kcryptd/0] root 263 0.0 0.0 0 0 ? S< 22:08 0:00 [xfsbufd] root 264 0.0 0.0 0 0 ? S< 22:08 0:00 [xfssyncd] root 435 0.0 0.0 0 0 ? S< 22:08 0:00 [kjournald] root 436 0.0 0.0 0 0 ? S< 22:08 0:00 [xfsbufd] root 437 0.0 0.0 0 0 ? S< 22:08 0:00 [xfssyncd] root 553 1.0 0.4 2808 1176 ? S 22:08 0:00 /bin/sh /usr/local/sbin/kernelmon root 557 9.0 0.5 2992 1472 ? Ss 22:08 0:00 /bin/sh /etc/init.d/rc 2 root 559 1.0 0.1 1552 392 ? S 22:08 0:00 cat /proc/buffalo/kernevnt root 562 8.0 0.5 27384 1288 ? Sl 22:08 0:00 /usr/sbin/rsyslogd -c3 root 576 0.0 0.0 0 0 ? S< 22:08 0:00 [khubd] root 609 0.0 0.2 1816 596 ? Ss 22:08 0:00 /usr/sbin/inetd root 629 0.0 0.3 2136 768 ? Ss 22:08 0:00 /usr/sbin/cron root 635 0.0 0.3 2992 944 ? S 22:08 0:00 /bin/sh /etc/init.d/rc 2 root 637 0.0 0.3 2480 952 ? R 22:08 0:00 ps -aux Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 4989760 186476 4803284 4% / tmpfs 127884 0 127884 0% /lib/init/rw tmpfs 127884 0 127884 0% /dev/shm /dev/root.old 31729 21262 10467 68% /initrd /dev/sda1 992036 27972 914068 3% /boot /dev/sda4 481255488 544 481254944 1% /mnt root@LS-XHLA1F:/tmp/root/var/log#ちゃんと IP アドレス付いてるやん。謎。
標準ファームで ifconfig を実行すると、、、
root@LS-XHLA1F:/tmp/root/var/log# ifconfig eth1 Link encap:Ethernet HWaddr 00:1D:73:E4:48:DF inet addr:192.168.2.49 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:379 errors:0 dropped:0 overruns:0 frame:0 TX packets:303 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:58878 (57.4 KiB) TX bytes:96123 (93.8 KiB) Interrupt:15 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:31 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2826 (2.7 KiB) TX bytes:2826 (2.7 KiB) root@LS-XHLA1F:/tmp/root/var/log#あ、eth1 やん。buffalo の罠
でも、よく Ramroot の散歩を見直したら
: 780 root 2060 S /usr/local/sbin/clientUtil_server -i eth1 : 917 root 1620 S /sbin/dhcpcd -L /etc/dhcpc -h LS-XHL-EMDDB -t 15 -x -y -z 140 eth1 :とか、
eth1: link down eth1: started eth1: link up, full duplex, speed 1 Gbpsとか、いっぱい eth1 って出てる。
root@LS-XHLA1F:~# cd /tmp/root/etc/network root@LS-XHLA1F:/tmp/root/etc/network# cat interfaces ###################################################################### # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # See the interfaces(5) manpage for information on what options are # available. ###################################################################### # We always want the loopback interface. # auto lo iface lo inet loopback # To use dhcp: # # auto eth0 # iface eth0 inet dhcp # Static IP setup: (broadcast and gateway are optional) # auto eth0 iface eth0 inet static address 192.168.2.49 network 192.168.2.0 netmask 255.255.255.0 broadcast 192.168.2.255 gateway 192.168.2.1 root@LS-XHLA1F:/tmp/root/etc/network# mv interfaces interfaces.orig root@LS-XHLA1F:/tmp/root/etc/network# sed -e 's/eth0/eth1/g' interfaces.orig > interfaces root@LS-XHLA1F:/tmp/root/etc/network# diff interfaces.orig interfaces --- interfaces.orig 2009-02-15 21:09:12.826277590 +0900 +++ interfaces 2009-02-15 22:17:43.847957830 +0900 @@ -11,13 +11,13 @@ # To use dhcp: # -# auto eth0 -# iface eth0 inet dhcp +# auto eth1 +# iface eth1 inet dhcp # Static IP setup: (broadcast and gateway are optional) # -auto eth0 -iface eth0 inet static +auto eth1 +iface eth1 inet static address 192.168.2.49 network 192.168.2.0 netmask 255.255.255.0 root@LS-XHLA1F:/tmp/root/etc/network# ls -l interfaces* -rw-r--r-- 1 root root 627 Feb 15 22:17 interfaces -rw-r--r-- 1 root root 627 Feb 15 21:09 interfaces.orig root@LS-XHLA1F:/tmp/root/etc/network#
yasunari@sil:~$ telnet brick.yamasita.jp Trying 192.168.2.49... Connected to brick.yamasita.jp. Escape character is '^]'. Debian GNU/Linux lenny/sid brick login: guest Password: Linux brick 2.6.22.18 #132 Wed Jan 21 20:16:50 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@brick:/$ uname -a Linux brick 2.6.22.18 #132 Wed Jan 21 20:16:50 JST 2009 armv5tejl GNU/Linux guest@brick:/$ free total used free shared buffers cached Mem: 255772 54976 200796 0 32788 9056 -/+ buffers/cache: 13132 242640 Swap: 999992 0 999992 guest@brick:/$ cat /proc/cpuinfo Processor : ARM926EJ-S rev 1 (v5l) BogoMIPS : 1199.30 Features : swp half thumb fastmult edsp CPU implementer : 0x56 CPU architecture: 5TE CPU variant : 0x2 CPU part : 0x131 CPU revision : 1 Cache type : write-back Cache clean : cp15 c7 ops Cache lockdown : format C Cache format : Harvard I size : 16384 I assoc : 4 I line length : 32 I sets : 128 D size : 16384 D assoc : 4 D line length : 32 D sets : 128 Hardware : Feroceon-KW Revision : 0000 Serial : 0000000000000000 guest@brick:/$
一着?
|
← ハックキットのインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ あれとこれ |