just have a little problem to get it work. I followed the steps mentioned here to install the chardev driver: viewtopic.php?t=6897
In the first try, I just changed "make PCC=NO PCI=NO ISA=NO DNG=NO" to "make PCC=NO ISA=NO DNG=NO" to get the PCIe version installed. But even when building the driver just with "make" it does not show an interface when I look at it with "cat /proc/pcan". As I have the 4 channel version of your m.2 adapter, I think there should be listed 4 interfaces?
Any ideas what could be wrong? In the following some outputs of the console:
Code: Select all
logger@raspberrypi:~ $ lspci
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 21)
0000:01:00.0 Network controller: PEAK-System Technik GmbH Device 001a (rev 01)
0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2712 (rev 21)
0001:01:00.0 Ethernet controller: Device 1de4:0001
Code: Select all
logger@raspberrypi:~ $ cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20240116_n (8.17.0) Feb 26 2024 14:35:00 --------------
*---------------------- [mod] [isa] [pci] [pec] [usb] -----------------------
*--------------------- 0 interfaces @ major 239 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
End of file /boot/firmware/config.txt:
Code: Select all
...
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[all]
# Enable the PCIe external connector
dtparam=pciex1
# Force the GEN Speed to GEN1
dtparam=pciex1_gen=1
Code: Select all
logger@raspberrypi:~ $ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
i2c-dev
pcan
Code: Select all
logger@raspberrypi:~ $ lsmod | grep can
pcan 245760 0
i2c_algo_bit 65536 1 pcan