How to access fastboot and recovery - Nexus S Q&A, Help & Troubleshooting

Hello all, I have a Nexus S and I want to try CM9.0 on it.
How could I access to fastboot (to flash the kernel) and recovery (to flash the ROM)?
Thanks and best regards.

recovery: volume key(-), power button and home button

musti19 said:
recovery: volume key(-), power button and home button
Click to expand...
Click to collapse
Noo! The nexus s uses power and volume up at the same time. just the two buttons.
oops! accidentally beamed from my awesome NEXUS S!

Billchen0014 said:
Noo! The nexus s uses power and volume up at the same time. just the two buttons.
oops! accidentally beamed from my awesome NEXUS S!
Click to expand...
Click to collapse
This. You'll need to unlock first (if it's not already unlocked), then flash a custom recovery. No need to flash the kernel via fastboot, they come in flashable zips and a working kernel is part of every ROM you will find.

Hello, thanks for the replys.
I have unlocked the bootloader. I have this file: cm-9-20120618-NIGHTLY-crespo.zip
With other devices, I use to flash the kernel with fastboot:
Code:
# ./fastboot flash boot boot.img
Then, enter to recovery mode and install the ROM and Google Apps.
Is this the way to install CM9.0 on the Nexus S?
Thanks and best regards.

Flashing the zip installs the kernel too. No need to do it separately.

Harbb said:
Flashing the zip installs the kernel too. No need to do it separately.
Click to expand...
Click to collapse
Thanks for the reply.
Sorry for the newby question, how must I install the zip file?
Thanks and best regards.

Through CWM (or other) preferred recovery. As i said, your phone will need to be unlocked and you'll need to flash the custom recovery via fastboot. After this, boot into recovery and flash the .zip file.

Harbb said:
Through CWM (or other) preferred recovery. As i said, your phone will need to be unlocked and you'll need to flash the custom recovery via fastboot. After this, boot into recovery and flash the .zip file.
Click to expand...
Click to collapse
Thanks again.
How do I flash the custom recovery via fastboot? Sorry, but with the Xperia devices I have no problem, I just go to fastboot mode to flash the kernel, then reboot and enter recovery mode to flash the ROM.
Kind regards.

This rooting guide gives you all the basics. How to setup fastboot and Nexus S drivers, how to unlock if you are not already (note you lose ALL PERSONAL DATA on the phone unlocking - even sdcard) and how to flash a custom recovery. Only the last part is actually rooting the phone so you can ignore that for your purposes, the rest are necessary.
The only difference is you'll want the latest custom recovery. Note if you reboot into stock android it will replace the custom recovery (delete /system/etc/install-recovery.sh to stop this) each boot. After this, boot into recovery, install zip from sdcard and select the ROM.

Thanks.
I unlock it and now I have a clean device.
When I try to go to recovery it just restart, I can not go to recovery mode.
Am I missing any step?
Best regards.

I got it, just install the recovery this way:
Code:
# ./fastboot flash recovery recovery-clockwork-5.0.2.0-crespo.img
I just install CM9.0 and it works great.
Best regards.

Related

[Q] Nexus S - lost my bootloader img - help needed

