CCID-Treiber ?

Bei svn 6738 kommt folgender fehler beim starten
Code:
pcscdaemon.c:267:main() pcscd set to foreground with debug send to stderr
pcscdaemon.c:512:main() pcsc-lite 1.5.5 daemon ready.
hotplug_libusb.c:403:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
hotplug_libusb.c:412:HPEstablishUSBNotifications() Polling forced every 1 second(s)
 
Verwendest Du Release oder Labor Version? Bei der Labor hatte ich bislang keinen Erfolg. Wie Du in meinen Logs sehen kannst, hatte ich ebenfalls diese Fehlermeldungen. Trotzdem hat es mit der Einschränkung, dass ich Festplatte und Kartenleser erst nach dem Starten der Box anschließen musste, funktioniert.

Die Release 7270V3

Folgende Fehler bei make mit ccid
Code:
mandy28@mandy28-desktop:~/freetz-trunk1$ make
---> package/ccid: preparing... tar -C source/target-mipsel_uClibc-0.9.29  -xjf dl/ccid-1.4.2.tar.bz2
set -e; shopt -s nullglob; for i in make/ccid/patches/*.patch; do tools/freetz_patch source/target-mipsel_uClibc-0.9.29/ccid-1.4.2 $i; done
configuring... (conf_cmd() { ./configure  "$@"  || { printf "\n\\033[33m%s\\033[m\n" "ERROR: Build failed.";  exit 1; } }; cd source/target-mipsel_uClibc-0.9.29/ccid-1.4.2;   rm -f config.{cache,status} ;    PATH=""/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin:/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-3.4.6/mipsel-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"" CC="/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc" CXX="/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-g++-uc" CFLAGS="-Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CXXFLAGS="-Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="" PKG_CONFIG_PATH="/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/../lib/pkgconfig"  FREETZ_TARGET_LFS="y" CONFIG_SITE=/home/mandy28/freetz-trunk1/include/site/mipsel-linux-uclibc conf_cmd   --cache-file=/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/config.cache --target=mipsel-linux --host=mipsel-linux --build=i386-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --datadir=/usr/share --includedir=/usr/include --infodir=/usr/share/info --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --sbindir=/usr/sbin --sysconfdir=/etc --with-gnu-ld --disable-nls      )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/mandy28/freetz-trunk1/include/site/mipsel-linux-uclibc
configure: creating cache /home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-linux-strip... mipsel-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-pc-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mipsel-linux-gcc... /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc accepts -g... yes
checking for /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc... gcc3
checking whether /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for mipsel-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PCSC... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ifdhandler.h usability... yes
checking ifdhandler.h presence... yes
checking for ifdhandler.h... yes
checking reader.h usability... yes
checking reader.h presence... yes
checking for reader.h... yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc... /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld
checking if the linker (/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-nm -B
checking the name lister (/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-nm -B) interface... BSD nm
checking the maximum length of command line arguments... 805306365
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld option to reload object files... -r
checking for mipsel-linux-objdump... mipsel-linux-objdump
checking how to recognize dependent libraries... pass_all
checking for mipsel-linux-ar... mipsel-linux-ar
checking for mipsel-linux-strip... (cached) mipsel-linux-strip
checking for mipsel-linux-ranlib... mipsel-linux-ranlib
checking command to parse /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-nm -B output from /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no
checking for /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC
checking if /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes
checking if /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc static flag -static works... yes
checking if /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc supports -c -o file.o... yes
checking if /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc supports -c -o file.o... (cached) yes
checking whether the /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc linker (/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for select... yes
checking for strerror... (cached) yes
checking for strncpy... yes
checking for memcpy... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for LIBUSB... yes
checking libusb.h usability... yes
checking libusb.h presence... yes
checking for libusb.h... yes
checking for libusb_init... yes
checking for -fvisibility=hidden... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for SCardEstablishContext... yes

libccid has been configured with following options:

Version:             1.4.2
User binaries:       /usr/bin
Configuration files: /etc


Host:                mipsel-unknown-linux-gnu
Compiler:            /home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
Preprocessor flags:  
Compiler flags:      -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
Preprocessor flags:  
Linker flags:        
Libraries:           

PCSC_CFLAGS:         -pthread -I/usr/include/PCSC  
PCSC_LIBS:           -lpcsclite  
PTHREAD_CFLAGS:      -pthread
PTHREAD_LIBS:        
BUNDLE_HOST:         Linux
DYN_LIB_EXT:         so
LIBUSB_CFLAGS:       -I/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/include/libusb-1.0  
LIBUSB_LIBS:         -L/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/lib -lusb-1.0  
SYMBOL_VISIBILITY:   -fvisibility=hidden
NOCLASS:             

libusb support:          yes
composite as multislot:  no
multi threading:         yes
bundle directory name:   ifd-ccid.bundle
USB drop directory:      /usr/lib/pcsc/drivers
serial Twin support:     no
serial twin install dir: /usr/lib/pcsc/drivers/serial
compiled for pcsc-lite:  yes
class driver:            yes

configure: updating cache /home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating readers/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/Kobil_mIDentity_switch/Makefile
config.status: creating contrib/RSA_SecurID/Makefile
config.status: creating examples/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-nls
cmd() { PATH="/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin:/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-3.4.6/mipsel-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" LD_RUN_PATH="/usr/lib/freetz" make -j2  "$@"  || { printf "\n\\033[33m%s\\033[m\n" "ERROR: Build failed.";  exit 1; } }; 	if [ -e source/.echo_item_start -a ! -e source/.echo_item_build ]; then echo -n "building... "; touch source/.echo_item_build; fi; cmd -C source/target-mipsel_uClibc-0.9.29/ccid-1.4.2 \
		CC="/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc" \
		CFLAGS="-Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
building... make[1]: Betrete Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2'
make  all-recursive
make[2]: Betrete Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2'
Making all in m4
make[3]: Betrete Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/m4'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/m4'
Making all in readers
make[3]: Betrete Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/readers'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/readers'
Making all in examples
make[3]: Betrete Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/examples'
/home/mandy28/freetz-trunk1/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I..    -pthread -I/usr/include/PCSC   -pthread -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT scardcontrol-scardcontrol.o -MD -MP -MF .deps/scardcontrol-scardcontrol.Tpo -c -o scardcontrol-scardcontrol.o `test -f 'scardcontrol.c' || echo './'`scardcontrol.c
scardcontrol.c: In function 'parse_properties':
scardcontrol.c:114: error: 'PCSCv2_PART10_PROPERTY_wLcdLayout' undeclared (first use in this function)
scardcontrol.c:114: error: (Each undeclared identifier is reported only once
scardcontrol.c:114: error: for each function it appears in.)
scardcontrol.c:117: error: 'PCSCv2_PART10_PROPERTY_bEntryValidationCondition' undeclared (first use in this function)
scardcontrol.c:120: error: 'PCSCv2_PART10_PROPERTY_bTimeOut2' undeclared (first use in this function)
scardcontrol.c:123: error: 'PCSCv2_PART10_PROPERTY_wLcdMaxCharacters' undeclared (first use in this function)
scardcontrol.c:126: error: 'PCSCv2_PART10_PROPERTY_wLcdMaxLines' undeclared (first use in this function)
scardcontrol.c:129: error: 'PCSCv2_PART10_PROPERTY_bMinPINSize' undeclared (first use in this function)
scardcontrol.c:132: error: 'PCSCv2_PART10_PROPERTY_bMaxPINSize' undeclared (first use in this function)
scardcontrol.c:135: error: 'PCSCv2_PART10_PROPERTY_sFirmwareID' undeclared (first use in this function)
scardcontrol.c: In function 'main':
scardcontrol.c:371: error: 'FEATURE_MCT_READER_DIRECT' undeclared (first use in this function)
scardcontrol.c:375: error: 'FEATURE_GET_TLV_PROPERTIES' undeclared (first use in this function)
scardcontrol.c:402: error: 'PCSCv2_PART10_PROPERTY_bEntryValidationCondition' undeclared (first use in this function)
scardcontrol.c:405: error: 'PCSCv2_PART10_PROPERTY_bMaxPINSize' undeclared (first use in this function)
make[3]: *** [scardcontrol-scardcontrol.o] Fehler 1
make[3]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/examples'
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2'
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk1/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2'

ERROR: Build failed.
make: *** [source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/ccid] Fehler 1
 
Zuletzt bearbeitet:
Ich habe gesehen, dass Du die DL Links in Patch v5 korrigiert hast. Konntest Du damit compilieren und läuft Dein Kartenleser? Hast Du das gleiche Problem, dass es nur funktioniert, wenn Festplatte oder USB Stick und Kartenleser erst nach dem Hochfahren der Box funktionieren, nicht aber wenn diese vor dem Start bereits angesteckt waren?
 
Zuletzt bearbeitet:
Fehlermeldung bleibt wie inmeinem letzten post
pcsc läuft wohl durch , es hängt bei ccid-1.4.2
 
Ich habe patch v6 in trac hinterlegt.
 
Fehler bleibt , make bricht ab auch im neu ausgechektem trunk
Revision 6758.

Code:
---> package/ccid: downloading... 
--2011-04-03 10:57:16--  https://alioth.debian.org/frs/download.php/3518//ccid-1.4.2.tar.bz2
Auflösen des Hostnamen alioth.debian.org... 217.196.43.134
Verbindungsaufbau zu alioth.debian.org|217.196.43.134|:443... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 445453 (435K) [application/binary]
In »dl/ccid-1.4.2.tar.bz2« speichern.

100%[======================================>] 445.453     1,59M/s   in 0,3s    

2011-04-03 10:57:17 (1,59 MB/s) - »dl/ccid-1.4.2.tar.bz2« gespeichert [445453/445453]

Download succeeded - https://alioth.debian.org/frs/download.php/3518//ccid-1.4.2.tar.bz2  ->  saved to folder dl
MD5 verified for dl/ccid-1.4.2.tar.bz2: 4a8f954c0aef48e8e5ab5d458cf819e8
preparing... tar -C source/target-mipsel_uClibc-0.9.29  -xjf dl/ccid-1.4.2.tar.bz2
set -e; shopt -s nullglob; for i in make/ccid/patches/*.patch; do tools/freetz_patch source/target-mipsel_uClibc-0.9.29/ccid-1.4.2 $i; done
configuring... (conf_cmd() { ./configure  "$@"  || { printf "\n\\033[33m%s\\033[m\n" "ERROR: Build failed.";  exit 1; } }; cd source/target-mipsel_uClibc-0.9.29/ccid-1.4.2;   rm -f config.{cache,status} ;    PATH=""/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin:/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-3.4.6/mipsel-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"" CC="/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc" CXX="/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-g++-uc" CFLAGS="-Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CXXFLAGS="-Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="" PKG_CONFIG_PATH="/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/../lib/pkgconfig"  FREETZ_TARGET_LFS="y" CONFIG_SITE=/home/mandy28/freetz-trunk/include/site/mipsel-linux-uclibc conf_cmd   --cache-file=/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/config.cache --target=mipsel-linux --host=mipsel-linux --build=i386-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --datadir=/usr/share --includedir=/usr/include --infodir=/usr/share/info --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --sbindir=/usr/sbin --sysconfdir=/etc --with-gnu-ld --disable-nls  --enable-libusb --enable-static PCSC_CFLAGS="-pthread -I/usr/include/PCSC -I/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/include/PCSC/" PCSC_LIBS="-lpcsclite -L/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/lib/"    )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/mandy28/freetz-trunk/include/site/mipsel-linux-uclibc
configure: loading cache /home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/config.cache
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-linux-strip... (cached) mipsel-linux-strip
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking build system type... (cached) i386-pc-linux-gnu
checking host system type... (cached) mipsel-unknown-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mipsel-linux-gcc... (cached) /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc accepts -g... (cached) yes
checking for /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc option to accept ISO C89... (cached) none needed
checking for style of include used by make... GNU
checking dependency style of /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc... (cached) gcc3
checking whether /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for flex... (cached) flex
checking lex output file root... (cached) lex.yy
checking lex library... (cached) none needed
checking whether yytext is a pointer... (cached) no
checking for mipsel-linux-pkg-config... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PCSC... yes
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for ifdhandler.h... (cached) yes
checking for reader.h... (cached) yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... (cached) /bin/grep -F
checking for ld used by /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc... (cached) /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld
checking if the linker (/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) is GNU ld... (cached) yes
checking for BSD- or MS-compatible name lister (nm)... (cached) /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-nm -B
checking the name lister (/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-nm -B) interface... (cached) BSD nm
checking the maximum length of command line arguments... (cached) 805306365
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld option to reload object files... (cached) -r
checking for mipsel-linux-objdump... (cached) mipsel-linux-objdump
checking how to recognize dependent libraries... (cached) file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking for mipsel-linux-ar... (cached) mipsel-linux-ar
checking for mipsel-linux-strip... (cached) mipsel-linux-strip
checking for mipsel-linux-ranlib... (cached) mipsel-linux-ranlib
checking command to parse /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-nm -B output from /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc object... (cached) ok
checking for dlfcn.h... (cached) yes
checking for objdir... (cached) .libs
checking for mipsel-linux-file... (cached) /usr/bin/file
checking if /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... (cached) no
checking for /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC
checking if /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc PIC flag -fPIC -DPIC works... (cached) yes
checking if /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc static flag -static works... (cached) yes
checking if /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc supports -c -o file.o... (cached) yes
checking if /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc supports -c -o file.o... (cached) yes
checking whether the /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc linker (/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for termios.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for select... (cached) yes
checking for strerror... (cached) yes
checking for strncpy... (cached) yes
checking for memcpy... (cached) yes
checking for strlcpy... (cached) yes
checking for strlcat... (cached) yes
checking for LIBUSB... yes
checking for libusb.h... (cached) yes
checking for libusb_init... yes
checking for -fvisibility=hidden... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for SCardEstablishContext... yes

libccid has been configured with following options:

Version:             1.4.2
User binaries:       /usr/bin
Configuration files: /etc


Host:                mipsel-unknown-linux-gnu
Compiler:            /home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc
Preprocessor flags:  
Compiler flags:      -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
Preprocessor flags:  
Linker flags:        
Libraries:           

PCSC_CFLAGS:         -pthread -I/usr/include/PCSC -I/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/include/PCSC/
PCSC_LIBS:           -lpcsclite -L/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/lib/
PTHREAD_CFLAGS:      -pthread
PTHREAD_LIBS:        
BUNDLE_HOST:         Linux
DYN_LIB_EXT:         so
LIBUSB_CFLAGS:       -I/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/include/libusb-1.0  
LIBUSB_LIBS:         -L/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/lib -lusb-1.0  
SYMBOL_VISIBILITY:   -fvisibility=hidden
NOCLASS:             

libusb support:          yes
composite as multislot:  no
multi threading:         yes
bundle directory name:   ifd-ccid.bundle
USB drop directory:      /usr/lib/pcsc/drivers
serial Twin support:     no
serial twin install dir: /usr/lib/pcsc/drivers/serial
compiled for pcsc-lite:  yes
class driver:            yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating readers/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/Kobil_mIDentity_switch/Makefile
config.status: creating contrib/RSA_SecurID/Makefile
config.status: creating examples/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-nls
cmd() { PATH="/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin:/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-3.4.6/mipsel-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" LD_RUN_PATH="/usr/lib/freetz" make -j2  "$@"  || { printf "\n\\033[33m%s\\033[m\n" "ERROR: Build failed.";  exit 1; } }; 	if [ -e source/.echo_item_start -a ! -e source/.echo_item_build ]; then echo -n "building... "; touch source/.echo_item_build; fi; cmd -C source/target-mipsel_uClibc-0.9.29/ccid-1.4.2 \
		CC="/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc" \
		CFLAGS="-Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
building... make[1]: Betrete Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2'
make  all-recursive
make[2]: Betrete Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2'
Making all in m4
make[3]: Betrete Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/m4'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/m4'
Making all in readers
make[3]: Betrete Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/readers'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/readers'
Making all in examples
make[3]: Betrete Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/examples'
/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I..    -pthread -I/usr/include/PCSC -I/home/mandy28/freetz-trunk/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/usr/include/PCSC/ -pthread -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT scardcontrol-scardcontrol.o -MD -MP -MF .deps/scardcontrol-scardcontrol.Tpo -c -o scardcontrol-scardcontrol.o `test -f 'scardcontrol.c' || echo './'`scardcontrol.c
scardcontrol.c: In function 'parse_properties':
scardcontrol.c:114: error: 'PCSCv2_PART10_PROPERTY_wLcdLayout' undeclared (first use in this function)
scardcontrol.c:114: error: (Each undeclared identifier is reported only once
scardcontrol.c:114: error: for each function it appears in.)
scardcontrol.c:117: error: 'PCSCv2_PART10_PROPERTY_bEntryValidationCondition' undeclared (first use in this function)
scardcontrol.c:120: error: 'PCSCv2_PART10_PROPERTY_bTimeOut2' undeclared (first use in this function)
scardcontrol.c:123: error: 'PCSCv2_PART10_PROPERTY_wLcdMaxCharacters' undeclared (first use in this function)
scardcontrol.c:126: error: 'PCSCv2_PART10_PROPERTY_wLcdMaxLines' undeclared (first use in this function)
scardcontrol.c:129: error: 'PCSCv2_PART10_PROPERTY_bMinPINSize' undeclared (first use in this function)
scardcontrol.c:132: error: 'PCSCv2_PART10_PROPERTY_bMaxPINSize' undeclared (first use in this function)
scardcontrol.c:135: error: 'PCSCv2_PART10_PROPERTY_sFirmwareID' undeclared (first use in this function)
scardcontrol.c: In function 'main':
scardcontrol.c:371: error: 'FEATURE_MCT_READER_DIRECT' undeclared (first use in this function)
scardcontrol.c:375: error: 'FEATURE_GET_TLV_PROPERTIES' undeclared (first use in this function)
scardcontrol.c:402: error: 'PCSCv2_PART10_PROPERTY_bEntryValidationCondition' undeclared (first use in this function)
scardcontrol.c:405: error: 'PCSCv2_PART10_PROPERTY_bMaxPINSize' undeclared (first use in this function)
make[3]: *** [scardcontrol-scardcontrol.o] Fehler 1
make[3]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/examples'
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2'
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis '/home/mandy28/freetz-trunk/source/target-mipsel_uClibc-0.9.29/ccid-1.4.2'

ERROR: Build failed.
make: *** [source/target-mipsel_uClibc-0.9.29/ccid-1.4.2/src/libccid.la] Fehler 1
 
Zuletzt bearbeitet:
Die bei Dir fehlenden Definitionen sind in reader.h enthalten. Wurde PCSC-Lite 1.7.0 kompiliert und ist die Datei reader.h im Verzeichnis toolchain/target/include/PCSC enthalten? Sind die Definitionen enthalten?
 
Die bei Dir fehlenden Definitionen sind in reader.h enthalten. Wurde PCSC-Lite 1.7.0 kompiliert und ist die Datei reader.h im Verzeichnis toolchain/target/include/PCSC enthalten?
Ja pcsc läuft durch und reader.h ist im genannten Verzeichniss


Sind die Definitionen enthalten?
wie sollten die aussehen ?

reader.h
Code:
/*
 * MUSCLE SmartCard Development ( http://www.linuxnet.com )
 *
 * Copyright (C) 1999-2005
 *  David Corcoran <[email protected]>
 * Copyright (C) 2005-2009
 *  Ludovic Rousseau <[email protected]>
 *
 * $Id: reader.h 5255 2010-09-14 09:38:25Z rousseau $
 */

