Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gphoto2 can't detect camera
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
timop
n00b
n00b


Joined: 07 Aug 2002
Posts: 59
Location: Finland

PostPosted: Mon Jan 20, 2003 5:11 pm    Post subject: gphoto2 can't detect camera Reply with quote

I have gentoo 1.4rc2 with vanilla kernel 2.4.20 and USB modules usb-uhci.
usb-view shows that my camera (canon a20) is connected and cat /proc/bus/usb/devices
Code:
S:  Product=PowerShot A20
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=96ms
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00

but gphoto2 --auto-detect doesn't find it and gphoto2 --list-ports only shows serial ports.

I get it work only with root but when I try get it work with normal user now it won't work even by root.
in kernel:
Code:
# USB support
#
CONFIG_USB=m
CONFIG_USB_DEBUG=y
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_LONG_TIMEOUT is not set
# CONFIG_USB_EHCI_HCD is not set
CONFIG_USB_UHCI=m
# CONFIG_USB_UHCI_ALT is not set
# CONFIG_USB_OHCI is not set
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_BLUETOOTH is not set
# CONFIG_USB_MIDI is not set
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_HP8200e is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_HID is not set
# CONFIG_USB_HIDINPUT is not set
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_OV511 is not set
# CONFIG_USB_PWC is not set
# CONFIG_USB_SE401 is not set
# CONFIG_USB_STV680 is not set
# CONFIG_USB_VICAM is not set
# CONFIG_USB_DSBR is not set
# CONFIG_USB_DABUSB is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_CATC is not set
# CONFIG_USB_CDCETHER is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_USS720 is not set

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_TIGL is not set
# CONFIG_USB_BRLVGER is not set
# CONFIG_USB_LCD is not set



so what's wrong ??
Back to top
View user's profile Send private message
timop
n00b
n00b


Joined: 07 Aug 2002
Posts: 59
Location: Finland

PostPosted: Mon Jan 20, 2003 6:46 pm    Post subject: Reply with quote

hotplug works, i think because it writes to /var/log/messages when I connect camera:
Code:

Jan 20 20:29:33 gobbels kernel: hub.c: new USB device 00:04.3-2.1, assigned address 6
Jan 20 20:29:34 gobbels kernel: Manufacturer: Canon Inc.
Jan 20 20:29:34 gobbels kernel: Product: PowerShot A20
Jan 20 20:29:34 gobbels kernel: usb.c: USB device 6 (vend/prod 0x4a9/0x304e) is not claimed by any active driver.
Jan 20 20:29:34 gobbels kernel:   Length              = 18
Jan 20 20:29:34 gobbels kernel:   DescriptorType      = 01
Jan 20 20:29:34 gobbels kernel:   USB version         = 1.10
Jan 20 20:29:34 gobbels kernel:   Vendor:Product      = 04a9:304e
Jan 20 20:29:34 gobbels kernel:   MaxPacketSize0      = 32
Jan 20 20:29:34 gobbels kernel:   NumConfigurations   = 1
Jan 20 20:29:34 gobbels kernel:   Device version      = 0.01
Jan 20 20:29:34 gobbels kernel:   Device Class:SubClass:Protocol = ff:ff:ff
Jan 20 20:29:34 gobbels kernel:     Vendor class
Jan 20 20:29:34 gobbels kernel: Configuration:
Jan 20 20:29:34 gobbels kernel:   bLength             =    9
Jan 20 20:29:34 gobbels kernel:   bDescriptorType     =   02
Jan 20 20:29:34 gobbels kernel:   wTotalLength        = 0027
Jan 20 20:29:34 gobbels kernel:   bNumInterfaces      =   01
Jan 20 20:29:34 gobbels kernel:   bConfigurationValue =   01
Jan 20 20:29:34 gobbels kernel:   iConfiguration      =   00
Jan 20 20:29:34 gobbels kernel:   bmAttributes        =   c0
Jan 20 20:29:34 gobbels kernel:   MaxPower            =  100mA
Jan 20 20:29:34 gobbels kernel:
Jan 20 20:29:34 gobbels kernel:   Interface: 0
Jan 20 20:29:34 gobbels kernel:   Alternate Setting:  0
Jan 20 20:29:34 gobbels kernel:     bLength             =    9
Jan 20 20:29:34 gobbels kernel:     bDescriptorType     =   04
Jan 20 20:29:34 gobbels kernel:     bInterfaceNumber    =   00
Jan 20 20:29:34 gobbels kernel:     bAlternateSetting   =   00
Jan 20 20:29:34 gobbels kernel:     bNumEndpoints       =   03
Jan 20 20:29:34 gobbels kernel:     bInterface Class:SubClass:Protocol =   ff:ff:ff
Jan 20 20:29:34 gobbels kernel:     iInterface          =   00
Jan 20 20:29:34 gobbels kernel:     Endpoint:
Jan 20 20:29:34 gobbels kernel:       bLength             =    7
Jan 20 20:29:34 gobbels kernel:       bDescriptorType     =   05
Jan 20 20:29:34 gobbels kernel:       bEndpointAddress    =   81 (in)
Jan 20 20:29:34 gobbels kernel:       bmAttributes        =   02 (Bulk)
Jan 20 20:29:34 gobbels kernel:       wMaxPacketSize      = 0040
Jan 20 20:29:34 gobbels kernel:       bInterval           =   00
Jan 20 20:29:34 gobbels kernel:     Endpoint:
Jan 20 20:29:34 gobbels kernel:       bLength             =    7
Jan 20 20:29:34 gobbels kernel:       bDescriptorType     =   05
Jan 20 20:29:34 gobbels kernel:       bEndpointAddress    =   02 (out)
Jan 20 20:29:34 gobbels kernel:       bmAttributes        =   02 (Bulk)
Jan 20 20:29:34 gobbels kernel:       wMaxPacketSize      = 0040
Jan 20 20:29:34 gobbels kernel:       bInterval           =   00
Jan 20 20:29:34 gobbels kernel:     Endpoint:
Jan 20 20:29:34 gobbels kernel:       bLength             =    7
Jan 20 20:29:34 gobbels kernel:       bDescriptorType     =   05
Jan 20 20:29:34 gobbels kernel:       bEndpointAddress    =   83 (in)
Jan 20 20:29:34 gobbels kernel:       bmAttributes        =   03 (Interrupt)
Jan 20 20:29:34 gobbels kernel:       wMaxPacketSize      = 0040
Jan 20 20:29:34 gobbels kernel:       bInterval           =   60
Jan 20 20:29:34 gobbels /sbin/hotplug: arguments (usb) env (DEVFS=/proc/bus/usb OLDPWD=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug SHLVL=1 HOME=/ DEVICE=/proc/bus/usb/002/006 PRODUCT=4a9/304e/1 TYPE=255/255/255 DEBUG=kernel _=/usr/bin/env)
Jan 20 20:29:34 gobbels /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
Jan 20 20:29:37 gobbels /etc/hotplug/usb.agent: Setup usbcam for USB product 4a9/304e/1
Jan 20 20:29:37 gobbels /etc/hotplug/usb.agent: Module setup usbcam for USB product 4a9/304e/1

