/*Readme for scr3xxx USB  Smart Card Reader  */

SECTION 1
---------
Hardware        			: scr3xxx CCID Reader
Package Version 			: 4.5.1
Author          			: SCM Microsystems
IFDHandler Version   		: 4.5.1
Kernel module Version		: 4.5.1


SECTION 2
---------

IMPORTANT NOTE:

Please note that the package name has been changed from scr33x to
scr3xxx starting from driver version 4.5.1. If you are already using 
an older version of the driver, make sure that the old scripts/bundles
are removed before installing this driver version.

scripts / modules to remove:
/usr/local/pcsc/drivers/scr33xcciddriver.bundle
/lib/modules/`uname -r`/kernel/drivers/usb/scr33x.o   <-- 2.4.x kernels
/lib/modules/`uname -r`/kernel/drivers/usb/scr33x.ko   <-- 2.6.x kernels
/usr/local/scm/ini/scr33x.ini
/etc/rc.d/rc2.d/S94scr33x
/etc/rc.d/rc3.d/S94scr33x
/etc/rc.d/rc4.d/S94scr33x
/etc/rc.d/rc5.d/S94scr33x
/etc/hotplug/usb/scr33x

scr33x related entries in /etc/udev/rules.d/50-udev.rules file. This step 
will be needed if udev has been installed and used.


SECTION 3
---------
                                                                                          
Installation Procedure:

Step 1: Install pcsclite

Step 2: Execute the "install" script that comes with this package
	This will copy the driver bundle to /usr/local/pcsc/drivers directory 
	Please copy manually to any other directory if the dropdir has been
	changed during installation of pcsclite middleware

	It will also create
	the /usr/local/scm/ini directory.
	The kernel modules and hotlug scripts and will be copied to the
	respective directories


Step 3:This step is optional

a)If the user needs to force F and D value externally,
the user needs to create a file "scr3xxx.ini" under the
directory "/usr/local/scm/ini/" and update the values 
as follows (the following is an example)

FValue= 1
DValue= 8

Note:Forcing the values as 1,1 will bypass the PPS
Please refer the sample scr3xxx.ini file provided with the package

b)maximum buffer size of the command/APDU handled by driver from 
application has been increased to 128Kbytes. This is held configurable 
by the following entry  in "/usr/local/scm/ini/" ( mentioned in
previous step )  
(the following is an example that will enable driver to handle 256bytes of data from application)

Buffersize= 256

Step 4: Restart the pcsclite daemon.

Step 5: The binary scr3xxx.ko and scr3xxx.o provided with the package are compiled for 
Kernel versions 2.6.9-1.667. For other kernels the kernel module has to
be recompiled that is also done automatically by the "install" script.
The system should have the Kernel source tree installed in /lib/modules/'kernel-version'
/build/include/directory for the above mentioned automatic compilation to be successful.


c) Feautre to override default card ATR is added from this driver
version. For example, to replace a particular ATR, add a line as below,

3b021122= 3b03112233

where the LValue is the ATR to be replaced and the RValue is the ATR to
replace it with.

SECTION 3
----------

PROCEDURE TO COMPILE KERNEL MODULE MANNUALLY (OPTIONAL)
-------------------------------------------------------
For recompiling the source explicitly go to the src directory of the package
follow the below mentioned steps

COMPILING THE SOURCE 
--------------------
The system should have the Kernel source tree installed in /lib/modules/'kernel-version'
/build/include/directory
The source code for the Kernel module is provided with the package

To compile
Go to the src directory 

For making release binary
-------------------------

Give the commands 
make  
make install 
to compile the release binary and copy to the kernel drivers directory

For making debug binary
-------------------------

Give the commands
make debug=1 
make install 
to compile the debug binary and copy to the kernel drivers directory

Notes: For kernels using udev, udev will take care of all the
device insertion and removal. the "hotplug" directory given with this
script will be a redundant one.

/*End of File*/
