Blame INSTALL

Packit 9f0df5
INSTALLATION PROCEDURE
Packit 9f0df5
======================
Packit 9f0df5
Packit 9f0df5
Installation from source:
Packit 9f0df5
"""""""""""""""""""""""""
Packit 9f0df5
Packit 9f0df5
get the ccid-x.y.z.tar.gz archive and do:
Packit 9f0df5
Packit 9f0df5
$ tar xzvf ccid-x.y.z.tar.gz
Packit 9f0df5
$ cd ccid-x.y.z
Packit 9f0df5
$ ./configure
Packit 9f0df5
$ make
Packit 9f0df5
$ sudo make install
Packit 9f0df5
Packit 9f0df5
By default pcscd and my ccid driver use /usr/local/pcsc/drivers/ as
Packit 9f0df5
directory for hotplug drivers. The ./configure script try to get the
Packit 9f0df5
directory used by pcscd using 'pkg-config libpcsclite --variable=usbdropdir'
Packit 9f0df5
So you should not have to use the --enable-usbdropdir=DIR argument.
Packit 9f0df5
Packit 9f0df5
Packit 9f0df5
libusb not found
Packit 9f0df5
~~~~~~~~~~~~~~~~
Packit 9f0df5
Packit 9f0df5
If the ./configure script says something like:
Packit 9f0df5
  configure: error: usb.h not found, use --enable-libusb=PATH
