[Heimdall][Odin][Stock][Root]UCKH7/KK6 Return/Unbrick to Stock (or Root)

deom2i

Senior Member
Jul 28, 2009
593
94
0
Here is the stock kernel, extracted from the stock unrooted package in the OP, in an Odin flashable .tar, StockKernel-PDA.tar (Dropbox)

Created the tar file in Android Terminal Emulator on my phone. Flashed it twice successfully on my phone. Verified with CPU Spy:

Linux version 2.6.35.7-I777UCKH7-CL503881 ([email protected]) (gcc version 4.4.0 (GCC) ) #2 SMP PREEMPT Sat Aug 27 04:53:41 KST 2011

I'm thinking this would be a good addition to the first post, as a few people may need it occasionally.
Mate, thanks for the kernel.

My phone gets error when i try to flash this kernel via odin and also after the error i download mode image change to phone with pc!!
If i flash custom kernel download mode get to normal but cant go to recovery and get samsung boot stuck....please help!!:crying:
 

Gforce083

Senior Member
Dec 21, 2011
67
9
0
Nashville
I need help, no other way to say it. First let me just say I've been at this for 5 hours now, got my i777 softbricked and "saved" it thanks to this thread.

It all started on my Mac using Heimdall where I flashed Zetomax kernel which worked. However, I then somehow got the phone locked and it wouldn't boot past the CWM page. Through more forum reading, I came across this thread, dusted off the PC and through Odin and these files I got the phone working again w/root.

This is my wife's phone and my plans where to install Shostock 3 or SuperNexus so she could get her Jelly Bean on. Well, after installing the "UCKH7 + root" image on the device, I can no longer get Heimdall to recognize it on my mac. I will mount the internal and external storage drives but terminal commands will give me a "failed to connect to device" message and the GUI will say it's trying to dump the PC looking to mount usb storage, or something along those lines.

Also, when attempting to install the SuperNexus zip image via the e3 recovery I get signature errors and it won't install the rom. I'm going to assume that this is because I'm on a stock kernel?

If that is the case, how does one suggest I install a kernel with CWM or another recovery system so that I can install custom roms? I've tried mobile odin (lite), but I've failed to locate any .tar kernel files, nor do I know how to create a .tar file from the zImage, maybe someone can help there? I also can't install a kernel via zImage through Heimdall because like I mentioned, it no longer recognizes the device.

I've read and searched for hours now, I can't find the solution. I've successfully hacked and loaded roms on my HP Touchpad, HTC Aria, GNex, and Nexus 4... Samsung is killing me!
 

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
If that is the case, how does one suggest I install a kernel with CWM or another recovery system so that I can install custom roms? I've tried mobile odin (lite), but I've failed to locate any .tar kernel files, nor do I know how to create a .tar file from the zImage, maybe someone can help there? I also can't install a kernel via zImage through Heimdall because like I mentioned, it no longer recognizes the device.
Follow the directions in the top link in my signature. It should answer all your questions.

By the way, mobile odin will recognize the zImage file to install a kernel. You should go to the original mobile odin OP and read about it's features.
 

Gforce083

Senior Member
Dec 21, 2011
67
9
0
Nashville
Follow the directions in the top link in my signature. It should answer all your questions.

By the way, mobile odin will recognize the zImage file to install a kernel. You should go to the original mobile odin OP and read about it's features.
Thanks. I was actually able to flash the Zedomax kernel w/ CWM via Odin and that solved my issues. I did read the original mobil odin OP and saw others saying zImage needed to be repacked into a .tar. However, this is not the case according to you.

I now have the device running SuperNexus 2.0 and may give Shostock a try to see which rom my wife will prefer! Thanks again.
 

MWTTRON

Member
Apr 27, 2012
49
6
0
Soft Bricked I777 Abdroid 4.3

Follow the directions in the top link in my signature. It should answer all your questions.

