This forum covers PCAN-Linux and Linux development issues concerning our products
-
S.Grosjean
- Software Development

- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Post
by S.Grosjean » Fri 20. Jul 2018, 14:27
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:
and also line 620 like:
Then save the file and rebuild with make.
Stéphane
— Stéphane
-
aperlado
- Posts: 7
- Joined: Fri 6. Jul 2018, 12:25
Post
by aperlado » Mon 23. Jul 2018, 09:02
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
-
S.Grosjean
- Software Development

- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Post
by S.Grosjean » Mon 23. Jul 2018, 10:08
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
— Stéphane
-
aperlado
- Posts: 7
- Joined: Fri 6. Jul 2018, 12:25
Post
by aperlado » Mon 23. Jul 2018, 12:04
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.