[GH-ISSUE #17] About Linux Depedencies #4

Closed
opened 2026-03-04 23:13:24 +03:00 by kerem · 4 comments
Owner

Originally created by @AzoteGwei on GitHub (Jul 18, 2024).
Original GitHub issue: https://github.com/creamlike1024/EasyLPAC/issues/17

It happened just now that I figured out why I can't use EasyLPAC on my Linux Mint distribution. The error message is provided below.

/home/azote/EasyLPAC/lpac version
SCardEstablishContext() failed: 8010001D
APDU driver init failed

The Linux Mint doesn't included the pcscd in any installation option. So in order to run EasyLPAC( or lpac actually), the Linux must need a pcscd service running in the background.

(Also it needs a card reader inserted to prevent errors below. but actually it isn't a bug for EasyLPAC)

/home/azote/EasyLPAC/lpac version
SCardListReaders() failed: 8010002E
APDU driver init failed

So, please update the README and add some hint when Linux users meet error code 8010001D(pcscd not running or even not installed) or 8010002E(No card reader found)

Originally created by @AzoteGwei on GitHub (Jul 18, 2024). Original GitHub issue: https://github.com/creamlike1024/EasyLPAC/issues/17 It happened just now that I figured out why I can't use EasyLPAC on my Linux Mint distribution. The error message is provided below. ``` /home/azote/EasyLPAC/lpac version SCardEstablishContext() failed: 8010001D APDU driver init failed ``` The Linux Mint doesn't included the `pcscd` in any installation option. So in order to run EasyLPAC( or lpac actually), the Linux must need a `pcscd` service running in the background. (Also it needs a card reader inserted to prevent errors below. but actually it isn't a bug for EasyLPAC) ``` /home/azote/EasyLPAC/lpac version SCardListReaders() failed: 8010002E APDU driver init failed ``` So, please update the README and add some hint when Linux users meet error code `8010001D`(`pcscd` not running or even not installed) or `8010002E`(No card reader found)
kerem closed this issue 2026-03-04 23:13:24 +03:00
Author
Owner

@creamlike1024 commented on GitHub (Jul 19, 2024):

Thank you for providing the information. README has been updated.
For lpac dependencies see lpac/docs/USAGE.md at main · estkme-group/lpac

<!-- gh-comment-id:2237891095 --> @creamlike1024 commented on GitHub (Jul 19, 2024): Thank you for providing the information. README has been updated. For lpac dependencies see [lpac/docs/USAGE.md at main · estkme-group/lpac](https://github.com/estkme-group/lpac/blob/main/docs/USAGE.md)
Author
Owner

@ihipop commented on GitHub (Aug 15, 2024):

I inserted a USB

lsusb -v  -d 0483:2017

Bus 003 Device 015: ID 0483:2017 STMicroelectronics Biometric Smart Card Reader
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0483 STMicroelectronics
  idProduct          0x2017 Biometric Smart Card Reader
  bcdDevice            1.02
  iManufacturer           1 SYC
  iProduct                2 USB CCID Reader
  iSerial                 3 SN0000000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x005d
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          3 SN0000000000
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0 
      iInterface              4 (error)
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.10  (Warning: Only accurate for version 1.0)
        nMaxSlotIndex           0
        bVoltageSupport         7  5.0V 3.0V 1.8V 
        dwProtocols             3  T=0 T=1
        dwDefaultClock       4800
        dwMaxiumumClock     16000
        bNumClockSupported      0
        dwDataRate          12903 bps
        dwMaxDataRate      600000 bps
        bNumDataRatesSupp.      0
        dwMaxIFSD             252
        dwSyncProtocols  00000000 
        dwMechanical     00000000 
        dwFeatures       000100BA
          Auto configuration based on ATR
          Auto voltage selection
          Auto clock change
          Auto baud rate change
          Auto PPS made by CCID
          TPDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse    echo
        bClassEnvelope       echo
        wlcdLayout           none
        bPINSupport             0 
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              32
Device Status:     0x0000
  (Bus Powered)

pcscd started, still get the error

SCardListReaders() failed: 8010002E
APDU driver init failed

this USB CCID card reader works well with easyEUICC on Android

<!-- gh-comment-id:2291025893 --> @ihipop commented on GitHub (Aug 15, 2024): I inserted a USB ```bash lsusb -v -d 0483:2017 Bus 003 Device 015: ID 0483:2017 STMicroelectronics Biometric Smart Card Reader Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 [unknown] bDeviceSubClass 0 [unknown] bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0483 STMicroelectronics idProduct 0x2017 Biometric Smart Card Reader bcdDevice 1.02 iManufacturer 1 SYC iProduct 2 USB CCID Reader iSerial 3 SN0000000000 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x005d bNumInterfaces 1 bConfigurationValue 1 iConfiguration 3 SN0000000000 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 11 Chip/SmartCard bInterfaceSubClass 0 [unknown] bInterfaceProtocol 0 iInterface 4 (error) ChipCard Interface Descriptor: bLength 54 bDescriptorType 33 bcdCCID 1.10 (Warning: Only accurate for version 1.0) nMaxSlotIndex 0 bVoltageSupport 7 5.0V 3.0V 1.8V dwProtocols 3 T=0 T=1 dwDefaultClock 4800 dwMaxiumumClock 16000 bNumClockSupported 0 dwDataRate 12903 bps dwMaxDataRate 600000 bps bNumDataRatesSupp. 0 dwMaxIFSD 252 dwSyncProtocols 00000000 dwMechanical 00000000 dwFeatures 000100BA Auto configuration based on ATR Auto voltage selection Auto clock change Auto baud rate change Auto PPS made by CCID TPDU level exchange dwMaxCCIDMsgLen 271 bClassGetResponse echo bClassEnvelope echo wlcdLayout none bPINSupport 0 bMaxCCIDBusySlots 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 32 Device Status: 0x0000 (Bus Powered) ``` `pcscd` started, still get the error ``` SCardListReaders() failed: 8010002E APDU driver init failed ``` this USB CCID card reader works well with easyEUICC on Android
Author
Owner

@ihipop commented on GitHub (Aug 15, 2024):

also CCID driver was installed

pacman -Qi ccid            
Name            : ccid
Version         : 1.5.5-1
Description     : A generic USB Chip/Smart Card Interface Devices driver
Architecture    : x86_64
URL             : https://ccid.apdu.fr/
Licenses        : LGPL  GPL
Groups          : None
Provides        : None
Depends On      : pcsclite  libusb  flex
Optional Deps   : None
Required By     : None
Optional For    : pcsclite
Conflicts With  : None
Replaces        : None
Installed Size  : 257.43 KiB
Packager        : Christian Hesse <eworm@archlinux.org>
Build Date      : 2024年01月14日 星期日 20时19分07秒
Install Date    : 2024年08月15日 星期四 18时33分37秒
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
<!-- gh-comment-id:2291047583 --> @ihipop commented on GitHub (Aug 15, 2024): also `CCID` driver was installed ```bash pacman -Qi ccid Name : ccid Version : 1.5.5-1 Description : A generic USB Chip/Smart Card Interface Devices driver Architecture : x86_64 URL : https://ccid.apdu.fr/ Licenses : LGPL GPL Groups : None Provides : None Depends On : pcsclite libusb flex Optional Deps : None Required By : None Optional For : pcsclite Conflicts With : None Replaces : None Installed Size : 257.43 KiB Packager : Christian Hesse <eworm@archlinux.org> Build Date : 2024年01月14日 星期日 20时19分07秒 Install Date : 2024年08月15日 星期四 18时33分37秒 Install Reason : Explicitly installed Install Script : No Validated By : Signature ```
Author
Owner

@ihipop commented on GitHub (Aug 15, 2024):

Finally, I made it to work
image

I will submit to to https://ccid.apdu.fr/

for those who can't wait, here is the diff

*** /etc/libccid_Info.plist	2024-01-14 20:19:07.000000000 +0800
--- /tmp/libccid_Info.plist	2024-08-15 18:56:32.444514123 +0800
***************
*** 102,107 ****
--- 102,108 ----
  
  	<key>ifdVendorID</key>
  	<array>
+ 		<string>0x0483</string>
  		<string>0x072F</string>
  		<string>0x09C3</string>
  		<string>0x09C3</string>
***************
*** 699,704 ****
--- 700,706 ----
  
  	<key>ifdProductID</key>
  	<array>
+ 		<string>0x2017</string>
  		<string>0x90CC</string>
  		<string>0x0013</string>
  		<string>0x0014</string>
***************
*** 1296,1301 ****
--- 1298,1304 ----
  
  	<key>ifdFriendlyName</key>
  	<array>
+ 		<string>STMicroelectronics Biometric Smart Card Reader</string>
  		<string>ACS ACR 38U-CCID</string>
  		<string>ActivIdentity USB Reader V3</string>
  		<string>ActivIdentity Activkey_Sim</string>
<!-- gh-comment-id:2291078271 --> @ihipop commented on GitHub (Aug 15, 2024): Finally, I made it to work ![image](https://github.com/user-attachments/assets/71a3941f-111c-475c-8a55-2aa9e3aac772) I will submit to to `https://ccid.apdu.fr/` for those who can't wait, here is the diff ```diff *** /etc/libccid_Info.plist 2024-01-14 20:19:07.000000000 +0800 --- /tmp/libccid_Info.plist 2024-08-15 18:56:32.444514123 +0800 *************** *** 102,107 **** --- 102,108 ---- <key>ifdVendorID</key> <array> + <string>0x0483</string> <string>0x072F</string> <string>0x09C3</string> <string>0x09C3</string> *************** *** 699,704 **** --- 700,706 ---- <key>ifdProductID</key> <array> + <string>0x2017</string> <string>0x90CC</string> <string>0x0013</string> <string>0x0014</string> *************** *** 1296,1301 **** --- 1298,1304 ---- <key>ifdFriendlyName</key> <array> + <string>STMicroelectronics Biometric Smart Card Reader</string> <string>ACS ACR 38U-CCID</string> <string>ActivIdentity USB Reader V3</string> <string>ActivIdentity Activkey_Sim</string> ```
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/EasyLPAC#4
No description provided.