By the way, mobile odin will recognize the zImage file to install a kernel. You should go to the original mobile odin OP and read about it's features.
Creepyncrawly,
I singled you out as I tried all of your tricks and many of them have worked in the past.
This is my plight...
My SGH-I777 ATT was updated to CWM 6.x (Android 4.3 Compatible), and the latest CM nightly was Flashed. It worked for a few weeks then all of a sudden it crashed after trying to use the Stock Camera. { I know my dumb mistake as I had already replaced it with Cymera (which works well)}. Anyway I have tried to recover my S2 since then and cannot seem to get it to REVERT back to anything earlier than A4.3...
I can even flash a Clockwork Mod Recovery 5.4 but then although it will go to the recovery menu nothing works. I select ANY option and the screen blanks out, well blanks out with the CWM Top hat logo, but nothing happens. then when I touch the power button it goes back to the menu. This happens no matter which selection I make.
I can boot to download and have flashed a few different Stock ROMS, But they do nothing. I mean wont boot. I got the boot loader partial working I think that is why I can get to the recovery screen.

I can't seem to get the PARAM file from your signature to download as I was going to try and flash that next. I can't seem to overcome the NEW architecture of Android 4.3.
I can't find a good TAR file for CWM 6.x. I was thinking if I could get back to a working CWM (4.3based) then I could re-flash from zip a ROM for A4.3...
I am at a loss for what to try next! Ugh I hate that frustrating feeling...

I appreciate all you do and thank you for any input you can give...
 

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
Creepyncrawly,
I singled you out as I tried all of your tricks and many of them have worked in the past.
This is my plight...
My SGH-I777 ATT was updated to CWM 6.x (Android 4.3 Compatible), and the latest CM nightly was Flashed. It worked for a few weeks then all of a sudden it crashed after trying to use the Stock Camera. { I know my dumb mistake as I had already replaced it with Cymera (which works well)}. Anyway I have tried to recover my S2 since then and cannot seem to get it to REVERT back to anything earlier than A4.3...
I can even flash a Clockwork Mod Recovery 5.4 but then although it will go to the recovery menu nothing works. I select ANY option and the screen blanks out, well blanks out with the CWM Top hat logo, but nothing happens. then when I touch the power button it goes back to the menu. This happens no matter which selection I make.
I can boot to download and have flashed a few different Stock ROMS, But they do nothing. I mean wont boot. I got the boot loader partial working I think that is why I can get to the recovery screen.

I can't seem to get the PARAM file from your signature to download as I was going to try and flash that next. I can't seem to overcome the NEW architecture of Android 4.3.
I can't find a good TAR file for CWM 6.x. I was thinking if I could get back to a working CWM (4.3based) then I could re-flash from zip a ROM for A4.3...
I am at a loss for what to try next! Ugh I hate that frustrating feeling...

I appreciate all you do and thank you for any input you can give...
First, I don't understand your terminology. You talk about flashing ClockworkMod versions, but I777 does not have a separate recovery partition, and recovery is built into the kernel. Are you referring to flashing kernel with that version of CWM? Confused.

If the power button does not work in CWM, then you probably have to use the home softkey to select, and the back softkey to return.

I don't flash any AOSP firmware. I'm not sure if CyanogenMod changes things within the partition tables, or what. Someone with experience with CM and AOSP in general should jump in and help.
 

MWTTRON

Member
Apr 27, 2012
49
6
0
First, I don't understand your terminology. You talk about flashing ClockworkMod versions, but I777 does not have a separate recovery partition, and recovery is built into the kernel. Are you referring to flashing kernel with that version of CWM? Confused.

If the power button does not work in CWM, then you probably have to use the home soft key to select, and the back soft key to return.

I don't flash any AOSP firmware. I'm not sure if CyanogenMod changes things within the partition tables, or what. Someone with experience with CM and AOSP in general should jump in and help.
OK Restated... I flashed SGH-I777_ClockwworkMod-Recovery_5.0.2.3.tar just now Via Odin. It passed
I can get to recovery and download.
Thank you for the tips about the soft keys. I forgot them completely!

