peak-pci non-functional in Debian Testing 4.7.5-1 kernel

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
brirus
Posts: 2
Joined: Fri 30. Sep 2016, 21:13

peak-pci non-functional in Debian Testing 4.7.5-1 kernel

Post by brirus » Fri 30. Sep 2016, 22:15

Hello,

I'm trying to get my PEAK-PCI cards working with netdev with 4.7 amd64 kernel in Debian Testing.

output of `uname -a`
Linux xk910228 4.7.0-1-amd64 #1 SMP Debian 4.7.5-1 (2016-09-26) x86_64 GNU/Linux

output of `lsmod|grep peak`

Code: Select all

peak_pci               16384  0
sja1000                16384  1 peak_pci
i2c_algo_bit           16384  2 i915,peak_pci
output of `lsmod|grep pcan`

Code: Select all

pcan                  126976  0
parport                49152  1 pcan
pcmcia                 61440  1 pcan
i2c_algo_bit           16384  3 i915,pcan,peak_pci
usbcore               241664  6 pcan,usbserial,ehci_hcd,ehci_pci,pl2303,usbhid
(for that result i had to build the 8.1 driver, which wouldn't build until i put a symbolic link from /usr/src/linux-headers-4.7.0-1-amd64/include/config/can/peak/ (where pci.h is located) to /lib/modules/4.7.0-1-amd64/build/include/linux (where the build scripts are looking for all the header files, a location that doesn't exist in this distribution)

content of /etc/network/interfaces:

Code: Select all

allow-hotplug can0
iface can0 inet manual
	pre-up /sbin/ip link set $IFACE txqlen 512 type can bitrate 500000 sample-point 0.75
	up /sbin/ifconfig $IFACE up
	down /sbin/ifconfig $IFACE down

allow-hotplug can1
iface can1 inet manual
	pre-up /sbin/ip link set $IFACE txqlen 512 type can bitrate 500000 sample-point 0.75
	up /sbin/ifconfig $IFACE up
	down /sbin/ifconfig $IFACE down
output of `ifconfig can0 up`

Code: Select all

can0: ERROR while getting interface flags: No such device
This procedure was easy in debian 8 with 3.x kernel. It appears as though there was a regression. The manual says the netdev driver functionality should already be included in the kernel, and yet i can't get basic functionality even after installing the latest 8.1 driver.

I'd like to not go back to an earlier kernel. What is the procedure to get peak-pci working with 4.x on Debian?
Thanks,
Brian

brirus
Posts: 2
Joined: Fri 30. Sep 2016, 21:13

Re: peak-pci non-functional in Debian Testing 4.7.5-1 kernel

Post by brirus » Fri 30. Sep 2016, 23:23

I narrowed down the problem.

Rebooting into 4.6 kernel, the following brings up the interface:

Code: Select all

modprobe peak_pci
ifconfig can0 up
however this doesn't work in 4.7.5-1.

User avatar
O.Hartkopp
Posts: 40
Joined: Fri 22. Nov 2013, 19:47

Re: peak-pci non-functional in Debian Testing 4.7.5-1 kernel

Post by O.Hartkopp » Mon 3. Oct 2016, 14:02

brirus wrote:I'm trying to get my PEAK-PCI cards working with netdev with 4.7 amd64 kernel in Debian Testing.

output of `uname -a`
Linux xk910228 4.7.0-1-amd64 #1 SMP Debian 4.7.5-1 (2016-09-26) x86_64 GNU/Linux

(..)

(for that result i had to build the 8.1 driver, ...
I think building and installing the PEAK 8.1 driver is the root cause of your problem.

The PEAK PCI Cards would work out of the box with a Debian Testing system.
You already have all your other scripts ready to work.

Just uninstall the PEAK 8.1 driver would bring you setup back to work as you have seen it with the kernel 4.6.

Regards,
Oliver

Post Reply