<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div><br></div><div><br>Op 19 aug. 2016 om 03:12 heeft NIIBE Yutaka <<a href="mailto:gniibe@fsij.org">gniibe@fsij.org</a>> het volgende geschreven:<br><br></div><blockquote type="cite"><div><span>Hello,</span><br><span></span><br><span>On 08/19/2016 01:55 AM, Remy van Elst wrote:</span><br><blockquote type="cite"><span>The output of:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>data_in_device = gnuk.cmd_read_binary(fileid)</span><br></blockquote><blockquote type="cite"><span>print(data_in_device)</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>before and after the commands for key 0 was:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>array('B', [212, 53, 156, 129, 194, 146, 131, 155, 213, 187, 122, 61,</span><br></blockquote><span></span><br><span>Thanks.  It seemed that it didn't work as I expected (= writing the</span><br><span>first two-byte to zero).  I'll check.</span><br><span></span><br><blockquote type="cite"><span>    Then, reGNUal works somehow.  I don't know if reGNUal's USB worked</span><br></blockquote><blockquote type="cite"><span>    well or not.  Do you still run your PC?  What output of dmesg, can you</span><br></blockquote><blockquote type="cite"><span>    see before the time of 142898.997643?</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>This:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[10978.547877] wlp3s0: authentication with fa:8f:ca:54:8d:12 timed out</span><br></blockquote><blockquote type="cite"><span>[10986.526488] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready</span><br></blockquote><blockquote type="cite"><span>[11011.497347] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready</span><br></blockquote><blockquote type="cite"><span>[11014.721191] wlp3s0: authenticate with 34:31:c4:8e:d9:4c</span><br></blockquote><blockquote type="cite"><span>[11014.723742] wlp3s0: send auth to 34:31:c4:8e:d9:4c (try 1/3)</span><br></blockquote><blockquote type="cite"><span>[11014.809521] wlp3s0: authenticated</span><br></blockquote><blockquote type="cite"><span>[11014.810153] wlp3s0: associate with 34:31:c4:8e:d9:4c (try 1/3)</span><br></blockquote><blockquote type="cite"><span>[11014.829753] wlp3s0: RX AssocResp from 34:31:c4:8e:d9:4c (capab=0x411</span><br></blockquote><blockquote type="cite"><span>status=0 aid=1)</span><br></blockquote><blockquote type="cite"><span>[11014.849389] wlp3s0: associated</span><br></blockquote><blockquote type="cite"><span>[11014.849513] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready</span><br></blockquote><blockquote type="cite"><span>[11014.909665] wlp3s0: Limiting TX power to 20 (23 - 3) dBm as</span><br></blockquote><blockquote type="cite"><span>advertised by 34:31:c4:8e:d9:4c</span><br></blockquote><blockquote type="cite"><span>[34439.950737] perf: interrupt took too long (5281 > 5185), lowering</span><br></blockquote><blockquote type="cite"><span>kernel.perf_event_max_sample_rate to 37800</span><br></blockquote><blockquote type="cite"><span>[142898.997643] usb 1-1.1: USB disconnect, device number 7</span><br></blockquote><blockquote type="cite"><span>[142900.418569] usb 1-1.1: new full-speed USB device number 8 using ehci-pci</span><br></blockquote><blockquote type="cite"><span>[145925.226816] usb 1-1-port1: disabled by hub (EMI?), re-enabling...</span><br></blockquote><span></span><br><span>It seemed that USB part of reGNUal didn't work well.  When upgrade is</span><br><span>requested, Gnuk shutdowns the USB port, erases flash ROM pages, and</span><br><span>then, gives the control to reGNUal.  It is reGNUal which again enables</span><br><span>USB port.  When it is enabled again, we should see something like:</span><br><span></span><br><span>    usb 1-1.1: New USB device found, idVendor=234b, idProduct=0000</span><br><span></span><br><span>We need to check how USB port works with Nitrokey Start.</span><br></div></blockquote><div><br></div>I did receive a message from Jan from Nitrokey stating that they don't change the vidpid when compiling gnuk for the nitrokey, but I did add the --vidpid option when configuring set to the out<i>put </i>of lsusb, clay logic's usb id. The other compile option was for the board.<br><blockquote type="cite"><div><span></span><br><blockquote type="cite"><span>I did find a thread somewhere where it was advised to change the sleep</span><br></blockquote><blockquote type="cite"><span>in this script to 10 seconds. Would that have helped?</span><br></blockquote><span></span><br><span>Now, it loops until it finds the USB port.   The problem here is Nitrokey</span><br><span>Start's USB port issue.</span><br><span></span><br><span>I don't know if it was tested by the engineers at Nitrokey.</span><br><span></span><br><span></span><br></div></blockquote><div><br></div><div>I hope one of them reads the mailing list and can give some more information on this part, because I'm also unsure of that.</div><br><blockquote type="cite"><div><blockquote type="cite"><span>So that part worked at least :). Now on to make the rest also work, and</span><br></blockquote><blockquote type="cite"><span>after that test the 1.2.1 release!</span><br></blockquote><span></span><br><span>Yes.  Gnuk 1.0.4 on Nitrokey Start worked.</span><br><span></span><br><blockquote type="cite"><span>I do really appriciate the help and support, so thank you for that. I</span><br></blockquote><blockquote type="cite"><span>did order the swd device (two actually) from aliexpress, so that will</span><br></blockquote><blockquote type="cite"><span>take at least two weeks to get here. I also ordered two more nitrokey</span><br></blockquote><blockquote type="cite"><span>devices, which will hopefully arrive sooner.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I'll document the process there and will use the password upgrade script</span><br></blockquote><blockquote type="cite"><span>at first, before hosing it :)</span><br></blockquote><span></span><br><span>Thanks a lot.  I suggest to identify/fix the problem of reGNUal at</span><br><span>first.</span><br><span></span><br><span>How did you configure Gnuk 1.2.1 for Nitrokey Start?  It effects</span><br><span>reGNUal too.</span><br></div></blockquote><div><br></div><div>As said above, when using the ./configure script I gave the board parameter and the vidpid parameter. </div><div><br></div><div>Do you have any suggestions on debugging this more when the two other nitrokeys come in? </div><div><br></div><br><blockquote type="cite"><div><span>-- </span><br><span></span><br><span>_______________________________________________</span><br><span>gnuk-users mailing list</span><br><span><a href="mailto:gnuk-users@lists.alioth.debian.org">gnuk-users@lists.alioth.debian.org</a></span><br><span><a href="https://lists.alioth.debian.org/mailman/listinfo/gnuk-users">https://lists.alioth.debian.org/mailman/listinfo/gnuk-users</a></span><br></div></blockquote></body></html>