The phone wont boot. I tried to get to my SD card but it cant mount the SD card or emmc partition.

I just re-flashed the zedomax root stock kernel .. It Passed. Now CWM see the SD card as Internal... But I still can't flash as emmc is un-mountable..
I still can't boot passed the splash screen (screwy zedomax I9100 with the Triangle).
I can get to Recovery and download but can't seem to flash anything. emmc still wont mount...

This has got me really flustered... Unfortunately I am only a noobie with Linux so I am depending on you MASTERS for help! :D
<wiping my brown nose off> \
Thanks again for your time! I know if you are like me this is more fun than a cross word puzzle!

Can you recommend a good TAR to flash my I777 with that might actually work?
Thanks Again
 
Last edited:

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
OK Restated... I flashed SGH-I777_ClockwworkMod-Recovery_5.0.2.3.tar just now Via Odin. It passed
I can get to recovery and download.
Thank you for the tips about the soft keys. I forgot them completely!

The phone wont boot. I tried to get to my SD card but it cant mount the SD card or emmc partition.

I just re-flashed the zedomax root stock kernel .. It Passed. Now CWM see the SD card as Internal... But I still can't flash as emmc is un-mountable..
I still can't boot passed the splash screen (screwy zedomax I9100 with the Triangle).
I can get to Recovery and download but can't seem to flash anything. emmc still wont mount...

This has got me really flustered... Unfortunately I am only a noobie with Linux so I am depending on you MASTERS for help! :D
<wiping my brown nose off> \
Thanks again for your time! I know if you are like me this is more fun than a cross word puzzle!

Can you recommend a good TAR to flash my I777 with that might actually work?
Thanks Again
First, stay away from anything from zedomax or his sgsII root web site. There have been too many people that have had problems with his products.

Flashing any custom kernel (not just zedomax) with Odin (or Heimdall) will cause the yellow warning triangle boot screen. Flashing any stock kernel will clear it. Thus, flashing back to stock will clear it. Flashing anything with either Mobile Odin, or ClockworkMod Recovery will not cause the warning triangle.

The kernel containing CWM 5.0.2.3 is a Gingerbread kernel modified from UCKH7 stock kernel. Flashing that with a later system, I think you said you have Jelly Bean on it, will cause a conflict and will not boot. I'm guessing that the zedomax kernel you flashed was also Gingerbread. You can not use those kernels with ICS of JB system. They will boot into recovery, but will never boot into the system.

You should be able to flash back to stock. Have you tried the full UCMD8 stock firmware flash with Odin? I suggest you use Odin3 v1.85 and flash the UCMD8 full tar from the Download Repository (at the bottom of the page) and see what happens. You should enter recovery and perform a wipe data/factory reset both before and after you flash it. Also, if you still have a custom recovery on there, also wipe cache and dalvik cache before you start.
 

MWTTRON

Member
Apr 27, 2012
49
6
0
First, stay away from anything from zedomax or his sgsII root web site. There have been too many people that have had problems with his products.

Flashing any custom kernel (not just zedomax) with Odin (or Heimdall) will cause the yellow warning triangle boot screen. Flashing any stock kernel will clear it. Thus, flashing back to stock will clear it. Flashing anything with either Mobile Odin, or ClockworkMod Recovery will not cause the warning triangle.

The kernel containing CWM 5.0.2.3 is a Gingerbread kernel modified from UCKH7 stock kernel. Flashing that with a later system, I think you said you have Jelly Bean on it, will cause a conflict and will not boot. I'm guessing that the zedomax kernel you flashed was also Gingerbread. You can not use those kernels with ICS of JB system. They will boot into recovery, but will never boot into the system.

You should be able to flash back to stock. Have you tried the full UCMD8 stock firmware flash with Odin? I suggest you use Odin3 v1.85 and flash the UCMD8 full tar from the Download Repository (at the bottom of the page) and see what happens. You should enter recovery and perform a wipe data/factory reset both before and after you flash it. Also, if you still have a custom recovery on there, also wipe cache and dalvik cache before you start.
Well I think that Zedomax ROM messed me up again! Ugh I could not get to Recovery after that. I re-flashed the Pit file and then the secondary boot loader to no avail. No recovery.
I tried the UCMD8 from your repository (THANKS) but that stopped almost immediately once it got to the IMG file. I verified Check Sum so it was a good download. I will fiddle around with it some more this afternoon and see if I can get it back to recovery. Maybe if I can do that I will be able to flash that UCMD8 Rom. I do appreciate your help and suggestions!
I am still wondering if the fact that I had a 4.3 ROM on there, if that is the culprit!?? I suspect that somehow the write protections or partitions pertinent to the 4.3 architecture are stopping me up!!!??? ???
Do you know of any 4.3 TAR files? I am not skilled with Heimdal but am tempted to try to convert one of the 4.3 zips to a TAR and try that.
or if I can get back to recovery I will try to flash one of those from my SD card. BTW recovery is seeing the SD card as internal. Recovery would not flash any NON 4.3 zips correctly; though they would go until the img then give tons of errors. If I can get back that far I will copy those errors for your perusal.

I just re-read your last post. I am understanding the I cannot REVERT to an earlier version of ROM, IE ICS after JB has been flashed. Well since I did have Android 4.3 flashed then it would follow that I would need a 4.3 ROM??? Maybe that is my whole problem? I seem to get everything to flash except the IMG file. That has to be due to the 4.3 architecture???
Thanks again :D
 
Last edited:

azeem40

Senior Member
Jun 13, 2013
935
235
0
Frisco
Well I think that Zedomax ROM messed me up again! Ugh I could not get to Recovery after that. I re-flashed the Pit file and then the secondary boot loader to no avail. No recovery.
I tried the UCMD8 from your repository (THANKS) but that stopped almost immediately once it got to the IMG file. I verified Check Sum so it was a good download. I will fiddle around with it some more this afternoon and see if I can get it back to recovery. Maybe if I can do that I will be able to flash that UCMD8 Rom. I do appreciate your help and suggestions!
I am still wondering if the fact that I had a 4.3 ROM on there, if that is the culprit!?? I suspect that somehow the write protections or partitions pertinent to the 4.3 architecture are stopping me up!!!??? ???
Do you know of any 4.3 TAR files? I am not skilled with Heimdal but am tempted to try to convert one of the 4.3 zips to a TAR and try that.
or if I can get back to recovery I will try to flash one of those from my SD card. BTW recovery is seeing the SD card as internal. Recovery would not flash any NON 4.3 zips correctly; though they would go until the img then give tons of errors. If I can get back that far I will copy those errors for your perusal.

I just re-read your last post. I am understanding the I cannot REVERT to an earlier version of ROM, IE ICS after JB has been flashed. Well since I did have Android 4.3 flashed then it would follow that I would need a 4.3 ROM??? Maybe that is my whole problem? I seem to get everything to flash except the IMG file. That has to be due to the 4.3 architecture???
Thanks again :D
Umm, I went from JB to ICS without a problem when my phone was giving me problems, so going back to ICS should work. You can even see the post I made about it on Q&A.
 

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
Well I think that Zedomax ROM messed me up again! Ugh I could not get to Recovery after that. I re-flashed the Pit file and then the secondary boot loader to no avail. No recovery.
I tried the UCMD8 from your repository (THANKS) but that stopped almost immediately once it got to the IMG file. I verified Check Sum so it was a good download. I will fiddle around with it some more this afternoon and see if I can get it back to recovery. Maybe if I can do that I will be able to flash that UCMD8 Rom. I do appreciate your help and suggestions!
I am still wondering if the fact that I had a 4.3 ROM on there, if that is the culprit!?? I suspect that somehow the write protections or partitions pertinent to the 4.3 architecture are stopping me up!!!??? ???
Do you know of any 4.3 TAR files? I am not skilled with Heimdal but am tempted to try to convert one of the 4.3 zips to a TAR and try that.
or if I can get back to recovery I will try to flash one of those from my SD card. BTW recovery is seeing the SD card as internal. Recovery would not flash any NON 4.3 zips correctly; though they would go until the img then give tons of errors. If I can get back that far I will copy those errors for your perusal.

