On 26.11.2011 15:52, Hannu Kotipalo wrote: > hmm.. I'm using 32bit version with my laptop, it works ok. Tried to > unzip the 64 bit version, got the same error :-( > > oh, works, if you > ---------- > gunzip ifdok_cm4040_lnx_x64-2.0.0.tar.gz > tar -xf ifdok_cm4040_lnx_x64-2.0.0.tar > ---------------
Ok, so I managed to install the driver, but now pcscd segfaults after first access :) (note that I didn't insert any card, but opensc outputs that a card is present) $ opensc-tool -l # Detected readers (pcsc) Nr. Card Features Name 0 Yes OMNIKEY CardMan 4040 Socket 0 00 00 $ opensc-tool -l No smart card readers found. $ dmesg | tail -n 1 [ 542.287653] pcscd[15109]: segfault at 0 ip (null) sp 00007fb317760bd0 error 14 in pcscd[400000+1b000] I think I'll wait until my SCM SCR3310 arrives. I hope that it'll work more reliable, although an external usb reader is not so handy as a pcmcia card (at least for usage with a laptop). Regards, Niclas PS: here is the debug output of pcscd. I think the segfault is caused by the cm4040 driver from globalhid, so we're out of luck anyway. $ sudo pcscd -df 00000000 pcscdaemon.c:233:main() pcscd set to foreground with debug send to stdout 00000121 configfile.l:245:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d 00000044 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/reader.conf 00000084 readerfactory.c:934:RFInitializeReader() Attempting startup of OMNIKEY CardMan 4040 Socket 0 00 00 using /usr/lib/pcsc/drivers/ifdok_cm4040_lnx_x64-2.0.0.so 00000111 readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0 OK CardMan 4040 X64 v2.0.0 supp...@omnikey.com 00001689 readerfactory.c:291:RFAddReader() Using the pcscd polling thread 00000573 pcscdaemon.c:518:main() pcsc-lite 1.8.0 daemon ready. 00000168 hotplug_libudev.c:664:HPRegisterForHotplugEvents() No bundle files in pcsc drivers directory: /usr/lib/pcsc/drivers 00000020 hotplug_libudev.c:665:HPRegisterForHotplugEvents() Disabling USB support for pcscd 00000017 readerfactory.c:1301:RFWaitForReaderInit() Waiting init for reader: OMNIKEY CardMan 4040 Socket 0 00 00 03941031 winscard_msg_srv.c:230:ProcessEventsServer() Common channel packet arrival 00000056 winscard_msg_srv.c:242:ProcessEventsServer() ProcessCommonChannelRequest detects: 6 00000017 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread creation is requested: 6 00000139 winscard_svc.c:297:ContextThread() Thread is started: dwClientID=6, threadContext @0x199fad0 00000035 winscard_svc.c:315:ContextThread() Received command: CMD_VERSION from client 6 00000023 winscard_svc.c:327:ContextThread() Client is protocol version 4:2 00000014 winscard_svc.c:347:ContextThread() CMD_VERSION rv=0x0 for client 6 00000206 winscard_svc.c:315:ContextThread() Received command: ESTABLISH_CONTEXT from client 6 00000043 winscard.c:193:SCardEstablishContext() Establishing Context: 0x1035168 00000016 winscard_svc.c:408:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 6 00000188 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 6 00000176 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 6 00000192 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 6 00000166 winscard_svc.c:315:ContextThread() Received command: CONNECT from client 6 00000036 winscard.c:235:SCardConnect() Attempting Connect to OMNIKEY CardMan 4040 Socket 0 00 00 using protocol: 3 00000023 winscard.c:415:SCardConnect() Direct access: no protocol selected 00000015 winscard.c:422:SCardConnect() hCard Identity: 11e35 00000029 winscard_svc.c:449:ContextThread() CONNECT rv=0x0 for client 6 00000153 winscard_svc.c:315:ContextThread() Received command: CONTROL from client 6 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel