Hi Jeremy,
On Wed, Jul 24, 2019 at 03:54:52PM +0800, Jeremy Ng wrote:
[...]
I wanted to use the coresight discovery tools to create device snapshot
- coresight trace + coresight configurations. I am not sure if CSAL is the
tool to do that, but it appears to be made to do that. After which, I intended to perform full trace decode using OpenCSD.
I don't think this is blocking issue. We can get the CoreSight topology and registers base address from CSAL, or from the DT binding file. Before I used the DT binding info to extract info to create OpenCSD snapshot configuration files.
I am actually fine with not performing full trace decode, just trace protocol/packet decode.
However, the demo in openCSD only shows how to perform full trace decode with proper snapshots. I might be wrong, but I have been looking at the docs all over the place. Some guidance is appreciated here!
The one important thing is to generate the snapshot files, which is used to tell decoder the hardware topology; so I think the spec [1] is very useful. You also could refer some existed snapshot files [2][3].
Please note, at my side I use the open sourced bootloaders (UEFI + ARM-TF); this might be a difference when you flash booting images, which uses the Hisilicon legacy booting images (if you don't see UEFI booting logs). Suggest you could try up commands firstly, if still fail I'd like to suggest you to reflash booting images by following the steps in the page [2], which uses the booting images from [3].
As a side topic, in case you are interested in Debian distro, you could see the detailed info for Debian installation on Hikey960 [4].
Thanks, Leo Yan
Unfortunately, I do not have a UART tool available to run a Debian distro on hikey960 right now.
You could buy a UART-serial Mezzanine board [4] which is compatible with 96boards for UART output.
As much as I want to use a Debian distro, I am unfortunately impeded by the lack of tools.
If anyone has any other methods to perform full trace decoding without the use of Perf, it will also be highly appreciated!
Details of device: Hikey960 (Cortex-A53 (4 cpu) + Cortex-A73 (4 cpu)) --> ETMv4 data tracing not supported AOSP - linux kernel 4.14
Thanks, Leo Yan
[1] https://github.com/Linaro/OpenCSD/blob/master/decoder/docs/specs/ARM%20Trace... [2] https://github.com/Linaro/OpenCSD/tree/master/decoder/tests/snapshots/juno-u... [3] http://people.linaro.org/~leo.yan/opencsd_hikey/hikey_snapshot.tgz [4] https://www.96boards.org/product/uartserial/