We have actually reproduced your problem on a powerpc running Ubuntu
(dapper). We get the same kernel message "(hpiod) did not claim
interface 0 before use". Same symtoms - prints ok, but scanning fails.
Dapper is running libusb 0.1.10a. 

Like I said before libusb is not claiming the interface as expected. For
our test we used a OJ 7400 and for that device hpiod will claim
interface #1 which is the 7/1/2 interface. Hpiod does not use interface
#0.

We going to test with Ubuntu Breezy since that was our last known
big-endian test setup that worked.

-dave

> -----Original Message-----
> From: Russell Krayer [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 18, 2006 6:08 PM
> To: Albright, Aaron
> Cc: Suffield, David; hplip-devel@lists.sourceforge.net
> Subject: Re: [HPLIP-Devel] big-endian troubles scanning?
> 
> 
> 
> 
> 
> >From: Aaron J Albright <[EMAIL PROTECTED]>
> >To: Russell Krayer <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED], hplip-devel@lists.sourceforge.net
> >Subject: Re: [HPLIP-Devel] big-endian troubles scanning?
> >Date: Wed, 18 Oct 2006 08:26:22 -0700
> >
> >Russell,
> >
> >Can you run hp-check and post the output?
> >
> >Aaron
> 
> Ok, here goes ... this is a headless box without a parallel 
> port so I'm not 
> sure about some of the dependencies ...
> 
> 
> [EMAIL PROTECTED] ~ $ hp-check
> 
> HP Linux Imaging and Printing System (ver. 1.6.10) 
> Dependency/Version Check Utility ver. 4.0
> 
> Copyright (c) 2003-6 Hewlett-Packard Development Company, LP 
> This software comes with ABSOLUTELY NO WARRANTY. This is free 
> software, and you are welcome to distribute it under certain 
> conditions. See COPYING file for more details.
> 
> 
> ---------------
> | SYSTEM INFO |
> ---------------
> 
> Basic system info (uname -a):
> --> Linux guro 2.6.18_kurobox_hg #2 Sun Oct 1 12:48:46 EDT 
> 2006 ppc 82xx
> GNU/Linux
> 
> Detected distro (/etc/issue):
> --> mepis 0.0
> 
> Detected distro (lsb_release):
> error: lsb_release not found.
> 
> Currently installed version...
> --> OK, HPLIP 1.6.10 currently installed in '/usr/share/hplip'.
> 
> Current contents of '/etc/hp/hplip.conf' file:
> # hplip.conf
> 
> [hpiod]
> # port=0 (dynamic IP port)
> port=2208 (IANA IP port)
> [hpssd]
> # port=0 (dynamic IP port)
> port=2207 (IANA IP port)
> 
> [hplip]
> version=1.6.10
> jdprobe=0
> 
> [dirs]
> home=/usr/share/hplip
> run=/var/run
> ppd=/usr/share/ppd/HP
> doc=/usr/share/doc/hplip-1.6.10
> 
> # Following values are determined at configure time and 
> cannot be changed.
> [configure]
> network-build=1
> pp-build=1
> gui-build=1
> scanner-build=1
> fax-build=1
> internal-tag=1.6.10.11
> 
> 
> HPLIP running?
> - 7372 ?        S      0:00 /usr/bin/tcpserver -p -v -x 
> /etc/tcprules.d/tcp.qmail-pop3.cdb -c 40 0.0.0.0 pop3 
> /var/qmail/bin/qmail-popup russk.getmyip.com /bin/checkpassword 
> /var/qmail/bin/qmail-pop3d .maildir
> 
> \ 7372 ?        S      0:00 /usr/bin/tcpserver -p -v -x 
> /etc/tcprules.d/tcp.qmail-pop3.cdb -c 40 0.0.0.0 pop3 
> /var/qmail/bin/qmail-popup russk.getmyip.com /bin/checkpassword 
> /var/qmail/bin/qmail-pop3d .maildir
> 
> --> Yes, HPLIP is running (OK).
> 
> HPOJ running?
> \ 7372 ?        S      0:00 /usr/bin/tcpserver -p -v -x 
> /etc/tcprules.d/tcp.qmail-pop3.cdb -c 40 0.0.0.0 pop3 
> /var/qmail/bin/qmail-popup russk.getmyip.com /bin/checkpassword 
> /var/qmail/bin/qmail-pop3d .maildir
> 
> --> No, HPOJ is not running (OK).
> 
> Checking Python version...
> --> OK, version 2.4.3 installed
> 
> ----------------
> | DEPENDENCIES |
> ----------------
> 
> 
> Checking for dependency 'libcrypto (libcrypto - OpenSSL cryptographic 
> library)'...
> --> OK, found.
> 
> Checking for dependency 'gcc (gcc - GNU Project C and C++ 
> Compiler)'...
> --> OK, found.
> 
> Checking for dependency 'sane (SANE - Scanning library)'...
> --> OK, found.
> 
> Checking for dependency 'gs (GhostScript - PostScript and PDF 
> language 
> interpreter and previewer)'...
> --> OK, found.
> 
> Checking for dependency 'libjpeg (libjpeg - JPEG library)'...
> --> OK, found.
> 
> Checking for dependency 'libpthread (libpthread - POSIX 
> threads library)'...
> --> OK, found.
> 
> Checking for dependency 'make (make - GNU make utility to 
> maintain groups of 
> programs)'...
> --> OK, found.
> 
> Checking for dependency 'python-devel (python-devel - Python 
> development 
> files)'...
> --> OK, found.
> 
> Checking for dependency 'reportlab (Reportlab - PDF library 
> for Python)'...
> error: Not found!
> This is an OPTIONAL dependency.
> 
> Checking for dependency 'pyqt (PyQt - Qt interface for Python)'...
> error: Not found!
> error: This is a REQUIRED dependency.
> 
> Checking for dependency 'cups-devel (cups-devel- Common Unix 
> Printing System 
> development files)'...
> --> OK, found.
> 
> Checking for dependency 'ppdev (ppdev - Parallel port support kernel 
> module.)'...
> error: Not found!
> error: This is a REQUIRED dependency.
> 
> Checking for dependency 'libusb (libusb - USB library)'...
> --> OK, found.
> 
> Checking for dependency 'scanimage (scanimage - Shell 
> scanning program)'...
> --> OK, found.
> 
> Checking for dependency 'libnetsnmp-devel (libnetsnmp-devel - SNMP 
> networking library development files)'...
> --> OK, found.
> 
> Checking for dependency 'python2x (Python 2.2 or greater - Python 
> programming language)'...
> --> OK, found.
> 
> Checking for dependency 'lsb (LSB - Linux Standard Base support)'...
> error: Not found!
> error: This is a REQUIRED dependency.
> 
> Checking for dependency 'xsane (xsane - Graphical scanner 
> frontend for 
> SANE)'...
> error: Not found!
> This is an OPTIONAL dependency.
> 
> Checking for dependency 'cups (cups - Common Unix Printing System)'...
> --> OK, found.
> 
> Checking for dependency 'python23 (Python 2.3 or greater - 
> Required for fax 
> functionality)'...
> --> OK, found.
> 
> 
> ----------------------
> | INSTALLED PRINTERS |
> ----------------------
> 
> 
> hp-psc-2210
> -----------
> Device URI: hp:/usb/PSC_2200_Series?serial=MY32GF40ZK0G
> Installed in HPLIP? Yes
> PPD: /etc/cups/ppd/hp-psc-2210.ppd
> PPD Description: HP PSC 2210 Foomatic/hpijs (recommended)
> 
> Printer status:
> printer hp-psc-2210 is idle.  enabled since Jan 01 00:00
>         ready to print
> 
> 
> PSC_2200_fax
> ------------
> Device URI: hpfax:/usb/PSC_2200_Series?serial=MY32GF40ZK0G
> Installed in HPLIP? Yes
> PPD: /etc/cups/ppd/PSC_2200_fax.ppd
> PPD Description: HPLIP Fax
> 
> Printer status:
> printer PSC_2200_fax is idle.  enabled since Jan 01 00:00
> 
> error: Incorrect PPD file for fax queue 'PSC_2200_fax'. Fax 
> queue must use 
> 'HP-Fax-hplip.ppd'.
> 
> 
> ----------------------
> | SANE CONFIGURATION |
> ----------------------
> 
> 'hpaio' in /etc/sane.d/dll.conf'...
> --> OK, found. SANE backend 'hpaio' is not properly set up.
> 
> Checking output of 'scanimage -L'...
> device `hpaio:/usb/PSC_2200_Series?serial=MY32GF40ZK0G' is a hp 
> PSC_2200_Series multi-function peripheral
> device `hpaio:/usb/PSC_2200_Series?serial=MY32GF40ZK0G' is a hp 
> PSC_2200_Series multi-function peripheral
> 
> 
> ---------------------
> | PYTHON EXTENSIONS |
> ---------------------
> 
> Checking 'cupsext' CUPS extension...
> --> OK, found.
> 
> Checking 'pcardext' Photocard extension...
> --> OK, found.
> 
> 
> %d errors were detected.
> Please refer to the installation instructions at:
> http://hplip.sourceforge.net/install/index.html
> 
> 
> 
> 
> 
> 
> 
> >
> >Russell Krayer wrote:
> >>
> >>
> >>>From: "Suffield, David" <[EMAIL PROTECTED]>
> >>>To: "Russ Krayer" <[EMAIL PROTECTED]>
> >>>CC: <hplip-devel@lists.sourceforge.net>
> >>>Subject: RE: [HPLIP-Devel] big-endian troubles scanning?
> >>>Date: Tue, 17 Oct 2006 11:58:28 -0500
> >>>
> >>>This kernel message "Oct 16 20:25:21 [kernel] usb 3-1: 
> usbfs: process
> >>>10392 (hpiod) did not claim interface 0 before use" tells me why
> >>>1284.4/MLC communication is failing. For some reason hpiod is not
> >>>claiming the USB interface before creating the 1284.4/MLC channel.
> >>
> >>It's interesting that the same message about not claiming 
> the interface 
> >>appears in the log when I print something, but it prints fine.
> >>
> >>>Here
> >>>are some suggestions.
> >>>
> >>>1. Did your install of HPLIP complete correctly?
> >>
> >>I believe it installed correctly.
> >>
> >>>2. Do you have any old copy of HPLIP still installed?
> >>
> >>The version I had was 1.6.9.  I have installed 1.6.10 just now.
> >>
> >>>3. Try a clean install of the latest HPLIP 1.6.10.
> >>
> >>So now I have 1.6.10 installed.  It appeared to install without any 
> >>problems.  1.6.9 is all gone too.  But the scanning problems remain.
> >>
> >>>If you are still having problems, give us your system 
> details and we
> >>>will try to reproduce the problem in-house.
> >>
> >>My platform is slightly exotic but fairly inexpensive.  I 
> am running on a 
> >>powerpc-based kurobox.
> >>
> >>My distribution is gentoo.  I'm betting you probably cannot 
> help me with 
> >>gentoo (it's a great platform though).  Anyway, I had to 
> create my own 
> >>ebuild for 1.6.10 because an official one is not yet 
> available, being so 
> >>new.  With gentoo, an "ebuild" tells the system how to download the 
> >>source, build and install. It's a lot like installing from source.
> >>
> >>I don't know if you will really be able to reproduce my 
> problem in-house 
> >>... it's nice of you to offer though.  Have I given you 
> enough details 
> >>about my system?
> >>
> >>I am open to suggestions.  I can always resort to using 
> usbmon and compare 
> >>against my AMD64 gentoo box which scans successfully (but I 
> want the 
> >>kurobox to be the scanner server since it makes a great 
> print server).
> >>
> >>Thanks and regards,
> >>Russ Krayer
> >>
> >>>-dave
> >>>
> >>>>-----Original Message-----
> >>>>From: [EMAIL PROTECTED]
> >>>>[mailto:[EMAIL PROTECTED] On Behalf
> >>>>Of Russ Krayer
> >>>>Sent: Monday, October 16, 2006 5:39 PM
> >>>>To: Albright, Aaron
> >>>>Cc: hplip-devel@lists.sourceforge.net
> >>>>Subject: Re: [HPLIP-Devel] big-endian troubles scanning?
> >>>>
> >>>>
> >>>>Aaron Albright wrote:
> >>>>>Have you looked over this document?
> >>>>>
> >>>>>http://hplip.sourceforge.net/troubleshooting/scanning.html
> >>>>>
> >>>>>We have tested on the powerpc platform in the past and
> >>>>haven't had any
> >>>>>problems.
> >>>>>
> >>>>>Also run
> >>>>>
> >>>>>tail -f /var/log/messages
> >>>>>
> >>>>>and try to scan and post any errors.
> >>>>>
> >>>>>Aaron
> >>>>>
> >>>>So I tried this:
> >>>>
> >>>>[EMAIL PROTECTED] ~ $ export SANE_DEBUG_DLL=128
> >>>>[EMAIL PROTECTED] ~ $ scanimage -L
> >>>>[sanei_debug] Setting debug level of dll to 128.
> >>>>[dll] sane_init: SANE dll backend version 1.0.12 from
> >>>>sane-backends 1.0.18 [dll] sane_init: reading dll.conf [dll]
> >>>>add_backend: adding backend `hpaio' [dll] sane_get_devices
> >>>>[dll] load: searching backend `hpaio' in `/usr/lib/sane'
> >>>>[dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1'
> >>>>[dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1'
> >>>>[dll] init: initializing backend `hpaio'
> >>>>[dll] init: backend `hpaio' is version 1.0.6
> >>>>[dll] sane_get_devices: found 2 devices
> >>>>device `hpaio:/usb/PSC_2200_Series?serial=MY32GF40ZK0G' is a hp
> >>>>PSC_2200_Series multi-function peripheral
> >>>>device `hpaio:/usb/PSC_2200_Series?serial=MY32GF40ZK0G' is a hp
> >>>>PSC_2200_Series multi-function peripheral
> >>>>[dll] sane_exit: exiting
> >>>>[dll] sane_exit: calling backend `hpaio's exit function
> >>>>[dll] sane_exit: finished
> >>>>
> >>>>
> >>>>And during that, there was no output in the logs.
> >>>>
> >>>>But, a simple scanimage (without -L) produced this in the log:
> >>>>
> >>>>Oct 16 20:25:21 [kernel] usb 3-1: usbfs: process 10392
> >>>>(hpiod) did not
> >>>>claim interface 0 before use
> >>>>Oct 16 20:25:25 [hpiod] unable to read MlcReverseReply
> >>>>header: Resource
> >>>>temporarily unavailable bytesRead=0 io/hpiod/mlc.cpp 230_
> >>>>Oct 16 20:25:25 [hpiod] invalid MLCInitReply retrying command...
> >>>>io/hpiod/mlc.cpp 338_
> >>>>Oct 16 20:25:29 [hpiod] unable to read MlcReverseReply
> >>>>header: Resource
> >>>>temporarily unavailable bytesRead=0 io/hpiod/mlc.cpp 230_
> >>>>Oct 16 20:25:29 [hpiod] invalid MLCInitReply: cmd=0, result=3_,
> >>>>revision=0 io/hpiod/mlc.cpp 348_
> >>>>Oct 16 20:25:30 [hpiod] device cleanup
> >>>>uri=hp:/usb/PSC_2200_Series?serial=MY32GF40ZK0G_
> >>>>
> >>>>And, I also tried an "strace" on the hpiod process and
> >>>>produced a lot of
> >>>>output, too much to post here I think (but I can if you 
> want ;-) ).
> >>>>There was a flurry of activity and then a lot of this 
> over and over:
> >>>>
> >>>>10847 ioctl(5, USBDEVFS_REAPURBNDELAY, 0x30824258) = -1
> >>>>EAGAIN (Resource
> >>>>temporarily unavailable)
> >>>>10847 select(6, NULL, [5], NULL, {0, 1000}) = 1 (out [5],
> >>>>left {0, 1000}) 10847 gettimeofday({1161044995, 616515},
> >>>>NULL) = 0 10847 ioctl(5, USBDEVFS_REAPURBNDELAY, 0x30824258)
> >>>>= 0 10847 gettimeofday({1161044995, 617430}, NULL) = 0 10847
> >>>>ioctl(5, USBDEVFS_SUBMITURB, 0x1003943c) = 0 10847
> >>>>gettimeofday({1161044995, 618165}, NULL) =
> >>>>0
> >>>>
> >>>>
> >>>>Thanks for any clues you can offer.
> >>>>
> >>>>
> >>>>Russ Krayer
> >>>>
> >>>>--------------------------------------------------------------
> >>>>-----------
> >>>>Using Tomcat but need to do more? Need to support web
> >>>>services, security? Get stuff done quickly with
> >>>>pre-integrated technology to make your job easier Download
> >>>>IBM WebSphere Application Server v.1.0.1 based on Apache
> >>>>Geronimo
> >>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
> >>>dat=121642
> >>>_______________________________________________
> >>>HPLIP-Devel mailing list
> >>>HPLIP-Devel@lists.sourceforge.net
> >>>https://lists.sourceforge.net/lists/listinfo/hplip-devel
> >>
> >>
> >>
> >>------------------------------------------------------------
> -------------
> >>Using Tomcat but need to do more? Need to support web 
> services, security?
> >>Get stuff done quickly with pre-integrated technology to 
> make your job 
> >>easier
> >>Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=26305
7&dat=121642
>>_______________________________________________
>>HPLIP-Devel mailing list
>>HPLIP-Devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/hplip-devel
>>


><< smime.p7s >>



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to