Flashing GT-S5570 from brick to CyanogenMod

In short, here you will find steps after GT-S5570 Android phone was resurrected with RiffBox. Initially, Samsung Galaxy Mini was flashed with wrong firmware. Resurrection went smooth without problem and it was possible to switch it to the download mode. And finally, my goal was to install CyanogenMod 7.2 custom ROM.

This post shows my unbrick procedure for Samsung Galaxy mini phone. Luckily I have RiffBox so I can back in case of hard bricking. If you decide to follow and flash, you do so at your own risk. www.redips.net accepts no responsibility for any consequences if you choose to proceed.

Main tool for flashing Samsung devices is Odin, a Windows application (v4.38). Odin can be easily found and download. I also prepared a list of all files (firmware, boot loader, recovery image) used in my case:

Name / Link Size [MB] Description
S5570XXJL9_bysamsdroid.rar 115 2.2.1 Froyo Firmware (first link on the page)
GT-S5570_FWD_ S5570JVKT1_S5570OJVKT1_ S5570XWKT2_S5570JVKT1.rar 120 2.3.6 Gingerbread JVKT1 Firmware
recovery.tar.md5 7 Clockwork Mod-Lilg v5.0.2.7
tass-recovery-cwm.tar 6.92 Clockwork Mod Recovery v4.0.0.5
ARM11boot_GT-S5570.tar 0.3 Gingerbread boot loader for S5570
cm-7.2.0-tass.zip 85.21 CyanogenMod for Samsung Galaxy Mini – tass
gapps-gb-20110828-signed.zip 6.11 Google Apps

OK, first step was to back phone to life and I flashed stock Froyo 2.2.1 ROM. S5570XXJL9 stock ROM was downloaded from samsdroid.com and it consists of several files:

OPS   ->         105   TASS_v1.0.ops
BOOT  ->   1.986.646   APBOOT_S5570XXJL9_CL816096_REV02_user_mid_false.tar.md5
PHONE ->  18.933.830   MODEM_S5570XXJL9_CL816096_REV02.tar.md5
PDA   -> 205.547.604   CODE_S5570XXJL9_CL816096_REV02_user_mid_false.tar.md5
CSC   ->   4.956.244   CSC_S5570SERJL9_CL816096_REV02_user_mid_false.tar.md5

I launched Odin, select OPS, BOOT, PHONE, PDA and CSC files and click on “Start” button. Phone rebooted normally with Froyo firmware. At this step, phone should be fully functional. CyanogenMod can be installed only after installation of CWM recovery and CWM can be installed only on Gingerbread. So, next step is upgrading phone to the Gingerbread.

I downloaded S5570XWKT2 – Gingerbread 2.3.6 firmware and set the following files in Odin (OPS file was the same as in previous step):

BOOT  ->   2.191.445   APBOOT_S5570JVKT1_CL703231_REV02_user_low_true.tar.md5
PHONE ->  18.821.190   MODEM_S5570XWKT2_CL698112_REV02.tar.md5
PDA   -> 221.266.003   CODE_S5570JVKT1_CL703231_REV02_user_low_true.tar.md5
CSC   ->   7.475.264   GT-S5570-MULTI-CSC-OJVKT1.tar.md5

This time I was not so successful. Odin stopped with the following message:

Download Start...
<0> Create File...
<1> StartThread Detected : 1
<2> StartThread Detected : 0
<3> StartThread Detected : 0
<4> StartThread Detected : 0
<5> StartThread Detected : 0
<6> StartThread Detected : 0
<7> StartThread Detected : 0
<8> StartThread Detected : 0
<1> setup connection...
<1> odin mode.. check plcatform verification.
<1> VerifyPlatform:V0, P0,R0
<1> START!!!
<1> set download environment.
<1> big partition size!!
<1> big partition size!!
<1> big partition size!!
<1> big partition size!!
<1> big partition size!!
<1> mibib download..
<1> 1/9 Finished.
<1> qcsbl download..

and on the phone was displayed ONW UPDATE FAIL error:

=============================
Name  : cache
Start : 1888
Num   : 116
ID    : 24
Attr  : 0x00001101
=============================
samsung_bml_format FAIL: 90220000
ONW UPDATE FAIL!!!

After this flash attempt, phone is not booting to Froyo but it was possible to enter to download mode. I tried flashing again other Gingerbread firmware but it stopped with the same error message. Just to note that I couldn’t switch phone to stock recovery mode from beginning. After pressing HOME + POWER for a while, phone displayed only “Samsung” logo and stuck. So, the current situation was a Froyo firmware with failure upgrading to Gingerbread and phone no longer boots. I downloaded recovery.tar.md5 from yagyagaire.blogspot.com select as one package with OPS file and flash it to the phone. This time phone boots to Froyo, but was still impossible to enter to the recovery mode.

So, I switched phone to download mode and I tried to upgrade to 2.3.6 version and I got the same “ONW UPDATE FAIL” error. This time I downloaded Gingerbread boot loader ARM11boot_GT-S5570.tar, set in Odin as BOOT and flash the phone. Well, this is tricky because flashing boot loader can hard brick the phone (so be very careful). In my post Flashing GT-S5570 from brick to stock firmware you will find list of bricks that happened after ARM11boot_GT-S5570.tar was flashed. When phone is hard bricked (dead, black screen, no life signs …) Odin is not of much help. Only JTAG repair (with RiffBox, GPG-JTAG, Medusa …) can return the phone from the land of dead. All the time my phone was connected with USB cable to PC. This may be important because when phone detects USB connection it will somehow start up (not sure of this but similar notice is written in RiffBox manual for S5570). Here is post from Yagya (Yagya is a Samsung Galaxy Mini expert) where is explained how to fix “ONW UPDATE FAIL” error with flashing ARM11boot_GT-S5570.tar file:

