[Script][Tool] how to create a tar.md5 file from img For Odin - Galaxy S 4 General

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.

Thank you this worked fine on my 9505.

It creates a recovery.tar.md5 with 0 bytes on my Windows XP.. :crying:
Any suggestion?

SeaFargo said:
It creates a recovery.tar.md5 with 0 bytes on my Windows XP.. :crying:
Any suggestion?
Click to expand...
Click to collapse
i can't see what the problem on your system, the tool is very simple. send me a zip of your folder with all files, also the recovery image file, and the tar.md5 file 0b.

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.

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

mkh.mourad said:
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
Click to expand...
Click to collapse
how to make odin flash tar without md5 hash?

The same ,you chose the tar file instead of the tar.md5. Odin accepte both extentions in the PDA editbox.

mkh.mourad said:
The same ,you chose the tar file instead of the tar.md5. Odin accepte both extentions in the PDA editbox.
Click to expand...
Click to collapse
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.

Kriomag said:
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.
Click to expand...
Click to collapse
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"

mkh.mourad said:
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"
Click to expand...
Click to collapse
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"

This tool doesn't work for you?

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.

the latest recoveryclockmod image for odin:

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.

TOPeX85 said:
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.
Click to expand...
Click to collapse
thanks
I'll fix this problem in the future
update: the script accepts path and filename with spaces

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.

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

pimentel07 said:
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.
Click to expand...
Click to collapse
I used 7zip rather than Winzip or winrar.
I updated the file by compressing it with WinRAR in zip extension.
sorry man.
bluflight said:
If i want to create a .tar.md5 from modem.bin there's some trick to do to create that?
Click to expand...
Click to collapse
I can not confirm, but I think it'll work.
the only thing is that it must have exactly as the filename: "modem.bin".

mkh.mourad said:
the latest recoveryclockmod image for odin:
Click to expand...
Click to collapse
After 2 hours of searching,this tar file gave me back my recovery, thanks a lot man! :good:
now i can go sleep :victory:

Related

[HOW-TO]Convert .img to .tar.md5 with ease ( With Odin3 )

Convert .img file to .tar.md5 for use in flashing Odin ( with odin in it )...
INSTRUCTION:
1. Download and extract it.
2. Move the .img file in the folder
3. Click ''ImgToTar.Md5'' and the converting process should running
4. Click ''odin'' and odin will popup
5. Start your flashing process with ease....
Don't forget to say thanks...
****in A bro! Thanks a lot
Thanks a lot.
고맙습니다,
Translation: thank you,
can i flash ultra compression tar file? or normal compression file
salim7685 said:
Convert .img file to .tar.md5 for use in flashing Odin ( with odin in it )...
INSTRUCTION:
1. Download and extract it.
2. Move the .img file in the folder
3. Click ''ImgToTar.Md5'' and the converting process should running
4. Click ''odin'' and odin will popup
5. Start your flashing process with ease....
Don't forget to say thanks...
Click to expand...
Click to collapse
Thanks big time

How To Create Tar To MD5 Tar

Hello every one today I am posting a script which you
Can create tar to md5 odin flash.
You can easly make TAR from your iMG by using 7ZIP.
When you make TAR then you can make it to MD5 ODIN FLASH
By my script
Download tar-tool-odin .zip by ihsas and extrat it on your pc.
Copy your tar file into the tar tool folder and double click on
Tar to md5 scrip and after complete the process you have
A odin flash MD5 tar.
Say thanks and from me thnx to all... cheeer.
Download link below
https://mega.nz/#!mENEyLYA!wMeReYTked_mjtCF1GuY9FALwmBFxoTeQjwX3vFdnok
Thanks man this really worked out for me.
decompile and recompile stock rom and make odin tar md5 recovery
ihsas said:
Hello every one today I am posting a script which you
Can create tar to md5 odin flash.
You can easly make TAR from your iMG by using 7ZIP.
When you make TAR then you can make it to MD5 ODIN FLASH
By my script
Download tar-tool-odin .zip by ihsas and extrat it on your pc.
Copy your tar file into the tar tool folder and double click on
Tar to md5 scrip and after complete the process you have
A odin flash MD5 tar.
Say thanks and from me thnx to all... cheeer.
Download link below
https://mega.nz/#!mENEyLYA!wMeReYTked_mjtCF1GuY9FALwmBFxoTeQjwX3vFdnok
Click to expand...
Click to collapse
You can also extract stock rom and after making changes get back tar.md5 odin flash rom by this script tool
Its to use.
Sorry for bad english
Hit thnx.......
Tar to md5 scrip ... where? is it the ImgToTar.MD5?
Also any of the batch files when clicked dont do anything nothing shows up?
using : win7 x64
EwOkie said:
Tar to md5 scrip ... where? is it the ImgToTar.MD5?
Also any of the batch files when clicked dont do anything nothing shows up?
using : win7 x64
Click to expand...
Click to collapse
This script is for just make tar to md5 you can easly make img to tar by using 7zip.
I have another script which make img to tar.md5 but with that script you can only make 1 img file not sevral file like stock rom
Stock rom have many img file when you make several img file to tar by using 7zip then you can easly make that tar to md5.tar and then flash by odin
Such as I have update my galaxy s3 to kitkat 4.4.4 and then I have download jb 4.3 when I flash it then I have found error with sboot then I make this tool to delete the sboot and flash again and its work for me.
Thank you

Create Tar To Md5 Odin Flash Script Tool

