https://www.peak-system.com/fileadmin/m ... /index.htm
first, check if drivers are in system:
Code: Select all
~$ grep PEAK_ /boot/config-`uname -r`
CONFIG_CAN_PEAK_PCIEFD=m
CONFIG_CAN_PEAK_PCI=m
CONFIG_CAN_PEAK_PCIEC=y
CONFIG_CAN_PEAK_PCMCIA=m
CONFIG_CAN_PEAK_USB=m
Code: Select all
lsmod | grep ^peak
I've run "pcan-kernel-version.sh" script which did not return anything as well.
i've had no problems before the upgrade. Did anyone had the same situation?
Thanks in advance
EDIT:
trying to follow kernel docs, chapter 3.1 on building the driver, as i found this:
https://forum.peak-system.com/viewtopic.php?t=7280
but here is what i'm getting, and i have no clue what i'm doing wrong.
Code: Select all
:/usr/src/peak-linux-driver-8.16.0# make
make[1]: Wejście do katalogu '/usr/src/peak-linux-driver-8.16.0/driver'
***
*** Making pcan driver in chardev mode
***
*** Host OS Release=Ubuntu v23.04
*** Host machine kernel version=6.2.0-20-generic
*** Driver kernel version=6.2.0-20-generic (6.2.0)
*** Path to kernel sources=/usr/src/linux-headers-6.2.0-20-generic
*** use KBUILD=yes
*** use DKMS=
*** gcc version=12
***
make -C /usr/src/linux-headers-6.2.0-20-generic EXTRA_CFLAGS="-I/usr/src/peak-linux-driver-8.16.0/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DPCI_SUPPORT -DPCIEC_SUPPORT -DISA_SUPPORT -DNO_DONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNO_NETDEV_SUPPORT -DNO_RT -Wno-date-time" V=0 modules M=/usr/src/peak-linux-driver-8.16.0/driver
make[2]: Wejście do katalogu '/usr/src/linux-headers-6.2.0-20-generic'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make[2]: *** [Makefile:820: include/config/auto.conf] Błąd 1
make[2]: Opuszczenie katalogu '/usr/src/linux-headers-6.2.0-20-generic'
make[1]: *** [Makefile:523: all] Błąd 2
make[1]: Opuszczenie katalogu '/usr/src/peak-linux-driver-8.16.0/driver'
make: *** [Makefile:84: all] Błąd 2