<div dir="ltr"><div>So let me start from the end</div><div><br></div><div>I can see the FST01 with gnuk firmware on it with lsusb, you can see the verbose output at the end of the email [1].</div><div>The problem is the vid and pid are set to 0000:0000</div><div><br></div><div>I tried building the binary a couple of ways, but it is also the same when I use docker (versions of programs installed on my machine should not be a problem this way)</div><div>I am using this command to build it: <br></div><div>env GNUK_CONFIG="--target=FST_01 --vidpid=234b:0000" make all<br></div><div><br></div><div>I can see the gnuk when I start gpg --card-status as root. [2]<br></div><div><br></div><div>I am using stlinkv2 (chinese clone) (both with 2.17.4 and 2.30.7 firmware versions)</div><div><br></div><div>Let me just add to unlock the rom I first need to run this command <br></div><div>sudo openocd -f /usr/local/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/local/share/openocd/scripts/target/stm32f1x.cfg -c "init; reset halt; shutdown" <br></div><div>while pulling reset to ground then letting it go half way through the command, if I do not do that I get ValueError('Status of core is not halt.', 128) when trying to run sudo python2 ../tool/stlinkv2.py -u<br></div><div><br></div><div>I have tried a lot of combinations but in the end all of them end up with the FST01 having vid and pid set to 0000:0000.<br></div><div><br></div><div>So, thnx in advance,</div><div>does anybody have any pointers?</div><div><br></div><div>Lovro<br></div><div><br></div><div>[1] <br></div><div>Bus 002 Device 096: ID 0000:0000 <br>Device Descriptor:<br> bLength 18<br> bDescriptorType 1<br> bcdUSB 2.00<br> bDeviceClass 0 (Defined at Interface level)<br> bDeviceSubClass 0 <br> bDeviceProtocol 0 <br> bMaxPacketSize0 64<br> idVendor 0x0000 <br> idProduct 0x0000 <br> bcdDevice 0.00<br> iManufacturer 1 Free Software Initiative of Japan<br> iProduct 2 Gnuk Token<br> iSerial 3 FSIJ-1.2.9-87022328<br> bNumConfigurations 1<br> Configuration Descriptor:<br> bLength 9<br> bDescriptorType 2<br> wTotalLength 93<br> bNumInterfaces 1<br> bConfigurationValue 1<br> iConfiguration 0 <br> bmAttributes 0x80<br> (Bus Powered)<br> MaxPower 100mA<br> Interface Descriptor:<br> bLength 9<br> bDescriptorType 4<br> bInterfaceNumber 0<br> bAlternateSetting 0<br> bNumEndpoints 3<br> bInterfaceClass 11 Chip/SmartCard<br> bInterfaceSubClass 0 <br> bInterfaceProtocol 0 <br> iInterface 0 <br> ChipCard Interface Descriptor:<br> bLength 54<br> bDescriptorType 33<br> bcdCCID 1.10 (Warning: Only accurate for version 1.0)<br> nMaxSlotIndex 0<br> bVoltageSupport 1 5.0V <br> dwProtocols 2 T=1<br> dwDefaultClock 4000<br> dwMaxiumumClock 4000<br> bNumClockSupported 0<br> dwDataRate 9600 bps<br> dwMaxDataRate 9600 bps<br> bNumDataRatesSupp. 0<br> dwMaxIFSD 254<br> dwSyncProtocols 00000000 <br> dwMechanical 00000000 <br> dwFeatures 0002047A<br> Auto configuration based on ATR<br> Auto voltage selection<br> Auto clock change<br> Auto baud rate change<br> Auto parameter negotation made by CCID<br> Auto IFSD exchange<br> Short APDU level exchange<br> dwMaxCCIDMsgLen 271<br> bClassGetResponse echo<br> bClassEnvelope FF<br> wlcdLayout none<br> bPINSupport 0 <br> bMaxCCIDBusySlots 1<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x81 EP 1 IN<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0040 1x 64 bytes<br> bInterval 0<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x01 EP 1 OUT<br> bmAttributes 2<br> Transfer Type Bulk<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0040 1x 64 bytes<br> bInterval 0<br> Endpoint Descriptor:<br> bLength 7<br> bDescriptorType 5<br> bEndpointAddress 0x82 EP 2 IN<br> bmAttributes 3<br> Transfer Type Interrupt<br> Synch Type None<br> Usage Type Data<br> wMaxPacketSize 0x0004 1x 4 bytes<br> bInterval 255<br>Device Status: 0x0000<br> (Bus Powered)</div><div><br></div><div>[2]</div><div>Reader ...........: 0000:0000:FSIJ-1.2.9-87022328:0<br>Application ID ...: D276000124010200FFFE870223280000<br>Version ..........: 2.0<br>Manufacturer .....: unmanaged S/N range<br>Serial number ....: 87022328<br>Name of cardholder: [not set]<br>Language prefs ...: [not set]<br>Sex ..............: unspecified<br>URL of public key : [not set]<br>Login data .......: [not set]<br>Signature PIN ....: forced<br>Key attributes ...: rsa2048 rsa2048 rsa2048<br>Max. PIN lengths .: 127 127 127<br>PIN retry counter : 3 3 3<br>Signature counter : 0<br>Signature key ....: [none]<br>Encryption key....: [none]<br>Authentication key: [none]<br>General key info..: [none]<br></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><a href="http://lovro.oreskovic.me" target="_blank">http://lovro.oreskovic.me</a><br><br></div></div></div>
</div></div>