GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > GSM & CDMA Phones / Tablets Software & Hardware Area > Lenovo

Lenovo General Lenovo phones discussion, firmwares, solution, help

Reply
 
LinkBack Thread Tools Display Modes
Old 04-02-2017, 21:26   #1 (permalink)
No Life Poster
 
BouRRi_GSM's Avatar
 
Join Date: Jan 2005
Location: TuNiSiA
Age: 41
Posts: 4,339
Member: 111457
Status: Offline
Thanks Meter: 966
Lenovo (and other MTK) File checksum (Checksum.ini) explained


Hello
anyone now how to calculate file checksum and witch type of checksum is this.
i get succes calculation md5 checksum. but don't know about this type of checksuom

from checksum.ini in mtk flash folder:

exemple:
[CheckSum]
preloader=0xCB45
recovery=0x913E
efuse=0x256B
md1img=0xDCE4
md1dsp=0x390F
md1arm7=0xBC8E
md3img=0xB7E2



thx in advance.
  Reply With Quote
The Following 2 Users Say Thank You to BouRRi_GSM For This Useful Post:
Old 04-03-2017, 04:23   #2 (permalink)
Moderator
 
Brka's Avatar
 
Join Date: Jun 1999
Location: Serbia
Age: 46
Posts: 7,522
Member: 163
Status: Offline
Thanks Meter: 7,271
There is public software called "MTK Checksum PC Memory Buffer", together with full source code.

Your shown example is not md5 (CHECKSUM_V2 in Checksum.ini file), but (if I got it well) byte checksum - ByteSum


About Checksum_Gen - usage : put exe and dll files in ROM folder,

- if you want just V1 checksum, run exe - it will make V1 checksum.
- if you want V1+V2 checksum - use switch "-md5" (yes, V2 is MD5 ...)

example on some Lenovo A380T flash file :

