yashsingh1/xdaforums huggingface dataset:
[Moto G5 Guides, News, & Discussion] magix01:
Not working, I tried with and without battery, run as admin and normal, ran command manually too, every time this output:

**** Log buffer [000001] 2018-04-26_20:18:03 ****

[ 0.000] Opening device: \\.\COM3
[ 0.001] Detecting device
[ 0.004] ...cpu.id = 79 (0x4f)
[ 0.004] ...cpu.sn = 1613293139 (0x6028e653)
[ 0.005] Opening singleimage
[ 0.005] ERROR: error opening singleimage
[ 0.005] Check qboot_log.txt for more details
[ 0.006] Total time: 0.007s
[ 0.006]
[ 0.006] qboot version 3.40
[ 0.006]
[ 0.006] DEVICE {
[ 0.006] name = "\\.\COM3",
[ 0.006] flags = "0x64",
[ 0.006] addr = "0x61FE5C",
[ 0.006] sahara.current_mode = "3",
[ 0.006] api.buffer = "0x3221020",
[ 0.006] cpu.serial = "1613293139",
[ 0.006] cpu.id = "79",
[ 0.006] cpu.sv_sbl = "1",
[ 0.006] api.bnr = "0x2ED2F98",
[ 0.006] }
[ 0.006]
[ 0.006]
[ 0.006] Backup & Restore {
[ 0.006] num_entries = 0,
[ 0.006] restoring = "false",
[ 0.006] backup_error = "not started",
[ 0.006] restore_error = "not started",
[ 0.006] }
[ 0.006]
[Moto G5 Guides, News, & Discussion] TheFixItMan:
OK - I haven't tested as I don't own this device

What I would say is try putting all the files in one folder of the root of c: with no spaces just to make sure that isn't causing an issue

You can also try other methods using the singleimage.bin
[Moto G5 Guides, News, & Discussion] magix01:
[MENTION=4728903]TheFixItMan[/MENTION]

Tried with few other methods its not working for me at least, lets wait for someone else to test, i am on windows 10 x64.
[Moto G5 Guides, News, & Discussion] NABECKER16:
But where do we get the singleimages.bin from? :confused::confused::confused::confused:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It's in the zip attachment on the first post

But of course it will only work if it's for this device

You can create your own but it would require a working rooted device & alot of coding knowledge as it takes bits of the block0 and some other bits to create

There's a thread about it

https://xdaforums.com/moto-g/general/generating-singleimage-bin-t3008047
[Moto G5 Guides, News, & Discussion] takoa:
it does not work :crying:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Can you try uninstalling any Motorola drivers you have and install the qualcomm driver
[Moto G5 Guides, News, & Discussion] takoa:
[ 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]
[Moto G5 Guides, News, & Discussion] magix01:
[MENTION=4728903]TheFixItMan[/MENTION] [MENTION=1813028]takoa[/MENTION]

Ok guys i discovered something new, while on windows 10 with driver signing enforcement enabled you WILL get error opening single image, however when you disable it "run cmd as admin" then type:

bcdedit.exe /set nointegritychecks on

After that restart your PC and try the bat file *(Dont run as admin just double click it)*, however now the error is this:

**** Log buffer [000001] 2018-04-27_17:04:21 ****

