trustcrypto/OnlyKey-App

ERROR: Firmware file block too large

jonathancross opened this issue · 1 comments

Linux desktop GUI: v5.3.6 (App is up-to-date)
Firmware installed: v2.1.0-prodc
Bootloader: UNLOCKED BOOTLOADERv1

Issue:

When I try to upgrade to any of the firmware versions, I get an error message:

Last message received: UNLOCKED BOOTLOADERv1
RECEIVED OKFWUPDATE
Error firmware file block too large

The desktop app then tells me the device is locked and to input my PIN, but it was not upgraded.

I checked the SHA-256 checksum, so I know the downloaded firmware file (Signed_OnlyKey_3_0_4_STD.txt - 429,285 bytes) was correct.
I also tried with 4 earlier versions and got the same error.

Workaround:

I was able to upgrade via these steps:

  1. Put the device into config mode
  2. try to update (leading me to the backup step).
    • Note: The backup step seems to be a potential source of error -- skipping it seems to allow the firmware update to proceed, but I don't have enough info to determine cause-effect.
  3. Instead of supplying a backup passphrase, I Close the desktop app
  4. Restart the desktop app (OK still shows white light)
  5. Then try to update the firmware and it goes forward.

Related: #134

Some discussion about this same issue here:

https://onlykey.discourse.group/t/firmware-2-1-2-file-block-too-large/760

I got it working using from inside a Debian VM. Another user found this workaround:

When you put the onlykey in the computer, and it goes to the setup guide, if you have already entered a backup phrase…ignore it. Pull out the onlykey, put back in. Now it goes straight to load firmware, skipping the setup guide and this time it does update.