- V1 / CheckSum_Gen.exe
Code:
[VERSION]
VERSION=V1
TOOL=v5.1708.00
Change_ID=1491189569
[IsEnableChecksum]
CHECKSUM_SWITCH=1
[CheckSum]
PRELOADER=0x4D48
MBR=0x092A
EBR1=0x0941
UBOOT=0xC574
BOOTIMG=0x5B48
RECOVERY=0xB7D2
SEC_RO=0x146B
LOGO=0x1707
ANDROID=0x967F
CACHE=0x4571
USRDATA=0xB9AB
- V1+V2 / CheckSum_Gen.exe -md5
Code:
[VERSION]
VERSION=V2
TOOL=v5.1708.00
Change_ID=1491189164
[IsEnableChecksum]
CHECKSUM_SWITCH=1
[CheckSum]
PRELOADER=0x4D48
MBR=0x092A
EBR1=0x0941
UBOOT=0xC574
BOOTIMG=0x5B48
RECOVERY=0xB7D2
SEC_RO=0x146B
LOGO=0x1707
ANDROID=0x967F
CACHE=0x4571
USRDATA=0xB9AB
[CheckSum_V2]
PRELOADER=E7927A3B-780F1FD8-CEE00E52-F26BA605
MBR=24F60E82-B34C338F-7BC4F8A7-47DE5621
EBR1=3016BA41-DA806252-943587E6-EAA0F124
UBOOT=68908F89-4A9E3897-518067CB-57503DBF
BOOTIMG=DEB454BD-ED158CF8-590710C3-23686E9E
RECOVERY=DC92811B-22CC13F3-D59AC45F-3AB4176D
SEC_RO=4F307DFC-826C45EC-CE841AFE-9F3D2281
LOGO=A737B1F4-15DB1A8B-9E9B5D46-557BF882
ANDROID=0359BCAE-3AE46C18-67985F4F-A26953F2
CACHE=543D01BC-55FFA005-E76E87C6-C9CF331E
USRDATA=C418A8A0-0379A862-04A5B703-C7263DA4
ORIGINAL Checksum.ini (from ROM archive "target_bin" folder :
Code:
[VERSION]
VERSION=V2
[IsEnableChecksum]
CHECKSUM_SWITCH=1
[CheckSum_V2]
PRELOADER=E7927A3B-780F1FD8-CEE00E52-F26BA605
UBOOT=68908F89-4A9E3897-518067CB-57503DBF
LOGO=A737B1F4-15DB1A8B-9E9B5D46-557BF882
BOOTIMG=DEB454BD-ED158CF8-590710C3-23686E9E
RECOVERY=DC92811B-22CC13F3-D59AC45F-3AB4176D
SEC_RO=4F307DFC-826C45EC-CE841AFE-9F3D2281
ANDROID=0359BCAE-3AE46C18-67985F4F-A26953F2
USRDATA=C418A8A0-0379A862-04A5B703-C7263DA4
MBR=24F60E82-B34C338F-7BC4F8A7-47DE5621
EBR1=3016BA41-DA806252-943587E6-EAA0F124
CACHE=543D01BC-55FFA005-E76E87C6-C9CF331E
[CheckSum]
PRELOADER=0x00004d48
UBOOT=0x0000c574
LOGO=0x00001707
BOOTIMG=0x00005b48
RECOVERY=0x0000b7d2
SEC_RO=0x0000146b
ANDROID=0x0000967f
USRDATA=0x0000b9ab
MBR=0x0000092a
EBR1=0x00000941
CACHE=0x00004571
All should be clear now ...

p.s. Now you can "mix" files from different rom packages, which will download normally, without "DL Image Failed",
and without SPFlashTools complaining about non-matching checksum ...

p.s.2 I changed thread name to have more sense, since it's for MTK in general, not just Lenovo, also I put it as Sticky thread.


b.r.
Alex
__________________
Always press THANKS button if my post was helpful!
Please DO NOT send me PM's for help, You can ask for help on forum
Do not post THANKS posts - use thanks button !
ALWAYS use SEARCH button before posting!

Last edited by Brka; 04-03-2017 at 04:39. Reason: added more info
  Reply With Quote
The Following 5 Users Say Thank You to Brka For This Useful Post:
Show/Hide list of the thanked
Old 04-03-2017, 15:52   #3 (permalink)
No Life Poster
 
BouRRi_GSM's Avatar
 
Join Date: Jan 2005
Location: TuNiSiA
Age: 41
Posts: 4,339
Member: 111457
Status: Offline
Thanks Meter: 966
Hello. Thank you very much.
I know v2 checksum is md5 and can be calculated with online calculator.
Im asking about V1 checksumand i get succes with checksum_gen.exe but is not support all file name then cant calculate all file checksum in newer phone.
So if someone need nvram.bin chechsum like me , just rename it for exemple to logo.bin and put it in the same folder with checksum_gen.exe .

****** EDIT:

Sorry i use old version of checksum_gen. Newer version can check all file from scatter, so dont need rename anything.

About v2 checksum, idont understand use switch -md5? With checksum_gen? How, Can u be more clear?

Last edited by Brka; 07-18-2017 at 22:48. Reason: merged posts
  Reply With Quote
The Following 2 Users Say Thank You to BouRRi_GSM For This Useful Post:
Old 04-04-2017, 06:12   #4 (permalink)
Moderator
 
Brka's Avatar
 
Join Date: Jun 1999
Location: Serbia
Age: 46
Posts: 7,522
Member: 163
Status: Offline
Thanks Meter: 7,271
Either from command prompt, CheckSum_gen.exe -md5
Or by creating shortcut in windows and editing it, and add -md5

B.r
Alex
__________________
Always press THANKS button if my post was helpful!
Please DO NOT send me PM's for help, You can ask for help on forum
Do not post THANKS posts - use thanks button !
ALWAYS use SEARCH button before posting!
  Reply With Quote
The Following 5 Users Say Thank You to Brka For This Useful Post:
Show/Hide list of the thanked
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 



All times are GMT +1. The time now is 20:59.



Powered by Searchlight © 2022 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2022 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2017 -
Page generated in 0.11893 seconds with 7 queries

SEO by vBSEO