こんなのも思いだせへんのや
mini:~# ls -l /proc/buffalo/usb* ls: /proc/buffalo/usb*: No such file or directory mini:~#またかい。探す。
mini:~# ls /proc/buffalo/ board_info cpu_status debug enet firmware gpio kernevnt power_sw mini:~# ls /proc/buffalo/gpio/ fan led power_control switch mini:~# ls /proc/buffalo/gpio/power_control/ hdd0 usb0 mini:~#あった。
mini:~# cat /proc/buffalo/gpio/power_control/usb0 off mini:~#現状 off。
mini:~# echo on > !$ echo on > /proc/buffalo/gpio/power_control/usb0 mini:~# !cat cat /proc/buffalo/gpio/power_control/usb0 on mini:~#書けた。
mini:~# tail -f /var/log/messages : : usb 1-1: new full speed USB device using ehci_platform and address 2 usb 1-1: configuration #1 chosen from 1 choice drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005 Nov 1 02:02:08 mini kernel: usb 1-1: new full speed USB device using ehci_platform and address 2 Nov 1 02:02:08 mini kernel: usb 1-1: configuration #1 chosen from 1 choice Nov 1 02:02:08 mini kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005認識した。
usb 1-1: USB disconnect, address 2 drivers/usb/class/usblp.c: usblp0: removed Nov 1 02:03:05 mini kernel: usb 1-1: USB disconnect, address 2 Nov 1 02:03:05 mini kernel: drivers/usb/class/usblp.c: usblp0: removed
usb 1-1: new high speed USB device using ehci_platform and address 3 usb 1-1: configuration #1 chosen from 1 choice scsi2 : SCSI emulation for USB Mass Storage devices Nov 1 02:03:13 mini kernel: usb 1-1: new high speed USB device using ehci_platform and address 3 Nov 1 02:03:13 mini kernel: usb 1-1: configuration #1 chosen from 1 choice Nov 1 02:03:13 mini kernel: scsi2 : SCSI emulation for USB Mass Storage devices Vendor: BUFFALO Model: ClipDrive Rev: 2.00 Type: Direct-Access ANSI SCSI revision: 02 Nov 1 02:03:18 mini kernel: Vendor: BUFFALO Model: ClipDrive Rev: 2.00 Nov 1 02:03:18 mini kernel: Type: Direct-Access ANSI SCSI revision: 02 ready SCSI device sdc: 256000 512-byte hdwr sectors (131 MB) sdc: Write Protect is off sdc: assuming drive cache: write through SCSI device sdc: 256000 512-byte hdwr sectors (131 MB) sdc: Write Protect is off sdc: assuming drive cache: write through sdc: sdc1 sd 2:0:0:0: Attached scsi removable disk sdc sd 2:0:0:0: Attached scsi generic sg2 type 0 Nov 1 02:03:19 mini kernel: ready Nov 1 02:03:19 mini kernel: SCSI device sdc: 256000 512-byte hdwr sectors (131 MB) Nov 1 02:03:19 mini kernel: sdc: Write Protect is off Nov 1 02:03:19 mini kernel: SCSI device sdc: 256000 512-byte hdwr sectors (131 MB) Nov 1 02:03:19 mini kernel: sdc: Write Protect is off Nov 1 02:03:20 mini kernel: sdc: sdc1 Nov 1 02:03:20 mini kernel: sd 2:0:0:0: Attached scsi removable disk sdc Nov 1 02:03:20 mini kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0マウントしてみた。
mini:~# ls /tmp/sdc (内緒) mini:~#
mini:/etc/init.d# diff -c usb.orig usb *** usb.orig Thu Nov 1 00:33:20 2007 --- usb Thu Nov 1 00:33:51 2007 *************** *** 2,7 **** --- 2,9 ---- case "$1" in start) + echo on > /proc/buffalo/gpio/power_control/usb0 + chroot /usr/local/buffalo mount /proc chroot /usr/local/buffalo insmod /lib/modules/2.6.16.16-arm1/kernel/drivers/usb/core/usbcore.ko chroot /usr/local/buffalo insmod /lib/modules/2.6.16.16-arm1/kernel/drivers/usb/host/ehci-marvell-hcd.ko *************** *** 13,18 **** --- 15,22 ---- ;; stop) chroot /usr/local/buffalo umount /proc + + echo off > /proc/buffalo/gpio/power_control/usb0 ;; *) echo "Usage: $0 {start|stop}" mini:/etc/init.d#
やれやれ
1)シリアルコンソールを使わないインストール方法の検討
2)インストーラ作成
|
← debian 化(25)モジュールのロード |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ワンタッチでUSB2.0接続とLAN接続を切り換えられる、1台2役のUSBHDD |