ID or eID card reader Rocketek USB 2.0 Smart Card Reader (chip Realtek)

Screenshot_2019-06-24_09-03-54

  1. At Windows it works properly after installing proper driver for ID card reader from Realtek site.
  2. Bought here: Rocketek USB 2.0 Smart Card Reader for 3,99 €
  3. At Windows it works properly with driver from Realtek.
  4. Already I have installed packages:
    Screenshot_2019-06-24_09-13-49
    oraz Screenshot_2019-06-24_09-15-24
  5. I can't install drivers from Realtek drivers for Linux because I can't understand guides from Readme.txt

General Information

Linux driver for Realtek PCI-Express card reader chip.

Build Steps

  1. make
  2. make install
  3. depmod
  4. reboot your computer

Note: Root privilege is required in step 2 and 3

Thank you a lot for any related advice.
Screenshot_2019-06-24_09-29-06
Screenshot_2019-06-24_09-31-08

Did you install the linux-headers?

2 Likes

You created 3 posts about this ... :slight_smile:
If you install AUR packages then don't mix with an installation of the same thing from source.
As stated above, since the use of dkms packages you will need the linux-headers for the running kernel ...

2 Likes

Hi. Maybe this article will help:
https://wiki.archlinux.org/index.php/Electronic_identification

1 Like

To build from source on Manjaro you should use:

    make
    sudo make install
    sudo depmod -a
    sudo mkinitcpio -P
    reboot your computer

And as @bogdancovaciu already mentioned either use the AUR installer or build from source. Don't do both, that will lead to conflicts.

1 Like

Many thanks you for your answers:
Command:

[stranger@stranger-pc ~]$ uname -a
Linux on-pc 5.2.0-1-MANJARO #1 SMP PREEMPT Sun Jun 9 16:43:42 UTC 2019 x86_64 GNU/Linux

Now Linux headers are installed:
Screenshot_2019-06-24_12-07-24
eID card reader already not works.

I'll try ir https://wiki.archlinux.org/index.php/Electronic_identification

Please post:

lsusb
lsmod | sort
sudo dmesg | grep -Ei 'rtl|realtek|firm'

lsusb:

[on@on-pc ~]$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 03f0:1847 HP, Inc
Bus 001 Device 002: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 001 Device 005: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsmod | sort:
on@on-pc ~]$ lsmod | sort
ac97_bus 16384 1 snd_soc_core
aesni_intel 372736 0
aes_x86_64 20480 1 aesni_intel
agpgart 53248 2 intel_gtt,drm
ahci 40960 3
coretemp 20480 0
crc16 16384 1 ext4
crc32c_generic 16384 0
crc32c_intel 24576 2
crc32_pclmul 16384 0
crct10dif_pclmul 16384 1
cryptd 24576 2 crypto_simd,ghash_clmulni_intel
crypto_simd 16384 1 aesni_intel
crypto_user 16384 0
drm 528384 7 drm_kms_helper,i915
drm_kms_helper 221184 1 i915
e1000e 286720 0
evdev 24576 16
ext4 749568 1
fat 86016 1 vfat
fb_sys_fops 16384 1 drm_kms_helper
fuse 131072 3
ghash_clmulni_intel 16384 0
glue_helper 16384 1 aesni_intel
hid 143360 2 usbhid,hid_generic
hid_generic 16384 0
i2c_algo_bit 16384 1 i915
i2c_i801 36864 0
i915 2240512 13
input_leds 16384 0
intel_cstate 16384 0
intel_gtt 24576 1 i915
intel_pch_thermal 16384 0
intel_powerclamp 20480 0
intel_rapl 28672 0
intel_rapl_perf 16384 0
intel_uncore 139264 0
ip_tables 32768 0
irqbypass 16384 1 kvm
iTCO_vendor_support 16384 1 iTCO_wdt
iTCO_wdt 16384 0
jbd2 131072 1 ext4
joydev 28672 0
kvm 745472 1 kvm_intel
kvm_intel 311296 0
ledtrig_audio 16384 2 snd_hda_codec_generic,snd_hda_codec_realtek
libahci 40960 1 ahci
libata 274432 2 libahci,ahci
mac_hid 16384 0
mbcache 16384 1 ext4
mei 118784 3 mei_hdcp,mei_me
mei_hdcp 24576 0
mei_me 45056 1
Module Size Used by
mousedev 24576 0
nls_cp437 20480 1
nls_iso8859_1 16384 1
pcc_cpufreq 20480 0
pcspkr 16384 0
scsi_mod 249856 2 sd_mod,libata
sd_mod 57344 4
snd 106496 21 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm
snd_compress 28672 1 snd_soc_core
snd_hda_codec 155648 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
snd_hda_codec_generic 94208 1 snd_hda_codec_realtek
snd_hda_codec_hdmi 69632 1
snd_hda_codec_realtek 126976 1
snd_hda_core 102400 8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_soc_skl
snd_hda_ext_core 36864 2 snd_soc_hdac_hda,snd_soc_skl
snd_hda_intel 49152 5
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 135168 9 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_core,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_seq 86016 1 snd_seq_dummy
snd_seq_device 16384 1 snd_seq
snd_seq_dummy 16384 0
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_soc_skl
snd_soc_acpi_intel_match 28672 1 snd_soc_skl
snd_soc_core 286720 2 snd_soc_hdac_hda,snd_soc_skl
snd_soc_hdac_hda 24576 1 snd_soc_skl
snd_soc_skl 118784 0
snd_soc_skl_ipc 69632 1 snd_soc_skl
snd_soc_sst_dsp 40960 1 snd_soc_skl_ipc
snd_soc_sst_ipc 20480 1 snd_soc_skl_ipc
snd_timer 40960 2 snd_seq,snd_pcm
soundcore 16384 1 snd
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
usbhid 65536 0
vfat 20480 1
wmi 32768 1 wmi_bmof
wmi_bmof 16384 0
x86_pkg_temp_thermal 20480 0
xhci_hcd 278528 1 xhci_pci
xhci_pci 20480 0
x_tables 49152 1 ip_tables

