Closed 0xPr0xy closed 3 years ago
I was on 5.10 kernel version of which the headers were not included. 2 options:
1 downgrade to stable kernel:
sudo apt-get update
sudo apt install --reinstall libraspberrypi0 libraspberrypi-{bin,dev,doc} raspberrypi-bootloader raspberrypi-kernel
source: https://www.raspberrypi.org/documentation/raspbian/applications/rpi-update.md
2 install kernel headers
checkout right kernel version branch, move the checkout to /usr/src/linux-headers-5.x.x
then symlink /lib/modules/5.x.x/build -> /usr/src/linux-headers-5.x.x
source: https://www.raspberrypi.org/documentation/linux/kernel/building.md