<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>I'm trying to upgrade a nitrokey start with the latest gnuk. Compilation for the board goes without issues or warnings, but trying to upload a public key or the actual firmware fails.<br><br></div>I did change the VENDOR ID from the FST-01 to the Nitrokey (claylogic):<br><br>USB_VENDOR_FSIJ=0x20a0<br>USB_PRODUCT_GNUK=0x4211<br><br></div>After the change the usb_strings script sees the token:<br><br>root@ubuntu:~/gnuk# ./tool/usb_strings.py<br>Device: 004<br>    Vendor: Nitrokey<br>   Product: Nitrokey Start<br>    Serial: FSIJ-1.0.4-52FF6E06<br>  Revision: release/1.0.4-6-g739e00e<br>    Config: NITROKEY_START:dfu=no:debug=no:pinpad=no:certdo=yes:keygen=yes<br>       Sys: 1.0<br><br></div>But the binary upload fails:<br><br>root@ubuntu:~/gnuk# ./tool/gnuk_put_binary_libusb.<wbr>py -k 0 6B864105.bin <br>Device: 004<br>Configuration: 1<br>Interface: 0<br>Traceback (most recent call last):<br>  File "./tool/gnuk_put_binary_<wbr>libusb.py", line 110, in <module><br>    main(fileid, is_update, data, passwd)<br>  File "./tool/gnuk_put_binary_<wbr>libusb.py", line 53, in main<br>    gnuk.cmd_write_binary(fileid, data, is_update)<br>  File "/root/gnuk/tool/gnuk_token.<wbr>py", line 288, in cmd_write_binary<br>    raise ValueError("cmd_write_binary 1", "%02x%02x" % (sw[0], sw[1]))<br>ValueError: ('cmd_write_binary 1', '6581')<br><br></div>Im using both the 1.2.1 git tag as wel as the 1.0.4 git tag. In the 1.0.4. tag there is a smartcard script to upload a binary, and that fails as well, but in the latest release tag that script is not there anymore, just the libusb script.<br><br></div>I'm using Ubuntu 14.04. I compiled Gnupg 2.1, that works without problems. All the other packages, like python, the arm cross compiler and libusb, come from the repositories.<br><br></div>- Remy<br clear="all"><div><div><div><div><div><div><div><div><div><div><div><div class="gmail_signature" data-smartmail="gmail_signature"><br><br><a href="https://raymii.org" target="_blank">https://raymii.org</a><br></div></div>
</div></div></div></div></div></div></div></div></div></div></div>