Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87941 - pcsc-lite fails when trying to use an "ACS ACR 3u 0 0" SmartCard reader
Summary: pcsc-lite fails when trying to use an "ACS ACR 3u 0 0" SmartCard reader
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 11:40 UTC by Abraham Marin Perez
Modified: 2005-04-04 18:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abraham Marin Perez 2005-04-04 11:40:23 UTC
I emerged pcsc-lite and then got the drivers for the Reader from acs web page, here:

http://acs.com.hk/DriversManual.asp?PID=53

acs provides some Makefile that puts reader's driver in /usr/local/pcsc/drivers, however pcscd seems to read it from /usr/lib/readers/usb, so I copied the files and tried again.

With every file in its directory I started the init script, but it didn't seem to recognize the reader. Then I tried to run pcscd manually redirecting the debug info to standard output and got this:

/usr/sbin/pcscd -f -dstdout
pcscdaemon.c:251 main: pcscd set to foreground
pcscdaemon.c:265 main: debug messages to stdout
pcscdaemon.c:445 main: pcsc-lite daemon ready.
hotplug_libusb.c:344 Adding USB device: 003:015
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
eventhandler.c:180 EHSpawnEventHandler: Initial Check Failed on ACS ACR 30u 0 0

Apparently pcscd detects a reader being plugged in but fails to perform some initial check. Just to add some extra information I'll paste lsusb output and reader's web page:

lsusub:
Bus 003 Device 015: ID 072f:0001 ACS, Ltd ACR20U SmartCard Reader
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

reader's web page:
http://www.synchrotech.com/product-sc/card-rw_01.html

Reproducible: Always
Steps to Reproduce:
1. emerge pcsc-lite
2. install acs 3u drivers from the link indicated above
3. connect the reader




Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.7-gentoo-r12 i686)
=================================================================
System uname: 2.6.7-gentoo-r12 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 24 2005, 18:47:09)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer -fforce-addr
-frerun-loop-opt -floop-optimize -frerun-cse-after-loop -falign-functions=4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer -fforce-addr
-frerun-loop-opt -floop-optimize -frerun-cse-after-loop -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo
ftp://ftp.rediris.es/pub/linux/distributions/gentoo
ftp://ftp.gentoo-pt.org/pub/gentoo/ ftp://mir.zyrianes.net/gentoo/
ftp://ftp.caliu.info/pub/gentoo/ http://mir.zyrianes.net/gentoo/"
LANG="es_ES.UTF-8@euro"
LC_ALL="es_ES.UTF-8@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 audiofile avi bidi bitmap-fonts bzlib
calendar canna cdr cjk crypt cscope curl dga directfb divx4linux doc dvb emboss
encode esd evo exif fam fbcon fftw firebird flac font-server fortran freewmn ftp
gb gcj gd gdbm gif gnome gtk gtk2 gtkhtml iconv icq imagemagick imlib iodbc
jabber java jikes jpeg libg++ libwww mad memlimit mikmod mime mmx motif mozilla
mp3 mpeg msn nas ncurses nls nptl odbc offensive oggvorbis openal opengl pam
pcre pdflib perl png pnp posix python quicktime readline sdl shared sharedmem
simplexml slang spell ssl svg svga sysvipc szip tcltk tcpd tetex theora tiff
truetype truetype-fonts type1-fonts unicode usb videos wmf x86 xinerama xml xml2
xmlrpc xmms xv xvid zlib video_cards_nvidia linguas_es linguas_en linguas_ja"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-04-04 18:12:47 UTC
i dont think many people in Gentoo have experience with this library let alone they also have the hardware you do, so you'll probably have to take this upstream to get it resolved:
http://pcsclite.alioth.debian.org/