Hi Everyone,

I failed to format new token on IBM JCOP 30 card.  Can anyone help me to
figure out the reason?

My system:
1. Hardware:
-- Card Reader: Gemplus GemPC Twin
-- Smart Card: IBM JCOP 30 Java Card (16K EEPROM)

2. Software:
-- Redhat Linux 7.2
-- PC/SC Lite 1.2.0
-- CCID 0.3.2
-- IBM JDK 1.4
-- ANT 1.6
-- Communication APIs: RXTX-2.0-5
-- Sun's Java Card Kit 2.1.2
-- OpenCard Framework 1.2
-- OCF to PC/SC Bridge: OCFPCSC1-0.0.1
-- JPCSC 0.7.2
-- OpenSSL 0.9.7
-- OpenSC 0.8.1
-- MCardApplet 0.9.11
-- MCardPlugin from MuscleFramework 1.1.4
-- LibMusclePKCS11 from MuscleFramework 1.1.4 (some source files got from
the latest CVS version, otherwise the libpkcs11.so can't be added to
Mozilla)
-- MuscleTools from MuscleFramework 1.1.3
-- XCardII from MuscleFramework 1.1.3
-- IBM JCOP Tools 2.2
-- JCOP-MuscleCard from MicroExpert.com (for converting CAP file and loading
CAP file to JCOP card)

All above mentioned software can be compiled and installed properly without
any errors.  The LD_LIBARAY_PATH and CLASSPATH were also set according to
the requirements.

I used the MicroExpert's JCOP-MuscleCard to convert class files to CAP file
and loaded the CAP file to the JCOP.  I could use the JCOP Tools to verify
the applet (AID: A00000000101) has been installed successfully.

When I used the muscleTool to format the token, I always got "Formatting
token [***] : Failed (Internal Error)" as following.

When I used the XCardII to format the token, I always got "Invalid
Parameter" error message.

I checked the pcscd log, and found the following 3 lines are suspected.  I
found that a slash was missing between drivers and ifd-ccid.bundle.  I will
try to fix it tomorrow.  But what is the reason of "commands.c:335 Procedure
byte conflict"?
======================================================
tokenparser.l:116 Could not open bundle file :
/usr/local/pcsc/driversifd-ccid.bundle/Contents/Info.plist
commands.c:335 Procedure byte conflict
SW:
======================================================

I already spent a lot of time on this and almost become mad.  Anyone can
help me will be greatly appreciated.

Thank you very much in advance.

Bo Wu
E-mail: [EMAIL PROTECTED]


=================================================
muscle > tokens
   1.    MuscleCard Applet

muscle > format 1
Would you like to:
        1. Use the default factory key: 2C15E526E93E8A19
        2. Use the MUSCLE default key : 4D7573636C653030
        3. Enter your own transport key

Choose (1-3): 2

How much object memory would you like to allocate ?
Example: 7096 (7k) : 3900
Please enter a new auth pin value (pin 0) : 00000000
Please enter your user pin value (pin 1)  : 00000000
Please enter your user pin unblock value  : 00000000
Please enter your number of pin tries     : 5

********************* WARNING ! *********************
You are about to destroy all data on this token.
*****************************************************

Current admin pin      : Muscle00
New admin pin          : 00000000
New user pin           : 00000000
New user unblock pin   : 00000000
Number of tries        : 5
Object memory          : 3900

Are you sure you want to continue ? (1-YES, 2-NO): 1

Formatting token [***] : Failed (Internal Error)
muscle > muscle >


=================================================
pcscd log:
=================================================
[EMAIL PROTECTED] sbin]# ./pcscd -a -f -d stdout
debuglog.c:188 Debug options: APDU
pcscdaemon.c:251 main: pcscd set to foreground
pcscdaemon.c:265 main: debug messages to stdout
readerfactory.c:1390 RFInitializeReader: Attempting startup of GemPC Twin 0
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
ifdhandler.c:81 Entering IFDHCreateChannel (lun: 0)
ccid_serial.c:511 Set serial port baudrate to 115200 and correct
configuration
ifdhandler.c:167 entering IFDHGetCapabilities (lun: 0) tag: FAE
pcscdaemon.c:445 main: pcsc-lite daemon ready.
tokenparser.l:116 Could not open bundle file :
/usr/local/pcsc/driversifd-ccid.bundle/Contents/Info.plist
hotplug_linux.c:178 No bundle files in pcsc drivers directory:
/usr/local/pcsc/drivers
hotplug_linux.c:179 Disabling USB support for pcscd
winscard_msg.c:250 SHMProcessEvents: Common channel packet arrival
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:80 SCardEstablishContext: Establishing Context: 16987379
ifdhandler.c:320 entering IFDHPowerICC (lun: 0)
eventhandler.c:466 EHSpawnEventHandler: Card inserted into GemPC Twin 0 0
EHSpawnEventHandler: Card ATR: 3B E6 00 FF 81 31 FE 45 4A 43 4F 50 30 33 07
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:149 SCardConnect: Attempting Connect to GemPC Twin 0 0
winscard.c:245 SCardConnect: Active Protocol: 2
winscard.c:252 SCardConnect: hCard Identity: 135f7
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:641 SCardDisconnect: Active Contexts: 1
ifdhandler.c:320 entering IFDHPowerICC (lun: 0)
winscard.c:703 SCardDisconnect: Reset complete.
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:92 SCardReleaseContext: Releasing Context: 16987379
winscard.c:92 SCardReleaseContext: Releasing Context: 16987379
pcscdaemon.c:144 SVCServiceRun: Client 8 has disappeared.
winscard_msg.c:250 SHMProcessEvents: Common channel packet arrival
pcscdaemon.c:144 SVCServiceRun: Client 8 has disappeared.
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:80 SCardEstablishContext: Establishing Context: 17015141
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:149 SCardConnect: Attempting Connect to GemPC Twin 0 0
winscard.c:245 SCardConnect: Active Protocol: 2
winscard.c:252 SCardConnect: hCard Identity: 1c2e1
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:1293 SCardTransmit: Send Protocol: 1
APDU: 00 A4 04 00 06 A0 00 00 00 01 01
ifdhandler.c:416 entering IFDHTransmitToICC (lun: 0)
commands.c:335 Procedure byte conflict
SW:
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:1293 SCardTransmit: Send Protocol: 1
APDU: B0 2A 00 00 38 08 4D 75 73 63 6C 65 30 30 04 01 08 30 30 30 30 30 30
30 30
 08 30 30 30 30 30 30 30 30 05 02 08 30 30 30 30 30 30 30 30 08 30 30 30 30
30 3
0 30 30 00 00 0F 3C 00 02 01
ifdhandler.c:416 entering IFDHTransmitToICC (lun: 0)
commands.c:335 Procedure byte conflict
SW:
winscard_msg.c:289 SHMProcessEvents: correctly processed client: 0
winscard.c:641 SCardDisconnect: Active Contexts: 1
ifdhandler.c:320 entering IFDHPowerICC (lun: 0)
winscard.c:703 SCardDisconnect: Reset complete.


_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to