/**
 * @file
 * @brief This keeps a list of defines shared between the driver and the application
 */

#ifndef __reader_h__
#define __reader_h__

/*
 * Tags for requesting card and reader attributes
 */

#define SCARD_ATTR_VALUE(Class, Tag) ((((ULONG)(Class)) << 16) | ((ULONG)(Tag)))

#define SCARD_CLASS_VENDOR_INFO     1   /**< Vendor information definitions */
#define SCARD_CLASS_COMMUNICATIONS  2   /**< Communication definitions */
#define SCARD_CLASS_PROTOCOL        3   /**< Protocol definitions */
#define SCARD_CLASS_POWER_MGMT      4   /**< Power Management definitions */
#define SCARD_CLASS_SECURITY        5   /**< Security Assurance definitions */
#define SCARD_CLASS_MECHANICAL      6   /**< Mechanical characteristic definitions */
#define SCARD_CLASS_VENDOR_DEFINED  7   /**< Vendor specific definitions */
#define SCARD_CLASS_IFD_PROTOCOL    8   /**< Interface Device Protocol options */
#define SCARD_CLASS_ICC_STATE       9   /**< ICC State specific definitions */
#define SCARD_CLASS_SYSTEM     0x7fff   /**< System-specific definitions */

#define SCARD_ATTR_VENDOR_NAME SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0100) /**< Vendor name. */
#define SCARD_ATTR_VENDOR_IFD_TYPE SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0101) /**< Vendor-supplied interface device type (model designation of reader). */
#define SCARD_ATTR_VENDOR_IFD_VERSION SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0102) /**< Vendor-supplied interface device version (DWORD in the form 0xMMmmbbbb where MM = major version, mm = minor version, and bbbb = build number). */
#define SCARD_ATTR_VENDOR_IFD_SERIAL_NO SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0103) /**< Vendor-supplied interface device serial number. */
#define SCARD_ATTR_CHANNEL_ID SCARD_ATTR_VALUE(SCARD_CLASS_COMMUNICATIONS, 0x0110) /**< DWORD encoded as 0xDDDDCCCC, where DDDD = data channel type and CCCC = channel number */
#define SCARD_ATTR_ASYNC_PROTOCOL_TYPES SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0120) /**< FIXME */
#define SCARD_ATTR_DEFAULT_CLK SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0121) /**< Default clock rate, in kHz. */
#define SCARD_ATTR_MAX_CLK SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0122) /**< Maximum clock rate, in kHz. */
#define SCARD_ATTR_DEFAULT_DATA_RATE SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0123) /**< Default data rate, in bps. */
#define SCARD_ATTR_MAX_DATA_RATE SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0124) /**< Maximum data rate, in bps. */
#define SCARD_ATTR_MAX_IFSD SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0125) /**< Maximum bytes for information file size device. */
#define SCARD_ATTR_SYNC_PROTOCOL_TYPES SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0126) /**< FIXME */
#define SCARD_ATTR_POWER_MGMT_SUPPORT SCARD_ATTR_VALUE(SCARD_CLASS_POWER_MGMT, 0x0131) /**< Zero if device does not support power down while smart card is inserted. Nonzero otherwise. */
#define SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE SCARD_ATTR_VALUE(SCARD_CLASS_SECURITY, 0x0140) /**< FIXME */
#define SCARD_ATTR_USER_AUTH_INPUT_DEVICE SCARD_ATTR_VALUE(SCARD_CLASS_SECURITY, 0x0142) /**< FIXME */
#define SCARD_ATTR_CHARACTERISTICS SCARD_ATTR_VALUE(SCARD_CLASS_MECHANICAL, 0x0150) /**< DWORD indicating which mechanical characteristics are supported. If zero, no special characteristics are supported. Note that multiple bits can be set */

#define SCARD_ATTR_CURRENT_PROTOCOL_TYPE SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0201) /**< FIXME */
#define SCARD_ATTR_CURRENT_CLK SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0202) /**< Current clock rate, in kHz. */
#define SCARD_ATTR_CURRENT_F SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0203) /**< Clock conversion factor. */
#define SCARD_ATTR_CURRENT_D SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0204) /**< Bit rate conversion factor. */
#define SCARD_ATTR_CURRENT_N SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0205) /**< Current guard time. */
#define SCARD_ATTR_CURRENT_W SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0206) /**< Current work waiting time. */
#define SCARD_ATTR_CURRENT_IFSC SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0207) /**< Current byte size for information field size card. */
#define SCARD_ATTR_CURRENT_IFSD SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0208) /**< Current byte size for information field size device. */
#define SCARD_ATTR_CURRENT_BWT SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0209) /**< Current block waiting time. */
#define SCARD_ATTR_CURRENT_CWT SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020a) /**< Current character waiting time. */
#define SCARD_ATTR_CURRENT_EBC_ENCODING SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020b) /**< Current error block control encoding. */
#define SCARD_ATTR_EXTENDED_BWT SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020c) /**< FIXME */

#define SCARD_ATTR_ICC_PRESENCE SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0300) /**< Single byte indicating smart card presence */
#define SCARD_ATTR_ICC_INTERFACE_STATUS SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0301) /**< Single byte. Zero if smart card electrical contact is not active; nonzero if contact is active. */
#define SCARD_ATTR_CURRENT_IO_STATE SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0302) /**< FIXME */
#define SCARD_ATTR_ATR_STRING SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0303) /**< Answer to reset (ATR) string. */
#define SCARD_ATTR_ICC_TYPE_PER_ATR SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0304) /**< Single byte indicating smart card type */

#define SCARD_ATTR_ESC_RESET SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA000) /**< FIXME */
#define SCARD_ATTR_ESC_CANCEL SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA003) /**< FIXME */
#define SCARD_ATTR_ESC_AUTHREQUEST SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA005) /**< FIXME */
#define SCARD_ATTR_MAXINPUT SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA007) /**< FIXME */

#define SCARD_ATTR_DEVICE_UNIT SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0001) /**< Instance of this vendor's reader attached to the computer. The first instance will be device unit 0, the next will be unit 1 (if it is the same brand of reader) and so on. Two different brands of readers will both have zero for this value. */
#define SCARD_ATTR_DEVICE_IN_USE SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0002) /**< Reserved for future use. */
#define SCARD_ATTR_DEVICE_FRIENDLY_NAME_A SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0003)
#define SCARD_ATTR_DEVICE_SYSTEM_NAME_A SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0004)
#define SCARD_ATTR_DEVICE_FRIENDLY_NAME_W SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0005)
#define SCARD_ATTR_DEVICE_SYSTEM_NAME_W SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0006)
#define SCARD_ATTR_SUPRESS_T1_IFS_REQUEST SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0007) /**< FIXME */

#ifdef UNICODE
#define SCARD_ATTR_DEVICE_FRIENDLY_NAME SCARD_ATTR_DEVICE_FRIENDLY_NAME_W /**< Reader's display name. */
#define SCARD_ATTR_DEVICE_SYSTEM_NAME SCARD_ATTR_DEVICE_SYSTEM_NAME_W /**< Reader's system name. */
#else
#define SCARD_ATTR_DEVICE_FRIENDLY_NAME SCARD_ATTR_DEVICE_FRIENDLY_NAME_A /**< Reader's display name. */
#define SCARD_ATTR_DEVICE_SYSTEM_NAME SCARD_ATTR_DEVICE_SYSTEM_NAME_A /**< Reader's system name. */
#endif

/**
 * Provide source compatibility on different platforms
 */
#define SCARD_CTL_CODE(code) (0x42000000 + (code))

/**
 * PC/SC part 10 v2.02.07 March 2010 reader tags
 */
#define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400)

#define FEATURE_VERIFY_PIN_START         0x01
#define FEATURE_VERIFY_PIN_FINISH        0x02
#define FEATURE_MODIFY_PIN_START         0x03
#define FEATURE_MODIFY_PIN_FINISH        0x04
#define FEATURE_GET_KEY_PRESSED          0x05
#define FEATURE_VERIFY_PIN_DIRECT        0x06 /**< Verify PIN */
#define FEATURE_MODIFY_PIN_DIRECT        0x07 /**< Modify PIN */
#define FEATURE_MCT_READERDIRECT         0x08 /**< deprecated */
#define FEATURE_MCT_READER_DIRECT        0x08
#define FEATURE_MCT_UNIVERSAL            0x09
#define FEATURE_IFD_PIN_PROPERTIES       0x0A /**< retrieve properties of the IFD regarding PIN handling */
#define FEATURE_ABORT                    0x0B
#define FEATURE_SET_SPE_MESSAGE          0x0C
#define FEATURE_VERIFY_PIN_DIRECT_APP_ID 0x0D
#define FEATURE_MODIFY_PIN_DIRECT_APP_ID 0x0E
#define FEATURE_WRITE_DISPLAY            0x0F
#define FEATURE_GET_KEY                  0x10
#define FEATURE_IFD_DISPLAY_PROPERTIES   0x11
#define FEATURE_GET_TLV_PROPERTIES       0x12
#define FEATURE_CCID_ESC_COMMAND         0x13

/* structures used (but not defined) in PC/SC Part 10:
 * "IFDs with Secure Pin Entry Capabilities" */

#include <inttypes.h>

/* Set structure elements aligment on bytes
 * http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html */
#if defined(__APPLE__) | defined(sun)
#pragma pack(1)
#else
#pragma pack(push, 1)
#endif

/** the structure must be 6-bytes long */
typedef struct
{
	uint8_t tag;
	uint8_t length;
	uint32_t value;	/**< This value is always in BIG ENDIAN format as documented in PCSC v2 part 10 ch 2.2 page 2. You can use ntohl() for example */
} PCSC_TLV_STRUCTURE;

/** Since CCID 1.4.1 (revision 5252) the byte order is no more important
 * These macros are now deprecated and should be removed in the future */
#define HOST_TO_CCID_16(x) (x)
#define HOST_TO_CCID_32(x) (x)

/** structure used with \ref FEATURE_VERIFY_PIN_DIRECT */
typedef struct
{
	uint8_t bTimerOut;	/**< timeout is seconds (00 means use default timeout) */
	uint8_t bTimerOut2; /**< timeout in seconds after first key stroke */
	uint8_t bmFormatString; /**< formatting options */
	uint8_t bmPINBlockString; /**< bits 7-4 bit size of PIN length in APDU,
	                        * bits 3-0 PIN block size in bytes after
	                        * justification and formatting */
	uint8_t bmPINLengthFormat; /**< bits 7-5 RFU,
	                         * bit 4 set if system units are bytes, clear if
	                         * system units are bits,
	                         * bits 3-0 PIN length position in system units */
	uint16_t wPINMaxExtraDigit; /**< 0xXXYY where XX is minimum PIN size in digits,
	                            and YY is maximum PIN size in digits */
	uint8_t bEntryValidationCondition; /**< Conditions under which PIN entry should
	                                 * be considered complete */
	uint8_t bNumberMessage; /**< Number of messages to display for PIN verification */
	uint16_t wLangId; /**< Language for messages */
	uint8_t bMsgIndex; /**< Message index (should be 00) */
	uint8_t bTeoPrologue[3]; /**< T=1 block prologue field to use (fill with 00) */
	uint32_t ulDataLength; /**< length of Data to be sent to the ICC */
	uint8_t abData[1]; /**< Data to send to the ICC */
} PIN_VERIFY_STRUCTURE;

/** structure used with \ref FEATURE_MODIFY_PIN_DIRECT */
typedef struct
{
	uint8_t bTimerOut;	/**< timeout is seconds (00 means use default timeout) */
	uint8_t bTimerOut2; /**< timeout in seconds after first key stroke */
	uint8_t bmFormatString; /**< formatting options */
	uint8_t bmPINBlockString; /**< bits 7-4 bit size of PIN length in APDU,
	                        * bits 3-0 PIN block size in bytes after
	                        * justification and formatting */
	uint8_t bmPINLengthFormat; /**< bits 7-5 RFU,
	                         * bit 4 set if system units are bytes, clear if
	                         * system units are bits,
	                         * bits 3-0 PIN length position in system units */
	uint8_t bInsertionOffsetOld; /**< Insertion position offset in bytes for
	                             the current PIN */
	uint8_t bInsertionOffsetNew; /**< Insertion position offset in bytes for
	                             the new PIN */
	uint16_t wPINMaxExtraDigit;
	                         /**< 0xXXYY where XX is minimum PIN size in digits,
	                            and YY is maximum PIN size in digits */
	uint8_t bConfirmPIN; /**< Flags governing need for confirmation of new PIN */
	uint8_t bEntryValidationCondition; /**< Conditions under which PIN entry should
	                                 * be considered complete */
	uint8_t bNumberMessage; /**< Number of messages to display for PIN verification*/
	uint16_t wLangId; /**< Language for messages */
	uint8_t bMsgIndex1; /**< index of 1st prompting message */
	uint8_t bMsgIndex2; /**< index of 2d prompting message */
	uint8_t bMsgIndex3; /**< index of 3d prompting message */
	uint8_t bTeoPrologue[3]; /**< T=1 block prologue field to use (fill with 00) */
	uint32_t ulDataLength; /**< length of Data to be sent to the ICC */
	uint8_t abData[1]; /**< Data to send to the ICC */
} PIN_MODIFY_STRUCTURE;

/** structure used with \ref FEATURE_IFD_PIN_PROPERTIES */
typedef struct {
	uint16_t wLcdLayout; /**< display characteristics */
	uint8_t bEntryValidationCondition;
	uint8_t bTimeOut2;
} PIN_PROPERTIES_STRUCTURE;

/* restore default structure elements alignment */
#if defined(__APPLE__) | defined(sun)
#pragma pack()
#else
#pragma pack(pop)
#endif

/* properties returned by FEATURE_GET_TLV_PROPERTIES */
#define PCSCv2_PART10_PROPERTY_wLcdLayout 1
#define PCSCv2_PART10_PROPERTY_bEntryValidationCondition 2
#define PCSCv2_PART10_PROPERTY_bTimeOut2 3
#define PCSCv2_PART10_PROPERTY_wLcdMaxCharacters 4
#define PCSCv2_PART10_PROPERTY_wLcdMaxLines 5
#define PCSCv2_PART10_PROPERTY_bMinPINSize 6
#define PCSCv2_PART10_PROPERTY_bMaxPINSize 7
#define PCSCv2_PART10_PROPERTY_sFirmwareID 8
#define PCSCv2_PART10_PROPERTY_bPPDUSupport 9

#endif
 
Ich vermute, du nutzt PCSC/CCID auch auf dem "Build-PC"? Dann ist "-I/usr/include/PCSC" suboptimal. Versuche mal diese Version
 

Anhänge

  • ccid_pcscd_libusb1_v7_a.patch.gz
    1.7 KB · Aufrufe: 21
make läuft jetzt durch

Reader wird jetzt auch erkannt

Code:
pcscdaemon.c:230:main() pcscd set to foreground with debug send to stderr
configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
pcscdaemon.c:550:main() pcsc-lite 1.7.0 daemon ready.
hotplug_libusb.c:503:HPAddHotPluggable() Adding USB device: 1:6:0
readerfactory.c:934:RFInitializeReader() Attempting startup of REINER SCT cyberJack RFID basis 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0
ifdhandler.c:1732:init_driver() Driver version: 1.4.3
ifdhandler.c:1750:init_driver() LogLevel: 0x0003
ifdhandler.c:1771:init_driver() DriverOptions: 0x0000
ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: usb:0c4b/9102:libusb-1.0:1:6:0
ccid_usb.c:244:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
ccid_usb.c:245:OpenUSBByName() ifdProductString: Generic CCID driver
ccid_usb.c:246: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.
ccid_usb.c:485:OpenUSBByName() Found Vendor/Product: 0C4B/9102 (REINER SCT cyberJack RFID basis)
ccid_usb.c:487:OpenUSBByName() Using USB bus/device: 1/6
ccid_usb.c:953:get_data_rates() declared: 2688 bps
ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFB3, usb:0c4b/9102:libusb-1.0:1:6:0 (lun: 0)
readerfactory.c:295:RFAddReader() Using the reader polling thread
ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFAE, usb:0c4b/9102:libusb-1.0:1:6:0 (lun: 0)
ifdhandler.c:489:IFDHGetCapabilities() Reader supports 1 slot(s)
readerfactory.c:1301:RFWaitForReaderInit() Waiting init for reader: REINER SCT cyberJack RFID basis 00 00
hotplug_libusb.c:410:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
hotplug_libusb.c:419:HPEstablishUSBNotifications() Polling forced every 1 second(s)

