標準ファームを起動して、ハックキットを作り直す。
root@LS-CL701:~# cd /mnt/debinst root@LS-CL701:/mnt/debinst# vi etc/inittabT0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100
root@LS-CL701:/mnt/debinst# mkdir initrd root@LS-CL701:/mnt/debinst#
root@LS-CL701:/mnt/debinst# tar zcvf /mnt/disk1/share/debian/hackkit_081122.tar.gz . : : root@LS-CL701:/mnt/debinst#
root@LS-CL701:/mnt/disk1/share/debian# diff -u LS-CL_hackkit_0.02.sh LS-CL_hackkit_0.03.sh --- LS-CL_hackkit_0.02.sh Fri Nov 21 16:56:35 2008 +++ LS-CL_hackkit_0.03.sh Sat Nov 22 00:30:33 2008 @@ -12,7 +12,7 @@ JAIL=$MOUNTPOINT/usr/local/buffalo WORK=/mnt/disk1/share/debian -HACKKIT=$WORK/hackkit_081121.tar.gz +HACKKIT=$WORK/hackkit_081122.tar.gz #--------------------------------------------------------- # format @@ -70,7 +70,6 @@ echo "---- in modified linuxrc ---" -umount -a exit 0 EOF chmod 700 /tmp/root/linuxrc @@ -92,25 +91,7 @@ jail() { cd / - mkdir $JAIL - tar cf - \ - lib/ld-* \ - lib/lib* \ - lib/modules \ - sbin/ldconfig \ - sbin/insmod \ - sbin/lsmod \ - sbin/rmmod \ - dev/ttyS1 \ - dev/null \ - | (cd $JAIL ; tar xvf -) - - mkdir $JAIL/etc - echo /usr/local/lib > $JAIL/etc/ld.so.conf - chroot $JAIL ldconfig - - mkdir $JAIL/var - mkdir $JAIL/var/lock + tar cf - lib/modules | (cd $MOUNTPOINT ; tar xvf -) } #--------------------------------------------------------- @@ -155,24 +136,24 @@ case "\$1" in start) echo on > /proc/buffalo/gpio/power_control/usb0 - chroot /usr/local/buffalo insmod /lib/modules/*/kernel/drivers/usb/core/usbcore.ko - chroot /usr/local/buffalo insmod /lib/modules/*/kernel/drivers/usb/host/ehci-hcd.ko - chroot /usr/local/buffalo insmod /lib/modules/*/kernel/drivers/usb/host/ohci-hcd.ko - chroot /usr/local/buffalo insmod /lib/modules/*/kernel/drivers/usb/host/uhci-hcd.ko - chroot /usr/local/buffalo insmod /lib/modules/*/kernel/drivers/usb/storage/usb-storage.ko - chroot /usr/local/buffalo insmod /lib/modules/*/kernel/drivers/usb/class/usblp.ko - chroot /usr/local/buffalo insmod /lib/modules/*/kernel/fs/fat/fat.ko - chroot /usr/local/buffalo insmod /lib/modules/*/kernel/fs/vfat/vfat.ko + insmod /lib/modules/*/kernel/drivers/usb/core/usbcore.ko + insmod /lib/modules/*/kernel/drivers/usb/host/ehci-hcd.ko + insmod /lib/modules/*/kernel/drivers/usb/host/ohci-hcd.ko + insmod /lib/modules/*/kernel/drivers/usb/host/uhci-hcd.ko + insmod /lib/modules/*/kernel/drivers/usb/storage/usb-storage.ko + insmod /lib/modules/*/kernel/drivers/usb/class/usblp.ko + insmod /lib/modules/*/kernel/fs/fat/fat.ko + insmod /lib/modules/*/kernel/fs/vfat/vfat.ko ;; stop) - chroot /usr/local/buffalo rmmod vfat.ko - chroot /usr/local/buffalo rmmod fat.ko - chroot /usr/local/buffalo rmmod usblp.ko - chroot /usr/local/buffalo rmmod usb-storage.ko - chroot /usr/local/buffalo rmmod uhci-hcd.ko - chroot /usr/local/buffalo rmmod ohci-hcd.ko - chroot /usr/local/buffalo rmmod ehci-hcd.ko - chroot /usr/local/buffalo rmmod usbcore.ko + rmmod vfat.ko + rmmod fat.ko + rmmod usblp.ko + rmmod usb-storage.ko + rmmod uhci-hcd.ko + rmmod ohci-hcd.ko + rmmod ehci-hcd.ko + rmmod usbcore.ko echo off > /proc/buffalo/gpio/power_control/usb0 ;; *) @@ -203,6 +184,7 @@ case "\$1" in start) + echo on > /proc/buffalo/gpio/switch/sw_control /usr/local/sbin/kernelmon & ;; stop) root@LS-CL701:/mnt/disk1/share/debian#
完了!
|
← LS-HGLシリーズファームウェア Ver.1.06 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ lenny + armel のハックキットで最初の設定/パッケージのアップデート |