yashsingh1/xdaforums huggingface dataset:
[Moto G5 Guides, News, & Discussion] riyan65:
Yea, I got the both device g5 and g5+, after knowing that g5 can be unbrick using mmcblk0. I created for g5+ too, so in case blank flash won't work, and after the last update of motorola the blank flash is not working for many, so someone posted it got his device bricked, so I pm him to know if mmcblk0 file works and it does. It was able to boot the device but not able to flash the bootloader and gpt, he device also locked, so like to know what to do now. Here is the gpt error he got.

After unbrick the device i am going to post the mmcblk0 method in g5+, like this guide only.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
What error do you get when trying to flash gpt

Also you should be able to boot the device if you select start normally from the bootloader screen (you may have to flash the rest of stock firmware)

Also I don't know if the mmcblk0 of the g5 is different from the plus version so although it may boot to bootloader it may not allow you to flash Potter firmware to it so you may need to create your own mmcblk0 from a working Potter device
[Moto G5 Guides, News, & Discussion] riyan65:
It was able to boot from sd card.

And the mmcblk0 file is for Potter only, it was created by me only.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
This error is either

The firmware is too old - if there was a recent update you may have to wait until later firmware is released

Or

You have a locked bootloader and the image isn't officially signed and so it will fail validation

If different/newer firmware doesn't work & your bootloader is locked this method probably won't work for you
[Moto G5 Guides, News, & Discussion] porygon3000:
Hello

I'm stuck in a black "No command" screen, I tried those steps and even the Lenovo Moto Smart Assist to restore, I don't get any errors on either of those and every time I boot I go to the "No command" screen, I have deleted cache, restored to factory settings and the same issue persists

Bootloader was unlocked and I relocked just to see if something happened, but no....

Any help?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
The screen you are describing is stock recovery

From the no command screen hold Vol up and then press the power button

You are now in recovery mode

From here you can try and format data/factory reset (you will loose all data)

And then restart

If your phone doesn't boot normally then it's either because

There's no rom on your device - flash the entire stock firmware (see flashing firmware on first post & link to firmware)

Or you may need to wipe misc partition

Try seeing if your phone boots normally by first putting it fastboot mode (switch phone off then hold Vol down & power button) then select start normally from the menu options (use volume keys to navigate menu & power button to select)

If it boots normally from that menu but not when you restart normally or you want to try wiping the misc partition anyway see below thread

https://xdaforums.com/g5/how-to/fix-phone-reboots-recovery-mode-started-t3705325
[Moto G5 Guides, News, & Discussion] nift4:
[MENTION=4728903]TheFixItMan[/MENTION] Here an image for users with 16GB only SD (Luka wrote an guide too): https://telegra.ph/Unbrick-Hardbricked-Moto-G5-03-31

As we wiped system, data, cache and more the compressed download is very small (126 MB) but enough to unbrick an G5

Luka accidentally overwrote his bootloader and only had an 16 GB SD card, so we couldn't use the existing images
[Moto G5 Guides, News, & Discussion] TheFixItMan:
I will add to first post
[Moto G5 Guides, News, & Discussion] zfk110:
Hi, I got G7 power without any recovery, download and no screen showing up. Only its showing up in PC's device manager Quectel QDLoader 9008

, so I created the loader file from my working G7 power

using this

https://xdaforums.com/g7-power/help/loader-file-to-unbrick-motog7power-t3971639

Code: dd if=/dev/block/mmcblk0 of=/sdcard/Loader.img bs=1024 count=168960

then I used your guide here

https://xdaforums.com/g5/how-to/rooted-moto-g5-run-morning-post-image-t3776012

So now I have SD card with two folder one is saying Image, one is saying Ver, but when I tried to boot up using volume down and power nothing happens with SD card in it. I also tired EDL cable still no go.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Pull the image to your pc running Linux - don't use terminal emulator etc on the working phone

The working phone needs to be rooted

Also make sure you have formatted data of your working device - this will give a smaller image size that will fit on sdcard

Lastly depending on image size try formatting your sdcard as exfat instead

Run the following from a terminal in Linux assuming you have worked out the block size correctly (see below)

Substitute <STORAGE-ID> for the name of your hard drive

dd if=/dev/block/mmcblk0 of=/storage/<STORAGE-ID>/mmcblk0.img bs=1000000000 count=30

To work out bs and count

adb shell

su -

cat /proc/partitions

Note the size of mmcblk0 partition

