OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Rick Richardson (rickrmn.rr.com)
Date: Sat Jan 26 2002 - 13:55:53 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    I got a FREE Citibank smart card reader today, and tried to give it a go.
    Running Redhat 7.2, kernel 2.4.9. I'm a complete newbie w.r.t.
    smart cards, and don't know much more about USB devices. Just what
    you wanted to hear :-)

    I only have the standard 2 USB ports on my computer. One port has a
    SanDisk Compact Flash reader in it (which hasn't worked since I
    switched to kernel 2.4, but used to work fine with kernel 2.2, so
    thats the extent of my USB experience). The other port has the
    Citibank smart card reader in it.

    usbview identifies it thusly:

            Citi USB Smart Card Reader
            Manufacturer: SCM Microsystems Inc.
            Serial Number: 53535353
            Speed: 12Mb/s (full)
            USB Version: 1.10
            Device Class: 00(>ifc )
            Device Subclass: 00
            Device Protocol: 00
            Maximum Default Endpoint Size: 16
            Number of Configurations: 1
            Vendor Id: 04e6
            Product Id: 2009
            Revision Number: 1.27

    I built pcscd with USB support:
            ./configure --enable-usb --enable-syslog --enable-daemon --enable-debug
            make
            root make install

    I have this driver installed:
            $ find /usr/local/pcsc
            /usr/local/pcsc
            /usr/local/pcsc/drivers
            /usr/local/pcsc/drivers/scm310Driver.bundle
            /usr/local/pcsc/drivers/scm310Driver.bundle/Contents
            /usr/local/pcsc/drivers/scm310Driver.bundle/Contents/Linux
            /usr/local/pcsc/drivers/scm310Driver.bundle/Contents/Linux/scm_scr_301
            /usr/local/pcsc/drivers/scm310Driver.bundle/Contents/MacOS
            /usr/local/pcsc/drivers/scm310Driver.bundle/Contents/Resources
            /usr/local/pcsc/drivers/scm310Driver.bundle/Contents/Info.plist

    Syslog shows this:

    Jan 26 13:25:12 ipcroe pcscd: Warning couldn't open config file /etc/reader.conf.
            [I unplugged and replugged the USB reader here]
    Jan 26 13:25:32 ipcroe kernel: usb.c: USB disconnect on device 4
    Jan 26 13:25:38 ipcroe kernel: hub.c: USB new device connect on bus1/1, assigned device number 5
    Jan 26 13:25:38 ipcroe kernel: usb-uhci.c: interrupt, status 2, frame# 761
    Jan 26 13:25:38 ipcroe kernel: usb.c: USB device not accepting new address=5 (error=-110)
    Jan 26 13:25:39 ipcroe kernel: hub.c: USB new device connect on bus1/1, assigned device number 6
    Jan 26 13:25:39 ipcroe kernel: usb.c: USB device 6 (vend/prod 0x4e6/0x2009) is not claimed by any active driver.
    Jan 26 13:25:39 ipcroe /etc/hotplug/usb.agent: ... no drivers for USB product 4e6/2009/127

    testpcsc gives this output:
            $ ./testpcsc

            MUSCLE PC/SC Lite Test Program

            Testing SCardEstablishContext : Command successful.
            Testing SCardGetStatusChange

    /proc/bus/usb has these files:
            $ find /proc/bus/usb/*
            /proc/bus/usb/001
            /proc/bus/usb/001/001
            /proc/bus/usb/001/006
            /proc/bus/usb/001/002
            /proc/bus/usb/002
            /proc/bus/usb/002/001
            /proc/bus/usb/devices
            /proc/bus/usb/drivers

            $ cat /proc/bus/usb/de*
            T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
            B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
            D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
            P: Vendor=0000 ProdID=0000 Rev= 0.00
            S: Product=USB UHCI Root Hub
            S: SerialNumber=c400
            C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
            I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
            E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
            T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
            B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
            D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
            P: Vendor=0000 ProdID=0000 Rev= 0.00
            S: Product=USB UHCI Root Hub
            S: SerialNumber=c000
            C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
            I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
            E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
            T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=12 MxCh= 0
            D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
            P: Vendor=04e6 ProdID=2009 Rev= 1.27
            S: Manufacturer=SCM Microsystems Inc.
            S: Product=Citi USB Smart Card Reader
            S: SerialNumber=53535353
            C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
            I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=(none)
            E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
            E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
            E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl= 32ms
            T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 2 Spd=12 MxCh= 0
            D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
            P: Vendor=0781 ProdID=0002 Rev= 0.09
            S: Manufacturer=SanDisk Corporation
            S: Product=ImageMate CompactFlash USB
            S: SerialNumber=000000000002
            C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA
            I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
            E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
            E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms

            $ cat /proc/bus/usb/dr*
                     usbdevfs
                     hub
                     usb-storage

    Here's the lsmod output:
    $ lsmod
            Module Size Used by
            nls_iso8859-1 2832 0 (autoclean)
            smbfs 36560 0 (autoclean)
            sg 28896 0 (autoclean)
            ide-scsi 8320 0
            ide-cd 27072 0 (autoclean)
            cdrom 28544 0 (autoclean) [ide-cd]
            emu10k1 49680 0 (autoclean)
            soundcore 4464 4 (autoclean) [emu10k1]
            tdfx 34032 1
            agpgart 27456 0 (unused)
            vmnet 19840 6
            vmmon 18496 0
            nfs 79872 1 (autoclean)
            nfsd 71232 8 (autoclean)
            lockd 53168 1 (autoclean) [nfs nfsd]
            sunrpc 64816 1 (autoclean) [nfs nfsd lockd]
            parport_pc 14928 1 (autoclean)
            lp 6368 0 (autoclean)
            parport 25600 1 (autoclean) [parport_pc lp]
            autofs 11584 0 (autoclean) (unused)
            tulip 39328 1
            appletalk 20912 0 (autoclean)
            ipx 16416 0 (autoclean)
            usb-storage 55312 0
            scsi_mod 98464 3 [sg ide-scsi usb-storage]
            usb-uhci 21696 0 (unused)
            usbcore 51808 1 [usb-storage usb-uhci]
            ext3 62480 2
            jbd 41056 2 [ext3]

    Any ideas?

    -Rick

    -- 
    Rick Richardson  rickrmn.rr.com        http://home.mn.rr.com/richardsons/
    Stock information at your fingertips:   http://linuxtrade.0catch.com/
    

    Emacs would be a great operating system -- if only it had a decent editor. *************************************************************** Unix Smart Card Developers - M.U.S.C.L.E. (Movement for the Use of Smart Cards in a Linux Environment) http://www.linuxnet.com/ To unsubscribe send an email to majordomolinuxnet.com with unsubscribe sclinux ***************************************************************