http://androidforums.com/5020540-post7.html

Anyway, after flashing ARM11boot_GT-S5570.tar over Froyo, phone will not boot any more – dark grey screen (screen is not completely turned off), but the phone will go to the download mode. This time Gingerbread flashing was finished with success. Now phone has 2.3.6 firmware and it was possible to install CWM. From the same yagyagaire.blogspot.com download page, I downloaded Clockwork Mod Recovery v4.0.0.5. Once again phone was switched to the download mode, checked “One package” checkbox and selected tass-recovery-cwm.tar file. After flashing, phone was able to go to recovery mode with HOME + POWER key combination and I could make three magic wipes: factory reset, cache and Dalvik. So, next step is to download CyanogenMod, gapps and copy to the SD card:

89.346.756   cm-7.2.0-tass.zip
 6.409.759   gapps-gb-20110828-signed.zip

OK, phone was rebooted to recovery mode and installed CyanogenMod 7.2 and gapps. Unfortunately, instead of boot to CyanogenMod the phone was caught in bootloop. Luckily, I found, Erum Shakils Youtube video. There was shown that 3-wiping (factory reset, cache and Dalvik) + repeated CyanogenMod installation should get rid off bootloop. Here is the video:



This was helpful in my case and I finally had CM7 on GT-S5570. After boot to CyanogenMod, I was surprised with “Please insert a SIM card” message although SIM card was present. Well, Phone was SIM locked also, so I went through unlocking procedure and that can be read in my next post Unlock GT-S5570.

13 thoughts on “Flashing GT-S5570 from brick to CyanogenMod”

  1. Sir, i’m in a tragic situation. Pls help…

    I rooted my galaxy mini pop plus (s5570i with gingerbread 2.3.6) and installed clockworkmod and i successfully did complete nandroid backup. Later unknowingly i installed rzRecovery. After that my phone does not boot. It stucks at samsung android logo. I am able to enter into cwm but when i try restore my backup it says error mounting /system. Is my phone bricked? Is there any solution? Kindly help

    note: Odin4.3 does not detect my phone,BUT odin3 does

  2. @Thenga – First your phone is not hard bricked and that’s good. You are able to enter to CWM and Odin can detect it. Next, S5570i model is not the same as S5570 so I don’t have exact answer how to recover your phone. My advice would be to find an answer or post a question on XDA Developers forum. This forum was my first knowledge source in case of fixing S5570 phone and there you will find a lot useful information.

    May the Force be with you!
    ;)

  3. my android s5570 just until here help me….

    Create File…
    StartThread Detected : 1
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    setup connection…

  4. @Budy – You should switch S5570 phone to the download mode with “volume down + home button + power” key combination. From your output, it seems that phone is switched to the RAM dump (ARM9) mode and it can’t be flashed from this state. Please see my post S5570 and OpenOCD where you can read more about your phone output.

  5. Hello,
    I have mini with random restart problem.
    I have try flash stock rom, custom rom and even froyo stockrom.
    But it doesn’t solve my problem.
    When in froyo, I flash it to stock 2.3.6 via odin, but the proses was stuck in the middle (at 6/8 bla bla bla).
    Then I close the odin, plug out the phone, turn it off and restart my pc.
    But when I turn on my mini, it just appear black screen (backlight is on, but nothing displayed).
    What I have to do to repair it??

  6. @helmi – It seems that phone shows some kind of activity (black screen with back light) and that can be a good sign. Try to reboot phone to the “download mode” and flash a good proven ROM (for your case). If you are not able to switch the phone to the download mode then you have a problem and the reason is broken boot loader. Boot loader recovering is only possible with phone disassembling and soldering connector to the JTAG pads on the motherboard. If you haven’t tools and JTAG module (like RiffBox) then the best option is to visit nearest phone service.

  7. Thank you so much for this info, I have been trying to roll back my 4.1.1 Install for months and nothing worked until following your tutorial, XDA was bloody useless.

  8. thanks for this but ive come across a problem when trying the initial unbrick:
    i correctly put all the files into odin and clicked start but it freezes at mibib?
    in the message box it says a bunch of stuff and ends with big partition size!! 5 times
    and finally ‘ mibib download..’
    Ive left it for ten minutes and still nothing so can you please help???

  9. sir i have a problem with galaxy mini that only shows black light on screen and detected by odin but stuck at setubp connection.please told me how to fix it.

  10. Hello sir, I am in very critical situation .
    Yesterday I rooted my galaxy mini GT-S5570 after that i tried to install custom ROM but i failed while installing that I got message that “aborted” so after that i cant start ma device it just stuck on the first screen of galaxy mini . and when i go to androide recovery mode by pressing home+power button it will open that mode but it displays message that “E:unable to mount sysem”

  11. I successfully installed gingerbread 2.3.6 a year ago…. now I installed clockworkmod recovery and tried installing a 4.2.1 ….now my phone doesnt active… when tried to put in download mode theres nothing in the screen and odin detects but cant install firmware…

  12. help me…my s5570 i was wrong flash with odin 1.85 and OS in my s5570 is galaxy young but not perfect (touch screen not active)….now my s5570 cant detect with odin 4.38…what sould i do???…ty be 4

  13. Guys, this post is published only as information and to show my way how phone is recovered. As I don’t own this phone any more, I can’t respond with some quality replys – only with general advises.

    So, with this in mind, comments for this post will be closed.
    Cheers!

Comments are closed.