I just re-read your last post. I am understanding the I cannot REVERT to an earlier version of ROM, IE ICS after JB has been flashed. Well since I did have Android 4.3 flashed then it would follow that I would need a 4.3 ROM??? Maybe that is my whole problem? I seem to get everything to flash except the IMG file. That has to be due to the 4.3 architecture???
Thanks again :D
Umm, I went from JB to ICS without a problem when my phone was giving me problems, so going back to ICS should work. You can even see the post I made about it on Q&A.
I don't know CM does, as I said earlier. But unless it changed the partition table, which I doubt, then you should be able to flash any version back to Gingerbread.

Maybe you have a corrupt nand? If you are unable to get it to flash stock any other way, try this, in sequence:

1) Download the UCKH7 SBL Bootloader from the Download Repository. Flash it as PDA in ODIN, without ticking Re-Partitioning.

2) Go to this post and download the Tar version of Siyah 2.6.14 Kernel. Flash it in PDA without ticking Re-Partitioning. This is a Gingerbread kernel. Don't need to try to boot at this point.

2) Next, flash the full stock Gingerbread distribution from the Download Repository, I777UCKH7 including the bootloaders and everything, in the PDA slot.
 

MWTTRON

Member
Apr 27, 2012
49
6
0
Umm, I went from JB to ICS without a problem when my phone was giving me problems, so going back to ICS should work. You can even see the post I made about it on Q&A.
You went from JB to ICS that's GREAT!

How about from Android 4.3 reverting back to even JB???

That is the point I was making or more precisely asking about.
I did question the idea about reverting; it is good to know one can revert to stock from up to at least JB.

I am afraid that once one goes to 4.3 though they can not revert.

Maybe I have a corrupted Nand like Creepyncrawley is suggesting.

In any case thank you for your input. That is helping me to feel that either 4.3 is not revertible or I have major corruption...

---------- Post added at 11:56 PM ---------- Previous post was at 11:51 PM ----------

I don't know CM does, as I said earlier. But unless it changed the partition table, which I doubt, then you should be able to flash any version back to Gingerbread.

Maybe you have a corrupt nand? If you are unable to get it to flash stock any other way, try this, in sequence:

1) Download the UCKH7 SBL Bootloader from the Download Repository. Flash it as PDA in ODIN, without ticking Re-Partitioning.

2) Go to this post and download the Tar version of Siyah 2.6.14 Kernel. Flash it in PDA without ticking Re-Partitioning. This is a Gingerbread kernel. Don't need to try to boot at this point.

2) Next, flash the full stock Gingerbread distribution from the Download Repository, I777UCKH7 including the bootloaders and everything, in the PDA slot.
I did the steps as you mentioned...
The first two went through quickly...
The third one 'I used Odin 307' is still stuck at the factoryfs.img... I started this 4 hours ago. lol

I am sure it would have failed almost immediately with Oden 1.85...
I am going to leave it until it finally does fail or until the morning. I am CDT 2333CDT right now.
I am in direct path of the storm in the gulf and 15 miles North of the Gulf so I might be offline Saturday...

Is there a way to Pull the Config tables off my phone. Using Heimdal maybe?
I have run the .pit file about 10 times and it goes through fine so I am wondering if somehow I overwrote the new 4.3 pit and thus locked out part of my RAM?
Just a guess.
I need to find a tar of CWM 6.x. This is the zip I used first recovery-clockwork-6.0.1.0-i777.zip , Then I Flashed cm-10.2-20130819-NIGHTLY-i777.zip. This brought me to "complete" 4.3. Then I put Jelly Bam 10.2.xxx on. They are now saying to flash new kernels so maybe the CM kernel is / was corrupt...

