5,603,729 Members 37,790 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Anybody used Heimdall yet on SGS2?

Tip us?
 
peadarog
Old
#1  
peadarog's Avatar
Senior Member - OP
Thanks Meter 17
Posts: 128
Join Date: Mar 2010
Question [Q] Anybody used Heimdall yet on SGS2?

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.
-----------------------------

SF author and grateful user of:
Rooted Galaxy Nexus, modaco, Titanium Backup, XDA


Those who don't create, donate.
 
peadarog
Old
#2  
peadarog's Avatar
Senior Member - OP
Thanks Meter 17
Posts: 128
Join Date: 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
-----------------------------

SF author and grateful user of:
Rooted Galaxy Nexus, modaco, Titanium Backup, XDA


Those who don't create, donate.
 
aliander
Old
#3  
Senior Member
Thanks Meter 42
Posts: 140
Join Date: Jan 2008
Anything new on that?

Would be great for us Linux-Only-Nerdys

Thanks
Ali
 
Benjamin Dobell
Old
#4  
Recognized Developer
Thanks Meter 544
Posts: 842
Join Date: Jul 2010
Location: Melbourne

 
DONATE TO ME
Quote:
Originally Posted by aliander View Post
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
Heimdall - Open-Source Cross-Platform Galaxy S Firmware Flashing Software
[LISTING] Firmware with Fixed (OS X Compatible) Secondary Bootloader (Sbl.bin)
The Junkheap – Experimental Device Donations

If any of my work interests you and you'd like to support me or help cover the cost of development, donations are very much appreciated. Alternatively you could purchase one of Glass Echidna's apps from the Android market i.e. Anti-Squish.

Google Plus: +Benjamin Dobell
 
bilboa1
Old
(Last edited by bilboa1; 21st May 2011 at 12:07 AM.)
#5  
Recognized Developer
Thanks Meter 297
Posts: 1,144
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by Benjamin Dobell View Post
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
The Following 3 Users Say Thank You to bilboa1 For This Useful Post: [ Click to Expand ]
 
peadarog
Old
#6  
peadarog's Avatar
Senior Member - OP
Thanks Meter 17
Posts: 128
Join Date: Mar 2010
Quote:
Originally Posted by bilboa1 View Post
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!
-----------------------------

SF author and grateful user of:
Rooted Galaxy Nexus, modaco, Titanium Backup, XDA


Those who don't create, donate.
 
godutch
Old
#7  
Senior Member
Thanks Meter 223
Posts: 1,811
Join Date: Jun 2009
I think you need to look more up to find the cause, you are surely missing some devel packages
 
peadarog
Old
#8  
peadarog's Avatar
Senior Member - OP
Thanks Meter 17
Posts: 128
Join Date: Mar 2010
Quote:
Originally Posted by godutch View Post
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.
-----------------------------

SF author and grateful user of:
Rooted Galaxy Nexus, modaco, Titanium Backup, XDA


Those who don't create, donate.
 
godutch
Old
#9  
Senior Member
Thanks Meter 223
Posts: 1,811
Join Date: Jun 2009
try installing the libusb-devel packages
 
godutch
Old
(Last edited by godutch; 22nd May 2011 at 12:48 PM.)
#10  
Senior Member
Thanks Meter 223
Posts: 1,811
Join Date: Jun 2009
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
};

The Following User Says Thank You to godutch For This Useful Post: [ Click to Expand ]
Tags
heimdall, linux, sgs2
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes