CAN Mini PCIe w/Linux Debian 9: operation not supported
Posted: Thu 28. Jun 2018, 17:42
I'm hoping reaching out for technical assistance with our CAN-MINI-PCI-E-1 card. I'm using Linux Debian 9 for my OS. I have installed peak-linux-driver-8.5.1.
Specifically, I've configured the device for netdev support (confirmed with cat /proc/pcan and saw ndev with device name can0). I'm attempting to use the iproute2 tools to configure my can0 interface and configure a bitrate of 125k.
When I do sudo ip link set can0 up type can bitrate 125000, I get a response as RTNETLINK answers: Operation not supported. When I do sudo ip link add dev can0 type can, I do get a positive response as RTNETLINK answers: File exists. Lastly, I've also tried ip link set can0 up type can bitrate 125000, and got a response stating can0: bit-timing not yet defined. ifconfig can0 up also did not work.
I have confirmed that Linux's CAN Device Drivers are configured as CONFIG_CAN_CALC_BITTIMING=y. Perhaps I'm missing some other configuration step for netdev support's bit timing? candump and other SocketCAN commands will not show a network as functional until I figure this out.
I'm referencing the PCAN Driver for Linux v8 - User Manual pages 34 and 35. Any point in the right direction would be greatly appreciated!
Specifically, I've configured the device for netdev support (confirmed with cat /proc/pcan and saw ndev with device name can0). I'm attempting to use the iproute2 tools to configure my can0 interface and configure a bitrate of 125k.
When I do sudo ip link set can0 up type can bitrate 125000, I get a response as RTNETLINK answers: Operation not supported. When I do sudo ip link add dev can0 type can, I do get a positive response as RTNETLINK answers: File exists. Lastly, I've also tried ip link set can0 up type can bitrate 125000, and got a response stating can0: bit-timing not yet defined. ifconfig can0 up also did not work.
I have confirmed that Linux's CAN Device Drivers are configured as CONFIG_CAN_CALC_BITTIMING=y. Perhaps I'm missing some other configuration step for netdev support's bit timing? candump and other SocketCAN commands will not show a network as functional until I figure this out.
I'm referencing the PCAN Driver for Linux v8 - User Manual pages 34 and 35. Any point in the right direction would be greatly appreciated!