Skip to content

chore(firmware): add T1B1 bootloader_hash for versions above 1.8.0#172

Merged
vdovhanych merged 1 commit into
masterfrom
chore/add-t1b1-bootloader-hashes
Jun 24, 2026
Merged

chore(firmware): add T1B1 bootloader_hash for versions above 1.8.0#172
vdovhanych merged 1 commit into
masterfrom
chore/add-t1b1-bootloader-hashes

Conversation

@Lemonexe

@Lemonexe Lemonexe commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

As part of https://github.com/trezor/trezor-suite-private/issues/209,
backfill optional property bootloader_hash to T1B1 with FW versions >=1.9.0
(those are supported by Suite/Connect, it's not worth it to backfill it for lower versions).

Sources:
https://github.com/trezor/trezor-firmware/blob/main/legacy/firmware/bl_check.c#L112-L237
https://github.com/trezor/trezor-firmware/blob/main/legacy/firmware/bl_check.txt

I double checked, but please check it yourself.

click.secho(
"Warning: for T1B1 you should manually backfill the bootloader_hash from trezor-firmware/legacy/firmware/bl_check.txt",
fg="yellow",
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be more fragile to extract this value from firmware, so I'd rather not do it. It's optional proeprty anyway.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read in the suite issue https://github.com/trezor/trezor-suite-private/issues/209 that bootloader hash mismatch should be treated as a hard failure. So how is it an optional property?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for confusion, I'll clarify: optional in data.trezor.io configs (only some FW releases have it defined), but for Suite the value will be binding, i.e. if Suite receives the bootloader_hash in the FW release, it will be expected from the device as mandatory.

@obrusvit obrusvit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I briefly checked the hashes against sources and didn't spot any issues.

I think it's fine that we put the values there manually because we will probably never release new bootloaders for T1B1.

Had one question in the comment.

@vdovhanych vdovhanych merged commit c0d181e into master Jun 24, 2026
3 checks passed
@vdovhanych vdovhanych deleted the chore/add-t1b1-bootloader-hashes branch June 24, 2026 09:34
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 this pull request may close these issues.

3 participants