Like a complete prat, I have lost my boot and recovery img!!!
I was trying to get clockwork recovery as the recovery img and then accidentally did:
fastboot flash boot recovery.img
instead of
fastboot flash recovery recovery.img
I have found an unlocked bootloader from here (third one down) http://forum.xda-developers.com/showpost.php?p=9869067&postcount=38
I have saved this to the AndroidSDK\tools file as bootloader.img and tried the below whilst in fastboot mode:
fastboot flash boot bootloader.img
but the phone only reboots to the fastboot screen.
I now have no phone and I need it for work, can anyone help me, im desperate?
Thank you
Why not just flash cwm recovery then flash a ROM?
There's a sticky in this forum section with almost all full ROMs (stock Android, no need to flash cwm recovery for the signed ones, can use stock recovery) or head over to dev forums and look for a custom ROM you like (need cwm recovery).
Be sure to pick the right ROM for your device.
you don't need a bootloader! you need a boot.img! a kernel with ramdisk! ^^
Sent from my Nexus S using XDA Premium App
If the following command was executed successfully:
Code:
fastboot flash recovery recovery.img
Next step is to download a ROM of your choice and flash it via ClockWorkMod recovery and you're good.
FYI, the command
Code:
fastboot flash boot ...
does not flash your "bootloader". It is used to flash the kernel, which will already be included in the ROM you downloaded.
meso100 said:
...instead of
fastboot flash recovery recovery.img
I have saved this to the AndroidSDK\tools file as bootloader.img and tried the below whilst in fastboot mode:
...but the phone only reboots to the fastboot screen.
Click to expand...
Click to collapse
No problem. Flash your recovery using the correct command (above).
If you have access to fastboot, use your volume keys as up and down, and navigate to the "Recovery" option. When your phone boots into recovery, you can mount your USB and copy a ROM to your device.
Then go back, do a factory/data wipe, and flash the zip you copied. This should restore your phone.
Recovery images:
http://forum.xda-developers.com/showthread.php?t=988686
ROMS:
http://forum.xda-developers.com/showpost.php?p=13556812&postcount=2
Thank you all for your replies and help and apologies for the late delay.
I have been away for a few days and with your help and a bit of playing about I managed to sort out the problem. I was probably a bit hasty to ask for help but actually felt that I had bricked my phone!
This happened because I was following two different fastboot flash guides on the net...lesson being just keep to one!
Also, when I lost cwm I didnt know how to get it back...but again you can only learn from your mistakes and I did.
I managed to get cmw reinstalled and cm7 flashed.
Now I am running the latest MIUI and it is pretty good.
Thanks all for your help, see you the next time I panic!
meso100 said:
Thank you all for your replies and help and apologies for the late delay.
I have been away for a few days and with your help and a bit of playing about I managed to sort out the problem. I was probably a bit hasty to ask for help but actually felt that I had bricked my phone!
This happened because I was following two different fastboot flash guides on the net...lesson being just keep to one!
Also, when I lost cwm I didnt know how to get it back...but again you can only learn from your mistakes and I did.
I managed to get cmw reinstalled and cm7 flashed.
Now I am running the latest MIUI and it is pretty good.
Thanks all for your help, see you the next time I panic!
Click to expand...
Click to collapse
Thanks for using your brain and figuring it out. Congrats on getting it up and running.
Sent from my PC36100 using XDA Premium App

Bricked my phone trying to update to 4.2! Help!

