Hi Dominik,
On Tue, Dec 15, 2020 at 04:25:25PM +0100, Dominik Huber wrote:
Hi Leo, I edited my build process according to your tips and it really did enable opencsd. However, I had to use the "hikey" kernel repository [1] and the WERROR=0 flag. Then these commands got the job done for me:
# export CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 # cd /opt/hikey620/OpenCSD/decoder/build/linux # make LINUX64=1 DEBUG=1 -j8 # make LINUX64=1 DEBUG=1 install
# cd /opt/hikey620/coresight # make -j8 Image modules hisilicon/hi6220-hikey.dtb # make INSTALL_MOD_PATH=./modules modules_install
# export CSINCLUDES=/opt/hikey620/OpenCSD/decoder/include \ CSLIBS=/opt/hikey620/OpenCSD/decoder/lib/linux-arm64/dbg # make -C tools/perf VF=1 CORESIGHT=1 DEBUG=1 WERROR=0
For now i dont need the kernel from the "coresight" repository [2], so thank you very much for your advice.
Welcome! and glad it works.
To be honest, I am a bit concern you are using an old kernel version for CoreSight development, it's fine if you think the old perf / CoreSight driver can meet your requirement.
If you don't care about GPU/VPU and WIFI related stuffs on Hikey, most drivers have been landed in the mainline kernel, so in theory you could directly use the the mainline kernel [1] or CoreSight repository [2]. I don't use my Hikey board recently, but before I always used the mainline kernel + Debian (as Wookey suggested) on it for CoreSight related works.
Thanks, Leo
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git [2] https://git.linaro.org/kernel/coresight.git/log/?h=next