BUFFALO INC. LinkStation series LS-SL9AF login: root Last login: Thu Nov 1 00:25:39 UTC 2007 on ttyS0 Last login: Thu Nov 1 00:42:28 UTC 2007 on ttyS0 root@LS-SL9AF:~#
root@LS-SL9AF:~# cd /boot root@LS-SL9AF:/boot# ls builddate.txt log.tgz uImage.buffalo conf_save.tgz lost+found/ uImage.buffalo.org initrd.buffalo u-boot_lssl.bin* root@LS-SL9AF:/boot# dd if=initrd.buffalo of=initrd.gz bs=64 skip=1 150276+1 records in 150276+1 records out root@LS-SL9AF:/boot# gunzip initrd.gz root@LS-SL9AF:/boot# mkdir /tmp/root root@LS-SL9AF:/boot# mount -o loop initrd /tmp/root root@LS-SL9AF:/boot#
root@LS-SL9AF:/boot# cd /tmp/root/etc/ root@LS-SL9AF:/tmp/root/etc# vi shadow : : root@LS-SL9AF:/tmp/root/etc# grep root shadow root::11009:0:99999:7::: root@LS-SL9AF:/tmp/root/etc#
root@LS-SL9AF:/tmp/root/etc# cd /boot
root@LS-SL9AF:/boot# mv initrd.buffalo{,.orig}
root@LS-SL9AF:/boot# gzip initrd
Bogo MIPS 266 なので、さすがに時間が掛かる
root@LS-SL9AF:/boot#終わった。
root@LS-SL9AF:/boot# mkimage -bash: mkimage: command not found root@LS-SL9AF:/boot#ない。
これで、mkimage が使えるようになる。
root@LS-SL9AF:/boot# /mnt/disk1/share/hackkit/mkimage
Usage: /mnt/disk1/share/hackkit/mkimage -l image
          -l ==> list image header information
       /mnt/disk1/share/hackkit/mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
          -A ==> set architecture to 'arch'
          -O ==> set operating system to 'os'
          -T ==> set image type to 'type'
          -C ==> set compression type 'comp'
          -a ==> set load address to 'addr' (hex)
          -e ==> set entry point to 'ep' (hex)
          -n ==> set image name to 'name'
          -d ==> use image data from 'datafile'
          -x ==> set XIP (execute in place)
root@LS-SL9AF:/boot#
root@LS-SL9AF:/boot# /mnt/disk1/share/hackkit/mkimage -A ARM -O Linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initrd -d initrd.gz initrd.buffalo Image Name: initrd Created: Thu Nov 1 00:55:28 2007 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9567382 Bytes = 9343.15 kB = 9.12 MB Load Address: 0x00000000 Entry Point: 0x00000000 root@LS-SL9AF:/boot# ls -l initrd.buffalo* -rw-r--r-- 1 root root 9567446 Nov 1 00:55 initrd.buffalo -rw-r--r-- 1 root root 9617733 Jun 18 2012 initrd.buffalo.orig root@LS-SL9AF:/boot#おー。時計を合わせていなかった、、、
root@LS-SL9AF:/boot# umount /tmp/root root@LS-SL9AF:/boot#
root@LS-SL9AF:/boot# reboot root@LS-SL9AF:/boot# --- rcDown --- ===== exec:shutdown_start.sh ===== called shutdown_start /etc/init.d/shutdown_start.sh : :
: : ---- in linuxrc --- Version 1.00 2008/ 7/ 1 grep: /var/tmp/devlink: No such file or directory Thu Nov 1 00:58:56 JST 2007 linuxrc:choose operation (timeout 4[s]) 1:RamRoot other:HddRoot ?ここで 1 を入力する
1:RamRoot other:HddRoot ? 1 -RamdiskRoot- md: md0 stopped. mdadm: stopped /dev/md0 : : BUFFALO INC. LinkStation series LS-SL-EM9AF login:
BUFFALO INC. LinkStation series LS-SL-EM9AF login: root No mail. root@LS-SL-EM9AF:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 31729 23925 7804 75% / devpts 10240 100 10140 1% /dev/pts udev 10240 100 10140 1% /dev /dev/ram1 15360 664 14696 4% /mnt/ram root@LS-SL-EM9AF:~# cat /proc/buffalo/board_info BoardId=f0 BoardName=BUFFALO_BOARD BoardStrap=7e root@LS-SL-EM9AF:~#あいげってぃと!
| 
 | 
| ← ファームウェア 1.60 の散歩 | ハックの記録 LinkStation/玄箱 をハックしよう | → ハックキットのインストール | 
Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市