[sane-devel] HP 7450C USB scanner failure with ADF

Thomas Frayne tomf@sjpc.org
29 Jun 2003 20:54:01 -0700


--=-RKQ6ngouQ5FBJDhEbC7Y
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Sun, 2003-06-29 at 14:25, Rene Rebe wrote:

> Hi,
> 
> On: Fri, 27 Jun 2003 23:11:10 +0200,
>     Henning Meier-Geinitz <henning@meier-geinitz.de> wrote:
> 

...

> 
> Which host controller chip and respective kernel driver is this?


Here are messages that may help answer your questions.  If this won't do
it, could you tell me how to find the answers to your questions?


Jun 29 07:33:03 localhost kernel: Linux version 2.4.20-18.9
(root@gozin3) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1
Wed Jun 4 15:04:35 PDT 2003  		Installed via up2date.
Jun 29 07:33:05 localhost kernel: usb.c: registered new driver usbdevfs
Jun 29 07:33:05 localhost kernel: usb.c: registered new driver hub
Jun 29 07:33:06 localhost kernel: PCI: Found IRQ 5 for device 00:0b.0
Jun 29 07:33:06 localhost kernel: usb-ohci.c: USB OHCI at membase
0xf0870000, IRQ 5
Jun 29 07:33:06 localhost kernel: usb-ohci.c: usb-00:0b.0, NEC
Corporation USB
Jun 29 07:33:06 localhost kernel: usb.c: new USB bus registered,
assigned bus number 1
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found
Jun 29 07:33:06 localhost kernel: hub.c: 3 ports detected
Jun 29 07:33:06 localhost kernel: PCI: Found IRQ 9 for device 00:0b.1
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 9 with 00:0a.0
Jun 29 07:33:06 localhost rc: Starting pcmcia:  succeeded
Jun 29 07:33:06 localhost kernel: usb-ohci.c: USB OHCI at membase
0xf0872000, IRQ 9
Jun 29 07:33:06 localhost kernel: usb-ohci.c: usb-00:0b.1, NEC
Corporation USB (#2)
Jun 29 07:33:06 localhost kernel: usb.c: new USB bus registered,
assigned bus number 2
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found
Jun 29 07:33:06 localhost kernel: hub.c: 2 ports detected
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:0b.0-1,
assigned address 2
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found
Jun 29 07:33:06 localhost kernel: hub.c: 4 ports detected
Jun 29 07:33:06 localhost kernel: PCI: Found IRQ 10 for device 00:0b.2
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 10 with 00:07.2
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 10 with 00:0d.0
Jun 29 07:33:06 localhost kernel: ehci-hcd 00:0b.2: NEC Corporation USB
2.0
Jun 29 07:33:06 localhost kernel: ehci-hcd 00:0b.2: irq 10, pci mem
f087a000
Jun 29 07:33:06 localhost kernel: usb.c: new USB bus registered,
assigned bus number 3
Jun 29 07:33:06 localhost kernel: PCI: 00:0b.2 PCI cache line size set
incorrectly (32 bytes) by BIOS/FW.
Jun 29 07:33:06 localhost kernel: PCI: 00:0b.2 PCI cache line size
corrected to 128.
Jun 29 07:33:06 localhost kernel: ehci-hcd 00:0b.2: USB 2.0 enabled,
EHCI 0.95, driver 2003-Jan-22
Jun 29 07:33:06 localhost kernel: usb.c: USB disconnect on device
00:0b.0-1 address 2
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found
Jun 29 07:33:06 localhost kernel: hub.c: 5 ports detected
Jun 29 07:33:06 localhost kernel: usb-uhci.c: $Revision: 1.275 $ time
07:14:02 May 29 2003
Jun 29 07:33:06 localhost kernel: usb-uhci.c: High bandwidth mode
enabled
Jun 29 07:33:06 localhost kernel: PCI: Found IRQ 10 for device 00:07.2
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 10 with 00:0b.2
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 10 with 00:0d.0
Jun 29 07:33:06 localhost kernel: usb-uhci.c: USB UHCI at I/O 0x9000,
IRQ 10
Jun 29 07:33:06 localhost kernel: usb-uhci.c: Detected 2 ports
Jun 29 07:33:06 localhost kernel: usb.c: new USB bus registered,
assigned bus number 4
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found
Jun 29 07:33:06 localhost kernel: hub.c: 2 ports detected
Jun 29 07:33:06 localhost kernel: usb-uhci.c: v1.275:USB Universal Host
Controller Interface driver
Jun 29 07:33:06 localhost kernel: usb.c: registered new driver hiddev
Jun 29 07:33:06 localhost kernel: usb.c: registered new driver hid
Jun 29 07:33:06 localhost kernel: hid-core.c: v1.8.1 Andreas Gal,
Vojtech Pavlik <vojtech@suse.cz>
Jun 29 07:33:06 localhost kernel: hid-core.c: USB HID support drivers
Jun 29 07:33:06 localhost kernel: mice: PS/2 mouse device common for all
mice
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:0b.2-1,
assigned address 2
Jun 29 07:33:06 localhost mount: mount: none already mounted or
/proc/bus/usb busy
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found
Jun 29 07:33:06 localhost mount: mount: according to mtab, usbdevfs is
already mounted on /proc/bus/usb
Jun 29 07:33:06 localhost kernel: hub.c: 4 ports detected
Jun 29 07:33:06 localhost netfs: Mounting other filesystems:  failed
Jun 29 07:33:06 localhost kernel: Adding Swap: 1582360k swap-space
(priority -1)
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:07.2-1,
assigned address 2
Jun 29 07:33:06 localhost kernel: usb.c: USB device 2 (vend/prod
0x3f0/0x801) is not claimed by any active driver.
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:0b.2-1.2,
assigned address 3
Jun 29 07:33:06 localhost kernel: usb.c: USB device 3 (vend/prod
0x2821/0x5001) is not claimed by any active driver.
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:0b.2-1.4,
assigned address 4
Jun 29 07:33:06 localhost kernel: usb.c: USB device 4 (vend/prod
0x3f0/0x3404) is not claimed by any active driver.
Jun 29 07:33:06 localhost kernel: Initializing USB Mass Storage
driver...
Jun 29 07:33:06 localhost kernel: usb.c: registered new driver
usb-storage
Jun 29 07:33:07 localhost kernel: scsi1 : SCSI emulation for USB Mass
Storage devices
Jun 29 07:33:07 localhost kernel:   Vendor: ASUS      Model:
CRW-5224A         Rev: 1.00
Jun 29 07:33:07 localhost kernel:   Type:  
CD-ROM                             ANSI SCSI revision: 02
Jun 29 07:33:07 localhost kernel: USB Mass Storage support registered.
Jun 29 07:33:07 localhost kernel: hdc: attached ide-scsi driver.
Jun 29 07:33:07 localhost kernel: scsi2 : SCSI host adapter emulation
for IDE ATAPI devices
Jun 29 07:33:07 localhost kernel:   Vendor: HP        Model: CD-Writer+
8100   Rev: 1.0g
Jun 29 07:33:07 localhost kernel:   Type:  
CD-ROM                             ANSI SCSI revision: 02
Jun 29 07:33:07 localhost kernel: usb.c: registered new driver usblp
Jun 29 07:33:07 localhost kernel: printer.c: usblp0: USB Bidirectional
printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3404




> 
> If communication via libusb is not reliable for you, you still can use
> the "deprecated" hpusbscsi driver in the kernel - but _not_ the
> scanner driver.


I've tried so many configuration variations over the last couple of
weeks that I've gotten confused about what configuration settings do
what.  I don't think I understand the terminology.

I now think I should avoid using the scanner driver.  Would
rmmod scanner 
do this for me, or is something else necessary?

I would like to use libusb, but I have not been able to figure out what
causes the libusb driver to be loaded.  Some parts of my system refer to
usbfs; others refer to usbdevfs.  I think I need everything in the
system refering to one or everything to the other, but when I tried
changing the references to usbfs, I produced a system that would not
boot, and had to restore a backup.

What is the best way to get back to a clean system?
Is there a modprobe command I should be using to load the libusb
driver?  If so, should I add it to /etc/rc.d/rc.local to get it to run
during boot?

I currently have hpusbbscsi disabled.  Should both libusb and hpusbbscsi
be enabled?


...

> 
> The scanner driver will not work - because of the missing interrupt
> endpoint notification support - but I do not want to support a 3rd "to
> be removed in the future" access method. So I think hpusbscsi and
> libusb should be ok.
> 



--=-RKQ6ngouQ5FBJDhEbC7Y
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.9">
</HEAD>
<BODY>
On Sun, 2003-06-29 at 14:25, Rene Rebe wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373" SIZE="3"><I>Hi,

On: Fri, 27 Jun 2003 23:11:10 +0200,
    Henning Meier-Geinitz &lt;henning@meier-geinitz.de&gt; wrote:
</I></FONT></PRE>
</BLOCKQUOTE>
<FONT SIZE="3">...</FONT>
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373" SIZE="3"><I>
Which host controller chip and respective kernel driver is this?</I></FONT></PRE>
</BLOCKQUOTE>
<FONT SIZE="3"></FONT><BR>
<FONT SIZE="4"><B>Here are messages that may help answer your questions.&nbsp; If this won't do it, could you tell me how to find the answers to your questions?</B></FONT><BR>
<FONT SIZE="3"><BR>
<BR>
Jun 29 07:33:03 localhost kernel: Linux version 2.4.20-18.9 (root@gozin3) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Wed Jun 4 15:04:35 PDT 2003&nbsp; 		Installed via up2date.<BR>
Jun 29 07:33:05 localhost kernel: usb.c: registered new driver usbdevfs<BR>
Jun 29 07:33:05 localhost kernel: usb.c: registered new driver hub<BR>
Jun 29 07:33:06 localhost kernel: PCI: Found IRQ 5 for device 00:0b.0<BR>
Jun 29 07:33:06 localhost kernel: usb-ohci.c: USB OHCI at membase 0xf0870000, IRQ 5<BR>
Jun 29 07:33:06 localhost kernel: usb-ohci.c: usb-00:0b.0, NEC Corporation USB<BR>
Jun 29 07:33:06 localhost kernel: usb.c: new USB bus registered, assigned bus number 1<BR>
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found<BR>
Jun 29 07:33:06 localhost kernel: hub.c: 3 ports detected<BR>
Jun 29 07:33:06 localhost kernel: PCI: Found IRQ 9 for device 00:0b.1<BR>
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 9 with 00:0a.0<BR>
Jun 29 07:33:06 localhost rc: Starting pcmcia:&nbsp; succeeded<BR>
Jun 29 07:33:06 localhost kernel: usb-ohci.c: USB OHCI at membase 0xf0872000, IRQ 9<BR>
Jun 29 07:33:06 localhost kernel: usb-ohci.c: usb-00:0b.1, NEC Corporation USB (#2)<BR>
Jun 29 07:33:06 localhost kernel: usb.c: new USB bus registered, assigned bus number 2<BR>
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found<BR>
Jun 29 07:33:06 localhost kernel: hub.c: 2 ports detected<BR>
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:0b.0-1, assigned address 2<BR>
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found<BR>
Jun 29 07:33:06 localhost kernel: hub.c: 4 ports detected<BR>
Jun 29 07:33:06 localhost kernel: PCI: Found IRQ 10 for device 00:0b.2<BR>
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 10 with 00:07.2<BR>
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 10 with 00:0d.0<BR>
Jun 29 07:33:06 localhost kernel: ehci-hcd 00:0b.2: NEC Corporation USB 2.0<BR>
Jun 29 07:33:06 localhost kernel: ehci-hcd 00:0b.2: irq 10, pci mem f087a000<BR>
Jun 29 07:33:06 localhost kernel: usb.c: new USB bus registered, assigned bus number 3<BR>
Jun 29 07:33:06 localhost kernel: PCI: 00:0b.2 PCI cache line size set incorrectly (32 bytes) by BIOS/FW.<BR>
Jun 29 07:33:06 localhost kernel: PCI: 00:0b.2 PCI cache line size corrected to 128.<BR>
Jun 29 07:33:06 localhost kernel: ehci-hcd 00:0b.2: USB 2.0 enabled, EHCI 0.95, driver 2003-Jan-22<BR>
Jun 29 07:33:06 localhost kernel: usb.c: USB disconnect on device 00:0b.0-1 address 2<BR>
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found<BR>
Jun 29 07:33:06 localhost kernel: hub.c: 5 ports detected<BR>
Jun 29 07:33:06 localhost kernel: usb-uhci.c: $Revision: 1.275 $ time 07:14:02 May 29 2003<BR>
Jun 29 07:33:06 localhost kernel: usb-uhci.c: High bandwidth mode enabled<BR>
Jun 29 07:33:06 localhost kernel: PCI: Found IRQ 10 for device 00:07.2<BR>
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 10 with 00:0b.2<BR>
Jun 29 07:33:06 localhost kernel: PCI: Sharing IRQ 10 with 00:0d.0<BR>
Jun 29 07:33:06 localhost kernel: usb-uhci.c: USB UHCI at I/O 0x9000, IRQ 10<BR>
Jun 29 07:33:06 localhost kernel: usb-uhci.c: Detected 2 ports<BR>
Jun 29 07:33:06 localhost kernel: usb.c: new USB bus registered, assigned bus number 4<BR>
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found<BR>
Jun 29 07:33:06 localhost kernel: hub.c: 2 ports detected<BR>
Jun 29 07:33:06 localhost kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver<BR>
Jun 29 07:33:06 localhost kernel: usb.c: registered new driver hiddev<BR>
Jun 29 07:33:06 localhost kernel: usb.c: registered new driver hid<BR>
Jun 29 07:33:06 localhost kernel: hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik &lt;</FONT><A HREF="mailto:vojtech@suse.cz"><FONT SIZE="3">vojtech@suse.cz</FONT></A><FONT SIZE="3">&gt;<BR>
Jun 29 07:33:06 localhost kernel: hid-core.c: USB HID support drivers<BR>
Jun 29 07:33:06 localhost kernel: mice: PS/2 mouse device common for all mice<BR>
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:0b.2-1, assigned address 2<BR>
Jun 29 07:33:06 localhost mount: mount: none already mounted or /proc/bus/usb busy<BR>
Jun 29 07:33:06 localhost kernel: hub.c: USB hub found<BR>
<B>Jun 29 07:33:06 localhost mount: mount: according to mtab, usbdevfs is already mounted on /proc/bus/usb</B><BR>
Jun 29 07:33:06 localhost kernel: hub.c: 4 ports detected<BR>
Jun 29 07:33:06 localhost netfs: Mounting other filesystems:&nbsp; failed<BR>
Jun 29 07:33:06 localhost kernel: Adding Swap: 1582360k swap-space (priority -1)<BR>
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:07.2-1, assigned address 2<BR>
<B>Jun 29 07:33:06 localhost kernel: usb.c: USB device 2 (vend/prod 0x3f0/0x801) is not claimed by any active driver.</B><BR>
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:0b.2-1.2, assigned address 3<BR>
Jun 29 07:33:06 localhost kernel: usb.c: USB device 3 (vend/prod 0x2821/0x5001) is not claimed by any active driver.<BR>
Jun 29 07:33:06 localhost kernel: hub.c: new USB device 00:0b.2-1.4, assigned address 4<BR>
Jun 29 07:33:06 localhost kernel: usb.c: USB device 4 (vend/prod 0x3f0/0x3404) is not claimed by any active driver.<BR>
Jun 29 07:33:06 localhost kernel: Initializing USB Mass Storage driver...<BR>
Jun 29 07:33:06 localhost kernel: usb.c: registered new driver usb-storage<BR>
Jun 29 07:33:07 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices<BR>
Jun 29 07:33:07 localhost kernel:&nbsp;&nbsp; Vendor: ASUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Model: CRW-5224A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rev: 1.00<BR>
Jun 29 07:33:07 localhost kernel:&nbsp;&nbsp; Type:&nbsp;&nbsp; CD-ROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANSI SCSI revision: 02<BR>
Jun 29 07:33:07 localhost kernel: USB Mass Storage support registered.<BR>
Jun 29 07:33:07 localhost kernel: hdc: attached ide-scsi driver.<BR>
Jun 29 07:33:07 localhost kernel: scsi2 : SCSI host adapter emulation for IDE ATAPI devices<BR>
Jun 29 07:33:07 localhost kernel:&nbsp;&nbsp; Vendor: HP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Model: CD-Writer+ 8100&nbsp;&nbsp; Rev: 1.0g<BR>
Jun 29 07:33:07 localhost kernel:&nbsp;&nbsp; Type:&nbsp;&nbsp; CD-ROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANSI SCSI revision: 02<BR>
Jun 29 07:33:07 localhost kernel: usb.c: registered new driver usblp<BR>
Jun 29 07:33:07 localhost kernel: printer.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3404<BR>
<BR>
<BR>
</FONT><BR>
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373" SIZE="3"><I>
If communication via libusb is not reliable for you, you still can use
the &quot;deprecated&quot; hpusbscsi driver in the kernel - but _not_ the
scanner driver.</I></FONT></PRE>
</BLOCKQUOTE>
<FONT SIZE="3"></FONT><BR>
<FONT SIZE="4"><B>I've tried so many configuration variations over the last couple of weeks that I've gotten confused about what configuration settings do what.&nbsp; I don't think I understand the terminology.<BR>
<BR>
I now think I should avoid using the scanner driver.&nbsp; Would<BR>
rmmod scanner <BR>
do this for me, or is something else necessary?<BR>
<BR>
I would like to use libusb, but I have not been able to figure out what causes the libusb driver to be loaded.&nbsp; Some parts of my system refer to usbfs; others refer to usbdevfs.&nbsp; I think I need everything in the system refering to one or everything to the other, but when I tried changing the references to usbfs, I produced a system that would not boot, and had to restore a backup.<BR>
<BR>
What is the best way to get back to a clean system?<BR>
Is there a modprobe command I should be using to load the libusb driver?&nbsp; If so, should I add it to /etc/rc.d/rc.local to get it to run during boot?<BR>
<BR>
I currently have hpusbbscsi disabled.&nbsp; Should both libusb and hpusbbscsi be enabled?</B></FONT><BR>
<FONT SIZE="3"><BR>
<BR>
...</FONT>
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373" SIZE="3"><I>
The scanner driver will not work - because of the missing interrupt
endpoint notification support - but I do not want to support a 3rd &quot;to
be removed in the future&quot; access method. So I think hpusbscsi and
libusb should be ok.
</I></FONT></PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>

--=-RKQ6ngouQ5FBJDhEbC7Y--