Hello every one today I am posting a script which you
Can create tar to md5 odin flash.
You can easly make TAR from your iMG by using 7ZIP.
Open 7zip add your img file and go to file type select tar and save.
When you make TAR then you can make Tar to MD5 ODIN FLASH File
By my script
Download tar-tool-odin.zip by ihsas and extrat it on your pc.
Copy your tar file into the tar tool folder and double click on
Tar to md5 scrip and after complete the process you have
A odin flash MD5 tar.
Say thanks and from me thnx to all... cheeer.
Download link below
https://mega.nz/#!mENEyLYA!wMeReYTked_mjtCF1GuY9FALwmBFxoTeQjwX3vFdnok

help pleaase S6 sm-g920f

hello hope you are fine
i have galaxy s6 sm -g920f
it was running on 5.1..1 G920FXXU2BOGE
tried to install marshmallow XEF-G920FXXU3DPAD-20160223100452 via odin
my fone stuck and dont boot
when i tried to flash 5.1.1 again with 4 files it fail to flash bootloader
in recovery mode it was still MM recovery and written dm-verify verification failed need to check dRK first ... ?
what the problem please any solution ???
sorry for my bad english
Hmm. Let's try this.
1. Go to recovery->wipe everything.
2. Reflash stock rom through odin.
2a. If it fails at cm.bin or any other .bin file or hidden.img file just delete them from the .tar file using 7zip.
3. If it still fails. Google "G920F pit file" and flash it with that file.
3a. If that STILL fails. Remove all files from the .tar file and just leave system.img and sboot.bin(or img not sure).
4. Now reflash and enjoy! . If anything fails after all my steps. Copy and paste the odin log and I will try to figure out something else.
ProtoDeVNan0 said:
Hmm. Let's try this.
1. Go to recovery->wipe everything.
2. Reflash stock rom through odin.
2a. If it fails at cm.bin or any other .bin file or hidden.img file just delete them from the .tar file using 7zip.
3. If it still fails. Google "G920F pit file" and flash it with that file.
3a. If that STILL fails. Remove all files from the .tar file and just leave system.img and sboot.bin(or img not sure).
4. Now reflash and enjoy! . If anything fails after all my steps. Copy and paste the odin log and I will try to figure out something else.
Click to expand...
Click to collapse
thx bro i'll try and give you feed back

Insert ROM in PDA file

I have a problem. I am new in the domain of android customization and that is why I am testing.
I have a PDA file for my old GT-S6102 Galaxy Y, which contains the following files:
boot.img
param.lfs
Sbl.bin
system.img
userdata.img
I also downloaded a custom ROM from the internet called evo_x2.1 (evo_x2.1.zip) which contains the following files:
META-INF (folder)
system (folder)
installbusybox (file)
Normaly this file is supposed to be put on /sdcard and update the system partition only from recovery mode.
But I have a question: Can I edit my PDA file mentioned above by inserting this ROM in it? (so that when I flash this firmware with odin into my phone I will no longer have to update it with this ROM separately afterwards, manually)
I tried to create a system.img which contained the files included in the ROM file and replaced the system.img in the PDA file with the system.img I just created from the ROM file.But when I try to flash the PDA with Odin, it crashes while analyzing the file.
NOTE: there is no md5 hashsum at the end of the PDA so there is no problem concerning the integrity of the file.
Thank you, and any observations are welcomed.
ReznicencuBogdan said:
I have a problem. I am new in the domain of android customization and that is why I am testing. I have a PDA file for my old GT-S6102 Galaxy Y,........
Click to expand...
Click to collapse
I don't have this device but, the following area of the forum is also specific to your device as well.
https://forum.xda-developers.com/galaxy-y
With that guidance...
Your best bet is to post this question within the following Q&A thread that's specific to your device and variants.
https://forum.xda-developers.com/showthread.php?t=2063534
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
ReznicencuBogdan said:
I have a problem. I am new in the domain of android customization and that is why I am testing.
I have a PDA file for my old GT-S6102 Galaxy Y, which contains the following files:
boot.img
param.lfs
Sbl.bin
system.img
userdata.img
I also downloaded a custom ROM from the internet called evo_x2.1 (evo_x2.1.zip) which contains the following files:
META-INF (folder)
system (folder)
installbusybox (file)
Normaly this file is supposed to be put on /sdcard and update the system partition only from recovery mode.
But I have a question: Can I edit my PDA file mentioned above by inserting this ROM in it? (so that when I flash this firmware with odin into my phone I will no longer have to update it with this ROM separately afterwards, manually)
I tried to create a system.img which contained the files included in the ROM file and replaced the system.img in the PDA file with the system.img I just created from the ROM file.But when I try to flash the PDA with Odin, it crashes while analyzing the file.
NOTE: there is no md5 hashsum at the end of the PDA so there is no problem concerning the integrity of the file.
Thank you, and any observations are welcomed.
Click to expand...
Click to collapse
It doesn't quite work like that, you can create your own Odin flashable file(.tar.md5) containing the custom ROM, but it isn't as simple as just pasting the system.img into the .tar.md5.
Here are some threads for extracting Odin files and for creating your own .tar.md5 using the custom ROM file.
This thread is for correctly extracting the existing .tar.md5:
https://www.rwilco12.com/forum/showthread.php?tid=74
This thread is for creating your own Odin flashable .tar or .tar.md5:
https://www.rwilco12.com/forum/showthread.php?tid=92
Sent from my LGL84VL using Tapatalk

Categories

Resources