solokeys / solo2-cli

Solo 2 library and CLI in Rust
https://docs.rs/solo2
Apache License 2.0
173 stars 31 forks source link

solo2 update not working on Ubuntu #76

Open maddler opened 2 years ago

maddler commented 2 years ago

Hello, I've just tried to update firmware on one of the SoloKey2 I just received. I get prompted to tap to confirm, the led on the key goes off bit then I get a tiemout error:

❯ solo2 update
Downloading latest release from https://github.com/solokeys/solo2/
Fetched firmware version 1:20200101.9 (1.0.9)
Tap button on key to confirm, or replug to abort...
Error: User prompt to confirm maintenance timed out!
❯ solo2 -V
solo2 0.2.0

I installed solo2 with cargo install. I was able to update the SoloKey2 on Mac with no issues.

Norbert01 commented 2 years ago

Same here. Ubuntu 21.04. rustc 1.62 (snap rustup)

Norbert01 commented 2 years ago

Downloading latest release from https://github.com/solokeys/solo2/ Fetched firmware version 1:20200101.9 (1.0.9) Tap button on key to confirm, or replug to abort... Error: User prompt to confirm maintenance timed out! norbert@norbert-Latitude-5580:~$ ./.cargo/bin/solo2 list Solo 2 F4090C8FDD7CBA5E93409795223151E7 (CTAP+PCSC, firmware 1:20200101.9)

The solo2 is already on the latest version?

maddler commented 2 years ago

Pretty sad there was no acknowledgement on this bug since., nor any update on the tools.

alex-sector commented 2 years ago

@maddler : Have your tried to add 70-solo2.rules in udev ?

The one from solo2-cli have an extra entry needed for firmware update in user mode.

Norbert01 commented 2 years ago

Hello Alex, the udev-rule work:

Downloading latest release from https://github.com/solokeys/solo2/ Fetched firmware version 1:20200101.9 (1.0.9) Tap button on key to confirm, or replug to abort... LPC55 Bootloader detected. The LED should be off. Writing new firmware... Done. Rebooting key. The LED should turn back on.

huaracheguarache commented 2 years ago

The same happens on Fedora 36.

firecat53 commented 2 years ago

Fedora 36

✔ Continue? · yes Continuing Tap button on key to confirm, or replug to abort... LPC55 Bootloader detected. The LED should be off. Writing new firmware... Done. Rebooting key. The LED should turn back on.


Thanks for the tip @alex-sector!
JohnPeacock commented 2 years ago

Confirmed that Fedora 36 instructions work. PR created to add makefile to this repo to make it easier: https://github.com/solokeys/solo2-cli/pull/83