On 2020-12-07 17:06 +0100, Dominik Huber wrote:
Hello,
I want to capture and decode trace data on a Hikey620 (on Target) with OpenCSD and perf. I have been trying different kernels, compilers and compile options for weeks already, but I can not get it working.
If anybody could take a look at my current build process or just provide me a tested combination of kernel, config and compiler, it would be very helpful.
One of the easiest ways to get a "tested combination of kernel, config and compiler" is to install debian on the device.
perf is already built with libopencsd support there so installing linux-perf will 'just work' for tracing. That has been true since mid 2018 in unstable, and since July 2019 in stable
In theory this is true for ubuntu too, but I'm not sure if it's enabled by default (checking, it looks like it isn't - I'd better get that fixed). Libopencsd has been available since april 2020 in focal(20.04LTS).
I'm not quite sure of the state of installer support for the hikey620 (Mine died so I don't have one to test). But some info here: https://wiki.debian.org/InstallingDebianOn/96Boards/HiKey If the board has UEFI then the installer should 'just work'.
Of course there may be reasons why you don't want this on your board but distros exist to save us doing all this sort of dicking about compiling things ourselves that we just want to use.
Wookey