From 4c8c33a6f3853bfc651ce3df4c1c24106e820ddb Mon Sep 17 00:00:00 2001 From: Michael Still Date: Sat, 11 Oct 2025 15:50:45 +1100 Subject: [PATCH] Newer versions of raspbian have a different kernel headers package name. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 07c296b..1fd71a4 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,16 @@ I used a Raspberry Pi 3 to develop and test my modules and drivers. To compile t ```bash sudo apt update && sudo apt upgrade -y + +# On older OS versions, the headers are called raspberrypi-kernel-headers sudo apt install raspberrypi-kernel-headers + +# On newer OS versions, they are named linux-headers-rpi-v8 +sudo apt install linux-headers-rpi-v8 + reboot ``` + Raspberry Pi OS is only installs the latest kernel headers. So, make sure, you are running the latest kernel. You also need the build utils (make, gcc, ...) but they come preinstalled on Raspberry Pi OS.