-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nk3: SPSDKConnectionError
during nitropy nk3 update
(with udev rules in place!)
#601
Comments
Thanks for the detailed report! I’m not sure if the Does the following udev rule fix the problem for you?
|
Another idea – the |
Like this?
I probably should add here that I'm one of those preferring not to install the Debian Will try the |
Yes, thank you! I was able to reproduce the problem on my machine. It is caused by a breaking change in a dependency, see trezor/cython-hidapi#191. There are two options to fix the problem:
|
Thanks! So you were right with your 0666 proposal, after all. I will go for the Thanks again. |
Completed the firmware update successfully after doing
|
hidapi release v0.14.0-post.4 does not work with our udev rules as it switches back to the libusb backend instead of using hidraw. Until we have rolled out new udev rules or hidapi has migrated to hidraw for good, this patch restricts hidapi to the versions using the hidraw backend. Fixes: #601
I package pynitrokey for gentoo (for my personal overlay), I ran into this issue as gentoo has hidapi 0.14.0_p4 (post4) and no older versions available, a workaround that worked for me personally was to add this local udev rule
Now I wonder how I can make the package work for others too, is it as simple as modifying the udev rule that libnitrokey provides, removing all hidraw match filters? |
@jjakob We are preparing a similar change here: Nitrokey/nitrokey-udev-rules#6. It would be great if you could test the updated rules and comment the results in the PR. |
I'm on an up-to-date Debian testing on Linux x86_64 with kernel
nitropy
should be up-to-date as well:I have package
libnitrokey3
installed (thei
prefix in theaptitude
output), the udev rules are in place, and should be active through reboot:Finally, I have Nitrokey 3A NFC:
Here is what happens in the journal when I plug the device:
(Not sure whether the messages related to
usb2-port2
are relevant here.)After a
nitropy nk3 reboot --bootloader
plus a button press I get in the journal:The ACLs on
/dev/hidraw8
look sane:Now I replug the NK3 and try:
For above button press the journal reports:
Again, the ACLs on the device look OK:
I have copied away the log file quoted above. Here is what seems one relevant part to me (it is repeated in multiple variations):
Since the error messages were not really helpful I tried an strace, where it became clear (?) that it is actually a file
hid.pyx
that is missing here (newlines in strace added by me):What am I missing here? I know little about Python.
The text was updated successfully, but these errors were encountered: