Re: [PATCH v2 3/6] docs: qcom: Add qualcomm minidump guide

From: Srinivas Kandagatla
Date: Tue Apr 18 2023 - 11:26:49 EST




On 18/04/2023 16:19, Mukesh Ojha wrote:
+@Brian

On 4/14/2023 4:01 AM, Srinivas Kandagatla wrote:


On 22/03/2023 13:30, Mukesh Ojha wrote:
+Dump collection
+---------------
+
+The solution supports extracting the minidump produced either over USB or
+stored to an attached storage device.
+
+By default, dumps are downloaded via USB to the attached x86_64 machine
+running PCAT (Qualcomm tool) software. Upon download, we will see

Are these both PCAT and dexter tools public?

I think, PCAT comes as part of Qcom Package Kit.

yes, this is part of Qualcomm Package Manager.


Last time, I checked with @Brian, he was saying the they use PCAT software tool running on x86_64 machine attached to QCOM device to
get the dump(via USB) out of the device.

Dexter.exe seems private tool, that only requires if we use storage
(via ufs/emmc) to save minidump on the target device itself and later use adb to pull out the rawdump partition dump and pass it through
dexter to convert it to same binary blobs which we got directly through
PCAT.

I don't at least have any way to avoid dexter tool at the moment.
However, i will think if we can develop any script which does the
same.
That would be nice!

--srini

-- Mukesh


--srini
+a set of binary blobs starts with name md_* in PCAT configured directory
+in x86_64 machine, so for above example from the client it will be
+md_REGION_A.BIN. This binary blob depends on region content to determine
+whether it needs external parser support to get the content of the region,
+so for simple plain ASCII text we don't need any parsing and the content
+can be seen just opening the binary file.
+
+To collect the dump to attached storage type, one need to write appropriate
+value to IMEM register, in that case dumps are collected in rawdump
+partition on the target device itself.
+
+One need to read the entire rawdump partition and pull out content to
+save it onto the attached x86_64 machine over USB. Later, this rawdump
+can be pass it to another tool dexter.exe(Qualcomm tool) which converts
+this into the similar binary blobs which we have got it when download type
+was set to USB i.e a set of registered region as blobs and their name
+starts with md_*.
-- 2.7.4