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

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
Multiupload links removed - MU seems to be gone forever. I will repost an unrooted UCKH7 package in the next week along with a modem package - Until then, use the rooted package and then remove:
/system/xbin/su
/system/bin/su
/system/app/Superuser.apk
And then reboot

I have uploaded Heimdall/Odin flashable kernel ,rooted system, and modem images to dev-host. This should be sufficient to unbrick most hosed-up phones, as long as you didn't flash a bad .pit. Note that after flashing this, you might need to wipe data depending on what ROM you were coming from. If you bootloop or things behave wacky, enter 3e recovery (stock kernel means stock recovery) and do a Wipe Data/Factory Reset. If you are reverting from UCKK6 back to UCKH7 you MUST perform this step or wifi will not work. If you're coming from a 100% stock ROM and only using this to gain root, you should be able to keep all your data and not need to wipe.

The kernel is 100% bone stock, the system image is stock except that it is pre-rooted (su binary and Superuser.apk)

I am including the modem in a separate package since that goes in a separate modem slot, and I don't want to reupload a 200+ MB file if I don't have to.

The kernel + rooted UCKH7 system package is here: http://dev-host.org/UWm
Kernel + cache + rooted UCKK6 system package: http://dev-host.org/8LA

Download, extract the package using 7-Zip, which can be downloaded from http://www.7-zip.org/download.html, then either:
1) (Tested on Linux, should work on MacOS) - Extract the tar and flash the components with heimdall from the commandline as follows:
Code:
heimdall flash --kernel zImage --factoryfs factoryfs.img
for the kernel + system package, and:
Code:
heimdall flash --modem modem.bin
for the modem package

I've never had good results with the Heimdall Frontend GUI.

2) (Tested by Jivy26 for kernel + system, untested for modem) - Flash the .tar in Odin. I'm a Linux user, so I have only tested this with Heimdall so far.
Kernel + system package goes in PDA slot I believe, modem package in Phone slot.

If you are wondering why I used 7-Zip to compress the archive:
7-Zip provides better compression ratios than Zip
7-Zip is open source unlike RAR
If it were a zip file, some doofus would probably think it was CWM-flashable and complain that it didn't flash.

Also - great thanks goes to Jivy26 for providing a stock /system dump. Without that it would not have been possible to make the system image or get a kernel dump.

Coming in the next few days - stock unrooted /system package.

Also just added - a param.lfs backup from my device. This is NOT contained in an Odin-flashable .tar file yet, I'll work on cleaning up my packages when I'm feeling better. I came down with a nasty cold a few days ago.

UPDATE:
creepyncrawly has written an EXCELLENT step-by-step guide for flashing this with Odin. The guide is at:
http://forum.xda-developers.com/showthread.php?t=1313659

In addition, he posted an Odin-flashable tar package for just the stock kernel, for those who want to do a ! removal. I have mirrored the file (I don't trust Dropbox for long-term hosting) at http://www.multiupload.com/MD7SMMNG24 - his original post is at http://forum.xda-developers.com/showpost.php?p=18535109&postcount=174
 

Attachments

Last edited:

serialtoon

Senior Member
May 25, 2006
926
116
0
*If it were a zip file, some doofus would probably think it was CWM-flashable and complain that it didn't flash.*

LOL! Enough said right there. Thanks Ent!
 

dayv

Senior Member
Sep 7, 2010
685
135
0
If one was to add the correct pit file to your package would that fix a bad pit flash, as well as fix if one had messed up partitions?

They would be useful for flashing back from cm7 wouldn't it? Or am I completely off?

Sent from my SAMSUNG-SGH-I777 using XDA App
 

jivy26

Inactive Recognized Developer
Aug 7, 2010
1,824
1,115
0
Virginia Beach, Va
If one was to add the correct pit file to your package would that fix a bad pit flash, as well as fix if one had messed up partitions?

They would be useful for flashing back from cm7 wouldn't it? Or am I completely off?

Sent from my SAMSUNG-SGH-I777 using XDA App
Flashed from CM7 using just the PDA
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
With a good .pit file, yes it could recover from a bad .pit flash.

As far as going back/forth to CM7 - I believe that differences in architecture between the original GS and the GSII (mainly no FSR/RFS proprietary modules) make going to/from CM7 much less painful.
 

dayv

Senior Member
Sep 7, 2010
685
135
0
thank you for all your work and for educating me. I will make sure and hit the thanks button next time I'm on a PC.

Wish we could hit thanks button from xda app.


Sent from my SAMSUNG-SGH-I777 using XDA App
 

Drew489

Senior Member
Aug 21, 2010
527
26
0
New Hampshire
Flashed w/ Odin...stuck in a boot loop. Any other suggestion? I had CM7 on there but had no sound when making calls. Tried to go back to stock...SOL.

Had the phone 9 hours and haven't been able to make a single call yet.
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
Flashed w/ Odin...stuck in a boot loop. Any other suggestion? I had CM7 on there but had no sound when making calls. Tried to go back to stock...SOL.

Had the phone 9 hours and haven't been able to make a single call yet.
Enter recovery (this kernel has stock 3e recovery) and wipe data/factory reset.

Power off (may need to battery pull), then:
Hold VolUp+VolDn
Push Power until the screen turns on
Let go of Power, keep holding VolUp+VolDn until you're in recovery
 

mjgspr95

Senior Member
Mar 3, 2009
626
83
58
Thanks for the Kernel work!
Will it hurt anything if I'm already rooted and SU'd with other kernel method or should I factory reset? Also out of curiousity will sgs kernel flasher work?
 

drawde40599

Senior Member
Aug 11, 2010
5,322
1,966
253
not rooted

do u have a version for odin without the root ? im looking for 100% stock out the box rom ? (future warranty purposes ) thanks
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
Thanks for the Kernel work!
Will it hurt anything if I'm already rooted and SU'd with other kernel method or should I factory reset? Also out of curiousity will sgs kernel flasher work?
No, shouldn't hurt anything. Should only need to wipe if coming from a significantly different ROM such as CM7 or an I9100 ROM.

do u have a version for odin without the root ? im looking for 100% stock out the box rom ? (future warranty purposes ) thanks
Yes, but I figured this would be more popular and uploading one of these takes an hour. I'll put up the unrooted stock in a day or two as I'm doing kernel work. However it's easy enough to unroot, just remove the two following files:
Code:
/system/app/Superuser.apk
/system/xbin/su
Not able to access the download site, could you please attache here?
It's WAY larger than XDA's attachment limit, sorry, no can do.
 

Haloruler64

Senior Member
Aug 11, 2010
2,206
387
0
Daly City
Hey kids! Don't know if anyone here knows me, but I am an ex avid Captivate user. But I've been out of the game for so long (exploring webOS and BBOS7) that I am very behind. Anyone kidn enough to post a link to the newest Odin? Also, what slot do .tar files go into? The first one, PDA?

EDIT: Opened the file, definitely PDA :p Still, anyone have a good link to a working Odin? I remember at one time some Odin versions worked really badly, and I used the original 1.00 but I heard there is a 2 and I'd prefer to use that with this new phone.
 
Last edited: