trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

Bring TT bootloader features to T1 bootloader

Open tsusanka opened this issue 3 years ago • 3 comments

Idea from Asana backlog. It will probably be too much engineering but I am still curious what it takes and whether it is even possible.

tsusanka avatar Mar 19 '21 19:03 tsusanka

Unless we decide to change the memory layout on T1 (so we can have bigger bootloader on T1) we can't do this.

tsusanka avatar Mar 29 '21 12:03 tsusanka

Checklist:

  • [ ] Ed25519 COSI signatures
  • [x] parse VERSION and FIX_VERSION from the firmware header (7d93bd3)
  • [ ] warn when firmware downgrade is happening
  • [ ] warn when firmware downgrade with erase (new VERSION < old FIX_VERSION) is happening
  • [x] erase the storage when new VERSION < old FIX_VERSION (7d93bd3)

prusnak avatar May 17 '21 08:05 prusnak

  • [ ] Add MAX_BOOTLOADER_VERSION to firmware header, which will correspond with the maximum bootloader version listed in bl_check.c.
  • [ ] Don't allow user to downgrade if BOOTLOADER_VERSION > MAX_BOOTLOADER_VERSION, because it makes the firmware inoperable.

andrewkozlik avatar May 17 '21 09:05 andrewkozlik

I assume we can close this as not planned, right?

Hannsek avatar Mar 28 '23 08:03 Hannsek