mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-29 09:38:08 +00:00
85ba7c12ba
[no changelog]
12 lines
295 B
Python
Executable File
12 lines
295 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
bl = open("bl.bin", "rb").read()
|
|
fw = open("fw.bin", "rb").read()
|
|
combined = bl + 32768 * b"\xff" + fw
|
|
|
|
open("combined.bin", "wb").write(combined)
|
|
|
|
print(f"bootloader : {len(bl)} bytes")
|
|
print(f"firmware : {len(fw)} bytes")
|
|
print(f"combined : {len(combined)} bytes")
|