cat /proc/pcan does not show anything

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
sara_123
Posts: 4
Joined: Mon 1. Nov 2021, 23:17

cat /proc/pcan does not show anything

Post by sara_123 » Tue 2. Nov 2021, 01:00

I tried as well to follow some of the guidelines I found here
what I did is as following:

unzip the driver and go to where it is unzipped

Code: Select all

$ sudo dnf install libpopt-dev       
This is required to compile some of the drivers, then

Code: Select all

#make clean all
# make PCC=NO DNG=NO ISA=NO USB=NO PAR=NO 
#make install
#modprobe pcan
Till now everything seems to worked

Code: Select all

OS> fedora 33
uname -a 5.14.11-100.fc33.x86_64 

 cat /proc/pcap
cat: /proc/pcap: No such file or directory
further the result of this command is also nothing

Code: Select all

 lsmod | grep ^peak
This is the result

Code: Select all

make[3]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/c++'
make[2]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples'
make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic'
[root@tt peak-linux-driver-8.13.0]# # make PCC=NO DNG=NO ISA=NO USB=NO PAR=NO 
[root@tt peak-linux-driver-8.13.0]#  make PCC=NO DNG=NO ISA=NO USB=NO PAR=NO 
make[1]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/driver'
***
*** Making pcan driver in chardev mode
***
*** Host OS Release=Fedora v33
*** Host machine kernel version=5.14.11-100.fc33.x86_64
*** Driver kernel version=5.14.11-100.fc33.x86_64 (5.14.11)
*** Path to kernel sources=/lib/modules/5.14.11-100.fc33.x86_64/build
*** use KBUILD=yes
*** use DKMS=no
*** gcc version=10
***
make -C /lib/modules/5.14.11-100.fc33.x86_64/build  EXTRA_CFLAGS="-I/home/test/Documents/pcan/peak-linux-driver-8.13.0/driver -DNO_DEBUG -DMODVERSIONS -DNO -DNO -DPCI_SUPPORT -DPCIEC_SUPPORT -DNO -DNO -DNO -DNO_NETDEV_SUPPORT -DNO_RT   -Wno-date-time" V=0 modules M=/home/test/Documents/pcan/peak-linux-driver-8.13.0/driver
make[2]: Entering directory '/usr/src/kernels/5.14.11-100.fc33.x86_64'
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_main.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_fops.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_fifo.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_filter.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_parse.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_sja1000.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_common.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_timing.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcanfd_core.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcanfd_ucan.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_pci.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcanfd_pci.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_pci_spi.o
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/src/pcan_pciec.o
  LD [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/pcan.o
  MODPOST /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/Module.symvers
  CC [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/pcan.mod.o
  LD [M]  /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/pcan.ko
  BTF [M] /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/pcan.ko
Skipping BTF generation for /home/test/Documents/pcan/peak-linux-driver-8.13.0/driver/pcan.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/kernels/5.14.11-100.fc33.x86_64'
make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/driver'
make[1]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/lib'
***
*** Making pcan libraries
***
*** gcc version: 10
***

Info: only 64-bit version of libpcan can be built. 32-bit version of libpcan can't because the 32-bit version of libc seems not being installed...

make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/lib'
make[1]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/test'
***
*** Making example and test programs
***
*** gcc version: 10
***
make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/test'
make[1]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic'
make[2]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/pcanbasic'
***
*** Making PCANBasic library with FD support (PCAN driver >= 8.0)
***
*** target=libpcanbasic
*** version=4.5.1
*** PCAN_ROOT=/home/test/Documents/pcan/peak-linux-driver-8.13.0
*** gcc version=10
***
mkdir -p out

Info: only 64-bit version of libpcanbasic can be built. 32-bit version of libpcanbasic will not be build because the 32-bit version of libc seems not being installed...

make[2]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/pcanbasic'
make[2]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/pcaninfo'
*** Making PCANINFO
***
*** target=pcaninfo
*** version=1.2.0
*** PCAN_ROOT=/home/test/Documents/pcan/peak-linux-driver-8.13.0
*** gcc version=10
***
make[2]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/pcaninfo'
make[2]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples'
make[3]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/python'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/python'
make[3]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/c++'
***
*** Making PCANBasic C++ examples
***
*** target=pcanwrite pcanread pcaneventread pcaneventwrite
*** g++ version=10
*** PCANBASIC_ROOT=../../pcanbasic
***
make[3]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/c++'
make[2]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples'
make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic'
[root@tt peak-linux-driver-8.13.0]# make install
make[1]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/driver'
Info: Left current 'pcan'-entry in /etc/modprobe.d/pcan.conf untouched.
mkdir -p /usr/local/bin
cp -f udev/pcan_usb_minor_check.bash /usr/local/bin
chmod 744 /usr/local/bin/pcan_usb_minor_check.bash
cp -f udev/45-pcan.rules /etc/udev/rules.d
Info: Copied 45-pcan.rules to /etc/udev/rules.d.
cp -f udev/blacklist-peak.conf /etc/modprobe.d
chmod 644 /etc/modprobe.d/blacklist-peak.conf
Info: mainline drivers removed and blacklisted in
      /etc/modprobe.d/blacklist-peak.conf
udevadm control --reload-rules
- manually installing pcan under /lib/modules/5.14.11-100.fc33.x86_64/misc...
- Building dependencies...
make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/driver'
make[1]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/lib'
mkdir -p /usr/lib
cp -d lib/* /usr/lib
if [ -d lib32 ]; then \
	mkdir -p /usr/lib32; \
	cp -d lib32/* /usr/lib32; \
fi
mkdir -p /usr/include
chmod 644 libpcan.h libpcanfd.h
cp libpcan.h libpcanfd.h /usr/include
/sbin/ldconfig
make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/lib'
make[1]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/test'
cp receivetest transmitest bitratetest filtertest pcanfdtst pcan-settings receivetest_posix transmitest_posix /usr/local/bin
make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/test'
make[1]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic'
make[2]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/pcanbasic'
***
*** Making PCANBasic library with FD support (PCAN driver >= 8.0)
***
*** target=libpcanbasic
*** version=4.5.1
*** PCAN_ROOT=/home/test/Documents/pcan/peak-linux-driver-8.13.0
*** gcc version=10
***
mkdir -p out

Info: only 64-bit version of libpcanbasic can be built. 32-bit version of libpcanbasic will not be build because the 32-bit version of libc seems not being installed...

cp lib/libpcanbasic.so.4.5.1 /usr/lib/libpcanbasic.so.4.5.1
ln -sf /usr/lib/libpcanbasic.so.4.5.1 /usr/lib/libpcanbasic.so.4
ln -sf /usr/lib/libpcanbasic.so.4.5.1 /usr/lib/libpcanbasic.so.0
ln -sf /usr/lib/libpcanbasic.so.4 /usr/lib/libpcanbasic.so
if [ -d lib32 ]; then \
	mkdir -p /usr/lib32; \
	cp lib32/libpcanbasic.so.4.5.1 /usr/lib32/libpcanbasic.so.4.5.1; \
	ln -sf /usr/lib32/libpcanbasic.so.4.5.1 /usr/lib32/libpcanbasic.so.4; \
	ln -sf /usr/lib32/libpcanbasic.so.4.5.1 /usr/lib32/libpcanbasic.so.0; \
	ln -sf /usr/lib32/libpcanbasic.so.4 /usr/lib32/libpcanbasic.so; \
fi
cp PCANBasic.h /usr/include/PCANBasic.h
chmod 644 /usr/include/PCANBasic.h
/sbin/ldconfig
make[2]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/pcanbasic'
make[2]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/pcaninfo'
cp pcaninfo.1.2.0 /usr/local/bin/pcaninfo
chmod 755 /usr/local/bin/pcaninfo
make[2]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/pcaninfo'
make[2]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples'
make[3]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/python'
make[3]: Nothing to be done for 'install'.
make[3]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/python'
make[3]: Entering directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/c++'
#cp pcanwrite pcanread pcaneventread pcaneventwrite /usr/local/bin
make[3]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples/c++'
make[2]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic/examples'
make[1]: Leaving directory '/home/test/Documents/pcan/peak-linux-driver-8.13.0/libpcanbasic'
[root@tt peak-linux-driver-8.13.0]# modprobe pcan
[root@tt peak-linux-driver-8.13.0]# cat /proc/pcap
cat: /proc/pcap: No such file or directory
Last edited by K.Wagner on Tue 2. Nov 2021, 08:10, edited 1 time in total.
Reason: Code formatting for better reading

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

Re: cat /proc/pcan does not show anything

Post by M.Maidhof » Tue 2. Nov 2021, 09:50

Hi,

please call cat /proc/pcan instead of cat /proc/pcap :)

regards

Michael

Post Reply