[ 0.000] Opening device: \\.\COM3
[ 0.000] Detecting device
[ 0.000] ...cpu.id = 79 (0x4f)
[ 0.000] ...cpu.sn = 1613293139 (0x6028e653)
[ 0.000] Opening singleimage
[ 0.000] Loading package
[ 0.000] Failed identify board. Wrong package?
[ 0.000] ERROR: error loading package
[ 0.000] Check qboot_log.txt for more details
[ 0.000] Total time: 0.000s
[ 0.000]
[ 0.000] qboot version 3.40
[ 0.000]
[ 0.000] DEVICE {
[ 0.000] name = "\\.\COM3",
[ 0.000] flags = "0x64",
[ 0.000] addr = "0x61FE5C",
[ 0.000] sahara.current_mode = "3",
[ 0.000] api.buffer = "0x3240020",
[ 0.000] cpu.serial = "1613293139",
[ 0.000] cpu.id = "79",
[ 0.000] cpu.sv_sbl = "1",
[ 0.000] api.bnr = "0x31818A0",
[ 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]

This is the singleimage.bin from first post as potential fix but i think its wrong file, we could maybe generate correct file but that is beyound my reach currently.

Also a little tip, each time you try to flash it with the bat, you need to disconnect usb cable, pull battery, put battery back in and plugin in usb cable, otherwise you will get Sahara IO error because protocol is in protected loop.

Since singleimage.bin contains factory bootloader maybe it is possible to pack those files inside custom singleimage.bin, they will still be signed to pass sahara edl protection?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
I forgot to mention about disabling driver verification - that's a Windows 10 issue

I'll attach the blank flash files for the Moto G5 Plus for comparison - it uses a different board so I doubt it will work but if someone with the knowledge knows how to create singleimages.bin files you can examine this one
[Moto G5 Guides, News, & Discussion] magix01:
This one is not working, do you by any chance have any MSM8937 singleimage.bin from any other phone for me to try?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Not many devices use this chipset - you can have Google for one

I don't have this device anymore so all I can provide is what I find from searching
[Moto G5 Guides, News, & Discussion] Martoxdlol:
You can do it from windows:

1) delete the sd with the windows disk manager

2) You can flash it with a program called Etcher and it works, and you don't need to use Linux
[Moto G5 Guides, News, & Discussion] maritimesbob:
Ok, this fix works just fine and I can boot into bootloader and even the existing firmware that I originally screwed up with. But, when I reflash the firmware, each CMD line gives the following with system, partition, bootloader and so forth

(bootloader) has-slot: ***** not found

Other than this the firmware appears to flash, but when I reboot I am back to a dead phone again. It will only work with the sdcard in there with a flashed bootloader.

I am guessing I might be flashing the wrong firmware for my device? It's a UK G5 cedric which I believe is a XT1675?

So close yet so far!!!
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If gpt doesn't flash your phone will not repartition correctly

Make sure gpt flashes - if you get a security downgrade error the firmware is too old

You need to successfully flash gpt & bootloader to be able to boot without the sdcard

Try using a later firmware version
[Moto G5 Guides, News, & Discussion] TheFixItMan:
As per xda rules all posts must be in English or have an English translation
[Moto G5 Guides, News, & Discussion] Andrej_SK:
Did you try that that? Does it really work?

Even my Moto G5 isn't bricked, I'm asking because I believe, this method might be much more user-friendly than using Linux to flash the sdcard.
[Moto G5 Guides, News, & Discussion] maritimesbob:
I could not find a later firmware, other than the 8.1 Oreo firmware from south America that was posted in the news forum on here. Either way, it flashed as it was clearly the newest firmware possible and yippee, the old G5 is alive again.

I assume if I want to downgrade to a lower firmware, I can flash an older one but do not flash GPT and Bootloader?

Thanks for the fix man, you are a star!
[Moto G5 Guides, News, & Discussion] TheFixItMan:
That would be correct
[Moto G5 Guides, News, & Discussion] migueelmoreira:
Tried everything, nothing works.

Hey everyone.

I have tried several times every step on this guide, but nothing works.

My phone is XT1672, but I'm in Brazil, and I read somewhere that I need an different image for the brazillian version.

I'm getting really sad and thinking I won a paper weight.

I tried on Windows 10 and 7 with Rufus 2.18 and with Linux Mint Cinnamon. I used the image on the first page and followed step by step.

Can someone help me?
[Moto G5 Guides, News, & Discussion] Martoxdlol:
I first tried Linux and I could not.

then it occurred to me to do everything from Windows and it went perfectly to the first.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It won't work with rufus - I keep saying this

Use Linux mint live usb/dvd - do not use a virtual machine on windows

You may need to use a different sd card

Make sure you run the commands as root

The image on the first post will work on any moto g5 cedric as stated
[Moto G5 Guides, News, & Discussion] migueelmoreira:
I did use Mint on Live USB.

And tried Etcher like someone before, but, still nothing.

I have a San Disk 32gb, but isn't class 10. You think I need a new one?

And I can't even enter on fastboot, that's the main problem. Even if I hold "Power Down + Power" for 180 seconds.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
The sd card needs to meet the size requirements after you have removed all partitions & created a new fat32 partition in Linux & formatted it