Code:
T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  6 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0c4b ProdID=9102 Rev= 0.01
S:  Manufacturer=REINER SCT
S:  Product=cyberJack RFID basis
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=0b(scard) Sub=00 Prot=00 [COLOR="blue"]Driver=usbfs[/COLOR]
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=5ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms


Wird alles einwandfrei erkannt , auch wenn der reader vor dem booten schon angesteckt ist
 
Zuletzt bearbeitet:
@Fox.Mulder:
Ist das Ding auf der Übersichtsseite zu sehen mit dem Hinweis "USB-Gerät wurde für die Nutzung mit dem USB-Fernanschluss reserviert."?
Dann hilft entweder den Fernanschluss ("aura usb") komplett rauszupatchen oder (auch zum Testen) "killall aurad".

Wenn das nicht klappt, könntest du den USB-Part komplett neu starten lassen:

Code:
/etc/init.d/rc.usbhost stop
umount /proc/bus/usb >/dev/null 2>&1 ; rmmod usbcore
/etc/init.d/rc.usbhost start
mount -t usbfs none /proc/bus/usb

EDIT: Es solte natürlich auch gehen, den Fernanschluss in der AVM-GUI zu deaktivieren, oder nur auf Drucker stellen oder so...
 
Zuletzt bearbeitet:
Ich habe meine Gerätschaften vorerst wieder abgebaut, da es mit USB Hub in vielen Fällen nach dem Neustart nicht funktioniert.

Folgende Kombinationen habe ich ausprobiert:

1. USB Hub #1 mit integriertem SD-Kartenleser und PCSC Kartenleser: nach Neustart keine Funktion
2. USB Hub #2, separater SD Kartenleser und PCSC Kartenleser: funktioniert auch nach Neustart
3. USB Hub #2, USB Festplatte und PCSC Kartenleser: nach Neustart keine Funktion
4. USB Hub #2 <- USB Hub #1 mit integriertem Kartenleser <- PCSC Kartenleser: funktioniert auch nach Neustart

Die 3. Gerätekombination funktioniert, wenn ich das Netzteil der USB Festplatte nicht anschließe. Bei intensiven Aktivitäten benötigt die Platte jedoch etwas mehr Strom, als die Fritzbox liefern kann und das führt zum Neustart der Fritz!Box. Demzufolge kann ich die Kombination 3 ohne Netzteil für die Festplatte nicht betreiben.

Diese Gerätekombination wäre auch meine Zielvorstellung. Leider kann ich rc.usbhost stop/start nicht verwenden, da ich erst das ext2 Filesystem aus- und später wieder einhängen müsste. Das wäre insgesamt zu kompliziert, da einige Sachen von dort gestartet werden.

Der Fernanschluss ist bei mir deaktiviert und sollte damit keine Probleme verursachen.
 
Zuletzt bearbeitet:
Ich hatte das bei mir ausprobiert. Geht bei mir auch mit einem Hub (an den hab ich zim Testen eine USB-Printer-Port, einen USB-Flashstick und den Perso-Reader gehängt). Nur zuerst (als ich den Fernanschluss an hatte) ging es nicht. Danach gab es kein Problem mehr.
Wie unterscheidet sich denn der erfolgreiche Start? Werden die Reader dann "anders" erkannt, oder auch so
Code:
00103135 hotplug_libusb.c:478:HPAddHotPluggable() Adding USB device: 1:5
00009825 hotplug_libusb.c:527:HPAddHotPluggable() [B]libusb_get_string_descriptor_ascii failed: -9[/B]
00015990 readerfactory.c:931:RFInitializeReader() Attempting startup of SCM SCR 3310 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00092424 readerfactory.c:821:RFBindFunctions() Loading IFD Handler 3.0
00010954 ifdhandler.c:1727:init_driver() Driver version: 1.4.1
00030738 ifdhandler.c:1745:init_driver() LogLevel: 0x0003
00008746 ifdhandler.c:1766:init_driver() DriverOptions: 0x0000
00017797 ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb-1.0:1:5
00092085 ccid_usb.c:266:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00026294 ccid_usb.c:267:OpenUSBByName() ifdProductString: Generic CCID driver
00003914 ccid_usb.c:268: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.
00027859 ccid_usb.c:450:[B]OpenUSBByName() Can't get config descriptor on 1/5[/B]
00017508 ifdhandler.c:101:[B]IFDHCreateChannelByName() failed[/B]
00010807 readerfactory.c:962:RFInitializeReader() Open Port 0x200000 Failed (usb:04e6/5116:libusb-1.0:1:5)
00009732 readerfactory.c:273:RFAddReader() SCM SCR 3310 init failed.
00010001 readerfactory.c:982:RFUnInitializeReader() Attempting shutdown of SCM SCR 3310 00 00.
00012014 readerfactory.c:858:RFUnloadReader() Unloading reader driver.
 
Im Falle der USB Festplatte ohne Netzteil scheint es zu funktionieren. Jedoch bekomme ich auch Fehlermeldugen. Der ATR wird aber trotzdem gelesen. Ich würde das Verhalten als instabil characterisieren.
Code:
00000000 pcscdaemon.c:230:main() pcscd set to foreground with debug send to stderr
00008724 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
00003203 pcscdaemon.c:550:main() pcsc-lite 1.7.0 daemon ready.
00076968 hotplug_libusb.c:503:HPAddHotPluggable() Adding USB device: 1:3:0
00009317 readerfactory.c:934:RFInitializeReader() Attempting startup of SCM SCR 3310 (21120808222612) 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00073719 readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0
00008152 ifdhandler.c:1732:init_driver() Driver version: 1.4.3
00020507 ifdhandler.c:1750:init_driver() LogLevel: 0x0003
00003761 ifdhandler.c:1771:init_driver() DriverOptions: 0x0000
00014126 ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb-1.0:1:3:0
00020931 ccid_usb.c:244:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00004057 ccid_usb.c:245:OpenUSBByName() ifdProductString: Generic CCID driver
00015877 ccid_usb.c:246: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.
00013481 ccid_usb.c:485:OpenUSBByName() Found Vendor/Product: 04E6/5116 (SCM SCR 3310)
00007846 ccid_usb.c:487:OpenUSBByName() Using USB bus/device: 1/3
00007545 ccid_usb.c:917:get_data_rates() IFD does not support GET_DATA_RATES request: -9
00113087 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFB3, usb:04e6/5116:libusb-1.0:1:3:0 (lun: 0)
00002679 readerfactory.c:295:RFAddReader() Using the reader polling thread
00017284 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFAE, usb:04e6/5116:libusb-1.0:1:3:0 (lun: 0)
00003190 ifdhandler.c:489:IFDHGetCapabilities() Reader supports 1 slot(s)
00008788 hotplug_libusb.c:410:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00008219 hotplug_libusb.c:419:HPEstablishUSBNotifications() Polling forced every 1 second(s)
01019331 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/4
01019934 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/4

Mit kombiniertem USB-Hub und SD-Kartenleser, welcher nach dem Starten der Box angeschlossen wurde:
Code:
00000000 pcscdaemon.c:230:main() pcscd set to foreground with debug send to stderr
00009621 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
00007322 pcscdaemon.c:550:main() pcsc-lite 1.7.0 daemon ready.
00071912 hotplug_libusb.c:503:HPAddHotPluggable() Adding USB device: 1:7:0
00008504 readerfactory.c:934:RFInitializeReader() Attempting startup of SCM SCR 3310 (21120808222612) 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00069696 readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0
00007661 ifdhandler.c:1732:init_driver() Driver version: 1.4.3
00020040 ifdhandler.c:1750:init_driver() LogLevel: 0x0003
00003938 ifdhandler.c:1771:init_driver() DriverOptions: 0x0000
00010884 ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb-1.0:1:7:0
00024001 ccid_usb.c:244:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00004009 ccid_usb.c:245:OpenUSBByName() ifdProductString: Generic CCID driver
00008156 ccid_usb.c:246: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.
00012940 ccid_usb.c:485:OpenUSBByName() Found Vendor/Product: 04E6/5116 (SCM SCR 3310)
00007359 ccid_usb.c:487:OpenUSBByName() Using USB bus/device: 1/7
00007575 ccid_usb.c:917:get_data_rates() IFD does not support GET_DATA_RATES request: -9
00273376 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFB3, usb:04e6/5116:libusb-1.0:1:7:0 (lun: 0)
00003033 readerfactory.c:295:RFAddReader() Using the reader polling thread
00017422 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFAE, usb:04e6/5116:libusb-1.0:1:7:0 (lun: 0)
00007352 ifdhandler.c:489:IFDHGetCapabilities() Reader supports 1 slot(s)
00004224 hotplug_libusb.c:410:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00007309 hotplug_libusb.c:419:HPEstablishUSBNotifications() Polling forced every 1 second(s)

Mit kombiniertem USB-Hub und SD-Kartenleser nach dem Neustart der Box (Fehlerfall):
Code:
00000000 pcscdaemon.c:230:main() pcscd set to foreground with debug send to stderr
00008987 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
00002990 pcscdaemon.c:550:main() pcsc-lite 1.7.0 daemon ready.
00067823 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/3
00003736 hotplug_libusb.c:410:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00006213 hotplug_libusb.c:419:HPEstablishUSBNotifications() Polling forced every 1 second(s)
01020952 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/3
01020158 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/3

An Fritzbox ist erst ein normaler USB-Hub angeschlossen und an diesen ist der kombinierte USB-Hub und SD-Kartenleser angeschlossen. Nach dem Neustart der Box funktioniert PCSCD ohne Probleme:
Code:
00000000 pcscdaemon.c:230:main() pcscd set to foreground with debug send to stderr
00012601 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
00002805 pcscdaemon.c:550:main() pcsc-lite 1.7.0 daemon ready.
00069966 hotplug_libusb.c:503:HPAddHotPluggable() Adding USB device: 1:4:0
00009353 readerfactory.c:934:RFInitializeReader() Attempting startup of SCM SCR 3310 (21120808222612) 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00065828 readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0
00004179 ifdhandler.c:1732:init_driver() Driver version: 1.4.3
00018982 ifdhandler.c:1750:init_driver() LogLevel: 0x0003
00006304 ifdhandler.c:1771:init_driver() DriverOptions: 0x0000
00009560 ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb-1.0:1:4:0
00016375 ccid_usb.c:244:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00006351 ccid_usb.c:245:OpenUSBByName() ifdProductString: Generic CCID driver
00003650 ccid_usb.c:246: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.
00014210 ccid_usb.c:485:OpenUSBByName() Found Vendor/Product: 04E6/5116 (SCM SCR 3310)
00003349 ccid_usb.c:487:OpenUSBByName() Using USB bus/device: 1/4
00007093 ccid_usb.c:917:get_data_rates() IFD does not support GET_DATA_RATES request: -9
00272321 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFB3, usb:04e6/5116:libusb-1.0:1:4:0 (lun: 0)
00003239 readerfactory.c:295:RFAddReader() Using the reader polling thread
00009194 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFAE, usb:04e6/5116:libusb-1.0:1:4:0 (lun: 0)
00006389 ifdhandler.c:489:IFDHGetCapabilities() Reader supports 1 slot(s)
00003968 hotplug_libusb.c:410:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00006010 hotplug_libusb.c:419:HPEstablishUSBNotifications() Polling forced every 1 second(s)

Festplatte mit Netzteil an zwei kaskadierten USB-Hubs. Festplatte und PCSC-Kartenleser sind am 2. USB-Hub angeschlossen (Fehlerfall):
Code:
00000000 pcscdaemon.c:230:main() pcscd set to foreground with debug send to stderr
00007557 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
00002592 pcscdaemon.c:550:main() pcsc-lite 1.7.0 daemon ready.
00068817 hotplug_libusb.c:503:HPAddHotPluggable() Adding USB device: 1:5:0
00009501 hotplug_libusb.c:558:[B]HPAddHotPluggable() libusb_get_string_descriptor_ascii failed: -99[/B]
00006590 readerfactory.c:934:RFInitializeReader() Attempting startup of SCM SCR 3310 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00059695 readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0
00004013 ifdhandler.c:1732:init_driver() Driver version: 1.4.3
00019662 ifdhandler.c:1750:init_driver() LogLevel: 0x0003
00006265 ifdhandler.c:1771:init_driver() DriverOptions: 0x0000
00009536 ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb-1.0:1:5:0
00019681 ccid_usb.c:244:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00003478 ccid_usb.c:245:OpenUSBByName() ifdProductString: Generic CCID driver
00006047 ccid_usb.c:246: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.
00050916 ccid_usb.c:435:[B]OpenUSBByName() Can't get config descriptor on 1/5[/B]
00005857 ifdhandler.c:101:[B]IFDHCreateChannelByName() failed[/B]
00006722 readerfactory.c:965:RFInitializeReader() Open Port 0x200000 Failed (usb:04e6/5116:libusb-1.0:1:5:0)
00003667 readerfactory.c:275:RFAddReader() SCM SCR 3310 init failed.
00006231 readerfactory.c:985:RFUnInitializeReader() Attempting shutdown of SCM SCR 3310 00 00.
00003262 readerfactory.c:861:RFUnloadReader() Unloading reader driver.
00006754 hotplug_libusb.c:410:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00016041 hotplug_libusb.c:419:HPEstablishUSBNotifications() Polling forced every 1 second(s)
01014548 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/5
00002967 hotplug_libusb.c:593:HPRemoveHotPluggable() Removing USB device[0]: 1:5:0
01017085 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/5
01011280 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/5

