[Q] Root / Flash from Linux -- Help a newbye find he`s way around - Samsung Galaxy Nexus

Hello boys,
Just got my Gnex the other day and I`m looking a for a nice how-to on how to root / flash it from under Linux.
I did poke around the forumz for a couple of hours, got nothing of of real value.
I set my eyes on Android Revolution HD / CM10 ROMS and I`m eager to take them for the proverbial "spin".
Now, I`m not new to the whole Android ecosystem - just ditched my GODroid - but I`m clueless on how things are done the Sammy way.
I *could* install a VM with some Windows on it and use Kies / Gnex TookKit but I`ll rather do it straight from Linux.
So, if anyone here could point me in the wright direction I would be more that grateful.

vlad.obada said:
Hello boys,
Just got my Gnex the other day and I`m looking a for a nice how-to on how to root / flash it from under Linux.
I did poke around the forumz for a couple of hours, got nothing of of real value.
I set my eyes on Android Revolution HD / CM10 ROMS and I`m eager to take them for the proverbial "spin".
Now, I`m not new to the whole Android ecosystem - just ditched my GODroid - but I`m clueless on how things are done the Sammy way.
I *could* install a VM with some Windows on it and use Kies / Gnex TookKit but I`ll rather do it straight from Linux.
So, if anyone here could point me in the wright direction I would be more that grateful.
Click to expand...
Click to collapse
Don't use a toolkit. You can certainly flash your gnex with linux. Read this post, it will point you in the right direction: http://forum.xda-developers.com/showthread.php?t=1812959

Same way as windows just need the Linux SDK.
./fastboot OEM unlock
./fastboot flash recovery name-of-recovery.img
Flash ROM and enjoy
Sent From My Toro+ via RED Tapatalk

Thank you, that was exactly what I was looking for

ÜBER™ said:
Same way as windows just need the Linux SDK.
./fastboot OEM unlock
./fastboot flash recovery name-of-recovery.img
Flash ROM and enjoy
Sent From My Toro+ via RED Tapatalk
Click to expand...
Click to collapse
If he installs android linux sdk, and his distro does it right, it will either install it into a folder which is already in $PATH, or will require the user to do so. After this is done, 'sudo fastboot options' will work just fine. The way you're saying, works if pwd is the same as fastboot binary.

bk201doesntexist said:
If he installs android linux sdk, and his distro does it right, it will either install it into a folder which is already in $PATH, or will require the user to do so. After this is done, 'sudo fastboot options' will work just fine. The way you're saying, works if pwd is the same as fastboot binary.
Click to expand...
Click to collapse
I know... I have Linux also.
Sent From My Toro+ via RED Tapatalk

ÜBER™ said:
I know... I have Linux also.
Sent From My Toro+ via RED Tapatalk
Click to expand...
Click to collapse
Well, I was just complementing your information, thus quoting your post, adding on to it. Don't get your pants wet. Anybody can have Linux, but some may not understand it:

bk201doesntexist said:
Well, I was just complementing your information, thus quoting your post, adding on to it. Don't get your pants wet. Anybody can have Linux, but some may not understand it:
Click to expand...
Click to collapse
Lol getting my pants wet? :what: hahaha
Sent From My Toro+ via RED Tapatalk

Quick note for anyone having the same questions:
You must start the adb-server via sudo / root, otherwise the phone won`t be detected. So do :
<code> sudo adb start-server</code>

Related

[Q] Rooting with linux on a virtual machine?