bs times count equals partition size eg if partition size is 30GB then 1000000000 times 30 equals 30GB

Also have you tried this blankflash file instead?

https://www.mediafire.com/file/fdqt...ower-OCEAN-SDM632-_PPOS29.114-134-10.rar/file

Run blank-flash.bat from a Windows machine & if it works you should get the bootloader back on the device to flash firmware or use the lenovo smart assistant
[Moto G5 Guides, News, & Discussion] zfk110:
Hi, I was able to create the SD card using your guide and this guide here, my mmcblk0.img is 27.9GB under Windows PC, and it shows 30GB under Linux

so I used dd if=/dev/block/mmcblk0 of=/storage/<My SD ID>/mmcblk0.img bs=1000000000 count=30

https://xdaforums.com/moto-g5s/how-to/guide-how-to-create-mmcblk0-img-device-t3803176

Now on my SD card I have tons of partitions with different names, but still phone won't boot up. I deleted the 1 since my SD card was listed /dev/sdd1"

I tried this blankflash_from_PDOS29.114-134-2 since mine is G7 XT1955-5 power but I'm getting this

C:\blankflash_from_PDOS29.114-134-2>.\qboot.exe blank-flash

Motorola qboot utility version 3.40

[0.000] Opening device: \\.\COM190

[0.022] Detecting device

[ 4.112] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error

[ 4.112] Check qboot_log.txt for more details

[ 4.112] Total time: 4.112s

FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error

C:\blankflash_from_PDOS29.114-134-2>pause

Press any key to continue . . .

Also, under my device manager its listed Quectel QDLoader 9008 (COM190)

it all started when I tired to flash this XT1955-5_OCEAN_RETUS_9.0_PPOS29.114-134-7-1_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml after finishing up the installation I restarted the phone it went black on me.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It maybe that the mmcblk0 method doesn't work with your device

With the blank-flash error - taken from another guide

In cmd type

bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS

bcdedit -set TESTSIGNING ON

Install this driver - dpinst64.exe (if you have 64-bit Windows)

http://xdaforums.com/attachment.php?attachmentid=3261089&stc=1&d=1428980071

Using one hand keep power button and volume down button pressed at same time and using other hand click blank-flash.bat file

It may take multiple attempts to try and get a connection
[Moto G5 Guides, News, & Discussion] zfk110:
Thanks for your help, nothing worked for me so far I have spent over 30+ hours on it. Motorola sucks ass big time, I flashed the same firmware per their model # and for some reason it hard bricked the phone where no point to return.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Not much I can suggest - you will have to search the Internet for a working blank flash file or take to a repair shop & see if they can jtag it
[Moto G5 Guides, News, & Discussion] Edeegg:
how to create a smaller mmcblk0 image? i have a moto g5s but the mmcblk0 is bigger than my micro sdcard
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Format system data cache on phone you are pulling the image from before you pull the image

I don't know if anything else was removed from the image post pulling
[Moto G5 Guides, News, & Discussion] nift4:
The minimum is 16 GB (because it needs to be untouched after copying and the smallest G5 is 16GB) and we already have an image for that...
[Moto G5 Guides, News, & Discussion] Syoenth:
I'm trying to do this on my xt1670 and I got this message when I try to boot
[Moto G5 Guides, News, & Discussion] nift4:
That's a softbrick. Flash the fastboot flashable stock ROM.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Please flash firmware correctly as described on first post

You must successfully flash gpt and bootloader to boot without sdcard and the rest of firmware to boot the rom successfully

The link to firmware as well as all the commands to flash it are on the first post
[Moto G5 Guides, News, & Discussion] Syoenth:
I can't, I even run the getvar all and got this:

F:\Respaldo\Syo\Desktop\Flasheo\Herramientas\Motorola Flashboot>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: moto-msm8937-B8.31(*)

(bootloader) product: cedric

(bootloader) board: cedric

(bootloader) secure: yes

(bootloader) hwrev: P5

(bootloader) radio: 6

(bootloader) storage-type: emmc

(bootloader) emmc: 32GB SAMSUNG QX13MB RV=08 PV=07 FV=0000000000000007

(bootloader) ram: 2GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=1F

(bootloader) cpu: MSM8937

(bootloader) serialno: ebb3eef6

(bootloader) cid: 0xDEAD

(bootloader) channelid: 0x00

(bootloader) uid: 3B0489F700000000000000000000

