[XT1058] Trying to flash stock firmware -> gpt.bin error and risk to brick

santi1993

Senior Member
Mar 24, 2012
786
135
0
Buenos Aires
Hi, im having a unlocked xt1058, i just upgraded the phone to last 5.1 OTA, unlocked the BL and installed CM13 without problems at all, now after some researching ive noticed that my gps is bugged and im needing to get back to stock to make it work in CM13, everything cool at this point, just downloaded the latest firmware for my device on my cid and there's where problems started.

I've just downloaded XT1058_GHOST_RETAR_5.1_LPA23.12-15_cid12_CFC.xml from march of 2016, uncompress it on a fastboot folder that ive created for flashing purposes and started the flashing process.

First command i put into the fastboot is fastboot flash partition gpt.bin and the phone BL and fastboot returned to me errors.

From phone:
getvar has-slot:partition
getvar partition-type:partition
getvar max-download-size
downloading 32768 bytes
done
downgraded security version
update gpt_main version failed
preflash validation failed for GPT


From cmd:
target reported max download size of 805306368 bytes
sending 'partition' (32 KB)...
OKAY [ 0.247s]
writing 'partition'...
FAILED (remote failure)
finished. total time: 1.089s

I dont want to start test things without knowing it at all, is the first time im flashing a firmware to my moto x, all the other things ive done was under OTA automation, now im BL unlocked and i think i can mess the phone, can u help me please? ^^
 

omy4069

Senior Member
Sep 6, 2014
219
41
0
Hi, im having a unlocked xt1058, i just upgraded the phone to last 5.1 OTA, unlocked the BL and installed CM13 without problems at all, now after some researching ive noticed that my gps is bugged and im needing to get back to stock to make it work in CM13, everything cool at this point, just downloaded the latest firmware for my device on my cid and there's where problems started.

I've just downloaded XT1058_GHOST_RETAR_5.1_LPA23.12-15_cid12_CFC.xml from march of 2016, uncompress it on a fastboot folder that ive created for flashing purposes and started the flashing process.

First command i put into the fastboot is fastboot flash partition gpt.bin and the phone BL and fastboot returned to me errors.

From phone:
getvar has-slot:partition
getvar partition-type:partition
getvar max-download-size
downloading 32768 bytes
done
downgraded security version
update gpt_main version failed
preflash validation failed for GPT


From cmd:
target reported max download size of 805306368 bytes
sending 'partition' (32 KB)...
OKAY [ 0.247s]
writing 'partition'...
FAILED (remote failure)
finished. total time: 1.089s

I dont want to start test things without knowing it at all, is the first time im flashing a firmware to my moto x, all the other things ive done was under OTA automation, now im BL unlocked and i think i can mess the phone, can u help me please? ^^
the only things u need to do to fully working ur gps is
1: fastboot erase modem1
2:fastboot erase modem2 and all fine brou

---------- Post added at 01:09 PM ---------- Previous post was at 01:01 PM ----------

Hi, im having a unlocked xt1058, i just upgraded the phone to last 5.1 OTA, unlocked the BL and installed CM13 without problems at all, now after some researching ive noticed that my gps is bugged and im needing to get back to stock to make it work in CM13, everything cool at this point, just downloaded the latest firmware for my device on my cid and there's where problems started.

I've just downloaded XT1058_GHOST_RETAR_5.1_LPA23.12-15_cid12_CFC.xml from march of 2016, uncompress it on a fastboot folder that ive created for flashing purposes and started the flashing process.

First command i put into the fastboot is fastboot flash partition gpt.bin and the phone BL and fastboot returned to me errors.

From phone:
getvar has-slot:partition
getvar partition-type:partition
getvar max-download-size
downloading 32768 bytes
done
downgraded security version
update gpt_main version failed
preflash validation failed for GPT


From cmd:
target reported max download size of 805306368 bytes
sending 'partition' (32 KB)...
OKAY [ 0.247s]
writing 'partition'...
FAILED (remote failure)
finished. total time: 1.089s

