I have a new rpi 4B and seeed studio cn bus FD shield based on the MCP2517FD
When installing the device, kernel headers can’t be found and the device can not be installed
Any help appreciated
pi@raspberrypi:~/seeed-linux-dtoverlays/modules/CAN-HAT $ sudo ./install.sh
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
205 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
Reading package lists… Done
Building dependency tree
Reading state information… Done
can-utils is already the newest version (2018.02.0-1).
dkms is already the newest version (2.6.1-4).
git is already the newest version (1:2.20.1-2+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 205 not upgraded.
Error! There are no instances of module: mcp25xxfd
0.1 located in the DKMS tree.
Creating symlink /var/lib/dkms/mcp25xxfd/0.1/source ->
/usr/src/mcp25xxfd-0.1
DKMS: add completed.
Error! echo
Your kernel headers for kernel 5.4.51+ cannot be found at
/lib/modules/5.4.51+/build or /lib/modules/5.4.51+/source.
Error! echo
Your kernel headers for kernel 5.4.51-v7+ cannot be found at
/lib/modules/5.4.51-v7+/build or /lib/modules/5.4.51-v7+/source.
Error! echo
Your kernel headers for kernel 5.4.51-v7l+ cannot be found at
/lib/modules/5.4.51-v7l+/build or /lib/modules/5.4.51-v7l+/source.