apple / cups

Apple CUPS Sources
https://www.cups.org
Apache License 2.0
1.96k stars 465 forks source link

backend usb not recognized ,parallel can find #4639

Closed michaelrsweet closed 9 years ago

michaelrsweet commented 9 years ago

Version: 2.0.2 CUPS.org User: topo2000

We are trying to connect a Xerox Phaser 6140 via usb to our Epson R230,When I try to add a new printer that is connected via USB cable, the "Add Printer" shows "Local Printers:EPSON Stylus Photo R230 LPT #1 (EPSON Stylus Photo R230)" for parallel connection,but it does not work,I remove nod usblp or chgrp lp for /dev/bus/1/* ,it still not work. Im working in Linux3.5.0 what's wrong?I am Crazy。 [root@FriendlyARM mime]# lsmod usblp 10612 0 - Live 0xbf248000 libertas_sdio 8709 0 - Live 0xbf242000 (O) libertas 55256 1 libertas_sdio, Live 0xbf22f000 (O) zd1211rw 45782 0 - Live 0xbf21e000 (O) rt2800usb 12422 0 - Live 0xbf216000 (O) rt2800lib 47581 1 rt2800usb, Live 0xbf207000 (O) rt73usb 20262 0 - Live 0xbf1ff000 (O) rt2x00usb 7569 2 rt2800usb,rt73usb, Live 0xbf1fa000 (O) rt2x00lib 30882 4 rt2800usb,rt2800lib,rt73usb,rt2x00usb, Live 0xbf1ee000 (O) ath9k_htc 49200 0 - Live 0xbf1dc000 (O) mac80211 404196 5 zd1211rw,rt2800lib,rt2x00usb,rt2x00lib,ath9k_htc, Live 0xbf16b000 (O) ath9k_common 1579 1 ath9k_htc, Live 0xbf167000 (O) ath9k_hw 352144 2 ath9k_htc,ath9k_common, Live 0xbf10b000 (O) ath 13618 3 ath9k_htc,ath9k_common,ath9k_hw, Live 0xbf104000 (O) cfg80211 365655 6 libertas,zd1211rw,rt2x00lib,ath9k_htc,mac80211,ath, Live 0xbf09d000 (O) compat 7095 10 libertas_sdio,libertas,zd1211rw,rt2800usb,rt73usb,ath9k_htc,mac80211,ath9k_common,ath9k_hw,cfg80211, Live 0xbf098000 (O) rtl8192cu 506243 0 - Live 0xbf00d000 (O) snd_soc_tiny4412_wm8960 4349 0 - Live 0xbf008000 snd_soc_wm8960 17089 1 - Live 0xbf000000

[root@FriendlyARM /]# ldd /opt/local/cups2.0.2/lib/cups/backend/usb libusb-1.0.so.0 => /usr/lib/libusb-1.0.so.0 (0xb6f44000) libcups.so.2 => /opt/local/cups2.0.2/lib/libcups.so.2 (0xb6ee4000) libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0xb6ed0000) libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0xb6eb9000) libz.so.1 => /usr/lib/libz.so.1 (0xb6e9b000) libpthread.so.0 => /lib/libpthread.so.0 (0xb6e7b000) libm.so.6 => /lib/libm.so.6 (0xb6e09000) libcrypt.so.1 => /lib/libcrypt.so.1 (0xb6dd2000) libc.so.6 => /lib/libc.so.6 (0xb6ca1000) /lib/ld-linux.so.3 (0xb6f59000) librt.so.1 => /lib/librt.so.1 (0xb6c92000) libssp.so.0 => /usr/lib/libssp.so.0 (0xb6c87000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6c74000) libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb6c32000) libdl.so.2 => /lib/libdl.so.2 (0xb6c27000) [root@FriendlyARM /]# usb DEBUG: Loading USB quirks from "/opt/local/cups2.0.2/share/cups/usb". DEBUG: Loaded 72 quirks. DEBUG: list_devices DEBUG: libusb_get_device_list=8

[root@FriendlyARM /]# ldd /bin/lsusb libusb-0.1.so.4 => /lib/libusb-0.1.so.4 (0xb6fca000) libc.so.6 => /lib/libc.so.6 (0xb6e99000) /lib/ld-linux.so.3 (0xb6fda000) [root@FriendlyARM /]# lsusb Bus 2 Device 1: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 1 Device 7: ID 04b8:0005 Seiko Epson Corp. Stylus D88+ Bus 1 Device 6: ID 0bda:8176 Realtek Semiconductor Corp. Bus 1 Device 5: ID 1a40:0101 TERMINUS TECHNOLOGY INC. Bus 1 Device 1: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 1 Device 2: ID 0424:2640 Standard Microsystems Corp. Bus 1 Device 4: ID 0a46:9621 Davicom Semiconductor, Inc. Bus 1 Device 3: ID 0424:4040 Standard Microsystems Corp.

[root@FriendlyARM /]# ls -l /dev/bus/usb// crw-r--r-- 1 root root 189, 0 Jun 1 2015 /dev/bus/usb/1/1 crw-r--r-- 1 root root 189, 1 Jun 1 2015 /dev/bus/usb/1/2 crw-r--r-- 1 root root 189, 2 Jun 1 2015 /dev/bus/usb/1/3 crw-r--r-- 1 root root 189, 3 Jun 1 2015 /dev/bus/usb/1/4 crw-rw-rw- 1 root root 189, 4 Jun 1 06:27 /dev/bus/usb/1/5 crw-rw-rw- 1 root root 189, 5 Jun 1 06:27 /dev/bus/usb/1/6 crw-rw-rw- 1 root root 189, 6 Jun 1 06:27 /dev/bus/usb/1/7 crw-r--r-- 1 root root 189, 128 Jun 1 2015 /dev/bus/usb/2/1

[root@FriendlyARM /]# lpinfo -v network ipp network http direct parallel:/dev/lp0 network lpd network socket

[root@FriendlyARM /]# ls -l /dev/usb/lp0 crw-rw-rw- 1 root lp 180, 0 Jun 1 06:49 /dev/usb/lp0

[root@FriendlyARM /]# usb_printerid /dev/usb/lp0 GET_DEVICE_ID string: MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus Photo R230;CLS:PRINTER;DES:EPSON Stylus Photo R230;

michaelrsweet commented 9 years ago

CUPS.org User: topo2000

[root@FriendlyARM /]# lsusb -v Bus 2 Device 1: ID 1d6b:0001 Linux Foundation 1.1 root hub Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 Full speed (or root) hub bMaxPacketSize0 64 idVendor 0x1d6b Linux Foundation idProduct 0x0001 1.1 root hub bcdDevice 3.05 iManufacturer 3 Linux 3.5.0-FriendlyARM ohci_hcd iProduct 2 EXYNOS OHCI Host Controller iSerial 1 exynos-ohci bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 255 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 3 wHubCharacteristic 0x0002 No power switching (usb 1.0) Ganged overcurrent protection bPwrOn2PwrGood 2 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable 0x00 PortPwrCtrlMask 0xff Hub Port Status: Port 1: 0000.0100 power Port 2: 0000.0100 power Port 3: 0000.0100 power Device Status: 0x0001 Self Powered

Bus 1 Device 7: ID 04b8:0005 Seiko Epson Corp. Stylus D88+ Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x04b8 Seiko Epson Corp. idProduct 0x0005 Stylus D88+ bcdDevice 1.00 iManufacturer 1 EPSON iProduct 2 USB Printer iSerial 3 L21P20710181114460 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 7 Printer bInterfaceSubClass 1 Printer bInterfaceProtocol 2 Bidirectional iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Device Status: 0x0001 Self Powered

Bus 1 Device 6: ID 0bda:8176 Realtek Semiconductor Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0bda Realtek Semiconductor Corp. idProduct 0x8176 bcdDevice 2.00 iManufacturer 1 Realtek iProduct 2 802.11n WLAN Adapter iSerial 3 00e04c000001 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 46 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 4 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x84 EP 4 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0000 (Bus Powered)

Bus 1 Device 5: ID 1a40:0101 TERMINUS TECHNOLOGY INC. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 1 Single TT bMaxPacketSize0 64 idVendor 0x1a40 TERMINUS TECHNOLOGY INC. idProduct 0x0101 bcdDevice 1.11 iManufacturer 0 iProduct 1 USB 2.0 Hub iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 4 wHubCharacteristic 0x0000 Ganged power switching Ganged overcurrent protection TT think time 8 FS bits bPwrOn2PwrGood 50 * 2 milli seconds bHubContrCurrent 100 milli Ampere DeviceRemovable 0x00 PortPwrCtrlMask 0xff Hub Port Status: Port 1: 0000.0100 power Port 2: 0000.0503 highspeed power enable connect Port 3: 0000.0103 power enable connect Port 4: 0000.0100 power Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 Full speed (or root) hub bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0001 Self Powered

Bus 1 Device 1: ID 1d6b:0002 Linux Foundation 2.0 root hub Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 Full speed (or root) hub bMaxPacketSize0 64 idVendor 0x1d6b Linux Foundation idProduct 0x0002 2.0 root hub bcdDevice 3.05 iManufacturer 3 Linux 3.5.0-FriendlyARM ehci_hcd iProduct 2 S5P EHCI Host Controller iSerial 1 s5p-ehci bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0004 1x 4 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 3 wHubCharacteristic 0x0009 Per-port power switching Per-port overcurrent protection bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable 0x00 PortPwrCtrlMask 0xff Hub Port Status: Port 1: 0000.0100 power Port 2: 0000.0503 highspeed power enable connect Port 3: 0000.0100 power Device Status: 0x0001 Self Powered

Bus 1 Device 2: ID 0424:2640 Standard Microsystems Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 1 Single TT bMaxPacketSize0 64 idVendor 0x0424 Standard Microsystems Corp. idProduct 0x2640 bcdDevice a.a0 iManufacturer 0 iProduct 0 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 3 wHubCharacteristic 0x000d Per-port power switching Compound device Per-port overcurrent protection TT think time 8 FS bits bPwrOn2PwrGood 50 * 2 milli seconds bHubContrCurrent 1 milli Ampere DeviceRemovable 0x02 PortPwrCtrlMask 0xff Hub Port Status: Port 1: 0000.0503 highspeed power enable connect Port 2: 0000.0503 highspeed power enable connect Port 3: 0000.0503 highspeed power enable connect Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 Full speed (or root) hub bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0001 Self Powered

Bus 1 Device 4: ID 0a46:9621 Davicom Semiconductor, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0a46 Davicom Semiconductor, Inc. idProduct 0x9621 bcdDevice 1.01 iManufacturer 1 iProduct 2 iSerial 3 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 39 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 180mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 0 (Defined at Interface level) bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0000 (Bus Powered)

Bus 1 Device 3: ID 0424:4040 Standard Microsystems Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0424 Standard Microsystems Corp. idProduct 0x4040 bcdDevice 2.01 iManufacturer 1 Generic iProduct 2 Ultra Fast Media Reader iSerial 3 000000264001 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 96mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0000 (Bus Powered)

michaelrsweet commented 9 years ago

CUPS.org User: mike

Please contact your Linux distributor for this issue.

The usblp module is not compatible with the libusb-based USB backend.