Skip to content
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

"Enable firmware update" error message for Nitrokey Pro with old firmware #483

Open
Niklap97 opened this issue Sep 30, 2021 · 10 comments
Open

Comments

@Niklap97
Copy link
Collaborator

Application version: 1.5 RC8
Operating system: [Windows 10]
Issue occurrency: [always]

Expected behaviour

When attempting to "Enable firmware update" for a Nitrokey Pro with a firmware older than 0.11, the reason should be stated in the error message and an alternative solution should be described if possible.

Current behaviour

Error message displays: "Device could not be set in update mode. Status code: 9"

Steps for reproduction

  • Nitrokey Pro with firmware older than 0.11
  • "Enable firmware update" in "Configure" in the tray icon
@LennardBoediger
Copy link

Application version: 1.5 RC8
Operating system: [Mac OS 11.2.3]
Issue occurrency: [always]

Same problem under macOS
It is also not possible to change the firmware password as it claims that the current password is not 12345678.

However, it is possible to activate the firmware update mode for the same device with pynitrokey (without specifying a firmwmware password - and therefore using the default password 12345678).

@almazyan
Copy link

I have exactly the same issue as the author but on Debian 11.

Also, it looks like there is an issue with pynitrokey.

IMG_20230224_122510

Can somebody propose a solution please?

@szszszsz
Copy link
Member

Hey! This looks like an udev rules problem. Can you check if you have the latest installed?
See docs.nitrokey.com for the details.

@almazyan
Copy link

almazyan commented Feb 24, 2023

Hi, thank you for your response!
I did this:

wget https://raw.githubusercontent.com/Nitrokey/libnitrokey/master/data/41-nitrokey.rules
sudo mv 41-nitrokey.rules /etc/udev/rules.d/

And then this:

sudo udevadm control --reload-rules && sudo udevadm trigger

And it's still not working :/ I still see the same error "Status code: 9"

Also I see this:
IMG_20230224_193629

It says that nitrokey is not found or it is in update but neither is true. The list command shows it. It is strange isn't it? Is my nitrokey compromised?

@szszszsz
Copy link
Member

szszszsz commented Feb 27, 2023

Thank you for the update.
What is your firmware version? Firmware update is available only for the devices with firmware v0.11 and newer.
The Status code: 9 message refers directly to the missing command implementation in the firmware.

@almazyan
Copy link

Thank you for your response.
The last firmware I flashed was heads-t430-hotp-maximized-v0.2.0-1380-gc4b964c.rom which I got from github.com/osresearch/heads

@szszszsz
Copy link
Member

Oh, I mean the Nitrokey Pro firmware version, not NitroPad.

@almazyan
Copy link

almazyan commented Feb 27, 2023

Ah, sorry, the Nitrokey Pro firmware version is v0.15

@szszszsz
Copy link
Member

I see. You try then to update Nitrokey Pro v0.15 to v0.15? That's weird. You may have old libnitrokey installed too, but this should work with it as well. I would like to have libnitrokey logs here to make sure. I will ask someone to guide you through it.

@almazyan
Copy link

almazyan commented Feb 27, 2023

Initially, I updated it to v14.0 then v0.15. It was OK. And now it is impossible, I don't know why.
The reason I want to update it again is that I suspect that it is somehow compromised, because my Qubes behave strangely:

https://forum.qubes-os.org/t/another-sys-net-is-appearing-after-usb-tethering-is-it-normal/16859

QubesOS/qubes-issues#8003

So I am trying to eliminate all the possible breaches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants