[Q] help rooting nexus 6 using crunchbang linux - Nexus 6 Q&A, Help & Troubleshooting

I've got java and SDK tools properly installed. I've tried several methods. Always gives error command fastboot not found. I'm on crunchbang Linux

If you go to general > sticky roll-up thread....
You'll find my fastboot thread which tells you how to use fastboot correctly.

@NiNJAwitaRaZR,
Did you type ./ before the fastboot command?

cam30era said:
@NiNJAwitaRaZR,
try using sudo ./ before the fastboot command.
Click to expand...
Click to collapse
You don't need sudo for fastboot. But you do need to know where the fastboot binary is.
Or he can use an adb and fastboot installer script which should put it in a known PATH

rootSU said:
You don't need sudo for fastboot. But you do need to know where the fastboot binary is.
Or he can use an adb and fastboot installer script which should put it in a known PATH
Click to expand...
Click to collapse
Aahh, OK.
I still prefer to do things manually, so that I understand how it works.

cam30era said:
Aahh, OK.
I still prefer to do things manually, so that I understand how it works.
Click to expand...
Click to collapse
Me too. Personally I just drop them directly in /usr/bin

Related

Many Questions in 1 Thread

1) I just got Ubuntu on my computer. How do I use adb on it? I have already put the file in that udev folder and debugging is on already. What files do I need and what do I run in terminal?
2) Adb&fastboot do not work for me anymore. It always says "waiting for device" but nothing happens
3) Are there any alternates to applying your nandroid backups other than fastboot?
4) I just got LucidREM's new JFv1.51 but whenever I receive a call my phone vibrates then just loses all connection and has me input my 4 digit sim card key to unlock it. Anyone else get this problem?
5) What is the latest system recovery utility build? Mine is JFv1.42
First, make sure you have set up the adb compatibility for your distribution:
http://telyas.com/wordpress2/2009/04/29/ubuntu-jaunty-and-android-adb/
Note this is for jaunty.
do you have the android SDK? you need to download it, then run adb from the tools folder, or add it to your .bashrc profile so that you can type "adb" from anywhere.
http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-1.5_r2.zip
http://developer.android.com/sdk/1.5_r2/installing.html
There are no "image all" alternates to fastboot. If you need a compiled for linux fastboot (32 bit), here:
http://yochai.dyndns.org:8888/android/fastboot
I can't help you with the last one.
yochaigal said:
First, make sure you have set up the adb compatibility for your distribution:
http://telyas.com/wordpress2/2009/04/29/ubuntu-jaunty-and-android-adb/
Note this is for jaunty.
do you have the android SDK? you need to download it, then run adb from the tools folder, or add it to your .bashrc profile so that you can type "adb" from anywhere.
http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-1.5_r2.zip
http://developer.android.com/sdk/1.5_r2/installing.html
There are no "image all" alternates to fastboot. If you need a compiled for linux fastboot (32 bit), here:
http://yochai.dyndns.org:8888/android/fastboot
I can't help you with the last one.
Click to expand...
Click to collapse
So I installed the adb. It is in /android/tools/
How do I get to it
either use
Code:
cd /android/tools
./adb devices
or
Code:
sudo cp /android/tools/adb /usr/bin/adb
adb devices
either one will work. if you use the second one you can use adb from any directory. Also the latest recovery image for the G1 is 1.43 but i still use 1.42 since i don't think there is a differnce
tubaking182 said:
either use
Code:
cd /android/tools
./adb devices
or
Code:
sudo cp /android/tools/adb /usr/bin/adb
adb devices
either one will work. if you use the second one you can use adb from any directory. Also the latest recovery image for the G1 is 1.43 but i still use 1.42 since i don't think there is a differnce
Click to expand...
Click to collapse
Thanks ill try that out later.
Also, how can I restore my boot.img, system.img, data.img without fastboot?
Abolfazl said:
Thanks ill try that out later.
Also, how can I restore my boot.img, system.img, data.img without fastboot?
Click to expand...
Click to collapse
you can't
tubaking182 said:
you can't
Click to expand...
Click to collapse
Ok I have fastboot and I put it in /android/tools
I did sudo cp /android/tools/fastboot /usr/bin/fastboot
But when I run "fastboot" I get "bash: /usr/bin/fastboot: Permission denied"
Any help?
Abolfazl said:
Ok I have fastboot and I put it in /android/tools
I did sudo cp /android/tools/fastboot /usr/bin/fastboot
But when I run "fastboot" I get "bash: /usr/bin/fastboot: Permission denied"
Any help?
Click to expand...
Click to collapse
use: sudo fastboot
korndub said:
use: sudo fastboot
Click to expand...
Click to collapse
sudo: fastboot: command not found
Fastboot is in /usr/bin :\
use the path
either try specifying the full path to fastboot in your sudo command, or ensure that sudo is installed, which should obtain, since Ubuntu installs it by default
arqueware said:
either try specifying the full path to fastboot in your sudo command, or ensure that sudo is installed, which should obtain, since Ubuntu installs it by default
Click to expand...
Click to collapse
Alright I got fastboot working.
Now my only problem is that whenever I use fastboot to restore the 3 .img's my phone just goes to the android image and it keeps on cycling the boot