If it doesn't work try a 64gb sdcard
[Moto G5 Guides, News, & Discussion] romssnes:
Hi, I have done all the procedures, but at the time of writing the line of code in the terminal, my memory card became like /dev/sdc1 and not /dev/sdb1 , have any problems?

in linux mint does not have the FAT32 option, only FAT, does it have any problem to leave the FAT?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Remove all partitions from the sd card - it will have fat32 if you create a new partition and choose the relevant type from the drop down menu

The namings of sdcard are examples - if yours is named different use the name you have but remember to remove the 1

So yours would become

sudo dd bs=4M if=mmcblk0.img of=/dev/sdc status=progress oflag=sync
[Moto G5 Guides, News, & Discussion] romssnes:
I did everything as planned, and when I put in to create a new partition there are only a few file systems, and in the middle of them there is only FAT, I do not see FAT32. I did as FAT, everything was going well, everything was going great, but when I put it on the moto g5 xt1672 it did not boot.

I made all the steps as described by you, I used Linux Mint Cinnamon, I deleted all the existing partitions of the factory, I created a new one by clicking on + (as FAT, because I only found this one), I mounted the sdcard, /dev/sdc1 because it was the third "disk" my computer has, i opened the root where the mmcblko.img file was as "open as root", and I used the terminal to "burn" the memory card with the image that you made available (to whom I am grateful) using the right command line.

but all in the end I did not get the expected success.

Tomorrow I will redo the steps described by you, and I will take some photos from the screen, if are right, great, otherwise you will see the catches where I went wrong, and you will be able to help me and help other people who are wrong too.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It needs to be fat32

Try using gparted to create the partition & format

If it's not on the live dvd/usb you can download and install it (depending on the live setup) or you can create a live dvd/USB of gparted just to create and format the partition

https://gparted.org/download.php

If not use a different sdcard

Not really any other help I can give here
[Moto G5 Guides, News, & Discussion] migueelmoreira:
Did it! But still nothing... Any other tip?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Use a different sd card - preferably 64gb
[Moto G5 Guides, News, & Discussion] migueelmoreira:
Yep, I used other card, San Disk too but with 64gb...
[Moto G5 Guides, News, & Discussion] luanstpf:
This archive work just one time? I have sucess on the first time, but my xt1672 received a update and don't start more, just the led again.. Have a second chance?

So sorry for my english
[Moto G5 Guides, News, & Discussion] romssnes:
I did again, created the partition by GParted as you instructed me, created it as fat32, but could not name the partition as mmcblk0, the option for it was not active. the card was named blank, followed with steps to "burn" the sdcard with the file mmcblk0.img, everything was going well, but in the end the phone did not boot.

when I put the cell WITHOUT the memory card in the PC via USB, it appears qualcomm hs-usb qdloader 9008, when I disconnect the cell phone from the PC, I put the sdcard in the cell phone I try to initialize by the power button, it does not initialization , when I put the cell phone in the pc again WITH the sdcard inserted in it, via USB cable, the pc to of recognize the cell phone and no longer appears driver qualcomm hs-usb qdloader 9008.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If you can't access the bootloader mode on the phone (hold Vol down & power button) then your only option is to try a different sd card
[Moto G5 Guides, News, & Discussion] TheFixItMan:
The sdcard will get you to the bootloader every time

You will probably need different firmware to last time as gpt & bootloader need to be the same or newer than what is currently on your phone. If you updated your phone then these may have been updated.

If you get a security downgrade error when flashing the firmware it is too old & you will need a newer version

When updating via ota your phone must be totally unmodified (unlocked bootloader should be fine) Even if you flash twrp then flash stock recovery back you have modified the phone since the original firmware was flashed - Same with rooting and unrooting therefore you need to flash stock firmware before the ota update & just to double check its all unmodified lock the bootloader as that won't lock if anything is modified
[Moto G5 Guides, News, & Discussion] romssnes:
you could happen to make a video explaining the steps, just the part of creating the sdcard bootable.

that would be a tremendous help, if that is not a nuisance on my part, of course. I can get an idea of ​​how busy you must be.

If you can not do it I clearly understand. But do you have any sdcard that you can recommend me?

