MOTO G5 CEDRIC XT1676 Only the led lights up, HELP PLEASE

takoa

Senior Member
Jun 4, 2009
196
23
48
mAdRiD
solved

This guide is for hard bricked Moto G5 Cedric
Hard bricked means a device which can not enter bootloader mode normally


This method has now been confirmed working

XT1672 32gb version (also works with XT1670 XT1671 and XT1676)
Download mmcblk0 image from here
Thanks to @jcbotelho for providing image

Requirements
Freshly formatted microSD card of at least 32gb
7zip
Linux mint live usb/dvd
USB card reader


Method
The BEST method to flash the sdcard with mmcbk0.img file is to use LINUX!
Windows user have no need to install Linux in pc, you can run Linux from a bootable usb-stick or pendrive that is at least 8gb

0) Put the Moto g5 on mains charge until you have finished flashing the sdcard so it's fully charged ready for the boot test!
1) Run linux, preferable cinnamon or mate versions of linux Mint
2) Insert the sdcard in pc or card reader and open "Disks" app
3) In "Disks" app select sdcard and you will see the sdcard partitions
4) Press "-" to delete the partition (delete all partitions if there is more than one)
5) Press "+" to create a new one and name it mmcblk0, set FAT(FAT32) file format and press "CREATE"
6) Press "Play" button to mount the sdcard, look to see what path the sdcard has (/dev/sd??) and then close the "Disks" app
7) Go to Desktop, open "Computer" and navigate to the location when the img file is extracted (mmcblk0.img)
8) Open the window where img file is with root (right click on window and select "open as root")
9) In root window open the Terminal (right click on window and select "open terminal")
no need to type "su" in terminal, it has root already (see notes if using Linux live usb/dvd)
10) Type in terminal the comand written below and dont forget to eliminate that "1" from the sdcard path,
that "1" can make the differnce betwen phone boot or not!!!!!


Things to note
Linux Live dvd doesn't have open as root so just open in terminal and add sudo to the start of the commands
I've included this in the commands below

If you get a status error just remove status=progress from the terminal command below


Terminal comands
- if your sdcard is seen like " /dev/sdb1"
in terminal aply that comand:
sudo dd bs=4M if=mmcblk0.img of=/dev/sdb status=progress oflag=sync

-if your sdcard is seen like " /dev/mmcblk0p1"
in terminal aply that comand:
sudo dd bs=4M if=mmcblk0.img of=/dev/mmcblk0 status=progress oflag=sync

and the flashing process should start
when it finishes, test the sdcard in the phone and it should boot!

If you get a size error of the sdcard in terminal you have to change the sdcard and try again!

Thanks to vaserbanix for the guide


Re-flash Stock Firmware
Once the phone is in bootloader mode you can flash stock firmware via fastboot
Note that in order to flash gpt the firmware MUST be the same or newer than the version currently on your phone

Once you have firmware that is the same or newer than your current version you can remove the sd card and run these commands (assuming you have fastboot all setup on your pc)

fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize (ignore any error)
fastboot erase clogo (ignore any error)
fastboot oem fb_mode_clear
fastboot reboot


Imei fix
If your imei is 0 then follow instructions from here
You should be able to restore stock after & keep imei
https://forum.xda-developers.com/g5/how-to/rooted-moto-g5-run-morning-post-image-t3776012

Something went wrong and now it does not start, only the led lights when it is connected to the pc. Only Qualcomm HS-USB QDLoader 9008 appears in the device manager.
I have tried several blankflash (1, 2, 3) but it does not work.
Also with Qfil and the same result.

Code:
greeting device for command mode
ReadFile() failed, error=31
opening device: \\.\COM3
OKAY [  0.023s]
greeting device for command mode
ReadFile() failed, error=995
opening device: \\.\COM3
opening device: \\.\COM3
OKAY [  0.008s]
greeting device for command mode
OKAY [  0.010s]
identifying device
...serial = 0x1B9ACE0A
...chip-id = 0x4F
...chip-rev = 0x0
...sv-sbl = 0x1
OKAY [  0.038s]
finding files
...programmer = programmer.mbn
...singleimage = singleimage.bin
OKAY [  0.020s]
validating files
OKAY [  0.002s]
switching to download mode
OKAY [  0.004s]
greeting device for image downloading
OKAY [  0.002s]
sending programmer
Unexpected packet: 4. Was expecting: 3
FAILED (blank-flash:sahara-transfer-image:send-image:unexpected packet)
:crying:

thanks in advance
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,654
3,922
253
London
Seriously ? And do you know if there will be?
It will never be released officially - Motorola don't release these files - they are either leaked or someone modifies existing files

You can try
www.kriztekblog.com/2016/10/how-to-flash-qualcomm-mbn-firmware-qpst-tool.html/amp

The firehose file I'll put in the attachment below - Unzip it
Make sure you install everything & put all files in root of c: keep paths short with no spaces eg c:/flashtool

Iv no idea what else maybe required as I don't have this device anymore & even if I did I'd only test it if my device needed reimaging


Your only other option is a motherboard replacement or a repair shop with the equipment to reimage devices eg via a j-tag
 

Attachments

  • Like
Reactions: takoa

oxxo.andatti

Senior Member
Mar 28, 2017
76
3
0
more files are missing

It will never be released officially - Motorola don't release these files - they are either leaked or someone modifies existing files

You can try
www.kriztekblog.com/2016/10/how-to-flash-qualcomm-mbn-firmware-qpst-tool.html/amp

The firehose file I'll put in the attachment below - Unzip it
Make sure you install everything & put all files in root of c: keep paths short with no spaces eg c:/flashtool

Iv no idea what else maybe required as I don't have this device anymore & even if I did I'd only test it if my device needed reimaging


Your only other option is a motherboard replacement or a repair shop with the equipment to reimage devices eg via a j-tag
you will have the other path and xml files missing, Has someone already worked with you? tendras los demas archivos path y xml que falta, alguien ya le funciono con exito este metodo?
 

TheFixItMan

Senior Member
Jul 8, 2012
7,654
3,922
253
London
you will have the other path and xml files missing, Has someone already worked with you? tendras los demas archivos path y xml que falta, alguien ya le funciono con exito este metodo?
You will either have to find one that works or develop your own if the ones that come with the program don't work

Like I said - I no longer have this phone & Iv tested nothing - I can provide ideas it's up to you to research alot of searching & come up with the solution
 

takoa

Senior Member
Jun 4, 2009
196
23
48
mAdRiD
I have tried all the possible ways that I have found here and on the net ... and nothing. Still the same. Hopefully it will be soon the release of blankflash. I look forward to it. ?
 

carlapazin

Member
Feb 1, 2011
19
3
0
São Paulo
work for me

I have tried all the possible ways that I have found here and on the net ... and nothing. Still the same. Hopefully it will be soon the release of blankflash. I look forward to it.
I found something that revive meu cedric that was only with LED blinking...
when conected to pc was found something like qualcomm 9008...

I'll get those files at my windows pc and can send to you
but is a kind of blankflash, write the bootloader and flash the room...
maybe i can get those files tomorow
 
  • Like
Reactions: takoa

takoa

Senior Member
Jun 4, 2009
196
23
48
mAdRiD
I found something that revive meu cedric that was only with LED blinking...
when conected to pc was found something like qualcomm 9008...

I'll get those files at my windows pc and can send to you
but is a kind of blankflash, write the bootloader and flash the room...
maybe i can get those files tomorow
please, as soon as possible
thank you very much

:fingers-crossed::fingers-crossed::fingers-crossed:
 

takoa

Senior Member
Jun 4, 2009
196
23
48
mAdRiD
done!
just follow the sequence:
1 - blankflash
2 - bootloader gpt
then you can write de ROM with RSD or ADB

let me know if i could help you

drive.google.com/open?id=1pFMczSqIaw9qOPIuU2bywKEAgpeF41v_
it does not work
can you tell us what steps you have followed, the operating system you use, the driver used and so on?
 

carlapazin

Member
Feb 1, 2011
19
3
0
São Paulo
it does not work
can you tell us what steps you have followed, the operating system you use, the driver used and so on?
I did with battery fully charged!
The bootloader of my XT1676 was locked

used the .bat file in:
1 - blankflash (the phone will restart on fastbot mode)
then the .bat file on 2 - bootloader gpt

again in fastboot mode, you can flash the early rom using ADB or RSD Lite.

my OS = Windows 7 (test mode active)
and the driver i've downloaded from anywere here at xda....

on windows the phone is show qualcomm 9008 (something like that)
oh yeah! uninstall all motorola drivers and just keep the qualcomm!!!

if u don't find those drivers, i can upload

---------- Post added 27th April 2018 at 12:04 AM ---------- Previous post was 26th April 2018 at 11:59 PM ----------

not working in xt1672
Sorry, bro...
Mine is XT1676... but I'm from Brazil... and the official model here is XT1672... I can look for something to ya
 

takoa

Senior Member
Jun 4, 2009
196
23
48
mAdRiD
I did with battery fully charged!
The bootloader of my XT1676 was locked

used the .bat file in:
1 - blankflash (the phone will restart on fastbot mode)
then the .bat file on 2 - bootloader gpt

again in fastboot mode, you can flash the early rom using ADB or RSD Lite.

my OS = Windows 7 (test mode active)
and the driver i've downloaded from anywere here at xda....

on windows the phone is show qualcomm 9008 (something like that)
oh yeah! uninstall all motorola drivers and just keep the qualcomm!!!

if u don't find those drivers, i can upload

---------- Post added 27th April 2018 at 12:04 AM ---------- Previous post was 26th April 2018 at 11:59 PM ----------



Sorry, bro...
Mine is XT1676... but I'm from Brazil... and the official model here is XT1672... I can look for something to ya

[ 0.000] Opening device: \\.\COM5
[ 0.000] Detecting device
[ 0.000] ...cpu.id = 79 (0x4f)
[ 0.000] ...cpu.sn = 463130122 (0x1b9ace0a)
[ 0.000] Opening singleimage
[ 0.000] ERROR: error opening singleimage
[ 0.000] Check qboot_log.txt for more details
[ 0.000] Total time: 0.010s
[ 0.000]
[ 0.000] qboot version 3.40
[ 0.000]
[ 0.000] DEVICE {
[ 0.000] name = "\\.\COM5",
[ 0.000] flags = "0x64",
[ 0.000] addr = "0x28FE6C",
[ 0.000] sahara.current_mode = "3",
[ 0.000] api.buffer = "0x24F0020",
[ 0.000] cpu.serial = "463130122",
[ 0.000] cpu.id = "79",
[ 0.000] cpu.sv_sbl = "1",
[ 0.000] api.bnr = "0x652D78",
[ 0.000] }
[ 0.000]
[ 0.000]
[ 0.000] Backup & Restore {
[ 0.000] num_entries = 0,
[ 0.000] restoring = "false",
[ 0.000] backup_error = "not started",
[ 0.000] restore_error = "not started",
[ 0.000] }
[ 0.000]
:eek:
 

takoa

Senior Member
Jun 4, 2009
196
23
48
mAdRiD
let's find another singleImage.... that's the only i've got

sorry, man
Hi. What I do not understand is because it does not work and it gives error being my terminal is the same model as yours, xt1676.
Use w7x64, unlocked bootloader, test mode, compilation 7601 and the correct qualcomm drivers.
Something I have or have overlooked.