qube:~# tail -f /var/log/messages : : Feb 22 21:16:25 qube kernel: usb 2-1: new high speed USB device using ehci_marvell and address 2 Feb 22 21:16:25 qube kernel: usb 2-1: configuration #1 chosen from 1 choice Feb 22 21:16:25 qube kernel: scsi2 : SCSI emulation for USB Mass Storage devices Feb 22 21:16:30 qube kernel: scsi 2:0:0:0: Direct-Access BUFFALO ClipDrive 2.00 PQ: 0 ANSI: 2 Feb 22 21:16:31 qube kernel: ready Feb 22 21:16:31 qube kernel: sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB) Feb 22 21:16:31 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 22 21:16:31 qube kernel: sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB) Feb 22 21:16:31 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 22 21:16:31 qube kernel: sdb: sdb1 Feb 22 21:16:31 qube kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk Feb 22 21:16:31 qube kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0問題なさそう。
qube:~# mkdir /tmp/usb qube:~# mount /dev/sdb1 /tmp/usb qube:~# ls /tmp/usb/ (内緒) qube:~#全然問題なし。
qube:~# umount /tmp/usb qube:~#
qube:~# tail -f /var/log/messages : : Feb 22 21:26:19 qube kernel: usb 2-1: USB disconnect, address 2 : :しーん。
Clip Drive の LED も光らない。
また、機種依存。
qube:~# cd /proc/buffalo/gpio/ qube:/proc/buffalo/gpio# ls blink_enable_register data_out_enable_register led data_in_polarity_register data_out_register power_control data_in_register fan switch qube:/proc/buffalo/gpio# cd power_control/ qube:/proc/buffalo/gpio/power_control# ls hdd0 hdd1 hdd2 hdd3 usb0 usb1 qube:/proc/buffalo/gpio/power_control#usb0 か usb1 に on を出力すれば良さそう。
qube:/proc/buffalo/gpio/power_control# echo on > usb1 qube:/proc/buffalo/gpio/power_control# !tail tail -f /var/log/messages : : Feb 22 21:26:19 qube kernel: usb 2-1: USB disconnect, address 2 Feb 22 21:28:26 qube kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2 Feb 22 21:28:26 qube kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 22 21:28:26 qube kernel: scsi3 : SCSI emulation for USB Mass Storage devices Feb 22 21:28:31 qube kernel: scsi 3:0:0:0: Direct-Access BUFFALO ClipDrive 2.00 PQ: 0 ANSI: 2 Feb 22 21:28:32 qube kernel: ready Feb 22 21:28:32 qube kernel: sd 3:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB) Feb 22 21:28:32 qube kernel: sd 3:0:0:0: [sdb] Write Protect is off Feb 22 21:28:32 qube kernel: sd 3:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB) Feb 22 21:28:32 qube kernel: sd 3:0:0:0: [sdb] Write Protect is off Feb 22 21:28:32 qube kernel: sdb: sdb1 Feb 22 21:28:32 qube kernel: sd 3:0:0:0: [sdb] Attached SCSI removable disk Feb 22 21:28:32 qube kernel: sd 3:0:0:0: Attached scsi generic sg1 type 0ClipDrive の LED が光り、カーネルにも認識された。
qube:/proc/buffalo/gpio/power_control# mount /dev/sdb1 /tmp/usb/ qube:/proc/buffalo/gpio/power_control# ls /tmp/usb/ (内緒) qube:/proc/buffalo/gpio/power_control# umount /tmp/usb qube:/proc/buffalo/gpio/power_control#起動時に usb1 にも on を出力しないといけない。
|
← リファクタリング |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ USB プリンタ |