What's new

RT-AC68U & pcsc reader

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Nimloth

Occasional Visitor
Hello,

1st of all - hello to this community :)

Recently I bought this nice router and trying to port some applications to it that uses pcsc reader.

When I CC pcc-lite there is problem with generated libs ... system don't see them:
Code:
 libpcsclite.so.1 => not found
 libpthread.so.0 => /lib/libpthread.so.0 (0x401af000)
 libdl.so.0 => /lib/libdl.so.0 (0x4014f000)
 librt.so.0 => /lib/librt.so.0 (0x400e5000)
 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4015b000)
 libc.so.0 => /lib/libc.so.0 (0x401ef000)
 ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x400fe000)

Of course libs exists in system:
Code:
admin@RT-AC68U:/tmp/mnt/sda1# ls -la /opt/lib/libpcsc*
-rwxr-xr-x    1 admin    root           962 Mar 15 14:48 /opt/lib/libpcsclite.la
lrwxrwxrwx    1 admin    root            20 Mar 15 14:50 /opt/lib/libpcsclite.so -> libpcsclite.so.1.0.0
lrwxrwxrwx    1 admin    root            20 Mar 15 14:50 /opt/lib/libpcsclite.so.1 -> libpcsclite.so.1.0.0
-rwxr-xr-x    1 admin    root         57012 Mar 15 14:48 /opt/lib/libpcsclite.so.1.0.0
-rwxr-xr-x    1 admin    root           947 Mar 15 14:48 /opt/lib/libpcscspy.la
lrwxrwxrwx    1 admin    root            19 Mar 15 14:50 /opt/lib/libpcscspy.so -> libpcscspy.so.0.0.0
lrwxrwxrwx    1 admin    root            19 Mar 15 14:50 /opt/lib/libpcscspy.so.0 -> libpcscspy.so.0.0.0
-rwxr-xr-x    1 admin    root         16337 Mar 15 14:48 /opt/lib/libpcscspy.so.0.0.0

My CC command:
Code:
CC=/media/git/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/arm-brcm-linux-uclibcgnueabi-gcc \
CXX=/media/git/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/arm-brcm-linux-uclibcgnueabi-g++ \
AR=/media/git/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/arm-brcm-linux-uclibcgnueabi-ar \
STRIP=/media/git/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/arm-brcm-linux-uclibcgnueabi-strip \
RANLIB=/media/git/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/arm-brcm-linux-uclibcgnueabi-ranlib \
ARCH=arm-brcm-linux-uclibcgnueabi  \
CROSS_COMPILE=/media/git/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/arm-brcm-linux-uclibcgnueabi- \
CFLAGS='-O2 -Wall -I /media/git/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/arm-brcm-linux-uclibcgnueabi/sysroot/usr/include' \
LIBUSB_CLFAGS="-I/opt/include" \
LIBUSB_LIBS="-L/opt/lib -lusb-1.0" \
./configure --prefix=/opt --host=arm-brcm-linux-uclibcgnueabi --build=i686-pc-linux  --disable-libudev  --enable-libusb

PCSCD deamon created from pcsc-lite works just fine:
Code:
admin@RT-AC68U:/tmp/mnt/sda1# pcscd --foreground --debug
00000000 debuglog.c:269:DebugLogSetLevel() debug level=debug
00000403 configfile.l:254:DBGetReaderListDir() Parsing conf directory: /opt/etc/reader.conf.d
00000366 configfile.l:266:DBGetReaderListDir() Skipping non regular file: ..
00000051 configfile.l:266:DBGetReaderListDir() Skipping non regular file: .
00000061 pcscdaemon.c:545:main() pcsc-lite 1.8.10 daemon ready.
00010691 hotplug_libusb.c:515:HPAddHotPluggable() Adding USB device: 3:2:0
00000130 readerfactory.c:989:RFInitializeReader() Attempting startup of OMNIKEY AG CardMan 3121 00 00 using /opt/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00001776 readerfactory.c:874:RFBindFunctions() Loading IFD Handler 3.0
00000686 ifdhandler.c:1910:init_driver() Driver version: 1.4.15
00003885 ifdhandler.c:1927:init_driver() LogLevel: 0x0003
00000071 ifdhandler.c:1938:init_driver() DriverOptions: 0x0000
00001101 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device: usb:076b/3021:libusb-1.0:3:2:0
00000125 ccid_usb.c:281:OpenUSBByName() Using: /opt/lib/pcsc/drivers//ifd-ccid.bundle/Contents/Info.plist
00003485 ccid_usb.c:299:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau@free.fr)
00000062 ccid_usb.c:300:OpenUSBByName() ifdProductString: Generic CCID driver
00000048 ccid_usb.c:301:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00003035 ccid_usb.c:589:OpenUSBByName() Found Vendor/Product: 076B/3021 (OMNIKEY AG CardMan 3121)

Thanks for any hint ...

Cheers,
Nimloth
 
FYI - it's impossible to use external libs as ldconfig is broken ... LOL
Had to build oscam with static libs.

Cheers
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top