Howto Flash DarkyROM 10.2 Resurrection from Debian on your Samsung Galaxy S

Why this guide if it’s all on DarkyROM Forums?
I’m posting this as I found the guides on the DarkyROM forums confusing, and they all recommend Odin (Pffft! Windows users). If you already have a Darky’s ROM installed, or are coming from a Stock Froyo, it’s easy, just follow the guides on the forum. In fact, before reading how I did it, go to the forums anyway.

This guide is how I got DarkyROM 10.2.2 Extreme Edition installed after a lot of trial and error trying to get rid of Cyanogenmod 7 with a custom kernel. (See my previous post for CM7) This is by no means as in-depth as the official guides, nor can I guarantee it will work for you. As with all ROM flashing shenanigans, you are responsible for your phone, not me.

6 Step Howto Guide

1. Download and install Heimdall CLI HERE

2. Download DarkyROM 10.2 Resurrection and unzip everything all into one directory. HERE

3. Open your terminal and cd to that directory

4. Copy and paste this line: 

heimdall flash –repartition –pit s1_odin_20100512.pit –factoryfs factoryfs.rfs –cache cache.rfs –dbdata dbdata.rfs –primary-boot boot.bin –secondary-boot Sbl.bin –param param.lfs –kernel zImage –modem modem.bin

5. Put your phone into Download Mode (Volume Down+Power Button+Enter)

6. Plug USN cable into computer, then phone, and go back to the terminal and press Enter.

The Whole Story (For those who are about to brick their phone if they don’t read this 😀 )
A few friends on Google Plus were using Darky ROM and singing it’s praises, but I went for CM7 instead as it was easier to to install. I soon realised that I was losing battery every 8 hours, faster with heavy use. I could have tried different kernels and patches etc, but i’d already decided (as I do with Linux) to say goodbye and move on to a “Distro” (ROM) which was recommended and more suited to my needs. Darky’s ROM.

Clockwork Mod and ROM manager
As I was on a rooted phone, and already had CWM installed via my custom kernel, I decided to go for the traditional Darky install via the ROM manager. I downloaded the latest DarkyROM 10.2.2, opened the ROM manager, told it to wipe my phone and install the .zip which had just been downloaded to the root of my internal SD card. The phone rebooted into CWM, I chose Factory reset, wipe cache etc, and chose the It appeared to work, rebooted, and just got the Cyanogenmod 7 boot screen, and that’s where the phone froze. I tried again with the 3-button-techinique, wiped again, reflashed. Same thing. I now had a phone that wouldn’t boot. So I used the 3-button-technique to reflash Cyanogenmod7 (The zip was also on my internal SD card from the last time). CM7 worked.

Bricked (nearly) Phone, Odin and Heimdall and reverting to Stock Froyo
After a lot of downloading and attempted flashes with the 3BT, and ending up with an unbootable phone, I panicked a bit, and went off to Google. I read through the DarkyROM howto but came away even more confused, then found a link to a site that has all the Stock Samsung Galaxy S firmware. I downloaded the Samsung Galaxy S Froyo Firmware, and set off to find a guide about using Odin via USB cable to get my brick phone back to stock.

Odin vs Hemdall
I soon realised that Odin is a leaked application that Samsung uses to flash phones, and is a Windows app. I’m on Debian Squeeze Linux. Next I got wind of a Linux app called heimdall, which even comes with an Odin like GUI frontend called (funnily enough) heimdall-frontend, and there were .deb files. Cool beans methinks, I can flash via USB from Linux. I downloaded the .deb files and installed them with a quick “dpkg -i” All went well, opened it up to check, seems to work.

DarkyROM and Heimdall
Rather than go back to stock straight away, I thought i’d have one last go with Darky’s ROM so I went back to DarkyROM forums and found somebody had posted a Heimdall guide, with screenshots. However, the gui looked nothing like mine, but I thought i’d muddle through. I unzipped the DarkyROM-10.22 package, and found that none of the files i needed were inside. Great! Went back and read some more forum posts, found I may need a version called Resurrection. Downloaded that and found the firmware files inside. I unzipped everything, tried to load the PDA.tar, and Heimdall-Frontend crashed at 99%. I tried again, crashed. In  fact I went through a whole heap of files i’d previously downloaded, and either got “firmware.xml” missing, or the Gui would crash.

Ubuntu and Heimdall-Frontend
I compare Ubuntu to crack cocaine. It’s ok for a quick fix, but you wouldn’t want to use it every day 😀
Ok, just kidding, I don’t want hate mail form hoards of marauding Ubuntu Fanbois, in any case, it saved my ass this time. My daughter’s laptop dual-boots Crunchbang with Ubuntu, so I decided to use Ubuntu as people said Heimdall worked fine on that. And it did. I flashed DarkyROM to my phone, it rebooted……. to the damned Cyanogenmod splash again!!

Stock Froyo ROM
Bugger it, i’m tired, i’ve got an unbootable phone, i’m going back to stock. I unzipped the firmware i had downloaded earlier, flashed it to my phone with heimdall-frontend, the phone booted into stock Froyo, Hurrah!

But!…….. I-need-Darky’s ROM!
What can I say, i’m an install freak, I HAVE to be able to fix something. I can’t just walk away and leave this. I’m serious, I can’t sleep if there is a challenge like this hanging in the air. Distros, databases, web sites, source apps. If Grant Galbraith can haz teh Darky ROM, I can haz it too 😀

Back to DarkyROM forum’s Heimdall guide
I scrolled down, and found that a forum moderator had posted a comand line for heimdall. YES! CLI! I fired up my Debian laptop. Unzipped all the files i saw in that command line into one single directory. Fired up my terminal, copy and pasted the line. Put my phone into download-mode, connected the USB cable, went back to my terminal, crossed my fingers, said a little prayer to Linus, and hit Enter. Bang! the beautiful commands scrolled past, my phone came to life with a gorgeous glow as it’s new lifeblood started to flow into its circuitry. The phone restarted to an corrupted mutlicolour splash. A jittery robot voice stuttered something and it froze. My heart sank, I tried to restart it, I got the horrible dreaded black-screen-of death. My heart sank further as the words echoed through my head “you bricked your phone”, “you had a stock froyo”, “but you had to push it, and you bricked your phone”, “stupid”.  I recalled something on the forum about “Something only Samsung can fix”.

But all wasn’t lost
I took my battery out, replaced and rebooted. I got a beautiful Matrix style splash screen welcoming me to Darky’s ROM, the robot voice… that beautiful robot voice assured me that everything was fine, and I had in fact, successfully installed Darky’s ROM… 10.2 Extreme Edition. It booted.

I am now the proud user of Darky’s ROM 10.2.2 Extreme Edition, and it’s staying that way!


4 thoughts on “Howto Flash DarkyROM 10.2 Resurrection from Debian on your Samsung Galaxy S

  1. I had a strange experience with my Galaxy S the other day. When I picked my new phone on contract (HTC One) it needed a mico sim so the old sim in my Galaxy S was deactivated etc. Strange thing is that when I turned off and restarted the phone it comes up with a puk error code and appears semi-bricked. I'm hoping this howto will get it out of trouble as I need to keep it as a backup.

  2. Well, if you have read the entire article, you'll see I went through a lot of trial and error with my SGS.
    For me, Debian + Heimdall + DarkyROM 10.2.2 Extreme Edition was the way to go. My phone hasn't failed since I wrote this Howto.
    PS: Since you recommended Darky's ROM i've converted a few friends to it as well. Also need to change that link to your omnsproject site.

  3. I had a quite a journey with this one. I downloaded a fairly recent Darky Resurrection and attempted to flash with wineport version of Odin on my mac – no dice as the phone wasn't recognised.

    Next stop was Heimdall (again on my Mac) and it failed to work with the Darky build so I decided to use a stock rom available via the Heimdall site.

    Now this is where it pays to concentrate on what you are doing as I accidentally downloaded a Samsung Note Rom and flashed that. After that failed and I realised I hadn't checked things properly before flashing, I was greeted with the dreaded black screen of death. It appeared I may have a brick on my hands.

    A bit of googling had me applying a fix to get it back onto downlaod mode and I breathed a sigh of relief.

    So lesson learnt on the Mac I headed to my netbook running CrunchBang (Waldorf Dev Build). The install went well and everything seemed to be ok (at the command line and with the GTK frontend) except I was getting a usb error when starting the flash (with the correct Rom this time). From memory I think I found this was a hardware related issue so I was then onto my last resort and back to the iMac where I'm dual booting Ubuntu 12.04.

    My only hassle with installing Heimdall here is that this is a 64bit install and I had to add all those flipping ia32libs to get it working properly.

    Once up and running I used the GTK frontend in Heimdall which I found to be quite straight forward. This time it was a success. Everything is now back to stock and I probably won't look at it again now unless something happens to my beloved new HTC One.

    Anyway, that's all. A great way to while away the hours 🙂

  4. See? I went through all this with the frontend gui, and usign a stockrom etc. Although i didn't use a Mac like you, more or less nearly ended up with a brick.

    This is why I posted the howto on using the CLI. Worked a treat.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s