[Gnuk-users] Upgrading gnuk on a nitrokey start

Remy van Elst relst at relst.nl
Mon Aug 15 10:40:25 UTC 2016


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.

I did change the VENDOR ID from the FST-01 to the Nitrokey (claylogic):


After the change the usb_strings script sees the token:

root at ubuntu:~/gnuk# ./tool/usb_strings.py
Device: 004
    Vendor: Nitrokey
   Product: Nitrokey Start
    Serial: FSIJ-1.0.4-52FF6E06
  Revision: release/1.0.4-6-g739e00e
    Config: NITROKEY_START:dfu=no:debug=no:pinpad=no:certdo=yes:keygen=yes
       Sys: 1.0

But the binary upload fails:

root at ubuntu:~/gnuk# ./tool/gnuk_put_binary_libusb.py -k 0 6B864105.bin
Device: 004
Configuration: 1
Interface: 0
Traceback (most recent call last):
  File "./tool/gnuk_put_binary_libusb.py", line 110, in <module>
    main(fileid, is_update, data, passwd)
  File "./tool/gnuk_put_binary_libusb.py", line 53, in main
    gnuk.cmd_write_binary(fileid, data, is_update)
  File "/root/gnuk/tool/gnuk_token.py", line 288, in cmd_write_binary
    raise ValueError("cmd_write_binary 1", "%02x%02x" % (sw[0], sw[1]))
ValueError: ('cmd_write_binary 1', '6581')

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.

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.

- Remy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/gnuk-users/attachments/20160815/91599c93/attachment.html>

More information about the gnuk-users mailing list