Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EOS 350D & gphoto2, USB Rechte, Hotplug und der ganz Kram
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ekki_123
n00b
n00b


Joined: 04 Jun 2006
Posts: 54
Location: Herxheim, Deutschland

PostPosted: Sat Nov 25, 2006 3:25 pm    Post subject: EOS 350D & gphoto2, USB Rechte, Hotplug und der ganz Kra Reply with quote

Tag.

Ich bekomme meine Digikam (Canon EOS 350D) nicht dazu sich mit gphoto2 zu unterhalten. Es scheint ein USB Problem (Recht? Hotplug?) zu handeln.

HW:
EPox 8RDA+ Mobo, AMD Athlon, EHCI und OHCI USB

Kernel: 2.6.17-r7 gentoo, USB EHCI,OHCI drin, Mass storage enabled (SCSI), keine weiteren Cam-Driver für USB

Wenn ich die Kamera einschalte bekomme ich folgende Log-Einträge vom Kernel (dmesg):
Code:

Nov 25 15:59:34 armagnac usb 1-2: new high speed USB device using ehci_hcd and a
ddress 3
Nov 25 15:59:34 armagnac usb 1-2: configuration #1 chosen from 1 choice


Nach dem Einschalten blinkt auf dem LC-Display der Kamera 'busy', warum auch immer.

Ein ls -lR /proc/bus/usb bringt
Code:

/proc/bus/usb:
total 0
dr-xr-xr-x 2 root root 0 25. Nov 15:55 001
dr-xr-xr-x 2 root root 0 25. Nov 15:55 002
dr-xr-xr-x 2 root root 0 25. Nov 15:55 003
-r--r--r-- 1 root root 0 25. Nov 15:59 devices

/proc/bus/usb/001:
total 0
-rw-rw-r-- 1 root usb     43 25. Nov 15:55 001
-rw-rw---- 1 root plugdev 57 25. Nov 15:59 003

/proc/bus/usb/002:
total 0
-rw-rw-r-- 1 root usb 43 25. Nov 15:55 001
-rw-rw-r-- 1 root usb 57 25. Nov 15:55 002

/proc/bus/usb/003:
total 0
-rw-rw-r-- 1 root usb 43 25. Nov 15:55 001

Das Device an /proc/bus/usb/001:003 mit der Gruppe 'plugdev' ist die Kamera.

Ich bin Mitglied in der Gruppe 'plugdev':
Code:

ekki@armagnac ~ $ id
uid=1000(ekki) gid=1000(ekki) groups=5(tty),10(wheel),11(floppy),16(cron),
18(audio),19(cdrom),20(dialout),26(tape),35(games),85(usb),100(users),250(portage),
1000(ekki),1001(plugdev),1002(scanner)


Und gphoto2 --auto-detect bringt:
Code:

ekki@armagnac ~ $ gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
Canon EOS 350D (PTP mode)      usb:
Canon EOS 350D (PTP mode)      usb:001,003


Aber (jetzt kommt der große A-Bär) ein gphoto2 -n (listet die Anzahl der Bilder auf der Kamera) bringt:

Code:

ekki@armagnac ~ $ gphoto2 -n

*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0
(Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680,
spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***


Die Kamera ist zu dem Zeitpunkt noch an, noch nicht schlafen gegangen. Die Kamera befindet sich im 'ptp' Modus.

Auch die --debug Option von gphoto2 ist nicht viel aufschlussreicher:
Code:

(...)
0.172530 gphoto2-port(2): Opening USB port...
0.172866 gphoto2-port(0): Could not query kernel driver of device.
0.173079 gphoto2-port(0): Could not claim interface 0 (Operation not permitted). Make sure no other program or
kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
0.173357 context(0): An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface
0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using
the device and you have read/write access to the device.

*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted).
Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write
access to the device.
*** Error (-53: 'Could not claim the USB device') ***
(...)


Führe ich gphoto2 -n als root aus liest gphoto2 zwar eine lange Zeit aus der Kamera (die LED an der Kam. flackert), aber letztendlich meldet es mir nur das Null Bilder in / vorlägen (es sind aber ca. 200 Bilder drauf). Als root darf ich's also, also doch wohl ein Rechteproblem. Aber wo? Irgendwie habe ich Tomaten auf den Augen.


Was habe ich bisher unternommen?
- FAQ auf gphoto.org gelesen, insbesondere Punkt "3.2.2. Why do I get the error message "Could not claim the USB device"?"
Das hilft mir nicht wirklich weiter, ausser mich darauf zu bringen das evtl. ein Rechteproblem mit dem USB-Device sein könnte. Ich sehe aber nicht wo. Hotplug scheint ja zu funktionieren, auch wenn die Ausgabe von 'cat /proc/sys/kernel/hotplug' leer ist. Das Hotplug funktioniert schliesse ich daraus dass das Device überhaupt mit der Gruppe 'plugdev' ins System aufgenommen wird.

- Gemäß dem gphoto.org Manual Punkt 4.3 'Setting up permissions for USB Ports' die Datei /etc/hotplug/usb/usbcam.usermap angelegt (/usr/lib/libgphoto2/print-usb-usermap > /etc/hotplug/usb/usbcam.usermap).

- Dito aus dem Manual von gphoto die Datei /etc/hotplug/usb.usermap gefüllt (/usr/lib/libgphoto2/print-usb-usermap >> /etc/hotplug/usb.usermap). Die Datei war vorher bis auf einen Kommentar leer.

- Dito aus dem Manual von gphoto sichergestellt, dass das Script /etc/hotplug/usb/usbcam existiert. Dort steht GROUP=plugdev drin.

- Gegoogelt nach der gphoto2 Fehlermeldung, die gefundenen Stellen führen aber praktisch alle immer wieder auf das gphoto-Manual...


Ich bin damit am Ende meiner Weisheit und wollte hier mal fragen ob mir jemand sagen kann wo ich noch gucken kann.

Danke im Voraus.

Gruß,
Ekki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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