Error during make install

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
jhollowell
Posts: 5
Joined: Wed 22. May 2019, 22:35

Error during make install

Post by jhollowell » Mon 3. Jun 2019, 22:02

Trying to install peak-linux-driver-8.8.0 on Ubuntu 16.04 desktop system. I can run make clean, make -C driver NET=NETDEV_SUPPORT, but when I run sudo make install it fails with an error:
cp cannot stat 'lib/*': no such file or directory

Any thoughts on how I can get past this and get the driver installed?

jhollowell
Posts: 5
Joined: Wed 22. May 2019, 22:35

Re: Error during make install

Post by jhollowell » Mon 3. Jun 2019, 22:41

Fixed the install issue by using:
make clean
make NET=NETDEV_SUPPORT
sudo make install

However, I cannot use ip link set can0 type can up bitrate 500000 to get my card running.

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Error during make install

Post by M.Maidhof » Tue 4. Jun 2019, 10:16

Hi,

which PCAN hardware do you use? Which kernel version is used? Please post output of uname -a and cat /proc/pcan

regards

Michael

jhollowell
Posts: 5
Joined: Wed 22. May 2019, 22:35

Re: Error during make install

Post by jhollowell » Wed 5. Jun 2019, 21:46

The card is PCAN-miniPCIe FD single channel.

uname -a
Linux olli-xx 4.13.0-36-generic #40-16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

cat /proc/pcan
no such file or directory

I find it strange that /proc/pcan does not exist since I did all the make, and make install

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Error during make install

Post by M.Maidhof » Thu 6. Jun 2019, 09:11

Hi,

after "sudo make install" you have to call "sudo modprobe pcan" or reboot your system once, so that the driver will be loaded.

regards

Michael

jhollowell
Posts: 5
Joined: Wed 22. May 2019, 22:35

Re: Error during make install

Post by jhollowell » Fri 7. Jun 2019, 23:36

Ok, got everything installed, however when I cat /proc/pcan it does show any devices. Any thoughts?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Error during make install

Post by M.Maidhof » Tue 11. Jun 2019, 10:13

Hi,

please check that your mainboard supports PCIe on the miniPCIe slots. There are systems which only supports the USB on those miniPCIe slots. Our PCAN-miniPCIe card uses the PCIe.

Check with lspci that the card is detected by Linux.

regards

Michael

Post Reply