Revision e873d56e8eec42c9fa6649d37fee9cc8550b0d74 authored by bouncyball on 15 May 2016, 10:46:04 UTC, committed by bouncyball on 15 May 2016, 10:46:04 UTC
1 parent 1cf2d54
fw-signature.h
#ifndef _fw_signature_h_
#define _fw_signature_h_
#include <config-defines.h>
#define SIG_LEN 0x10000
#if defined(CONFIG_DIGIC_V)
#define SIG_START 0xFF0C0000
#elif defined(CONFIG_7D) || defined(CONFIG_7D_MASTER)
#define SIG_START 0xF8010000
#else
#define SIG_START 0xFF010000
#endif
#define SIG_60D_111 0xaf91b602 // from FF010000
#define SIG_550D_109 0x851320e6 // from FF010000
#define SIG_600D_102 0x27fc03de // from FF010000
#define SIG_600D_101 0x290106d8 // from FF010000 // firmwares are identical
#define SIG_500D_110 0x4c0e5a7e // from FF010000
#define SIG_50D_109 0x4673ef59 // from FF010000
#define SIG_500D_111 0x44f49aef // from FF010000
#define SIG_5D2_212 0xae78b938 // from FF010000
#define SIG_1100D_105 0x46de7624 // from FF010000
// Not supported cameras
#define SIG_6D_112 0x6D677512
#define SIG_6D_113 0x6B6A9C6F
#define SIG_6D_116 0x11cb1ed2
#define SIG_5D3_113 0x2e2f65f5
#define SIG_EOSM_106 0x6393A881
#define SIG_EOSM_202 0x2D7c6dcf
#define SIG_7D_203 0x50163E93
#define SIG_7D_MASTER_203 0x640BF4D1
#define SIG_650D_104 0x4B7FC4D0
#define SIG_700D_111 0x645D8FD5
#define SIG_700D_113 0x5AE36B51
#define SIG_700D_114 0x4b35ce13
// TODO: multiple 100D.100 out there :(
#define SIG_100D_100 0x34443B7F
static int compute_signature(int* start, int num)
{
int c = 0;
int* p;
for (p = start; p < start + num; p++)
{
c += *p;
}
return c;
}
#ifdef CONFIG_QEMU
/* we are using patched ROMs, so the signature will fail for sure; skip it */
#undef CURRENT_CAMERA_SIGNATURE
#endif
#endif //_fw_signature_h_
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...