Enable BPF Type Format (BTF)`CONFIG_DEBUG_INFO_BTF`
Author: javierhonducoCreated Jan 21, 2025Updated Sep 24, 2026
Describe the bug
BTF is necessary for running modern BPF applications, enabling it would allow for greater observability and debuggability of software running on Raspberry Pis. Without it, many BPF applications won't run.
Steps to reproduce the behaviour
Run any modern BPF application, such as lightswitch on any Raspberry Pi running Raspberry Pi OS. I only tested in on a Pi 4 though.
Device (s)
Raspberry Pi 4 Mod. B
System
(does not apply)
Logs
(does not apply)
Additional context
libbpf fails to load programs and logs:
kernel BTF is missing at /sys/kernel/btf/vmlinux, was CONFIG_DEBUG_INFO_BTF enabled?
Source: raspberrypi/linux