root phone under linux? - Galaxy S III Q&A, (US Carriers)

Hello!
I'm running Ubuntu 12.04 on 2 different machines and have been trying to root since I got the phone yesterday with no luck.
I have tried using Windows 7 and Windows XP running in VirtualBox with Odin using the method outlined in the video by qbking77.
I have also tried the same method but this time using Heimdall from within Ubuntu.
I've tried the Heimdall method on both computers and have run into a few different issues, one of them being that Heimdall (from the GUI) doesn't like the both the .tar file and the .img file when I extract it from the .tar file (it gives error messages but I'm not in front of the computer right now).
Another issue I'm having with Heimdall is when trying to access the device itself. I put the device into download mode and try to download the PIT file and it gives an error about not being able to initialize. I know the latest version of Heimdall isn't confirmed to work with this phone so I have not tried any commands that push data to the phone, only commands that pull data from the phone. Heimdall does detect my device without any problem.
I have rooted several devices in the past including a Galaxy Tab 10.1 (which also had trouble with Odin and Heimdall but I was able to root without them)
My question is: has anyone successfully rooted without Windows, and if so how?
As a side note: I have been searching the forums and Google trying to resolve these issues and cannot find answers, and other than VirtualBox I do not have access to any Windows machines.
I don't expect anyone to diagnose the specific issues I'm having without me providing exact error messages or anything but I'm looking for general information on rooting this device without Windows.
Thanks in advance for any input.
Sent from my SPH-L710 using XDA

I didn't install the drivers in linux, but you can run odin in linux [using wine], and assuming you have the drivers installed, you should be good to go.

Wow, I can't believe I never thought to try wine!
Would I install the Windows drivers under wine or are there Linux specific drivers?
Thanks for the reply, I'll have to try this when I get home.
Sent from my SPH-L710 using XDA

devi1 said:
Wow, I can't believe I never thought to try wine!
Would I install the Windows drivers under wine or are there Linux specific drivers?
Thanks for the reply, I'll have to try this when I get home.
Sent from my SPH-L710 using XDA
Click to expand...
Click to collapse
No prob man, here to help. I would try the windows drivers through wine.

Samsung USB drivers will not work in Wine, thus Odin has no chance of working there. Indeed Heimdall does not yet support SGS3.
Team Epic's instructions and CWM .tar.md5 is known to work with Odin and Windows with those Samsung USB drivers.

Okay, tried Odin under wine as teh roxxorz suggested and it did not work (as CMTeamEpic pointed out)
Came back to the thread and saw CMTeamEpic's reply so I tried a few more things in VirtualBox and got Odin to recognize the device now but when I go to flash the file the virtual machine reboots (scary!).
Phone is not bricked but also isn't rooted.
I think I have VMWare with Windows XP on my other computer so I will try that next. I know sometimes VMWare can run certain things smoother than VirtualBox at times so we'll see what happens.
I wish Samsung phones didn't need Odin (or Windows specific software in general) to root. I'm open to any other suggestions, I'm not a n00b and I'm comfortable with using ADB if I need to (no offense to any n00bs :laugh
Thanks for the help so far guys, I'll let you know what happens with VMWare.

Guide is now posted in development.
Sent from my SPH-D700 using Tapatalk 2

Alright, tried Odin again under VMWare instead of VirtualBox and everything went fine. Flashed CWM Recovery in Odin and then went into CWM and flashed the zip file to get su, installed busybox and now I have root!
Thanks guys for your help. :highfive:
On a side note, I think it's pretty ridiculous that I spent 2 days wrestling with this and doing everything correctly except for the fact that it just wouldn't work with VirtualBox. Hopefully anyone who runs Linux exclusively who is trying to root this phone will see this and just avoid VirtualBox all together! VirtualBox runs well for most things but VMWare does some stuff better... and I'm pretty sure VMWare Player (as opposed to VMWare Workstation) is free.
Now to figure out how to compile a kernel and build a rom... maybe?

devi1 said:
Alright, tried Odin again under VMWare instead of VirtualBox and everything went fine. Flashed CWM Recovery in Odin and then went into CWM and flashed the zip file to get su, installed busybox and now I have root!
Thanks guys for your help. :highfive:
On a side note, I think it's pretty ridiculous that I spent 2 days wrestling with this and doing everything correctly except for the fact that it just wouldn't work with VirtualBox. Hopefully anyone who runs Linux exclusively who is trying to root this phone will see this and just avoid VirtualBox all together! VirtualBox runs well for most things but VMWare does some stuff better... and I'm pretty sure VMWare Player (as opposed to VMWare Workstation) is free.
Now to figure out how to compile a kernel and build a rom... maybe?
Click to expand...
Click to collapse
Heimdall is open source and for Linux
Sent from my SPH-D700 using Tapatalk 2

MДЯCЦSДИT said:
Heimdall is open source and for Linux
Sent from my SPH-D700 using Tapatalk 2
Click to expand...
Click to collapse
Code:
~$ sudo heimdall print-pit
Heimdall v1.3.2, Copyright (c) 2010-2012, 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/
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
ERROR: Failed to initialise protocol!
I'm running Ubuntu 12.04 64-bit. I've tried this command using Heimdall v1.3.1 64-bit and Heimdall v1.3.2 32-bit (64-bit has not yet been released for this version) and get the same error message (I even tried running the 'detect' action and it saw my device), so I did not dare to try flashing anything.
I also finished rooting before seeing your post in the dev section. It's pretty stupid that I can view the dev section when I'm not logged in but it's not there when I am logged in. It seems the mods could at least make it read-only for members logged in with under 10 posts.

devi1 said:
Code:
~$ sudo heimdall print-pit
Heimdall v1.3.2, Copyright (c) 2010-2012, 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/
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
ERROR: Failed to initialise protocol!
I'm running Ubuntu 12.04 64-bit. I've tried this command using Heimdall v1.3.1 64-bit and Heimdall v1.3.2 32-bit (64-bit has not yet been released for this version) and get the same error message (I even tried running the 'detect' action and it saw my device), so I did not dare to try flashing anything.
I also finished rooting before seeing your post in the dev section. It's pretty stupid that I can view the dev section when I'm not logged in but it's not there when I am logged in. It seems the mods could at least make it read-only for members logged in with under 10 posts.
Click to expand...
Click to collapse
Hmmm... they probably need to update it with the S3.
Sent from my SPH-D700 using Tapatalk 2

Related

[Q] Does Odin work in 64 bit versions of Windows or not

I've heard people say they have gotten Odin to work on their 64 bit versions of windows, but I cant. I am able to use it on a computer running Windows 7 - 32bit, but not either of the computers I've got running 64 bit.
I've definitely installed the 64 bit the drivers. I can access the phone in ADB on these computers. Odin sees the phone and throws up a com port, but I get a weird error message with Chinese characters when I try to move forward with the flash.
Anyone have a definitive answer? Is it possible to use Odin on Win 7 64bit?
I flashed the leaked J12 with Odin on my 64bit Windows 7 laptop without any trouble.
I flashed with Odin on my W7 64bit desktop. Had a little trouble with it sticking on the verifying files at the beginning, but restarted it and it ran fine the second time. That's the only experience I've had with Odin. Just though I'd let you know that it works on my 64bit machine.
Thanks guys. I dont know what the hiccup is on my end. I might go through my drivers again just to make sure that isnt the issue.
I would highly suspect that the drivers are the issue as have used Odin on 2 separate 64bit machines. Make Sue that after u download the Sammy drivers, that they are installed, and installed correctly.
they call me...kick ass
I was never able to make any win7 system recognize my vibrant in dl mode at all, 32 or 64 bit, no matter what drivers i tried. I even tried to extract the 64 bit drivers to the 32 bit Os as I had seen mentioned in a thread some people had success with. Xp ran it like a champ on the first attempt.
Sent from my SGH-T959 + bionix 1.3 (= sexiness) using XDA App
I know were talking about different phones here but I've been scouring the internet trying to find a solution to a problem I'm having right now. when switching from 1 custom ROM to another, it was required that I flash to stock EC05, then flash to EE?? my Windows 7 Ultimate x64 wouldnt work properly (kept getting stuck in boot.bin in ODIN0 but my old faithful Netbook with Windows XP Home SP3 (x86) workd flawlessly!
I'm talking 3 HOURS of trying to get the Win7x64 to work properly and had my Epic reflashed with XP in 3minutes and 27 seconds, not counting time to install Samsung Drivers into XP (30-45 seconds)
Granted this is my experiance, but before I got x64 I was running with Win7 X86 and still never had problems. I have read through Google search that other people with x64 Windows 7 had problems. This is my story only, best of luck to ya, but I am now ONLY going to use my ol Netbook (or x86 virsion of Windows) to ODIN my phone.
Never Stop Wanting More from your devices.
Im using 64 windows OS and i don't have a problem. If your device is not recognize by your PC just reinstall the samsung drivers and you are good to go.
Sometimes you have to go into the safe mode options and disable driver enforcement policy. Then it will work.
Sent from my SGH-T959 using xda premium

Samsung drivers Heimdall, Odin

Does anyone know how to get a mac laptop to recognize my fascinate? I need to be able to push files to my fascinate with my mac laptop. I have installed heimdall and when I try to flash a file it says "failed to detect compatible device". I even installed parallels desktop and have windows on my mac as well and I can't use Odin because it says "no drivers found". I have downloaded the drivers and installed them but it still says "no drivers found". Any help would be much appreciated.
kidserious said:
Does anyone know how to get a mac laptop to recognize my fascinate? I need to be able to push files to my fascinate with my mac laptop. I have installed heimdall and when I try to flash a file it says "failed to detect compatible device". I even installed parallels desktop and have windows on my mac as well and I can't use Odin because it says "no drivers found". I have downloaded the drivers and installed them but it still says "no drivers found". Any help would be much appreciated.
Click to expand...
Click to collapse
As another OS X user, I am faced with the same problem with Heimdall not recognizing my Fascinate. I don't know how to rectify this issue.
However, I have found that I have to enable USB Debug Mode (under Applications/Development) in the settings prior to connecting the USB each time I want to connect to my mac for file swap. I don't think I needed to do this before, so I think it's due either to the ROM or kernel I'm using.
kidserious said:
Does anyone know how to get a mac laptop to recognize my fascinate? I need to be able to push files to my fascinate with my mac laptop. I have installed heimdall and when I try to flash a file it says "failed to detect compatible device". I even installed parallels desktop and have windows on my mac as well and I can't use Odin because it says "no drivers found". I have downloaded the drivers and installed them but it still says "no drivers found". Any help would be much appreciated.
Click to expand...
Click to collapse
This suggestion is for heimdall, i don't know if it works with mac or not.
Did you plug the phone in with it in DL mode, open the heimdall files, open the drivers file in there and run zadig? You have to have to be in DL mode while in zadig then you go to options, at the top, check list all devices, it will say samsung usb composite device, or samsumg android composite usb. Anyway it is something like that, heimdall wont work in windows either if you dont do this step. hope that helps. as for odin i think there is a program out there called odin clone but i have no idea where to find it, maybe google does.
Heimdall doesn't support the Fascinate on Mac, so either install Linux or Windows.
Sent from my SCH-I500 using XDA App
iwasaperson said:
Heimdall doesn't support the Fascinate on Mac, so either install Linux or Windows.
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
I have windows installed on my Mac via parallels desktop and when I put my phone in download mode and try to install drivers, where it says "list all devices" it doesn't have Samsung composite as an option.
Sent from my SCH-I500 using XDA Premium App
kidserious said:
I have windows installed on my Mac via parallels desktop and when I put my phone in download mode and try to install drivers, where it says "list all devices" it doesn't have Samsung composite as an option.
Sent from my SCH-I500 using XDA Premium App
Click to expand...
Click to collapse
The problem isn't with Heimdall or OS X. The issue is with Samsung's faulty secondary bootloader not adhering to the USB specification. As such the device won't be recognised by OS X or even a virtual machine running inside OS X.
Benjamin Dobell said:
The problem isn't with Heimdall or OS X. The issue is with Samsung's faulty secondary bootloader not adhering to the USB specification. As such the device won't be recognised by OS X or even a virtual machine running inside OS X.
Click to expand...
Click to collapse
So, basically what you are telling me is that I will not be able to push files to my fascinate with my Mac, correct? The problem is the fascinate communicating with Mac right? Can't be done?
Sent from my SCH-I500 using XDA Premium App
What I heard was get a real computer.
Sent from my brain on channel 64!
Well I just wasted about an hour getting all of the necessary things to get Heimdall running, so this is disappointing to hear. From what I read, I thought that was an Eclair issue and that it might be solved with the Froyo update?
kidserious said:
So, basically what you are telling me is that I will not be able to push files to my fascinate with my Mac, correct? The problem is the fascinate communicating with Mac right? Can't be done?
Sent from my SCH-I500 using XDA Premium App
Click to expand...
Click to collapse
Assuming that Samsung haven't released a working secondary bootloader for the Fascinate, then you can't use OS X to flash. "Mac" and "OS X" aren't the same thing, if you want you could install Linux or Windows on your Mac and you would still be able to flash. That's hardly ideal but it's Samsung's fault and there's not a whole lot anyone else can do about it.
Benjamin Dobell said:
Assuming that Samsung haven't released a working secondary bootloader for the Fascinate, then you can't use OS X to flash. "Mac" and "OS X" aren't the same thing, if you want you could install Linux or Windows on your Mac and you would still be able to flash. That's hardly ideal but it's Samsung's fault and there's not a whole lot anyone else can do about it.
Click to expand...
Click to collapse
You're talking about partitioning my hard drive? Because I have windows running on my mac via parallels desktop. I would need to run boot camp or something like that?
I was just thinking boot camp myself, but if the issue is how Apple handles the USB on the computer, then the problem would still be there, cause the windows drivers installed through boot camp for the Mac hardware are still written by apple, and the physical hardware of the laptop will also remain the same, so....
Materialized into existence through the act of observation.

[INFO] Mac OS Lion Novacom drivers

If anyone has tried using WebOSQuickInstall you will know that the novacom drivers it tries to download fail on lion, so here are the drivers from the webos 3.0.2 SDK which should work (works on my late 2009 MacBook running lion) (use at own risk)
Download
Edit: before I get into trouble for these links I have decided to pull them. The best way to get them us via the webos sdk
Hope this helps
That worked! Thanks so much, no more rebooting into Bootcamp for me.
Thanks for that! Works great!
Eventhough I found the Novacom driver installer inside the SDK package, and installed it just fine, still I get the same message from Webos Quick Installer (4.2.3) "No devices connected. Please connect a device to continue". My device is in Developer Mode (HP Pre 3). I've tried putting it in normal mode and back to dev mode again, same thing. I restarted my mac twice, same thing. Does anyone have any idea why is this happening? I tried the whole process on my brother's laptop (win xp professional), and works just fine. So, what am doing wrong?
Plug it in but don't put it in usb mode
Sent from my HTC Sensation Z710e using XDA App
thanks for that !!
Can you repost the driver?
please update the first link
webos sdk has a big size just for a one little driver
Here's a fix for the driver:
After a failed install...
vim `which start-novacom`
add an "F" after the -w... so the command looks now like:
sudo launchctl load -wF /Library/LaunchDaemons/com.palm.novacomd
then run start-novacom, and novacomd will load and things will work.

I777 does not connect USB neighter Odin

AT&T Samsung Galaxy S II SGH-I777
Scenario:
1. The phone connect to PC, but just charges... anything else, no PC connection, no Odin connection... nothing.
2. Tried fix restoring Stock ROM, but it requires USB... to Odin
3. Was installed CWM Recovery and I tried install Clockworkmod Recovery (I thought was the same thing but wasn't)
4. Bricked the phone when I tried to install Avast Anti-theft (update.zip)
5. Now the phone don't turn on.. just can access Download Mode.
The worst problem is the missing connection with PC... (ALL DRIVERS UPDATED - ALL !!!)
I can't use Odin to help restore my phone because of it.
The problem is not the USB hardware connection... I sent to repair, but problem persists.
Used many PCs to try again and again.
What can I do?!?!
Go here...http://forum.xda-developers.com/showthread.php?p=28164226 or here...http://forum.xda-developers.com/showthread.php?p=18065445and try Heimdall. It uses it own drivers that it will install. Use on a different usb port that u can remember to use exclusively for Heimdall. Because u can't use Odin in that port. Odin uses the samsung drivers.
Heimdall is good and safe.
(Also, try using a different usb/micro usb cable.)
Sent from my SGH-I777 using xda premium
Trying
4-2ndtwin said:
Go here...http://forum.xda-developers.com/showthread.php?p=28164226 or here...http://forum.xda-developers.com/showthread.php?p=18065445and try Heimdall. It uses it own drivers that it will install. Use on a different usb port that u can remember to use exclusively for Heimdall. Because u can't use Odin in that port. Odin uses the samsung drivers.
Heimdall is good and safe.
(Also, try using a different usb/micro usb cable.)
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
Tried now, and returned me this information: (on Linux)
[email protected]:~/Downloads/ucle5_stock_rooted$ heimdall flash --kernel zImage --factoryfs factoryfs.img --modem modem.bin --cache cache.img --hidden hidden.img
Heimdall v1.3.1, 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/
Initialising connection...
Detecting device...
Failed to detect compatible download-mode device.
[email protected]:~/Downloads/ucle5_stock_rooted$
Did u try a different cable ?
I don't run a Linux machine, so i am of no help there. Sorry. Maybe someone else will chime in.
Sent from my SGH-I777 using xda premium
Even Windows.
4-2ndtwin said:
Did u try a different cable ?
I don't run a Linux machine, so i am of no help there. Sorry. Maybe someone else will chime in.
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
I tried on Windows, too. No success.
Tried install Android SDK and the device does not recognize...
osmariojr said:
I tried on Windows, too. No success.
Tried install Android SDK and the device does not recognize...
Click to expand...
Click to collapse
this sounds like USB port is dead on your phone.

[Q] Bricked player 4.0

Hello guys, I understand that this is in the wrong place but I have finally made an account! But I have a problem, I have bricked my Galaxy Player 4.0 and I can not unbrick it, when I run Himdall I get this:
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:
Initialising connection...
Detecting device...
ERROR: Failed to access device. libusb error: -12
I have all of the drivers installed, it is in download mode, and yes, it is plugged in, could someone help me, thank you ahead of time
Obj261 said:
Hello guys, I understand that this is in the wrong place but I have finally made an account! But I have a problem, I have bricked my Galaxy Player 4.0 and I can not unbrick it, when I run Himdall I get this:
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:
Initialising connection...
Detecting device...
ERROR: Failed to access device. libusb error: -12
I have all of the drivers installed, it is in download mode, and yes, it is plugged in, could someone help me, thank you ahead of time
Click to expand...
Click to collapse
Go to the drivers folder that heimdall comes with (just for reassurance!) and run zadig.exe
Your player has to be plugged into the computer in download mode.. and click list all devices... then Install the driver for the Samsung one... After that, flash or do whatever you you doing before.
the playa! said:
Go to the drivers folder that heimdall comes with (just for reassurance!) and run zadig.exe
Your player has to be plugged into the computer in download mode.. and click list all devices... then Install the driver for the Samsung one... After that, flash or do whatever you you doing before.
Click to expand...
Click to collapse
I will try that, I did that on the first computer, I got my laptop and I will try on that
Obj261 said:
I will try that, I did that on the first computer, I got my laptop and I will try on that
Click to expand...
Click to collapse
You may want to post about your problem on this thread: http://forum.xda-developers.com/showthread.php?t=1531850
Thread is for recovering bricked players.
Sent from my YP-G1 running ParanoidAndroid v1.6 (ICS)
Obj261 said:
Hello guys, I understand that this is in the wrong place but I have finally made an account! But I have a problem, I have bricked my Galaxy Player 4.0 and I can not unbrick it, when I run Himdall I get this:
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:
Initialising connection...
Detecting device...
ERROR: Failed to access device. libusb error: -12
I have all of the drivers installed, it is in download mode, and yes, it is plugged in, could someone help me, thank you ahead of time
Click to expand...
Click to collapse
Just unplug it from the computer reboot in to download mode again. Than while it is in download mode reconnect it
And flash again it should work
Sent from my YP-G1 using Tapatalk 4 Beta
Just as a random tip it seems (this may only be me!) that if you use more than one tool e.g. Heimdall, Odin and ADB. Then using the same USB for all your work can create driver issues. I have had to delete my USB drivers then re-install them a couple of times to get it to recognize my device after I used the same USB port with two different problems.

Categories

Resources