yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Elluel:
[MENTION=4325732]bitdomo[/MENTION] Nice, once again.

Added this thread to the Sticky Roll-Up thread. :)
[Nexus 5 General] bitdomo:
---------------------------------------------------------------------------

The tool is working. I tested on my nexus 5. I dd zeroed out the sbl1 partition. The phone refused to turn on no matter what I do. I did that what is shown in my first post and now the phone is working again. I also tried to help a guy, but it turned out the emmc of his phone has an I/O error. I used the EMMC TEST option to check the emmc for bad sectors.

I am also summoning [MENTION=2872010]rootSU[/MENTION] to let him know what a cool stuff nexus 5 has.
[Nexus 5 General] danarama:
Meh, I have a nexus 6. One hit to the bridge of the nose can kill a man before his head hits the floor.

---------- Post added at 07:36 PM ---------- Previous post was at 07:29 PM ----------

Superb work though, really!
[Nexus 5 General] theesotericone:
Now that is dedication. Welcome back man.:cool:
[Nexus 5 General] jacomail95:
Maybe this could work or be adapted for Nexus 4? I ask for personal curiosity :)

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 5 General] bitdomo:
It could be if we would have the flash programmer hex for nexus 4. I have some for some LG phone, but I have no idea are they working or they are for which phone. If you have a bricked nexus 4 or you know somebody who has I could try check the remaining flash programmers. Maybe 1 works for nexus 4.
[Nexus 5 General] bitdomo:
[MENTION=4947414]jacomail95[/MENTION] it looks like we already have the files for nexus 4 :) check this post http://xdaforums.com/showthread.php?p=57004657
[Nexus 5 General] jacomail95:
Thanks for your patience and information :) Have a nice week :)

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 5 General] sahouli31:
help please

failed to open partition from EMMC
[Nexus 5 General] bitdomo:
What variant of nexus 5 you have? D820 or D821, 16GB or 32GB? Which .tot file are you using?

Select EMMC TEST and SDRAM TEST then click start. What happens?
[Nexus 5 General] sahouli31:
i am using d821 - 32GB and i used d821 -32go.tot

when i click start always the same pb : failed to open partition of EMMC
[Nexus 5 General] bitdomo:
Then your eMMC is dead. You have to buy a new motherboard.
[Nexus 5 General] RussianBear:
Not to rain on your parade, but are you sure you didn't use this thread in any way? (posted one day before you expressed interest in unbricking n5)

http://xdaforums.com/lg-g2/general/fix-unbrick-lg-g2-stuck-qualcomm-hs-usb-t2933830

This brings back memories, though. 3 years ago we were trying to unbrick Sensations/Evos and succeeded: http://xdaforums.com/showthread.php?t=1522351 The really smart guys went as far as being able to unlock bootloaders on various Qualcomm-based phones after that... Those were the days.
[Nexus 5 General] bitdomo:
I expressed my interest there 2 month before.

I have to admit that thread inspired me, but that tools shared on that thread never worked because the 2nd_loader.hex files were incomplete or for wrong device. That is why I dont want to give credits., and also the version of this tool is different than the two posted there. The version I use was never posted here on xda. I was searching for the correct 2nd_loader.hex for nexus 5 for 2 months until I found a way to get them. The only things which are similar is the title of thread and we are talking about the same tool.

It is like somebody made a guide to flash stock rom for nexus 4 in fastboot mode and you make a guide to do the same for nexus 5. It is impossible to write not the same instructions. You will find similarities.
[Nexus 5 General] TheLastSidekick:
Not sure if you're still bricked, but maybe this would work for your N5 [MENTION=3292224]franciscofranco[/MENTION]

Awesome sauce [MENTION=4325732]bitdomo[/MENTION] this is a legendary thread!
[Nexus 5 General] RussianBear:
Gotcha. Just looking out, man. Good stuff!
[Nexus 5 General] Weynz_Dc:
Please I'm stuck with my NEXUS 5 I've done everything and I'm stuck at the end when i have to start the boot flash it says . serial port open FAILED..

I'm using windows 8.1 under parallels desktop on my mac and i have x64 bit qhsusb_bulk drivers PLEASE HELP !!!
[Nexus 5 General] Blueyedevil:
Bitdomo, I already hit the thanks button twice but I had to say this with words :

THANKS A LOT MAN

You saved me !!!

32Gb Nexus 5 recovered from death :D

I wish I could give you a six-pack right now :D
[Nexus 5 General] ecftv:
bloody helll

bloody hell mate this **** is frikkin amazing

i can thankyou enough u literally saved my life

2 YEAR OLD NEXUS 5 32 GIG RECOVERED FROM HELL

AMAZING JOB

STILL CANT THANK ENOUGH

KEEP UP THE AMAZING WORK,HELPING PEOPLE IS GREAT BRO

i'll also check if i can donate

but amazing **** this is mate
[Nexus 5 General] jokerpoker1:
Good evening to all and congratulations for the tool and the discussione.Ho a friend who has a problem with the nexus 5x. Practically had to send your phone for repair LG, waiting two months, they have replaced the motherboard. Now there is no way to unlock the bootloader. We tried with NRT, with ADB, with a multitool, in short in all the various ways. The peculiar thing is that in secure boot it says enable (no RPBM) and found an identical discussion here http://xdaforums.com/showthread.php?t=3290923 you think with this tool you could try rewriting the partitions or to help for this problem? Thank you
[Nexus 5 General] ozsk:
Can't get past "Device was not found in dload trying flash programmer"

I'm unable to get past the "Device was not found in dload trying flash programmer" error. Can anyone help? Happy to donate to you.
[Nexus 5 General] domenicop:
I tried to do follow the guide and did everything but phone is in infinite bootloop at the start. Tried to flash partitions but I get failure.

Now I noticed that in my fastboot mode, my Nexus believes he is a 821, but on the back cover it's written 820. I noticed you have other, way bigger files in the 820. Could my phone work with those two files? I am asking because my ocnnection is very slow, and it will take a lot of time to download 400mb right now. In the meanwhile, I started a eMMC test and DDR test, and while the eMMC test passed, DDR test shows:

Waiting for DDR test...

Elapsed time for DDR test: 33min.

It's running from almost half an hour, while my phone has restarted and is in an infinite loop.

Does it make sense to continue the DDR test or I can abort already and try following the old tutorial with the 820 images? It seems no one in 20 pages of thread turned out with a failing DDR after all.

Note: Just as an additional info the way my phone bricked itself is it just shut down, and then went into infinite loop when I rebooted. Then I tried flashing partitions but I had write failures. I though I had fried eMMC, but apparently that's not the issue here. This happened a few days after installing Chainfire systemless root.

---------- Post added at 04:35 PM ---------- Previous post was at 04:01 PM ----------

Interesting. I did this and my phone booted into fastboot mode, but how do I not this is secondary bootloader and not first? They look equal to me, and behave equal. A fastboot flash bootloader bootloader-*.img also never executes here. It takes forever until I ctrl-c it, or it just shows write failures some times.

Here we go.

sending 'bootloader' (3120 KB)...

OKAY [ 0.318s]

writing 'bootloader'...

FAILED (remote: flash write failure)

finished. total time: 0.519s

---------- Post added at 05:09 PM ---------- Previous post was at 04:35 PM ----------

Trying with the 820 file, but it also doesn't work. Now I'm downloading the 821 from the old post as a last try.
[Nexus 5 General] RusherDude:
The bootloader version will be different. The secondary bootloader has the initial bootloader version the phone came with, and the normal bootloader has the latest bootloader you flashed on an OTA or manually. You can't enter the normal bootloader holding only vol up and power? (don't hold down).

Also the "flash write failure" doesn't sound good at all imho :S, but not sure what are the internal differences between D820 and D821 models and if this can affect anything like partition table (which may make the bootloader flash order fail?).

Very confusing, maybe op can help you, I can't do more :(
[Nexus 5 General] NexusS4gFreak:
Everything seems to flow good with this and it goes successful but my phone never restarts :( emmc and ap check both pass but sdram fails. Don't know what that means but everything else goes well. Says test completed and boot images download completed.
[Nexus 5 General] domenicop:
If i hold down power btn + vol up, I see the Google logo come up and go on the screen.

If I hold down power btn + vol down, I can access the bootloader. I guess it's the primary. I could try and access the secondary bootloader and see if things work from there, but I don't know how to.

This is definitely what I was also thinking about, and I hope it's this, since it's like the only fixable thing. I think it can be so, because eMMC test is all right.

Thank you anyway. You've been helpful.

EDIT: I just flashed twrp recovery, it went all right from the command line, then I rebooted into recovery and the original recovery was there. WTH? Maybe it has something to do with misplaced partitions? The phone flashes recovery at one place, but access the at another?
[Nexus 5 General] RusherDude:
Uhm technically no, if you have to hold also down to enter the bootloader, that's the secondary one, not primary.

Sometimes flashing TWRP doesn't stick and the original appears back again, all this seems strange tho.. maybe it's something to do with the partition tables of the wrong device like you said :eek:
[Nexus 5 General] sunner:
Do you have BoardDiag for Nexus 5x

Hi, bitdomo

I just flashed my Nexus 5x with a bad bootloader. So it is a brick stucked in Qualcomm HS-USB QDLoader 9008 mode now. I read a lot of your post and believe that it can be unbricked if I can find the right tools/way. I tried the LGUP and LGFlashTool you mentioned in another thread, but both of them do not work.

It seems that a BoardDiag with Nexus 5x model support can fix it. I searched but can not find the files. Do you know how to get them? Thank you!
[Nexus 5 General] NexusS4gFreak:
somehow it worked the first time but now it still wont restart after the test is done.
[Nexus 5 General] GONZALOLISSI:
I have the same problem.
[Nexus 5 General] y_star:
EMMC write test fail!

Hi, bitdomo

Thanks for this great tool!

On my Nexus 5 16gb I got EMMC TEST failed. I didn't test all partitions but aboot, abootb, boot, PrimaryGPT fail write test for sure.

SDRAM, Erase and read tests and restore boot img reported no error.

Does it mean my EMMC is dead?

Many thanks.
[Nexus 5 General] franciscofranco:
Thank you very much for the time you used to write this tutorial. I bricked my Nexus 5 last year (I wrote a corrupted bootloader into the bootloader partition) and I couldn't find a way to fix it until now. It worked flawlessly on the first try and it's now alive. Thank you.
[Nexus 5 General] Akash Naik:
Thank....You.......Very....Very....Much [MENTION=4325732]bitdomo[/MENTION]
[Nexus 5 General] vakkah:
hello OP.

i have downloaded and extracted all necessary files.

however, when i try to navigate to the location of the partition file, boardDiag.exe crashes.

it happens on my windows 7 and windows 10 machines.

i've even set boardDiag.exe to run in windows 7 compatibility but it also does the same thing.

can you suggest what i can do next??

much appreciated if you can give me some pointers.
[Nexus 5 General] David:
is the image files can for 5X? i've got this problem on my 5X , if someone can help i really really thankfully
[Nexus 5 General] tosteg:
done.
[Nexus 5 General] Rehank:
Everything got passed AP EMMC and SDRAM but still not booting nothing happening plz help me guys
[Nexus 5 General] Rehank:
is this thread is alive????????????????
[Nexus 5 General] aryastark:
I did everything exactly as instructed on my nexus 5. AP, EMMC, passed and it also said "Boot images download completed" exactly like in the tutorial, but for some reason the phone just won't turn on. Nothing seems to have changed. Please help!
[Nexus 5 General] GiusGrec:
I had a Nexus 5 completely dead. The phone wouldn't turn on (bootloader, fastboot, anything) even connecting it to the charger. Black screen and nothing else.

It wasn't recognized by Win8 (nothing in "device manager").

In order to display "Qualcomm HS-USB QDLoader 9008" in the Device Manager I had to:

- Disconnect the phone from PC

- Open the phone and remove the six screws

- Disconnect the battery connector

- Reconnect the battery connector

- Holding VOLUME_UP and VOLUME_DOWN, connect it to the PC via USB

After this, phone has been recognized as "Relink hs-usb qdloader 9008". Applying the guide (with no additional driver) I restored the nexus 5.

Thank you very much!!!

(excuse me for my bad English)
[Nexus 5 General] #n3xu5:
Hello everyone, so I connected the Nexus 5 on the computer and found QHSUSB_BULK ,then installed the drivers but forgot to disable enforcement signature, so I uninstalled the drivers with the nexus connected to the PC and I disabled signature enforcement and restarted the PC ,and then when I went to device manager no longer appears QHSUSB_BULK , was my fault and now does not detect QHSUSB_BULK, what I have to do to redetect QHSUSB_BULK.

This is what i get now ........ Unknown USB Device (Device Descriptor Request Failed)

Thanks
[Nexus 5 General] vakkah:
i must say that this is a life saver..

i've used this today to restore a "bricked" nexus 5, 32GB.

the phone was stuck in bootloop however after the Qualcomm fix so i used the nexus root toolkit by wugfresh to flash an earlier KitKat build then let the phone automatically update to lollipop and now marshmallow including the august 5th 2016 security update.

kudos to the OP for this!!

now, if only our beloved nexus 5 could get android 7.0 nougat from google (i'm allowed to dream a little)????????
[Nexus 5 General] tr4nqui1i7y:
Could I get this to work on a Nexus 6P if I make a partition.txt?

Then I would just flash a boot.img instead of an mbn file, right?
[Nexus 5 General] krstep:
I have successfully fixed a Nexus 5 32gb with this guide, flashed latest stock image, but after a while lines started appearing and the screen completely turned off. It wont go into bootloader again, it shows as HS-USB QDLoader 9008 again.

What could cause the phone to keep bricking again???
[Nexus 5 General] mantvens:
Unable to write factory image

My nexus 5 passed all ap emmc and sdram tests. But it fails to write any image or recovery. It always stucks on writing...when I try to install a factory image. It fails to enter recovery mode, black screen appears. Is it a hardware failure or do I still have a chance here?
[Nexus 5 General] cb_1978:
so i'm new here but not stupid when it comes to technical stuff...found this thread and tried it...no problem at all...went through it all but the phone(nexus 5) still isnt turning on...so i ran all the tests...and it passed all of'em apart from sdram test...it got half way(or so i'm guessing) through...said phone reset...which also changed in device manager...and couldnt finish the test...so after 15 mins or so i pressed power volume up and down and it got back onto port 19(in my case) which is the bootloader and finished test failed...any1 have an idea?!
[Nexus 5 General] briandresstoyota:
Im sorry if this is an idiot question but i am so stuck with my 5x. It wont boot and shows no charging icon. It booted a week ago but went back to these same symptoms. sometimes when i plug it usb i hear a noise on my computer indicating a new usb device. Not sure if this thread is my fix but i am hoping it is. Can anyone weigh in on this?
[Nexus 5 General] mfp123:
Thanks a lot! Great tutorial!

Is it possible to read my userdata partition with this tool? Tried to dump full emmc but after 2.8 GB it tells me 100%.

Edited the rawprogram0.xml and the partition.txt with your tutorial.

I got a Nexus 5 16 Modell. Where is my mistake or am i on a wrong direction??
[Nexus 5 General] sign0ff:
Hi there,

By any chance would this method be working on a 5X?

Thanks
[Nexus 5 General] slkz1n:
+1.
[Nexus 5 General] Alevb:
Help pls

Message when start.

"There is no partition file (rawprogram0.XML)"
[Nexus 5 General] Nofolobricity:
Hi guys! I have bad partitions (or sectors)

Hi, guys!

Cool manual but I have a problem

I have Nexus 5 (D820, 32GB)

It's stucking on boot.mbn and laf.mbn and warn me that "boot partition write FAIL... sector 0x43x00" (on boot.mbn) and 0x38x00 (on laf.mbn).

Is there any way to get the phone working or at least recover my data? May be I can somehow to remap sectors and rewrite boot images?:confused:

Thanks in advance!
[Nexus 5 General] mayankkhajnchi:
I am having the same problem
[Nexus 5 General] patheticpuma:
+2
[Nexus 5 General] mayankkhajnchi:
My device manager says unknown USB device. Please help. It's been a week since this error.
[Nexus 5 General] Filip01:
Thank you for this tutorial, it works!
[Nexus 5 General] lCrD512:
Phew!! Thanks man Saved my Phone :angel::highfive:
[Nexus 5 General] nirogu325:
+1
[Nexus 5 General] bez_iom:
could this be used for the nexus 5x, stuck in Qualcomm 9008
[Nexus 5 General] wangdaning:
No one is answering because this is not the 5x forum. If you attempt to use this method with the image files provided I promise you a brick. If you had the image files for your device it might work.
[Nexus 5 General] nirogu325:
I agree. I wonder how to get those files for the 5X. I looked hard on Google to no avail. Not only getting the files but also getting the right tool (the one N5 users use isn't compatible) to flash the files. I saw neither using Google for hours. I think 5X users are in the dark with this. Of course, I'd love to be proven wrong.
[Nexus 5 General] ILA:
Would this work on a fried emmc that has been replaced with a brand new blank one or would I need to flash the emmc chip first (at which point there is no use of doing this since then it would work just fine). I want to flash the blank emmc without the expensive programmer and wondering if it's possible.
[Nexus 5 General] RolF2:
Boardiag will work with empty emmc without any problems. I'm writing from n5 with today soldered emmc from dead LG g4 (emmc v5 I think). All programming done with boardiag only, just dump phone specific partitions from old emmc (IMEI) if phone still can be powered on and after emmc change only software you will need is boardiag.

R.
[Nexus 5 General] unknownbaka:
Failed during loading flash programmer
[Nexus 5 General] dfani511:
hello, I used this d821 16gb and now I can not flash any boot.img or recovery.img every time it shows flash error.

What can I do ?
[Nexus 5 General] perro999:
Hello. I have a Nexus 5 D821 32GB. I follow this tutorial succesfully and get the Boot images download completed but the phone does not turn on (normal or other boot mode, but vol+,vol-,power).

Phone pass AP check, EMMC test and SDRAM test.

Has someone with the same problem found a way to fix it? Thanks
[Nexus 5 General] aureliomilitao:
http://imgur.com/a/QsUHN

My nexus5 no starts

Only logo google

No enter recovery

No install rom srock NRT and others metods

Please help
[Nexus 5 General] Azlun:
Good Tools to unbrick
[Nexus 5 General] aureliomilitao:
http://imgur.com/a/QsUHN

My nexus5 no starts

Only logo google

No enter recovery

No install rom srock NRT and others metods

Please help

---------- Post added at 09:36 AM ---------- Previous post was at 09:30 AM ----------

target reported max download size of 1073741824 bytes

sending 'bootloader' (3124 KB)...

OKAY [ 0.288s]

writing 'bootloader'...

FAILED (remote: flash write failure)

finished. total time: 0.494s

rebooting into bootloader...

OKAY [ 0.072s]

finished. total time: 0.076s

target reported max download size of 1073741824 bytes

sending 'radio' (45489 KB)...

OKAY [ 1.538s]

writing 'radio'...

FAILED (remote: flash write failure)

finished. total time: 2.766s

rebooting into bootloader...

OKAY [ 0.073s]

finished. total time: 0.075s

target reported max download size of 1073741824 bytes

sending 'boot' (9156 KB)...

OKAY [ 0.481s]

writing 'boot'...

OKAY [ 0.761s]

finished. total time: 1.246s

target reported max download size of 1073741824 bytes

erasing 'cache'...

OKAY [ 0.189s]

sending 'cache' (13348 KB)...

OKAY [ 0.628s]

writing 'cache'...

FAILED (remote: flash write failure)

finished. total time: 1.004s

target reported max download size of 1073741824 bytes

sending 'recovery' (10014 KB)...

OKAY [ 0.507s]

writing 'recovery'...

FAILED (remote: flash write failure)

finished. total time: 0.692s

target reported max download size of 1073741824 bytes

erasing 'system'...

FAILED (remote: failed to erase partition)

finished. total time: 20.753s

Creating filesystem with parameters:

Size: 29236371456

Block size: 4096

Blocks per group: 32768

Inodes per group: 8192

Inode size: 256

Journal blocks: 32768

Label:

Blocks: 7137786

Block groups: 218

Reserved block group size: 1024

Created filesystem with 11/1785856 inodes and 156120/7137786 blocks

target reported max download size of 1073741824 bytes

erasing 'userdata'...

FAILED (remote: failed to erase partition)

finished. total time: 0.158s

Creating filesystem with parameters:

Size: 734003200

Block size: 4096

Blocks per group: 32768

Inodes per group: 7472

Inode size: 256

Journal blocks: 2800

Label:

Blocks: 179200

Block groups: 6

Reserved block group size: 47

Created filesystem with 11/44832 inodes and 5813/179200 blocks

target reported max download size of 1073741824 bytes

erasing 'cache'...

FAILED (remote: failed to erase partition)

finished. total time: 0.206s

rebooting...

finished. total time: 0.004
[Nexus 5 General] MarcysVonEylau:
Same problem. Please help!

https://xdaforums.com/google-nexus-5/help/barely-responsive-brick-t3616814
[Nexus 5 General] George35000vr:
My bootloader got erased by mistake. Tried this method to revive my phone but i'm getting an error when flashing BackupGPT(only). Any ideas? [MENTION=4325732]bitdomo[/MENTION]
[Nexus 5 General] mocaonlive:
LG K371 att Dead

Hi, I have my lg k371 dead because it was degrading from k37111n to k37110b. The installation process is completed correctly but when finished, it remains dead. Does not start and if I try to enter download mode, I only recognize it as "Qualcomm HS-USB QDLoader 9008" Please hellp me