Hit any key to stop autoboot: 0 Marvell>> setenv bootargs_root root=/dev/mtdblock2 rw panic=5 Marvell>> setenv bootcmd 'nboot $(default_kernel_addr) 0 $(nand_uImage_offset);bootm $(default_kernel_addr)' Marvell>> setenv nand_boot yes Marvell>> setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) Marvell>> boot
KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login: root Password: login[759]: root login on `ttyS0' BusyBox v1.1.1 (2007.04.06-12:02+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ #
~ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtd2 65536 15996 49540 24% / /dev/ram1 8192 144 8048 2% /mnt/ram /dev/sda4 309304924 287168 309017756 0% /mnt/disk1 /dev/mtd3 192512 72564 119948 38% /mnt/mtd ~ #/mnt/disk1/share/ にある hddrootfs.tar.gz を /mnt/mtd に置く
~ # ls /mnt/disk1/share/ HackKit-1.00 HackKit-2.00 hddrootfs.tar.gz ~ # ls /mnt/mtd/ ChangeMeDevHDD ChangeMyUbootEnv hddrootfs.tar.gz uImage.buffalo ~ # (cd /mnt/disk1/share/; tar cf - hddrootfs.tar.gz )|(cd /mnt/mtd/; tar xvf -) hddrootfs.tar.gz ~ #
~ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtd2 65536 15996 49540 24% / /dev/ram1 8192 152 8040 2% /mnt/ram /dev/sda4 309304924 287168 309017756 0% /mnt/disk1 /dev/mtd3 192512 68816 123696 36% /mnt/mtd ~ # umount /mnt/disk1 ~ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtd2 65536 15996 49540 24% / /dev/ram1 8192 152 8040 2% /mnt/ram /dev/mtd3 192512 68816 123696 36% /mnt/mtd ~ #
~ # dd if=/dev/zero of=/dev/sda1 bs=1 count=3 3+0 records in 3+0 records out ~ # ^sda1^sda2 -sh: ^sda1^sda2: not found ~ # !dd:s/sda1/sda2/ -sh: !dd:s/sda1/sda2/: not found ~ # dd if=/dev/zero of=/dev/sda2 bs=1 count=3 3+0 records in 3+0 records out ~ # dd if=/dev/zero of=/dev/sda3 bs=1 count=3 3+0 records in 3+0 records out ~ # dd if=/dev/zero of=/dev/sda4 bs=1 count=3 3+0 records in 3+0 records out ~ #bash って ^ とか :s とかつかえんのか。
~ # fdisk /dev/sda The number of cylinders for this disk is set to 38913. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sda: 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/sda1 1 7 56196 83 Linux /dev/sda2 8 373 2939895 83 Linux /dev/sda3 374 390 136552+ 82 Linux swap /dev/sda4 391 38913 309435997+ 83 Linux 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: 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 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB) SCSI device sda: drive cache: write back sda: SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB) SCSI device sda: drive cache: write back sda: Syncing disks. ~ #
: Setting up networking.... * /etc/network/options is deprecated (see README.Debian of netbase). Setting up IP spoofing protection...done (rp_filter). Configuring network interfaces...eth0: link down done. Setting console screen modes and fonts. Initializing random number generator...done. Recovering nvi editor sessions...none found. INIT: Entering runlevel: 2 Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Starting MTA:eth0: link up<5>, full duplex<5>, speed 1 Gbps<5> exim4. * ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken Starting internet superserver: inetd. Starting deferred execution scheduler: atd. Starting periodic command scheduler: crond. Running local boot scripts (/etc/rc.local). Debian GNU/Linux 4.0 hackkit ttyS0 hackkit login:
hackkit:~# cat /etc/network/options ip_forward=no spoofprotect=yes syncookies=no hackkit:~# rm /etc/network/options hackkit:~#
hackkit:~# cat /var/log/exim4/paniclog 2007-05-27 04:28:51 socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned hackkit:~# date Sun May 27 17:20:35 JST 2007 hackkit:~#ヒョッとすると、ジェイルの中で apt-get dist-upgrade したときの物か???
hackkit:~# > /var/log/exim4/paniclog hackkit:~# ls -l /var/log/exim4/paniclog -rw-r----- 1 Debian-exim adm 0 May 27 17:22 /var/log/exim4/paniclog hackkit:~#
Setting up networking.... Configuring network interfaces...eth0: link down done. Setting console screen modes and fonts. Initializing random number generator...done. Recovering nvi editor sessions...none found. INIT: Entering runlevel: 2 Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Starting MTA:eth0: link up<5>, full duplex<5>, speed 1 Gbps<5> exim4. Starting internet superserver: inetd. Starting deferred execution scheduler: atd. Starting periodic command scheduler: crond. Running local boot scripts (/etc/rc.local). Debian GNU/Linux 4.0 hackkit ttyS0 hackkit login:
hackkit login: root Password: Last login: Sun May 27 17:23:45 2007 on ttyS0 Linux hackkit 2.6.12.6-arm1 #27 Tue Apr 10 22:47:16 JST 2007 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. hackkit:~#
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 : :
|
玄人志向
楽天市場 TSUKUMO ネットショップ Yahoo!ショッピング Sofmap クレバリー TwoTop |
|
玄人志向
TSUKUMO ネットショップ Yahoo! ショッピング パソQ ValuMore uWorks |
玄箱PROをハックしよう |
ASCII
楽天ブックス Amazon cbook24 e-hon JBook BK1 livedoorブックス 紀伊國屋書店BookWeb |
← 玄箱/Pro ハックキットのアーカイブの etch 化 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ etch 版玄箱/Pro ハックキットの不具合修正 |