2017-02-04 02:20:58 -08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from __future__ import print_function
|
|
|
|
|
2014-10-23 09:09:41 -07:00
|
|
|
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)
|
|
|
|
|
2017-02-04 02:20:58 -08:00
|
|
|
print('bootloader : %d bytes' % len(bl))
|
|
|
|
print('firmware : %d bytes' % len(fw))
|
|
|
|
print('combined : %d bytes' % len(combined))
|