sudo dmesg | grep -Ei 'rtl|realtek|firm':

[on@on-pc ~]$ sudo dmesg | grep -Ei 'rtl|realtek|firm'
[sudo] password for on:
[ 0.157458] Spectre V2 : Enabling Restricted Speculation for firmware calls
[ 2.561652] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[ 2.668153] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC892: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 2.668154] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 2.668155] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 2.668155] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 2.668156] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 2.668157] snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19
[ 2.668157] snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18
[ 2.668158] snd_hda_codec_realtek hdaudioC0D0: Line=0x1a

There is no realtek ID showing anywhere in your outputs for this reader.

Apparently this output is from your multimedia card reader.

There is no realtek ID showing anywhere in your outputs for this reader.
Thanks.
But at Windows works with Realtek driver.
I will try to find information about:
9540 Alcor Micro Corp. AU9540 Smartcard Reader

Just found this

[on@on-pc ~]$ pcsc_scan
SCardEstablishContext: Service not available.

I am not sure exactly what the issue is with this card reader.

I do not not know for what purpose you need this reader, but from the description on the aliexpress website it seems this device may be used for cloning cards from financial institutions. I'm sorry, but I do not think I'm comfortable trying to help you get this device working. I think you're on your own with this one.

Your device isn't Realtek and neither is the chip, so the Realtek driver probably won't work.
The linked drivers seem to be for a PCIE device, not a USB one.
A quick googling suggests that AU9540 Smartcard Reader is supported by the generic driver, follow the Arch Wiki article and see if it's any good.

Google
1 Like

I want to use this device for using my ID card and electronic signature. This device works properly at Windows, but I want to use it also at my manjaro.

Thank you for your help with proper device name (Alcor Micro Corp. AU9540 Smartcard Reader) detecting.

Thank you a lot, now I have big progress in this case:

  1. Step:
    Install ccid and opensc from the official repositories.
  2. Step:

$ sudo chmod a=w /etc/opensc.conf

This step enables modification of /etc/opensc.conf file. It's necessary because Alcor AU9540 Smartcard Reader (eID card reader) have no PINpad. Advice source.

  1. Step:

$ sudo echo "enable_pinpad = false" >> /etc/opensc.conf

Because used eID card reader have no PINpad.
Than:

$ sudo systemctl start pcscd.service

after:

$ pcsc_scan
And in terminal:
Using reader plug'n play mechanism
Scanning present readers...
0: Alcor Micro AU9560 00 00

Wed Jun 26 08:30:35 2019
Reader 0: Alcor Micro AU9560 00 00
Event number: 1
Card state: Card inserted,
ATR: 3B DD 18 00 81 31 FE 45 90 4C 41 54 56 49 41 2D 65 49 44 90 00 8C

ATR: 3B DD 18 00 81 31 FE 45 90 4C 41 54 56 49 41 2D 65 49 44 90 00 8C

  • TS = 3B --> Direct Convention
  • T0 = DD, Y(1): 1101, K: 13 (historical bytes)
    TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU
    129032 bits/s at 4 MHz, fMax for Fi = 5 MHz => 161290 bits/s
    TC(1) = 00 --> Extra guard time: 0
    TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1

TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1

TA(3) = FE --> IFSC: 254
TB(3) = 45 --> Block Waiting Integer: 4 - Character Waiting Integer: 5

  • Historical bytes: 90 4C 41 54 56 49 41 2D 65 49 44 90 00
    Category indicator byte: 90 (proprietary format)
  • TCK = 8C (correct checksum)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B DD 18 00 81 31 FE 45 90 4C 41 54 56 49 41 2D 65 49 44 90 00 8C
Identity card (eID) Republic of Latvia
http://www.pmlp.gov.lv/lv/pakalpojumi/passes/eid.html

The card reader works!
I can see my real name and surname as cardholder.

2 Likes

Forum kindly sponsored by