Page 1 of 1

How to Compile the driver of Smart Card Reader....

PostPosted: Sat May 22, 2010 6:40 pm
by Thorzton
Omnikey Cardman 2020 to work with the new kernel.
I read the installation files, but i don't really understand whats wrong.
http://www.hidglobal.com/driverDownloads.php?techCat=19&prod_id=199# here I got the driver,
bur in the end of installing, he sayd, its not found the right kernel, what should i do? :?:

Re: How to Compile the driver of Smart Card Reader....

PostPosted: Sat May 22, 2010 10:11 pm
by 2hot6ft2
From reading the README file it should go like this.
Save the cm2020_installer_v2_4_1_src.tar.gz file in your home folder
Places > Home folder
Right click on it and select extract here. Then open a terminal
Applications > Accessories > Terminal
and run one line at a time (same goes for other commands below to save space instead of multiple single code boxes)
Code: Select all
cd cm2020_installer_v2_4_1_src/pcsc-lite-1.2.0
./configure
make
sudo make install
cd cm2020_installer_v2_4_1_src
sudo sh install

If the installer script exits with the message that your kernel version is not supported,
you have to build the kernel module by yourself.
Code: Select all
cd cm2020_installer_v2_4_1_src/src/cm2020
make

which will generate a file cardman.o/.ko. Rename this file to cardman.<your-kernel-name>.o/.ko, where <your-kernel-name> is what the command `uname -r' prints on your system. Then copy the file to the modules directory and rerun ./install.
Code: Select all
uname -r

retuns something like this
2.6.31-22-generic
Go to
Places > Home folder > cm2020_installer_v2_4_1_src > src > cm2020
And right click on the cardman.o/.ko file and rename the file
cardman.2.6.31-22-generic.o/.ko
Then right click on the file and select copy and go to
Places > Home folder > cm2020_installer_v2_4_1_src > modules
and paste it.

This should only be necessary if you are missing kernel headers on your system or something else has gone wrong while the installer tries to compile the kernel module for you.
Code: Select all
cd cm2020_installer_v2_4_1_src
sudo sh install

------------------------------
Setting the Library Path
------------------------------
Code: Select all
gksu gedit /etc/ld.so.conf

and add to the bottom of the file
/usr/local/lib

Save and Close
Code: Select all
ldconfig

Code: Select all
sudo apt-get install portmap

Reboot then run
Code: Select all
sudo /usr/local/sbin/pcscd


If it works you can add it to
System > Preferences > Startup Applications
Click Add and fill in like this
Name: PCSC-daemon
Command: /usr/local/sbin/pcscd
Comment: Whatever you want
<BREW>