iproute2 not function on CAN FD

Oliver Hartkopp socketcan at hartkopp.net
Sun Feb 19 23:56:43 PST 2017


On 02/20/2017 02:12 AM, Wenyou.Yang at microchip.com wrote:

> I am testing the CAN FD of M_CAN on the SAMA5D2 Xplained board,
> when using the ip tool from iprounte2 suite to set the CAN interface,
> it doesn't work with the message "RTNETLINK answers: Operation not supported".
> --->8----
> # ip link set can0 type can bitrate 125000 dbitrate 8000000 fd on
> RTNETLINK answers: Operation not supported

Please try:

# ip link set can0 type can bitrate 125000 dbitrate 8000000 fd on 
fd-non-iso on

The driver for the M_CAN IP core 3.0.x in the mainline kernel supports a 
NON_ISO IP core.

This non-iso setting is fixed with this v3.0.x M_CAN and we decided to 
make this configuration explicit - as all other options run into a mess.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=bb208f144cf3f59d8f89a09a80efd04389718907

Did that help?

Regards,
Oliver




More information about the linux-arm-kernel mailing list