Is there any chance my cell phone has a more serious problem, so it would not boot? or I'm doing something wrong, or even the SD card is not suitable, the card used is a Sandisk 64gb Class 10.

I know I can be boring, but this is for a greater understanding.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
I don't own this device anymore and I've never needed to use this when I had it - it was a collaboration with other users to pull everything into the guide

That sdcard should be OK

Just make sure that the path to the sdcard hasn't changed since you last formatted it and it may require it to be named mmcblk0 so if it's not name it as that
[Moto G5 Guides, News, & Discussion] luanstpf:
Can you tell me how to get a different firmware? He updated with the May/2018 security.. now he just flashes the frontal led again.

Thanks
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Google the firmware you want & download it

You will still need to create the mmcblk0 sdcard using the guide from the first post so you can access the bootloader mode on your phone in order to flash the firmware

I don't own this device - I do not keep firmware nor do I know which is the latest - Google is your friend here
[Moto G5 Guides, News, & Discussion] romssnes:
what happened was, my motog5 was in 7.1 I updated pro oreo, then downgrade, I was trying to update pro oreo again (but then I had unlocked bootloader, my unhappiness). in the end he did not call anymore, is there any chance that mmcblk0.img does not work because of the update?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It will work regardless of firmware as the mmcblk0 contains the entire block to boot the phone to bootloader

