[Script][Tool] how to create a tar.md5 file from img For Odin

Search This thread

mkh.mourad

Member
Sep 15, 2013
43
283
for how want to use Odin to flash the ClockWorkMod Recovery img or any image files like "boot.img", this is a tool to create a tar.md5 file from the img file.
unzip the file tool, and put your img files into the same directory of the batch file.
if you have more than one file put each file in a separate folder.
launch the "ImgToTar.MD5.bat" to create files with the extension of tar.md5 for each img file.
Note: the script rename the each file starting by "recovery*.img" to "recovery.img" , and files named "boot*.img" or "kernel*.img" image to "boot.img". if your file has another name , don't forgot to rename a recovery image to recovery.img, and the boot image to boot.img.

hope that help some body how search a batch file to create tar.md5 file for using it in Odin.

******************** new version of the script:
in this new version you can combine multiple files ,img and bin files, all of them into one file tar.md5 bundle.
a "AllFiles" directory is created including this result pack file ready to use in new Odin version v3.10.7.
 

Attachments

  • tar-Tool_Odin3-v3.07_by_mkh.mourad.zip
    2.5 MB · Views: 332,555
  • tar-Tool_Odin3-v3.10.7_by_mkh.mourad.zip
    3.3 MB · Views: 268,919
Last edited:

mkh.mourad

Member
Sep 15, 2013
43
283
but without md5 hash odin refuses to flash for safety reasons. its obvious that tar and md5 are just extensions... i meant how to force odin to flash ordinary tar without md5 hash in it.

odin accept all this extention PDA files:
*.tar, *.md5, *.smd, *.gz and *.tgz
but only *.md5 file has a hash to check data integrity.
a formatted MD5 checksum line is add at the end of the tar file to produce a file tar.md5
for exemple at the end of a tar file named "recovery.tar" we will find a line like this:
"53a1ee899d6f7b4b39c189739eee6294 recovery.tar"
 
Last edited:
  • Like
Reactions: zfk110 and duttyend

Kriomag

Senior Member
Nov 22, 2011
415
116
Poznań
odin accept all this extention PDA files:
*.tar, *.md5, *.smd, *.gz and *.tgz
but only *.md5 file has a hash to check data integrity.
a formatted MD5 checksum line is add at the end of the tar file to produce a file tar.md5
for exemple at the end of a tar file named "recovery.tar" we will find a line like this:
"53a1ee899d6f7b4b39c189739eee6294 recovery.tar"

when md5 checksum is does not match tar odin refuses to flash, but if there is no md5 at all it should work? i havent tried that ;) lol

i will test it shortly... brb

i think it works, odin accepted kernel tar :) i used: "tar -H ustar -c boot.img > kernel.tar"
 
Last edited:
  • Like
Reactions: Kavano08

mkh.mourad

Member
Sep 15, 2013
43
283
in the first post a have put a new version, it can create from any file with the extention *.img a *.tar.md5.
if any problem happend you can send me the log.txt file.
:)
 

mkh.mourad

Member
Sep 15, 2013
43
283
the latest recoveryclockmod image for odin:
:cowboy:
 

Attachments

  • recovery-clockwork-touch-6.0.4.4-jfltexx.zip
    7.3 MB · Views: 1,777
  • recovery-clockwork-6.0.4.4-jfltexx.zip
    7.3 MB · Views: 1,089
  • Like
Reactions: cetrero23

TOPeX85

New member
Jan 21, 2011
1
0
Tried the tool .. didn't work the first time, saw a 'PATH NOT FOUND' in the command window. So I tried again using folder path without any space (i.e..: "D:\tar-tools\" instead of "C:\users\my name\desktop\tar tools unzipped\") and the tool works.


My conclusion, tool did not work if folder path contains space(s).

Thanks for the batch files. :)
 
Last edited:

mkh.mourad

Member
Sep 15, 2013
43
283
tries the tool .. didn't work the first time, saw a 'PATH NOT FOUND' in the command window. So I tried using folder path without any spaces #i.e..: "D:\tar-tools\" instead of "C:\users\my name\desktop\tar tools unzipped\"# and the tool works.


My conclusion, tool did not work if folder path contains space#s#.

Thanks for the batch files. :)

thanks

I'll fix this problem in the future
update: the script accepts path and filename with spaces
 
Last edited:
  • Like
Reactions: samep

pimentel07

New member
Oct 31, 2008
3
1
Didnt work

I have downloaded twice the toll but when I try to decompress winrar send me errors, could you check this please?
Or do I have to use another program to decompress it?
Thanks in advance.
 

mkh.mourad

Member
Sep 15, 2013
43
283
I have downloaded twice the toll but when I try to decompress winrar send me errors, could you check this please?
Or do I have to use another program to decompress it?
Thanks in advance.
I used 7zip rather than Winzip or winrar.
I updated the file by compressing it with WinRAR in zip extension.
sorry man.

If i want to create a .tar.md5 from modem.bin there's some trick to do to create that?

I can not confirm, but I think it'll work.
the only thing is that it must have exactly as the filename: "modem.bin".
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 256
    for how want to use Odin to flash the ClockWorkMod Recovery img or any image files like "boot.img", this is a tool to create a tar.md5 file from the img file.
    unzip the file tool, and put your img files into the same directory of the batch file.
    if you have more than one file put each file in a separate folder.
    launch the "ImgToTar.MD5.bat" to create files with the extension of tar.md5 for each img file.
    Note: the script rename the each file starting by "recovery*.img" to "recovery.img" , and files named "boot*.img" or "kernel*.img" image to "boot.img". if your file has another name , don't forgot to rename a recovery image to recovery.img, and the boot image to boot.img.

    hope that help some body how search a batch file to create tar.md5 file for using it in Odin.

    ******************** new version of the script:
    in this new version you can combine multiple files ,img and bin files, all of them into one file tar.md5 bundle.
    a "AllFiles" directory is created including this result pack file ready to use in new Odin version v3.10.7.
    5
    Yes odin accept tar file. The md5 sum is a check for the integrity of data on the file. It's more safe to use a tar.md5 instead of tar file.

    Envoyé depuis mon GT-I9505 en utilisant Tapatalk 4
    4
    the tool of op only pack .bin and .img files. i edit a bit to can pack every file types in .tar file. enjoy:)
    4
    Hi mate,

    Thx for the script.
    I use it to make tar with 2 modems inside (modem+NON-HLOS).
    If anyone need it here is the bat.

    you need to put it in tar-Tool_Odin3-v3.07_by_mkh.mourad folder along with modem.bin and NON-HLOS.bin
    The script will create CP_modem.tar.md5 file and you can flash it with odin.
    Warning: Do not include any other bin in the folder except modem.bin and NON-HLOS.bin
    I'm not responsible if you kill your phone!
    3
    Solved!

    I find out that Odin is perfectly able to flash a TAR file, even without md5 hash check.
    So I've used the Official TAR for Windows and that's it. By the way, 7z tar are not compatible.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone