Blame INSTALL

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