I'm spewing a lot of info I know. too bad I can't do a logcat! LOL

Is there a good site you can recommend to get a crash course in Heimdal? Basically some commands that I can use to maybe see what is going on in my S2? Heck I need to learn it anyway. What better reason than this ! :)
Again thanks for your time.
I have tried other one clicks but am thinking about doing your procedure and then running that one click you have in your repository...
I am really curious now though to see if there is a different partition table for 4.3. I do know people are saying that somehow the RW permissions are being changes to Read Only in error on some of the kernels but I would think that these flashings would overwrite everything!
Thanks Again!
 
Last edited:

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
@MWTTRON,

You should be able to flash back to stock using the sequence I posted. First, I would suggest you try Odin3 v1.85, as at least a couple of people have stated that it worked for them when a later version did not. Second, I would suggest going through the sequence again, and maybe a third time before giving up. Finally, there could be a connection issue between the phone and the computer. I would suspect that before I would suspect a problem on the phone itself. That means: try other USB cables, try other USB ports, even try other computers.
 

MWTTRON

Member
Apr 27, 2012
49
6
0
Finally a ROM flashed

@MWTTRON,

You should be able to flash back to stock using the sequence I posted. First, I would suggest you try Odin3 v1.85, as at least a couple of people have stated that it worked for them when a later version did not. Second, I would suggest going through the sequence again, and maybe a third time before giving up. Finally, there could be a connection issue between the phone and the computer. I would suspect that before I would suspect a problem on the phone itself. That means: try other USB cables, try other USB ports, even try other computers.
Hey creepyncrawly,
I have been out of town on projects so I haven't been playing with my S2.
Just to update you...
I put the battery in and got the Kies errors listed in the posts above. This error does auto go to download although it looks differently.
I went to Odin 3 1.85 and flashed the PIT file, then pulled battery etc. and reflashed the bootloader, then flashed the new Carbon ROM Android 4.3.1...
This gave me a system again! :victory:

In the next few days I will try to return to the latest Factory image for I777 4.2... I will do a complete backup first incase!
I will update you after I try this. I am still baffled as to why I cannot/have not been able to revert to 4.2...

Thanks again for all your help! Your file repository is awesome and I would not be here without it!
YOU ROCK! :D
 

MlucianoEze

Senior Member
Mar 22, 2013
89
7
0
19
Ciudad Autónoma de Buenos Aires
BrickBug Risk?

Hi, I have read about the ICS BrickBug, and I saw (don't know if it's true) the superbrick can happen in Gingerbread too. So, can my phone superbrick with this flash? I have never used Heimdall and I know Odin does a factory reset after flashing. That's why i'm asking.

I have insane chip.

Thank you.
 
Last edited:

Petrit Ziu

Senior Member
Apr 26, 2013
150
6
0
I have prepared Odin3 One-click Downloaders for the Stock non-rooted and Stock + Root packages. Each One-click Downloader also contains the Modem. This will make flashing back to stock or flashing root in Windows easier. These were tested and flashed successfully on my device. These could be posted in the OP for convenience.





How to Use:
  • Download the 7 zip package. Extract the contents of the zip file to a directory on your hard disk drive.
  • Start the Odin3 One-Click Downloader program by double clicking on "I777UCKH7 OCD No BL.exe" or "I777UCKH7 OCD Root No BL.exe".
  • Now Enter Download Mode:
    • With the phone powered off, plug in the usb cable while holding the vol up + vol down buttons (but not the power button).
    • When the warning screen appears, press Volume up to continue into download mode.
  • In Odin, the small edit box in the upper left corner will turn yellow, and say something like [0:COM8]. The number could be different.
  • Click Start. Watch the progress bar advance in green while the message box in the lower area describes the steps. When the flash is finished, the top left larger edit box will turn green and say PASS! and your phone will automatically reboot.
  • Unplug the usb cable from you phone after it boots up. Success.
After doing this my phone is stuck in the Rethink Possible bootloop..
Any help please?
 
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