[HOW-TO]UnBrick the UnBrickable Captivate

5,224 posts
Thanks Meter: 9,893
By AdamOutler, Retired Senior Recognized Developer on 31st August 2011, 02:15 AM
Post Reply Email Thread


After months of research and development, both hardware and software... I'm happy to announce UnBrickable Mod is a matter of modifing your phone once, with a single small wire. From that point on, you can click a button to unbrick. This can even be applied to a phone which is already bricked.


1. Apply UnBrickable Mod to your device:
2. Run UnBrickable Resurrector: This will only work on linux currently. Install Linux or dual boot if you have windows.
3. Run Heimdall One-Click: (or odin3 one-click),
4. repeat steps 2 and 3 with bootloader flashing enabled (Heimdall One-Click has a safety mechanism which requires you to flash once before flashing bootloaders).

You've unbricked the unbrickable captivate... This should not have been difficult. If it was, you should learn teh computer better... Really. And with that said, I'm happy to announce that you no longer have to flash with a fear of bricking.

The HIBL is the key to resurrecting a S5PC110 based processor. I'm going to let Rebellos explain the inner workings of the Hummingbird Interceptor Bootloader. It's really quite amazing. While my work is more hardware and high level tasks like making things into one-clicks, Rebellos' work involves reverse software engineering, assembly language, and more...

Windows32 command line app and drivers
Linux one-click Resurrector:
4SEP11: added 32 bit, miscellanious impovements to visuals
6SEP11: removed additional commands
Attached Files
File Type: zip - [Click for QR Code] (770.5 KB, 22592 views)
File Type: zip - [Click for QR Code] (697.6 KB, 23833 views)
The Following 61 Users Say Thank You to AdamOutler For This Useful Post: [ View ] Gift AdamOutler Ad-Free
31st August 2011, 02:16 AM |#2  
Senior Recognized Developer
Flag Gdańsk
Thanks Meter: 3,469
Donate to Me
Okay, so, what is Hummingbird Interceptor Boot Loader (HIBL)?

Basically: It allows to load any amount of data (limited by size of RAM block, the biggest one single block available is 256MB) through USB connection with PC under any specified address into memory and then execute it.

Technically: It does consist of 2 pieces fused together - BL1_stage1 and BL1_stage2.

Each stage starts from 16bytes (4 ARM WORDs) of secure boot header. In stage1 these are mandatory, in stage2 they can be random (nulled them in my code), so EntryPoint of each stage does start at its 0x10 offset.

BL1_stage1, loaded under 0xD0020000 address, is short code, digitally signed by Samsung. It has been released to break "Chain of Trust" and alter Secure Boot into Non-Secure Boot process. Literally stage1 just do some compare operations and then jumpout to BL1_stage2. (Yes, I also see no point of releasing hardware secured CPU version together with software which is bypassing it's security)

BL1_stage2, must be placed at 0xD0022000 address (it's fused together with stage1 into HIBL, so it's at 0x2000 offset of HIBL.bin) it is unsigned because Secure Boot Context, prepared by iROM (BL0) has been already ignored by stage1.
Its FASM_ARM sourcecode:
This is where the code start real work, it does begin with standard ARM core jump vector table (just to keep stick to standard, these aren't used anyway).
1. It does use I9000 BL1_stage2 functions (init_system) which I linked to it, these are used to init DMC controllers, as to this point code is executing in and working with very tiny, 96KB iRAM space, after calling this function it turns all 512MB of RAM available.
2. Make sure DMC is configured properly (write some value to address 0x40~~ memory space, then read it and compare with previously written)
3. Reinit iRAM heap to the BL0 initial state (to convince it USB dload mode haven't been called yet), by storing and restoring UART pointer only (to keep debug output flowing properly)
4. Call iROM usb_downloader function.
5. Read the address where downloaded data has been placed.
6. Jump into this address.

This, properly used provides similiar debug output (similiar, because its outdated testlog)

�������������������������������������������������� ����������������������
Uart negotiation Error

Hummingbird Interceptor Boot Loader (HIBL) v1.0
Copyright (C) Rebellos 2011
Calling IBL Stage2
Testing BL3 area
iRAM reinit
Please prepare USB dltool with BL3

Starting download...
Desired BL3 EP: 0x40244000
Download complete, hold download mode key combination.

Starting BL3...


Set cpu clk. from 400MHz to 800MHz.
IROM e-fused - Non Secure Boot Version.

It opens infinite capabilities. Instead of SBL to unbrick, Uboot can be loaded, or any armlinux kernel. It's all up to you - XDA Developers.
The Following 29 Users Say Thank You to Rebellos For This Useful Post: [ View ]
31st August 2011, 02:48 AM |#3  
IlluminatedOne's Avatar
Senior Member
Flag Blacksburg
Thanks Meter: 1,360
Donate to Me
Awesome job guys!! Hats-off to you!
31st August 2011, 02:58 AM |#4  
Koizuma's Avatar
Senior Member
Flag East Tennessee
Thanks Meter: 67
Amazing work, very nice job guys!
31st August 2011, 03:32 AM |#5  
bulletproof1013's Avatar
Senior Member
Thanks Meter: 82
Donate to Me
woop woop

Sent from my SGH-I897 using XDA Premium App
31st August 2011, 03:55 AM |#6  
Smasher816's Avatar
Senior Member
Flag Missouri
Thanks Meter: 203
Donate to Me
Amazing work. Glad to see this finally finished and open to the community with a tutorial. I also heard you would be porting this to windows, and i will look forward to that. I have a virtual Ubuntu machine however i can not get adb to work

My dad is also thinking about picking up a $20 infuse, and therefore I would get his old captivate, giving me 2 captivates. If this happens i will defiantly take you up on your $30 offer, and transform one into a super dev phone, and the other my daily phone. Then maybe i can help Rebellos and you with some bootloader development.

But seriusly. Once again amazing work guys
31st August 2011, 04:16 AM |#7  
psycho2097's Avatar
Senior Member
Flag Raleigh
Thanks Meter: 157
Donate to Me
donated to adam. sorry didn't split up between adam n rebellos... adam pls b fair n share... but seriously guys, this is epic appreciate and donate.
31st August 2011, 04:53 AM |#8  

I updated the jar. If you're having problems launching it, it's because I made the Ultimate UnBrickable Resurrector from source from my other project, Heimdall One-Click... I forgot to change something in the manifest at the last minute. Please redownload if it won't launch.

This should work on any device which identifies itself as an S5PC110 .... B/D. Sometimes, if you're lucky, any phone can brick itself in this state.
The Following User Says Thank You to AdamOutler For This Useful Post: [ View ] Gift AdamOutler Ad-Free
31st August 2011, 07:34 AM |#9  
Junior Member
Thanks Meter: 0
When using Virtual box, how will the phone show up on the USB list pre-Download mode download?
31st August 2011, 08:39 AM |#10  
connexion2005's Avatar
Senior Member
Flag Texas
Thanks Meter: 723
Donate to Me
It's honestly easiest if you have the time to dual boot an Ubuntu OS on your current machine. It has a major bug still but I figured out the issue and contacted Adam on the fix for it.
31st August 2011, 09:06 AM |#11  
Junior Member
Thanks Meter: 0
Originally Posted by connexion2005

It's honestly easiest if you have the time to dual boot an Ubuntu OS on your current machine. It has a major bug still but I figured out the issue and contacted Adam on the fix for it.

Yeah... I've spent a good bit messing with it and the settings in VB but it wont detect. (I hope it doesn't have to do with my soldering).

Ill try try the dual booting tomorrow and give it another shot.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes