Building USB2CAN driver fails
Posted: 14 May 2019, 11:32
I am getting the this error while building a driver on the RevPi Connect running Raspbian Stretch:
I used the instructions at http://www.8devices.com/wiki/usb2can:compile-raspberry to build the driver:
I get this error when running the make command:
Here is the kernel version:
Could this be an error in the RevPi distribution? I found a similar situation which was due to a distro error.
Thanks,
Ed
Code: Select all
scripts/basic/fixdep: not found
Code: Select all
sudo apt-get update
sudo apt-get install git raspberrypi-kernel raspberrypi-kernel-headers can-utils
git clone https://github.com/krumboeck/usb2can.git
cd usb2can
sudo make
Code: Select all
make -C /lib/modules/4.9.76-rt60-v7+/build M=/home/pi/usb2can modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.76-rt60-v7+'
CC [M] /home/pi/usb2can/usb_8dev.o
/bin/sh: 1: scripts/basic/fixdep: not found
Code: Select all
uname -a
Linux RevPi11760 4.9.76-rt60-v7+ #1 SMP PREEMPT RT Tue, 12 Mar 2019 15:19:36 +0100 armv7l GNU/Linux
Thanks,
Ed