Your message dated Sun, 15 Mar 2020 10:49:33 -0700
with message-id 
<CA+i2_DdbhpO7Vo7f2AC+dnzO6tFtP8U=de5sae3-hsf3f1n...@mail.gmail.com>
and subject line Re: Bug#423600: gphoto 2.3.1 kills Olympus C-3000 ZOOM
has caused the Debian Bug report #423600,
regarding gphoto 2.3.1 kills Olympus C-3000 ZOOM
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
423600: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=423600
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libgphoto2-port0
Version: 2.3.1-5
Tags: patch

Hello,
  for about month and half I was not able to 
download pictures from my camera to my Linux box.
Today I finally took a look at what's different 
between 2.2.1 and 2.3.1, and found that some 
hack for some other Microsoft hack (MTP) was added 
to the library, and that it is what is breaking
my Olympus.

Problem is that MTP's attempt to read string
descriptor 0xEE from this camera apparently
crashes its firmware, as this request returns
with -EPIPE, and device is gone from lsusb
or any other listing until it is powercycled.

I guess that lot of other devices will be affected
as well, but as I have only this camera, here
I go.  Definitely better solution would be
just first probe for devices by vendor/device
ID, and after that do class-based searches
(especially these violating USB spec). 
Unfortunately it does not seem doable with current
libgphoto infrastructure.

                        Thanks,
                                Petr Vandrovec

diff -urN libgphoto2-2.3.1/libgphoto2_port/usb/libusb.c 
libgphoto2-2.3.1.fixed/libgphoto2_port/usb/libusb.c
--- libgphoto2-2.3.1/libgphoto2_port/usb/libusb.c       2006-11-25 
06:47:35.000000000 -0800
+++ libgphoto2-2.3.1.fixed/libgphoto2_port/usb/libusb.c 2007-05-13 
02:13:20.000000000 -0700
@@ -671,6 +671,10 @@
        int ret,i,i1,i2;
        usb_dev_handle *devh;
 
+       /* If string descriptor 0xEE is read from Olympus C-3000 ZOOM, it dies. 
*/
+       if (dev->descriptor.idVendor == 0x07B4 && dev->descriptor.idProduct == 
0x0100)
+               return 0;
+
        /* All of them are "vendor specific" device class */
 #if 0
        if ((dev->descriptor.bDeviceClass!=0xff) && 
(dev->descriptor.bDeviceClass!=0))
diff -urN libgphoto2-2.3.1/libgphoto2_port/usb/libusb.c 
libgphoto2-2.3.1.fixed/libgphoto2_port/usb/libusb.c
--- libgphoto2-2.3.1/libgphoto2_port/usb/libusb.c       2006-11-25 
06:47:35.000000000 -0800
+++ libgphoto2-2.3.1.fixed/libgphoto2_port/usb/libusb.c 2007-05-13 
02:13:20.000000000 -0700
@@ -671,6 +671,10 @@
        int ret,i,i1,i2;
        usb_dev_handle *devh;
 
+       /* If string descriptor 0xEE is read from Olympus C-3000 ZOOM, it dies. 
*/
+       if (dev->descriptor.idVendor == 0x07B4 && dev->descriptor.idProduct == 
0x0100)
+               return 0;
+
        /* All of them are "vendor specific" device class */
 #if 0
        if ((dev->descriptor.bDeviceClass!=0xff) && 
(dev->descriptor.bDeviceClass!=0))

--- End Message ---
--- Begin Message ---
Hi Feri,
  camera died long ago, so I can't test it.  But code inspection shows that
detection of MTP was reworked since original report.

So I think that it should work.

Petr

On Sun, Mar 15, 2020, 2:27 AM <[email protected]> wrote:

> Hi Petr,
>
> Your report is from 13 years ago, I wonder if it's still relevant.
> http://www.gphoto.org/proj/libgphoto2/support.php now lists the Olympus
> C-3000Z as a supported camera, so there's a good chance that this bug
> has been fixed meanwhile.  Could you please try to reproduce it with the
> current libgphoto2 version (preferably 2.5.22 in buster or later) and
> share your results?
> --
> Thanks,
> Feri
>

--- End Message ---
-- 
Pkg-phototools-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-phototools-devel

Reply via email to