[Q] Fastboot problems using Ubuntu 13.04 - Motorola Photon Q 4G LTE

So I can get Fastboot to work in Windows with no problem but when I try to do the same thing in Ubuntu fastboot doesn't register at all. It just gets stuck on the "waiting for device" message yet adb works great. Any similars or solutions?

Just curious, what do you need fastboot in Linux for?
As for why it's not working, stupid question - the device is in fastboot mode, yes? Also, when you do "lsusb" before and after plugging in the device, do you notice a difference?

arrrghhh said:
Just curious, what do you need fastboot in Linux for?
As for why it's not working, stupid question - the device is in fastboot mode, yes? Also, when you do "lsusb" before and after plugging in the device, do you notice a difference?
Click to expand...
Click to collapse
Well I was upgrading my TWRP from 2.5.0.0 to the 2.6.3.0 and found that using fastboot for me seemed to be the easiest method of doing that. So I tried it in Linux first that being my prefered OS. I would rather not have to use Windows for anything if I can help it. I haven't tried the "lsusb" thing. I'll give that a shot and see what happens. And yes this is after I have done 'adb reboot bootloader' and then I switch to the Fastboot commands.

b3bluesman said:
Well I was upgrading my TWRP from 2.5.0.0 to the 2.6.3.0 and found that using fastboot for me seemed to be the easiest method of doing that. So I tried it in Linux first that being my prefered OS. I would rather not have to use Windows for anything if I can help it. I haven't tried the "lsusb" thing. I'll give that a shot and see what happens. And yes this is after I have done 'adb reboot bootloader' and then I switch to the Fastboot commands.
Click to expand...
Click to collapse
Interesting. OK, no worries mate I actually forgot about that use case! It sounds like you are doing everything correctly.
I have used fastboot on my Q on Linux in the past. Just curious, are you using the packaged versions of adb/fastboot in Ubuntu?

arrrghhh said:
Interesting. OK, no worries mate I actually forgot about that use case! It sounds like you are doing everything correctly.
I have used fastboot on my Q on Linux in the past. Just curious, are you using the packaged versions of adb/fastboot in Ubuntu?
Click to expand...
Click to collapse
I am using the adb/fastboot that came with the Android SDK bundle for Linux if that's what you mean.

b3bluesman said:
I am using the adb/fastboot that came with the Android SDK bundle for Linux if that's what you mean.
Click to expand...
Click to collapse
Hm. Have you tried the one from the repo's? Ubuntu provides a package.

arrrghhh said:
Hm. Have you tried the one from the repo's? Ubuntu provides a package.
Click to expand...
Click to collapse
I have not! I didn't know that there was one actually. Can you provide me a link?

b3bluesman said:
I have not! I didn't know that there was one actually. Can you provide me a link?
Click to expand...
Click to collapse
You just apt-get install it
http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html
Post 12.10, you don't need to add any PPA's, should be part of the Ubuntu repo's.

arrrghhh said:
You just apt-get install it
http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html
Post 12.10, you don't need to add any PPA's, should be part of the Ubuntu repo's.
Click to expand...
Click to collapse
Fantastic!! Many thanks to you my friend!!!

Related

[Q] Using Linux - is ODIN necessary, or can I still use ADB/fastboot?

Is Odin really necessary for flashing ROMs on the Sidekick, or can I keep on using adb/fastboot? Or is there a native tool for Linux for flashing ROMs for Samsung?
Other forum threads I've seen recommend running ODIN on Virtualbox, which is doable but a pain in the keister.
samandiriel said:
Is Odin really necessary for flashing ROMs on the Sidekick, or can I keep on using adb/fastboot? Or is there a native tool for Linux for flashing ROMs for Samsung?
Other forum threads I've seen recommend running ODIN on Virtualbox, which is doable but a pain in the keister.
Click to expand...
Click to collapse
odin is only used when you soft brick and flash an image to get back to stock to recover a device you flash a rom through a recovery menu
tylermaciaszek said:
odin is only used when you soft brick and flash an image to get back to stock to recover a device you flash a rom through a recovery menu
Click to expand...
Click to collapse
Thanks, but that doesn't seem to really address my question. Fr'instance, I can use fastboot on my G1 to load a new ROM easily:
Code:
fastboot update -w [Rom_Filename.zip]
Is there a reason I couldn't do this with a stock ROM on a Sidekick in case of a softbrick instead of using ODIN? I know I've done this on my G1 when it freezes on the bootlogo, which seems to be a similar state.
samandiriel said:
Thanks, but that doesn't seem to really address my question. Fr'instance, I can use fastboot on my G1 to load a new ROM easily:
Code:
fastboot update -w [Rom_Filename.zip]
Is there a reason I couldn't do this with a stock ROM on a Sidekick in case of a softbrick instead of using ODIN? I know I've done this on my G1 when it freezes on the bootlogo, which seems to be a similar state.
Click to expand...
Click to collapse
sorry i misunderstood what you were saying but to answer you question no fastboot is an htc thing only
tylermaciaszek said:
sorry i misunderstood what you were saying but to answer you question no fastboot is an htc thing only
Click to expand...
Click to collapse
Ah so! Ok. What about adb then? Shouldn't that work for any Android device?
Code:
adb shell
/sbin/recovery --wipe_data
/sbin/recovery --update_package=SDCARD:romname.zip
samandiriel said:
Ah so! Ok. What about adb then? Shouldn't that work for any Android device?
Code:
adb shell
/sbin/recovery --wipe_data
/sbin/recovery --update_package=SDCARD:romname.zip
Click to expand...
Click to collapse
i never tried it because i dont really use adb but yes i believe it should work on all android devices!
Yes that should work, test it out. the worst you can do in adb is softbrick.
Heimdall I believe its called. But the adb method looks cool. Heimdall is a comandline flashing tool
Sent from my SGH-T839 using XDA Premium App
Heimdall is the open source version of Odin, ADB is the way you want to flash roms (if you're not gonna use CWM).
sduvick said:
Heimdall is the open source version of Odin, ADB is the way you want to flash roms (if you're not gonna use CWM).
Click to expand...
Click to collapse
Yah, I saw that but my understanding is that Heimdall is for the Samsung Galaxy S only
samandiriel said:
Yah, I saw that but my understanding is that Heimdall is for the Samsung Galaxy S only
Click to expand...
Click to collapse
nope u have seen someone on the sk4g threads used it to restore their device on the SK4G!
Heimdall is for Galaxy S *Series* phones, of which we are one on the SK4g :]
sduvick said:
Heimdall is for Galaxy S *Series* phones, of which we are one on the SK4g :]
Click to expand...
Click to collapse
Aha! Yay then, all is right with the world!
If you have any more questions, especially linux questions, feel free to PM me, I love me that Tux.
sduvick said:
If you have any more questions, especially linux questions, feel free to PM me, I love me that Tux.
Click to expand...
Click to collapse
Tux the penguin? And here I thought you were strictly a platypus man - you cross-species player, you!
Meh, it's all about the beaks, everybody loves Tux!
Heimdall
Ok, so Heimdall successfully flashes my mistakes away. One more person verifying that it works.
Does anyone know how to get it to successfully make a dump so it's a bit quicker to get back to something more than stock? Seems like all of all roms are sent out for CWM, which works great till I soft-brick everything.
My only best guess on getting a good dump is adb, remount,ro, and dd it all back to the computer. Seems like a bad place to be with halting everything mid-stride.
And with all the leaked roms lately, does any seem to support fastboot? theres been a few options out now and i'm a bit leery on mucking with the boot-loader
Fastboot is only for HTC, not samsung.
Is it possible to use ADB with linux?
Yes, install the Android SDK, that includes adb.

failed rooting nexus 5

