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

backend/bitbox02bootloader: allow fixing broken install #2711

Merged
merged 3 commits into from
May 31, 2024

Commits on May 31, 2024

  1. backend/bitbox02bootloader: rename binary => signedBinary

    To disambiguate from the unsigned binary.
    benma committed May 31, 2024
    Configuration menu
    Copy the full SHA
    14284a1 View commit details
    Browse the repository at this point in the history
  2. backend/bitbox02bootloader: simplify unit tests

    By using the newly added `ParseSignedFirmware()` util function.
    benma committed May 31, 2024
    Configuration menu
    Copy the full SHA
    b4d6e7a View commit details
    Browse the repository at this point in the history
  3. backend/bitbox02bootloader: allow fixing broken install

    Problem: a new device ships with the latest firmware monotonic version. User
    sees 'Install' because the device is erased (no firmware on it), but during
    first install of firmware, unplugs. Upon replug, the device will show 'Invalid
    firmware' and boot into bootloader again. Since the monotonic version of the
    firmware to be installed is the same as the version stored on the device, and
    the device is not erased (half of the firmware is on it), the user sees no
    button to upgrade/instll anymore.
    
    This commit fixes this by still showing the upgrade button if the versions are
    the same, but the device firmware hash does not match the expected firmware
    hash.
    benma committed May 31, 2024
    Configuration menu
    Copy the full SHA
    da155b0 View commit details
    Browse the repository at this point in the history