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

Nitrokey 3 LPC55 devices (NFC variants) updating doesn't work #325

Open
albotroz opened this issue Jan 22, 2025 · 6 comments · May be fixed by flathub/com.nitrokey.nitrokey-app2#5
Open

Comments

@albotroz
Copy link

albotroz commented Jan 22, 2025

Nitrokey App: 2.3.3
Nitrokey 3 v1.7.2 LPC55
Linux Mint 22 Cinnamon 6.2.9

-> Stick Nitrokey 3 into USB, open App, Check for Update, "Do you want ... 1.8.0", "Ok", "Do not remove...", "Ok", "Press Nitrokey"
= Update failed

Ok, updating through nitropy nk3 update doesn't work too.
I give up with Nitrokey 3 on Linux. Problems right from the start.

nitropy nk3 update
Command line tool to interact with Nitrokey devices 0.7.3
Do you want to download the firmware version v1.8.0? [Y/n]: y
Download v1.8.0: 100%|█████████████████████| 1.08M/1.08M [00:00<00:00, 1.79MB/s]
Current firmware version:  v1.7.2
Updated firmware version:  v1.8.0

Please do not remove the Nitrokey 3 or insert any other Nitrokey 3 devices during the update. Doing so may damage the Nitrokey 3.
Do you want to perform the firmware update now? [y/N]: y

Please press the touch button to reboot the device into bootloader mode ...

Critical error:
An unhandled exception occurred
	Exception encountered: SPSDKConnectionError()

--------------------------------------------------------------------------------
Critical error occurred, exiting now
Unexpected? Is this a bug? Would you like to get support/help?
- You can report issues at: https://support.nitrokey.com/
- Writing an e-mail to [email protected] is also possible
- Please attach the log: '/tmp/nitropy.log.qbdqae93' with any support/help request!
- Please check if you have udev rules installed: https://docs.nitrokey.com/nitrokeys/nitrokey3/firmware-update#troubleshooting-linux
@kizm0
Copy link

kizm0 commented Jan 23, 2025

did u setup udev rules? https://docs.nitrokey.com/software/nitropy/linux/udev

@daringer
Copy link
Collaborator

daringer commented Jan 23, 2025

yip, NitrokeyApp2 currently has a bug updating lpc55 (nfc-device) Nitrokeys. But pynitrokey/nitropy should work w/o issues, please check if you have installed the udev rules as @kizm0 said (your error indicates that once the device switched over to bootloader, it cannot be found (no permissions) by nitropy)

@hkienle
Copy link

hkienle commented Feb 10, 2025

Updating with NitrokeyApp2 2.3.3 failed for me at first as well, but setting up the udev rules allowed me to update from v1.2.0 to v1.8.0.

However, after updating NitrokeyApp2 did show an error, but it seems the update did succeed anyways. (Running nitropy nk3 test shows v1.8.0 and all 5 tests succeed.)

Image

@robin-nitrokey
Copy link
Member

@hkienle This is expected when first updating to firmware version v1.3.1 or newer, see the release notes.

@hkienle
Copy link

hkienle commented Feb 11, 2025

@hkienle This is expected when first updating to firmware version v1.3.1 or newer, see the release notes.

Thanks for clearing this up. I assume you are referring to "Directly after the update, nitropy nk3 test or nitropy nk3 status may report an IFS or EFS error. "? So "EXTERNAL_FLASH_ERROR (0x4)" is a IFS or EFS error.

@daringer
Copy link
Collaborator

daringer commented Feb 11, 2025

yes, "EXTERNAL_FLASH_ERROR" refers to EFS error

(updated title of issue to better describe the underlying issue)

@daringer daringer changed the title Linux Mint - Firmware-Update not possible Nitrokey 3 LPC55 devices (NFC variants) updating doesn't work Feb 11, 2025
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

Successfully merging a pull request may close this issue.

5 participants