hi , my friend trying to root his device but when he try to connect his device the CF-ROOT says "waiting for device" even though it connected.
what to do ? thanks for helpers [:
ohad123454 said:
hi , my friend trying to root his device but when he try to connect his device the CF-ROOT says "waiting for device" even though it connected.
what to do ? thanks for helpers [:
Click to expand...
Click to collapse
Did he unlock the bootloader?
Sent from my XT1053 using Tapatalk
mssam said:
Did he unlock the bootloader?
Sent from my XT1053 using Tapatalk
Click to expand...
Click to collapse
haha bro that's what im trying to do .. im trying to root his device and open bootloader but i cant because it says "waiting for device" btw im useing this guide : http://www.youtube.com/watch?v=J1AKqrrf-5o
on my deivce it worked
then your drivers arent setup right.
Zepius said:
then your drivers arent setup right.
Click to expand...
Click to collapse
u can give a download for nexus 5 drivers?
ohad123454 said:
u can give a download for nexus 5 drivers?
Click to expand...
Click to collapse
the universal naked drivers work fine. you can easily find them on xda/google.
Zepius said:
the universal naked drivers work fine. you can easily find them on xda/google.
Click to expand...
Click to collapse
dude my friend got he's device with 4.4.1 ver maybe its because of that ?
ohad123454 said:
dude my friend got he's device with 4.4.1 ver maybe its because of that ?
Click to expand...
Click to collapse
N5 rooting process is the same regardless of whether the device is on 4.4 or 4.4.1 or 4.4.2
Check out the first post in these threads - both link to the drivers, and tell you exactly how to proceed.
http://forum.xda-developers.com/showthread.php?t=2507905
http://forum.xda-developers.com/showthread.php?t=2514396
jj14 said:
N5 rooting process is the same regardless of whether the device is on 4.4 or 4.4.1 or 4.4.2
Click to expand...
Click to collapse
well i tried to install drives by using this guide : http://www.android.gs/download-and-install-google-nexus-5-usb-drivers-adb-fastboot/
but i could'nt do the right click on the nexus 5 line because it didnt show me the hardware list.
ohad123454 said:
well i tried to install drives by using this guide : http://www.android.gs/download-and-install-google-nexus-5-usb-drivers-adb-fastboot/
but i could'nt do the right click on the nexus 5 line because it didnt show me the hardware list.
Click to expand...
Click to collapse
Assuming you are on a windows based computer (not Mac).
Try a different USB port. And read the first post at http://forum.xda-developers.com/showthread.php?t=2514396
If your on linux you need to run fastboot as root or run with sudo.
No need for useing any type of tool kit for rooting a nexus device.
1. Get drivers working correctly for fastboot.
2. sudo fastboot oem unlock or fastboot oem unlock
3. sudo fastboot flash recovery recovery_image.img or fastboot flash recovery recovery_image.img
4. boot phone in to android
5. copy superSU.zip to internal storage
6. adb reboot recovery
7. flash superSU.zip
8. reboot phone
9. enjoy root access.
The only drivers I got to work were the "universal drivers" found in the all in one toolkit. It's a driver issue.
ssconceptz said:
The only drivers I got to work were the "universal drivers" found in the all in one toolkit. It's a driver issue.
Click to expand...
Click to collapse
I wouldn't know. I use Linux and when I install the android toolkit from the repos it installs all the USB codes for all android phones. I never have an issue with ADB / Fastboot on any phone I hook to my laptop.
That's understandable, if the OP is on Windows this is surely the issue. I had the same problem it was annoying.
Sent from my Nexus 5 using xda app-developers app

[Q] N00B Issue: Rooting Question

My issue seems to be pretty straight forward and simple, but I've not been able to find an answer here at XDA.
I have a TF700T which I've just unlocked and would now like to root and install a custom ROM. The problem is that I don't have a Windows or Mac to work with, I have a Linux laptop.
So I'm having trouble figuring out how to root using my linux laptop, and could use some guidance please.
Yehudah said:
My issue seems to be pretty straight forward and simple, but I've not been able to find an answer here at XDA.
I have a TF700T which I've just unlocked and would now like to root and install a custom ROM. The problem is that I don't have a Windows or Mac to work with, I have a Linux laptop.
Click to expand...
Click to collapse
That's not a problem at all (it's a blessing ).
To install a custom ROM, you first need to unlock your bootloader using the app from Asus. Then you can proceed with installing the Android SDK on your PC (or at least the fastboot and adb binaries) and use fastboot to install a custom recovery, then the recovery to install a custom ROM. No need at all to root your tablet first.
_that said:
That's not a problem at all (it's a blessing ).
To install a custom ROM, you first need to unlock your bootloader using the app from Asus. Then you can proceed with installing the Android SDK on your PC (or at least the fastboot and adb binaries) and use fastboot to install a custom recovery, then the recovery to install a custom ROM. No need at all to root your tablet first.
Click to expand...
Click to collapse
So I unlocked the tablet with the Asus utility and it worked fine.
So all I have to do now is use the Android SDK (fastboot) and install TWRP, then install a ROM from there? Fantastic. Where do I find an Android SDK that works on Linux?
...feel totally lost sometimes. Sorry for the seriously noobish question(s).
Right here: http://developer.android.com/sdk/index.html
or, if your Linux distro supports it, you can just issue this command:
Code:
sudo apt-get install android-tools-fastboot
berndblb said:
Right here: http://developer.android.com/sdk/index.html
or, if your Linux distro supports it, you can just issue this command:
Code:
sudo apt-get install android-tools-fastboot
Click to expand...
Click to collapse
Thanks so much!
_that said:
Then you can proceed with installing the Android SDK on your PC (or at least the fastboot and adb binaries)
Click to expand...
Click to collapse
Should it be a dll file instead of binaries?
LetMeKnow said:
Should it be a dll file instead of binaries?
Click to expand...
Click to collapse
DLLs on Linux?
_that said:
DLLs on Linux?
Click to expand...
Click to collapse
Windowerrr, I guess...

