[Q] How to update bootloader? - Nexus 5 Q&A, Help & Troubleshooting

I cannot seem to be able to update my bootloader to flash new nightlys for Vanir. I have extracted the radio and bootloader from the factory image, but I cannot flash them. I keep getting an access denied from adb, while I'm in fastboot.

you cannot use adb in fastboot. You can only use fastboot in fastboot. adb only works in recovery or android
Sent from my Nexus 5 using Tapatalk

TheAfroGuy said:
I cannot seem to be able to update my bootloader to flash new nightlys for Vanir. I have extracted the radio and bootloader from the factory image, but I cannot flash them. I keep getting an access denied from adb, while I'm in fastboot.
Click to expand...
Click to collapse
Correct me if wrong but what you want to update is your recovery.

GUGUITOMTG4 said:
Correct me if wrong but what you want to update is your recovery.
Click to expand...
Click to collapse
No.idea about this rom.but latest cm11 requires users to be on.latest bootloader and have get.prop checks in updater-script too
Sent from my Nexus 5 using Tapatalk

TheAfroGuy said:
I cannot seem to be able to update my bootloader to flash new nightlys for Vanir. I have extracted the radio and bootloader from the factory image, but I cannot flash them. I keep getting an access denied from adb, while I'm in fastboot.
Click to expand...
Click to collapse
Hi,
Easier, see in attachment for a flashable zip (it's the last one)...

Hammer_Of_The_Gods said:
Hi,
Easier, see in attachment for a flashable zip (it's the last one)...
Click to expand...
Click to collapse
So I managed to flash the bootloader and radio, but I still cannot flash any CM based ROM. I keep getting a Status 7 error.

TheAfroGuy said:
So I managed to flash the bootloader and radio, but I still cannot flash any CM based ROM. I keep getting a Status 7 error.
Click to expand...
Click to collapse
Did you reboot after the flash?
Sent from my Nexus 5 using Tapatalk

Related

Trying to update to 4.4.2 via TWRP Flash getting error

I'm new to rooting and android in general. I'm currently running 4.4 rooted with stock I believe. Says ponury kernal in my settings.
I'm trying to flash the update for 4.4.2 via the TWRP install. I get a failed error: error executing updater binary in zip.
I've made sure my zip is the 4.4 to 4.4.2 but still no luck. Any ideas what I can do? Do I need to wipe something before I can put it on there?
On a first thought, you need to get back to the original kernel.
Update from 4.4.1 to .4.4.2. has no problems with different kernels installed, however this won't work from 4.4. to 4.4.2.
The exact error message would be also helpful
tom1807 said:
On a first thought, you need to get back to the original kernel.
Update from 4.4.1 to .4.4.2. has no problems with different kernels installed, however this won't work from 4.4. to 4.4.2.
The exact error message would be also helpful
Click to expand...
Click to collapse
The error was : error executing updater binary in zip. I will look into getting back to stock.
matthewordie said:
The error was : error executing updater binary in zip. I will look into getting back to stock.
Click to expand...
Click to collapse
You need to fastboot flash the system and boot image from 4.4 if you have a custom kernel. Then flash the update
jd1639 said:
You need to fastboot flash the system and boot image from 4.4 if you have a custom kernel. Then flash the update
Click to expand...
Click to collapse
How do I fastboot flash the system and boot image? Can I do that from TWRP or do I need to use the command line with the fastboot? I have fastboot installed on my mac already. I was playing with that as well.
matthewordie said:
How do I fastboot flash the system and boot image? Can I do that from TWRP or do I need to use the command line with the fastboot? I have fastboot installed on my mac already. I was playing with that as well.
Click to expand...
Click to collapse
You'll need to get the factory image and extract the files. Inside there is another zip file which you'll need to extract. That's where you'll find the images. Use fastboot flash system system.img The Mac command is slightly different, I don't remember exactly what it is. To fastboot boot its the similar format
jd1639 said:
You'll need to get the factory image and extract the files. Inside there is another zip file which you'll need to extract. That's where you'll find the images. Use fastboot flash system system.img The Mac command is slightly different, I don't remember exactly what it is. To fastboot boot its the similar format
Click to expand...
Click to collapse
Is there a method of rooting or a specific kernal that will make it easier to update next time? I'd really hate to have to wipe everything every time there's an OTA update.
matthewordie said:
Is there a method of rooting or a specific kernal that will make it easier to update next time? I'd really hate to have to wipe everything every time there's an OTA update.
Click to expand...
Click to collapse
then stop modding your phone if you want OTAs.
its really that simple.
just flash the 4.4.2 factory images.
matthewordie said:
Is there a method of rooting or a specific kernal that will make it easier to update next time? I'd really hate to have to wipe everything every time there's an OTA update.
Click to expand...
Click to collapse
Flashing the system image won't wipe anything
http://forum.xda-developers.com/showthread.php?p=14
Sent from my Nexus 5 using Tapatalk
Zepius said:
then stop modding your phone if you want OTAs.
its really that simple.
just flash the 4.4.2 factory images.
Click to expand...
Click to collapse
Well I really don't know the exact steps involved in "flashing the image". That's what I'm asking.
jd1639 said:
Flashing the system image won't wipe anything
Click to expand...
Click to collapse
Then I guess I had the wrong impression of what flashing the image is. Is there a guide available?
matthewordie said:
Then I guess I had the wrong impression of what flashing the image is. Is there a guide available?
Click to expand...
Click to collapse
Follow method#2. But only flash the system.img and boot.img. http://forum.xda-developers.com/showthread.php?p=47156064
Edit, your bootloader is unlocked, right? If not then you will lose all you data unlocking it
jd1639 said:
Follow method#2. But only flash the system.img and boot.img. http://forum.xda-developers.com/showthread.php?p=47156064
Edit, your bootloader is unlocked, right? If not then you will lose all you data unlocking it
Click to expand...
Click to collapse
Ah, I was close I actually did method 1. Yeah I did leave it unlocked since i'm going to root again right away. Thanks

[Q] OTA bootloader update when rooted?

Hi guys,
I run rooted unlocked Nexus 5 with CM11. I wanted to update the ROM but it failed - I read a bit and found out that it is due to old bootloader version. I would like to update it but I'm not a friend with ADB and stuff.... It would be great to use the most easiest way. I got OTA update notification but have no idea what it does - will it unroot the phone? will I lose CM11 ROM? Just trying to figure out what backups and steps shall I do to update my ROM. How shall I continue from here?
Thanks a bunch!
devcager said:
Hi guys,
I run rooted unlocked Nexus 5 with CM11. I wanted to update the ROM but it failed - I read a bit and found out that it is due to old bootloader version. I would like to update it but I'm not a friend with ADB and stuff.... It would be great to use the most easiest way. I got OTA update notification but have no idea what it does - will it unroot the phone? will I lose CM11 ROM? Just trying to figure out what backups and steps shall I do to update my ROM. How shall I continue from here?
Thanks a bunch!
Click to expand...
Click to collapse
Attempting to take the OTA will fail.
Download the factory image and extract bootloader-hammerhead-hhz11k.img
Boot your device into bootloader:
fastboot flash bootloader bootloader-hammerhead-hhz11k.img
fastboot reboot-bootloader
You have a custom recovery installed, right? Flash the bootloader zip via recovery. However, you need to get familiar with adb/fastboot as you're gonna need them if you ever find yourself in a tight situation to fix your device.
Open the "must read" thread linked in my signature and find the thread which has all the info about adb and fastboot.
vin4yak said:
You have a custom recovery installed, right? Flash the bootloader zip via recovery. However, you need to get familiar with adb/fastboot as you're gonna need them if you ever find yourself in a tight situation to fix your device.
Open the "must read" thread linked in my signature and find the thread which has all the info about adb and fastboot.
Click to expand...
Click to collapse
Thank you! I get it about ADB, I had to solve one my problem in the past via ADB. Anyway, I just need to find the 4.4.4 bootloader in ZIP (or probalby .img will work too?) and flash it? That's it? Does it wipe my phone or something?
You just need to flash the IMG via fastboot, no wiping required!
EddyOS said:
You just need to flash the IMG via fastboot, no wiping required!
Click to expand...
Click to collapse
Alright. One more thing. Is it possible to convert the IMG file I have into zip to be able to flash it in TWRP?
EDIT: I found that Nexus Toolbox for my 5 has the option to flash the bootloader image so I will try this variant.
devcager said:
Alright. One more thing. Is it possible to convert the IMG file I have into zip to be able to flash it in TWRP?
EDIT: I found that Nexus Toolbox for my 5 has the option to flash the bootloader image so I will try this variant.
Click to expand...
Click to collapse
You don't need to. Just boot into fastboot, connect to PC, fastboot flash bootloader name_of_file.img, reboot, done
it's easy you must become familiar with fastboot and add the second you aren't it will come back to haunt you
Sent from my Nexus 5 using Tapatalk
devcager said:
Alright. One more thing. Is it possible to convert the IMG file I have into zip to be able to flash it in TWRP?
EDIT: I found that Nexus Toolbox for my 5 has the option to flash the bootloader image so I will try this variant.
Click to expand...
Click to collapse
so you learned nothing. awesome.
Zepius said:
so you learned nothing. awesome.
Click to expand...
Click to collapse
Brick waiting to happen.
Add to ignore list
Sent from my Nexus 5 using Tapatalk < Yes, I want you to know that I'm using a mobile client
rootSU said:
Brick waiting to happen.
Add to ignore list
Sent from my Nexus 5 using Tapatalk < Yes, I want you to know that I'm using a mobile client
Click to expand...
Click to collapse
I'm still waiting for someone to make a thread saying their device is "bricked because flashed fastboot to adb using bootloader while in recovery with x toolkit"

Unable to flash OTA with TWRP: error executing updater binary in zip

I have a rooted Nexus 5 on KTU84p and I'm following the steps outline in this thread to try to update to 5.0
I fall under Scenario 3, and went ahead an uninstalled Xposed. I then downloaded the OTA zip and tried to update it in TWRP. I've now tried multiple versions (currently v2.8.2.0, tried v2.8.1.0 and a v2.6..), however, all have failed with the following error:
TWRP:
E: Error executing updater binary in zip '/sdcard/ROMs/c1a33561be84a8a6a7d5a4c8e3463c4db9352ce6.signed-hammerhead-LRX21O-from-KTU84P.c1a33561.zip'
I'm stuck and unsure what to do next - suggestions?
Nt sure bt ota is meant to be flashed in stock recovery not twrp
doctor_droid said:
Nt sure bt ota is meant to be flashed in stock recovery not twrp
Click to expand...
Click to collapse
The OTA thread has steps on how to flash via custom recovery, which is what I was following, so I'm assuming (hoping) that I don't need to go back to stock recovery...
shikhan said:
I have a rooted Nexus 5 on KTU84p and I'm following the steps outline in this thread to try to update to 5.0
I fall under Scenario 3, and went ahead an uninstalled Xposed. I then downloaded the OTA zip and tried to update it in TWRP. I've now tried multiple versions (currently v2.8.2.0, tried v2.8.1.0 and a v2.6..), however, all have failed with the following error:
TWRP:
E: Error executing updater binary in zip '/sdcard/ROMs/c1a33561be84a8a6a7d5a4c8e3463c4db9352ce6.signed-hammerhead-LRX21O-from-KTU84P.c1a33561.zip'
I'm stuck and unsure what to do next - suggestions?
Click to expand...
Click to collapse
You have to have the stock recovery, kernel and system. You can flash those in fastboot using the 4.4.4 factory image. Then either take the ota from your device or sideload it in the stock recovery using adb.
Sent from my Nexus 9 using XDA Free mobile app
shikhan said:
The OTA thread has steps on how to flash via custom recovery, which is what I was following, so I'm assuming (hoping) that I don't need to go back to stock recovery...
Click to expand...
Click to collapse
Custom recoveries cant flash ota ....afaik
Thanks guys - I'll revert to the stock recovery then.
Can someone confirm that all I need to do is to do run the following adb cmd (using the stock recovery from here):
fastboot flash recovery "jjd-stock ktu84p-recovery.zip"
Or download wugfresh n5 toolkit
Sent from my Nexus 5 using XDA Free mobile app
shikhan said:
Thanks guys - I'll revert to the stock recovery then.
Can someone confirm that all I need to do is to do run the following adb cmd (using the stock recovery from here):
fastboot flash recovery "jjd-stock ktu84p-recovery.zip"
Click to expand...
Click to collapse
I believe that file is meant to be flashed via recovery, not fastboot. If you want to be 100% certain, just grab the factory image from HERE,
unzip it and flash the recovery.img with this command-
Code:
fastboot flash recovery recovery.img
You should be good to go after that.
rickballs said:
Or download wugfresh n5 toolkit
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
No. Do not use or recommend toolkits.
Twrp was able to flash OTAs. If that's not the case anymore, then it's more than likely that a update to work with L is needed.
Pretty sure has something to do with the security that was implemented in android 5.0 that prevents this from custom recovery.

[Q] ota sideloading aborted

Hey group mates please help me
I'm currently using a nexus 5 and thought of sideloading the ota zip through nexus root toolkit so i first flashed stock recovery and then when i tried to sideload it, it started flashing till it reached 61% and which my phone said installation aborted for no reason.. Tried this more than 3-4 times but the result were all the same
I'm not sure what seems to be the issue here so it would be great if any one could help me solve this issue
Thanks in advance
drunken monkey said:
Hey group mates please help me
I'm currently using a nexus 5 and thought of sideloading the ota zip through nexus root toolkit so i first flashed stock recovery and then when i tried to sideload it, it started flashing till it reached 61% and which my phone said installation aborted for no reason.. Tried this more than 3-4 times but the result were all the same
I'm not sure what seems to be the issue here so it would be great if any one could help me solve this issue
Thanks in advance
Click to expand...
Click to collapse
Are you rooted or having custom kernel?
kaushikd said:
Are you rooted or having custom kernel?
Click to expand...
Click to collapse
I'm currently running stock recovery, stock os rooted and unlocked bootloader
I have the exact same problem. The sideload gets to 61%, then shows the following message:
"/system/bin/install-recovery.sh" has unexpected contents
E:Error in /sideload/package.zip
(Status 7)
I have a stock recovery, was rooted using Chainfire's first method for Lollipop (patched kernel) but flashed the stock kernel (fastboot flash boot boot.img) from the N5 5.0 image before the sideload.
drunken monkey said:
I'm currently running stock recovery, stock os rooted and unlocked bootloader
Click to expand...
Click to collapse
You can't be rooted to use the OTA. Anything that is modified in the system will cause this.
I downloaded the full image and extracted just the radio, system and boot image files. Then just a few fastboot commands with bootloader reboots inbetween and 5.0.1 works.
For reference, I used the following:
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash boot boot.img
So while sideloading it should I unroot as well?
jsgraphicart said:
You can't be rooted to use the OTA. Anything that is modified in the system will cause this.
Click to expand...
Click to collapse
So to sideload I have to be in complete stock without even SuperSU.. Is that correct?
drunken monkey said:
So to sideload I have to be in complete stock without even SuperSU.. Is that correct?
Click to expand...
Click to collapse
That correct
Sent from my Nexus 5 using XDA Free mobile app
pauleyc said:
I downloaded the full image and extracted just the radio, system and boot image files. Then just a few fastboot commands with bootloader reboots inbetween and 5.0.1 works.
For reference, I used the following:
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash boot boot.img
Click to expand...
Click to collapse
I was thinking about doing this, too... but am I correct to assume that this would cause data loss? I have TWRP and SuperSU installed at the moment.
Or, if there's an easy way to ditch these and do the OTA, I'd be okay with that, too.
jrronimo said:
I was thinking about doing this, too... but am I correct to assume that this would cause data loss? I have TWRP and SuperSU installed at the moment.
Or, if there's an easy way to ditch these and do the OTA, I'd be okay with that, too.
Click to expand...
Click to collapse
It won't cause any data loss. It's about the only way to get the ota to work. But in your case, since you have twrp you should also flash the stock recovery.img
Sent from my Nexus 5 using XDA Free mobile app
No data loss (well, apart from root) if you flash just the radio, system and boot images. Worked great for me.
Thanks for the tips, guys. After extracting the full 5.0.1 firmware from the Factory Images page, there are system and boot .img files, but no radio. Is this normal?
jrronimo said:
Thanks for the tips, guys. After extracting the full 5.0.1 firmware from the Factory Images page, there are system and boot .img files, but no radio. Is this normal?
Click to expand...
Click to collapse
There's a radio. It's in the first file you extracted, not the zip you also had to extract
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
There's a radio. It's in the first file you extracted, not the zip you also had to extract
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Good thing I didn't get past this step -- I had downloaded the wrong factory image. D: That'll explain things a bit...
---------- Post added at 02:13 PM ---------- Previous post was at 01:54 PM ----------
Alrighty! New problem: After the phone boots, I get the battery and signal icons in the top right, but a black screen otherwise. If I hit the power button to put it in sleep mode and then hit the power button again, I get a quick flash of the "Welcome to Android, select your language" screen. Any pro-tips?
If I have to set up from scratch, it's no big deal. Most of the important stuff should be backed up; it'd just be annoying. All that Desert Golfing progress!!!
Finally managed to get around it. Ended up updating TWRP and re-flashing most of the .imgs a bunch, then using TWRP to first let me back up data to my computer and then wipe partitions. I'm on 5.0.1 again.
Welp, that was painful, haha. I'm sure I did something wrong leading into this, but I'm not sure what that was...
If i just flash the whole Firmware that i downloaded from Google, will i be able to flash it and loose root?
I am OK with loosing root and beeing back to stock.
At this moment i have Lolipop 5.0 that is rooted with Chainfire.
I was running rooted stock 5.0 with TWRP and had already flashed the 5.0.1 radio, so I just fastboot flashed the 5.0.1 system.img and rerooted. All is well so far.
jd1639 said:
That correct
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
So if I unroot and then sideload it will I loose all my data ?
P.s I'll be rooting it back immediately after I get 5.1
So is there any way which can avoid a data loss?
I still have a doubt, I saw rootjunky's video in which he sideload 5.1 to his nexus 7 using nrt..
Even I followed the same method but it didn't succeed for me
pauleyc said:
I have the exact same problem. The sideload gets to 61%, then shows the following message:
"/system/bin/install-recovery.sh" has unexpected contents
E:Error in /sideload/package.zip
(Status 7)
I have a stock recovery, was rooted using Chainfire's first method for Lollipop (patched kernel) but flashed the stock kernel (fastboot flash boot boot.img) from the N5 5.0 image before the sideload.
Click to expand...
Click to collapse
So after flashing your stock kernal and stock recovery did the sideload work.. I mean that it didn't get stuck at the 61% mark?

[ROM][N5X] Stock ROM 6.0.1 [MMB29K]

STOCK ROM 6.0.1 (MMB29K)
Hello guys, here is the untoched flashable zip for our beloved bullhead. This will help peeps who use custom recovery to get their new update.
once again i remind you that this is pure flashable factory image
Instruction :
1. Download ROM, and move it in internal storage
2. Boot into TWRP recovery
3. Make Backup
4. Wipe (Dalvik cache, system, data, cache) and Factory reset
5. Flash zip
6. Reboot​
​
added to index
[INDEX] LG NEXUS 5X Resources Compilation Roll-Up
Been waiting for this, thanks!
Do I need to flash any new radio or anything with this if coming from 6.0?
GoogleFan said:
Do I need to flash any new radio or anything with this if coming from 6.0?
Click to expand...
Click to collapse
Yeah, you need the bootloader, radio, vendor images. It's probably easier to just flash 6.0.1 from here https://developers.google.com/android/nexus/images#bullhead
skulldreamz said:
Yeah, you need the bootloader, radio, vendor images. It's probably easier to just flash 6.0.1 from here https://developers.google.com/android/nexus/images#bullhead
Click to expand...
Click to collapse
So just to clarify, its not even possible to update a phone's bootloader, radio, and vendor.img via TWRP right? Must be done via fastboot?
GoogleFan said:
Do I need to flash any new radio or anything with this if coming from 6.0?
Click to expand...
Click to collapse
no need. radio and bootloader are same as 6.0.
gleggie said:
So just to clarify, its not even possible to update a phone's bootloader, radio, and vendor.img via TWRP right? Must be done via fastboot?
Click to expand...
Click to collapse
it is possible to flash bootloader but never tested radio and vendor.img.
gleggie said:
So just to clarify, its not even possible to update a phone's bootloader, radio, and vendor.img via TWRP right? Must be done via fastboot?
Click to expand...
Click to collapse
Vender can be packed into a flashable zip on our nexus. I'm not sure about the radio and bootloader on our nexus phone. Htc if s-off can flash radios I'm sure of and lg g2, g3, etc can flash loki bootloaders from a custom recovery. But you have got to be careful when your writing data to these very sensitive partitions because 1 screw up and you have a hard brick
shmshd12 said:
no need. radio and bootloader are same as 6.0.
Click to expand...
Click to collapse
No the new radio unlocks band 12.
skulldreamz said:
Vender can be packed into a flashable zip on our nexus. I'm not sure about the radio and bootloader on our nexus phone. Htc if s-off can flash radios I'm sure of and lg g2, g3, etc can flash loki bootloaders from a custom recovery. But you have got to be careful when your writing data to these very sensitive partitions because 1 screw up and you have a hard brick
Click to expand...
Click to collapse
We can use fastboot to flash radio, bootloader, and vendor.
So this is basically a flashable zip for people(me) who are unwilling to go back to stock 6.0.0 from whatever ROM there are on and apply OTA updates?
Right now, I'm unlocked and rooted, stock with ElementalX kernel(6.0.0) flashed, can I just flash this, then reroot?
This zip includes 6.0.1 kernel right?
Thanks in advanced, I'm new to the Nexus phones
imadiu said:
So this is basically a flashable zip for people(me) who are unwilling to go back to stock 6.0.0 from whatever ROM there are on and apply OTA updates?
Right now, I'm unlocked and rooted, stock with ElementalX kernel(6.0.0) flashed, can I just flash this, then reroot?
This zip includes 6.0.1 kernel right?
Thanks in advanced, I'm new to the Nexus phones
Click to expand...
Click to collapse
I believe you still need to fastboot flash the radio and bootloader. The vendor.img there is a TWRP flashable zip in the pure nexus project thread
gleggie said:
I believe you still need to fastboot flash the radio and bootloader. The vendor.img there is a TWRP flashable zip in the pure nexus project thread
Click to expand...
Click to collapse
Alright, so I have to flash this zip file, reboot to fastboot, flash radio and boot loader and I'm done? And I can proceed on to root the whole thing again and stuff? Is that right?
imadiu said:
Alright, so I have to flash this zip file, reboot to fastboot, flash radio and boot loader and I'm done? And I can proceed on to root the whole thing again and stuff? Is that right?
Click to expand...
Click to collapse
I'm curious about this too
imadiu said:
Alright, so I have to flash this zip file, reboot to fastboot, flash radio and boot loader and I'm done? And I can proceed on to root the whole thing again and stuff? Is that right?
Click to expand...
Click to collapse
If you aren't on the latest radios/bootloader, just do a full wipe in TWRP, then reboot to bootloader and fastboot flash radios, bootloader, and vendor.img. Then reboot to TWRP and flash the ROM.zip
There is also a TWRP flashable vendor.img courtesy of Beanstown106
https://www.androidfilehost.com/?fid=24269982087014896
You can either flash the vendor.img in fastboot or flash it in TWRP with the flashable version
This ROM is good with Layers, right?
Sent from my Nexus 5X using Tapatalk
iamterence said:
This ROM is good with Layers, right?
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
Yes, the stock ROM works with Layers
MMB29P? I can't find anything for completely up to date.
parkerlreed said:
MMB29P? I can't find anything for completely up to date.
Click to expand...
Click to collapse
There's MMB29P ROMS everywhere, man.
Sent from my Nexus 5X using Tapatalk
iamterence said:
There's MMB29P ROMS everywhere, man.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
Stock flashable zip? I know there are custom ROMs. I am looking for one just like OP on this thread but for the slight version bump.

Categories

Resources