summaryrefslogtreecommitdiff
blob: 28b8a6f3170fdcf79f4a681fb7afeccff7eb13bd (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/imagetool-uncompressed.py
+++ b/imagetool-uncompressed.py
@@ -46,7 +47,7 @@
 f = open(args.bootimage, "wb")
 
 for m in mem:
-   f.write(chr(m))
+   f.write(chr(m).encode('latin1'))
 
 f.write(kernel_image)
 f.close()