help please brick bootloader.

ricardomilena

Member
Apr 25, 2017
5
0
0
I was using Resurrection Remix 7.1.1 Then I decided to install ElementalX.
I noticed that the unit was heating up.
Today when I woke up the device did not start anymore, it stayed on a black screen.

I decided to find a solution here in the forum.
I found this tip:
Https://forum.xda-developers.com/moto-g4-plus/help/solved-unbrick-hard-bricked-dead-t3585016

The device is back on again.
But I can not revert to stock rom.



When I try to upload GPT.bin it returns this error:
(Bootloader) Security version downgrade

(Bootloader) Image primary_gpt failed validation

(Bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 0.05s

Same thing with bootloader.img

E: \ cel \ motog4> fastboot flash bootloader bootloader.img
Target reported max download size of 536870912 bytes
Sending 'bootloader' (3651 KB) ...
OKAY [0.119s]
Writing 'bootloader' ...
(Bootloader) validating: bootloader.default.xml ...
(Bootloader) Invalid partition name aboot
(Bootloader) will fail: flash: aboot
FAILED (remote failure)
Finished. Total time: 0.213s

I spent the whole dawn trying a solution, downloaded all the stocks I found on the internet and had no solution.

Same thing with recovery.
E: \ cel \ motog4> fastboot flash recovery recovery.img
Target reported max download size of 536870912 bytes
Sending 'recovery' (16484 KB) ...
OKAY [0.522s]
Writing 'recovery' ...
(Bootloader) Invalid partition name recovery
FAILED (remote failure)
Finished. Total time: 0.530s


I've tried all these ROMs


My device is an XT1640


According to the getvar the information is these.

E: \ cel \ motog4> fastboot getvar all
<Waiting for device>
(Bootloader) version: 0.5
(Bootloader) version-bootloader: moto-msm8952-B1.03 (*)
(Bootloader) product: athene_16mp
(Bootloader) board: athene_16mp
(Bootloader) secure: yes
(Bootloader) hwrev: P2A
(Bootloader) radio: 6
(Bootloader) storage-type: emmc
(Bootloader) emmc: 32GB SKHYNIX HBG4a2 RV = 08 PV = E4 FV = 00000000000000E4
(Bootloader) ram: 2GB SKHYNIX LP3 DIE = 8Gb M5 = 06 M6 = 03 M7 = 00 M8 = 1F
(Bootloader) cpu: MSM8952
(Bootloader) serialno: xxxxxxx
(Bootloader) cid: 0x0032
(Bootloader) channelid: 0x19
(Bootloader) uid:
(Bootloader) securestate: oem_locked
(Bootloader) iswarrantyvoid: yes
(Bootloader) max-download-size: 536870912
(Bootloader) reason: Failed to initialize partition table
(Bootloader) imei: 000000000000000
(Bootloader) meid:
(Bootloader) date: 01-01-1970
Bootloader sku: 000000000000000
(Bootloader) battid:
(Bootloader) iccid:
(Bootloader) cust_md5:
(Bootloader) max-sparse-size: 268435456
(Bootloader) current-time:
(Bootloader) ro.build.fingerprint:
(Bootloader) ro.build.version.full:
(Bootloader) ro.build.version.qcom:
(Bootloader) version-baseband:
(Bootloader) kernel.version:
(Bootloader) sbl1.git: sbl1.git
(Bootloader) rpm.git: rpm.git
(Bootloader) tz.git: tz.git
(Bootloader) hyp.git: hyp.git
(Bootloader) keymaster.git: keymaster.git
(Bootloader) cmnlib.git: cmnlib.git
(Bootloader) aboot.git: git = MBM-NG-VB1.03-0-gb44c0ee
(Bootloader) qe:
(Bootloader) frp-state: no protection (err)
(Bootloader) ro.carrier:
All: listed above
Finished. Total time: 0.106s
 
Last edited by a moderator:

echo92

Senior Member
Jan 1, 2017
3,730
1,987
223
Plymouth
Was the above flashing tested with the GPT.bin from the 93-14 stock ROM file that you have? As you've noted, you can't downgrade your GPT (though at the moment we have no GPT or a corrupted partition table), so if you haven't, try flashing with the latest GPT.bin we've got access to.

You may also like to re-try with the blank flash and procedure from this post:https://forum.xda-developers.com/showpost.php?p=71405834&postcount=23
 
  • Like
Reactions: sd_shadow

ricardomilena

Member
Apr 25, 2017
5
0
0
Was the above flashing tested with the GPT.bin from the 93-14 stock ROM file that you have? As you've noted, you can't downgrade your GPT (though at the moment we have no GPT or a corrupted partition table), so if you haven't, try flashing with the latest GPT.bin we've got access to.

You may also like to re-try with the blank flash and procedure from this post:https://forum.xda-developers.com/showpost.php?p=71405834&postcount=23
Yes i try with 93-14 stock ROM.
XT1640_ATHENE_NPJ25.93-14_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

Samething at now

As you can see I tried all these roms.
All GPT.BINs that are inside of them


The question is:
How to force to enter em qboot again to make this procedure from this post:https://forum.xda-developers.com/showpost.php?p=71405834&postcount=23
 
Last edited:

MK+2017

Member
Mar 3, 2017
46
8
0
Yes i try with 93-14 stock ROM.
XT1640_ATHENE_NPJ25.93-14_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

Samething at now

As you can see I tried all these roms.
All GPT.BINs that are inside of them


The question is:
How to force to enter em qboot again to make this procedure from this post:https://forum.xda-developers.com/showpost.php?p=71405834&postcount=23
Bro, you are on the blank bootloader, I don't think you can get back there. You might have just been flashing the wrong gpt.bin and bootloader all that time?

Retry flashing the NPJ25.93-14 gpt.bin and bootloader.img, being tired and frustrated can cause lots of damage to your focus.
 

ricardomilena

Member
Apr 25, 2017
5
0
0
Bro, you are on the blank bootloader, I don't think you can get back there. You might have just been flashing the wrong gpt.bin and bootloader all that time?

Retry flashing the NPJ25.93-14 gpt.bin and bootloader.img, being tired and frustrated can cause lots of damage to your focus.

I extracted all gpt.bin and bootloader.img to each separate folder.
I tried one by one but it still does not work


C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.004s]
writing 'partition'...
(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.073s

C:\adb>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (3651 KB)...
OKAY [ 0.119s]
writing 'bootloader'...
(bootloader) validating: bootloader.default.xml ...
(bootloader) Invalid partition name aboot
(bootloader) will fail: flash:aboot
FAILED (remote failure)
finished. total time: 0.216s

I try with this Extracted gpt.bin and bootloader.img from this archive.
https://cloud.mail.ru/public/CKF3/AWVREk6s9

Same thing

C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.004s]
writing 'partition'...
(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.073s

C:\adb>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (3651 KB)...
OKAY [ 0.119s]
writing 'bootloader'...
(bootloader) validating: bootloader.default.xml ...
(bootloader) Invalid partition name aboot
(bootloader) will fail: flash:aboot
FAILED (remote failure)
finished. total time: 0.216s
 
Last edited:

MK+2017

Member
Mar 3, 2017
46
8
0
I extracted all gpt.bin and bootloader.img to each separate folder.
I tried one by one but it still does not work


C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.004s]
writing 'partition'...
(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.073s

C:\adb>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (3651 KB)...
OKAY [ 0.119s]
writing 'bootloader'...
(bootloader) validating: bootloader.default.xml ...
(bootloader) Invalid partition name aboot
(bootloader) will fail: flash:aboot
FAILED (remote failure)
finished. total time: 0.216s

I try with this Extracted gpt.bin and bootloader.img from this archive.
https://cloud.mail.ru/public/CKF3/AWVREk6s9

Same thing

C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.004s]
writing 'partition'...
(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.073s

C:\adb>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (3651 KB)...
OKAY [ 0.119s]
writing 'bootloader'...
(bootloader) validating: bootloader.default.xml ...
(bootloader) Invalid partition name aboot
(bootloader) will fail: flash:aboot
FAILED (remote failure)
finished. total time: 0.216s
This is weird. When it says "downgrade" then it really sees itself higher than the file version you are trying to flash! Really weird.

Since you already tried gpt.bin of NPJ25.93-14 I cannot advise you to try the gpt.bin of the latest OTA NPJ25.93-14.4: if it works it would only prove that you have hope, but you won't be able to proceed further because OTA packages do not include fastboot flashable bootloader and boot images (else I would have used them myself to get out of CID = 0xDEAD problem of my older dead XT1642)

If it does not work, however, it would only tell that something really awkward happened to your phone. Can't even tell if it would be a bad blankflash for your model?!
 
Z

zeomal

Guest
I extracted all gpt.bin and bootloader.img to each separate folder.
I tried one by one but it still does not work
This is trivial, but please triple check what you're trying to flash. I've got this errors on older Moto Gs (the G 2015 to be specific) because I used a firmware for the 1GB version against the 2GB version. Verify carefully.
 

lCrD512

Senior Member
Jul 4, 2016
240
879
0
32
Mumbai
@ricardomilena Just wanted to confirm whether you installed 93-14-4 update. If you did you'll have to wait till 93-14-4 images are available. If you didn't took that update then 93-14 bootloader & gpt should work. First flash gpt then flash bootloader then reboot to bootloader & finally you can flash all stock image as usual:
Code:
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
PS- See if you get success with the below attached gpt.bin it's from the new 93-14-4.
 
Last edited:

robot_head

Senior Member
Jun 13, 2015
1,593
587
0
las vegas
@ricardomilena Just wanted to confirm whether you installed 93-14-4 update. If you did you'll have to wait till 93-14-4 images are available. If you didn't took that update then 93-14 bootloader & gpt should work. First flash gpt then flash bootloader then reboot to bootloader & finally you can flash all stock image as usual:
Code:
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
PS- See if you get success with the below attached gpt.bin it's from the new 93-14-4.
Just the other day this happened to me as well I was flashing Invicta and went to reboot into recovery once I set up the ROM and I got the black screen only the notification light would blink after many attempts of trying to flash everything to get it up and running I had had to flash that 40 megabyte update of the partition table and that solved it then you have to go and Flash the entire firmware don't forget to flash the bootloader right after flash the GPT. Bin

Sent from my Moto G4 using Tapatalk
 

AlokSaxena

Member
Mar 13, 2017
34
6
0
21
Pune
@ricardomilena Just wanted to confirm whether you installed 93-14-4 update. If you did you'll have to wait till 93-14-4 images are available. If you didn't took that update then 93-14 bootloader & gpt should work. First flash gpt then flash bootloader then reboot to bootloader & finally you can flash all stock image as usual:
Code:
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
PS- See if you get success with the below attached gpt.bin it's from the new 93-14-4.
Lol bricked my device again (random brick) don't know why it happens. I've already installed the 93-14-4 update & as expected flashing stock firmware failed with 93-14 gpt file. I will try this gpt & report back.
 

schondan0

Member
Nov 2, 2017
5
0
0
How did your device get bricked? Have you tried this blankflash? https://forum.xda-developers.com/showpost.php?p=79013024&postcount=523
i've tried a lot of gpt versions, I'm gonna try this one (thanks) and see if it works, I did blanckflash and now it shows the same error: (Bootloader) validating: bootloader.default.xml ...
(Bootloader) Invalid partition name aboot
(Bootloader) will fail: flash: aboot
FAILED (remote failure)

I TRIED, BUT I HAVE ALREADY THE PHONE ALIVE, I THINK I NEED A NEW VERSION OF BOATLOADER AND GPT THAT WORKS. (I'VE TRIED 6,0 AND 7,0)
 
Last edited:

echo92

Senior Member
Jan 1, 2017
3,730
1,987
223
Plymouth
i've tried a lot of gpt versions, I'm gonna try this one (thanks) and see if it works, I did blanckflash and now it shows the same error: (Bootloader) validating: bootloader.default.xml ...
(Bootloader) Invalid partition name aboot
(Bootloader) will fail: flash: aboot
FAILED (remote failure)
Hmm, is that with the blankflash GPT and bootloader or with the separate GPT and bootloader files?

Do you see errors when flashing the GPT? That error suggests your device doesn't have a partition map or had corrupted flash memory.

Depending on what GPT and bootloader you had previously, you may have to flash the GPT and bootloader from the Oreo stock firmware (but only if you had updated to stock Oreo in the past).

If you're still on stock Nougat, try this April 2018 GPT and bootloader https://drive.google.com/file/d/13AuJkn8eelq-wQ5wp7lNQTf7kT7_lLwI/view?usp=drivesdk if you do get your device booting, please flash the latest firmware to your device
 
Last edited:
  • Like
Reactions: schondan0

schondan0

Member
Nov 2, 2017
5
0
0
I got it
thanks a million, this 2018 version worked, now just flash firmware

---------- Post added at 06:11 PM ---------- Previous post was at 05:20 PM ----------

IS POSSIBLE TO RE-LOCK BOOTLOADER? (I DO'T WANNA TRY TO SELL THE PHONE OR GET WARRANTY BACK) I want to lock bootloader to give it to my mother, (I got one one plus 5t). Or if you have the link to oreo rom to install via adb I will be more grateful than I already am.
 
Last edited:

echo92

Senior Member
Jan 1, 2017
3,730
1,987
223
Plymouth
I got it
thanks a million, this 2018 version worked, now just flash firmware

---------- Post added at 06:11 PM ---------- Previous post was at 05:20 PM ----------

IS POSSIBLE TO RE-LOCK BOOTLOADER? (I DO'T WANNA TRY TO SELL THE PHONE OR GET WARRANTY BACK) I want to lock bootloader to give it to my mother, (I got one one plus 5t). Or if you have the link to oreo rom to install via adb I will be more grateful than I already am.
Here is the link for the Oreo stock firmware
https://forum.xda-developers.com/showpost.php?p=79100802&postcount=1056
please read the initial post of the thread https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
to flash the firmware and relock your device bootloader - you will need to use fastboot. Of course, locking your bootloader will erase your device and revert your device to full stock, but if you're handing the device to your mother, that's likely for the best. Back up as necessary.
 
Last edited:

schondan0

Member
Nov 2, 2017
5
0
0
THANKS, I DID IT ALL. IT ALL WORKED WELL, NO ERROR (INCLUDE THE COMMON ERRORS LIKE FINGERPRINT ERROR OR IMEI ERROR) AND THE OSCARS GOES TO YOU. THANKS THANKS THANKS MATE:fingers-crossed:
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone