Hi Leo Yan,
On Wed, Jul 24, 2019 at 1:35 PM Leo Yan leo.yan@linaro.org wrote:
Hi Jeremy,
On Tue, Jul 23, 2019 at 02:14:00PM +0800, Jeremy Ng wrote:
Hi Leo Yan,
My apologies for the multiple emails.
On a separate topic from coresight discovery, the new patch I have applied have resulted in failure to activate the etm drivers for tracing.
The above result can be seen here:
# echo 1 > ec036000.etf/enable_sink # echo 1 > ed440000.etm/enable_source # cat ed440000.etm/enable_source 0
I checked the AOSP kernel 4.14 and 4.19, the kernel 4.14 [1] has enabled the CoreSight for Hikey960 yet; so I suggest you could directly use this branch as the first step (And please ignore my shared patches since all Hi3660 CoreSight patches have been merged into AOSP 4.14 kernel).
I tested the kernel 4.14 with below commands and it does can work well:
# exec 3<> /dev/cpu_dma_latency; echo 0 >&3 # echo 1 > ec036000.etf/enable_sink # echo 1 > ed440000.etm/enable_source # cat ed440000.etm/enable_source 1
I had access to coresight previously already.
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 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!
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.
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
[1] https://android.googlesource.com/kernel/hikey-linaro/+/refs/heads/android-hi... [2] https://www.96boards.org/documentation/consumer/hikey/hikey960/installation/... [3] http://snapshots.linaro.org/reference-platform/components/uefi-staging/lates... [4] https://www.96boards.org/documentation/consumer/hikey/hikey960/downloads/Deb...
Thank you for your guidance, as always!
Yours Sincerely, Jeremy