Release date:2020-02-13, Kernel version:4.19).
I followed the instruction in the documentation chatper 3 in: https://www.peak-system.com/fileadmin/m ... /index.htm. Unfortunately i didn't get so far. I got following error.
I appreciate every help. Thanks
Code: Select all
pi@raspberrypi:~/peak-linux-driver-8.10.0 $ make
make[1]: Verzeichnis „/home/pi/peak-linux-driver-8.10.0/driver“ wird betreten
***
*** Making pcan driver in chardev mode
***
*** Host OS Release=Raspbian GNU/Linux v10
*** Host machine kernel version=4.19.97-v7+
*** Driver kernel version=4.19.97-v7+ (4.19.97)
*** Path to kernel sources=/usr/src/linux-headers-4.19.97-v7+
*** use KBUILD=yes
*** gcc version=8
***
make -C /usr/src/linux-headers-4.19.97-v7+ EXTRA_CFLAGS="-I/home/pi/peak-linux-driver-8.10.0/driver -DNO_DEBUG -DMODVERSIONS -DPARPORT_SUBSYSTEM -DUSB_SUPPORT -DPCI_SUPPORT -DPCIEC_SUPPORT -DISA_SUPPORT -DDONGLE_SUPPORT -DPCCARD_SUPPORT -DNO_NETDEV_SUPPORT -DNO_RT -Wno-date-time" V=0 modules SUBDIRS=/home/pi/peak-linux-driver-8.10.0/driver
make[2]: Verzeichnis „/usr/src/linux-headers-4.19.97-v7+“ wird betreten
CC [M] /home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.o
/home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.c: In function ‘pcan_pci_enable_msi’:
/home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.c:272:2: error: implicit declaration of function ‘pci_alloc_irq_vectors_affinity’; did you mean ‘pci_alloc_consistent’? [-Werror=implicit-function-declaration]
pci_alloc_irq_vectors_affinity(a, b, c, PCI_IRQ_MSI, NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.c:369:18: note: in expansion of macro ‘pcan_pci_enable_msi_range’
pa->msi_count = pcan_pci_enable_msi_range(pa->dev, 1, msi_max);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.c:272:42: error: ‘PCI_IRQ_MSI’ undeclared (first use in this function); did you mean ‘PCI_IOBASE’?
pci_alloc_irq_vectors_affinity(a, b, c, PCI_IRQ_MSI, NULL)
^~~~~~~~~~~
/home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.c:369:18: note: in expansion of macro ‘pcan_pci_enable_msi_range’
pa->msi_count = pcan_pci_enable_msi_range(pa->dev, 1, msi_max);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.c:272:42: note: each undeclared identifier is reported only once for each function it appears in
pci_alloc_irq_vectors_affinity(a, b, c, PCI_IRQ_MSI, NULL)
^~~~~~~~~~~
/home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.c:369:18: note: in expansion of macro ‘pcan_pci_enable_msi_range’
pa->msi_count = pcan_pci_enable_msi_range(pa->dev, 1, msi_max);
^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:304: /home/pi/peak-linux-driver-8.10.0/driver/src/pcan_pci.o] Fehler 1
make[2]: *** [Makefile:1522: _module_/home/pi/peak-linux-driver-8.10.0/driver] Fehler 2
make[2]: Verzeichnis „/usr/src/linux-headers-4.19.97-v7+“ wird verlassen
make[1]: *** [Makefile:508: all] Fehler 2
make[1]: Verzeichnis „/home/pi/peak-linux-driver-8.10.0/driver“ wird verlassen
make: *** [Makefile:72: all] Fehler 2