Kernel tools package for JP 5.0.1

Are the kernel-tools packages available for 5.10.65 as part of JP 5.0.1. I am trying to use the bpftool, but I am prompted:

You may need to install the following packages for this specific kernel:
linux-tools-5.10.65-tegra
linux-cloud-tools-5.10.65-tegra

You may also want to install one of the following packages to keep up to date:
linux-tools-tegra
linux-cloud-tools-tegra

None of these appear to be available. I have attempted to build from source, but run into build errors. Are these available anywhere, or are there any pointers to building these from the public sources?

Hi,
This would need other users to check and share experience. It seems like certain servers are not listed in source.list.

It does have the nvidia repos listed in /etc/apt/sources.list.d/nvidia-l4t-apt-source.list.

cat /etc/apt/sources.list.d/nvidia-l4t-apt-source.list

SPDX-FileCopyrightText: Copyright (c) 2019-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

SPDX-License-Identifier: LicenseRef-NvidiaProprietary

NVIDIA CORPORATION, its affiliates and licensors retain all intellectual

property and proprietary rights in and to this material, related

documentation and any modifications thereto. Any use, reproduction,

disclosure or distribution of this material and related documentation

without an express license agreement from NVIDIA CORPORATION or

its affiliates is strictly prohibited.

deb https://repo.download.nvidia.com/jetson/common r34.1 main
deb https://repo.download.nvidia.com/jetson/t194 r34.1 main

I have browsed the repo at Index , but do not see any such packages listed.

Hi,
Please share the command for installing bpftool. Not sure what the correct name is. We get the error:

nvidia@ubuntu:~$ sudo apt install bpftool
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bpftool

We don’t see linux-tools-tegra and linux-cloud-tools-tegra packages on Jetpack 4 and Jetpack 5. It is strange the packages are listed.

bpftool is part of the apt package linux-tools-common

apt install linux-tools-common

However running /usr/sbin/bpftool after installation gives the following:
iain@ubuntu:/usr/sbin$ bpftool
WARNING: bpftool not found for kernel 5.10.65

You may need to install the following packages for this specific kernel:
linux-tools-5.10.65-tegra
linux-cloud-tools-5.10.65-tegra

You may also want to install one of the following packages to keep up to date:
linux-tools-tegra
linux-cloud-tools-tegra

I believe this is because there are kernel specific hooks required for the tool to function. Looking at the kernel sources there are indeed references to both the bpftool and perf tools. I believe there should be a debian package for linux-tools-5.10.65-tegra built as part of the kernel and hosted somewhere by nvidia.

Any thoughts on next steps to try here?