I dont want to start test things without knowing it at all, is the first time im flashing a firmware to my moto x, all the other things ive done was under OTA automation, now im BL unlocked and i think i can mess the phone, can u help me please? ^^
try this rom https://www.androidfilehost.com/?fid=24052804347831649 and all would be fine ;)
 
  • Like
Reactions: santi1993

santi1993

Senior Member
Mar 24, 2012
786
135
0
Buenos Aires
the only things u need to do to fully working ur gps is
1: fastboot erase modem1
2:fastboot erase modem2 and all fine brou

---------- Post added at 01:09 PM ---------- Previous post was at 01:01 PM ----------


try this rom https://www.androidfilehost.com/?fid=24052804347831649 and all would be fine ;)
Hi @omy4069, thanks for reply!

My problem is that i cannot reflash stock firmware due gpt.bin error, can u gimme some help in that? i was thinking that i maybe can flash the rest of the modules via fastboot but i dont want to brick my phone cuz of flashing a boot.img on a no compatible gpt.bin or somewhat, im cid12.

Thanks afterwards! i want to go back to stock to test some things and being safe of a possible brick testing further roms or recoveries.
 

santi1993

Senior Member
Mar 24, 2012
786
135
0
Buenos Aires
the only things u need to do to fully working ur gps is
1: fastboot erase modem1
2:fastboot erase modem2 and all fine brou

---------- Post added at 01:09 PM ---------- Previous post was at 01:01 PM ----------


try this rom https://www.androidfilehost.com/?fid=24052804347831649 and all would be fine ;)
Hi, the command is fastboot erase modemst1 and modemst2, the ones u guided are wrong.

And the rom is based on CM, im trying to get into stock, ty for the idea, ill try a AOSP rom to try get locked, but my problem atm is another, i cant flash stock firmware.
 

Gsm UK

Senior Member
Jun 2, 2008
239
1
0
DUBAI
Nope, atm i resolved flashing stock rom with TWRP and testing modem behaviour without changing boot or gpt.bin

Enviado desde mi Moto X mediante Tapatalk
the question is how to flash twrp once i flash twrp

i get this error

Code:
C:\D Drive\Software\Motorola\Motorola>fastboot flash recovery openrecovery-twrp-2.8.0.1-ghost.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8376 KB)...
OKAY [  0.766s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.181s
phone screen error

invalid image size for partition recovery
 

santi1993

Senior Member
Mar 24, 2012
786
135
0
Buenos Aires
the question is how to flash twrp once i flash twrp

i get this error

Code:
C:\D Drive\Software\Motorola\Motorola>fastboot flash recovery openrecovery-twrp-2.8.0.1-ghost.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8376 KB)...
OKAY [  0.766s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.181s
phone screen error

invalid image size for partition recovery
In which bootloader are u? i mean any of the KK BL or LP BL?

Which is ur variant? Open 3G/4G or Carrier locked?

I can tell u how i get my recovery flashed but we need to share the same procedure, cheers from Argentina.
 
  • Like
Reactions: Gsm UK

santi1993

Senior Member
Mar 24, 2012
786
135
0
Buenos Aires
the question is how to flash twrp once i flash twrp

i get this error

Code:
C:\D Drive\Software\Motorola\Motorola>fastboot flash recovery openrecovery-twrp-2.8.0.1-ghost.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8376 KB)...
OKAY [  0.766s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.181s
phone screen error

invalid image size for partition recovery
In which bootloader are u? i mean any of the KK BL or LP BL?

Which is ur variant? Open 3G/4G or Carrier locked?

I can tell u how i get my recovery flashed but we need to share the same procedure, cheers from Argentina.
 

Gsm UK

Senior Member
Jun 2, 2008
239
1
0
DUBAI
In which bootloader are u? i mean any of the KK BL or LP BL?

Which is ur variant? Open 3G/4G or Carrier locked?

I can tell u how i get my recovery flashed but we need to share the same procedure, cheers from Argentina.
i really appreciate for your help bro.

Carrier is Verizon XT-1060

and i have try to unlock the boot-loader from moto web getting this message :
your device does not qualify for bootloader unlocking
and i have attach the picture please check the bl version and its on developer version
 

Attachments

Gsm UK

Senior Member
Jun 2, 2008
239
1
0
DUBAI
Details are here

Code:
fastboot getvar all
(bootloader) version-bootloader: 30BE
(bootloader) version: 0.5
(bootloader) cpu: MSM8960 Pro CS
(bootloader) ram: 2048MB Hynix S4 SDRAM DIE=4Gb
(bootloader) emmc: 32GB Toshiba REV=06 PRV=11 TYPE=17
(bootloader) product: ghost
(bootloader) revision-hardware: 0x8300
(bootloader) radio: 0x2
(bootloader) secure: yes
(bootloader) mid: 026b
(bootloader) serialno: T062005AKG
(bootloader) qe: qe 0/0
(bootloader) unlocked: no
(bootloader) iswarrantyvoid: no
(bootloader) max-download-size: 805306368
(bootloader) uid: FB1B5A050C000100000000000000
(bootloader) imei: 000000000000000
(bootloader) meid:
(bootloader) sku: 000000000000000
(bootloader) cid: 0xff
(bootloader) iccid: 89148000001024231192
(bootloader) date: 01-01-1970
(bootloader) cust_md5: 83AE0624738C7F5F22FB58BAD66C9981
(bootloader) reason: Key pressed
(bootloader) ro.build.date: Thu Aug 29 12:58:18 CDT 2013
(bootloader) ro.build.id: 13.9.0Q2.X-118-GHOST_GNPO-20
(bootloader) ro.build.tags: release-keys
(bootloader) ro.build.type: userdebug
(bootloader) ro.build.user: hudsoncm
(bootloader) ro.build.version.codename: REL
(bootloader) ro.build.version.incremental: 25
(bootloader) ro.build.version.release: 4.2.2
(bootloader) ro.mot.build.customerid: verizon
(bootloader) ro.product.name: factory_ghost
(bootloader) ro.build.fingerprint[0]: motorola/factory_ghost/ghost:4.2
(bootloader) ro.build.fingerprint[1]: .2/13.9.0Q2.X-118-GHOST_GNPO-20/
(bootloader) ro.build.fingerprint[2]: 25:userdebug/release-keys
(bootloader) ro.build.version.full[0]: Blur_Version.164.55.2.ghost_veri
(bootloader) ro.build.version.full[1]: zon.Verizon.en.US
(bootloader) kernel.version[0]: Linux version 3.4.42-xline-eng-g
(bootloader) kernel.version[1]: fd1a699-00143-g19096f2 (hudsoncm
(bootloader) kernel.version[2]: @il93lnxdroid50) (gcc version 4.
(bootloader) kernel.version[3]: 6.x-google 20120106 (prerelease)
(bootloader) kernel.version[4]:  (GCC) ) #1 SMP PREEMPT Thu Aug
(bootloader) kernel.version[5]: 29 13:33:33 CDT 2013
 
F

forbourne

Guest
i really appreciate for your help bro.

Carrier is Verizon XT-1060

and i have try to unlock the boot-loader from moto web getting this message :
your device does not qualify for bootloader unlocking
and i have attach the picture please check the bl version and its on developer version
your bootloader is locked. you can not flash custom recovery with bootloader locked.

if it is verizon, it cannot be unlocked in any way except you have kitkat 4.4.2. then sunshine app may unlock your bootloader. they charge around 25$. google it.

---------- Post added at 01:15 PM ---------- Previous post was at 01:11 PM ----------

Nope, atm i resolved flashing stock rom with TWRP and testing modem behaviour without changing boot or gpt.bin

Enviado desde mi Moto X mediante Tapatalk
yes. old baseband is doing speaker phone/call problems on marshmallow based custom roms.

flash ATT_XT1058_5.1.0_LPAS23.12-21.7-1_cid1_CFC.xml.zip from following link and it will resolve your issue.

https://yadi.sk/d/MCliEyCPfj7ZZ/MOTO.X1/XT1058/ATT
 

Gsm UK

Senior Member
Jun 2, 2008
239
1
0
DUBAI
your bootloader is locked. you can not flash custom recovery with bootloader locked.

if it is verizon, it cannot be unlocked in any way except you have kitkat 4.4.2. then sunshine app may unlock your bootloader. they charge around 25$. google it.

---------- Post added at 01:15 PM ---------- Previous post was at 01:11 PM ----------


yes. old baseband is doing speaker phone/call problems on marshmallow based custom roms.

flash ATT_XT1058_5.1.0_LPAS23.12-21.7-1_cid1_CFC.xml.zip from following link and it will resolve your issue.

https://yadi.sk/d/MCliEyCPfj7ZZ/MOTO.X1/XT1058/ATT
i have 4.2.2 developer version so is there anyway to unlock the bootloader without sunshine ?
 
F

forbourne

Guest
i have 4.2.2 developer version so is there anyway to unlock the bootloader without sunshine ?
if it is developer edition then it may be already unlocked or can easily be unlocked from motorola. check your device status by going into bootloader.

power down your phone and power it up by holding both volume keys.
 

Gsm UK

Senior Member
Jun 2, 2008
239
1
0
DUBAI
if it is developer edition then it may be already unlocked or can easily be unlocked from motorola. check your device status by going into bootloader.

power down your phone and power it up by holding both volume keys.
Phone boot-loader is locked and it cant be unlock via motorola web already try :(
 

santi1993

Senior Member
Mar 24, 2012
786
135
0
Buenos Aires
your bootloader is locked. you can not flash custom recovery with bootloader locked.

if it is verizon, it cannot be unlocked in any way except you have kitkat 4.4.2. then sunshine app may unlock your bootloader. they charge around 25$. google it.

---------- Post added at 01:15 PM ---------- Previous post was at 01:11 PM ----------


yes. old baseband is doing speaker phone/call problems on marshmallow based custom roms.

flash ATT_XT1058_5.1.0_LPAS23.12-21.7-1_cid1_CFC.xml.zip from following link and it will resolve your issue.

https://yadi.sk/d/MCliEyCPfj7ZZ/MOTO.X1/XT1058/ATT
i cant flash any 5.1 firmware cuz my phone is updated via OTA from the last 5.1 gpt.bin, im at 30.BE (sha-34b7ccb from april 22 2015) my device is unlocked but i cannot get any cid12 firmware compatible with my gpt.bin and im having some modem issues, im really in a closed street way, im loving my phone but i cannot flash any firmware on it :S
 
F

forbourne

Guest
if your boot loader is already on 30.BE then you must have also flashed updated modem as well. so it shouldn't be modem issue any more.

try AICP 11.0 rom for moto x, if audio is working fine on this rom then it means it is rom related bugs and not your modem issue.

thanks
 

kbdaking

Member
Mar 8, 2011
6
0
0
i really appreciate for your help bro.

Carrier is Verizon XT-1060

and i have try to unlock the boot-loader from moto web getting this message :
your device does not qualify for bootloader unlocking
and i have attach the picture please check the bl version and its on developer version
there is a way to unlock the bootloader but it has to be 4.4.4 or lower
 

Gsm UK

Senior Member
Jun 2, 2008
239
1
0
DUBAI
there is a way to unlock the bootloader but it has to be 4.4.4 or lower
no i had around 1500 phones here VERIZON XT-1060 all 4.2.2 i have unlock the boot-loader with sigma box without any problem
but 30 , to 40 phone which is stuck now .. there is no solution to unlock the boot-loader except sunshine i think
 
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