https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 16b88813ed92c65a3d358c82a71b93dcc4373991 authored by Daniel Fort on 16 April 2019, 04:24:32 UTC
M50: added installer. Still needs more work before it is working. Need to find bmp_vram_info stub.
Tip revision: 16b8881
firmsum.py
# python firmsum.py file offset length

import ctypes
import array
import string
import sys

f = open(sys.argv[1], 'rb')
f.seek( string.atoi( sys.argv[2], 16 ) )
firm = f.read( string.atoi( sys.argv[3], 16 ) )
f.close()
sum = sum( array.array('l', firm) )
print 'firsum=0x%x' % sum
back to top