Wiped N5 now NO OS! Have TWRP

Hello,
I meant to factory restore my rooted N5 and on the advanced TWRP option I chose wipe data. Now I have no OS. I'm not finding a guide on how to install the stock 4.4.2 onto my N5 using a Mac. Is there a process that shows how to do that exactly for a Mac?
thx,
Mark
Install windows on your mac using bootcamp or VMware. just use windows 7/8 trial.
Sent from my Nexus 5 using Tapatalk
+1 i think thts your best bet.. :good:
lesp4ul said:
Install windows on your mac using bootcamp or VMware. just use windows 7/8 trial.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
eodchn said:
+1 i think thts your best bet.. :good:
Click to expand...
Click to collapse
Yes, I have VMWare and Windows 7 installed. But, what is the process to get the stock rom back onto my phone? I've got TWRP and able to get into Bootloader mode.
s1w999 said:
Yes, I have VMWare and Windows 7 installed. But, what is the process to get the stock rom back onto my phone? I've got TWRP and able to get into Bootloader mode.
Click to expand...
Click to collapse
Look in the general section and at the top is the guide you need to get sorted, good luck and dont panic you haven't killed it.
You don't have to do all that just sideload a stock rom onto the phone
lesp4ul said:
Install windows on your mac using bootcamp or VMware. just use windows 7/8 trial.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Lol
Mac is fully supported by Android tools
Sent from my Nexus 5
Jables2915 said:
You don't have to do all that just sideload a stock rom onto the phone
Click to expand...
Click to collapse
Afaik know you can`t sideload a stock image, only flash in fastboot. Correct me if i`am wrong though. OP can sideload a custom rom and from there return to stock or as @Pirateghost said just use the sdk to flash the image straight away.
gee2012 said:
Afaik know you can`t sideload a stock image, only flash in fastboot. Correct me if i`am wrong though. OP can sideload a custom rom and from there return to stock.
Click to expand...
Click to collapse
100% Correct, OP can choose to do it that way or flash stock image in fastboot there's no need to use Windows at all.
Not working
Jables2915 said:
You don't have to do all that just sideload a stock rom onto the phone
Click to expand...
Click to collapse
Well, I have the Nexus Android Toolkit for oneclick root etc. I don't believe I have USB debugging "on" and I have no OS on the phone to set it to "on". The toolkit will not install the Stock rom is downloaded because is says there's a name mismatch. I choose the option to change name etc and install anyway and it just loops with the same mismatch issue.
Really frustrating. How do I download a .zip file of the rom so I can flash it. All I get are .tgz files when I download the stock rom.
Any ideas?
s1w999 said:
Well, I have the Nexus Android Toolkit for oneclick root etc. I don't believe I have USB debugging "on" and I have no OS on the phone to set it to "on". The toolkit will not install the Stock rom is downloaded because is says there's a name mismatch. I choose the option to change name etc and install anyway and it just loops with the same mismatch issue.
Really frustrating. How do I download a .zip file of the rom so I can flash it. All I get are .tgz files when I download the stock rom.
Any ideas?
Click to expand...
Click to collapse
Just put your faith in toolkits, why don`t you post your question in the toolkits thread. Let them clean up the mess Sorry if i sound a wee harsh but i HATE toolkits, they cause more problems for uneducated users than they do good.
gee2012 said:
Afaik know you can`t sideload a stock image, only flash in fastboot. Correct me if i`am wrong though. OP can sideload a custom rom and from there return to stock or as @Pirateghost said just use the sdk to flash the image straight away.
Click to expand...
Click to collapse
there are stock roms, zipped, floating around xda now. those can be pushed to recovery and flashed.
simms22 said:
there are stock roms, zipped, floating around xda now. those can be pushed to recovery and flashed.
Click to expand...
Click to collapse
Yes i know, but OP wanted to flash back to stock and the android-sdk supports Mac computers.
gee2012 said:
Yes i know, but OP wanted to flash back to stock and the android-sdk supports Mac computers.
Click to expand...
Click to collapse
ah, i missed that :angel:
simms22 said:
there are stock roms, zipped, floating around xda now. those can be pushed to recovery and flashed.
Click to expand...
Click to collapse
I'm downloading a zip now to push/flash. It's a stock rom. Just hoping it works. Next option is I'm glad to hire someone to remote in and fix it. Let me know if you're interested.
thx
s1w999 said:
I'm downloading a zip now to push/flash. It's a stock rom. Just hoping it works. Next option is I'm glad to hire someone to remote in and fix it. Let me know if you're interested.
thx
Click to expand...
Click to collapse
Here is a tutorial for how to setup adb on Mac http://www.youtube.com/watch?v=V0MyTvgfO7s, and here is a how to use it http://forum.xda-developers.com/showthread.php?t=1917237 and restore to stock .
gee2012 said:
Here is a tutorial for how to setup adb on Mac http://www.youtube.com/watch?v=V0MyTvgfO7s, and here is a how to use it http://forum.xda-developers.com/showthread.php?t=1917237 and restore to stock .
Click to expand...
Click to collapse
Excellent, I'm headed there right now.
Thank you!
s1w999 said:
Excellent, I'm headed there right now.
Thank you!
Click to expand...
Click to collapse
OK, got that set up and ./fastboot devices shows my device serial #.
Now, as long as my USB debugging is "on" (I have no way to toggle that since I have no OS, only recovery. Does the fastboot devices command working verify that USB debugging is "on"?
Now to find instructions on how what the flash commands are.
ty
s1w999 said:
OK, got that set up and ./fastboot devices shows my device serial #.
Now, as long as my USB debugging is "on" (I have no way to toggle that since I have no OS, only recovery. Does the fastboot devices command working verify that USB debugging is "on"?
Now to find instructions on how what the flash commands are.
ty
Click to expand...
Click to collapse
Download the factory image and extract with 7-zip and find a Mac flash.all command in the fastboot folder which you can select i guess. Haven`t had a Mac ever so no xperience. Make sure you have the following img files :radio, boot, bootloader, system.img zip, cache and userdata placed in the fastboot folder.
Look here for a tutorial http://au.ibtimes.com/articles/526920/20131203/flash-factory-image-nexus-complete-stock-return.htm.
gee2012 said:
Download the factory image and extract with 7-zip and find a Mac flash.all command in the fastboot folder which you can select i guess. Haven`t had a Mac ever so no xperience. Make sure you have the following img files :radio, boot, bootloader, system.img zip, cache and userdata placed in the fastboot folder.
Look here for a tutorial http://au.ibtimes.com/articles/526920/20131203/flash-factory-image-nexus-complete-stock-return.htm.
Click to expand...
Click to collapse
Well, I've got everything in place, ./fastboot devices sees my N5 but the flash command doesn't do anything when executed.
Any ideas?
Here's what terminal shows:
Marks-Air:android tools Mark$ ./fastboot devices
0591a238002ead35 fastboot
Marks-Air:android tools Mark$ ./flash-all.sh
./flash-all.sh: line 17: fastboot: command not found
./flash-all.sh: line 18: fastboot: command not found
./flash-all.sh: line 20: fastboot: command not found
./flash-all.sh: line 21: fastboot: command not found
./flash-all.sh: line 23: fastboot: command not found
Marks-Air:android tools Mark$

questions about rooting

hey all im trying to root my moto g 3rd gen and ive found this tool http://forum.xda-developers.com/201...l-windroid-universal-android-toolkit-t3206879 but when i click unlock bootloader it comes up with the message saying i need the unlock code from Motorola but i dont know what this is or how i get it could you help ?
Try this:
http://forum.xda-developers.com/201...o-bootloader-unlock-root-twrp-cm12-1-t3188850
Marcelo_RJ said:
Try this:
http://forum.xda-developers.com/201...o-bootloader-unlock-root-twrp-cm12-1-t3188850
Click to expand...
Click to collapse
ive tried that but it doesnt work is there any way to do it quickly and easily?
^That does work and is quick and easy. Fastboot is very simple to use. Learn.
yosmokinman said:
^That does work and is quick and easy. Fastboot is very simple to use. Learn.
Click to expand...
Click to collapse
ive tried it but when i get to the bit to install twrp it doesn work
ninja85a said:
ive tried it but when i get to the bit to install twrp it doesn work
Click to expand...
Click to collapse
Have you downloaded the TWRP from:
http://forum.xda-developers.com/devdb/project/?id=11051#downloads
If you did, try the file named: twrp-osprey-2.8.7-test1.img because the R2 and R3 versions didn't work for me, only the test1 version.
Also, remember to use this command in adb after unlocking the bootloader:
fastboot flash recovery twrp-osprey-2.8.7-test1.img
Try this, I believe it will work for you.
Marcelo_RJ said:
Have you downloaded the TWRP from:
http://forum.xda-developers.com/devdb/project/?id=11051#downloads
If you did, try the file named: twrp-osprey-2.8.7-test1.img because the R2 and R3 versions didn't work for me, only the test1 version.
Also, remember to use this command in adb after unlocking the bootloader:
fastboot flash recovery twrp-osprey-2.8.7-test1.img
Try this, I believe it will work for you.
Click to expand...
Click to collapse
ive using the command you posted so should i go to recovery mode and launch it using that i want to make sure in case thats what i was doing wrong
Well I've managed to root it and I'm now looking for some great apps to install also what's a good app to determine what apps can and cannot use?

Categories

Resources