Date: Fri, 21 Nov 2003 15:19:50 -0800 From: Edward Epstein <peepstein@canada.com> To: John Reynolds <johnjen@reynoldsnet.org>, ports@freebsd.org Cc: Mariusz Woloszyn <emsi@ipartners.pl> Subject: Re: call for testers -- changes to libusb Message-ID: <200311211519.50794.peepstein@canada.com> In-Reply-To: <16315.2459.457793.876084@whale.home-net> References: <16315.2459.457793.876084@whale.home-net>
next in thread | previous in thread | raw e-mail | index | archive | help
Lines prefixed with ">" are what John Reynolds wrote. >Hello -ports & -stable. Sorry for the cross-post, but it is appropriate as > I'm hoping to get the help of people running -STABLE (who might not be > subscribed to -ports). > >I have an unchecked-in version of libusb-0.1.7 with patches to fix some >behavior problems. In short, it is alledged that the original port from > Linux to FreeBSD didn't need to "loop until done" in the > bulk_read/bulk_write functions as the Linux port does. For those > interested, see the thread here: > > http://lists.inteltec.com/wws/arc/usb-bsd/2003-11/msg00021.html > >The authors/contributors of the patch have tested it with gphoto[2] and many >different cameras. I have tested the patch with my own little pet port > "s10sh" and it seems to operate totally fine. However, I'm on (an outdated) > -CURRENT system and not longer have a -STABLE system to test with. > >Please backup your currently installed package, delete libusb-0.1.7, fetch > the following .tbz > > fetch 'http://www.reynoldsnet.org/libusb-0.1.7_1.tbz' > MD5 (liibusb-0.1.7_1.tbz) = c33b84b0f45cacea982a90553c8f323c > >pkg_add it, and test your app that links to it. > >Specifically I'm looking for anybody who is currently using an application >other than gPhoto2 or s10sh. I know that sane (or sane-backend) links to > this library, but I don't have a USB scanner so I have no way of knowing if > things are cool or not. Off the top of my head I can't remember other ports > that depend on libusb, but if you use one of them regularly, please test > this. Hi! I know you're not really looking for testers who are using gphoto2 but I had a problem with a Kodak CX4230 (ptp driver) in March on FreeBSD that I was never able to fix. It worked fine in Red Hat with gphoto2 so I kind of thought that it might have something to do with libusb. I posted a message to gphoto-devel (obligatory archive link: http://marc.theaimsgroup.com/?l=gphoto-devel&m=104855317721941&w=2). Anyway, I applied the patch available here http://sourceforge.net/tracker/ index.php?func=detail&aid=835645&group_id=1674&atid=101674 and tried to get some pictures off of my camera in FreeBSD with the patched libusb. It didn't work, but the error message changed from what I was getting originally. I've included the output from the new testing below. Anyway, hopefully it's helpful! Thanks, Ed Epstein 0.000054 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.001176 main(2): gphoto2 2.1.3 0.001673 main(2): gphoto2 has been compiled with the following options: 0.002287 main(2): + cc (C compiler used) 0.002811 main(2): + popt (for handling command-line parameters) 0.007593 main(2): + exif (for displaying EXIF information) 0.008176 main(2): + no cdk (for accessing configuration options) 0.008771 main(2): + aa (for displaying live previews) 0.009338 main(2): + jpeg (for displaying live previews in JPEG format) 0.009951 main(2): + no readline (for easy navigation in the shell) 0.010574 main(2): libgphoto2 2.1.3 0.011080 main(2): libgphoto2 has been compiled with the following options: 0.011702 main(2): + cc (C compiler used) 0.012228 main(2): + EXIF (for special handling of EXIF files) 0.012827 main(2): + no ltdl (working around buggy libltdl, eh? :-) 0.013431 main(2): + no /proc/meminfo (adapts cache size to memory available) 0.014078 main(2): libgphoto2_port 0.5.1 0.015676 main(2): libgphoto2_port has been compiled with the following options: 0.016506 main(2): + cc (C compiler used) 0.017310 main(2): + USB (for USB cameras) 0.017985 main(2): + serial (for serial cameras) 0.018671 main(2): + no resmgr (serial port access and locking) 0.019400 main(2): + no baudboy (serial port locking) 0.020102 main(2): + no ttylock (serial port locking) 0.020817 main(2): + no lockdev (serial port locking) 0.021519 main(2): + no ltdl (working around buggy libltdl, eh? :-) 0.022734 main(2): The user has not specified both a model and a port. Try to figure them out. 0.023663 gp-port-info-list(2): Loading io-drivers from '/usr/local/lib/ gphoto2_port/0.5.1'... 0.025322 gphoto2-port-serial(2): Trying to lock '/dev/cuaa0'... 0.150839 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/cuaa0) from 'libgphoto2_port_serial.so' 0.151760 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so' 0.153349 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so' 0.156645 gphoto2-port-info-list(2): Counting entries (3 available)... 0.157975 gphoto2-port-info-list(2): 2 regular entries available. 0.158728 gphoto2-port(2): Creating new device... 0.159445 gphoto2-port-info-list(2): Getting info of entry 0 (3 available)... 0.160731 gphoto2-port(2): Setting timeout to 500 millisecond(s)... 0.161726 gphoto2-port(2): Setting settings... 0.162444 gphoto2-port-info-list(2): Getting info of entry 1 (3 available)... 0.266067 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... 0.294789 gphoto2-port(2): Setting settings... 0.295695 gphoto2-abilities-list.c(1): Auto-detecting USB cameras... 0.733196 gphoto2-port-usb(1): Looking for USB device (vendor 0x40a, product 0x535)... found. 0.733232 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 83, outep 04, intep 85, class 06, subclass 01 0.733271 gphoto2-abilities-list.c(2): Found 'Kodak CX4230' (0x40a,0x535) 0.733329 gphoto2-port(2): Freeing port... 0.733372 gphoto2-port(2): Closing port... 0.733647 gphoto2-camera(2): Setting abilities ('Kodak CX4230')... 0.733702 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto 0.734068 setting/gphoto2-setting.c(2): Loading settings from file "/home/ edward/.gphoto/settings" 0.734171 gphoto2-setting(2): Setting key 'model' to value 'Kodak CX4230' (gphoto2) 0.734211 gphoto2-setting(2): Saving 2 setting(s) to file "/home/ edward/.gphoto/settings" 0.742382 gp-port-info-list(2): Loading io-drivers from '/usr/local/lib/ gphoto2_port/0.5.1'... 0.742951 gphoto2-port-serial(2): Trying to lock '/dev/cuaa0'... 3.027956 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/cuaa0) from 'libgphoto2_port_serial.so' 3.027995 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so' 3.028771 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so' 3.028927 gphoto2-port-info-list(2): Looking for path 'usb:' (3 entries available)... 3.028986 gphoto2-port-info-list(2): Getting info of entry 1 (3 available)... 3.029411 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'... 3.133587 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... 3.133669 gphoto2-port(2): Setting settings... 3.133704 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2) 3.133745 gphoto2-setting(2): Saving 2 setting(s) to file "/home/ edward/.gphoto/settings" 3.134212 gphoto2-camera(2): Initializing camera... 3.134270 gphoto2-port-usb(1): Looking for USB device (vendor 0x40a, product 0x535)... found. 3.134308 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 83, outep 04, intep 85, class 06, subclass 01 3.134348 gphoto2-camera(2): Loading '/usr/local/lib/gphoto2/2.1.3/ libgphoto2_ptp2.so'... 3.135021 gphoto2-port(2): Opening USB port... 3.135173 gphoto2-port(2): Setting timeout to 8000 millisecond(s)... 3.135230 ptp(2): PTP: Opening session 3.135272 gphoto2-port(2): Writing 16=0x10 byte(s) to port... 3.135316 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: 0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................ 3.160432 gphoto2-port(2): Reading 512=0x200 bytes from port... gp_port_read: Operation timed out 16.202248 PTP2/library.c(2): PTP: gp_port_* function returned 0xffffffde -34 16.202371 context(0): PTP I/O error *** Error *** PTP I/O error 16.202465 gphoto2-port(2): Closing port... 16.202708 context(0): An error occurred in the io-library ('Unspecified error'): No error description available *** Error *** An error occurred in the io-library ('Unspecified error'): No error description available *** Error (-1: 'Unspecified error') *** 16.202935 gp-camera(2): Freeing camera... 16.202967 gphoto2-port(2): Freeing port... 16.202996 gphoto2-port(2): Closing port... 16.203099 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... 16.203133 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty 16.203163 gphoto2-filesystem(2): Internally deleting all folders from '/'... >If I get no negative feedback within a couple of days I will followup on >ports/58925 with a patch to bring in this patch until we can get the code >changes into libusb itself and 0.1.8 rolled (I can do the former, but not > the latter). > >Thanks! > >-Jr -- "There are people who cheat on their spouse but not at cards, and vice versa, and both and neither. Reputation is not necessarily portable from one situation to another, and it's not easily expressed." --Clay Shirkey. (http://www.shirky.com/writings/group_enemy.html) "It has been said that man is a rational animal. All my life I have been searching for evidence which could support this." --Bertrand Russell. "The American empire is ideological, not territorial. We are the most ideological people in the world, and we are so united in our view that we don't understand there can be other views." --Lt. Gen. William Odom, ret. (Former Director of NSA).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311211519.50794.peepstein>