You are not logged in.
Pages: 1
I'm trying to compile the driver for man cardman 2020 usb reader. I'm new to arch and don't know much about compiling in general.
I got the driver from here:
http://omnikey.aaitg.com/index.php?id=69&rName=CardMan 2020 PC/SC for Linux&did=69
CardMan 2020 PC/SC for Linux 826KB PC/SC driver for CardMan 2020 and CardMan 6020/6120 (V2.4.1 - Release: 01/31/06 - Linux - Supports Kernel 2.4 and 2.6 - Source code (partly))
When I run the install script I get the following:
Installing OMNIKEY Cardman USB Smartcard reader...
Distribution is unknown
Found PCSC version 1.4.4 in /usr/local/sbin/pcscd
Installing generic init-script
ln: creating symbolic link «/etc/init.d/rc2.d/S50pcscd»: Ingen slik fil eller filkatalog
ln: creating symbolic link «/etc/init.d/rc2.d/K50pcscd»: Ingen slik fil eller filkatalog
ln: creating symbolic link «/etc/init.d/rc3.d/S50pcscd»: Ingen slik fil eller filkatalog
ln: creating symbolic link «/etc/init.d/rc3.d/K50pcscd»: Ingen slik fil eller filkatalog
ln: creating symbolic link «/etc/init.d/rc4.d/S50pcscd»: Ingen slik fil eller filkatalog
ln: creating symbolic link «/etc/init.d/rc4.d/K50pcscd»: Ingen slik fil eller filkatalog
ln: creating symbolic link «/etc/init.d/rc5.d/S50pcscd»: Ingen slik fil eller filkatalog
ln: creating symbolic link «/etc/init.d/rc5.d/K50pcscd»: Ingen slik fil eller filkatalog
/usr/local/pcsc/drivers/
The kernel module for 2.6.23-ARCH isn't prebuilt!
Try to compile it for you!
rm -f *.o 2>/dev/null
rm -f *.ko 2>/dev/null
rm -f cardman.mod* 2>/dev/null
make -C /lib/modules/2.6.23-ARCH/build SUBDIRS=/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020 modules
make[1]: Entering directory `/usr/src/linux-2.6.23-ARCH'
CC [M] /home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.o
make[1]: Leaving directory `/usr/src/linux-2.6.23-ARCH'
Couldn't build kernel module.
Compile it by yourself
As instructed I try to compile it manually but get this:
make -C /lib/modules/2.6.23-ARCH/build SUBDIRS=/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020 modules
make[1]: Entering directory `/usr/src/linux-2.6.23-ARCH'
CC [M] /home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.o
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:24:26: error: linux/config.h: Ingen slik fil eller filkatalog
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:66: error: expected â)â before string constant
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:168: error: unknown field âmodeâ specified in initializer
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:175: error: unknown field âownerâ specified in initializer
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:175: warning: initialization from incompatible pointer type
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c: In function âxusb_submit_urbâ:
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:234: error: âSLAB_ATOMICâ undeclared (first use in this function)
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:234: error: (Each undeclared identifier is reported only once
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:234: error: for each function it appears in.)
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c: In function âcmu_ioctlâ:
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:1778: error: implicit declaration of function âverify_areaâ
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:1829: warning: passing argument 1 of âcopy_to_userâ makes pointer from integer without a cast
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:1953: warning: passing argument 2 of âcopy_from_userâ makes pointer from integer without a cast
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:2008: warning: passing argument 2 of âcopy_from_userâ makes pointer from integer without a cast
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c: In function âcmu_openâ:
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:2131: warning: passing argument 7 of âusb_fill_control_urbâ from incompatible pointer type
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:2142: warning: passing argument 7 of âusb_fill_control_urbâ from incompatible pointer type
/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.c:2153: warning: passing argument 6 of âusb_fill_int_urbâ from incompatible pointer type
make[2]: *** [/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020/cardman.o] Error 1
make[1]: *** [_module_/home/kay/buypass/cm2020_installer_v2_4_1_src/src/cm2020] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.23-ARCH'
make: *** [default] Error 2
Anyone have an idea of what is wrong ?
Offline
it seems the official cardman 2020 driver stopped support with kernel 2.6.8, and doesn't work with current kernel.
the solution seems to be here http://wiki.gula.es/index.php?title=HOW … n_2020_USB
Offline
Pages: 1