Restore Recovery Image?

I'm trying to install Cyanogen 4.1.99, but I think I screwed up. According to Fingerlickin I need to install cyanogen's recovery image. First, before I even tried this endeavor, I was running Cyanogen 4.11.1 with the EnochXTra theme. I flashed the recovery image as instructed but, when I rebooted (probably where I messed up) I didn't see the usual recovery mode menu, just some triangle with a "!" in it facing a phone/pda (and NO text). Now I can't flash update.zip files. (Yes I tried ALT+S).
Also Fingerlickin pointed me towards fastboot. I know it's the key right now, but I don't know where to go from here. I think I still have root because I have adb running and could "su" without any complaints.
(I decided to start a new thread because the one I was in had a different problem. Also I would search the forum but I don' know what to search for.)
Tactical Fart said:
I'm trying to install Cyanogen 4.1.99, but I think I screwed up. According to Fingerlickin I need to install cyanogen's recovery image. First, before I even tried this endeavor, I was running Cyanogen 4.11.1 with the EnochXTra theme. I flashed the recovery image as instructed but, when I rebooted (probably where I messed up) I didn't see the usual recovery mode menu, just some triangle with a "!" in it facing a phone/pda (and NO text). Now I can't flash update.zip files. (Yes I tried ALT+S).
Also Fingerlickin pointed me towards fastboot. I know it's the key right now, but I don't know where to go from here. I think I still have root because I have adb running and could "su" without any complaints.
(I decided to start a new thread because the one I was in had a different problem. Also I would search the forum but I don' know what to search for.)
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=523558
instructions are in the OP. if you can boot into the rom, use
Code:
flash_image recovery /sdcard/cm-recovery-1.4.img
after putting the new recovery on your SD card
if that doesnt work
Code:
fastboot erase recovery
fastboot flash recovery cm-recovery-1.4.img
with fastboot
instructions to set up fastboot
http://forum.xda-developers.com/showthread.php?t=532719
you shouldnt need to flash the SPL if you have HardSPL or DangerSPL already. Just make sure you have the right drivers, and use the 1.6 SDK since its already out
If you have any others questions or need clarification, post here again
When I was in the rom, I used the terminal emulator, and when I tried to use "su" it said "uid 10031 not allowed to su". I tried "flash_image recovery /sdcard/cm-recovery-1.4.img" under adb and that flopped. Under fast boot I get "Error: cannot load 'cm-recovery-1.4.img'.
*Is nervous*
Tactical Fart said:
When I was in the rom, I used the terminal emulator, and when I tried to use "su" it said "uid 10031 not allowed to su". I tried "flash_image recovery /sdcard/cm-recovery-1.4.img" under adb and that flopped. Under fast boot I get "Error: cannot load 'cm-recovery-1.4.img'.
*Is nervous*
Click to expand...
Click to collapse
what spl do you have and is the recovery.img in the folder you are using fastboot from?
david1171 said:
what spl do you have and is the recovery.img in the folder you are using fastboot from?
Click to expand...
Click to collapse
He has the DangerSPL
and do as david said. the cm recovery image must be in the same folder as the fastboot executable
B-man007 said:
He has the DangerSPL
and do as david said. the cm recovery image must be in the same folder as the fastboot executable
Click to expand...
Click to collapse
reading fail, that's what little sleep for the past few days does
i have a android folder on my C:\ drive with fastboot.exe, adb.exe, and the AdbWinApi.dll so that is the folder i use whenever i need fastboot, i keep the adb.exe and AdbWinApi.dll file in my system32 folder so i can use adb easier.
david1171 said:
reading fail, that's what little sleep for the past few days does
i have a android folder on my C:\ drive with fastboot.exe, adb.exe, and the AdbWinApi.dll so that is the folder i use whenever i need fastboot, i keep the adb.exe and AdbWinApi.dll file in my system32 folder so i can use adb easier.
Click to expand...
Click to collapse
O dont worry he didnt mention it in this thread, it was in the other thread.
I do the same thing haha
@Technical Fart
Don't worry to much, your phone is still booting, its not bricked. Just take it slow and read everything carefully. since you got fastboot already set up, the hardest part is over.
Problem Fixed!!! I didn't know that you had to have the image in that same directory that you had the fastboot command in. Thank-you so much! It feels good to be in a cyanogen rom again.
Tactical Fart said:
Problem Fixed!!! I didn't know that you had to have the image in that same directory that you had the fastboot command in. Thank-you so much! It feels good to be in a cyanogen rom again.
Click to expand...
Click to collapse
NP
Can you please put [SOLVED] in the title?
B-man007 said:
NP
Can you please put [SOLVED] in the title?
Click to expand...
Click to collapse
How do I do that?
Tactical Fart said:
How do I do that?
Click to expand...
Click to collapse
select edit, go advanced, edit the title to include [SOLVED]
ADB working...not so much for fastboot
Hey guys,
I can't seem to get fastboot up and running. My adb is running fine but in all my noobishness I don't know how to get the recovery image running using adb. Is there anyway to do it or am I gonna have to figure out how to get the fastboot going?
to get fastboot going, you phone has to be in bootloader, in fastboot usb mode, and you need to be operating from a folder that has the fastboot.exe, adb.exe and the AdbWinApi.dll (for windows at least). then whatever you are wanting to transfer via fastboot needs to be in that folder as well.
I have all of those things in the tools file. Fastboot shows on my phone but when I type fastboot devices it shows nothing. Also, I tried doing the fastboot commands and it said it is waiting for the device.
When I type fastboot shell to get in to su it gives me the option list as if I just typed in fastboot.
Should I redo the whole adb install process?
Ok, tried going another method and downgrading or changing my rom...no go. Looks like it keeps aborting each installation. This is getting really lame really fast.
Edit: I fixed the problem with my fastboot finally. Apparently when I plugged up my phone in fastboot it recognized it as a mass storage device so I had to uninstall those drivers at startup and reinstall the adb drivers. I think I've spent 4 hours total on trying to fix what happened after this rom and sadly enjoyed the challenge.
simplyTravis said:
Ok, tried going another method and downgrading or changing my rom...no go. Looks like it keeps aborting each installation. This is getting really lame really fast.
Edit: I fixed the problem with my fastboot finally. Apparently when I plugged up my phone in fastboot it recognized it as a mass storage device so I had to uninstall those drivers at startup and reinstall the adb drivers. I think I've spent 4 hours total on trying to fix what happened after this rom and sadly enjoyed the challenge.
Click to expand...
Click to collapse
good to see you got the answer yourself
trust me, those long seemingly pointless hours troubleshooting pays off in the long run. you have a better understanding of how everything works
Hi - I have flash_image in the sdk tools folder but when I do:
ad push flash_image /system/bin is says cannot stat no such file or directory.
Please help!
Erris Bueller said:
Hi - I have flash_image in the sdk tools folder but when I do:
ad push flash_image /system/bin is says cannot stat no such file or directory.
Please help!
Click to expand...
Click to collapse
did you mount the /system directory?
from CMD:
adb shell
#mount -a
then try it.
afterwards then
#umount -a

Linux programs

What programs can be used in Linux in order to SBF or root the D3?
bogdan_wrc said:
What programs can be used in Linux in order to SBF or root the D3?
Click to expand...
Click to collapse
Moto-fastboot for Linux.
Also if you have a xt860 zergrush has a Linux script
Sent from my XT860 using xda premium
ok. thanks for this answer.
so..more exactly what file from here?
http://forum.xda-developers.com/showpost.php?p=15020756&postcount=1
and how to install it?
Depends on if you have 32 or 64 bit system. The moto-fastboot is 64 and moto-fastboot32 is 32 bit, that's the one I use. Download the one you want, unzip it and place it in a folder that's in your path, like /bin or something. Then you just use it in the terminal. Just typing moto-fastboot32 while give you the help. Flashing a partition is
Moto-fastboot32 flash system system.img
Or
Moto-fastboot32 flash preinstall preinstall.img
Sent from my XT860 using xda premium
thanks.
that will be much easier than doing it on my work notebook )) with windows
i cannot place it in my bin folder. something regarding permissions. possibly i dont have root. i placed in on desktop.
and when i try to type moto-fastboot32 in terminal, i get moto-fastboot32: command not found error. any help?
bogdan_wrc said:
i cannot place it in my bin folder. something regarding permissions. possibly i dont have root. i placed in on desktop.
and when i try to type moto-fastboot32 in terminal, i get moto-fastboot32: command not found error. any help?
Click to expand...
Click to collapse
Permissions will need to be added for execution and be sure you cd to the correct location.
cd ~/Desktop
chmod 755 moto-fastboot32
./moto-fastboot32
ok. now i get the options. but how do i choose one? what command shall i use?
thank you for your patience.
bogdan_wrc said:
ok. now i get the options. but how do i choose one? what command shall i use?
thank you for your patience.
Click to expand...
Click to collapse
You can follow instructions here http://forum.xda-developers.com/showthread.php?t=1295839&highlight=linux+tut
i know. but i dont get it from there.
i get usage: fastboot [ <option> ] <command> and a list of commands and options.
how do i chose devices...for example? to see the devices connected?
bogdan_wrc said:
i know. but i dont get it from there.
i get usage: fastboot [ <option> ] <command> and a list of commands and options.
how do i chose devices...for example? to see the devices connected?
Click to expand...
Click to collapse
Not sure if you can, however keep in mind that device must be in fastboot mode. All I do is put device in fastboot, plug it in and run a command
Sent from my XT860 using xda premium