Dieser Fall scheint Deinem sehr ähnlich zu sein.

Und zuletzt noch der Fall Festplatte mit Netzteil an USB-Hub nach Neustart der Box (Fehlerfall):
Code:
00000000 pcscdaemon.c:230:main() pcscd set to foreground with debug send to stderr
00007443 configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
00002592 pcscdaemon.c:550:main() pcsc-lite 1.7.0 daemon ready.
00060972 hotplug_libusb.c:503:HPAddHotPluggable() Adding USB device: 1:3:0
00008763 readerfactory.c:934:RFInitializeReader() Attempting startup of SCM SCR 3310 (21120808222612) 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00065915 readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0
00005069 ifdhandler.c:1732:init_driver() Driver version: 1.4.3
00018282 ifdhandler.c:1750:init_driver() LogLevel: 0x0003
00005387 ifdhandler.c:1771:init_driver() DriverOptions: 0x0000
00008669 ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb-1.0:1:3:0
00014935 ccid_usb.c:244:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00003423 ccid_usb.c:245:OpenUSBByName() ifdProductString: Generic CCID driver
00005442 ccid_usb.c:246: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.
00263516 ccid_usb.c:485:OpenUSBByName() Found Vendor/Product: 04E6/5116 (SCM SCR 3310)
00004720 ccid_usb.c:487:OpenUSBByName() Using USB bus/device: 1/3
00003678 ccid_usb.c:917:get_data_rates() IFD does not support GET_DATA_RATES request: -9
00138439 ccid_usb.c:640:ReadUSB() read failed (1/3): -99 No such file or directory
00032714 ccid_usb.c:601:WriteUSB() write failed (1/3): -99 No such file or directory
00304030 ccid_usb.c:601:WriteUSB() write failed (1/3): -99 No such file or directory
00002897 ifdhandler.c:134:IFDHCreateChannelByName() failed
00044769 readerfactory.c:965:RFInitializeReader() Open Port 0x200000 Failed (usb:04e6/5116:libusb-1.0:1:3:0)
00005139 readerfactory.c:275:RFAddReader() SCM SCR 3310 (21120808222612) init failed.
00003270 readerfactory.c:985:RFUnInitializeReader() Attempting shutdown of SCM SCR 3310 (21120808222612) 00 00.
00005419 readerfactory.c:861:RFUnloadReader() Unloading reader driver.
00005524 winscard_msg_srv.c:202:ProcessEventsServer() Common channel packet arrival
00004214 winscard_msg_srv.c:214:ProcessEventsServer() ProcessCommonChannelRequest detects: 6
00003689 pcscdaemon.c:91:SVCServiceRunLoop() A new context thread creation is requested: 6
00007189 winscard_svc.c:297:ContextThread() Thread is started: dwClientID=6, threadContext @430A68
00003504 winscard_svc.c:315:ContextThread() Received command: CMD_VERSION from client 6
00004818 winscard_svc.c:327:ContextThread() Client is protocol version 4:2
00002679 winscard_svc.c:347:ContextThread() CMD_VERSION rv=0x0 for client 6
00003590 winscard_svc.c:315:ContextThread() Received command: ESTABLISH_CONTEXT from client 6
00005422 winscard.c:193:SCardEstablishContext() Establishing Context: 0x1033306
00003318 winscard_svc.c:406:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 6
00006105 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 6
00005262 hotplug_libusb.c:410:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00005848 hotplug_libusb.c:419:HPEstablishUSBNotifications() Polling forced every 1 second(s)
01009786 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/3
00002907 hotplug_libusb.c:593:HPRemoveHotPluggable() Removing USB device[0]: 1:3:0
01017079 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/4
00003135 hotplug_libusb.c:296:HPRescanUsbBus() failed to get device config for 1/3
 
Zuletzt bearbeitet:
Hab hier 4fach passiv Hub Festplatte USB Stick und den Reader dran hängen
Keine Fehler egal ob vor oder nach dem Neustart die USB Geräte angeschlossen werden
Code:
pcscdaemon.c:230:main() pcscd set to foreground with debug send to stderr
configfile.l:287:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
pcscdaemon.c:550:main() pcsc-lite 1.7.0 daemon ready.
hotplug_libusb.c:503:HPAddHotPluggable() Adding USB device: 1:6:0
readerfactory.c:934:RFInitializeReader() Attempting startup of REINER SCT cyberJack RFID basis 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0
ifdhandler.c:1732:init_driver() Driver version: 1.4.3
ifdhandler.c:1750:init_driver() LogLevel: 0x0003
ifdhandler.c:1771:init_driver() DriverOptions: 0x0000
ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: usb:0c4b/9102:libusb-1.0:1:6:0
ccid_usb.c:244:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
ccid_usb.c:245:OpenUSBByName() ifdProductString: Generic CCID driver
ccid_usb.c:246: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.
ccid_usb.c:485:OpenUSBByName() Found Vendor/Product: 0C4B/9102 (REINER SCT cyberJack RFID basis)
ccid_usb.c:487:OpenUSBByName() Using USB bus/device: 1/6
ccid_usb.c:953:get_data_rates() declared: 2688 bps
ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFB3, usb:0c4b/9102:libusb-1.0:1:6:0 (lun: 0)
readerfactory.c:295:RFAddReader() Using the reader polling thread
ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFAE, usb:0c4b/9102:libusb-1.0:1:6:0 (lun: 0)
ifdhandler.c:489:IFDHGetCapabilities() Reader supports 1 slot(s)
readerfactory.c:1301:RFWaitForReaderInit() Waiting init for reader: REINER SCT cyberJack RFID basis 00 00
hotplug_libusb.c:410:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
hotplug_libusb.c:419:HPEstablishUSBNotifications() Polling forced every 1 second(s)
 
Hallo, bin gerade über den Thread gestolpert und wollte das ganze umsetzten, leider bekomme ich den Patch nicht eingebaut,
da sich der Patch von post 2 bis hierhin ja schon geändert hat,
wie ist den jetzt die richtige Reihenfolge um das umzusetzen oder ist das ganze schon im aktuellen Freetz drin und ich finde es nur nicht.

habe jetzt Freetz neu ausgecheckt ( das alte habe ich gelöscht zu viel probiert )


Danke für eure Hilfe
 
danke, die Datei habe ich runter geladen und in den neu ausgecheckten Freetz Ordner gepackt,
kannst du mir sagen wie ich jetzt vorgehen muss ?
 
patch -p0 <ccid_pcscd_libusb1_v8.4.4.patch
 
ok, habe ich gemacht kam das

Code:
patching file make/ccid/ccid.mk
patching file make/ccid/Config.in
patching file make/ccid/Makefile.in
patching file make/pcsc-lite/Config.in
patching file make/pcsc-lite/external.files
patching file make/pcsc-lite/external.in
patching file make/pcsc-lite/Makefile.in
patching file make/pcsc-lite/pcsc-lite.mk

und wo kann ich jetzt ccid und pcsc auswählen ?
 

Zurzeit aktive Besucher

Statistik des Forums

Themen
245,002
Beiträge
2,222,582
Mitglieder
371,778
Neuestes Mitglied
B4R0N
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.