Headers and kernel version match

Small but useful note about headers and kernel version match
This commit is contained in:
Volkov Maksim 2023-02-17 17:49:50 +03:00 committed by GitHub
parent aeed529c77
commit 8e61537362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ from source when the kernel is upgraded (for example using your package manager)
```shell
sudo apt-get install git raspberrypi-kernel-headers build-essential dkms
```
Make sure you're installing same headers version as your current running kernel. If you just installed Raspbian it ships with an older kernel version than you'll get headers for after installing `raspberrypi-kernel-headers`. You must either run `sudo apt-get upgrade` or install exact same `raspberrypi-kernel-headers-XXX` version as your kernel is before executing `dkms install`. If you have version mismatch you'll get "Your kernel headers for kernel XXX cannot be found at YYY" error.
2. Clone this repository and change your directory to cloned path.