Hello, all. I've spent the last four hours trying update my AT&T HTC One X running Android 4.1.1 to 4.2.2 and I failed hard!
First, I used the all-in-one toolkit to unlock my bootloader, flash clockwork recovery, and root the phone. The first guide I was following gave me error status 7 when I tried to flash the ROM so I wen to this guide:
update-htc-one-x-cm101-android-422-jelly-bean-custom-firmware/2/ (from team android website)
I got to the step below using the SDK I downloaded from dev.android.com and now my phone is dead! The HTC logo appears and then it goes to a black screen. Luckily, I can still reach my fastboot and clockwork recovery menu but nothing I try makes the phone boot.
Step 8 - Type the following command and press Enter.
fastboot flash boot boot.img
Step 9 - Then, type the following command and press Enter.
fastboot reboot
I just want my phone back to normal please! I don't care about rooting anymore. Thank you.
zenkix said:
Hello, all. I've spent the last four hours trying update my AT&T HTC One X running Android 4.1.1 to 4.2.2 and I failed hard!
First, I used the all-in-one toolkit to unlock my bootloader, flash clockwork recovery, and root the phone. The first guide I was following gave me error status 7 when I tried to flash the ROM so I wen to this guide:
update-htc-one-x-cm101-android-422-jelly-bean-custom-firmware/2/ (from team android website)
I got to the step below using the SDK I downloaded from dev.android.com and now my phone is dead! The HTC logo appears and then it goes to a black screen. Luckily, I can still reach my fastboot and clockwork recovery menu but nothing I try makes the phone boot.
Step 8 - Type the following command and press Enter.
fastboot flash boot boot.img
Step 9 - Then, type the following command and press Enter.
fastboot reboot
I just want my phone back to normal please! I don't care about rooting anymore. Thank you.
Click to expand...
Click to collapse
Alright, the ROMs you've been trying to flash are for the quad core One X... please stay in this forum and you should be good to go!
Any ROMs and kernels from here http://forum.xda-developers.com/forumdisplay.php?f=1541 and here http://forum.xda-developers.com/forumdisplay.php?f=1726. Try to flash something from there and report back (you'll still need to flash boot.img
RollTribe said:
Alright, the ROMs you've been trying to flash are for the quad core One X... please stay in this forum and you should be good to go!
Any ROMs and kernels from here http://forum.xda-developers.com/forumdisplay.php?f=1541 and here http://forum.xda-developers.com/forumdisplay.php?f=1726. Try to flash something from there and report back (you'll still need to flash boot.img
Click to expand...
Click to collapse
Thank you very much for your help? Could you please point me to a ROM to flash? I looked through those links and have no idea which to pick/what to do. It doesn't even have to be 4.2...I just want a working phone again. Thanks again!
zenkix said:
Thank you very much for your help? Could you please point me to a ROM to flash? I looked through those links and have no idea which to pick/what to do. It doesn't even have to be 4.2...I just want a working phone again. Thanks again!
Click to expand...
Click to collapse
Well... What would you like? Completely stock? Sense with tweaks? 4.2 with minor tweaks? 4.2 with a ton of tweaks?
RollTribe said:
Well... What would you like? Completely stock? Sense with tweaks? 4.2 with minor tweaks? 4.2 with a ton of tweaks?
Click to expand...
Click to collapse
4.2 with minor tweaks sounds great! Although right now I kinda just want to the stock "boot.img" to verify that my phone is still usable and not totally bricked.
zenkix said:
4.2 with minor tweaks sounds great! Although right now I kinda just want to the stock "boot.img" to verify that my phone is still usable and not totally bricked.
Click to expand...
Click to collapse
Alright then CM10.1 http://forum.xda-developers.com/showthread.php?t=2064621 and AOKP http://forum.xda-developers.com/showthread.php?t=2064724 will both suit you. These have the different boot.img than stock, but just extract and fastboot flash boot boot.img and you should be good to go!
RollTribe said:
Alright then CM10.1 http://forum.xda-developers.com/showthread.php?t=2064621 and AOKP http://forum.xda-developers.com/showthread.php?t=2064724 will both suit you. These have the different boot.img than stock, but just extract and fastboot flash boot boot.img and you should be good to go!
Click to expand...
Click to collapse
Quick update...I flashed boot.img of the first link (CynogenMod) and my phone got passed the "HTC Quietly Brilliant" screen! But now it seems stuck on HTC One (Beats Audio at the bottom) screen. I'll give it a few minutes...
I'm really worried that I did major damage to my phone in the bootloader and clockwork recovery menus. I literally tried every single option there trying to get my phone to boot earlier.
Oh man...it seems stuck. Maybe I should just flash the completely stock boot.img file. If that works, I will factory reset my phone just to make sure everything is back to how it was before.
Dude it sounds like you're trying to flash a cm boot.img with a Sense ROM, that ain't gonna work. You can't just extract a boot.img and flash it with a different ROM.
You need to extract the boot.img from the ROM you're about to flash, then flash that ROM, then flash the boot.img you just extracted.
Sent from my Evita
timmaaa said:
Dude it sounds like you're trying to flash a cm boot.img with a Sense ROM, that ain't gonna work. You can't just extract a boot.img and flash it with a different ROM.
You need to extract the boot.img from the ROM you're about to flash, then flash that ROM, then flash the boot.img you just extracted.
Sent from my Evita
Click to expand...
Click to collapse
Thanks for your help man. If what you're saying is correct, does that mean my phone is hopeless? I deleted/wiped everything using the ClocworkMod Recovery menu. When I choose "install zip from sdcard" I get "E: Can't mount /sdcard/" and when I try to mount an sdcard I get "Error mounting /sdcard". I don't think I can flash any ROMs right now unless install zip from sideload is an option (I don't know how sideloading works).
Try using TWRP recovery instead, you'll find it here:
http://goo.im/devs/OpenRecovery/evita
Download it, check md5 is correct, then:
fastboot flash recovery filename.img
(Filename = exact TWRP recovery filename)
Then issue this command:
fastboot erase cache
Then:
fastboot reboot-bootloader
Now you should be able to select recovery on your phone screen and it should boot into TWRP. Next go to mount and mount usb storage. See if it comes up in Windows, it might need to be formatted from the sounds of it. If it doesn't show up as a usable drive, format it to fat32.
Once that's done you should be able to copy a ROM to your phone to flash. So copy it over, then extract the boot.img from the copy on your pc, then put the boot.img in your fastboot folder.
Do a full wipe in recovery (cache/dalvik/factory reset/system), then install the ROM, then reboot to bootloader, make sure phone is connected by usb, make sure fastboot usb comes up on your phone screen then issue the following command:
fastboot flash boot boot.img
Make sure it's the boot.img from the ROM you just flashed. Now once that's done you should be able to reboot into the ROM.
Sent from my Evita
timmaaa said:
Try using TWRP recovery instead, you'll find it here:
http://goo.im/devs/OpenRecovery/evita
Download it, check md5 is correct, then:
fastboot flash recovery filename.img
(Filename = exact TWRP recovery filename)
Then issue this command:
fastboot erase cache
Then:
fastboot reboot-bootloader
Now you should be able to select recovery on your phone screen and it should boot into TWRP. Next go to mount and mount usb storage. See if it comes up in Windows, it might need to be formatted from the sounds of it. If it doesn't show up as a usable drive, format it to fat32.
Once that's done you should be able to copy a ROM to your phone to flash. So copy it over, then extract the boot.img from the copy on your pc, then put the boot.img in your fastboot folder.
Do a full wipe in recovery (cache/dalvik/factory reset/system), then install the ROM, then reboot to bootloader, make sure phone is connected by usb, make sure fastboot usb comes up on your phone screen then issue the following command:
fastboot flash boot boot.img
Make sure it's the boot.img from the ROM you just flashed. Now once that's done you should be able to reboot into the ROM.
Sent from my Evita
Click to expand...
Click to collapse
This sounds like a good plan. I will give it a try tomorrow after work. Thank you guys for your help!
I couldn't sleep...so I followed your steps and my phone is now alive! Thank you!
I think now I need to flash GApps, right? I have this ---> gapps-jb-20130301-signed.zip
Any chance that's the wrong zip file? Do I need a special one for CM10.1?
That's the right gapps zip, it's the most recent one so yeah you're good to flash it.
And no problems, you're welcome
Sent from my Evita

