Nexus 5 Soft Bricked After Installing Bad Kernel - Nexus 5 Q&A, Help & Troubleshooting

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.

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

How to access fastboot and recovery

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.

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.

Recovery not installed

Hi guys, i need help.
My tablet has only temporary recovery installed after flashing 3.1.1. I can boot to OS just fine, but there's no permanent recovery even the stock one. I can install twrp but only temporarily. everytime i reboot to recovery, it only shows a dead android with exclamation point above it.
I have to flash again every time i want to use recovery.
I came from stock rooted 1.2.1 image with twrp 2.8.7.1 without any problem.
I hope anyone is kind enough to point out where am i doing it wrong.
I just flashed 3.1.1 stock image using this thru fastboot:
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash staging blob
fastboot flash dtb tegra124-tn8-p1761-1270-a04-e-battery.dtb
and then twrp using:
fastboot flash twrp-2.8.7.1.img
Try copying SuperSU zip to your tablet. Then flash TWRP again, but do not reboot. Go immediately into recovery (which should be TWRP) and flash the zip, then reboot.
koop1955 said:
Try copying SuperSU zip to your tablet. Then flash TWRP again, but do not reboot. Go immediately into recovery (which should be TWRP) and flash the zip, then reboot.
Click to expand...
Click to collapse
Wow thanks a lot. That actually did the trick
bonkeng said:
Wow thanks a lot. That actually did the trick
Click to expand...
Click to collapse
I say this with a smile on my face, but why does everyone seem so surprised whenever I a right about something?
In the folder where I keep my ROM/OTA updates, I always have:
1) SuperSU.zip - to give me and maintain root. And also...
2) Nomoreota.zip (from here: http://forum.xda-developers.com/shield-tablet/general/kill-kill-switch-shield-tablet-xx-t3179489) which will eliminate the kill-switch file.
When I flash an update, I then flash the other two zips. Not necessary if you are flashing a ROM, of course, but important if you are flashing an OTA. It only adds seconds to the process and prevents a brick.
koop1955 said:
I say this with a smile on my face, but why does everyone seem so surprised whenever I a right about something?
In the folder where I keep my ROM/OTA updates, I always have:
1) SuperSU.zip - to give me and maintain root. And also...
2) Nomoreota.zip (from here: http://forum.xda-developers.com/shield-tablet/general/kill-kill-switch-shield-tablet-xx-t3179489) which will eliminate the kill-switch file.
When I flash an update, I then flash the other two zips. Not necessary if you are flashing a ROM, of course, but important if you are flashing an OTA. It only adds seconds to the process and prevents a brick.
Click to expand...
Click to collapse
I'm sorry if i may have offended you. This was my first time trying this method.
Thanks to you, now I know exactly what to do
bonkeng said:
I'm sorry if i may have offended you. This was my first time trying this method.
Thanks to you, now I know exactly what to do
Click to expand...
Click to collapse
No offense at all, I was saying that in jest. Really. (I have an odd sense of humor.)
Just to complete your understanding (and I am glad that I could help) installing SuperSu roots the tablet. Without root, it was not accepting the custom recovery.

CYANOGEN OS 13.1.2-ZNH2KAS3PO Bacon

Hi Guys
After a hard brick I use the tool Msm8974DownloadTool;
Oneplus one reboot in color OS
This morning I have to change I installed the last CYANOGEN OS 13.1.2-ZNH2KAS3PO Bacon
The problem is that I lost my root access and I can not install a recovery custum
I install android sdk slim
fastboot works
bootloader unlock
BUT don' t install twrp-3.0.2-0-bacon rename to (recovery.img )error not charger
Do you have any ideas.
Thinks for help
Jjul said:
Hi Guys
After a hard brick I use the tool Msm8974DownloadTool;
Oneplus one reboot in color OS
This morning I have to change I installed the last CYANOGEN OS 13.1.2-ZNH2KAS3PO Bacon
The problem is that I lost my root access and I can not install a recovery custum
I install android sdk slim
fastboot works
bootloader unlock
BUT don' t install twrp-3.0.2-0-bacon rename to (recovery.img )error not charger
Do you have any ideas.
Thinks for help
Click to expand...
Click to collapse
After you fastboot flash recovery don't let the phone boot into system it will rewrite to stock recovery. Instead boot immediately into recovery by holding volume down and power.
Thank you for your reply
but but precisely
fastboot flash recovery img. don't work do not want to load the recovery
it's ok now !!
good!
thanks
Jjul said:
Thank you for your reply
but but precisely
fastboot flash recovery img. don't work do not want to load the recovery
Click to expand...
Click to collapse
What exactly happens after you fastboot flash recovery?
You didn't accidentally name the file recovery.IMG.IMG?
You could also try a toolkit http://forum.xda-developers.com/oneplus-one/development/toolbox-oneplus-one-toolbox-t2808987
Jjul said:
it's ok now !!
good!
thanks
Click to expand...
Click to collapse
I'm wondering...
If you accidentally overwrote your /boot (happened to me once) by fastboot flash boot XXX.img
be sure to flash again by fastboot flash boot boot.img before you ever need reboot your phone.

Categories

Resources