https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: 6844a54dee88fa9cd84ac85842ce24da538c3936 authored by alex@thinkpad on 20 May 2018, 08:36:00 UTC
Closing branch 80D-troubleshooting (please use digic6-dumper instead)
Tip revision: 6844a54
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