Flashable zip of Bootloader 4.18 for grouper & tilapia

Not working got to made another one when i be back home.
I have a problem with the computer at work all my zip file are no more working.
I don't know why.
I will make another zip soon
Re: [delete this thread]‎Flashable zip of Bootloader 4.18 for grouper & tilapia
Yeah works well!
Edit: thought it worked. Stayed on 4.13
Sent from my Nexus 7 using xda premium
[email protected]_OC said:
Not working got to made another one when i be back home.
I have a problem with the computer at work all my zip file are no more working.
I don't know why.
I will make another zip soon
Click to expand...
Click to collapse
Thanks man!
Gave up on fastboot. Dunno why cant get it running!
I tried using fastboot but cant get it to work.
1) Create a folder called fastboot, copy the 4 files + bootloader img into it, and move the folder into C drive.
2) run cmd
3) enter cd C:\fastboot\
4) adb devices. check correct.
5) adb reboot-bootloader
6) fastboot devices. check correct.
7) fastboot flash bootloader bootloader-grouper-4.18.img
8) nth happened.
what went wrong?
o0boiboi0o said:
Thanks man!
Gave up on fastboot. Dunno why cant get it running!
I tried using fastboot but cant get it to work.
1) Create a folder called fastboot, copy the 4 files + bootloader img into it, and move the folder into C drive.
2) run cmd
3) enter cd C:\fastboot\
4) adb devices. check correct.
5) adb reboot-bootloader
6) fastboot devices. check correct.
7) fastboot flash bootloader bootloader-grouper-4.18.img
8) nth happened.
what went wrong?
Click to expand...
Click to collapse
I think you forgot unlock bootloader typing
fastboot oem unlock
Enviado de meu Nexus 7 usando o Tapatalk 2
eric-filth said:
I think you forgot unlock bootloader typing
fastboot oem unlock
Enviado de meu Nexus 7 usando o Tapatalk 2
Click to expand...
Click to collapse
oh! coz i saw there stated unlocked.
is it a must to type that?
o0boiboi0o said:
oh! coz i saw there stated unlocked.
is it a must to type that?
Click to expand...
Click to collapse
No, if are unlocked you dont need
Enviado de meu Nexus 7 usando o Tapatalk 2
o0boiboi0o said:
Thanks man!
Gave up on fastboot. Dunno why cant get it running!
I tried using fastboot but cant get it to work.
1) Create a folder called fastboot, copy the 4 files + bootloader img into it, and move the folder into C drive.
2) run cmd
3) enter cd C:\fastboot\
4) adb devices. check correct.
5) adb reboot-bootloader
6) fastboot devices. check correct.
7) fastboot flash bootloader bootloader-grouper-4.18.img
8) nth happened.
what went wrong?
Click to expand...
Click to collapse
This worked for me fine. How adb devices is working for you? I think when you are in fastboot adb doesnt work.......Maybe i am wrong.
nickporwal said:
This worked for me fine. How adb devices is working for you? I think when you are in fastboot adb doesnt work.......Maybe i am wrong.
Click to expand...
Click to collapse
I think you hit sth!
when tablet is on, adb devices give me return (serial number+device). But, when i adb reboot-bootloader, adb devices give me nth, instead fastboot devices give me return.
When you type in adb devices it returns your device but you'll notice that it says offline next to it.
Therefore you can't send any adb commands to it.
It's a new security measure apparently, the solutions can be found in the forums.
Sent from my Incredible S using xda app-developers app
where are the zips
o0boiboi0o said:
Thanks man!
Gave up on fastboot. Dunno why cant get it running!
I tried using fastboot but cant get it to work.
1) Create a folder called fastboot, copy the 4 files + bootloader img into it, and move the folder into C drive.
2) run cmd
3) enter cd C:\fastboot\
4) adb devices. check correct.
5) adb reboot-bootloader
6) fastboot devices. check correct.
7) fastboot flash bootloader bootloader-grouper-4.18.img
8) nth happened.
what went wrong?
Click to expand...
Click to collapse
You must make sure to put the files you are flashing in the same folder that fastboot is located, and also to cd to that folder in command prompt.
What error were you getting exactly?
[email protected]_OC said:
Not working got to made another one when i be back home.
I have a problem with the computer at work all my zip file are no more working.
I don't know why.
I will make another zip soon
Click to expand...
Click to collapse
I too tried to create a flashable zip from the OTA, but it doesn't stick. I had to use fastboot
Sent from my Nexus 7
o0boiboi0o said:
I think you hit sth!
when tablet is on, adb devices give me return (serial number+device). But, when i adb reboot-bootloader, adb devices give me nth, instead fastboot devices give me return.
Click to expand...
Click to collapse
I am experiencing the same problem. Guess I'll have to wait for the zip version...
I used this guide for the adb: http://forum.xda-developers.com/showthread.php?t=1830108
Adinaky said:
I am experiencing the same problem. Guess I'll have to wait for the zip version...
I used this guide for the adb: http://forum.xda-developers.com/showthread.php?t=1830108
Click to expand...
Click to collapse
I am in the same boat as well. I am having weird adb issues that won't allow me to fastboot either. I am gonna reinstall SDK and see if i can adb working.
Sent from my Nexus 7 using xda premium
Tone_Capone said:
You must make sure to put the files you are flashing in the same folder that fastboot is located, and also to cd to that folder in command prompt.
What error were you getting exactly?
Click to expand...
Click to collapse
Dont think there is any error. It kept stating waiting for device but nth happened on my device side. Seems like the command get thru but nth is done.
Oo more and more ppl are having the same prob as me! :victory: Lol
Lets wait for TS's flashable file!
http://forum.xda-developers.com/showpost.php?p=37989110&postcount=1650
waiting for a linux version, i hate windows
If you don't have a working adb, you should try this guide: http://www.teamandroid.com/2012/07/30/how-to-set-up-adb-fastboot-with-android-sdk/ , it's the only one that worked for me.
Sent from my Nexus 7 using xda premium
weird.
I tried fastboot again. Ok, running smoothly at first, but in the end, i got this error:
writing 'bootloader'...
FAILED <status read failed <too many links>>
So i closed the cmd (bcoz when i tried fastboot devices, it shows ????? devices. Then when i forced closed my device and reboot into bootloader, it showed 4.18 as the bootloader version but under SIGNING, it is not defined yet.
Is this correct?
o0boiboi0o said:
weird.
I tried fastboot again. Ok, running smoothly at first, but in the end, i got this error:
writing 'bootloader'...
FAILED <status read failed <too many links>>
So i closed the cmd (bcoz when i tried fastboot devices, it shows ????? devices. Then when i forced closed my device and reboot into bootloader, it showed 4.18 as the bootloader version but under SIGNING, it is not defined yet.
Is this correct?
Click to expand...
Click to collapse
This happened to me when my adb was not working properly, it showed 4.18, but I fixed the adb and installed the bootloader again, just to be sure.
Sent from my Nexus 7 using xda premium
Anyone an idea, why flashing the bootloader does not work with the zip files?
I am somewhere in nowhere and can not fastboot, have only my Nexus 3G with me. Its on 4.2.2 but bootloader still 4.13. Used this ROM:
[ROM][Factory Image][4.2.2] Nakasig -::- Odex, Deodex, Rooted -::- teshxx (02/14/13)
to update. Worked apart of bootloader and radio.

Fastboot commands for Mac.....?

I'm trying to find a guide or something to help me with fastboot commands for Mac. I'm going to be trying to flash the new radio, and I don't want to mess it up.. If anyone could point me in the right direction I would much appreciate it.
It's roughly the same as windows CD to the directory where your ADB and Fastboot are and flash away. Use this guide, profit.
http://forum.xda-developers.com/showthread.php?t=1917237
jawmail said:
It's roughly the same as windows CD to the directory where your ADB and Fastboot are and flash away. Use this guide, profit.
http://forum.xda-developers.com/showthread.php?t=1917237
Click to expand...
Click to collapse
Much appreciated my friend

Categories

Resources