Hi guys,
I was thinking to bypass the many problems reported here about using unrevoked on a winXP OS by rooting my desire through a ubuntu virtual machine (WmWare).
Can it be done? would I make my life easier or is it better to just risk it with winXP?
Thanks
Luca
Why not use the livecd?
What's that? Sorry mercianary, but I'm an absolute n00b (got the phone 3 weeks ago and I'm still trying to learn.
Luca
astrovale said:
What's that? Sorry mercianary, but I'm an absolute n00b (got the phone 3 weeks ago and I'm still trying to learn.
Luca
Click to expand...
Click to collapse
a live cd lets you boot into an embedded linux os, and run it directly off the cd, unbuntu do the most popular one look here
http://www.ubuntu.com/desktop/get-ubuntu/download
Thanks M! I will try that for sure!
Astro
AndroHero said:
a live cd lets you boot into an embedded linux os, and run it directly off the cd, unbuntu do the most popular one look here
[/QUOTE
after installing this and booting into ubuntu, whats the process to push files to the device? ADB?
Click to expand...
Click to collapse
baldypal said:
AndroHero said:
a live cd lets you boot into an embedded linux os, and run it directly off the cd, unbuntu do the most popular one look here
[/QUOTE
after installing this and booting into ubuntu, whats the process to push files to the device? ADB?
Click to expand...
Click to collapse
Read the Unrevoked or Alpharevx doku.
Click to expand...
Click to collapse
You need to activate USB-debugging in your phone and then install android SDK.
Sent from my HTC Desire using xda app-developers app

Galaxy Nexus Linux Toolkit

Hi, I have yakjuxw and I want to replace it with yakju. I have Ubuntu, so i found this toolkit but I don't know what I need to do for doing that. I've already installed the toolkit. In the first i choose my device
G. GSM Galaxy Nexus [maguro], but then? I have to follow ALL this five points for have a yakju or I need only the last (n 5)?
1. Unlock the Bootloader
2. Flash ClockworkMod Recovery
3. Root the Device
4. Lock the Bootloader
5. Flash Google Factory Image
0. Exit
Thanks
TheSignal said:
Hi, I have yakjuxw and I want to replace it with yakju. I have Ubuntu, so i found this toolkit but I don't know what I need to do for doing that. I've already installed the toolkit. In the first i choose my device
G. GSM Galaxy Nexus [maguro], but then? I have to follow ALL this five points for have a yakju or I need only the last (n 5)?
1. Unlock the Bootloader
2. Flash ClockworkMod Recovery
3. Root the Device
4. Lock the Bootloader
5. Flash Google Factory Image
0. Exit
Thanks
Click to expand...
Click to collapse
If you use a toolkit, you won't learn anything. Use this method, just skip the part about drivers.
This makes me sick. I'm sorry.
Sent from my i9250
Jesus Christ man... you're running Linux and you want a toolkit to root your Android phone? What the hell has this world come to.
efrant said:
If you use a toolkit, you won't learn anything. Use this method, just skip the part about drivers.
Click to expand...
Click to collapse
Do this, please.
martonikaj said:
Jesus Christ man... you're running Linux and you want a toolkit to root your Android phone? What the hell has this world come to.
Do this, please.
Click to expand...
Click to collapse
I've never had an Android phone until yesterday, I don't know how do they work. Get off your high horse man
TheSignal said:
I've never had an Android phone until yesterday, I don't know how do they work. Get off your high horse man
Click to expand...
Click to collapse
In that case, read and learn. Otherwise, you'll just be back here in a panic posting a thread asking for help with your soft brick. Too many of the "my phone's broken, what do I do?" threads start with "so, I used this toolkit". That's why so many people are anti-toolkit at this point.

[Q] Uhh... How do you root 4.2??

I just got this phone and the guy who had it accepted the OTA to 4.2 It's the sprint variant. I've skimmed a few threads and checked out the toolkit but it only seems to go to 4.1.2
Any help??
Can't_Live_Without_My_Evo said:
I just got this phone and the guy who had it accepted the OTA to 4.2 It's the sprint variant. I've skimmed a few threads and checked out the toolkit but it only seems to go to 4.1.2
Any help??
Click to expand...
Click to collapse
Same instructions apply. Knock yourself out!
Sent from my Nexus 10 using Tapatalk HD
Efrants guide is stickied in the general nexus thread. Will tell you everything you need to know
Alright maybe we can help with this lol
I have the drivers installed, It says Samsung ADB device or whatever in device manager.
I have usb debugging enabled.
I hold the up and down button and power
Should it say "fastboot usb" or just fastboot, On my evo it said fastboot usb when connected.
I have the galaxynexusroot package from the asian guy which simply contains fastboot.
I open command window where it's at.
And type "fastboot oem unlock"
And it just says waiting for device. I'm certain the drivers are there.
What's my problem?
If boss don Efrant's guide can't get you there then try Google or use the search bar in xda.
I believe in you little buddy
namtombout said:
If boss don Efrant's guide can't get you there then try Google or use the search bar in xda.
I believe in you little buddy
Click to expand...
Click to collapse
I've utilized all 3, Now after installing the drivers from PDAnet which we're suggested by Efrant it just says Android 1.0 under device manager and I can't seem to update it.
And still no luck the unlocking. obviously due to the drivers.
I have the Samsung ADB interface installed. Do I need another driver? It seems I do, But I can't get anything to stick when I go into Fastboot.
http://forum.xda-developers.com/showthread.php?p=25477039
Follow instructions
namtombout said:
http://forum.xda-developers.com/showthread.php?p=25477039
Follow instructions
Click to expand...
Click to collapse
... I don't want to return to stock.
I am stock...
I want to unlock/root.
You can flash whatever rom you want after doing this.
Not sure if substituting the rom you want instead of the stock image will work. Try it and find out.
namtombout said:
You can flash whatever rom you want after doing this.
Not sure if substituting the rom you want instead of the stock image will work. Try it and find out.
Click to expand...
Click to collapse
We seem to be miscommunicating.
I have a new Galaxy Nexus from Sprint updated to 4.2.1
I'm trying to get the drivers installed properly to be able to unlock the bootloader.
I'm in no shape to be flashing any rom I want, Without the drivers installed first.
From efrant's guide, which seems to apply in all situations: "Note that the driver has to install twice: once when your device is booted normally (not required for this tutorial) with USB Debugging enabled in Settings, and once when your device is booted in fastboot (i.e., bootloader) mode (which is required for this tutorial). "
bodh said:
From efrant's guide, which seems to apply in all situations: "Note that the driver has to install twice: once when your device is booted normally (not required for this tutorial) with USB Debugging enabled in Settings, and once when your device is booted in fastboot (i.e., bootloader) mode (which is required for this tutorial). "
Click to expand...
Click to collapse
I've done this, But it still just shows "Android 1.0" with an exclamation mark while in fastboot.
I've uninstalled everything and I'm about to try again and see if something goes right this time.
Uhh, the guide suggests using universal naked drivers, not pdanet.. http://forum.xda-developers.com/showpost.php?p=20058157&postcount=1
bodh said:
Uhh, the guide suggests using universal naked drivers, not pdanet.. http://forum.xda-developers.com/showpost.php?p=20058157&postcount=1
Click to expand...
Click to collapse
I'm trying to install the Universal Naked drivers right now, Window's find it but gives an error, It actually showed bootloader drivers too
It's saying
windows found driver software for your device but encoutered an error while attempting to install it.
google galaxy nexus bootloader interface.
the hash for the file is not present in the specified catalog file. the file is likely corrupt of the victim of tampering.
if you know the manufacter of your device, you can visit its website and check support section for driver software.
So.... What now.
Are you on windows 8? There are links to full write ups on the drivers in efrant's guide, pertaining to many different situations. With all the driver issues i've heard of, i'm glad to not need any!
bodh said:
Are you on windows 8? There are links to full write ups on the drivers in efrant's guide, pertaining to many different situations. With all the driver issues i've heard of, i'm glad to not need any!
Click to expand...
Click to collapse
Yeah I am on Win8 Which is bull****.
I'm not as new to this game as it may seem, And it barely makes any sense.
I've rooted many many HTC phones in my time.
I'm tempted to install windows 7 just to get this taken care of. But that's soooo much of a hassle.
Hope you found this and it does the trick: http://forum.xda-developers.com/showpost.php?p=33463359&postcount=109
I'm now typing this message from Windows 7.
I'm willing to endure the hassle to get this beautiful device off from the stock rom
And I had already done that last thing you posted before anything else as soon as I realized that the drivers wouldn't even open to install
FINALLY got it thanks to Windows 7.

Help! Nexus will not boot

I know this question has been answered hundreds of times but I can't figure this out on my own. I used the stickies above and it still wont work
I went to flash MMuzy Rom and i flashed the ToroPlus instead of Toro and my Clockwork mod deleted my back up.
ADB Wont push to my phone for some reason either, a list of prompts comes up in the CMD promp.
Please please help
Thanks
did you wipe before flashing the rom?
syntax for adb
adb push c:\locationoffile\file.zip \sdcard\
Yes I did and i used that and nothing, I am trying to use the GNEX Tool but it is stuck on Waiting for Device
good god. not another toolkit user.
you need to install the correct drivers.
Zepius said:
good god. not another toolkit user.
you need to install the correct drivers.
Click to expand...
Click to collapse
I don't usually use the tool kit
I made a human mistake and flashed the wrong rom.
Zepius said:
good god. not another toolkit user.
you need to install the correct drivers.
Click to expand...
Click to collapse
didnt you hear?
every time someone uses the toolkit, an angel gets its wings....
using the toolkit will stop world hunger and provide world peace....
using the toolkit absolves anyone of needing ANY knowledge to actually troubleshoot or fix their device....
screenkeyx said:
I don't usually use the tool kit
I made a human mistake and flashed the wrong rom.
Click to expand...
Click to collapse
just do this: http://forum.xda-developers.com/showthread.php?t=1626895
Zepius said:
just do this: http://forum.xda-developers.com/showthread.php?t=1626895
Click to expand...
Click to collapse
How can I use this when my phone won't actually boot? I am in clockwork mod and my phone wont pop up on my computer
screenkeyx said:
How can I use this when my phone won't actually boot? I am in clockwork mod and my phone wont pop up on my computer
Click to expand...
Click to collapse
did you even read it?
no you couldnt have since you didnt even read the part of using the bootloader (fastboot) to flash everything.
Zepius said:
did you even read it?
no you couldnt have since you didnt even read the part of using the bootloader (fastboot) to flash everything.
Click to expand...
Click to collapse
Sorry I am extremely stressed out of this and have skimmed it a lot due to people walking in and out of my office
Pirateghost said:
didnt you hear?
every time someone uses the toolkit, an angel gets its wings....
using the toolkit will stop world hunger and provide world peace....
using the toolkit absolves anyone of needing ANY knowledge to actually troubleshoot or fix their device....
Click to expand...
Click to collapse
I heard that if you enter "up up down down left right left right b a start select" into the toolkit it gives your phone infinite RAM.
Issue resolved.
I used the Gnex tool and restored with fast boot.
Thanks for the not funny joke
.....
Zepius said:
good god. not another toolkit user.
you need to install the correct drivers.
Click to expand...
Click to collapse
OMG he used a tool kit, he's so inferior. You might as well call him stupid...
cctoro said:
OMG he used a tool kit, he's so inferior. You might as well call him stupid...
Click to expand...
Click to collapse
Lazy or ignorant would be more accurate. Probably a bit of both.
cctoro said:
OMG he used a tool kit, he's so inferior. You might as well call him stupid...
Click to expand...
Click to collapse
and he learns nothing by using it so he cant even troubleshoot basic problems
Zepius said:
and he learns nothing by using it so he cant even troubleshoot basic problems
Click to expand...
Click to collapse
You know I always thought this community was a good spot to ask questions and get help.
Seems like you guys are no different than fanboys on an Iphone forum.
Have fun jerking your phones off in ADB settings and SDK
screenkeyx said:
You know I always thought this community was a good spot to ask questions and get help.
Seems like you guys are no different than fanboys on an Iphone forum.
Have fun jerking your phones off in ADB settings and SDK
Click to expand...
Click to collapse
Actually this is a developers website.
Not a support forum for making your device cool
Sent from my Nexus 7 using Tapatalk HD
screenkeyx said:
You know I always thought this community was a good spot to ask questions and get help.
Seems like you guys are no different than fanboys on an Iphone forum.
Have fun jerking your phones off in ADB settings and SDK
Click to expand...
Click to collapse
you know i always thought people who came to this site were willing to learn and better themselves with knowledge
seems like you (and most users now days) are no different. unwilling to learn and even accept answers given to you.
have fun relying on toolkits to get you out of trouble. you will receive no more help from me.

[Q] May have bricked my N7 (deb)

So, first, the moral of this story is don't do stuff like this at 2AM after a long day at work.
Tonight, I decided to root my N7 and mess around with a few different roms. Well, apparently I didn't read pages carefully enough because I am now the proud owner of a deb tablet with a flo bootloader on it. My fastboot screen reads:
PRODUCT NAME - deb
VARIANT - deb 32G
...
BOOTLOADER VERSION - FLO-04.02
BASEBAND VERSION - DEB-GOO_2.37.0_1024
I realized this when trying to install CM11, and got errors saying the package was for deb but device is flo.
I've tried to flash factory, but it still leaves me with the incorrect bootloader. FWIW, I'm doing this on a Mac, and won't have access to a PC for at least a few days. Any help would be really appreciated
jahames said:
So, first, the moral of this story is don't do stuff like this at 2AM after a long day at work.
Tonight, I decided to root my N7 and mess around with a few different roms. Well, apparently I didn't read pages carefully enough because I am now the proud owner of a deb tablet with a flo bootloader on it. My fastboot screen reads:
PRODUCT NAME - deb
VARIANT - deb 32G
...
BOOTLOADER VERSION - FLO-04.02
BASEBAND VERSION - DEB-GOO_2.37.0_1024
I realized this when trying to install CM11, and got errors saying the package was for deb but device is flo.
I've tried to flash factory, but it still leaves me with the incorrect bootloader. FWIW, I'm doing this on a Mac, and won't have access to a PC for at least a few days. Any help would be really appreciated
Click to expand...
Click to collapse
Have you just tried flashing the bootloader independently? Instead of flashing the full factory package?
On Mac the command will be ./fastboot flash bootloader <name of bootloader>.img
Hope this helps?
Stewart
StuMcBill said:
Have you just tried flashing the bootloader independently? Instead of flashing the full factory package?
On Mac the command will be ./fastboot flash bootloader <name of bootloader>.img
Hope this helps?
Stewart
Click to expand...
Click to collapse
Yeah...gave that a shot too. Flash works, but when I reboot, it still gives me the flo bootloader
jahames said:
Yeah...gave that a shot too. Flash works, but when I reboot, it still gives me the flo bootloader
Click to expand...
Click to collapse
Hmmm, weird! Are you totally sure you haven't downloaded the flo factory image by mistake? I know you will have checked already, but I can't really think of anything else?
Maybe try flashing an older bootloader version?
StuMcBill said:
Hmmm, weird! Are you totally sure you haven't downloaded the flo factory image by mistake? I know you will have checked already, but I can't really think of anything else?
Maybe try flashing an older bootloader version?
Click to expand...
Click to collapse
Was working with the 4.4.2 image. Going to give the 4.4 a shot now
Same thing with 4.4...still stuck with the flo bootloader
Ok, I was able to flash back to stock, but when trying to flash the CM11 deb image, I got the same error, saying that the package is for deb but this is a flo. Help please?
jahames said:
Ok, I was able to flash back to stock, but when trying to flash the CM11 deb image, I got the same error, saying that the package is for deb but this is a flo. Help please?
Click to expand...
Click to collapse
You flashed a recovery for flo. Flash one for deb.
Edit:
http://techerrata.com/browse/twrp2/deb
Reasonably sure I had a deb recovery, but apparently redownloading and reflashing the CWM image did the trick. Thanks!
if you ever have problems try nexus root toolkit. It works wonders if you ever severely mess up any nexus device.
Wug is also really good for this.
Sent from my Nexus 4 using xda app-developers app
same issue
Richieboy67 said:
Wug is also really good for this.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
I am sorry what is WUG, today a guy arrived to my shop with the same problem, wonder if anyone has a solution? thanks
skfalco said:
I am sorry what is WUG, today a guy arrived to my shop with the same problem, wonder if anyone has a solution? thanks
Click to expand...
Click to collapse
Wug's has a toolkit. I prefere fastboot over toolkits.
Sent from my Nexus 7 Flo running Odex SinLess ROM 4.4.2 with ElementalX kernel using XDA Premium 4 mobile app
skfalco said:
I am sorry what is WUG, today a guy arrived to my shop with the same problem, wonder if anyone has a solution? thanks
Click to expand...
Click to collapse
It is here
http://www.wugfresh.com/
It is a toolkit that makes these things very easy. I have used this many times and have never had any issues with it.
---------- Post added at 09:52 PM ---------- Previous post was at 09:50 PM ----------
LinearEquation said:
Wug's has a toolkit. I prefere fastboot over toolkits.
Sent from my Nexus 7 Flo running Odex SinLess ROM 4.4.2 with ElementalX kernel using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Well for beginners the toolkits make things very simple. This one has been around for a very long time and is very stable. I have never had any issues with this at all.
Just have to be sure you follow the simple instructions and make the right selections in the menus.. easy peasy..
Richieboy67 said:
Well for beginners the toolkits make things very simple. This one has been around for a very long time and is very stable. I have never had any issues with this at all.
Just have to be sure you follow the simple instructions and make the right selections in the menus.. easy peasy..
Click to expand...
Click to collapse
I'm not doubting wug's toolkit. He obviously does a great job with it. I was new once too and I know once I discovered how easy it was to use commands it was like a new world. No more waiting on scripts and hoping tool kits would be updated, etc. Everyone has to learn and so I always offer fastboot options. There is also something to be said about working and earning your way to a mod versus a quick one click. My opinion, and you know what they say about opinions :good:
LinearEquation said:
I'm not doubting wug's toolkit. He obviously does a great job with it. I was new once too and I know once I discovered how easy it was to use commands it was like a new world. No more waiting on scripts and hoping tool kits would be updated, etc. Everyone has to learn and so I always offer fastboot options. There is also something to be said about working and earning your way to a mod versus a quick one click. My opinion, and you know what they say about opinions :good:
Click to expand...
Click to collapse
Yes, I agree in some ways but not everyone wants to mess around all the time. Some people just want to take care of it and forget about it.
Personally I work with php,html,mysql and I also have to use ssh commands every day. When doing something simple such as a rom change I just prefer to open the toolkit and not worry about commands.
I agree if you plan on getting deeply into it then it would be best to learn everything and not reply on the toolkits.
Just my opinion though and I was talking about someone who may be doing this for the first time. Commands and the instructions can be very confusing when doing any of this for the first time.
Richieboy67 said:
Yes, I agree in some ways but not everyone wants to mess around all the time. Some people just want to take care of it and forget about it.
Personally I work with php,html,mysql and I also have to use ssh commands every day. When doing something simple such as a rom change I just prefer to open the toolkit and not worry about commands.
I agree if you plan on getting deeply into it then it would be best to learn everything and not reply on the toolkits.
Just my opinion though and I was talking about someone who may be doing this for the first time. Commands and the instructions can be very confusing when doing any of this for the first time.
Click to expand...
Click to collapse
Relying on a toolkit can be disastrous because not all toolkits are alike and I have seen some brick devices. You don't have to want to get "deep" into Android to learn a little something. Some want a quick fix with no understanding of what they're doing do and others want to learn what's going on. There are many tablets that can only be restored with fastboot commands because no toolkit exists.
LinearEquation said:
Relying on a toolkit can be disastrous because not all toolkits are alike and I have seen some brick devices. You don't have to want to get "deep" into Android to learn a little something. Some want a quick fix with no understanding of what they're doing do and others want to learn what's going on. There are many tablets that can only be restored with fastboot commands because no toolkit exists.
Click to expand...
Click to collapse
While not disastrous, I kind of know what you mean, I started with Wug's (and it is a great toolkit), but once I flashed my own kernel (I used francos app to autoflash so did not have to use recovery or fastboot), I did not realize that by using Wug's a week later that it would flash over that kernel to run those commands and NOT replace francos (I found I was back on stock), lucky by then I had learned enough to recover and no damage was done, but it does point out that my reliance had caused me more work and a bit of worry in the long run.
Still Wug's NRT is a great toolkit...but it should be used as a tool, not a replacement for knowing what to do without it.

Categories

Resources