(bootloader) securestate: oem_locked

(bootloader) iswarrantyvoid: n/a

(bootloader) max-download-size: 535822336

(bootloader) reason: Fall-through from charger boot mode

(bootloader) imei: 000000000000000

(bootloader) meid:

(bootloader) date: 01-01-1970

(bootloader) sku: 000000000000000

(bootloader) carrier_sku:

(bootloader) battid:

(bootloader) iccid:

(bootloader) cust_md5:

(bootloader) max-sparse-size: 268435456

(bootloader) current-time:

(bootloader) ro.build.fingerprint:

(bootloader) poweroffalarm: 0

(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) devcfg.git: devcfg.git

(bootloader) keymaster.git: keymaster.git

(bootloader) cmnlib.git: cmnlib.git

(bootloader) cmnlib64.git: cmnlib64.git

(bootloader) prov.git: prov.git

(bootloader) aboot.git: git=MBM-NG-VB8.31-0-g0b9dae9

(bootloader) frp-state: no protection (err)

(bootloader) ro.carrier:

(bootloader) current-slot:

(bootloader) slot-suffixes: _a

(bootloader) slot-count: 1

(bootloader) slot-successful:_a: INVALID

(bootloader) slot-successful:_b: INVALID

(bootloader) slot-bootable:_a: INVALID

(bootloader) slot-bootable:_b: INVALID

(bootloader) slot-retry-count:_a: unknown

(bootloader) slot-retry-count:_b: unknown

all: listed above

finished. total time: 0.664s
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Saying you can't without providing the output of you flashing the firmware as stated in the first post means I can't help you

At no point did I say run getvar & that is the output you would get by running that so I don't know what you expected from running that
[Moto G5 Guides, News, & Discussion] Syoenth:
I get this when I try to flash:

F:\Respaldo\Syo\Desktop\Flasheo\Herramientas\Motorola Flashboot>fastboot flash partition gpt.bin

target reported max download size of 535822336 bytes

sending 'partition' (45 KB)...

OKAY [ 0.016s]

writing 'partition'...

(bootloader) Validating 'gpt.default.xml'

(bootloader) Committing 'gpt.default.xml'

