• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Sheevaplug connected to USB smartcard reader  (Read 2848 times)
robjaq
Newbie
*

Karma: 0
Posts: 4


View Profile
« on: September 22, 2010, 05:13:47 AM »

I started a new project with a SheevaPlug computer (Ubuntu 9.04) and tried to connect it to a Omnikey 3121 USB smartcard reader.

so far so good...

After installing "default-jre", "libhal-dev", "libusb-dev" and "pcscd" (apt-get install package_name) I downloaded the appropriate USB device driver from the vendor HID (ifdokccid_lnx-3.6.0.tar.gz). I don't know if there has to be a special driver version for the arm processor so I used the available 32 bit version instead.
For additional pcsc tools I downloaded and installed "pcsc-lite-1.6.4" and compiled it without HAl-option (./configure --disable-libhal).
When I try to activate this configuration on my development notebook everything is working fine and the test:

pcscd --foreground --debug --apdu

shows me the correct status of the card reader.
Connected to the SheevaPlug I get a lot of error messages but no successful connection.

Any help and suggestions to this topic would be welcome.
thank you

-----------------------------------------------------------
Error messages:
-----------------------------------------------------------
pcscd:
-----------------------------------------------------------
...
00000299 pcscdaemon.c:533:main() pcsc-lite 1.6.4 daemon ready.
00021008 hotplug_libusb.c:472:HPAddHotPluggable() Adding USB device: 1:2
00000332 readerfactory.c:959:RFInitializeReader() Attempting startup of OMNIKEY CardMan 3x21 00 00 using /usr/local/lib/pcsc/drivers/ifdokccid_lnx-3.6.0.bundle/Contents/Linux/ifdokccid.so
00000596 dyn_unix.c:37:DYN_LoadLibrary() /usr/local/lib/pcsc/drivers/ifdokccid_lnx-3.6.0.bundle/Contents/Linux/ifdokccid.so: /usr/local/lib/pcsc/drivers/ifdokccid_lnx-3.6.0.bundle/Contents/Linux/ifdokccid.so: cannot open shared object file: No such file or directory
00000248 readerfactory.c:966:RFInitializeReader() RFLoadReader failed: 80100014
00000233 readerfactory.c:257:RFAddReader() OMNIKEY CardMan 3x21 init failed.
99999999 pcscdaemon.c:654:signal_trap() Received signal: 2
00000037 pcscdaemon.c:659:signal_trap() Preparing for suicide
01006284 readerfactory.c:1267:RFCleanupReaders() entering cleaning function
00000057 winscard_svc.c:127:ContextsDeinitialize() remaining threads: 0
00000027 pcscdaemon.c:606:at_exit() cleaning /var/run/pcscd
-----------------------------------------------------------
/var/log/messages:
-----------------------------------------------------------
...
Sep 22 10:48:53 debian pcscd: pcscdaemon.c:498:main() pcsc-lite 1.4.102 daemon ready.
Sep 22 10:48:53 debian pcscd: hotplug_libhal.c:485:HPRegisterForHotplugEvents() Could not initialise connection to hald.
Sep 22 10:48:53 debian pcscd: hotplug_libhal.c:486:HPRegisterForHotplugEvents() Normally this means the HAL daemon (hald) is not running or not ready.
Sep 22 10:48:53 debian pcscd: pcscdaemon.c:517:main() SVCServiceRunLoop returned
Sep 22 10:48:53 debian pcscd: pcscdaemon.c:523:at_exit() cleaning /var/run/pcscd
...
Logged

robjaq
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #1 on: September 24, 2010, 06:43:00 AM »

do you think, I should reinstall the complete SheevaPlug operation system and then try again?
Logged

robjaq
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #2 on: September 27, 2010, 07:54:33 AM »

The vendor HID told me that they don't support the ARM platform :-(
So I tried to remove the driver and install the generic CCID driver (http://pcsclite.alioth.debian.org/ccid.html).
But now I lost the communication to the USB device completely.

...
00038228 ccid_usb.c:377:OpenUSBByName() Checking device: 3/3
00000017 ccid_usb.c:432:OpenUSBByName() Trying to open USB bus/device: 3/3
00000131 ccid_usb.c:492:OpenUSBByName() Can't claim interface 3/3: -6
00098296 ifdhandler.c:105:IFDHCreateChannelByName() failed
00000025 readerfactory.c:990:RFInitializeReader() Open Port 200000 Failed (usb:076b/3021:libhal:/org/freedesktop/Hal/devices/usb_device_76b_3021_noserial_if0)
00000007 readerfactory.c:886:RFUnloadReader() Unloading reader driver.
00000047 readerfactory.c:257:RFAddReader() OmniKey CardMan 3121 init failed.
...

Any ideas?
Logged

robjaq
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #3 on: September 28, 2010, 11:56:26 PM »

Sulution found!

The proprietary drivers of the vendor HID are nor valid for ARM based systems.
So, we installed the generic drivers CCID from Ludovic Rousseau and made sure that all remaining HID driver files had been removed.
You should also ensure that all previous pcscd task have ended before you restart your test.
Logged

Pages: [1]
Print
Jump to: