Post Reply

[Q] Anybody used Heimdall yet on SGS2?

OP peadarog

14th May 2011, 04:37 PM   |  #1  
peadarog's Avatar
OP Senior Member
Thanks Meter: 17
 
128 posts
Join Date:Joined: Mar 2010
Just like it says in the thread title, I was wondering if anybody -- in particular, any linux users -- had tried using heimdall yet? I'm too new to both the Galaxy family of phones and odin/heimdall to try it myself yet.

thanks.
15th May 2011, 11:32 AM   |  #2  
peadarog's Avatar
OP Senior Member
Thanks Meter: 17
 
128 posts
Join Date:Joined: Mar 2010
This is just a repeat of what I said in the official heimdall thread:


I just tried using it with the SGS2. Nothing radical, since I have zero experience with heimdall and Galaxy phones.

1) I put the phone into download mode, following instructions I got here.
2) I connected the phone to my fedora 11 install (yes, I'm way behind the times!)
3) I ran lsusb and got:
Bus 001 Device 002: ID 04e8:685d Samsung Electronics Co., Ltd
It doesn't mention the words "mobile phone" as I think it does for the S1, but I may be wrong about that.
4) I ran:
heimdall close-pc-screen --verbose
according to instructions earlier in this thread (page 26).
5) I got:
Failed to detect compatible device
18th May 2011, 07:16 AM   |  #3  
Senior Member
Thanks Meter: 42
 
142 posts
Join Date:Joined: Jan 2008
More
Anything new on that?

Would be great for us Linux-Only-Nerdys

Thanks
Ali
18th May 2011, 01:29 PM   |  #4  
Recognized Developer
Flag Melbourne
Thanks Meter: 560
 
842 posts
Join Date:Joined: Jul 2010
Donate to Me
Quote:
Originally Posted by aliander

Anything new on that?

Would be great for us Linux-Only-Nerdys

Thanks
Ali

Sorry guys I don't have a Galaxy S II to develop with so I haven't been able to make the necessary changes to support the Galaxy S II. If anyone has one they want to donate that would be fantastic, but that's probably not all that likely
20th May 2011, 11:38 PM   |  #5  
Recognized Developer
Thanks Meter: 321
 
1,209 posts
Join Date:Joined: Aug 2010
Donate to Me
Quote:
Originally Posted by Benjamin Dobell

Sorry guys I don't have a Galaxy S II to develop with so I haven't been able to make the necessary changes to support the Galaxy S II. If anyone has one they want to donate that would be fantastic, but that's probably not all that likely

I just tested heimdall a bit with the SGSII.
At least, kernel flash works.

Modifications needed:

BridgeManager.h: device ID is 685D not 6601 (maybe add a switch for sgs2)

main.cpp: getUnknown is 131072, not 0 (again, maybe switch)


and it'll work.
I'd also suggest a switch for "--no-reboot" ;)

Let me know if you would prefer a diff or w/e like that..

Disclaimer: I did NOT test this thoroughly, this is AT YOUR OWN RISK - flashing CAN destroy your device.

Kernel flashing does work tho

ps: I'd have prefered giving you a GT-I9100 but that's a little over my budget right now

bad stuff:
x64 linux binary http://www.multiupload.com/A1R7SDUFZM

more bad stuff:
ive put it in a diff cause i'm not so lazy today:

https://github.com/kangsterizer/Heim...f9ce7633679a16
Last edited by bilboa1; 21st May 2011 at 12:07 AM.
The Following 3 Users Say Thank You to bilboa1 For This Useful Post: [ View ]
22nd May 2011, 10:18 AM   |  #6  
peadarog's Avatar
OP Senior Member
Thanks Meter: 17
 
128 posts
Join Date:Joined: Mar 2010
Quote:
Originally Posted by bilboa1

I just tested heimdall a bit with the SGSII.
At least, kernel flash works.

Modifications needed:

BridgeManager.h: device ID is 685D not 6601 (maybe add a switch for sgs2)

main.cpp: getUnknown is 131072, not 0 (again, maybe switch)


and it'll work.
I'd also suggest a switch for "--no-reboot" ;)

Let me know if you would prefer a diff or w/e like that..

Disclaimer: I did NOT test this thoroughly, this is AT YOUR OWN RISK - flashing CAN destroy your device.

Kernel flashing does work tho

ps: I'd have prefered giving you a GT-I9100 but that's a little over my budget right now

bad stuff:
x64 linux binary http://www.multiupload.com/A1R7SDUFZM

more bad stuff:
ive put it in a diff cause i'm not so lazy today:

https://github.com/kangsterizer/Heim...f9ce7633679a16

I have tried compiling this on two different machines -- one Fedora 11 and one Fedora 14. Both result in the same error, and sadly, I'm not experienced enough to figure it out

Here's the badness:


depbase=`echo source/BridgeManager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libusb-1.0 -g -O2 -MT source/BridgeManager.o -MD -MP -MF $depbase.Tpo -c -o source/BridgeManager.o source/BridgeManager.cpp &&\
mv -f $depbase.Tpo $depbase.Po
source/BridgeManager.cpp:57:47: error: ‘kPidGalaxySDownloadMode’ is not a member of ‘Heimdall::BridgeManager’
make[1]: *** [source/BridgeManager.o] Error 1


I'd be grateful for any suggestions, although I fully understand that you all have lives elsewhere!
22nd May 2011, 11:30 AM   |  #7  
Senior Member
Thanks Meter: 234
 
1,922 posts
Join Date:Joined: Jun 2009
More
I think you need to look more up to find the cause, you are surely missing some devel packages
22nd May 2011, 11:52 AM   |  #8  
peadarog's Avatar
OP Senior Member
Thanks Meter: 17
 
128 posts
Join Date:Joined: Mar 2010
Quote:
Originally Posted by godutch

I think you need to look more up to find the cause, you are surely missing some devel packages

I'm sure it's something stupid. On both laptops I have run:

yum groupinstall "Development Tools"
yum install rpmdevtools

I also installed the kernel source rpm.
22nd May 2011, 12:24 PM   |  #9  
Senior Member
Thanks Meter: 234
 
1,922 posts
Join Date:Joined: Jun 2009
More
try installing the libusb-devel packages
22nd May 2011, 12:46 PM   |  #10  
Senior Member
Thanks Meter: 234
 
1,922 posts
Join Date:Joined: Jun 2009
More
Got it there is an error in the patch. I can't make a diff for you but it's easy to change in heimdall/source/BridgeManager.h change the enum section around line 67 like this:

enum
{
kPidGalaxyS2DownloadMode = 0x685D,
kPidGalaxySDownloadMode = 0x6601,
kPidGalaxySInternational = 0x681C,
kPidGalaxySNewInternational = 0x681D,
kPidVibrantCanadaBell = 0x6877
};
Last edited by godutch; 22nd May 2011 at 12:48 PM.

The Following User Says Thank You to godutch For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
heimdall, linux, sgs2
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes