Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2005 19:48:16 +0100
From:      Olivier Certner <olivier.certner@free.fr>
To:        freebsd-questions@freebsd.org, gphoto-devel@lists.sourceforge.net
Subject:   Problem with libgphoto2, Canon Ixus v2 (USB) and 5.3-STABLE
Message-ID:  <200503061948.16313.olivier.certner@free.fr>

next in thread | raw e-mail | index | archive | help
	Hi there,

	I've tried to download a few pics from my Canon Ixus v2 camera with 
libgphoto2 (frontends: kamera and gphoto2) without success. The camera is 
supported though, I even used libgphoto2 successfully on a Linux system with 
an older version of the lib (which I don't remember!).

	I've tried to add several traces to libgphoto2 to see where the problem was 
happening. I get as deep as usb_bulk_read but I haven't investigated further 
at the moment. libusb, libgphoto2 and gphoto2 have all been compiled from the 
ports collection, one time with and the other time without optimization 
flags, leading to the same result. Below is the output of gphoto2 --debug -l, 
in which there are some extra traces left (beginning with "Olivier:"). I see a 
strange 'Canon:PowerShot S200' at some point, but have not made anything of 
that.

	I've no special tweaks for usb. FreeBSD version is 5.3-STABLE, compiled with 
the following for usb (in case it would help):

# USB support
device		uhci		# UHCI PCI->USB interface
#device		ohci		# OHCI PCI->USB interface
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
#device		urio		# Diamond Rio 500 MP3 player
#device		uscanner	# Scanners

	Feel free to ask if you would like more information! Thanks for reading.

	Regards,

		Olivier

PS: This post has been submitted to both the freebsd-questions and 
gphoto-devel mailing lists because it might interest both. No follow-up nor 
reply to!


____________________________________

0.000033 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG 
MESSAGES TO THE MAILING LIST:
0.001896 main(2): gphoto2 2.1.5
0.002171 main(2): gphoto2 has been compiled with the following options:
0.002470 main(2):  + cc (C compiler used)
0.002728 main(2):  + popt (for handling command-line parameters)
0.003014 main(2):  + exif (for displaying EXIF information)
0.003292 main(2):  + no cdk (for accessing configuration options)
0.003579 main(2):  + aa (for displaying live previews)
0.003852 main(2):  + jpeg (for displaying live previews in JPEG format)
0.004147 main(2):  + readline (for easy navigation in the shell)
0.004443 main(2): libgphoto2 2.1.5
0.004698 main(2): libgphoto2 has been compiled with the following options:
0.004996 main(2):  + cc (C compiler used)
0.005254 main(2):  + EXIF (for special handling of EXIF files)
0.005537 main(2):  + no ltdl (working around buggy libltdl, eh? :-)
0.005846 main(2):  + no /proc/meminfo (adapts cache size to memory available)
0.006158 main(2): libgphoto2_port 0.5.1
0.006420 main(2): libgphoto2_port has been compiled with the following 
options:
0.006723 main(2):  + cc (C compiler used)
0.007058 main(2):  + USB (for USB cameras)
0.007319 main(2):  + serial (for serial cameras)
0.007582 main(2):  + no resmgr (serial port access and locking)
0.007864 main(2):  + no baudboy (serial port locking)
0.008131 main(2):  + no ttylock (serial port locking)
0.008403 main(2):  + no lockdev (serial port locking)
0.008669 main(2):  + no ltdl (working around buggy libltdl, eh? :-)
0.009132 main(2): The user has not specified both a model and a port. Try to 
figure them out.
0.009496 gp-port-info-list(2): Loading io-drivers from 
'/usr/local/lib/gphoto2_port/0.5.1'...
0.010304 gphoto2-port-serial(2): Trying to lock '/dev/cuaa0'...
0.013833 gphoto2-port-serial(2): Trying to lock '/dev/cuaa1'...
0.014186 gphoto2-port-serial(2): Trying to lock '/dev/cuaa2'...
0.014505 gphoto2-port-serial(2): Trying to lock '/dev/cuaa3'...
0.014822 gphoto2-port-serial(2): Trying to lock '/dev/cuaa4'...
0.015138 gphoto2-port-serial(2): Trying to lock '/dev/cuaa5'...
0.015456 gphoto2-port-serial(2): Trying to lock '/dev/cuaa6'...
0.015771 gphoto2-port-serial(2): Trying to lock '/dev/cuaa7'...
0.016088 gphoto2-port-serial(2): Trying to lock '/dev/cuaa8'...
0.016406 gphoto2-port-serial(2): Trying to lock '/dev/cuaa9'...
0.016725 gphoto2-port-serial(2): Trying to lock '/dev/cuaaa'...
0.017041 gphoto2-port-serial(2): Trying to lock '/dev/cuaab'...
0.017360 gphoto2-port-serial(2): Trying to lock '/dev/cuaac'...
0.017676 gphoto2-port-serial(2): Trying to lock '/dev/cuaad'...
0.017992 gphoto2-port-serial(2): Trying to lock '/dev/cuaae'...
0.018307 gphoto2-port-serial(2): Trying to lock '/dev/cuaaf'...
0.019431 gphoto2-port-core(2): Loaded '' (^serial) from 
'libgphoto2_port_serial.so'
0.042286 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 
'libgphoto2_port_usb.so'
0.042929 gphoto2-port-core(2): Loaded 'Universal Serial 
Bus' (usb:/dev/usb1,/dev/ugen0) from 'libgphoto2_port_usb.so'
0.044227 gphoto2-port-info-list(2): Counting entries (3 available)...
0.044851 gphoto2-port-info-list(2): 2 regular entries available.
0.045142 gphoto2-port(2): Creating new device...
0.045429 gphoto2-port-info-list(2): Getting info of entry 0 (3 available)...
0.045752 gphoto2-port(2): Olivier: info.library_filename is 
'/usr/local/lib/gphoto2_port/0.5.1/libgphoto2_port_usb.so'.
0.072043 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
0.072611 gphoto2-port(2): Setting settings...
0.072884 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
0.073255 gphoto2-port(0): Could not find USB device (vendor 0x553, product 
0x202). Make sure this device is connected to the computer.
0.073641 gphoto2-port(0): Could not find USB device (vendor 0x6bd, product 
0x403). Make sure this device is connected to the computer.
0.074025 gphoto2-port(0): Could not find USB device (vendor 0x6bd, product 
0x404). Make sure this device is connected to the computer.
0.074400 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 
0x504b). Make sure this device is connected to the computer.
0.074784 gphoto2-port(0): Could not find USB device (vendor 0x553, product 
0x202). Make sure this device is connected to the computer.
0.075159 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 
0x504a). Make sure this device is connected to the computer.
0.075541 gphoto2-port(0): Could not find USB device (vendor 0x553, product 
0x202). Make sure this device is connected to the computer.
0.075931 gphoto2-port(0): Could not find USB device (vendor 0x8ca, product 
0x111). Make sure this device is connected to the computer.
0.076308 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 
0x504a). Make sure this device is connected to the computer.
0.076694 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 
0x504b). Make sure this device is connected to the computer.
0.077071 gphoto2-port(0): Could not find USB device (vendor 0x553, product 
0x202). Make sure this device is connected to the computer.
0.077526 gphoto2-port(0): Could not find USB device (vendor 0x2770, product 
0x9120). Make sure this device is connected to the computer.
0.077933 gphoto2-port(0): Could not find USB device (vendor 0x2770, product 
0x913c). Make sure this device is connected to the computer.
0.078336 gphoto2-port(0): Could not find USB device (vendor 0x919, product 
0x100). Make sure this device is connected to the computer.
0.078729 gphoto2-port(0): Could not find USB device (vendor 0x4a5, product 
0x3003). Make sure this device is connected to the computer.
0.079125 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3047). Make sure this device is connected to the computer.
0.079520 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3072). Make sure this device is connected to the computer.
0.079915 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x304d). Make sure this device is connected to the computer.
0.080312 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3066). Make sure this device is connected to the computer.
0.082595 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30bf). Make sure this device is connected to the computer.
0.083002 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3075). Make sure this device is connected to the computer.
0.083404 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3075). Make sure this device is connected to the computer.
0.083814 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30ba). Make sure this device is connected to the computer.
0.084213 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30ba). Make sure this device is connected to the computer.
0.084606 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30b4). Make sure this device is connected to the computer.
0.085003 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30b4). Make sure this device is connected to the computer.
0.085396 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x309b). Make sure this device is connected to the computer.
0.085794 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3072). Make sure this device is connected to the computer.
0.086188 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30b6). Make sure this device is connected to the computer.
0.086578 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3052). Make sure this device is connected to the computer.
0.086972 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 
0x3065)... found.
0.087302 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, 
altsetting 0, inep 81, outep 02, intep 83, class ff, subclass ff
0.087679 gphoto2-abilities-list.c(2): Found 'Canon Digital IXUS 
v2' (0x4a9,0x3065)
0.088005 gphoto2-port-info-list(2): Getting info of entry 1 (3 available)...
0.088471 gphoto2-port(2): Olivier: info.library_filename is 
'/usr/local/lib/gphoto2_port/0.5.1/libgphoto2_port_usb.so'.
0.110060 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
0.110654 gphoto2-port(2): Setting settings...
0.110926 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
0.111307 gphoto2-port(0): Could not find USB device (vendor 0x553, product 
0x202). Make sure this device is connected to the computer.
0.111700 gphoto2-port(0): Could not find USB device (vendor 0x6bd, product 
0x403). Make sure this device is connected to the computer.
0.112084 gphoto2-port(0): Could not find USB device (vendor 0x6bd, product 
0x404). Make sure this device is connected to the computer.
0.112463 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 
0x504b). Make sure this device is connected to the computer.
0.112930 gphoto2-port(0): Could not find USB device (vendor 0x553, product 
0x202). Make sure this device is connected to the computer.
0.113310 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 
0x504a). Make sure this device is connected to the computer.
0.113699 gphoto2-port(0): Could not find USB device (vendor 0x553, product 
0x202). Make sure this device is connected to the computer.
0.114077 gphoto2-port(0): Could not find USB device (vendor 0x8ca, product 
0x111). Make sure this device is connected to the computer.
0.114464 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 
0x504a). Make sure this device is connected to the computer.
0.114846 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 
0x504b). Make sure this device is connected to the computer.
0.115244 gphoto2-port(0): Could not find USB device (vendor 0x553, product 
0x202). Make sure this device is connected to the computer.
0.115615 gphoto2-port(0): Could not find USB device (vendor 0x2770, product 
0x9120). Make sure this device is connected to the computer.
0.115998 gphoto2-port(0): Could not find USB device (vendor 0x2770, product 
0x913c). Make sure this device is connected to the computer.
0.116373 gphoto2-port(0): Could not find USB device (vendor 0x919, product 
0x100). Make sure this device is connected to the computer.
0.116752 gphoto2-port(0): Could not find USB device (vendor 0x4a5, product 
0x3003). Make sure this device is connected to the computer.
0.117124 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3047). Make sure this device is connected to the computer.
0.117506 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3072). Make sure this device is connected to the computer.
0.117876 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x304d). Make sure this device is connected to the computer.
0.118256 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3066). Make sure this device is connected to the computer.
0.118626 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30bf). Make sure this device is connected to the computer.
0.119004 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3075). Make sure this device is connected to the computer.
0.119372 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3075). Make sure this device is connected to the computer.
0.119751 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30ba). Make sure this device is connected to the computer.
0.120120 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30ba). Make sure this device is connected to the computer.
0.124629 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30b4). Make sure this device is connected to the computer.
0.125042 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30b4). Make sure this device is connected to the computer.
0.125421 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x309b). Make sure this device is connected to the computer.
0.125792 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3072). Make sure this device is connected to the computer.
0.126167 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x30b6). Make sure this device is connected to the computer.
0.126536 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 
0x3052). Make sure this device is connected to the computer.
0.126924 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 
0x3065)... found.
0.127240 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, 
altsetting 0, inep 81, outep 02, intep 83, class ff, subclass ff
0.127609 gphoto2-abilities-list.c(2): Found 'Canon Digital IXUS 
v2' (0x4a9,0x3065)
0.127929 gphoto2-port(2): Freeing port...
0.128196 gphoto2-port(2): Closing port...
0.128668 gphoto2-camera(2): Setting abilities ('Canon Digital IXUS v2')...
0.129047 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.129625 setting/gphoto2-setting.c(2): Loading settings from file 
"/home/olivier/.gphoto/settings"
0.130133 gphoto2-setting(2): Setting key 'model' to value 'Canon Digital IXUS 
v2' (gphoto2)
0.130652 gphoto2-setting(2): Saving 2 setting(s) to file 
"/home/olivier/.gphoto/settings"
0.131211 gp-port-info-list(2): Loading io-drivers from 
'/usr/local/lib/gphoto2_port/0.5.1'...
0.132017 gphoto2-port-serial(2): Trying to lock '/dev/cuaa0'...
0.132575 gphoto2-port-serial(2): Trying to lock '/dev/cuaa1'...
0.132910 gphoto2-port-serial(2): Trying to lock '/dev/cuaa2'...
0.133230 gphoto2-port-serial(2): Trying to lock '/dev/cuaa3'...
0.133550 gphoto2-port-serial(2): Trying to lock '/dev/cuaa4'...
0.133867 gphoto2-port-serial(2): Trying to lock '/dev/cuaa5'...
0.134188 gphoto2-port-serial(2): Trying to lock '/dev/cuaa6'...
0.134506 gphoto2-port-serial(2): Trying to lock '/dev/cuaa7'...
0.134826 gphoto2-port-serial(2): Trying to lock '/dev/cuaa8'...
0.135143 gphoto2-port-serial(2): Trying to lock '/dev/cuaa9'...
0.135462 gphoto2-port-serial(2): Trying to lock '/dev/cuaaa'...
0.135779 gphoto2-port-serial(2): Trying to lock '/dev/cuaab'...
0.136098 gphoto2-port-serial(2): Trying to lock '/dev/cuaac'...
0.136508 gphoto2-port-serial(2): Trying to lock '/dev/cuaad'...
0.137240 gphoto2-port-serial(2): Trying to lock '/dev/cuaae'...
0.137575 gphoto2-port-serial(2): Trying to lock '/dev/cuaaf'...
0.137922 gphoto2-port-core(2): Loaded '' (^serial) from 
'libgphoto2_port_serial.so'
0.159090 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 
'libgphoto2_port_usb.so'
0.159672 gphoto2-port-core(2): Loaded 'Universal Serial 
Bus' (usb:/dev/usb1,/dev/ugen0) from 'libgphoto2_port_usb.so'
0.160291 gphoto2-port-info-list(2): Looking for path 'usb:' (3 entries 
available)...
0.161577 gphoto2-port-info-list(2): Getting info of entry 0 (3 available)...
0.161941 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' 
at 'usb:'...
0.162274 gphoto2-port(2): Olivier: info.library_filename is 
'/usr/local/lib/gphoto2_port/0.5.1/libgphoto2_port_usb.so'.
0.184057 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
0.187103 gphoto2-port(2): Setting settings...
0.187381 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2)
0.187691 gphoto2-setting(2): Saving 2 setting(s) to file 
"/home/olivier/.gphoto/settings"
0.188308 foreach(2): Executing action 'List Folders' for folder '/'.
0.189090 gphoto2-camera(2): Listing folders in '/'...
0.189689 gphoto2-camera(2): Initializing camera...
0.190000 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 
0x3065)... found.
0.190332 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, 
altsetting 0, inep 81, outep 02, intep 83, class ff, subclass ff
0.190738 gphoto2-camera(2): Loading 
'/usr/local/lib/gphoto2/2.1.5/libgphoto2_canon.so'...
0.191491 gphoto2-port(2): Opening USB port...
0.192081 canon/library.c(2): canon camera_init()
0.192448 canon/library.c(2): GPhoto tells us that we should use a USB link.
0.192773 canon/usb.c(2): Initializing the (USB) camera.

0.193125 gphoto2-port(2): Setting settings...
0.193438 gphoto2-port-usb(2): Changed usb.config from -1 to 1
0.196666 gphoto2-port-usb(2): Changed usb.altsetting from -1 to 0
0.197036 canon/usb.c(2): canon_usb_camera_init()
0.197335 canon/usb.c(2): canon_usb_identify: USB ID match 0x04a9:0x3065 (model 
name "Canon:PowerShot S200")
0.197711 context(2): Detected a 'Canon:PowerShot S200'.
Detected a 'Canon:PowerShot S200'.
0.198195 gphoto2-port(2): Reading message (request=0xc value=0x55 index=0x0 
size=1=0x1)...
0.200674 gphoto2-port(3): Hexdump of 1 = 0x1 bytes follows:
0000  43                     -                         C

0.202657 canon/usb.c(2): canon_usb_camera_init() initial camera response: 
C/'Camera was woken up'
0.202997 gphoto2-port(2): Reading message (request=0x4 value=0x1 index=0x0 
size=88=0x58)...
0.208672 gphoto2-port(3): Hexdump of 88 = 0x58 bytes follows:
0000  18 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
0010  01 00 00 00 69 87 04 00-01 00 00 00 c4 00 00 00  ....i...........
0020  ba 05 00 00 43 61 6e 6f-6e 00 43 61 6e 6f 6e 20  ....Canon.Canon
0030  44 49 47 49 54 41 4c 20-49 58 55 53 20 76 32 00  DIGITAL IXUS v2.
0040  03 05 15 81 65 30 a9 04-00 08 00 00 ff ff ff ff  ....e0..........
0050  00 fd 00 00 00 fd 00 00-                         ........

