linux Smart Card Reader install ?

Discussion in 'Panasonic' started by Michael McBride, Apr 15, 2017.

  1. Michael McBride

    Michael McBride Notebook Enthusiast

    Reputations:
    0
    Messages:
    39
    Likes Received:
    3
    Trophy Points:
    16
    I am using parrot os which is based from kali which is based debian. also I am getting a new error actually from PC/SC device scanner: SCardEstablishContext: Service not available. I readjusted the flat cable to the smart card reader and made sure it is enabled in bios. Wonder what to do now? Just looking up. Thank you
     
  2. SHEEPMAN!

    SHEEPMAN! Freelance

    Reputations:
    794
    Messages:
    2,320
    Likes Received:
    214
    Trophy Points:
    81
    I switched to a MK-1 CF-30.....and smartcard is on a serial port.....
    MK2/3 CF-31 are USB. As far as anything in between I'll have to check.

    Service not available means to me that systemd has raised it's ugly head.

    Let me check if I have any other smartcard readers in the collection.

    Previously interrupted by garlic sausage and gray poupon....checking..................................................................................................................................................

    From CF30CCS85BM MX-16Linux

    Jeff

    Edit:
    SERIAL SMART CARD READER DRIVERS
    Smart card reader drivers are placed in the /usr/lib/pcsc/drivers
    directory. Each driver is simply an .so file. pcscd locates the driver
    using the /etc/reader.conf.d/reader.conf file. See the reader.conf(5)
    manual page for more information.

    Some drivers are available at
    http://pcsclite.alioth.debian.org/musclecard.com/drivers.html.
     
    Last edited: Apr 16, 2017
  3. SHEEPMAN!

    SHEEPMAN! Freelance

    Reputations:
    794
    Messages:
    2,320
    Likes Received:
    214
    Trophy Points:
    81
    Swapped in a XP HDD and this reader is a Gemplus 3417.
    /windows/system32/GTwinSer.sys is the driver. (for WindowsXP) from device manager:[properties]
    Back on Linux and looking for Gemplus......................and this:

    Good luck.


    Serial readers
    Serial drivers must be configured to operate on a particular port and respond to a particular name. The reader.conf file is used for this purpose.

    It has the following syntax:

    # Configuration file for pcsc-lite
    # David Corcoran <corcoran@musclecard.com>

    FRIENDLYNAME Generic Reader
    DEVICENAME /dev/ttyS0
    LIBPATH /usr/lib/pcsc/drivers/libgen_ifd.so
    CHANNELID 1

    The pound sign # denotes a comment.

    FRIENDLYNAME
    The FRIENDLYNAME field is an arbitrary text used to identify the reader. This text is displayed by commands like pcsc_scan http://ludovic.rousseau.free.fr/softwares/pcsc-tools/ that prints the names of all the connected and detected readers.

    DEVICENAME
    The DEVICENAME field was not used for old drivers (using the IFD handler version 2.0 or previous). It is now (IFD handler version 3.0) used to identify the physical port on which the reader is connected. This is the device name of this port. It is dependent of the OS kernel. For example the first serial port device is called /dev/ttyS0 under Linux and /dev/cuaa0 under FreeBSD.

    If you want to use IFDHCreateChannel() instead of IFDHCreateChannelByName() then do not use any DEVICENAME line in the configuration file. IFDHCreateChannel() will then be called with the CHANNELID parameter.

    LIBPATH
    The LIBPATH field is the filename of the driver code. The driver is a dynamically loaded piece of code (generally a drivername.so* file).

    CHANNELID
    The CHANNELID is no more used for recent drivers (IFD handler 3.0) and has been superseded by DEVICENAME.

    If you have an old driver this field is used to indicate the port to use. You should read your driver documentation to know what information is needed here. It should be the serial port number for a serial reader.

    CHANNELID was the numeric version of the port in which the reader will be located. This may be done by a symbolic link where /dev/pcsc/1 is the first device which may be a symbolic link to /dev/ttyS0 or whichever location your reader resides.

    -----------------------------------EDIT--------------------------------------------------
    Code:
    $ pcsc_scan
    PC/SC device scanner
    V 1.4.27 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
    Compiled with PC/SC lite version: 1.8.17
    Using reader plug'n play mechanism
    Scanning present readers...
    Waiting for the first reader...^C
    #Well I got to here. Not having any cards is slowing things down a bit. These were installed with gdebi. Treating it as a serial connection all the way.
    libpcsclite1
    pcsc-tools
    libpcsc-perl #required by pcsc-tools

    I tried writing ' /etc/reader.conf/reader.conf ' as directed in one of the 'man' pages but that needs a tweak.

    Interesting.
     
    Last edited: Apr 16, 2017
  4. Shawn

    Shawn Crackpot Search Ninja and Options Whore

    Reputations:
    1,410
    Messages:
    6,567
    Likes Received:
    1,026
    Trophy Points:
    331
    Dumb question maybe..Is the smart card enabled in the BIOS?
    Does it even show up in the BIOS?
     
  5. Michael McBride

    Michael McBride Notebook Enthusiast

    Reputations:
    0
    Messages:
    39
    Likes Received:
    3
    Trophy Points:
    16
    mine shows up in bios and is enabled.

    I cant seem to find how to get the scr243 pcmcia drivers. any ideas for it also.
     
    Last edited by a moderator: Apr 16, 2017
  6. Shawn

    Shawn Crackpot Search Ninja and Options Whore

    Reputations:
    1,410
    Messages:
    6,567
    Likes Received:
    1,026
    Trophy Points:
    331
  7. Michael McBride

    Michael McBride Notebook Enthusiast

    Reputations:
    0
    Messages:
    39
    Likes Received:
    3
    Trophy Points:
    16
    I did download those but am having trouble installing them on linux. any ideas

    Sudo ./install:
    Kernel Headers located.
    Kernel module has to be recompiled
    pcsclite middleware is not installed.

    I am not sure how to recompile the drivers. Thank you
     
    Last edited by a moderator: Apr 16, 2017
  8. Shawn

    Shawn Crackpot Search Ninja and Options Whore

    Reputations:
    1,410
    Messages:
    6,567
    Likes Received:
    1,026
    Trophy Points:
    331
    I am clueless on that. Ask Sheepman
     
  9. SHEEPMAN!

    SHEEPMAN! Freelance

    Reputations:
    794
    Messages:
    2,320
    Likes Received:
    214
    Trophy Points:
    81
    Typing
    Code:
    systemctl
    should tell you if systemd has attempted to use the device.
    I see nothing in
    Code:
    lsmod
    mentioning the SCR.
     
  10. Michael McBride

    Michael McBride Notebook Enthusiast

    Reputations:
    0
    Messages:
    39
    Likes Received:
    3
    Trophy Points:
    16
    pccardctl ident:
    Socket 0:
    product info: "SCR243 PCMCIA
    ", "Smart Card Reader
    ", "", ""
    manfid: 0xffff, 0x0001
     
Loading...

Share This Page