I tested with uscam.user and usbcam.group nothing happens...
Back to top
View user's profile Send private message
o_florian
n00b
n00b


Joined: 12 Nov 2002
Posts: 9
Location: Berlin, Germany

PostPosted: Tue Jan 21, 2003 6:46 pm    Post subject: Reply with quote

I seem to have the same problem :
gphoto2 only shows /dev/tts/[01] and when I
do a
# gphoto2 --debug --list-ports
I get:

Quote:

gphoto2-port-core(2): '/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.so' is not a library (/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.so: undefined symbol: usb_busses)
1.728942 gphoto2-port-core(2): '/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.la' is not a library (/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.la: invalid ELF header)
1.729187 gphoto2-port-core(2): '/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.a' is not a library (/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.a: invalid ELF header)


I use a Mandrake 8.2 machine at work, and there I get :

Quote:

gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so'


Camera works OK.

library striped too much ?
_________________
Some people claim that the UNIX learning
curve is steep, but at least you only have to
climb it once.
Back to top
View user's profile Send private message
timop
n00b
n00b


Joined: 07 Aug 2002
Posts: 59
Location: Finland

PostPosted: Tue Jan 21, 2003 8:53 pm    Post subject: Reply with quote

o_florian wrote:


gphoto2-port-core(2): '/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.so' is not a library (/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.so: undefined symbol: usb_busses)
1.728942 gphoto2-port-core(2): '/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.la' is not a library (/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.la: invalid ELF header)
1.729187 gphoto2-port-core(2): '/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.a' is not a library (/usr/lib/gphoto2_port/0.5.0/libgphoto2_port_usb.a: invalid ELF header)


Yes I get same listing also, today I did unmerge all and merged all again back:
hotplug, usbutils,usbview, gphoto2,digikam.
and same thing nothing happens.

I think that I will install hole gentoo again when rc3 arrives...
or maybe tommorrow this rc2.
I have too many times tried this stupid gphoto2, install and I can't get it work.
There is other problems too with this install so I hope it all get fixed...
Back to top
View user's profile Send private message
Kabuto
l33t
l33t


Joined: 01 Aug 2002
Posts: 701

PostPosted: Wed Jan 22, 2003 9:46 pm    Post subject: Reply with quote

Sounds like libusb is hosed. Did you try to recompile it?
Back to top
View user's profile Send private message
o_florian
n00b
n00b


Joined: 12 Nov 2002
Posts: 9
Location: Berlin, Germany

PostPosted: Thu Jan 23, 2003 9:30 am    Post subject: Reply with quote

It works now, the changes I made :

1. I switched from vanilla-sources to gentoo-sources, and compiled usb-support as module
before compiling libusb, last time I compiled the usb-support after emerging libusb

2. unmerged libusb / gphoto / gtkam etc.

3. re-emerged them again

and pronto :
Quote:

# gphoto2 --list-ports
Devices found: 3
Path Description
--------------------------------------------------------------
serial:/dev/tts/0 Serial Port 0
serial:/dev/tts/1 Serial Port 1
usb: Universal Serial Bus


gphoto finds the usb-port, maybe re-emerging libusb would have done the trick.
_________________
Some people claim that the UNIX learning
curve is steep, but at least you only have to
climb it once.
Back to top
View user's profile Send private message
timop
n00b
n00b


Joined: 07 Aug 2002
Posts: 59
Location: Finland

PostPosted: Thu Jan 23, 2003 2:39 pm    Post subject: Reply with quote

That's I forgot whole libusb and didn't re-emerge at all.
I get it work even all user and with digikam also.

Thanks guys !

:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum