Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[PROGRAM] Heimdall - Open-Source Cross-Platform Flashing Suite (1.3.2 Now Available)

OP Benjamin Dobell

1st June 2011, 11:13 PM   |  #11  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 563
 
842 posts
Join Date:Joined: Jul 2010
Donate to Me
Heimdall 1.2.0 command line binaries are now available. Debian 32-bit, Debian 64-bit, Windows and OS X (universal) are all available.
The Following 3 Users Say Thank You to Benjamin Dobell For This Useful Post: [ View ]
1st June 2011, 11:30 PM   |  #12  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 563
 
842 posts
Join Date:Joined: Jul 2010
Donate to Me
Quote:
Originally Posted by 4iedemon

Hey Ben,

Do you think its possible to make backups of firmware using this tool? I think it'd be good for those who wants to have carrier-branded ROMS backed up for warranty purposes.

Sorry, I missed this post.

Heimdall has theoretically supported dumping of firmware for quite some time. However all the devices I've ever tested it with mostly send back junk data and eventually stop responding altogether (requiring a manual reboot). As far as I can tell this is simply a result of the secondary bootloaders on devices just not supporting the functionality, however it's possible that the functionality has been finished/fixed for the SGS2.

If someone wants to test out dumping when they test out flashing that would be great. If so I recommend you enable the verbose switch so you have a better idea of what is going on.
The Following User Says Thank You to Benjamin Dobell For This Useful Post: [ View ]
2nd June 2011, 01:16 AM   |  #13  
Senior Member
Thanks Meter: 128
 
1,446 posts
Join Date:Joined: Dec 2008
More
Quote:
Originally Posted by Benjamin Dobell

Heimdall 1.2.0 command line binaries are now available. Debian 32-bit, Debian 64-bit, Windows and OS X (universal) are all available.

Nice, thanks! Would this (theoretically) work with the GUI from v1.1?
2nd June 2011, 07:26 AM   |  #14  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 563
 
842 posts
Join Date:Joined: Jul 2010
Donate to Me
Quote:
Originally Posted by aussiebum

Nice, thanks! Would this (theoretically) work with the GUI from v1.1?

Yeah, you obviously won't be able to use any functionality that isn't available from the GUI though. Because the SGS2 has a few different partitions that aren't accessible from Heimdall Frontend you won't be able to flash to them, however you can still flash kernels etc. no problems.
2nd June 2011, 08:17 AM   |  #15  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 563
 
842 posts
Join Date:Joined: Jul 2010
Donate to Me
OS X users, you will need to download the latest package again. The binaries are the same but I had forgotten to update the kext so that "the interface could be claimed".
2nd June 2011, 08:26 AM   |  #16  
Junior Member
Thanks Meter: 0
 
29 posts
Join Date:Joined: Feb 2007
Code:
$ heimdall print-pit

Heimdall v1.0.2b, Copyright (c) 2010-2011, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Failed to detect compatible device
I installed the latest one in OS X 10.6, restarted, and got the above result. Note that running "adb devices" does show up my SGSII properly.
2nd June 2011, 09:01 AM   |  #17  
elban's Avatar
Recognized Developer
Flag Venice
Thanks Meter: 655
 
965 posts
Join Date:Joined: Jul 2009
Donate to Me
More
Quote:
Originally Posted by winst

Code:
$ heimdall print-pit

Heimdall v1.0.2b, Copyright (c) 2010-2011, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Failed to detect compatible device
I installed the latest one in OS X 10.6, restarted, and got the above result. Note that running "adb devices" does show up my SGSII properly.

is your phone in download mode?

Sent from my GT-I9100 using XDA App
2nd June 2011, 09:38 AM   |  #18  
Senior Member
Flag Vienna
Thanks Meter: 47
 
108 posts
Join Date:Joined: Nov 2009
More
I tried print-pit and dump and ended up with a bunch of "Error -7 whilst receiving packet." print-pit seemed to work fine but was unable to end the session.

Find verbose logs here:
print-pit
dump

For obvious reasons, I'm a little hesitant to try flashing anything
The Following User Says Thank You to jps1974 For This Useful Post: [ View ]
2nd June 2011, 10:38 AM   |  #19  
OP Recognized Developer
Flag Melbourne
Thanks Meter: 563
 
842 posts
Join Date:Joined: Jul 2010
Donate to Me
Quote:
Originally Posted by jps1974

I tried print-pit and dump and ended up with a bunch of "Error -7 whilst receiving packet." print-pit seemed to work fine but was unable to end the session.

Find verbose logs here:
print-pit
dump

Thanks for the details, much appreciated.

The dump log doesn't really surprise me, it's actually better than how it fails on Galaxy S. The Galaxy S downloads a heap (megabytes) of junk, I guess that it's good that it fails immediately.

Quote:
Originally Posted by jps1974

For obvious reasons, I'm a little hesitant to try flashing anything

Haha, no worries.

A few questions though:
  • Does your device reboot after the PIT information is displayed?
  • When you reboot does the phone boot normally or is the connect phone to PC screen displayed?
  • Does "heimdall close-pc-screen" also fail to end the session?

If your device boots up fine (no connect to PC screen) then that should mean the end session packet was received (and interpreted) by your phone no problems. If that's the case then it's possible Samsung have just changed the protocol so no response is expected. It never really made sense to me that you've essentially told the phone you're done and then you still send it a reboot packet.

Alternatively the syntax to end a session may have changed slightly. Someone mentioned a flash counter, maybe I'm supposed to send a packet to update the counter (although I'd rather not anyway).

Without a SGS2 I'm unable to investigate this myself but if someone is able to get me a detailed USB log of flashing with Odin or Kies then I could sort it out. I literally need the 1s and 0s sent to/from the phone. If not then donations towards getting me a SGS2 would be immensely helpful. Thanks again to those of you who have donated.

EDIT: Doh, I just realised I spelt "successful" wrong when Heimdall downloads a PIT file
Last edited by Benjamin Dobell; 2nd June 2011 at 10:51 AM. Reason: Fixed several typos.
2nd June 2011, 10:59 AM   |  #20  
Senior Member
Flag Vienna
Thanks Meter: 47
 
108 posts
Join Date:Joined: Nov 2009
More
Well, I grew some balls and tried a full flash - worked just fine

To answer your questions:

Quote:
Originally Posted by Benjamin Dobell

Does your device reboot after the PIT information is displayed

Nope
Quote:
Originally Posted by Benjamin Dobell

When you reboot does the phone boot normally or is the connect phone to PC screen displayed?

Boots up normally
Quote:
Originally Posted by Benjamin Dobell

Does "heimdall close-pc-screen" also fail to end the session?

Yes, see here
Quote:
Originally Posted by Benjamin Dobell

Without a SGS2 I'm unable to investigate this myself but if someone is able to get me detailed USB log of flashing with Odin or Kies then I could sort it out, I literally need the 1s and 0s sent to/from the phone. If not then donations towards getting me a SGS2 would be immensely helpful. Thanks again to those of you who have donated.

I made a small donation towards your new device, but I'll be happy to help you out if you give me some instructions

By the way, I have to use sudo, otherwise I get this:

Code:
Failed to access device. Error: -3
Thanks for all your work!

Post Reply Subscribe to Thread

Tags
heimdall, odin
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes