”modprobe scanner vendor=0x04b8 product=0x081c ” は /etc/rc.d/rc.modulesで 実行済みの為 スキャナの電源を投入すると
認識はされているようです。
# cat syslog Nov 17 21:45:52 sv kernel: Vendor: EPSON Model: PM Storage Rev: 1.00 Nov 17 21:45:52 sv kernel: Type: Direct-Access ANSI SCSI revision: 02 Nov 17 21:45:52 sv kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 Nov 17 21:45:53 sv kernel: Current 00:00: sns = 70 2 Nov 17 21:45:53 sv kernel: ASC=3a ASCQ= 0 Nov 17 21:45:53 sv kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00 Nov 17 21:45:53 sv kernel: sda : READ CAPACITY failed. Nov 17 21:45:53 sv kernel: sda : status = 1, message = 00, host = 0, driver = 08 Nov 17 21:45:53 sv kernel: Current sd00:00: sns = 70 2 Nov 17 21:45:53 sv kernel: ASC=3a ASCQ= 0 Nov 17 21:45:53 sv kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00 Nov 17 21:45:53 sv kernel: sda : block size assumed to be 512 bytes, disk size 1GB. Nov 17 21:45:53 sv kernel: I/O error: dev 08:00, sector 0 Nov 17 21:45:53 sv kernel: unable to read partition table
認識はされているようです。
# cat messages Nov 17 21:45:52 sv kernel: hub.c: new USB device 00:07.2-2, assigned address 2 Nov 17 21:45:52 sv kernel: scanner.c: USB scanner device (0x04b8/0x081c) now attached to scanner0 Nov 17 21:45:52 sv murasaki.usb[450]: usb device is added Nov 17 21:45:52 sv murasaki.usb[450]: vendor:0x4b8 product:0x81c Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0xff Isubclass:0xff Iprotocol:0xff Nov 17 21:45:52 sv murasaki.usb[451]: usb device is added Nov 17 21:45:52 sv murasaki.usb[451]: vendor:0x4b8 product:0x81c Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x7 Isubclass:0x1 Iprotocol:0x2 Nov 17 21:45:52 sv murasaki.usb[452]: usb device is added Nov 17 21:45:52 sv murasaki.usb[452]: vendor:0x4b8 product:0x81c Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x50 Nov 17 21:45:52 sv murasaki.usb[451]: MATCH(printer) -> match_flags:0x80 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x7 Isubclass:0x0 Iprotocol:0x0 Nov 17 21:45:52 sv murasaki.usb[452]: MATCH(alias-sd) -> match_flags:0x180 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x0 Nov 17 21:45:52 sv murasaki.usb[451]: MATCH(printer) -> match_flags:0x380 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x7 Isubclass:0x1 Iprotocol:0x2 Nov 17 21:45:52 sv murasaki.usb[450]: The device match nothing in mapfile Nov 17 21:45:52 sv murasaki.usb[450]: Please change MODULE in following line to the appropriate module name, add it to /etc/murasaki/murasaki.usbmap Nov 17 21:45:52 sv murasaki.usb[450]: MODULE 0x0383 0x4b8 0x81c 0 0 0x0 0x0 0x0 0xff 0xff 0xff 0x00000000 Nov 17 21:45:52 sv murasaki.usb[452]: MATCH(usb-storage) -> match_flags:0x380 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x50 Nov 17 21:45:52 sv murasaki.usb[451]: Loading printer Nov 17 21:45:52 sv murasaki.usb[452]: Dependence(usb-storage) was found Nov 17 21:45:52 sv murasaki.usb[452]: Dependence(sd_mod) was found Nov 17 21:45:52 sv murasaki.usb[452]: Dependence(scsi_mod) was found Nov 17 21:45:52 sv murasaki.usb[452]: Loading usb-storage Nov 17 21:45:52 sv murasaki.usb[452]: Loading sd_mod Nov 17 21:45:52 sv murasaki.usb[452]: Loading scsi_mod Nov 17 21:45:52 sv kernel: usb.c: registered new driver usblp Nov 17 21:45:52 sv kernel: printer.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x081C Nov 17 21:45:52 sv kernel: printer.c: v0.13: USB Printer Device Class driver Nov 17 21:45:52 sv kernel: Initializing USB Mass Storage driver... Nov 17 21:45:52 sv kernel: usb.c: registered new driver usb-storage Nov 17 21:45:52 sv kernel: scsi0 : SCSI emulation for USB Mass Storage devices Nov 17 21:45:53 sv kernel: sda: Unit Not Ready, sense: Nov 17 21:45:53 sv kernel: sda: I/O error: dev 08:00, sector 0 Nov 17 21:45:53 sv kernel: USB Mass Storage support registered.
ここまで みたら 切ったときは?
この場合は syslog には なんら現れなくて
/var/log/messages にだけ 現れます。
# cat messages Nov 17 22:04:19 sv kernel: usb.c: USB disconnect on device 00:07.2-2 address 2 Nov 17 22:04:19 sv kernel: printer.c: usblp0: removed Nov 17 22:04:19 sv murasaki.usb[468]: usb device is removed Nov 17 22:04:19 sv murasaki.usb[468]: vendor:0x4b8 product:0x81c Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0xff Isubclass:0xff Iprotocol:0xff Nov 17 22:04:19 sv murasaki.usb[469]: usb device is removed Nov 17 22:04:19 sv murasaki.usb[469]: vendor:0x4b8 product:0x81c Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x7 Isubclass:0x1 Iprotocol:0x2 Nov 17 22:04:19 sv murasaki.usb[468]: mousedev was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[468]: mousedev was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[468]: hid was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[468]: The device match nothing in mapfile Nov 17 22:04:19 sv murasaki.usb[468]: Please change MODULE in following line to the appropriate module name, add it to /etc/murasaki/murasaki.usbmap Nov 17 22:04:19 sv murasaki.usb[468]: MODULE 0x0383 0x4b8 0x81c 0 0 0x0 0x0 0x0 0xff 0xff 0xff 0x00000000 Nov 17 22:04:19 sv murasaki.usb[469]: mousedev was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[469]: mousedev was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[469]: MATCH(printer) -> match_flags:0x80 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x7 Isubclass:0x0 Iprotocol:0x0 Nov 17 22:04:19 sv murasaki.usb[469]: hid was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[469]: MATCH(printer) -> match_flags:0x380 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x7 Isubclass:0x1 Iprotocol:0x2 Nov 17 22:04:19 sv murasaki.usb[470]: usb device is removed Nov 17 22:04:19 sv murasaki.usb[470]: vendor:0x4b8 product:0x81c Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x50 Nov 17 22:04:19 sv murasaki.usb[470]: mousedev was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[470]: mousedev was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[470]: MATCH(alias-sd) -> match_flags:0x180 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x0 Nov 17 22:04:19 sv murasaki.usb[470]: hid was skipped in usbmap Nov 17 22:04:19 sv murasaki.usb[470]: MATCH(usb-storage) -> match_flags:0x380 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x50 Nov 17 22:04:19 sv murasaki.usb[470]: Dependence(usb-storage) was found Nov 17 22:04:19 sv murasaki.usb[470]: Dependence(sd_mod) was found Nov 17 22:04:19 sv murasaki.usb[470]: Dependence(scsi_mod) was found Nov 17 22:04:19 sv murasaki.usb[470]: Unloading usb-storage Nov 17 22:04:19 sv murasaki.usb[470]: Unloading sd_mod Nov 17 22:04:19 sv murasaki.usb[470]: Unloading scsi_mod Nov 17 22:04:19 sv kernel: usb.c: deregistering driver usb-storage Nov 17 22:04:19 sv murasaki.usb[469]: Unloading printer Nov 17 22:04:19 sv kernel: scsi : 0 hosts left. Nov 17 22:04:19 sv kernel: usb.c: deregistering driver usblp
いずれにせよ murasaki をまだ 理解していないので 以下は未対応という事 です
Nov 17 22:04:19 sv murasaki.usb[468]: Please change MODULE in following line to the appropriate module name, add it to /etc/murasaki/murasaki.usbmap Nov 17 22:04:19 sv murasaki.usb[468]: MODULE 0x0383 0x4b8 0x81c 0 0 0x0 0x0 0x0 0xff 0xff 0xff 0x00000000
未熟ものでおじゃります。
にゃんたろう 拝!
2008年11月17日 (月) 22:54:22 JST 作成