[Xiaomi Mi 5 Questions & Answers] reizamv:
i want to update to miui8 china and when i flash its failed and now its brick Failed to initialize (open whole lun) UFS Device

this the log any help please

- cant use fastboot,recovery

- its in edl mode and its black screen no vibration,led

1. try flash miui8 china using miflash 2015 stop in here

0x0000000000113000

[IMG="flash1"]http://en.miui.com/data/attachment/forum/201701/23/233426vj7atstsl6cwn9t7.png.thumb.jpg[/IMG]

2.using new miflash stop in set UFS boot partition fail

Failed to initialize (open whole lun) UFS Device

[IMG="flash 2"]http://en.miui.com/data/attachment/forum/201701/23/233746rs9wz9kyauryjyrv.png.thumb.jpg[/IMG]

3. using gemini mi5

error Call to ufs_open(0, UFS_WLUN_DEVICE) failed

[IMG="flash3"]http://en.miui.com/data/attachment/forum/201701/23/234809xjiqskwcd94copoi.png.thumb.jpg[/IMG]

[12:59:04 PM COM10]:[COM10]:start flash.
[12:59:04 PM COM10]:received hello packet
[12:59:04 PM COM10]:donwload programmer F:\xiaomialat\perbaiki_hp\xiaomi\rom_xiaomi\gemini_images_7.1.12_20170111.0000.00_7.0_cn_c930b417df\gemini_images_7.1.12_20170111.0000.00_7.0_cn\images\prog_ufs_firehose_8996_ddr.elf
[12:59:04 PM COM10]:sahara read 64b data:imgID 13,offset 0,length 64
[12:59:04 PM COM10]:sahara read 64b data:imgID 13,offset 64,length 560
[12:59:04 PM COM10]:sahara read 64b data:imgID 13,offset 4096,length 4096
[12:59:04 PM COM10]:sahara read 64b data:imgID 13,offset 8192,length 2664
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 12288,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 16384,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 20480,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 24576,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 28672,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 32768,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 36864,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 40960,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 45056,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 49152,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 53248,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 57344,length 4096
[12:59:05 PM COM10]:sahara read 64b data:imgID 13,offset 61440,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 65536,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 69632,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 73728,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 77824,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 81920,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 86016,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 90112,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 94208,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 98304,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 102400,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 106496,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 110592,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 114688,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 118784,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 122880,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 126976,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 131072,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 135168,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 139264,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 143360,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 147456,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 151552,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 155648,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 159744,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 163840,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 167936,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 172032,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 176128,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 180224,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 184320,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 188416,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 192512,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 196608,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 200704,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 204800,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 208896,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 212992,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 217088,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 221184,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 225280,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 229376,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 233472,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 237568,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 241664,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 245760,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 249856,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 253952,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 258048,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 262144,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 266240,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 270336,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 274432,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 278528,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 282624,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 286720,length 4096
[12:59:06 PM COM10]:sahara read 64b data:imgID 13,offset 290816,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 294912,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 299008,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 303104,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 307200,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 311296,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 315392,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 319488,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 323584,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 327680,length 4096
[12:59:07 PM COM10]:sahara read 64b data:imgID 13,offset 331776,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 335872,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 339968,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 344064,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 348160,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 352256,length 1752
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 354016,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 358112,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 362208,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 366304,length 4096
[12:59:08 PM COM10]:sahara read 64b data:imgID 13,offset 370400,length 4096
[12:59:09 PM COM10]:sahara read 64b data:imgID 13,offset 374496,length 4096
[12:59:09 PM COM10]:sahara read 64b data:imgID 13,offset 378592,length 3704
[12:59:09 PM COM10]:sahara read 64b data:imgID 13,offset 382304,length 4096
[12:59:09 PM COM10]:sahara read 64b data:imgID 13,offset 386400,length 4096
[12:59:09 PM COM10]:sahara read 64b data:imgID 13,offset 390496,length 2032
[12:59:09 PM COM10]:sahara read 64b data:imgID 13,offset 392528,length 4096
[12:59:10 PM COM10]:sahara read 64b data:imgID 13,offset 396624,length 4096
[12:59:10 PM COM10]:sahara read 64b data:imgID 13,offset 400720,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 404816,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 408912,length 416
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 409328,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 413424,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 417520,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 421616,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 425712,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 429808,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 433904,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 438000,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 442096,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 446192,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 450288,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 454384,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 458480,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 462576,length 4096
[12:59:11 PM COM10]:sahara read 64b data:imgID 13,offset 466672,length 4096
[12:59:12 PM COM10]:sahara read 64b data:imgID 13,offset 470768,length 3936
[12:59:12 PM COM10]:sahara read end imgID:13 status:0
[12:59:15 PM COM10]:file F:\xiaomialat\perbaiki_hp\xiaomi\rom_xiaomi\gemini_images_7.1.12_20170111.0000.00_7.0_cn_c930b417df\gemini_images_7.1.12_20170111.0000.00_7.0_cn\images\prog_ufs_firehose_8996_ddr.elf transferred successfully
[12:59:16 PM COM10]:send nop command
[12:59:16 PM COM10]:send command:<?xml version="1.0" ?><data><nop value="ping"/></data>
[12:59:16 PM COM10]:get response from target
[12:59:16 PM COM10]:dump:
[12:59:16 PM COM10]:<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Binary build date: Jan 10 2017 @ 18:55:37"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Chip serial num: 4290772991 (0xffbfffff)"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Supported Functions: program configure nop firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase peek poke "/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Binary build date: Jan 10 2017 @ 18:55:37
"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="fh.attrs.Verbose is set to 0"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Chip serial num: 4290772991 (0xffbfffff)"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Supported Functions: program configure nop firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase peek poke "/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" />
</data>

[12:59:16 PM COM10]:send configure command
[12:59:16 PM COM10]:send command:<?xml version="1.0" ?><data><configure ZlpAwareHost="1" MaxPayloadSizeToTargetInBytes="1048576" MemoryName="ufs" SkipStorageInit="0"/></data>
[12:59:16 PM COM10]:get response from target
[12:59:17 PM COM10]:dump:
[12:59:17 PM COM10]:<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Calling usb_al_bulk_set_zlp_mode(TRUE) since ZlpAwareHost='1'"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" MinVersionSupported="1" MemoryName="UFS" MaxPayloadSizeFromTargetInBytes="4096" MaxPayloadSizeToTargetInBytes="1048576" MaxPayloadSizeToTargetInBytesSupported="1048576" MaxXMLSizeInBytes="4096" Version="1" TargetName="MSM8996" DateTime="Jan 10 2017 - 18:55:37" />
</data>

[12:59:17 PM COM10]:send command:<?xml version="1.0" ?><data><setbootablestoragedrive value="1"/></data>
[12:59:17 PM COM10]:get response from target
[12:59:18 PM COM10]:dump:
[12:59:18 PM COM10]:<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="ERROR: Failed to initialize (open whole lun) UFS Device slot 0 partition 1"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="ERROR: Failed to open the device 3 slot 0 partition 1"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="INFO: Device type 3, slot 0, partition 1, error 0"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="WARN: Set bootable failed to open 3 slot 0, partition 1, error 0"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="NAK" />
</data>

[12:59:23 PM COM10]:dump:
[12:59:23 PM COM10]:no Binary dump
[12:59:29 PM COM10]:dump:
[12:59:29 PM COM10]:no Binary dump
[12:59:34 PM COM10]:dump:
[12:59:34 PM COM10]:no Binary dump
[12:59:40 PM COM10]:dump:
[12:59:40 PM COM10]:no Binary dump
[12:59:45 PM COM10]:dump:
[12:59:45 PM COM10]:no Binary dump
[12:59:51 PM COM10]:dump:
[12:59:51 PM COM10]:no Binary dump
[12:59:56 PM COM10]:dump:
[12:59:56 PM COM10]:no Binary dump
[1:00:02 PM COM10]:dump:
[1:00:02 PM COM10]:no Binary dump
[1:00:07 PM COM10]:dump:
[1:00:07 PM COM10]:no Binary dump
[1:00:08 PM COM10]:set boot partition failed
[1:00:08 PM COM10]: at XiaoMiFlash.code.bl.SerialPortDevice.SetBootPartition() in D:\Workspace\MiFlash\XiaoMiFlash\XiaoMiFlash\code\bl\SerialPortDevice.cs:line 447
at XiaoMiFlash.code.bl.SerialPortDevice.flash() in D:\Workspace\MiFlash\XiaoMiFlash\XiaoMiFlash\code\bl\SerialPortDevice.cs:line 6