Need help ASAP! (fastboot preflash validation failed) - G 2014 Q&A, Help & Troubleshooting

EDIT 3: Okay, just flashed a new kernel and the WiFi is working now. Must have been the stock kernel for some reason.
So all problems solved now
EDIT 2: Succesfully flashed the ROM, but unable to connect to Wifi. When I press the on button, it switches on for a second and then switches off again. Any idea guys why?
I've been trying to flash the stock ROM, but can't because as soon as I begin with the first step i.e fastboot flash partition gpt.bin, the following error is displayed- fastboot preflash validation failed.
Now I've been reading up on the forums here and a some have said that this error occurs when someone tries to downgrade. But I'm on the latest build and I don't know why this is happening?
Just so everyone knows, I'm unlocked and rooted.
Please, I need help since the ROM I'm on, which by itself is stock, is pretty much not working.
EDIT: The full message on fastboot is as follows
PHP:
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.036s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.397s
And on the bootloader
PHP:
version downgraded for primary_gpt

mahendru1992 said:
I've been trying to flash the stock ROM, but can't because as soon as I begin with the first step i.e fastboot flash partition gpt.bin, the following error is displayed- fastboot preflash validation failed.
Now I've been reading up on the forums here and a some have said that this error occurs when someone tries to downgrade. But I'm on the latest build and I don't know why this is happening?
Just so everyone knows, I'm unlocked and rooted.
Please, I need help since the ROM I'm on, which by itself is stock, is pretty much not working.
EDIT: The full message on fastboot is as follows
PHP:
target reported max download size of 536870912 bytessending 'partition' (32 KB)...OKAY [ 0.036s]writing 'partition'...(bootloader) Preflash validation failedFAILED (remote failure)finished. total time: 0.397s
And on the bootloader
PHP:
version downgraded for primary_gpt
Click to expand...
Click to collapse
You can ignore gpt.bin and motoboot.bin. They won't flash if the same or lower version. Not a problem. Just continue flashing the other files.

doppelhelix said:
You can ignore gpt.bin and motoboot.bin. They won't flash if the same or lower version. Not a problem. Just continue flashing the other files.
Click to expand...
Click to collapse
Okay, thanks man, I successfully flashed the ROM. But now I have another problem. I'm not able to switch on my Wifi. When press the on button, it switches on for a micro sec and then switches off. Any idea why?

Don't know. Maybe a reboot. After that I would wipe dalvic, cache and data?

doppelhelix said:
Don't know. Maybe a reboot. After that I would wipe dalvic, cache and data?
Click to expand...
Click to collapse
I did better, a factory reset. Nada.
Would flashing a different kernel help?

Did you do a
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
This is a wififix for the kernel

doppelhelix said:
Did you do a
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
This is a wififix for the kernel
Click to expand...
Click to collapse
Oh I didn't know that this was a wifi fix, but yes I did perform the above steps as well.
But anyhow, I flashed a new kernel and it did solve the problem.

Thanks
doppelhelix said:
You can ignore gpt.bin and motoboot.bin. They won't flash if the same or lower version. Not a problem. Just continue flashing the other files.
Click to expand...
Click to collapse
Thanks 4 Your Help i been stuck whit that errors all night and now i have back on 4.4.4.

C:\Users\Raghavendra\Documents\RETAIL-BR-DS_4.4.4_KXB21.14-L1.40_38_cid12_CFC_1F
F_SVC.xml>mfastboot flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (1953 KB)...
OKAY [ 0.133s]
writing 'motoboot'...
(bootloader) Motoboot: Unknown partition name
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.192s
pl help me i have the same problem..... but idk how to fix it...... plz help me asap... i have just unbricked my phone and tried to flash the brazillian 4.4.4....... i was already on this firmware before but when i tried to update to brazilian ota 5.0 my phone was bricked... now i have successfully unbricked it but i cant flash it to any rom cause of this problem...... if it the files prob?? should i get another rom?? pl help asap:crying::crying::crying::crying::crying::crying:

Raghavendra2k14 said:
C:\Users\Raghavendra\Documents\RETAIL-BR-DS_4.4.4_KXB21.14-L1.40_38_cid12_CFC_1F
F_SVC.xml>mfastboot flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (1953 KB)...
OKAY [ 0.133s]
writing 'motoboot'...
(bootloader) Motoboot: Unknown partition name
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.192s
Click to expand...
Click to collapse
As you pointed out here: http://forum.xda-developers.com/showpost.php?p=57483947&postcount=115, your bootloader is locked. Please don't double-post. Forum Rules