CWM not boot on European Moto G

I tryed to boot CWM recovery for moto G (from this thread) but it didn't boot.
I have an european XT1032 (italian version), there are any fix for this device?
I tested the recovery with the following command:
For the 4.3 version
Code:
fastboot boot CWM43.img
For the 4.4 version
Code:
fastboot boot CWM44.img
but the device prompt the motorola screen and then reboot without boot the custom recovery.
1) is your bootloader unlocked?
2) are you on a stock JB or KK rom?
3) Do you have the same issue with TWRP?
Yes I unlocked the bootloader. I'm on Stock KitKat (4.4.2) and I have the same issue if I try to boot TWRP. I also tried to flash it on device but the issue remains.
Read the OP from the site where you downloaded CWM carefully again and compare it to that what you have quoted here.
With fastboot boot you are trying to flash cwm (recovery) as a kernel:crying:
And even then something is missing in your syntax (flash).
For flashing Kernel use:
fastboot flash boot filename.img
Click to expand...
Click to collapse
For flashing CWM use:
fastboot flash recovery filename.img
Click to expand...
Click to collapse
By the way, here is a good fastboot HowTo.
I already try to flash the recovery on device but it doesn't boot.
so i want to test it before flash on the phone
I already try to flash the recovery on device but it doesn't boot.
so i want to test it before flash on the phone
ecila said:
I already try to flash the recovery on device but it doesn't boot.
so i want to test it before flash on the phone
Click to expand...
Click to collapse
Sorry i don't understand you. You flashed the recovery already? But you want to test it before you flash? Now what?
What did you do exactly?
I think you messed up something while doing this thats why i am suggesting you to go back to Stock first.
Just flash it by typing "fastboot flash recovery recovery.img" and then restart bootloader and press volume down, and then volume up. You should boot into recovery.
mokkami said:
Sorry i don't understand you. You flashed the recovery already? But you want to test it before you flash? Now what?
What did you do exactly?
I think you messed up something while doing this thats why i am suggesting you to go back to Stock first.
Click to expand...
Click to collapse
Before write this post i already tried flash and then boot the custom recovery, but it doesnt boot.
So i restored the stock recovery,and now i want to test recovery (on the fly) without flash it.
You have to flash it. You can not use it "on the fly" to test it.
ecila said:
So i restored the stock recovery,and now i want to test recovery (on the fly) without flash it.
Click to expand...
Click to collapse
I'm really sorry, i just opend the specific Thread again and then i read this.
Then i rememberd this thread. So i'll update my mistake
Rusty! said:
If you want to try it out, use:
Code:
fastboot boot recovery.img
So that the system remains unchanged.
Click to expand...
Click to collapse
So you can use the CWM on the fly.

Nexus 5 Soft Bricked After Installing Bad Kernel

Hi, I recently bricked my Nexus 5 after attempting to load one kernel over another (I know now that what I did was stupid) and I'm now stuck in a bootloop. I believe I'm running on 5.1.1 and have no custom recovery anymore. Any ideas on how to fix this?
tgfols said:
Hi, I recently bricked my Nexus 5 after attempting to load one kernel over another (I know now that what I did was stupid) and I'm now stuck in a bootloop. I believe I'm running on 5.1.1 and have no custom recovery anymore. Any ideas on how to fix this?
Click to expand...
Click to collapse
Flash a custom recovery with fastboot.
Boot the phone to recovery.
Flash a kernel for your phone.
bitdomo said:
Flash a custom recovery with fastboot.
Boot the phone to recovery.
Flash a kernel for your phone.
Click to expand...
Click to collapse
How can I flash a recovery directly from fastboot? And then how will I flash a kernel to my phone if it isn't booting up? (I apologize for my lack of knowledge on the subject).
tgfols said:
How can I flash a recovery directly from fastboot? And then how will I flash a kernel to my phone if it isn't booting up? (I apologize for my lack of knowledge on the subject).
Click to expand...
Click to collapse
fastboot flash recovery recovery.img where recovery.img is the name of whatever recovery you download or rename the file to recovery. I like TWRP (Google it).
You can flash a boot.img (kernel) at the same time if you like or reboot to recovery and install a zip.
I accidentally flashed a radio instead of a kernel once and fixed it up easy peasy. If you can get to fastboot you can fix the phone just have to read up on it a bit.
Google "wugfresh nexus 5". He has a Nexus 5 toolkit all in one software. Should be able to help you out. I used it.
galakanokis said:
fastboot flash recovery recovery.img where recovery.img is the name of whatever recovery you download or rename the file to recovery. I like TWRP (Google it).
You can flash a boot.img (kernel) at the same time if you like or reboot to recovery and install a zip.
I accidentally flashed a radio instead of a kernel once and fixed it up easy peasy. If you can get to fastboot you can fix the phone just have to read up on it a bit.
Click to expand...
Click to collapse
Thank you, I'll be trying this soon. I appreciate your help.

stuck at motorola boot animation

hey all
i did backup of system and i wanted reboot the phone now will show Motorola boot-animation and will reboot again and again with same place , i didn't touch anything .
Best Regards
Can you get into the fastboot menu (hold volume down and then power) or into the recovery (from the fastboot menu)? Also, have you unlocked the bootloader and/or flashed a rom?
dvdkon said:
Can you get into the fastboot menu (hold volume down and then power) or into the recovery (from the fastboot menu)? Also, have you unlocked the bootloader and/or flashed a rom?
Click to expand...
Click to collapse
yes i can get to bootloader i cant get recovery its same thing it will stock on motorolla logo , yes its unlocked bootloader 41.19 .
Jwtiyar said:
yes i can get to bootloader i cant get recovery its same thing it will stock on motorolla logo , yes its unlocked bootloader 41.19 .
Click to expand...
Click to collapse
Did you try flashing recovery from fastboot mode? If not, try following the instructions on the TWRP website (minus the "adb reboot bootloader" part, of course).
dvdkon said:
Did you try flashing recovery from fastboot mode? If not, try following the instructions on the TWRP website (minus the "adb reboot bootloader" part, of course).
Click to expand...
Click to collapse
yes i did flash recovery again with no fix .
Jwtiyar said:
yes i did flash recovery again with no fix .
Click to expand...
Click to collapse
Did you try flashing the kernel? I can verify that the Optimus kernel and the TWRP from the Multirom thread work, so I'd recommend trying that combination.
dvdkon said:
Did you try flashing the kernel? I can verify that the Optimus kernel and the TWRP from the Multirom thread work, so I'd recommend trying that combination.
Click to expand...
Click to collapse
but i don't want multirom , and the kernel is in zip i cant flash it because i cant get into recovery .
Jwtiyar said:
but i don't want multirom , and the kernel is in zip i cant flash it because i cant get into recovery .
Click to expand...
Click to collapse
The MultiROM TWRP itself doesn't install multirom, I just know it works, while some other recovery images don't. You will be able to flash a different recovery once you fix your problem.
I forgot that a kernel can't be readily flashed via fastboot... You should try downloading a stock firmware package and flashing at least boot and system.

Categories

Resources