Packit 9f0df5
You should use --enable-libusb=PATH to tell ./configure where to find
Packit 9f0df5
the usb.h and libusb.so files. The ./configure script will use
Packit 9f0df5
PATH/include/ to search for usb.h and PATH/lib/ to search for libusb.so
Packit 9f0df5
Packit 9f0df5
Packit 9f0df5
building serial reader driver
Packit 9f0df5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit 9f0df5
Packit 9f0df5
A serial CCID reader can also be connected on a serial port. By default
Packit 9f0df5
the serial driver is not built. You must explicitely do:
Packit 9f0df5
Packit 9f0df5
$ ./configure --enable-twinserial
Packit 9f0df5
$ make
Packit 9f0df5
# make install
Packit 9f0df5
Packit 9f0df5
Packit 9f0df5
builing serial reader driver only
Packit 9f0df5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit 9f0df5
Packit 9f0df5
It is possible to generate the driver for the GemPC Twin using serial
Packit 9f0df5
communication only (for example on an embedded system without USB).
Packit 9f0df5
Just do:
Packit 9f0df5
$ ./configure --enable-twinserial --disable-libusb
Packit 9f0df5
$ make
Packit 9f0df5
# make install
Packit 9f0df5
Packit 9f0df5
By default ./configure try to get the directory used by pcscd using
Packit 9f0df5
'pkg-config libpcsclite --variable=usbdropdir' and add '/serial'.
Packit 9f0df5
You should not have to use --enable-ccidtwindir=DIR to specify the
Packit 9f0df5
target directory to use. 
Packit 9f0df5
Packit 9f0df5
Packit 9f0df5
configuring the driver for the serial reader
Packit 9f0df5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit 9f0df5
Packit 9f0df5
You have to create or edit the file /etc/reader.conf. The file should
Packit 9f0df5
contain something like:
Packit 9f0df5
Packit 9f0df5
# Gemalto reader with serial communication
Packit 9f0df5
#  - n is the serial port to use n in [0..3]
Packit 9f0df5
#  - reader is the reader name. It is needed for multi-slot readers.
Packit 9f0df5
#    Possible reader values are: 
Packit 9f0df5
#     GemCorePOSPro
Packit 9f0df5
#     GemCoreSIMPro
Packit 9f0df5
#     GemCoreSIMPro2
Packit 9f0df5
#     GemPCPinPad
Packit 9f0df5
#     GemPCTwin (default value)
Packit 9f0df5
# example: /dev/ttyS0:GemPCPinPad
Packit 9f0df5
#DEVICENAME        /dev/ttySn[:reader]
Packit 9f0df5
#FRIENDLYNAME      "GemPCTwin serial"
Packit 9f0df5
#LIBPATH           /usr/lib/pcsc/drivers/serial/libccidtwin.so
Packit 9f0df5
Packit 9f0df5
FRIENDLYNAME      "GemPC Twin serial"
Packit 9f0df5
DEVICENAME        /dev/ttyS0
Packit 9f0df5
LIBPATH           /usr/lib/pcsc/drivers/serial/libccidtwin.so
Packit 9f0df5
Packit 9f0df5
You will have to adapt the library path to your configuration.
Packit 9f0df5
Packit 9f0df5
By default the GemPC Twin serial reader parameters are loaded by the
Packit 9f0df5
driver, if you use a GemPC PinPad, a GemCore POS Pro, a GemCore SIM
Packit 9f0df5
Pro or GemCore SIM Pro 2 (or IDBridge CR30) you have to indicate it in the
Packit 9f0df5
DEVICENAME field. Supported values are:
Packit 9f0df5
- GemCorePOSPro for GemCore POS Pro
Packit 9f0df5
- GemCoreSIMPro for GemCore SIM Pro
Packit 9f0df5
- GemCoreSIMPro2 for IDBridge CR30
Packit 9f0df5
- GemPCPinPad for GemPC PinPad
Packit 9f0df5
- GemPCTwin for GemPC Twin (default value)
Packit 9f0df5
Packit 9f0df5
You will then have something like:
Packit 9f0df5
DEVICENAME /dev/ttyS0:GemPCPinPad
Packit 9f0df5
Packit 9f0df5
/dev/ttyS0 (DEVICENAME field) is the first serial port under Linux
Packit 9f0df5
(known as COM1 under DOS/Windows). Of course if your reader is connected
Packit 9f0df5
to another serial port you have to adapt that.
Packit 9f0df5
Packit 9f0df5
Packit 9f0df5
Binary installation:
Packit 9f0df5
""""""""""""""""""""
Packit 9f0df5
Packit 9f0df5
Contact your distribution support.
Packit 9f0df5
Packit 9f0df5
Packit 9f0df5
Test procedure:
Packit 9f0df5
"""""""""""""""
Packit 9f0df5
Packit 9f0df5
- check the reader is supported by the driver.
Packit 9f0df5
  Get your reader USB identification using the lsusb(1) command:
Packit 9f0df5
  $ lsusb
Packit 9f0df5
  [...]
Packit 9f0df5
  Bus 001 Device 048: ID 08e6:4433 Gemplus
Packit 9f0df5
Packit 9f0df5
  Look for 08E6 (ifdVendorID) and 4433 (ifdProductID) in
Packit 9f0df5
  /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
Packit 9f0df5
  Of course your numbers will be different.
Packit 9f0df5
Packit 9f0df5
  If you can't find them add them (if you know what you do) and/or mail me.
Packit 9f0df5
Packit 9f0df5
- (re)start pcscd with debug on stdout. Simply do 'pcscd --debug stdout'
Packit 9f0df5
  (you will need to have root priviledges). And look for:
Packit 9f0df5
  [...]
Packit 9f0df5
  readerfactory.c:1319 RFInitializeReader: Attempting startup of ReaderName
Packit 9f0df5
  readerfactory.c:1061 RFBindFunctions: Loading IFD Handler 2.0
Packit 9f0df5
  ifdhandler.c:76 Entering IFDHCreateChannel (lun: 0)
Packit 9f0df5
  ccid_usb.c:131 Manufacturer: Ludovic Rousseau (ludovic.rousseau@free.fr)
Packit 9f0df5
  ccid_usb.c:139 ProductString: Generic CCID reader v0.1.0
Packit 9f0df5
  ccid_usb.c:143 Copyright: This driver is protected by terms of the GNU General Public License version 2, or (at your option) any later version.
Packit 9f0df5
  ccid_usb.c:223 Found Vendor/Product: 08E6/4433 (GemPC433 SL)
Packit 9f0df5
  ccid_usb.c:224 Using USB bus/device: 001/047
Packit 9f0df5
Packit 9f0df5
  If you don't see this the driver is not installed correctly or your
Packit 9f0df5
  reader is not yet supported. Read
Packit 9f0df5
  http://pcsclite.alioth.debian.org/ccid.html#CCID_compliant to know
Packit 9f0df5
  what to do.