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
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
[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...