restart pcmcia problem for my LT4000 driver for kernel 2.6

mail mail towergeebulk at gmail.com
Wed Sep 7 11:37:03 EDT 2005


Hi, 
 
I have worked a few days to port INFINEER LT4000 PCMCIA device driver
from 2.4 to 2.6.
And I have made some progress. Now I can compile it successfully, and
copy it to
/lib/modules/2.6.11-1.14_FC3/kernel/drivers/pcmcia/LT4000_cs.ko 
but seems that it does not work well. I will attach the source code in
the last of this thread.
 
Thanks for help in advanced. :)
 
Other works such as making libLT4000.so and copying it to
/usr/local/pcsc/drivers direcotry
and editing /usr/local/pcsc/etc/reader.conf containing the following lines :
===========BEGIN==========
FRIENDLYNAME     "INFINEER LT4000 Reader"
DEVICENAME       /dev/LT4000
LIBPATH          /usr/local/pcsc/drivers/libLT4000.so 
CHANNELID        1 
=========== END ==========
and making nodes in /dev/ are all done. And I have done the same
things in kernle 2.4 while
LT4000 works fine.
 
My working environment is Linux FC3 2.6.11-1.14_FC3 on NEC laptop with 2
pcmcia plots. One is for network adaptor, the other is for LT4000.
 
# cat /var/lib/pcmcia/stab 
Socket 0: LT4000 Mako Technologies Smart Card Reader 1
Socket 1: empty 
 
Also, I have added the following lines to the file /etc/pcmcia/config.
=============BEGIN================
device "LT4000_cs"
  class "smartcard" module "LT4000_cs"
card "LT4000 Mako Technologies Smart Card Reader 1" 
  manfid 0x0290, 0x0050
    bind "LT4000_cs"

card "LT4000 Mako Technologies Smart Card Reader 2"
  manfid 0xadde, 0x0050
    bind "LT4000_cs"
=============END================

When I try to run "/etc/rc.d/init.d/pcmcia restart" to load LT4000, I
find that some errors occur.

In "/var/log/message", there are the following lines;

Aug 30 22:01:32 FC3 cardmgr[4251]: socket 0: LT4000 Mako Technologies
Smart Card Reader 1
Aug 30 22:01:32 FC3 cardmgr[4251]: executing: 'modprobe LT4000_cs 2>&1'
Aug 30 22:01:32 FC3 cardmgr[4251]: + FATAL: Module LT4000_cs not found. 
Aug 30 22:01:32 FC3 cardmgr[4251]: modprobe exited with status 1
Aug 30 22:01:32 FC3 cardmgr[4251]: module
/lib/modules/2.6.11-1.14_FC3/pcmcia/LT4000_cs.o not available
Aug 30 22:01:32 FC3 cardmgr[4251]: bind 'LT4000_cs' to socket 0
failed: Invalid argument


>From the above , I find that although in kernel 2.6, .ko files have
replace .o files. But cardmgr still tries to load
.o files. So LT4000_cs.ko can't be loaded.



More information about the linux-pcmcia mailing list