pl help
doppelhelix said:
As you pointed out here: http://forum.xda-developers.com/showpost.php?p=57483947&postcount=115, your bootloader is locked. Please don't double-post. Forum Rules
Click to expand...
Click to collapse
when i try unlocking bootloader again it gives me me a error
C:\Users\Raghavendra\Desktop\platform-tools>fastboot oem get_unlock_data
...
(bootloader) Could not get unlock data!
OKAY [ 0.016s]
finished. total time: 0.016s
even if i put my old code it doesnt work... pl help..... but in this forum it tells us to flash the two files gpt.bin and motoboot.img but when i try to flash these they give me preflash validation error <remote failure> and display "version downgraded for primary_gpt" on the moto g
my bootloader is locked because it got hard bricked and i recently unbricked it.... the next step was to flash these two files but i get this preflash validation error <remote failure> and display "version downgraded for primary_gpt" on the moto g
pl help me

Raghavendra2k14 said:
when i try unlocking bootloader again it gives me me a error
C:\Users\Raghavendra\Desktop\platform-tools>fastboot oem get_unlock_data
...
(bootloader) Could not get unlock data!
OKAY [ 0.016s]
finished. total time: 0.016s
even if i put my old code it doesnt work... pl help..... but in this forum it tells us to flash the two files gpt.bin and motoboot.img but when i try to flash these they give me preflash validation error <remote failure> and display "version downgraded for primary_gpt" on the moto g
my bootloader is locked because it got hard bricked and i recently unbricked it.... the next step was to flash these two files but i get this preflash validation error <remote failure> and display "version downgraded for primary_gpt" on the moto g
pl help me
Click to expand...
Click to collapse
Didn't you read anything of the previous posts?
If you've unlocked your bootloader, and getting these errors, you can safely ignore them. Just carry on flashing the other files.

Carried on
I did carried on with the fastboot steps but I get this "UTAG "flashfail" is configured as fastboot" and I'm still stuck in Bootloader.
How do I change the Kernel?
Oh yeah, I updated to Lollipop about 20 days ago, worked fine until a few days back and suddenly I get these strange errors. What could be the cause though?

Related

Will I be forever stuck at 4.2.2 if I cant flash recovery?

