mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-21 22:08:08 +00:00
11 lines
304 B
Python
Executable File
11 lines
304 B
Python
Executable File
#!/usr/bin/env python2
|
|
bl = open('bl.bin').read()
|
|
fw = open('fw.bin').read()
|
|
combined = bl + fw[:256] + (32768-256)*'\x00' + fw[256:]
|
|
|
|
open('combined.bin', 'w').write(combined)
|
|
|
|
print 'bootloader : %d bytes' % len(bl)
|
|
print 'firmware : %d bytes' % len(fw)
|
|
print 'combined : %d bytes' % len(combined)
|