1.首先你需要安装QPST,然后确认QPST的安装目录下有如下2个文件
D:\Program Files (x86)\Qualcomm\QPST\bin
fhloader.exe
QSaharaServer.exe
2.设备需要切换到9008端口下,然后执行如下命令, 最后一个COM4是对应的9008端口号
QSaharaServer.exe -s 13:prog_emmc_firehose_8953_ddr.mbn -p \\.\COM4
如果成功,cmd下会有如下提示:
D:\Program Files (x86)\Qualcomm\QPST\bin>QSaharaServer.exe -s 13:prog_emmc_firehose_8953_ddr.mbn -p \\.\COM4
Binary build date: Nov 21 2017 @ 02:53:37
QSAHARASERVER CALLED LIKE THIS: 'QSaharaServer.ex'Current working dir: D:\Program Files (x86)\Qualcomm\QPST\bin
Sahara mappings:
2: amss.mbn
6: apps.mbn
8: dsp1.mbn
10: dbl.mbn
11: osbl.mbn
12: dsp2.mbn
16: efs1.mbn
17: efs2.mbn
20: efs3.mbn
21: sbl1.mbn
22: sbl2.mbn
23: rpm.mbn
25: tz.mbn
28: dsp3.mbn
29: acdb.mbn
30: wdt.mbn
31: mba.mbn
13: prog_emmc_firehose_8953_ddr.mbn
11:55:12: Requested ID 13, file: "D:\Program Files (x86)\Qualcomm\QPST\bin\prog_emmc_firehose_8953_ddr.mbn"
11:55:13: 354736 bytes transferred in 0.235000 seconds (1.4396MBps)
11:55:13: File transferred successfully
NOTE: Target requested image 13 which is DeviceProgrammer. Forcing QUIT. This is by design, ** All is well ** SUCCESS!!
11:55:13: Sahara protocol completed
3.生成rawprogram0.xml文件
<?xml version="1.0" ?>
<data>
<!--NOTE: This is an ** Autogenerated file **-->
<!--NOTE: Sector size is 512bytes-->
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="logdump" num_partition_sectors="131072" physical_partition_number="0" size_in_KB="65536.0" sparse="false" start_byte_hex="0x114082000L" start_sector="9045008"/>
</data>
4.dump终端EMMC的分区
fh_loader.exe --memoryname=emmc --sendxml=rawprogram0.xml --convertprogram2read --port=\\.\COM4
如果成功,会有如下提示:
D:\Program Files (x86)\Qualcomm\QPST\bin>fh_loader.exe --memoryname=emmc --sendxml=rawprogram0.xml --convertprogram2read --port=\\.\COM4
Base Version: 17.11.16.14.34
Binary build date: Nov 21 2017 @ 02:53:33
Incremental Build version: 17.11.21.02.53.33
12:29:59: INFO: FH_LOADER WAS CALLED EXACTLY LIKE THIS
************************************************
fh_loader.exe --memoryname=emmc --sendxml=rawprogram0.xml --convertprogram2read --port=\\.\COM4
************************************************
12:29:59: INFO: Current working dir (cwd): D:\Program Files (x86)\Qualcomm\QPST\bin\
12:29:59: INFO: Showing network mappings to allow debugging
12:29:59: INFO:
12:29:59: INFO: Trying to store 'rawprogram0.xml' in string table
12:29:59: INFO: Looking for file 'rawprogram0.xml'
12:29:59: INFO: User wants to talk to port '\\.\COM4'
12:29:59: INFO: Took 0.00000000 seconds to open port
12:29:59: INFO: Sorting TAGS to ensure order is <configure>,<erase>, others, <patch>,<power>
12:29:59: INFO: If you don't want this, use --dontsorttags
12:29:59: INFO: Sending <configure>
12:29:59: INFO: TARGET SAID: 'logbuf@0x0806CC60 fh@0x08069AC8'
12:29:59: INFO: fh.attrs.MaxPayloadSizeToTargetInBytes = 1048576
12:29:59: INFO: fh.attrs.MaxPayloadSizeToTargetInBytesSupported = 1048576
12:29:59: INFO: ==============================================================
12:29:59: INFO: Files used and their paths
12:29:59: INFO: 1 'D:\Program Files (x86)\Qualcomm\QPST\bin\port_trace.txt'
12:29:59: INFO: 2 'D:\Program Files (x86)\Qualcomm\QPST\bin\rawprogram0.xml'
12:29:59: INFO: _ (done)
12:29:59: INFO: | |
12:29:59: INFO: __| | ___ _ __ ___
12:29:59: INFO: / _` |/ _ \| '_ \ / _ \
12:29:59: INFO: | (_| | (_) | | | | __/
12:29:59: INFO: \__,_|\___/|_| |_|\___|
12:29:59: INFO: {All Finished Successfully}
12:29:59: INFO: FILE ACCESS SLOW!! 0.00 B in 0.015 seconds ( 0.00 Bps) --- Overall to target 0.031 seconds (0.00 Bps)