Once in bootloader mode you need to successfully flash gpt to repartition the phone & bootloader so that the phone can boot without the sdcard
[Moto G5 Guides, News, & Discussion] luanstpf:
Yeah, I have the firmware newest for flash with fastboot. But my device are not booting with mmcblk0 more.. can you help me? :(
[Moto G5 Guides, News, & Discussion] meetlicious:
this work for FP issue ?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
I've no idea what a FP issue is

If your phone is a moto g5 cedric than yes - if not than no
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Not really - the guide is on the first post just follow it

Don't use virtual machines etc & make sure the path to sd card is correct in commands to what it's mounted as on your setup
[Moto G5 Guides, News, & Discussion] meetlicious:
Is a xt1676 my FP don't work more after Oreo update
[Moto G5 Guides, News, & Discussion] TheFixItMan:
This is a guide for hard bricked phones

All you need to do flash the correct firmware - as this has nothing to do with the guide on the first post (although instructions on how to flash firmware are there) no further help will be given here
[Moto G5 Guides, News, & Discussion] meetlicious:
I just asked a question.

I did the tutorial and solved my problem.
[Moto G5 Guides, News, & Discussion] Yash1213:
i tried the method given in the OP for my moto g5s. when using kali linux for flashing the mmcblk0 to the sd card, it stops at 1.6GiB. i am using a 32GB memory card btw.
[Moto G5 Guides, News, & Discussion] riyan65:
You need to use Ubuntu Linux
[Moto G5 Guides, News, & Discussion] TheFixItMan:
To start off with this is for the Moto G5 Cedric and not the Moto G5s

Please goto your own device forum to obtain the correct mmcblk0 and post in the correct section for your own device
[Moto G5 Guides, News, & Discussion] n5142:
this is working nowadays?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Read the first post
[Moto G5 Guides, News, & Discussion] riyan65:
Hey I don't understand the 10 step can you explain it in the clear way.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Look at the terminal commands - those are examples

Make a note of the path to your sdcard

if it's dev/sdb1 then you remove the 1 at the end so it's now dev/sdb

Use the path to your sdcard without the 1 at the end in the terminal command as the path to your sdcard
[Moto G5 Guides, News, & Discussion] riyan65:
I have ran the command but I was not able to recover the device, I have done everything you said but it didn't work.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Most likely user error - can't really help with that

If you can't access bootloader mode you have created the sd card wrong or need to use a different card

If you can access the bootloader but can't boot without the sd card you need to use firmware that is the same or newer than already on the device - gpt & bootloader must flash without error

Can't give you any other help - make sure the path to your sdcard is correct as per examples & the sd card is large enough after format
[Moto G5 Guides, News, & Discussion] boegeholz:
Worked for me! Thanks man!!!!
[Moto G5 Guides, News, & Discussion] Edeegg:
which device?

which device?
[Moto G5 Guides, News, & Discussion] Davidportl:
Sd card Damaged

Hi im unable to use the sd card Used for this method how to recover the sd card
[Moto G5 Guides, News, & Discussion] Edeegg:
rufus on windows to format sd card
[Moto G5 Guides, News, & Discussion] Davidportl:
Does the file work??

Does this mmblck0 work on Moto G5 XT1677 (3Gb + 16gb) varient
[Moto G5 Guides, News, & Discussion] riyan65:
It will work with all device and use this mmcblk0 file as it for you model.

https://drive.google.com/file/d/1Nw50H-XCsrxsFXdBeyo_a0CV4WGcZDIJ/view?usp=drivesdk
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Repartition it using any repartition tool

Eg - Linux gparted

Windows minitool

Also the inbuilt drive managers in both operating systems will detect the card even if it can't mount it as readable

Just delete the partition and create a new fat32 one

Note windows will probably not be able to mount/read the sdcard until you have repartitioned but it will detect it in drive manager
[Moto G5 Guides, News, & Discussion] TheFixItMan:
As I said on first post

Works with XT1672 XT1670 XT1671 XT1676 (and most likely all others and if you ask if it will work on your version I will just copy & paste this to you!)
[Moto G5 Guides, News, & Discussion] samartht:
hey

i have a moto e condor (xt1022) and i have an .img file but im not sure if its the .img file ,so would you mind telling me if its the right one which is needed for this guide .

Thanks

so,anyway i can contact you ?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
This guide is for the Moto G5 Cedric - please goto your own phone forum for support or alternatively read the following github.com page for instructions for your device

https://github.com/aravindvnair99/M...condor-unbrick/blob/master/Unbrick methods.md

But to answer your question the image is the entire mmcblk0 pulled from a working device
[Moto G5 Guides, News, & Discussion] Scyula:
Stock Firmware

Hi, finally i revived my g5 to the bootloader. Someone knows where i can download a stock firmware to the xt1676? it's from Europe
[Moto G5 Guides, News, & Discussion] TheFixItMan:
https://mirrors.lolinet.com/firmware/moto/cedric/official/
[Moto G5 Guides, News, & Discussion] samartht:
Yeah i already tried all that, just wanted to know if I had the right image and ended up in this thread where it's explained In a much better way, thanks anyways.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
The process should be the same but you would need a known working image from your device model

The only thing that could vary is the block size in the terminal command but other than that the process should be pretty much the same and obviously name the image the same as the terminal commands on the 1st post or amend as required

On that github.com page it says bs=1024 count=168960 so just change the command to for example

sudo dd bs=1024 count=168960 if=mmcblk0.img of=/dev/sdb status=progress oflag=sync

But it may depend on the image - just have to play around with it
[Moto G5 Guides, News, & Discussion] samartht:
Alright thanks I'll try it tonight I got an image.
[Moto G5 Guides, News, & Discussion] Mahiraj Parmar:
these steps will work 100% if u use 64gb sd card and be careful while writing those commands
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Why are you quoting a really old post during the testing phase that actually has nothing to do with the final guide lol

And didn't you see I'm the person who actually wrote the guide saying what you have written
[Moto G5 Guides, News, & Discussion] riyan65:
Hi, I have try again but now also it didn't work. I have make a video of process, can you let me know where I have gone wrong.here is the link for the video.

https://drive.google.com/folderview?id=1q_uR1Ztj-9BIIreRMUKcuPJuT8JpP8RD
[Moto G5 Guides, News, & Discussion] TheFixItMan:
From the video you created the sd card correctly

Don't have the phone plugged in when you try to enter fastboot mode

To enter fastboot mode hold Vol down and power button - you were holding Vol up or all three buttons

If it doesn't work you may need to use a 64gb sdcard
[Moto G5 Guides, News, & Discussion] riyan65:
But light is still blink, why??? And should I connect it to the charger or pc
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Only connect to pc once you are in bootloader mode - you will visably see that on the screen if you are in it (assuming the device is fully charged)

Assuming you have a bootloader fault from flashing wrong firmware or flashing ota firmware whilst your system was modified and its not a motherboard fault

As I said before - hold Vol down & power button to enter bootloader mode

If it doesn't work you may need to use a 64gb sd card or a different card