(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'

(bootloader) Flashing primary GPT image...

(bootloader) Failed to write primary GPT.

(bootloader) Failed to program partition table

FAILED (remote failure)

finished. total time: 0.109s

F:\Respaldo\Syo\Desktop\Flasheo\Herramientas\Motorola Flashboot>fastboot flash bootloader bootloader.img

target reported max download size of 535822336 bytes

sending 'bootloader' (5179 KB)...

OKAY [ 0.187s]

writing 'bootloader'...

(bootloader) Validating 'bootloader.default.xml'

(bootloader) Committing 'bootloader.default.xml'

(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition aboot

FAILED (remote failure)

finished. total time: 0.437s
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Is your bootloader unlocked?

Are you flashing the correct firmware?

Use this one

https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto G5 Guides, News, & Discussion] Syoenth:
the bootloader is locked and yes, I'm trying to flash the correct firmware
[Moto G5 Guides, News, & Discussion] TheFixItMan:
This guide is for people who have hard bricked their devices as a result of flashing wrong firmware or from an ota update that has hard bricked their device due to them having previously modified their device

It will only be successful if you have an unlocked bootloader as if your bootloader is locked your device will not except the flashing of unsigned or images that don't match the signature of the firmware on your device already

You will need to take your phone to a repair shop for jtag (or similar method) of flashing or a motherboard replacement

This is why I say if you previously unlocked your bootloader to never attempt to re-lock it as if something goes wrong down the line you may not be able to re-flash firmware

If you have never unlocked the bootloader and this has happened without trying to flash firmware you may have a hardware fault & will require a motherboard replacement anyway
[Moto G5 Guides, News, & Discussion] Marcelobr:
Alguém faz o debrink do J2 prime sm-g532mt por favor aguardando ,quero muito reviver meu celular obrigado
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Please go and read the xda rules again to which you just signed up to

All posts must be in English or contain an English translation

The answer to your question is no - please goto your own device forum where people with your device will be able to help you
[Moto G5 Guides, News, & Discussion] paigao:
Ami I missing something here? I made the memory card, put it into the phone, and press the power button but it does not go into bootloader mode
[Moto G5 Guides, News, & Discussion] sd_shadow:
You ran the terminal command?
[Moto G5 Guides, News, & Discussion] paigao:
Which terminal command are you refering to? I did the sudo dd bs=4M if=mmcblk0.img of=/dev/sdb status=progress oflag=sync. The sd card is made, but what do I do after that? The instruction is not very clear, and says "Once the phone is in bootloader mode you can flash stock firmware via fastboot". But what happens in between finishing creating the sd card, and getting the phone in bootloader mode?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Once you have created sdcard put it in your phone

Hold Vol down and power button to get into bootloader mode

If you created the sdcard card successfully you will now be in bootloader mode - you can see the bootloader menu options on your phone screen

If the phone is still a black screen with a blinking led your phone is still hard bricked & most likely user error or your sd card is too small for example

Once in bootloader mode just flash stock firmware using fastboot commands - the guide assumes you already have fastboot set up as you would have used it to unlock your bootloader and as this guide is for people with a hard brick phone due to incorrect firmware flash or trying to use a stock ota update with an unlocked bootloader I assume you know how to use fastboot and the commands written in the guide on how to flash stock firmware
[Moto G5 Guides, News, & Discussion] paigao:
Gotcha thanks. I wil try that. If nothing happens that means the sd card was done incorrectly? If I formated the sd card with gparted would that have a negative effect? I am also not seeing any led lights come on.
[Moto G5 Guides, News, & Discussion] magix01:
[MENTION=4728903]TheFixItMan[/MENTION]

I also found out that the singleimage.bin you shared as a fix from first post is in fact "MSM8952" so the guy that shared it is teasing us, you can edit singleimage.bin files in notepad or notepad++ there is manifest in the header that says "MSM8952". So we can give up on that one.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
So he had a moto g4 lol - I really don't understand some people who don't know their own device
[Moto G5 Guides, News, & Discussion] 006fazer:
Hi I have a new working xt1676. How can I generate singleimage.bin ?
[Moto G5 Guides, News, & Discussion] magix01:
[MENTION=4728903]TheFixItMan[/MENTION]

I am back with more findings regarding singleimage.bin, if you open any phone singleimage.bin and Cedric bootloader.img you will see almost same structure, there is manifest in header that says:

name="MSM8937"

There are some lines missing from bootloader.img that are present in the singleimage.bin i think programmer is missing and board ID and some other stuff. You can open it in notepad++ to compare or if you want to edit it with HxD hex editor, I tryed just renaming it to singleimage.bin but it fails at board identification.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
The nearest thread I could find that discusses the layout is singleimages.bin is

https://xdaforums.com/moto-g/general/generating-singleimage-bin-t3008047/

I might look at the layout over the weekend but Iv got other stuff to do so I'll just post as & when I discover anything
[Moto G5 Guides, News, & Discussion] oxxo.andatti:
any solution

Has anyone already tried some method with I exist? there are several ways but none has been confirmed, the user carla uploaded a file blankflas to google driver but it does not work

alguien ya probo algun metodo con existo? hay varias formas pero ninguno ha confirmado, el usuario carla subio un archivo blankflas a google driver pero no funciona

https://ibb.co/inFczH

someone has the file single.bin for the model xt1671 cpu.name:MSM8937 since the one that was uploaded is the MSM8952
[Moto G5 Guides, News, & Discussion] magix01:
Hi guys, i have blankflash.zip provided by [MENTION=1829889]vache[/MENTION] from G5+ forum, the singleimage.bin is 8937 for our board and it passes, but programmer.bin is not correct so it wont load, here it is if someone wants to experiment:

https://www.sendspace.com/file/9jvu1p

If you are on windows 10 do https://docs.microsoft.com/en-us/wi...all/the-testsigning-boot-configuration-option before trying.

So now we have singleimage i guess but programmer is missing.
[Moto G5 Guides, News, & Discussion] gsk@1999:
Getting this on my moto g5 Cedric xt1677

E:\blankflash>.\qboot.exe blank-flash

Motorola qboot utility version 3.40

[ -0.000] Opening device: \\.\COM7

[ 0.000] ERROR: device_open()->error opening device

[ 0.000] Check qboot_log.txt for more details

[ 0.000] Total time: 0.005s

FAILED: qb_flash_singleimage()->device_open()->error opening device
[Moto G5 Guides, News, & Discussion] TheFixItMan:
The g5 plus uses msm8953

You will have to ask how it was created & modified
[Moto G5 Guides, News, & Discussion] magix01:
Vache is not responding, looks like he is away, the singleimage.bin he shared with me is 8937 but it appears that programmer is not correct, bad thing is that these programmers need to be signed to be used with the phone, i guess unless moto releases there, all these devices will remain bricks forever :D
[Moto G5 Guides, News, & Discussion] NABECKER16:
someone has tried this https://xdaforums.com/moto-g5s/how-to/blank-flash-montana-t3765150

apparently they already managed to revive the Motorola g5s with this form.
[Moto G5 Guides, News, & Discussion] takoa:
we need the image file for cedric
[Moto G5 Guides, News, & Discussion] NABECKER16:
not what we need is a user with the rooted terminal, twrp and have a PC with Linux that can help us
[Moto G5 Guides, News, & Discussion] TheFixItMan:
This is the blk0 partition from the Moto G5 Cedric

https://mega.nz/#!x05SVaiR!t1SH8eLpOQNZXZJ6MHdLb6Bq2dWoCdHDNz1z_aeXgxE

I provided a tool which wrote this to sd card earlier but you can try the method used on the video to create the sdcard to boot from
[Moto G5 Guides, News, & Discussion] NABECKER16:
no creo que sea ese ya que debe de pesar cerca de 30 gb
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Please follow xda rules

All posts must be in English or contain an English translation
[Moto G5 Guides, News, & Discussion] alejandrorobles12:
the mountain has the same CPU as cedric, Snapdragon 430. When it comes to port a rom if it has the same CPU, it is possible, I do not know if the method of not glowing could be carried
[Moto G5 Guides, News, & Discussion] takoa:
at the moment I can not make it work in my xt1676

I follow the method with rufus 2.18.1213, I put the card in the phone, I put the battery charged and I pulse power but it does not do anything.

I remove the battery, put it back on and connect the phone to the PC and pulse power but it does not do anything.

---------- Post added at 17:12 ---------- Previous post was at 17:05 ----------

the size of the file once extracted is 3.99gb

---------- Post added at 17:13 ---------- Previous post was at 17:12 ----------

the size of the file once extracted is 3.99gb
[Moto G5 Guides, News, & Discussion] NABECKER16:
is that the file must be all cell partitions plus or minus 15 gb for the 16 gb and 30 or 28 gb versions for the 32 gb versions that's why it will not work because the file that went up is only the boot and in theory should have all the phone partitions.
[Moto G5 Guides, News, & Discussion] takoa:
this method does not work in xt1676 either.

I tried rufus from windows

also with linux from terminal to create the card and it has not been possible for the phone to boot.

Is the size of the .img correct?

can someone recreate another .img file from the xt1676 model?

I do not mind being tested since I give up for lost the phone, so everything that is achieved ... better

---------- Post added at 21:15 ---------- Previous post was at 21:00 ----------

If I got to know before, I would not have been trying all afternoon

:crying::crying::crying:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Format in Linux fat32 - shouldn't really make a difference what program you used to format it

You only need to make the sdcard if your device is unable to get into bootloader mode normally when you press & hold Vol down and the power button - aka a hard brick

If your device can get into bootloader mode but just doesn't boot normally you don't need the sdcard and can just go straight to flashing firmware in bootloader mode - aka a soft brick
[Moto G5 Guides, News, & Discussion] paigao:
I have a hard brick. I'm not seeing any lights, or anything. It's just blackness. I tried making the sd card twice on a 32gb card. Once with Fedora, and another with Zorin. When I plug it into Windows, I see Qualcomm in the device manager.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
The recommended Linux package is stated on the first post which is Linux mint which you can put on a live USB or dvd - I don't know if it will work on other varients

Also 32gb should be enough for the smaller image but if you have a 64gb card use that

Make sure the phone is fully charged

Don't plug phone into pc until you have successfully put phone into bootloader mode
[Moto G5 Guides, News, & Discussion] paigao:
Thanks. I will try that
[Moto G5 Guides, News, & Discussion] elenacoelho:
Hello, hope everyone is doing great! I hard bricked my phone after a failed downgrade. When I press the volume - key it flashes a screen saying AP Fastboot mode (secure) and other informations. I`ve tried the first page method using the smaller image and nothing happened. Should I try the larger image?
[Moto G5 Guides, News, & Discussion] sd_shadow:
If it's in fastboot mode use fastboot.exe or lmsa

https://xdaforums.com/general/rooting-roms/guide-flashing-motorola-firmware-t4042039

mmcblk0.img is for EDL mode