0.209936 gphoto2-port(2): Writing message (request=0x4 value=0x11 index=0x0 
size=80=0x50)...
0.210274 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows:
0000  10 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
0010  01 00 00 00 69 87 04 00-01 00 00 00 c4 00 00 00  ....i...........
0020  ba 05 00 00 43 61 6e 6f-6e 00 43 61 6e 6f 6e 20  ....Canon.Canon
0030  44 49 47 49 54 41 4c 20-49 58 55 53 20 76 32 00  DIGITAL IXUS v2.
0040  00 08 00 00 ff ff ff ff-00 fd 00 00 00 fd 00 00  ................

0.215658 canon/usb.c(2): canon_usb_camera_init() PC sign on LCD should be lit 
now (if your camera has a PC sign)
0.216047 gphoto2-port(2): Reading 64=0x40 bytes from port...
0.216494 libusb(2): Olivier: ret = '-1'.
0.216844 context(0): Step #4.1 failed! (returned -34, expected 64) Camera not 
operational

*** Error ***
Step #4.1 failed! (returned -34, expected 64) Camera not operational
0.217650 gphoto2-port(2): Closing port...
*** Error (-102: 'Corrupted data') ***

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug --debug -l

Please make sure there is sufficient quoting around the arguments.

0.223893 gp-camera(2): Freeing camera...
0.224493 gphoto2-port(2): Freeing port...
0.224758 gphoto2-port(2): Closing port...
0.225188 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.231334 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.231639 gphoto2-filesystem(2): Internally deleting all folders from '/'...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503061948.16313.olivier.certner>