T1 firmware update via trezorctl incorrectly throws "Invalid firmware data." if firmware image is too small #1082
Labels
bug
Something isn't working as expected
T1B1 legacy
Trezor One
trezorlib
Python library and the command line trezorctl tool.
Describe the bug
Updating T1 via
trezorctl firmware-update -f trezor.bin
throwsInvalid firmware data
if firmware is too small (I guess less than a full chunk). See attached small sample firmware that just shows trezor logo.Firmware version and revision
Bootloader must be at least 1.8.0. Revision tested 6ebb388
To Reproduce
Steps to reproduce the behavior:
trezorctl firmware-update -f trezor.bin
Invalid firmware data
python/src/trezorlib/firmware.py
and try again, the flashing will succeed and firmware will runAdditional context
To create similar small T1 firmware, just put
while(1);
afteroledRefresh
inmain
oftrezor.c
and build withMEMORY_PROTECT=0
trezor.zip
The text was updated successfully, but these errors were encountered: