KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login: root Password: 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 15976 49560 24% / /dev/ram1 8192 144 8048 2% /mnt/ram /dev/sda4 309304924 857428 308447496 0% /mnt/disk1 /dev/mtd3 192512 4368 188144 2% /mnt/mtd ~ # umount /mnt/disk1 ~ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtd2 65536 15976 49560 24% / /dev/ram1 8192 152 8040 2% /mnt/ram /dev/mtd3 192512 4368 188144 2% /mnt/mtd ~ #
~ # dd if=/dev/zero of=/dev/sda1 bs=1 count=3 3+0 records in 3+0 records out ~ # 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 ~ # ~ # 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): 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. Syncing disks. ~ #
hddrootfs.tar.gz は、、、厳密には uImage.buffalo に対応したものが必要
~ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtd2 65536 15984 49552 24% / /dev/ram1 8192 152 8040 2% /mnt/ram /dev/mtd3 192512 72564 119948 38% /mnt/mtd /dev/sda1 54416 5831 45776 11% /mnt/boot /dev/sda2 2929652 226384 2703268 8% /mnt/rootfs ~ # ls /mnt/boot/ lost+found uImage.buffalo ~ # ls -l /mnt/boot/ drwx------ 2 root root 12288 May 21 00:02 lost+found -rwxrw-rw- 1 nobody nogroup 1736612 May 14 08:37 uImage.buffalo ~ # ls -l /mnt/mtd/uImage.buffalo -rwxrw-rw- 1 nobody nogroup 1736612 May 14 08:37 /mnt/mtd/uImage.buffalo ~ # ls /mnt/rootfs/ bin boot dev etc home lib mnt proc root sbin share sys tmp usr var ~ #mtd device に置いた uImage.buffalo がちゃんと /boot に置かれている。
KUROUTOSHIKOU KUROBOX Series KUROBOX-PRO login: root Password: BusyBox v1.1.1 (2006.11.29-02:37+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ # uname -a Linux KUROBOX-PRO 2.6.12.6-arm1 #27 Tue Apr 10 22:47:16 JST 2007 armv5tejl unknown ~ # which gcc /usr/bin/gcc ~ #できあがり。
ここまでシリアルコンソール使用せず。。。。あとで意味が判ります
|
玄人志向
楽天市場 TSUKUMO ネットショップ Yahoo!ショッピング Sofmap クレバリー TwoTop |
|
玄人志向
TSUKUMO ネットショップ Yahoo! ショッピング パソQ ValuMore uWorks |
玄箱PROをハックしよう |
ASCII
楽天ブックス Amazon cbook24 e-hon JBook BK1 livedoorブックス 紀伊國屋書店BookWeb |
← 玄箱/Pro ファームウェア 1.02 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ シリアルコンソールなしにハックキット |