[Tool][[windows] Make CWM Recovery .img's into .tar.md5 odin flash-able files 1 CLICK

Search This thread

gggg

Senior Member
Jun 18, 2012
374
26
You can change the bat file. Modify the input files and the output name if you want. Just make sure the output name is modified in all the lines.

You can also use a variable so you only have to set the output name once. For example,

Code:
@echo off
set tarname="M919_FNB4_Modem"
bin\tar --group=1 -H ustar -c NON-HLOS.bin modem.bin > %tarname%.tar
bin\md5sum -t %tarname%.tar >> %tarname%.tar
bin\mv %tarname%.tar %tarname%.tar.md5
good idea THX

On another thread the OP suggested to use gnu instead of ustar as Format:
Code:
tar --create --format=gnu -b20 --quoting-style=escape --owner=0 --group=0 --totals --mode=644  -f %%~nG.tar %%~nxG
and anoither one here:
Code:
tar -cvf output.tar file1.bin file2.bin file3.img file4.img.ext3 ...
Which solution should be used in which situation ?
 
Last edited:

brilliant_smart

Senior Member
Oct 27, 2011
52
4
Bauchi
Ok so i made this tool for personal use, but i saw a lot of people wanted this, so here it is

Step 1. Download it from ATTACHMENTS
Step 2. Decompress it to a folder
Step 3. Download your recovery for your SAMSUNG device from here
http://www.clockworkmod.com/rommanager/
Step 4. Rename it to "recovery.img" then move it to the folder you decompressed the tool at earlier
Step 5. Open the "Runme" file and theres your recovery.tar.md5 File ready to flash with odin

please if you used my tool give me some credit and relink to this page as the tool you used to make the file
Rate this thread and press the thanks button

very nice work, thanks
 

mai77

Senior Member
Nov 16, 2011
1,431
581
improvement

Edit Runme.bat file and change tar command ustar to gnu, like this

bin\tar -H ustar -c recovery.img > recovery.tar

change it to

bin\tar -H gnu -c recovery.img > recovery.tar

save file and run it.

It worked for me and installed CWM img file like a charm....


thanks ! now the file gets generated ! (won't flash here tho)


<ID:0/004> Added!!
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> recovery.tar.md5 is valid.
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/004> Odin v.3 engine (ID:4)..
<ID:0/004> File analysis..
<ID:0/004> SetupConnection..

and then nothing. But that is unrelated to the OP post I guess.
 
Last edited:

ShinakoX2

Member
Jul 8, 2014
24
2
Worked, but no Touch?

The .bat file worked for me after modifying the first line with "bin\tar --group=1 -H ustar -c recovery.img > recovery.tar"

I was then able to flash the CWM.tar via Odin 3.07 on my GS3. However, the CWM.img file I downloaded was 6.0.4.5 touch version, and after flashing the .tar I only have the normal non-touch CWM version.

I don't really mind much because I found accidental swipes on the touch version to be annoying, but has anyone else had this issue?
 

stan210

Senior Member
Jul 26, 2011
71
3
Great tool! I bricked my phone, and with your tool, I was able to repair it!! For me, the tip from gIMpSTa (post 23) solved the error while executing your script.
 

shadowhacker27

Senior Member
Mar 22, 2009
229
15
39
NYC
www.actualtecnologia.com
I just fixed my galaxy note edge from a failed CF Auto Root operation that ended with the ""Firmware upgrade encountered an issue. Please select recovery mode in Kies & try again." error. Thanks a lot. Extracting the .tar.MD5 file inside CF Auto Root, taking the Recovery.img from there and putting it inside the folder with the tool on the main post, then running the RunMe application, creating the recovery.tar.MD5 file and flashing it through Odin in Download Mode really helped me! Thanks a lot. Hope the weird step by step I just described can help some people with problems to find the fix.
 

Nihilian

Member
Oct 22, 2012
46
22
Does this tool only work for recovery? What if I convert a dumped system.img or boot.img and flash with odin?
 

mattish.91

Senior Member
May 24, 2010
271
39
Stockholm
www.mspot.nu
I had som serious issues with this tool and i forced it to create tar.md5 it using the exact path to the bin\* and this worked for me. Edited Runme to look like this:
C:\aaa\bin\tar --group=1 -H ustar -c recovery.img > recovery.tar
C:\aaa\bin\md5sum -t recovery.tar >> recovery.tar
C:\aaa\bin\mv recovery.tar recovery.tar.md5

Hope this helps for any one
 

ahero123a

Senior Member
Aug 3, 2013
79
7
i can't build cwm. bug: C:\Users\Administrator\Desktop\MtkDroidTools\backups\RAINBOW-LITE_150525_ForFlashtoolFromReadBack_150804-164958\MT6582_Android_scatter.txtcopying is complete
-- preloader.bin ...it is copied ... cut OK
-- MBR ...it is copied
-- EBR1 ...it is copied
-- pro_info ...it is copied
-- nvram.bin ...it is copied
-- protect_f ...it is copied
-- protect_s ...it is copied
-- seccfg ...it is copied
-- uboot.bin ...it is copied
-- boot.img ...it is copied
--- ERROR :No find KernelGZ
--- ERROR :No Split Boot Image
-- recovery.img ...it is copied
-- secro.img ...it is copied
-- misc ...it is copied
-- logo.bin ...it is copied
-- expdb ...it is copied

---------- Post added at 04:54 PM ---------- Previous post was at 04:52 PM ----------

hi bro! can you help me? chip mtk6582 android 5.0
i want have cwm to use Xposed framework
:(
 

froma72

Senior Member
Sep 10, 2012
163
20
I need a recovery.img valid file for i9001 to convert, it's not available on the clockworkmod.com/rommanager.

Resolved.
 
Last edited:

PowSniffer0110

Senior Member
Apr 26, 2010
541
25
Ogden
SO why doesnt this work? I copy the recoveyr over to the folder and it simple says it does not exit. but that is bull **** the file is sitting right in the folder you say, the root folder where you unziped too. So it should be sitting next to RUN ME right?!?!?! Its not working. Windows 8
 

gbmolina

Senior Member
Sep 11, 2012
59
2
Sofia
Does not work with cyanogenmod recovery (cm-12.1-20151007-SNAPSHOT-YOG4PAO333-klte-recovery.img), i renamed it, put it in the same dir, gives me an error.
 

bladefistx2

Member
Aug 18, 2010
16
3
Be'er Sheva
Like a charm

I had som serious issues with this tool and i forced it to create tar.md5 it using the exact path to the bin\* and this worked for me. Edited Runme to look like this:
C:\aaa\bin\tar --group=1 -H ustar -c recovery.img > recovery.tar
C:\aaa\bin\md5sum -t recovery.tar >> recovery.tar
C:\aaa\bin\mv recovery.tar recovery.tar.md5

Hope this helps for any one

This should be changed in the original file
 
  • Like
Reactions: Jamboozlez

Top Liked Posts

  • There are no posts matching your filters.
  • 321
    Ok so i made this tool for personal use, but i saw a lot of people wanted this, so here it is

    Step 1. Download it from ATTACHMENTS
    Step 2. Decompress it to a folder
    Step 3. Download your recovery for your SAMSUNG device from here
    http://www.clockworkmod.com/rommanager/
    Step 4. Rename it to "recovery.img" then move it to the folder you decompressed the tool at earlier
    Step 5. Open the "Runme" file and theres your recovery.tar.md5 File ready to flash with odin

    please if you used my tool give me some credit and relink to this page as the tool you used to make the file
    Rate this thread and press the thanks button
    82
    I had the same error that several others had when trying this out (out of gid_t range). I fixed it by editing Runme.bat and adding --group=1 to the tar line so that it looks like this:

    Code:
    bin\tar --group=1 -H ustar -c recovery.img > recovery.tar

    Great tool, once editing this it did exactly what I needed! Thanks!
    30
    FIX for script errors and not running

    Script is invalid due to `tar` command

    FIX :

    1-right click "Runme.bat" and choose "edit" from menu.
    2-convert second line which is
    Code:
    bin\tar -H ustar -c recovery.img > recovery.tar
    to
    Code:
    bin\tar -cf recovery.tar recovery.img
    3-save file and close notepad.
    4-put recovery.img file in the folder and run "Runme.bat"

    make sure to first remove the existent recovery.tar.md5 from the folder (I don't think it matters but prompt wouldn't come up for overwrite).

    @cabloomi good effort and nice tool, saved me personally the trouble of rebooting every time I have to create a .tar.md5 from a .img, I don't know why you used the tar command in this way though, `man tar` clearly states command `tar -cf archive.tar foo` to create .tar files. Please clear that up for me. Same thing with `md5sum`, if you look up man for it, the command is different.

    EDIT: I attached a file with the script fixed.
    11
    I had the same error that several others had when trying this out (out of gid_t range). I fixed it by editing Runme.bat and adding --group=1 to the tar line so that it looks like this:

    Code:
    bin\tar --group=1 -H ustar -c recovery.img > recovery.tar

    Great tool, once editing this it did exactly what I needed! Thanks!

    How do you do this excatly? Sorry such a noob question.

    Figured it out! Thanks!

    For those who don't know, you can right-click on the "recovery.img" file you moved into the folder you extracted the tool into and open it with cmd (command prompt)(browse for cmd if it's not listed) and then copy the code gIMpSTa wrote above and paste it in the cmd and press enter to send that command and then it's done. A TAR file called "recovery" shows up in the folder you extracted the tool into and you then just use that file in odin! ta-da!
    7
    Very useful, but for win 8.1 x64 the first line in the "runme.bat" will be
    Code:
    bin\tar --group=1 -H ustar -c recovery.img > recovery.tar
    not the
    Code:
    bin\tar -H ustar -c recovery.img > recovery.tar

    Thanks to gIMpSTa