pcmcia smartcard

I am trying to get a pcmcia smartcard (SCM243) working on an old IBM laptop. I have installed the scr24x_v4.2.6 driver and running lspcmcia-v shows the smartcard but it also lists “no driver found”. Any suggestions on how to get this driver associated with the pcmcia card?

TIA
-L

Hi
What release of SLED and arch are you running?

Can you post the relevant output for the device from;

uname -a
lspci -nnk
hwinfo --pcmcia
hwinfo --pcmcia-ctrl

SLED11 SP3 x86

smeagol:/etc/pcmcia # uname -a
Linux smeagol 3.0.101-0.40-default #1 SMP Thu Sep 18 13:09:38 UTC 2014 (44b8c95) i686 i686 i386 GNU/Linux

smeagol:/etc/pcmcia # lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller [8086:3580] (rev 02)
Subsystem: IBM ThinkPad R50e [1014:055c]
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:00.1 System peripheral [0880]: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller [8086:3584] (rev 02)
Subsystem: IBM ThinkPad R50e [1014:055d]
00:00.3 System peripheral [0880]: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller [8086:3585] (rev 02)
Subsystem: IBM ThinkPad R50e [1014:055e]
00:02.0 VGA compatible controller [0300]: Intel Corporation 82852/855GM Integrated Graphics Device [8086:3582] (rev 02)
Subsystem: IBM Device [1014:0557]
Kernel driver in use: i915
Kernel modules: i915
00:02.1 Display controller [0380]: Intel Corporation 82852/855GM Integrated Graphics Device [8086:3582] (rev 02)
Subsystem: IBM Device [1014:0557]
Kernel modules: i915
00:1d.0 USB controller [0c03]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 [8086:24c2] (rev 01)
Subsystem: IBM ThinkPad [1014:052d]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.1 USB controller [0c03]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 [8086:24c4] (rev 01)
Subsystem: IBM ThinkPad [1014:052d]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.2 USB controller [0c03]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 [8086:24c7] (rev 01)
Subsystem: IBM ThinkPad [1014:052d]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.7 USB controller [0c03]: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller [8086:24cd] (rev 01)
Subsystem: IBM ThinkPad [1014:052e]
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev 81)
Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge [8086:24cc] (rev 01)
Kernel modules: iTCO_wdt, intel-rng
00:1f.1 IDE interface [0101]: Intel Corporation 82801DBM (ICH4-M) IDE Controller [8086:24ca] (rev 01)
Subsystem: IBM ThinkPad [1014:052d]
Kernel driver in use: ata_piix
Kernel modules: piix, ata_piix
00:1f.3 SMBus [0c05]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller [8086:24c3] (rev 01)
Subsystem: IBM ThinkPad [1014:052d]
Kernel driver in use: i801_smbus
Kernel modules: i2c-i801
00:1f.5 Multimedia audio controller [0401]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC’97 Audio Controller [8086:24c5] (rev 01)
Subsystem: IBM Device [1014:0558]
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
00:1f.6 Modem [0703]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC’97 Modem Controller [8086:24c6] (rev 01)
Subsystem: IBM ThinkPad R50e [1014:0559]
Kernel driver in use: Intel ICH Modem
Kernel modules: snd-intel8x0m
02:00.0 CardBus bridge [0607]: Ricoh Co Ltd RL5c476 II [1180:0476] (rev 8d)
Subsystem: IBM Device [1014:0555]
Kernel driver in use: yenta_cardbus
Kernel modules: yenta_socket
02:00.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 13)
Subsystem: IBM ThinkPad X60s / Z60t [1014:0556]
Kernel driver in use: sdhci-pci
Kernel modules: sdhci-pci
02:01.0 Ethernet controller [0200]: Intel Corporation 82541GI Gigabit Ethernet Controller [8086:1077]
Subsystem: IBM Device [1014:055b]
Kernel driver in use: e1000
Kernel modules: e1000
02:02.0 Network controller [0280]: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection [8086:4220] (rev 05)
Subsystem: Intel Corporation Device [8086:2711]
Kernel driver in use: ipw2200
Kernel modules: ipw2200

smeagol:/etc/pcmcia # hwinfo --pcmcia
20: PCMCIA 00.0: 0000 Unclassified device
[Created at pcmcia.84]
UDI: /org/freedesktop/Hal/devices/pcmcia__1__1
Unique ID: EnHx.XCkb6fP9yB9
Parent ID: B35A.tZayHkLAuzB
SysFS ID: /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0
SysFS BusID: 0.0
Hardware Class: unknown
Model: “SCR243 PCMCIA Smart Card Reader”
Hotplug: CardBus
Socket: 0
Vendor: pcmcia 0xffff “SCR243 PCMCIA”
Device: pcmcia 0x0001 “Smart Card Reader”
Module Alias: “pcmcia:mFFFFc0001f00fn00pfn00pa2054E8DEpbF5A90D5Dpc00000000pd00000000”
Extra Info: SCR243 PCMCIA, Smart Card Reader
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #16 (CardBus bridge)

the hwinfo --pcmcia-ctrl was an invalid option

Hi
Hmmm, have you tried starting the pcscd daemon?

rcpcscd status
rcpcscd start
lspcmcia -v

Do you have a download link for the driver your using? Might have to
add the id’s to the src.

SUSE has some (zypper se pcsc) drivers pscsc-lite is installed?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

the download came from
http://www.scm-pc-card.de/index.php?page=download&function=show_downloads&lang=en&product_id=223
http://www.scm-pc-card.de/file/driver/Readers_Writers/scr24x_v4.2.6_Release.tar.gz

smeagol:/dev # rcpcscd status
Checking for PC/SC smart card daemon unused
smeagol:/dev # rcpcscd start
Starting PC/SC smart card daemon done
smeagol:/dev # lspcmcia -v
Socket 0 Bridge: [yenta_cardbus] (bus ID: 0000:02:00.0)
Configuration: state: on ready: yes
Voltage: 5.0V Vcc: 5.0V Vpp: 5.0V
Socket 0 Device 0: [-- no driver --] (bus ID: 0.0)
Configuration: state: on
Product Name: SCR243 PCMCIA Smart Card Reader
Identification: manf_id: 0xffff card_id: 0x0001
prod_id(1): “SCR243 PCMCIA” (0x2054e8de)
prod_id(2): “Smart Card Reader” (0xf5a90d5d)
prod_id(3): — (—)
prod_id(4): — (—)

Hi
Looking at the code, seems there are udev rules involved and lots of
other bits and pieces…

Is there a /dev/SCR24x0 created on your system? I don’t have any 32bit
hardware I can use to try things out…

It also refers to pcsc-lite so I’m guessing (since it does refer to the
2.6 kernel) that most things to get it to work a represent in the 3.x.x
kernels.

How did you go about building the driver etc, where there errors?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

I found the info on this smartcard reader on an ubuntu forum - http://ubuntuforums.org/showthread.php?t=1006111
I unzipped the files and ran ./install and did not see any errors. The thread also indicated that the driver did not create the nodes so I used
mknod SCR24x0 c 251 0
on /dev and /lib/udev/devices. I have pcsc-lite on the system. Do I need to tweak a conf file for this driver?

-L

Hi
So you ran modprobe SCR24x as well and can see the module loaded in the
output of lsmod?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!