Page 2 of 2

Re: Compilation error with PCAN-miniPCIe Single Channel

Posted: Fri 20. Jul 2018, 14:27
by S.Grosjean
Hi,

I don't really understand your current system config: this kind of error SHOULD NOT exist with 4.13 too...
Hopefully, these lines are useless for such recent Kernel. So you can add a comment in front of them, that is:

Code: Select all

$ cd peak-linux-driver-8.5.1/driver
Then edit the file "src/pcan_netdev.c" and change line 326 like:

Code: Select all

//dev->trans_start = jiffies;
and also line 620 like:

Code: Select all

//ndev->last_rx = jiffies;
Then save the file and rebuild with make.

Stéphane

Re: Compilation error with PCAN-miniPCIe Single Channel

Posted: Mon 23. Jul 2018, 09:02
by aperlado
Hi,
Well, following your instructions I reach the compilation without error, but in fact, I still can't see can0, can1...devices so I can't use my hardware.
I follow the next steps:

Code: Select all

 $ cd peak-linux-driver-8.5.1/driver/
$ make NET=NETDEV_SUPPORT
$ sudo make install
$ ip link ls
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:30:64:1c:34:32 brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:30:64:1c:34:33 brd ff:ff:ff:ff:ff:ff

Re: Compilation error with PCAN-miniPCIe Single Channel

Posted: Mon 23. Jul 2018, 10:08
by S.Grosjean
Hello,

After "make install" you should either reboot your system (and the system will automatically load the driver) or call "modprobe pcan" to load it manually. Please read the provided user documentation first.

Stéphane

Re: Compilation error with PCAN-miniPCIe Single Channel

Posted: Mon 23. Jul 2018, 12:04
by aperlado
Hello,
I had tried with "modprobe pcan" due to the first thing I have done is read the documentation, but it doesn't work. After restarting my PC, it's works fine and his behavior its the one I expected. Thanks for your help and support.
Regards.