I have tried everything I have read on here and I cant seem to flash recovery. I used pwnmymoto to gain root when I first received my moto x. When the camera update came I thought I unrooted and flashed back to stock becasue I was able to get the OTA. Yesterday I could not install the OTA 4.4 because it gave me a error sign. I tried to flash recovery using fastboot but everytime now matter what I do this shows up:
colins-air:Android Tools colinj22$ ./fastboot flash recovery recovery.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (10240 KB)...
OKAY [ 0.798s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.848s
colins-air:Android Tools colinj22$
Can someone please help me. I am fairly new to fastboot and I am on a Mac and I have read everything in these threads and nothing seems to help. Can I erase everything and somehow start from scratch?
Thank you all!
colinj22 said:
I have tried everything I have read on here and I cant seem to flash recovery. I used pwnmymoto to gain root when I first received my moto x. When the camera update came I thought I unrooted and flashed back to stock becasue I was able to get the OTA. Yesterday I could not install the OTA 4.4 because it gave me a error sign. I tried to flash recovery using fastboot but everytime now matter what I do this shows up:
colins-air:Android Tools colinj22$ ./fastboot flash recovery recovery.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (10240 KB)...
OKAY [ 0.798s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.848s
colins-air:Android Tools colinj22$
Can someone please help me. I am fairly new to fastboot and I am on a Mac and I have read everything in these threads and nothing seems to help. Can I erase everything and somehow start from scratch?
Thank you all!
Click to expand...
Click to collapse
try using a different fastboot besides the one you are using. also make sure you are trying to flash the right FW version. you can't downgrade FW so it needs to be the FW version that is currently on the device.
try the second link in the OP of this thread for a different fastboot
http://forum.xda-developers.com/showthread.php?t=2489249
Flashing recovery requires a unlocked boot loader, you're obviously on Verizon and unless you have a DE moto you can't flash recovery due to your boot loader being locked
Sent on my Moto X
Incorrect^
Sent from my XT1060 using Tapatalk

[Q] Some fastboot commands not working when downgrading

I have a UK XT1068 and have upgraded to Lollipop.
I've been trying to go back to stock so I can catch the stock OTA upgrade but the first two commands in the list don't seem to be working right i.e.
mfastboot.exe flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.109s]
writing 'partition'...
(bootloader) Preflash validation faile
FAILED (remote failure)
finished. total time: 0.422s
mfastboot.exe flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (2184 KB)...
OKAY [ 0.172s]
writing 'motoboot'...
(bootloader) Motoboot: Preflash validation for tz
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.469s
I'm using the stock ROM - RETGBALL_XT1068_4.4.4_KXB21.85-23_cid7_CFC.xml.
The rest of the commands do seem to work OK and the ROM seems to flash but I'm not sure everything is OK.
Also, I can't relock the boot loader, I get the following error:
mfastboot.exe oem lock
...
(bootloader) FAIL: Please run fastboot oem lock begin first!
(bootloader) sst lock failure!
OKAY [ 0.013s]
finished. total time: 0.014s
mfastboot.exe oem lock begin
...
(bootloader) Ready to flash signed images
OKAY [ 0.043s]
finished. total time: 0.044s
mfastboot.exe oem lock
...
(bootloader) sst lock failure!
OKAY [ 0.011s]
finished. total time: 0.012s
Any assistance would be greatly appreciated
Don't worry about it. Carry on with the rest of the commands. This is a pretty common error that has no effect.
Oh and you don't need to relock your bootloader to get an OTA.
mahendru1992 said:
Don't worry about it. Carry on with the rest of the commands. This is a pretty common error that has no effect.
Oh and you don't need to relock your bootloader to get an OTA.
Click to expand...
Click to collapse
Thanks for the info.
What does stop an OTA? I thought it was the unlocked bootloader?
podge3 said:
Thanks for the info.
What does stop an OTA? I thought it was the unlocked bootloader?
Click to expand...
Click to collapse
Anything not stock, for instance, a custom recovery or kernel.
If you've modified your system files, or disabled or uninstalled system apps, even that can prevent you from receiving an update.
mahendru1992 said:
Anything not stock, for instance, a custom recovery or kernel.
If you've modified your system files, or disabled or uninstalled system apps, even that can prevent you from receiving an update.
Click to expand...
Click to collapse
OK, thanks again.

Can't flash stock ROM

Hello guys, so yesterday I got into a bootloop on my Moto G 2014... Then I tried to flash the stock ROM to solve the problem, but every time I execute the command line:
mfastboot.exe flash partition got.bin
I got a message saying:
C:\Users\Magda\Desktop\JV>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.062s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.375s
Does anybody know how to fix it? I've been searching for a solution but I couldn't find...
If anybody could help me I will be very thankful...
Nynsu said:
fastboot flash partition gpt.bin
Click to expand...
Click to collapse
If you already updated the ROM, there are two images that can't be downgraded. The first is gpt.bin and the second is motoboot.img
Just ignore these two and continue flashing.
Thanks
doppelhelix said:
If you already updated the ROM, there are two images that can't be downgraded. The first is gpt.bin and the second is motoboot.img
Just ignore these two and continue flashing.
Click to expand...
Click to collapse
Thanks, Thanks! I just ignored these two and it worked. I never thought it would be that simple lol . Thanks,mate

Preflash validation failed, not booting

I have a Motorola Moto G 4G (2nd gen)
So I'm trying to install my stock 6.0 rom on my phone, I have fastboot, adb and the drivers installed my rom(i think its the correct one)
(XT1072_THEA_RETGB_6.0_MPB24.65-34_cid7_subsidy-DEFAULT_CFC.xml.zip)
I have all the software needed installed but whenever I try to flash someing it says this:
C:\Recover\XT1072_THEA_RETGB_6.0_MPB24.65-34_cid7_subsidy-DEFAULT_CFC.xml>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.113s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.483s
My bootlocker is unlocked:
fastboot oem unlock
(bootloader) fastboot oem unlock [ unlock code ]
OKAY [ 0.033s]
finished. total time: 0.035s
I have no I dea what to do atm I tried different guides but I just keeps getting stuck at the "Your bootloader unlocked......" screen you get when you unlock your bootloader.
I followed serveral guides but nothing seems to work and I'm to the poin that I dont even wanna root just a working phone..
If any of you guys could help me out that would be great because I've been trying thiis for 5 hours and no succes
If you have any questions feel free to ask me, I'm available on discord and ts if needed!
THanks I advance
Have you flashed the rest of the firmware. You can ignore that bootloader message.

Relock bootloader on Moto G6

Every time I try to lock my bootloader again on my Moto G6 XT1925-3 through the rom stock I get this error:
C:\Minimal ADB and Fastboot (Stock Rom)>fastboot flash partition gpt.bin
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.005s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.075s
C:\Minimal ADB and Fastboot (Stock Rom)>fastboot flash bootloader bootloader.img
target reported max download size of 534773760 bytes
sending 'bootloader' (7419 KB)...
OKAY [ 0.244s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image aboot failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.456s
Would anyone help me?
MacaldS said:
Every time I try to lock my bootloader again on my Moto G6 XT1925-3 through the rom stock I get this error:
C:\Minimal ADB and Fastboot (Stock Rom)>fastboot flash partition gpt.bin
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.005s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.075s
C:\Minimal ADB and Fastboot (Stock Rom)>fastboot flash bootloader bootloader.img
target reported max download size of 534773760 bytes
sending 'bootloader' (7419 KB)...
OKAY [ 0.244s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image aboot failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.456s
Would anyone help me?
Click to expand...
Click to collapse
You're trying to flash an older firmware than the one you're on now. It's going to fail and if it succeeds it will brick your device. you'll need to find a firmware package the same or newer than the one you're on now.
Relocking the bootloader may not be possible many have tried and failed
madbat99 said:
You're trying to flash an older firmware than the one you're on now. It's going to fail and if it succeeds it will brick your device. you'll need to find a firmware package the same or newer than the one you're on now.
Relocking the bootloader may not be possible many have tried and failed
Click to expand...
Click to collapse
Could you tell me where I can find firmwares that are the same or newer than mine?
MacaldS said:
Could you tell me where I can find firmwares that are the same or newer than mine?
Click to expand...
Click to collapse
Flashing stock will not re lock bootloader. But you can find some stock firmwares here
You'll have to see which one you need. I don't know what region your phone is or what firmware is on it.
madbat99 said:
Flashing stock will not re lock bootloader. But you can find some stock firmwares here
You'll have to see which one you need. I don't know what region your phone is or what firmware is on it.
Click to expand...
Click to collapse
Can I make these updates through TWRP or should they be made by fastboot?
MacaldS said:
Can I make these updates through TWRP or should they be made by fastboot?
Click to expand...
Click to collapse
Not TWRP. These are stock firmware, so fastboot or RSDlite.
I Bricked Moto g6 Xt 1925-6
madbat99 said:
You're trying to flash an older firmware than the one you're on now. It's going to fail and if it succeeds it will brick your device. you'll need to find a firmware package the same or newer than the one you're on now.
Relocking the bootloader may not be possible many have tried and failed
Click to expand...
Click to collapse
This happened to me i Need to unbrick it but the bootloader is locked by the Android Device Manager as well as seen here https://forum.xda-developers.com/mo...android-aosp-9-0-pie-android-9-0-0r1-t3847354 Someone Please Tell me how I Can unlock my BootLoader Now?
It's almost inpossible to relock your bootloader because you need to have signed that not bad boot.img and ect. As long that you don't have those files you will be unable to relock the bootloader. I have noticed the same thing when i was trying to relock mine bootloader on my moto g6.
I Bricked Moto g6 Xt 1925-6
outsideracer said:
It's almost inpossible to relock your bootloader because you need to have signed that not bad boot.img and ect. As long that you don't have those files you will be unable to relock the bootloader. I have noticed the same thing when i was trying to relock mine bootloader on my moto g6.
Click to expand...
Click to collapse
no i did relock no i cant unlock again and phone is bricked its like 2 bootloaders weird I Need all the help i can get. it is a moto g6 xt-1925-6
2 boorloaders ?? Are they both locked than? And can you get in your recovery mode?
outsideracer said:
2 boorloaders ?? Are they both locked than? And can you get in your recovery mode?
Click to expand...
Click to collapse
yrs one has a red warning at boot up the other is yellow i get in revcovery mode on yellow loader but get code 21 error when trying to adb sideload
chrisp68 said:
yrs one has a red warning at boot up the other is yellow i get in revcovery mode on yellow loader but get code 21 error when trying to adb sideload
Click to expand...
Click to collapse
Did you try flashing twrp and doing a full format on twrp?

Categories

Resources