[Q] root SGS2 using a linux computer - Galaxy S II Q&A, Help & Troubleshooting

hi all,
i've been trying to figure out how to root my phone. i know that it's pretty straightforward (one click type thing) with a windows computer, but unfortunately i do not have access to windows, only to linux (debian) and i cannot seem to find any information about how to do this anywhere. i am familiar with the command line, but not a complete geekhead and do not know that much about phones... however, i did previously have a rooted hero.
many thanks in advance for any help,
d0cA

d0ca said:
hi all,
i've been trying to figure out how to root my phone. i know that it's pretty straightforward (one click type thing) with a windows computer, but unfortunately i do not have access to windows, only to linux (debian) and i cannot seem to find any information about how to do this anywhere. i am familiar with the command line, but not a complete geekhead and do not know that much about phones... however, i did previously have a rooted hero.
many thanks in advance for any help,
d0cA
Click to expand...
Click to collapse
I particularly have successfully flashed and rooted my phone many times using a virtual machine (VirtualBox) running Windows XP under Ubuntu. However there is a cross-platform software called Heimdall http://forum.xda-developers.com/showthread.php?t=755265 which can be used as an alternative to Odin. I have never used it, but search for it in this forums and you'll find lots of positive feedback of this software.
If, like me you decide to go for a VM instead, you'll just need to config the usb connections to be used by the VM. The rest is very straightforward.
By the time that I first rooted my SGS2, Heimdall had not yet been tested on this phone, and that's why I opted for the VM. As it worked perfectly, I continued using this. Otherwise, I would certainly have opted for Heimdall as it is natively supported by Linux.

By the way, always avoid flashing .PIT files (repartition), either on Odin or Heimdall. I've learnt here in this forums that flashing .PIT or ticking "repartition" on Odin is the major factor of bricking devices!!!

angelomaldito said:
By the way, always avoid flashing .PIT files (repartition), either on Odin or Heimdall. I've learnt here in this forums that flashing .PIT or ticking "repartition" on Odin is the major factor of bricking devices!!!
Click to expand...
Click to collapse
Heimdall will need a PIT file to know where to flash things to, just dont tick repartition.
Odin wont as its samsung shizzel.

veyka said:
Heimdall will need a PIT file to know where to flash things to, just dont tick repartition.
Odin wont as its samsung shizzel.
Click to expand...
Click to collapse
Interesting, and makes sense. And in case you're only flashing a kernel or flashing a firmware packed into a single file, does it need the .PIT as well?

Related

[Q] ODIN: need help, have problems

I used the odin stock TARs, incorrectly. I think they were supposed to be applied one at a time using the PDA button only, and in conjunction with the PIT file. I unfortunatly also used the PHONE and CSC buttons...which rendered my fascinate unable to connect to the cell network. so... does anybody have a TAR intended for use with the fascinate for the PHONE and CSC buttons? can anyone explain what these two buttons are? I DO HAVE several working stock fascinates with me, so can anyone point me in the direction of capturing correct ODIN tars from these phones for use on my broken phone? THANKS SO MUCH in advance!
Did you try redoing the Odin directions to get to stock?
andrewblanejr said:
I used the odin stock TARs, incorrectly. I think they were supposed to be applied one at a time using the PDA button only, and in conjunction with the PIT file. I unfortunatly also used the PHONE and CSC buttons...which rendered my fascinate unable to connect to the cell network. so... does anybody have a TAR intended for use with the fascinate for the PHONE and CSC buttons? can anyone explain what these two buttons are? I DO HAVE several working stock fascinates with me, so can anyone point me in the direction of capturing correct ODIN tars from these phones for use on my broken phone? THANKS SO MUCH in advance!
Click to expand...
Click to collapse
Sorry. You're SOL. This is why "DON'T USE THE PHONE BUTTON" is posted everywhere. If it was as simple as extracting modem.bin / bml12 from a good device, we would have done it many weeks ago.
There's nothing to be done at this point, you need to exchange the phone.
ilestdevil said:
Did you try redoing the Odin directions to get to stock?
Click to expand...
Click to collapse
Yup. I did. No go.
Odin: Do not use the phone button in odin
namebrandon said:
Sorry. You're SOL. This is why "DON'T USE THE PHONE BUTTON" is posted everywhere. If it was as simple as extracting modem.bin / bml12 from a good device, we would have done it many weeks ago.
There's nothing to be done at this point, you need to exchange the phone.
Click to expand...
Click to collapse
Right. So I do understand this is my fault, but i did not see such a warning in the Fascinate-specific or even ODIN specific articles that I found. There was only one article I found that said not to use the PHONE BUTTON, but i can't even remember where it was and i found it too late.
In some cases of non-fascinate (ie. Galaxy i9000 and older Samsung phones) articles there are specific instructions to actually use the PHONE BUTTON for modem.tar.
SO can the following threads (which are obviously very popular) be updated to reflect this warning and in the case of the more specific ODIN stock restore thread (fallingup/angel12), can we see an update that includes instructions on what to do with all 3 TARs and the 1 PIT?
I don't want to complain (luckily for me this was an extra destined-to-be-returned phone), but I do think that some very small post edits could help prevent other people from ruining their phones.
OH, and what about the CSC button, what does that do? and How do we back .TARs with ODIN? I have seen many people ask these questions, and very very few responses...anybody?
Best,
Andrew

OS X + Heimdall + Fascinate still not working?

I read a post somewhere that as of the Froyo update the secondary bootloader error that prevented Heimdall from recognizing the Fascinate on OS X has been fixed. Only, I really need it to work right now, but Heimdall says it can't find a device.
Has this been fixed, or was that post incorrect? I don't have access to a PC, and have borked my phone, so Heimdall is my only option.
Thanks in advance.
Install Linux or Windows via boot camp. That's what I did.
Sent from my SCH-I500 using XDA App
Question about that: I've always skipped over Boot Camp stuff because I never wanted Windows, but is that a separate installation? Is it on the OS X disc? And would I need to repartition my hard drive?
Thanks
eulipion2 said:
I read a post somewhere that as of the Froyo update the secondary bootloader error that prevented Heimdall from recognizing the Fascinate on OS X has been fixed. Only, I really need it to work right now, but Heimdall says it can't find a device.
Has this been fixed, or was that post incorrect? I don't have access to a PC, and have borked my phone, so Heimdall is my only option.
Thanks in advance.
Click to expand...
Click to collapse
Well, I have a mac and a fascinate. I am not able to use heimdall or odin with my fascinate even with windows installed via parallels desktop. Turns out the problem is with the fascinate. It has a faulty secondary bootloader and will not work with osx in download mode. I have read others say (like the guy who commented first) that they were able to get it to work, but not me. It's a problem with the fascinate
To use Bootcamp, you will have to repartition your drive. You start up the utility, let it repartition, and then install your copy of Windows. That's the only drawback... You have to by Windows. But it does work. I have my wife's MBP bootcamped, and that's how I use Odin for anything I need it for
Kevin Gossett said:
To use Bootcamp, you will have to repartition your drive. You start up the utility, let it repartition, and then install your copy of Windows. That's the only drawback... You have to by Windows. But it does work. I have my wife's MBP bootcamped, and that's how I use Odin for anything I need it for
Click to expand...
Click to collapse
Ick, I'm running a Hackintosh, and while I've read of others who have multi-boot systems it seems like a pain, and I rather like mine just the way it is. Other than for flashing, I have no good reason to have Windows or Linux when OS X does everything else I need. I'm sure the secondary bootloader problem will be fixed eventually, by Samsung, VZW, or someone here.
Fortunately I did manage to dig up my wife's old college laptop (6-year-old Dell), and while slow, it worked. Just means I can't flash too much. Of course, now that I flashed CWM I can flash ROMs from recovery, so problem solved I guess.
I may give Boot Camp a try on my next Mac/Hackintosh. Thanks for the input!
Yeah, I agree... It can definitely be a pain if you've already got your system up and running the way you like. Fortunately for me, Bootcamping Windows was one of the first things we did on my wife's MBP since she needed it for some software. Worked out for me
boot camp is awesome....period...the ability to run anything at anytime on one laptop is invaluable...i even have parallels as well with win7 installed, and google chrome btw...just when i need something quick, but having boot camp, if i have to odin something while commuting is a blessing, i mess with my phone hourly, so at anytime, i could brick it and have to flash a stock rom through odin, like i said...invaluable
JoeProcopio said:
boot camp is awesome....period...the ability to run anything at anytime on one laptop is invaluable...i even have parallels as well with win7 installed, and google chrome btw...just when i need something quick, but having boot camp, if i have to odin something while commuting is a blessing, i mess with my phone hourly, so at anytime, i could brick it and have to flash a stock rom through odin, like i said...invaluable
Click to expand...
Click to collapse
You don't need bootcamp to do this...multiboot setups are possible too. Though I must admit its a nice feature and easy to use.
I dual boot archlinux and hackintosh on my pc and must admit that its a bit of a pain to get working but I was able to do it with grub bootloader
Sent from my SCH-I500 using XDA Premium App

OSX-Heimdall users here?

I just hot my S3 today and I am struggling with all the new information I have to study here . I was an HTC user all this years so terms like Odin are pretty new to me. Beyond that I have a mac . Very bad combination with Samsung mobile phones. Not even android file transfer is working at the moment. I tried first to accomplish all the rooting and recovery procedure with virtual machine of Windows 7 but the phone is not available to the guest,when it is in download mode. So I thought I will give Heimdall a try eventhouh Odin seems a far better solution. I don't know which programm is better but Heimdall has very bad documentation. So back the subject. I saw numerous complaints about Heimdall 1.3.2 so I decided to start with 1.3.1. My first question is about the pit file. It is not clear to me if I have to extract it from my device and if yes, how can I do this? Does anyone here has experience with this particular software ,to use it under OSX as a daily driver?
Sent from my GT-I9300 using xda app-developers app
Vintos said:
... Does anyone here has experience with this particular software ,to use it under OSX as a daily driver?
Click to expand...
Click to collapse
Yes and partially negative:
I have flashed the CWM and all went fine.
I have then tried to flash a new stock rom, all went fine and no errors in the program, but then the phone was not working:
it was saying no SIM card installed and was lagged in every operation.
I had to find a Windows PC and reflash with Odin to have my GS3 work again, i suppose Heimdall soft-bricked it, at least the modem part.
To be honest i created myself a Heimdall package with the files of the unpacked stock rom and my own phone downloaded PIT.
But even if i'm pretty sure i did all in the right way, the flashing result was a dead phone.
So, use it with caution ...

[Q] [HEIMDALL] How to flash ?

Hello,
This thread does not get the aim to explain how to flash but simply requesting some GNU/Linux users with command line/interfaces of Heimdall because here is some issue I got flashing some packages.
I just installed a package containing stock ROM for Galaxy S for a friend. I got trouble and doubt with the boot.img because there is not a section named BOOT as modem.img which get MODEM or zImage wich get KERNEL (hopefuly I have been clear with that).
While trying to unzip some GT-I9300 firmware (wich is my current device), I found a Tz.img, but here again there is not any section for that file. And I REALLY do not want to lost my new born S3 but it is kind of shame to get an GNU/Linux distro' on my computer and not be able to find any clear tutorial for Heimdall. I really deplore the lack of information about that trully awesome flash program because I know this could be a choosed one software if some devs of the Heimdall project (or anyone else getting a minimal knowledge about it) could do a good, clear, and user-friendly guide. All I need, especially while attributing file .img with their section (again hopefuly I have been clear with that word).
Thanks for reading and If you're like me, make some feedback, I would like to know what are your though about that software.
Drakenlord78 said:
Hello,
This thread does not get the aim to explain how to flash but simply requesting some GNU/Linux users with command line/interfaces of Heimdall because here is some issue I got flashing some packages.
I just installed a package containing stock ROM for Galaxy S for a friend. I got trouble and doubt with the boot.img because there is not a section named BOOT as modem.img which get MODEM or zImage wich get KERNEL (hopefuly I have been clear with that).
While trying to unzip some GT-I9300 firmware (wich is my current device), I found a Tz.img, but here again there is not any section for that file. And I REALLY do not want to lost my new born S3 but it is kind of shame to get an GNU/Linux distro' on my computer and not be able to find any clear tutorial for Heimdall. I really deplore the lack of information about that trully awesome flash program because I know this could be a choosed one software if some devs of the Heimdall project (or anyone else getting a minimal knowledge about it) could do a good, clear, and user-friendly guide. All I need, especially while attributing file .img with their section (again hopefuly I have been clear with that word).
Thanks for reading and If you're like me, make some feedback, I would like to know what are your though about that software.
Click to expand...
Click to collapse
I would suggest getting your hands on a machine with Windows on it to complete the root process just because it has been done on Windows machines more so than any other. At least this way, you'll be able to complete everything rather fast by simply flashing via Odin.
If you are set on using Heimdall, best of Luck. Also do a write up because a lot of mac users & linux users would appreciate it.
Galaxys3root.com has a how to for using heimdall, I've used this method for rooting my phone.
---------- Post added at 07:23 PM ---------- Previous post was at 07:14 PM ----------
Although, depending on what version of Android you are on, rooting can be achieved without using heimdall or odin. The exynos exploit makes it easy just by installing supersu app and clicking root.
Thanks guys for your support, gonna take a look to your links.
Hopefuly we will not be forced to use windows to get an secure and complete flashprogram one day... "I have a dream that one day..."

[Q] Flash OB1 Bootloader and Modem WITHOUT PC OR ODIN

Does anyone know if this is possible? I only have a Macbook running OSX Maverick and have struggled to find a version of ODIN for Mac.
For Mac there is hemdall. Have you looked into that at all?
But no, there is no way to flash that without a computer.
Many people have tried and not been able to find a way to do that yet.
Thanks for that. Everywhere I searched, there was no mention of any software named Heimdall until you stated it. I guess I'll have to use Heimdall and hope I don't do something horribly wrong.

Categories

Resources