Hello
I buy new one Raspi 4 and 2-Channe Can Bus shield from seeed.
I cant install shield . it gives error.
I setup last Raspbian version 2020.05.20
I didnt update or upgrade.
enable spi via sudo raspi-config and check
pi@raspberrypi:~/pi-hats/CAN-HAT $ lsmod | grep spi
spidev 20480 0
spi_bcm2835 20480 0
pi@raspberrypi:~/pi-hats/CAN-HAT $
and i checked sudo nano /boot/config.txt
i saw dtparam=spi=on
git clone https://github.com/seeed-Studio/pi-hats
cd pi-hats/CAN-HAT
sudo ./install.sh
and error:
Creating symlink /var/lib/dkms/mcp2517fd/0.1/source ->
/usr/src/mcp2517fd-0.1
DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.19.118+ cannot be found at
/lib/modules/4.19.118+/build or /lib/modules/4.19.118+/source.
Error! echo
Your kernel headers for kernel 4.19.118-v7+ cannot be found at
/lib/modules/4.19.118-v7+/build or /lib/modules/4.19.118-v7+/source.
Error! echo
Your kernel headers for kernel 4.19.118-v7l+ cannot be found at
/lib/modules/4.19.118-v7l+/build or /lib/modules/4.19.118-v7l+/source.
Please reboot your raspberry pi to apply all settings
Enjoy!
pi@raspberrypi:~/pi-hats/CAN-HAT $ make
make -C /lib/modules/4.19.118-v7l+/build M=/home/pi/pi-hats/CAN-HAT modules
make[1]: *** /lib/modules/4.19.118-v7l+/build: Böyle bir dosya ya da dizin yok. Durdu.
make: *** [Makefile:21: all] Error 2
pi@raspberrypi:~/pi-hats/CAN-HAT $ make install
sudo cp mcp25xxfd-can.ko /lib/modules/4.19.118-v7l+/kernel/drivers/net/can/spi/
cp: âmcp25xxfd-can.koâ durumlanamadı: Böyle bir dosya ya da dizin yok
make: *** [Makefile:27: install] Error 1
pi@raspberrypi:~/pi-hats/CAN-HAT $ sudo modprobe mcp25xxfd-can
modprobe: FATAL: Module mcp25xxfd-can not found in directory /lib/modules/4.19.118-v7l+
when i type this code : dmesg | grep spi
return is blank. i cant see anything .
Nothing shows up and the next line is blank .
But thiss command works and shows
lsmod | grep spi
spi_bcm2835aux 16384 0
spi_bcm2835 20480 0
Please advice me how can i solve problem