pcscd doesn't initialize pcmcia reader anymore
I upgraded from Xubuntu 12.10 to Linux Mint 18 xfce4.
The reader I am using with my laptop is a build-in O2Micro SmartCardBus Reader.
It worked well with Xubuntu 12.10, kernel 3.7.0.7.11 and pcscd 1.8.5-1ubuntu1.
I got a driver from http://
I upgraded to Linux Mint 18 xfce4, kernel 4.4.0-21.37, pcscd 1.8.14-1ubuntu1.
I recompiled the driver (had to change 1 line in ozscrlx.c):
' iminor(
I only got a SSL warning: the module didn't got signed, but no problem since it's not an UEFI machine.
See added 'compile_
As I did with the previous system, I created a group 'pcscd' and added an udev rule:
ACTION!="add", GOTO="pcscd_
KERNEL=="o2scr0", SUBSYSTEM=
LABEL=
The module (o2scr) and the driver (ozscrlx_cs) are loaded and pcscd sees the SmartCard slot, but it doesn't get it initialized.
I have added some logs from the system that works (debug OZSCR ok.txt) and from the system that doesn't (debug OZSCR not_ok.txt).
Any help to get it working is appreciated ...
Bart.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu pcsc-lite Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
compile_
-------
$ make clean
make -C src/ozctapi clean
make[1]: Entering directory '/mnt/Data/
rm -f *.o *.so
make[1]: Leaving directory '/mnt/Data/
make -C src/ozscrlx clean
make[1]: Entering directory '/mnt/Data/
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` clean
make[2]: Entering directory '/usr/src/
CLEAN /mnt/Data/
CLEAN /mnt/Data/
make[2]: Leaving directory '/usr/src/
make[1]: Leaving directory '/mnt/Data/
$ make all
make -C src/ozctapi
make[1]: Entering directory '/mnt/Data/
cc -Wall -O2 -I/usr/include/PCSC -fPIC -c -o ctapi.o ctapi.c
cc -Wall -O2 -I/usr/include/PCSC -fPIC -c -o ifdhandler.o ifdhandler.c
cc -shared ctapi.o ifdhandler.o -o lib_OZSCR.so
make[1]: Leaving directory '/mnt/Data/
make -C src/ozscrlx
make[1]: Entering directory '/mnt/Data/
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
make[2]: Entering directory '/usr/src/
CC [M] /mnt/Data/
LD [M] /mnt/Data/
Building modules, stage 2.
MODPOST 1 modules
CC /mnt/Data/
LD [M] /mnt/Data/
make[2]: Leaving directory '/usr/src/
make[1]: Leaving directory '/mnt/Data/
$ sudo make install
make -C src/ozctapi install
make[1]: Entering directory '/mnt/Data/
install -D lib_OZSCR.so /usr/local/
make[1]: Leaving directory '/mnt/Data/
make -C src/ozscrlx install
make[1]: Entering directory '/mnt/Data/
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules_install
make[2]: Entering directory '/usr/src/
INSTALL /mnt/Data/
At main.c:222:
- SSL error:02001002:
- SSL error:2006D080:BIO routines:
sign-file: certs/signing_
DEPMOD 4.4.0-21-generic
make[2]: Leaving directory '/usr/src/
make[1]: Leaving directory '/mnt/Data/
make -C etc install
make[1]: Entering directory '/mnt/Data/
install -D -m644 reader.conf /etc/reader.
make[1]: Leaving directory '/mnt/Data/
Revision history for this message
|
#2 |
debug OZSCR ok.txt
-------
XUBUNTU 12.10
kernel 3.7.0.7.11
pcscd 1.8.5-1ubuntu1
-------
$ sudo pccardctl -vv ls
Socket 0 Bridge: [yenta_cardbus] (bus ID: 0000:38:03.0)
Configuration: state: on ready: yes
Available IRQs: 3, 4, 7, 10, 11
Available ioports: 0x00000100 - 0x0000021f
0x00000228 - 0x000003af
0x000003e0 - 0x000003ff
0x00000490 - 0x000004cf
0x000004d8 - 0x000004ff
0x00000820 - 0x000008ff
0x00000a00 - 0x00000aff
0x00000c00 - 0x00000cf7
0x00005100 - 0x000053ff
0x00005500 - 0x000057ff
0x00005900 - 0x00005bff
0x00005d00 - 0x00005fff
Available iomem: 0x000d0000 - 0x000dffff
0xf2610000 - 0xf26fffff
Socket 1 Bridge: [yenta_cardbus] (bus ID: 0000:38:03.1)
Configuration: state: on ready: yes
Voltage: 5.0V
Vcc: 5.0V
Vpp: 5.0V
Available IRQs: 3, 4, 7, 10, 11
Available ioports: 0x00000100 - 0x0000021f
0x00000228 - 0x000003af
0x000003e0 - 0x000003ff
0x00000490 - 0x000004cf
0x000004d8 - 0x000004ff
0x00000820 - 0x000008ff
0x00000a00 - 0x00000aff
0x00000c00 - 0x00000cf7
0x00005100 - 0x000053ff
0x00005500 - 0x000057ff
0x00005900 - 0x00005bff
0x00005d00 - 0x00005fff
Available iomem: 0xf2610000 - 0xf26fdfff
0x000d0000 - 0x000dffff
Socket 1 Device 0: [ozscrlx_cs] (bus ID: 1.0)
Configuration: state: on
[io 0x5100-0x511f flags 0x108]
[io 0x0000 flags 0x100]
[mem 0xf2611000-
[mem 0x00000000 flags 0x200]
[mem 0x00000000 flags 0x200]
[mem 0x00000000 flags 0x200]
Product Name: O2Micro
SmartCardBus Reader
V1.0
Identification: manf_id: 0xffff card_id: 0x0001
prod_id(1): "O2Micro
" (0x94f31211)
prod_id(2): "SmartCardBus Reader
" (0x4f67a249)
prod_id(3): "V1.0
" (0xf28411a8)
prod_id(4): --- (---)
-------
$ sudo /etc/init.d/pcscd stop
$ sudo pcscd -adfx
00000000 pcscdaemon.
00000015 pcscdaemon.
00000047 configfile.
00000014 configfile.
00000004 configfile.
00000006 configfile.
00000032 configfile.
00000037 configfile.
00000030 readerfactory.
00000065 dyn_unix.
00000008 readerfactory.
00000024 readerfactory.
00000034 pcscdaemon.
00001525 hotplug_
00000121 hotplug_
00000122 hotplug_
00000122 hotplug_
00000096 hotplug_
00000100 hotplug_
00000102 hotplug_
00000105 hotplug_
00000103 hotplug_
00000097 hotplug_
00000106 hotplug_
00000104 hotplug_
00000099 hotplug_
00000102 hotplug_
00000101 hotplug_
00000099 hotplug_
00000095 hotplug_
00000125 hotplug_
00000092 hotplug_
00000098 hotplug_
00000122 hotplug_
00000121 hotplug_
00000123 hotplug_
00000095 hotplug_
00000139 hotplug_
00000109 hotplug_
-------
/etc/reader.
# Configuration file for pcsc-lite
#
# This file has to be configured for serial and PCMCIA readers only.
# normal USB readers shall _not_ be configured here!
#
# David Corcoran <email address hidden>
FRIENDLYNAME "O2Micro SmartCardBus Reader"
DEVICENAME /dev/o2scr0
LIBPATH /usr/local/
CHANNELID 0xF10000
# End of file
Revision history for this message
|
#3 |
debug OZSCR not_ok.txt
-------
LINUX MINT 18 XFCE4
kernel 4.4.0-21.37
pcscd 1.8.14-1ubuntu1
-------
$ sudo pccardctl -vv ls
Socket 0 Bridge: [yenta_cardbus] (bus ID: 0000:38:03.0)
Configuration: state: on ready: yes
Available IRQs: 3, 4, 7, 10, 11
Available ioports: 0x00000100 - 0x000003af
0x000003e0 - 0x000004ff
0x00000820 - 0x000008ff
0x00000a00 - 0x00000aff
0x00000c00 - 0x00000cf7
0x00005000 - 0x00005fff
Available iomem: 0x000d0000 - 0x000dffff
0xf2610000 - 0xf26fffff
Socket 1 Bridge: [yenta_cardbus] (bus ID: 0000:38:03.1)
Configuration: state: on ready: yes
Voltage: 5.0V
Vcc: 5.0V
Vpp: 5.0V
Available IRQs: 3, 4, 7, 10, 11
Available ioports: 0x00000100 - 0x000003af
0x000003e0 - 0x000004ff
0x00000820 - 0x000008ff
0x00000a00 - 0x00000aff
0x00000c00 - 0x00000cf7
0x00005000 - 0x00005fff
Available iomem: 0xf2610000 - 0xf26fdfff
0x000d0000 - 0x000dffff
Socket 1 Device 0: [ozscrlx_cs] (bus ID: 1.0)
Configuration: state: on
[io 0x5100-0x511f flags 0x108]
[io 0x0000 flags 0x100]
[mem 0xf2611000-
[mem 0x00000000 flags 0x200]
[mem 0x00000000 flags 0x200]
[mem 0x00000000 flags 0x200]
Product Name: O2Micro
SmartCardBus Reader
V1.0
Identification: manf_id: 0xffff card_id: 0x0001
prod_id(1): "O2Micro
" (0x94f31211)
prod_id(2): "SmartCardBus Reader
" (0x4f67a249)
prod_id(3): "V1.0
" (0xf28411a8)
prod_id(4): --- (---)
-------
$ sudo /etc/init.d/pcscd stop
$ sudo pcscd -adfx
00000000 pcscdaemon.
00000024 pcscdaemon.
00000042 configfile.
00000021 configfile.
00000010 configfile.
00000034 configfile.
00000017 configfile.
00000022 configfile.
00000019 readerfactory.
00000061 dyn_unix.
00000012 readerfactory.
ifdhandler.
ctapi.c:130:CT_init CT_init enter
ctapi.c:161:CT_init CT_init exit (-11)
00000046 readerfactory.
00000009 readerfactory.
00000013 readerfactory.
00000009 readerfactory.
00000009 readerfactory.
00000021 pcscdaemon.
00004068 hotplug_
00000143 hotplug_
00000137 hotplug_
00000137 hotplug_
00000095 hotplug_
00000104 hotplug_
00000102 hotplug_
00000114 hotplug_
00000113 hotplug_
00000101 hotplug_
00000120 hotplug_
00000114 hotplug_
00000107 hotplug_
00000112 hotplug_
00000121 hotplug_
00000102 hotplug_
00000108 hotplug_
00000130 hotplug_
00000102 hotplug_
00000096 hotplug_
00000131 hotplug_
00000136 hotplug_
00000134 hotplug_
00000117 hotplug_
00000097 hotplug_
00000108 hotplug_
-------
/etc/reader.
# Configuration file for pcsc-lite
#
# This file has to be configured for serial and PCMCIA readers only.
# normal USB readers shall _not_ be configured here!
#
# David Corcoran <email address hidden>
FRIENDLYNAME "O2Micro SmartCardBus Reader"
DEVICENAME /dev/o2scr0
LIBPATH /usr/local/
CHANNELID 0xF10000
# End of file
Revision history for this message
|
#4 |
Linux Mint isnt supported here. I suggest you post on the Mint forum:
https:/
None of the "Ubuntu based" distributions are supported here
Can you help with this problem?
Provide an answer of your own, or ask Bart for more information if necessary.