Werner Koch a écrit : > On Thu, 28 Jun 2007 15:49, [EMAIL PROTECTED] said: > >>> 2007-06-28 15:32:31 scdaemon[4291] DBG: ccid-driver: usb_claim_interface >>> failed: -1 > > You have the pcscd running. "/etc/init.d/pcscd stop" will help. > Disable pcscd unless you need it for other applications.
I've already purged pcsc with aptitude. And I still get the same messages: (Logging with option debug-level advanced and debug-ccid-driver) > [EMAIL PROTECTED]:~$ tail -50 var/log/scdaemon.log > 2007-06-29 11:23:13 scdaemon[7486] SIGTERM received - shutting down ... > scdaemon[7486.0] DBG: <- [EOF] > 2007-06-29 11:23:13 scdaemon[7486] handler for fd -1 terminated > 2007-06-29 11:23:15 scdaemon[7486] scdaemon (GnuPG) 2.0.0 stopped > 2007-06-29 11:27:44 scdaemon[4321] listening on socket > `/tmp/gpg-GyL8LI/S.scdaemon' > 2007-06-29 11:27:44 scdaemon[4321] handler for fd -1 started > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: using CCID reader 0 > (ID=04E6:5115:X:0) > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: idVendor: 04E6 > idProduct: 5115 bcdDevice: 0518 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: ChipCard Interface > Descriptor: > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bLength > 54 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bDescriptorType > 33 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bcdCCID > 1.00 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: nMaxSlotIndex > 0 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bVoltageSupport > 1 5.0V > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwProtocols > 3 T=0 T=1 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwDefaultClock > 4000 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwMaxiumumClock > 12000 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bNumClockSupported > 0 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwDataRate > 9600 bps > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwMaxDataRate > 307200 bps > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bNumDataRatesSupp. > 0 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwMaxIFSD > 252 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwSyncProtocols > 00000000 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwMechanical > 00000000 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwFeatures > 000100BA > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: Auto configuration > based on ATR > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: Auto voltage > selection > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: Auto clock change > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: Auto baud rate change > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: Auto PPS made by CCID > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: TPDU level exchange > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: dwMaxCCIDMsgLen > 263 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bClassGetResponse > echo > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bClassEnvelope > echo > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: wlcdLayout > none > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bPINSupport > 0 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: bMaxCCIDBusySlots > 1 > 2007-06-29 11:27:44 scdaemon[4321] DBG: ccid-driver: usb_claim_interface > failed: -1 > 2007-06-29 11:27:44 scdaemon[4321] error receiving PC/SC OPEN response: > premature EOF > scdaemon[4321.0] DBG: -> OK GNU Privacy Guard's Smartcard server ready > scdaemon[4321.0] DBG: <- GETINFO socket_name > scdaemon[4321.0] DBG: -> D /tmp/gpg-GyL8LI/S.scdaemon > scdaemon[4321.0] DBG: -> OK > scdaemon[4321.0] DBG: <- OPTION event-signal=12 > scdaemon[4321.0] DBG: -> OK > scdaemon[4321.0] DBG: <- SERIALNO openpgp > 2007-06-29 11:27:44 scdaemon[4321] can't select application `openpgp': Non > supporté > scdaemon[4321.0] DBG: -> ERR 100663356 Non supporté <SCD> > scdaemon[4321.0] DBG: <- RESTART > scdaemon[4321.0] DBG: -> OK > [EMAIL PROTECTED]:~$ Well instead of a broken pipe, I get a premature EOF... >>> 2007-06-28 15:32:31 scdaemon[4291] error sending PC/SC OPEN request: Relais >>> brisé (pipe) > > /usr/local/lib/gnupg/pcsc-wrapper has a problem. Might be a problem > withy libpcsc. Would need debugging (kill scdaemon, run scdaemon > --server under strace -f to see what is going on). Uhh. I'll read how strace works, and I'll come back to you. > I am pretty sure that stopping pcscd solves your problems. Also make > sure that the permissions for /proc/bus/usb/xxxx/nnn for your device are > okay (you need write permissions). Visibly, purging pcscd does not solve the problem. Concerning permissions, I guess I have some work to do: > [EMAIL PROTECTED]:~$ ls -Ral /proc/bus/usb/ > /proc/bus/usb/: > total 0 > drwxr-xr-x 5 root root 0 2007-06-29 11:24 . > dr-xr-xr-x 6 root root 0 2007-06-29 11:24 .. > dr-xr-xr-x 2 root root 0 2007-06-29 11:24 001 > dr-xr-xr-x 2 root root 0 2007-06-29 11:24 002 > dr-xr-xr-x 2 root root 0 2007-06-29 11:24 003 > -r--r--r-- 1 root root 0 2007-06-29 11:24 devices > > /proc/bus/usb/001: > total 0 > dr-xr-xr-x 2 root root 0 2007-06-29 11:24 . > drwxr-xr-x 5 root root 0 2007-06-29 11:24 .. > -rw-r--r-- 1 root root 43 2007-06-29 11:24 001 > > /proc/bus/usb/002: > total 0 > dr-xr-xr-x 2 root root 0 2007-06-29 11:24 . > drwxr-xr-x 5 root root 0 2007-06-29 11:24 .. > -rw-r--r-- 1 root root 43 2007-06-29 11:24 001 > > /proc/bus/usb/003: > total 0 > dr-xr-xr-x 2 root root 0 2007-06-29 11:24 . > drwxr-xr-x 5 root root 0 2007-06-29 11:24 .. > -rw-r--r-- 1 root root 43 2007-06-29 11:24 001 > -rw-r--r-- 1 root root 50 2007-06-29 11:24 002 > -rw-r--r-- 1 root root 111 2007-06-29 11:24 003 > [EMAIL PROTECTED]:~$ Thanks, Werner. Guillaume. _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users